Questions

MySQL Cannot drop index needed in a foreign key constraint

I need to ALTER my existing database to add a column. Consequently I also want to update the UNIQUE field to encompass that new column. I'm trying to remove the current index but keep getting the erro...

9 May at 14:26

How do I register a .NET DLL file in the GAC?

I have made a .NET `.DLL` file, which I want to register in the [GAC](http://en.wikipedia.org/wiki/Global_Assembly_Cache). I have used this command in [Windows Server 2003](http://en.wikipedia.org/wi...

19 Nov at 19:47

Error: getaddrinfo ENOTFOUND in nodejs for get call

I am running a web server on node the code for which is given below ``` var restify = require('restify'); var server = restify.createServer(); var quotes = [ { author : 'Audrey Hepburn', text : "...

iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta

This crash has been a blocking issue I used the following steps to reproduce the issue: - - - - - - - The app immediate crashed upon launching, here is console log: ``` dyld: Library not loaded: @...

Can I run Keras model on gpu?

I'm running a Keras model, with a submission deadline of 36 hours, if I train my model on the cpu it will take approx 50 hours, is there a way to run Keras on gpu? I'm using Tensorflow backend and ru...

14 Aug at 18:48

How to validate IP address in Python?

What's the best way to validate that an IP entered by the user is valid? It comes in as a string.

X close button only using css

How to make a cross (X) only in CSS3, to use as a close button? I've been searching for a long time, and cannot found how.... When I look at source code on a website using it, there's always something...

24 Feb at 15:7

Android: adb pull file on desktop

Trying to copy file from device to desktop, here is a command: ``` adb pull sdcard/log.txt Users/admin/Desktop ``` But this command creates a folder Users/admin/Desktop inside platform-tools folder...

13 Jul at 11:46

How to Set Focus on Input Field using JQuery

Given the following HTML structure: ``` <div class="wrapper"> <div class="top"> <a href="http://example.com" class="link">click here</a> </div> <div class="middle"> some t...

18 Jul at 20:6

How do I pick randomly from an array?

I want to know if there is a much cleaner way of doing this. Basically, I want to pick a random element from an array of variable length. Normally, I would do it like this: ``` myArray = ["stuff", "...

19 Dec at 18:44

#pragma once vs include guards?

I'm working on a codebase that is known to only run on windows and be compiled under Visual Studio (it integrates tightly with excel so it's not going anywhere). I'm wondering if I should go with the ...

22 Nov at 03:7

Git ignore file for Xcode projects

Which files should I include in `.gitignore` when using in conjunction with ?

LINQ Aggregate algorithm explained

This might sound lame, but I have not been able to find a really good explanation of `Aggregate`. Good means short, descriptive, comprehensive with a small and clear example.

21 Jan at 13:12

Android activity life cycle - what are all these methods for?

What is the life cycle of an Android activity? Why are so many similar sounding methods (`onCreate()`, `onStart()`, `onResume()`) called during initialization, and so many others (`onPause()`, `onStop...

org.postgresql.util.PSQLException: FATAL: sorry, too many clients already

I am trying to connect to a Postgresql database, I am getting the following Error: > Error:org.postgresql.util.PSQLException: FATAL: sorry, too many clients already What does the error mean and how ...

4 Dec at 15:20

How do I embed a mp4 movie into my html?

I have a blog section on my site that has the TinyMce editor. I want to embed a video when I post a blog and it's just spitting out the code. I have added the `<embed>` tag on my output script. This...

20 Feb at 15:50

How can I parse a local JSON file from assets folder into a ListView?

I'm currently developing a physics app that is supposed to show a list of formulas and even solve some of them (the only problem is the `ListView`) ``` <?xml version="1.0" encoding="utf-8"?> <LinearL...

docker unauthorized: authentication required - upon push with successful login

While pushing the docker image (after successful login) from my host I am getting "unauthorized: authentication required". Details below. ``` -bash-4.2# docker login --username=asamba --email=anand...

16 Apr at 11:45

How may I sort a list alphabetically using jQuery?

I'm a bit out of my depth here and I'm hoping this is actually possible. I'd like to be able to call a function that would sort all the items in my list alphabetically. I've been looking through the...

15 Oct at 19:30

Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

``` <script async="" defer="" src="//survey.g.doubleclick.net/async_survey?site=vj2nngtlb7sbtnveaepk5so4ke"></script> ``` Screenshot of the error: ![](https://i.stack.imgur.com/pJL3e.png) and I'm ...

13 Mar at 21:39

How to enable or disable an anchor using jQuery?

How to enable or disable an anchor using jQuery?

22 Feb at 10:17

Docker compose port mapping

I have a docker-compose yml file as in below ``` version: '2' services: nodejs: build: context: . dockerfile: DockerFile ports: - "4000:4000" links: - redis ...

4 Apr at 18:14

How to put two divs side by side

So I'm quite new to writing code (about a few weeks) and I've hit a wall while writing code for my website. I want to have a layout like this: ![Image](https://i.stack.imgur.com/Dbp9J.png) But I can'...

30 Jun at 10:30

ContractFilter mismatch at the EndpointDispatcher exception

I have the following scenario that I'm trying to test for: 1. A common WSDL 2. WCF endpoint that implements objects based on the WSDL and is hosted in IIS. 3. A client app that uses a proxy based of...

13 Jul at 13:54

Fastest way to get the first object from a queryset in django?

Often I find myself wanting to get the first object from a queryset in Django, or return `None` if there aren't any. There are lots of ways to do this which all work. But I'm wondering which is the ...