Questions

Android Emulator Error Message: "PANIC: Missing emulator engine program for 'x86' CPUS."

I am trying to run a Android Emulator by using AVD Manager. this is my avd: [http://image-upload.de/image/fnx79V/52b0d050ee.png](http://image-upload.de/image/fnx79V/52b0d050ee.png) and this is what h...

13 Apr at 10:6

Why should I use IHttpActionResult instead of HttpResponseMessage?

I have been developing with WebApi and have moved on to WebApi2 where Microsoft has introduced a new `IHttpActionResult` Interface that seems to recommended to be used over returning a `HttpResponseMe...

16 May at 20:19

Android studio logcat nothing to show

I installed Android Studio yesterday, and I tried to use the LogCat to see the logs. But there is nothing to show in the logcat. I used the terminal to run `./adb logcat` and it works. Is there som...

1 Mar at 13:4

How to mock a final class with mockito

I have a final class, something like this: ``` public final class RainOnTrees{ public void startRain(){ // some code here } } ``` I am using this class in some other class like this...

13 Apr at 09:10

Save and load MemoryStream to/from a file

I am serializing an structure into a `MemoryStream` and I want to save and load the serialized structure. So, How to Save a `MemoryStream` into a file and also load it back from file?

21 Dec at 22:45

Maven: Command to update repository after adding dependency to POM

I've added a new dependency to my POM. Is there a simple command I can run to download this dependency to my repository?

7 Oct at 22:18

Type or namespace name does not exist

I have a WCF Data Service project built with Visual Studio 2010, which was working fine. All of a sudden, it didn't compile anymore. It was giving me messages like: > Error 7 The type or namespace n...

How can I put a ListView into a ScrollView without it collapsing?

I've searched around for solutions to this problem, and the only answer I can find seems to be "[don't put a ListView into a ScrollView](http://androidforums.com/android-developers/6844-using-listview...

Differences between Microsoft .NET 4.0 full Framework and Client Profile

The Microsoft .NET Framework 4.0 full installer (32- and 64-bit) is 48.1 MB and the Client Profile installer is 41.0 MB. The extracted installation files are 237 MB and 194 MB respectively, and once i...

22 May at 13:47

How to enable PHP short tags?

I have a web application on a Linux server which starts with `<?` I needed to copy this application to a windows environment and everything is working fine except that an SQL statement is being rende...

12 May at 15:41

How to convert String object to Boolean Object?

How to convert `String` object to `Boolean` object?

26 Sep at 05:46

SET NOCOUNT ON usage

Inspired by [this question](https://stackoverflow.com/questions/1483383/is-this-stored-procedure-thread-safe-or-whatever-the-equiv-is-on-sql-server) where there are differing views on SET NOCOUNT... ...

How to get nth jQuery element

In jQuery, `$("...").get(3)` returns the 3rd DOM element. What is the function to return the 3rd jQuery element?

31 May at 09:34

A generic error occurred in GDI+, JPEG Image to MemoryStream

This seems to be a bit of an infamous error all over the web. So much so that I have been unable to find an answer to my problem as my scenario doesn't fit. An exception gets thrown when I save the im...

19 Feb at 11:44

Select n random rows from SQL Server table

I've got a SQL Server table with about 50,000 rows in it. I want to select about 5,000 of those rows at random. I've thought of a complicated way, creating a temp table with a "random number" column, ...

30 Sep at 04:6

What is the best comment in source code you have ever encountered?

What is the best comment in source code you have ever encountered?

18 Sep at 01:54

What is a "callable"?

Now that it's clear [what a metaclass is](https://stackoverflow.com/questions/100003/what-is-a-metaclass-in-python), there is an associated concept that I use all the time without knowing what it real...

26 Nov at 22:34

How to implement Enums in Ruby?

What's the best way to implement the enum idiom in Ruby? I'm looking for something which I can use (almost) like the Java/C# enums.

31 May at 12:22

When should the volatile keyword be used in C#?

Can anyone provide a good explanation of the volatile keyword in C#? Which problems does it solve and which it doesn't? In which cases will it save me the use of locking?

6 Dec at 20:4

Best way to do multi-row insert in Oracle?

I'm looking for a good way to perform multi-row inserts into an Oracle 9 database. The following works in MySQL but doesn't seem to be supported in Oracle. ``` INSERT INTO TMP_DIM_EXCH_RT (EXCH_WH_...

7 Dec at 00:43

Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries"

I'm running the latest build of the [Docker Apple Silicon Preview.](https://www.docker.com/blog/download-and-try-the-tech-preview-of-docker-desktop-for-m1/) I created the tutorial container/images and...

26 Dec at 13:20

How to use paths in tsconfig.json?

I was reading about [path-mapping](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping) in `tsconfig.json` and I wanted to use it to avoid using the following ugly paths: ...

31 Oct at 06:1

How to set up Automapper in ASP.NET Core

I'm relatively new at .NET, and I decided to tackle .NET Core instead of learning the "old ways". I found a detailed article about [setting up AutoMapper for .NET Core here](https://lostechies.com/jim...

23 Jun at 14:28

How to specify the port an ASP.NET Core application is hosted on?

When using `WebHostBuilder` in a `Main` entry-point, how can I specify the port it binds to? By default it uses 5000. Note that this question is specific to the new ASP.NET Core API (currently in 1.0....

21 Apr at 23:55

What is the difference between putting a property on application.yml or bootstrap.yml in spring boot?

What is the difference between putting a property on application.yml or bootstrap.yml in spring boot? In logging.config case, the application works differently.

14 Jun at 23:3