Questions

Postman Chrome: What is the difference between form-data, x-www-form-urlencoded and raw

I am using the Postman Chrome extension for testing a web service. There are three options available for data input. I guess the `raw` is for sending JSON. What is the difference between the other ...

18 May at 00:22

__proto__ VS. prototype in JavaScript

> This figure again shows that every object has a prototype. Constructor function Foo also has its own `__proto__` which is Function.prototype, and which in turn also references via its `__proto__` pr...

Easier way to debug a Windows service

Is there an easier way to step through the code than to start the service through the Windows Service Control Manager and then attaching the debugger to the thread? It's kind of cumbersome and I'm won...

How to use Boost in Visual Studio 2010

What is a good step by step explanation on how to use the Boost library in an empty project in Visual Studio?

6 Jun at 19:17

CASE WHEN statement for ORDER BY clause

I am using SQL Server 2008 R2. I want the priority based sorting for records in a table. So that I am using CASE WHEN statement in ORDER BY clause. The ORDER BY clause is as below : ``` ORDER BY...

21 May at 18:28

Node.js global variables

I asked here: [Does Node.js require inheritance?](https://stackoverflow.com/questions/5348685/node-js-require-inheritance) And I was told that I can set variables to the global scope by leaving out th...

1 Nov at 23:19

Write to Windows Application Event Log without event source registration

Is there a way to write to this event log: ![enter image description here](https://i.stack.imgur.com/lhenO.png) Or at least, some other Windows default log, ?

8 Jun at 16:22

can't multiply sequence by non-int of type 'float'

Why do I get an error of "can't multiply sequence by non-int of type 'float'"? from the following code: ``` def nestEgVariable(salary, save, growthRates): SavingsRecord = [] fund = 0 depos...

7 Dec at 00:36

Decompile .smali files on an APK

I downloaded [APK Manager](http://apkmultitool.com/) that lets me unpack APK files. But it only unpacks it and doesn't decompile the .smali file to .java. Is it possible to decompile the .smali to ....

10 Nov at 10:32

pip install access denied on Windows

I am trying to run `pip install mitmproxy` on Windows, but I keep getting access denied, even with `cmd` and `PowerShell` using the `Run as Administrator` option. ``` WindowsError: [Error 5] Access i...

10 May at 13:56

Java RegEx meta character (.) and ordinary dot?

In Java RegEx, how to find out the difference between `.`(dot) the meta character and the normal dot as we using in any sentence. How to handle this kind of situation for other meta characters too lik...

6 Jul at 13:3

java.lang.ClassCastException

Normally whats the reason to get java.lang.ClassCastException ..? I get the following error in my application ``` java.lang.ClassCastException: [Lcom.rsa.authagent.authapi.realmstat.AUTHw ```

18 Aug at 10:42

Java equivalent to #region in C#

I want to use regions for code folding in ; how can that be done in Java? An example usage in [C#](https://msdn.microsoft.com/en-us/library/9a1ybwek.aspx): ``` #region name //code #endregion ```

1 Feb at 07:0

I get a "An attempt was made to load a program with an incorrect format" error on a SQL Server replication project

The exact error is as follows > Could not load file or assembly 'Microsoft.SqlServer.Replication, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. ...

6 Sep at 23:53

Returning value from Thread

I have a method with a `HandlerThread`. A value gets changed inside the `Thread` and I'd like to return it to the `test()` method. Is there a way to do this? ``` public void test() { Thread ui...

5 Feb at 12:9

How do I install a module globally using npm?

I recently installed Node.js and npm module on OSX and have a problem with the settings I think: ``` npm install [MODULE] is not installing the node.js module to the default path which is /usr/local...

26 Jul at 19:29

How to split a single column values to multiple column values?

I have a problem splitting single column values to multiple column values. For Example: ``` Name ------------ abcd efgh ijk lmn opq asd j. asdjja asb (asdfas) asd asd ``` and I need the output som...

11 Jun at 08:51

Get value from SimpleXMLElement Object

I have something like this: ``` $url = "http://ws.geonames.org/findNearbyPostalCodes?country=pl&placename="; $url .= rawurlencode($city[$i]); $xml = simplexml_load_file($url); echo $url."\n"; $cityC...

30 May at 22:35

Java, return if trimmed String in List contains String

In Java, I want to check whether a String exists in a `List<String> myList`. Something like this: ``` if(myList.contains("A")){ //true }else{ // false } ``` The problem is myList can conta...

22 Oct at 19:36

Create File If File Does Not Exist

I need to get my code to read if file doesnt exist create else append. Right now it is reading if it does exist create and append. Here is the code: ``` if (File.Exists(path)) { using (StreamWrit...

7 Jan at 01:49

JSON Java 8 LocalDateTime format in Spring Boot

I'm having a small problem with formatting a Java 8 LocalDateTime in my Spring Boot Application. With 'normal' dates I have no problem, but the LocalDateTime fields are converted to the following: ``...

30 Apr at 00:15

Android Webview - Webpage should fit the device screen

I have tried the following to fit the webpage based on the device screen size. ``` mWebview.setInitialScale(30); ``` and then set the metadata viewport ``` <meta name="viewport" content="width=320...

Creating a search form in PHP

I am currently trying to complete a project where the specifications are to use a search form to search through a packaging database. The database has lots of variables ranging from Sizes, names, type...

16 Feb at 10:41

Is there a valid way to disable autocomplete in a HTML form?

When using the `xhtml1-transitional.dtd` doctype, collecting a credit card number with the following HTML ``` <input type="text" id="cardNumber" name="cardNumber" autocomplete='off'/> ``` will flag a...

31 Dec at 19:53

How to call code behind server method from a client side JavaScript function?

I am having an JavaScript function for a HTML button click event in ASPX page. And a server Method in its code behind page. Now I want to call the server method from the JavaScript function with some ...

19 Dec at 22:4