Questions

Remove shadow below actionbar

I use actionbarsherlock. The piece of code below is responsible for changing it's background to a custom one. ``` <style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.ActionBar"> <item n...

Put content in HttpResponseMessage object?

Several months ago, Microsoft decided to change up the HttpResponseMessage class. Before, you could simply pass a data type into the constructor, and then return the message with that data, but not an...

5 Apr at 09:18

Window vs Page vs UserControl for WPF navigation?

I am currently writing a desktop application, but I cannot seem to get my head around what to use when redirecting someone to a new section of the application. My options appear to be - - - but I ...

6 Oct at 08:49

“Unable to find manifest signing certificate in the certificate store” - even when add new key

I cannot build projects with a strong name key signing - the message in the title always comes up. Yes the project was initially copied over from another machine. However even if I add a new key via ...

Convert String to Type in C#

If I receive a string that contains the name of a class and I want to convert this string to a real type (the one in the string), how can I do this? I tried ``` Type.GetType("System.Int32") ``` fo...

2 Aug at 12:55

Unresolved external symbol in object files

During coding in Visual Studio I got an unresolved external symbol error and I've got no idea what to do. I don't know what's wrong. Could you please decipher me? Where should I be looking for what ki...

How to display hidden characters by default (ZERO WIDTH SPACE ie. &#8203)

I just lost part of my weekend because of this ... joker - zero width space. I just used some snippets from google groups and didn't recognize that there are doubled characters, because Idea (11) didn...

13 Jul at 17:49

What is this CSS selector? [class*="span"]

I saw this selector in Twitter Bootstrap: ``` .show-grid [class*="span"] { background-color: #eee; text-align: center; border-radius: 3px; min-height: 30px; line-height: 30px; } `...

10 Feb at 19:18

Given parallel lists, how can I sort one while permuting (rearranging) the other in the same way?

Suppose I have: ``` list1 = [3, 2, 4, 1, 1] list2 = ['three', 'two', 'four', 'one', 'one2'] ``` Calling `list1.sort()` will sort it, resulting in `[1, 1, 2, 3, 4]`. However, can I get `list2` to be r...

5 Mar at 01:11

What's the difference between Task.Start/Wait and Async/Await?

I may be missing something but what is the difference between doing: ``` public void MyMethod() { Task t = Task.Factory.StartNew(DoSomethingThatTakesTime); t.Wait(); UpdateLabelToSayItsComplete...

How to use jQuery to wait for the end of CSS3 transitions?

I'd like to fade out an element (transitioning its opacity to 0) and then when finished remove the element from the DOM. In jQuery this is straight forward since you can specify the "Remove" to happe...

How to start MySQL server from command line on Mac OS Lion?

I installed mySQL on my Mac. Beside starting the SQL server with mySQL.prefPane tool installed in System Preferences, I want to know the instructions to start from command-line. I do as follows: After...

3 Jun at 18:3

What's the difference between subprocess Popen and call (how can I use them)?

I want to call an external program from Python. I have used both `Popen()` and `call()` to do that. What's the difference between the two? My specific goal is to run the following command from Pyth...

24 May at 00:16

The maximum value for an int type in Go

How does one specify the maximum value representable for an `unsigned` integer type? I would like to know how to initialize `min` in the loop below that iteratively computes min and max lengths from ...

11 Jul at 16:45

How to save CSS changes of Styles panel of Chrome Developer Tools?

How to save CSS changes of [Styles panel](http://code.google.com/chrome/devtools/docs/elements-styles.html#styles_edit) of [Google Chrome Developer Tools](http://code.google.com/chrome/devtools/docs/o...

How to implement a rule engine?

I have a db table that stores the following: ``` RuleID objectProperty ComparisonOperator TargetValue 1 age 'greater_than' 15 2 username 'equal' ...

24 Sep at 01:25

Fastest way to download a GitHub project

I need to download the source code of the project [Spring data graph example](https://github.com/SpringSource/spring-data-graph-examples/) into my box. It has public read-only access. Is there is an e...

20 Feb at 23:22

The type must be a reference type in order to use it as parameter 'T' in the generic type or method

I'm getting deeper into generics and now have a situation I need help with. I get a compile error on the 'Derived' class below as shown in the subject title. I see many other posts similar to this one...

8 Nov at 19:57

Convert php array to Javascript

How can I convert a PHP array in a format like this ``` Array ( [0] => 001-1234567 [1] => 1234567 [2] => 12345678 [3] => 12345678 [4] => 12345678 [5] => AP1W3242 [6] => AP...

22 Feb at 22:9

Switch case with fallthrough?

I am looking for the correct syntax of the switch statement with fallthrough cases in Bash (ideally case-insensitive). In PHP I would program it like: ``` switch($c) { case 1: do_this(); ...

9 Jul at 18:54

Deploying website: 500 - Internal server error

I am trying to deploy an ASP.NET application. I have deployed the site to IIS, but when visiting it with the browser, it shows me this: > Server Error500 - Internal server error.There is a problem wit...

20 Jun at 09:12

Creating an array of objects in Java

I am new to Java and for the time created an array of objects in Java. I have a class A for example - ``` A[] arr = new A[4]; ``` But this is only creating pointers (references) to `A` and not 4...

29 Mar at 07:24

What is the use of ByteBuffer in Java?

What are example applications for a [ByteBuffer](http://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html) in Java? Please list any example scenarios where this is used.

18 Aug at 15:38

How to use MySQL DECIMAL?

I can't quite get a grasp of MySQL's DECIMAL. I need the row to be able to contain a number anywhere from 00.0001 to 99.9999. How would I structure it to work like so?

29 Jan at 00:54

FFmpeg on Android

I have got FFmpeg compiled (libffmpeg.so) on Android. Now I have to build either an application like RockPlayer or use existing Android multimedia framework to invoke FFmpeg. 1. Do you have steps / ...