Questions

How to see query history in SQL Server Management Studio

Is the query history stored in some log files? If yes, can you tell me how to find their location? If not, can you give me any advice on how to see it?

23 Aug at 06:31

How to remove an item for a OR'd enum?

I have an enum like: ``` public enum Blah { RED = 2, BLUE = 4, GREEN = 8, YELLOW = 16 } Blah colors = Blah.RED | Blah.BLUE | Blah.YELLOW; ``` How could I remove the color blue from...

24 Jan at 02:51

Logging within pytest tests

I would like to put some logging statements within test function to examine some state variables. I have the following code snippet: ``` import pytest,os import logging logging.basicConfig(level=logg...

16 Aug at 13:7

How do you set EditText to only accept numeric values in Android?

I have an `EditText` in which I want only integer values to be inserted. Can somebody tell me which property I have to use?

17 Jul at 00:4

Get url without querystring

I have a URL like this: `http://www.example.com/mypage.aspx?myvalue1=hello&myvalue2=goodbye` I want to get `http://www.example.com/mypage.aspx` from it. Can you tell me how can I get it?

8 Oct at 13:1

How to rollback just one step using rake db:migrate

After adding migration files in the `db/migrate` folder and running `rake db:migrate`, I want get back to the previous step, I think using `VERSION=n` is the right way to do that, but I don't know the...

16 Sep at 15:25

Check if instance is of a type

Using this to check if `c` is an instance of `TForm`. ``` c.GetType().Name.CompareTo("TForm") == 0 ``` Is there a more type safe way to do it besides using a `string` as a param to `CompareTo()`? ...

20 Jul at 16:13

String, StringBuffer, and StringBuilder

Please tell me a real time situation to compare `String`, `StringBuffer`, and `StringBuilder`?

27 Aug at 17:3

Bash: infinite sleep (infinite blocking)

I use `startx` to start X which will evaluate my `.xinitrc`. In my `.xinitrc` I start my window manager using `/usr/bin/mywm`. Now, if I kill my WM (in order to f.e. test some other WM), X will termin...

13 Jan at 13:15

How can a JavaScript object refer to values in itself?

Lets say I have the following JavaScript: ``` var obj = { key1 : "it ", key2 : key1 + " works!" }; alert(obj.key2); ``` This errors with "key1 is not defined". I have tried ``` this.key1 this[key1]...

13 Jun at 16:28

What is Dispatcher Servlet in Spring?

In this image (which I got from [here](http://maestric.com/wiki/lib/exe/fetch.php?w=&h=&cache=cache&media=java:spring:spring_mvc.png)), request sends something to ![enter image description here](h...

Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

I created a windows application developed in .NET 3.5 in a 32 bit Windows 2008 server. When deployed the application in a 64 bit server it shows the error "Microsoft.Jet.OLEDB.4.0' provider is not reg...

31 Jan at 10:40

Good introduction to the .NET Reactive Framework

Aside from the Microsoft documentation, is there a good introduction and tutorial to the Microsoft Reactive (Rx) framework? Also, what is a good example (with code) that Reactive makes easier of a pr...

15 Feb at 04:22

How to generate a simple popup using jQuery

I am designing a web page. When we click the content of div named mail, how can I show a popup window containing a label email and text box?

3 Aug at 23:23

Can I call an overloaded constructor from another constructor of the same class in C#?

Can I call an overloaded constructor from another constructor of the same class in C#?

3 Apr at 17:51

What are the safe characters for making URLs?

I am making a website with articles, and I need the articles to have "friendly" URLs, based on the title. For example, if the title of my article is `"Article Test"`, I would like the URL to be `http:...

13 Jan at 22:6

Best data type for storing currency values in a MySQL database

What is the best SQL data type for currency values? I'm using MySQL but would prefer a database independent type.

9 Mar at 10:9

What is time_t ultimately a typedef to?

I searched my Linux box and saw this typedef: ``` typedef __time_t time_t; ``` But I could not find the `__time_t` definition.

6 Apr at 19:49

How can I exclude $(this) from a jQuery selector?

I have something like this: ``` <div class="content"> <a href="#">A</a> </div> <div class="content"> <a href="#">B</a> </div> <div class="content"> <a href="#">C</a> </div> ``` When one...

20 Sep at 14:59

What causes the SVN Error "Not a working copy"?

Recently our [Subversion](https://en.wikipedia.org/wiki/Apache_Subversion) (SVN) server was changed and we did a `svn switch`. Since the working copy had a huge amount of unversioned resources, the wo...

2 Feb at 21:10

Correct way to populate an Array with a Range in Ruby

I am working through a book which gives examples of Ranges being converted to equivalent arrays using their "to_a" methods When i run the code in irb I get the following warning ``` warning: default...

5 Dec at 11:17

.Net Data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary -- Speed, memory, and when to use each?

.NET has a lot of complex data structures. Unfortunately, some of them are quite similar and I'm not always sure when to use one and when to use another. Most of my C# and VB books talk about them to ...

7 Jul at 17:52

Is there a way to comment out markup in an .ASPX page?

Is there a way to comment out markup in an `.ASPX` page so that it isn't delivered to the client? I have tried the standard comments `<!-- -->` but this just gets delivered as a comment and doesn't pr...

13 Feb at 13:46

JavaScript Chart Library

Would anyone recommend a particular JavaScript charting library - specifically one that doesn't use flash at all?

23 Sep at 09:4

Why does Path.Combine not properly concatenate filenames that start with Path.DirectorySeparatorChar?

From the in Visual Studio: ``` > Path.Combine(@"C:\x", "y") "C:\\x\\y" > Path.Combine(@"C:\x", @"\y") "\\y" ``` It seems that they should both be the same. The old FileSystemObject.BuildPath()...

9 Aug at 14:23