Questions

Difference between timestamps with/without time zone in PostgreSQL

Are timestamp values stored differently in PostgreSQL when the data type is `WITH TIME ZONE` versus `WITHOUT TIME ZONE`? Can the differences be illustrated with simple test cases?

21 Feb at 11:3

Git status shows files as changed even though contents are the same

I received a git checkout from someone else and am trying to commit the unstaged changes to the local repository. However, a (if not every) file appears as even though the contents are exactly the s...

12 Aug at 18:56

How to paginate with Mongoose in Node.js?

I am writing a webapp with Node.js and mongoose. How can I paginate the results I get from a `.find()` call? I would like a functionality comparable to `"LIMIT 50,100"` in SQL.

26 Jun at 15:18

How to enable NSZombie in Xcode?

I have an app that is crashing with no error tracing. I can see part of what is going on if I debug, but can't figure out which object is "zombie-ing". Does anybody know how to enable NSZombie in Xc...

8 Nov at 13:12

Creating a system overlay window (always on top)

I'm trying to create an always-op-top button/clickable-image which stays on top of all the windows all the time. The proof of concept is - [Smart Taskbar (on AppBrain)](http://www.appbrain.com/app...

30 Mar at 05:45

Rails server says port already used, how to kill that process?

I'm on a mac, doing: ``` rails server ``` I get: ``` 2010-12-17 12:35:15] INFO WEBrick 1.3.1 [2010-12-17 12:35:15] INFO ruby 1.8.7 (2010-08-16) [i686-darwin10.4.0] [2010-12-17 12:35:15] WARN TC...

27 Jan at 12:40

Timing a command's execution in PowerShell

Is there a simple way to time the execution of a command in PowerShell, like the 'time' command in Linux? I came up with this: ``` $s=Get-Date; .\do_something.ps1 ; $e=Get-Date; ($e - $s).TotalSecond...

25 Jan at 15:11

Comparison between Corona, Phonegap, Titanium

I am a web developer and I want to move my web products to iPhone. One of the products is like Google Maps: show map on the phone screen, you can drag or resize the map and view some information that ...

18 Feb at 10:17

Batch not-equal (inequality) operator

According to [this](http://tldp.org/LDP/abs/html/dosbatch.html), `!==!` is the not-equal string operator. Trying it, I get: ``` C:\> if "asdf" !==! "fdas" echo asdf !==! was unexpected at this time. ...

18 Sep at 18:30

How do I check if I'm running on Windows in Python?

I found the platform module but it says it returns 'Windows' and it's returning 'Microsoft' on my machine. I notice in another thread here on stackoverflow it returns 'Vista' sometimes. So, the questi...

2 Sep at 23:30

Using GCC to produce readable assembly?

I was wondering how to use [GCC](http://en.wikipedia.org/wiki/GNU_Compiler_Collection) on my C source file to dump a mnemonic version of the machine code so I could see what my code was being compiled...

1 May at 04:13

Get number days in a specified month using JavaScript?

> [What is the best way to determine the number of days in a month with javascript?](https://stackoverflow.com/questions/315760/what-is-the-best-way-to-determine-the-number-of-days-in-a-month-with-...

23 Jul at 16:20

How to show the "Are you sure you want to navigate away from this page?" when changes committed?

Here in stackoverflow, if you started to make changes then you attempt to navigate away from the page, a javascript confirm button shows up and asks: "Are you sure you want to navigate away from this ...

Drop all the tables, stored procedures, triggers, constraints and all the dependencies in one sql statement

Is there any way in which I can clean a database in SQl Server 2005 by dropping all the tables and deleting stored procedures, triggers, constraints and all the dependencies in one SQL statement? I...

6 Jun at 14:58

Inserting a tab character into text using C#

I'm building an application where I should capture several values and build a text with them: `Name`, `Age`, etc. The output will be a plain text into a `TextBox`. I am trying to make those informatio...

4 Feb at 08:7

Are iframes considered 'bad practice'?

Somewhere along the line I picked up the notion that using iframes is 'bad practice'. Is this true? What are the pros/cons of using them?

12 Dec at 13:30

Inheriting constructors

Why does this code: ``` class A { public: explicit A(int x) {} }; class B: public A { }; int main(void) { B *b = new B(5); delete b; } ``` Result in these errors: Shouldn'...

7 Mar at 06:39

How do you get the current time of day?

How do you get the current time (not date AND time)? Example: 5:42:12 PM

3 Feb at 09:24

How to add font-awesome to Angular 2 + CLI project

I'm using Angular 2+ and Angular CLI. How do I add font-awesome to my project?

How do I POST a x-www-form-urlencoded request using Fetch?

I have some parameters that I want to POST form-encoded to my server: ``` { 'userName': 'test@gmail.com', 'password': 'Password!', 'grant_type': 'password' } ``` I'm sending my request ...

How can I create a Java 8 LocalDate from a long Epoch time in Milliseconds?

I have an external API that returns me dates as `long`s, represented as milliseconds since the beginning of the Epoch. With the old style Java API, I would simply construct a `Date` from it with ```...

8 Nov at 14:43

Plot a horizontal line on a given plot

How do I add a horizontal line to an existing plot?

16 Jun at 20:48

Emulator: ERROR: x86 emulation currently requires hardware acceleration

I tried to run my Hello World application in Android Studio. I got the following error: > Emulator: ERROR: x86 emulation currently requires hardware acceleration!Please ensure Intel HAXM is properly i...

20 Jun at 09:12

TypeError: Router.use() requires middleware function but got a Object

There have been some middleware changes on the new version of express and I have made some changes in my code around some of the other posts on this issue but I can't get anything to stick. We had it...

10 May at 12:10

OS X Framework Library not loaded: 'Image not found'

I am trying to create a basic OS X Framework, right now I just have a test framework created: `TestMacFramework.framework` and I'm trying to import it into a brand new OS X Application project. I hav...

3 Apr at 12:9