Questions

What does "dereferencing" a pointer mean?

Please include an example with the explanation.

20 Jun at 12:37

Escaping HTML strings with jQuery

Does anyone know of an easy way to escape HTML from strings in [jQuery](http://jquery.com/)? I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (pr...

1 May at 10:47

"implements Runnable" vs "extends Thread" in Java

From what time I've spent with threads in `Java`, I've found these two ways to write threads: With `Runnable` ``` public class MyRunnable implements Runnable { public void run() { //Code ...

How can I force division to be floating point? Division keeps rounding down to 0?

I have two integer values `a` and `b`, but I need their ratio in floating point. I know that `a < b` and I want to calculate `a / b`, so if I use integer division I'll always get 0 with a remainder o...

How to append to a file in Node?

I am trying to a string to a log file. However writeFile will erase the content each time before writing the string. ``` fs.writeFile('log.txt', 'Hello Node', function (err) { if (err) throw err; ...

8 Jul at 18:6

Easiest way to read from and write to files

There are a lot of different ways to read and write files (, not binary) in C#. I just need something that is easy and uses the least amount of code, because I am going to be working with files a lo...

14 Jan at 17:42

How to escape double quotes in JSON

I'm trying to show double quotes but it shows one of the backslashes: ``` "maingame": { "day1": { "text1": "Tag 1", "text2": "Heute startet unsere Rundreise \\\"Example text\\\". ...

26 Mar at 04:18

How to center content in a Bootstrap column?

I am trying to center column's content. Does not look like it works for me. Here is my HTML: ``` <div class="row"> <div class="col-xs-1 center-block"> <span>aaaaaaaaaaaaaaaaaaaaaaaaaaa</spa...

2 Dec at 22:19

How to use ScrollView in Android?

I have an XML layout file, but the text is more than fits into the screen size. What do I need to do in order to make a `ScrollView`? ``` <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:an...

16 Feb at 13:43

Uncaught ReferenceError: jQuery is not defined

I have implemented some JavaScript on my site but I keep getting the following error messages: > Uncaught ReferenceError: jQuery is not defined and > Uncaught SyntaxError: Unexpected token < Th...

9 Jan at 17:22

Query to list all stored procedures

What query can return the names of all the stored procedures in a SQL Server database If the query could exclude system stored procedures, that would be even more helpful.

27 May at 16:14

Python datetime to string without microsecond component

I'm adding UTC time strings to Bitbucket API responses that currently only contain Amsterdam (!) time strings. For consistency with the UTC time strings returned elsewhere, the desired format is `2011...

3 Nov at 18:49

What is the difference between Views and Materialized Views in Oracle?

What is the difference between Views and Materialized Views in Oracle?

Babel 6 regeneratorRuntime is not defined

I'm trying to use async/await from scratch on Babel 6, but I'm getting `regeneratorRuntime` is not defined. .babelrc file ``` { "presets": [ "es2015", "stage-0" ] } ``` package.json file ``` "dev...

23 Aug at 08:50

How do I initialize an empty array in C#?

Is it possible to create an empty array without specifying the size? For example, I created: ``` String[] a = new String[5]; ``` Can we create the above string array without the size?

7 May at 14:7

How do you change the launcher logo of an app in Android Studio?

I was wondering how to change the launcher icon in Android Studio.

21 Jul at 04:3

Create table using Javascript

I have a JavaScript function which creates a table with 3 rows 2 cells. Could anybody tell me how I can create the table below using my function (I need to do this for my situation)? Here is my java...

18 Oct at 10:45

What's the PostgreSQL datatype equivalent to MySQL AUTO INCREMENT?

I'm switching from MySQL to PostgreSQL and I was wondering how can I have an `INT` column with `AUTO INCREMENT`. I saw in the PostgreSQL docs a datatype called `SERIAL`, but I get syntax errors when u...

25 Jun at 22:15

ImportError: No module named Crypto.Cipher

When I try to run app.py (Python 3.3, PyCrypto 2.6) my virtualenv keeps returning the error listed above. My import statement is just `from Crypto.Cipher import AES`. I looked for duplicates and you m...

What is path of JDK on Mac ?

Im using Mac only at work and I need to set JAVA_HOME to proper path of JDK. I downloaded JDK, installed it and now I can't find it anywhere. I was looking at the internet for the solution, but there ...

9 Aug at 10:28

How to fetch the row count for all tables in a SQL SERVER database

I am searching for a SQL Script that can be used to determine if there is any data (i.e. row count) in any of the tables of a given database. The idea is to re-incarnate the database in case there a...

4 Apr at 11:41

How can I use a batch file to write to a text file?

I need to make a script that can write one line of text to a text file in the same directory as the batch file.

18 Oct at 14:40

Convert integer to hexadecimal and back again

How can I convert the following? 2934 (integer) to B76 (hex) Let me explain what I am trying to do. I have User IDs in my database that are stored as integers. Rather than having users reference ...

25 Jun at 17:46

PHP cURL custom headers

I'm wondering if/how you can add custom headers to a cURL HTTP request in PHP. I'm trying to emulate how iTunes grabs artwork and it uses these non-standard headers: ``` X-Apple-Tz: 0 X-Apple-Store-F...

13 Nov at 23:35

Downloading an entire S3 bucket?

I noticed that there does not seem to be an option to download an entire `s3` bucket from the AWS Management Console. Is there an easy way to grab everything in one of my buckets? I was thinking about...