What to gitignore from the .idea folder?
> [Intellij Idea 9/10, what folders to check into (or not check into) source control?](https://stackoverflow.com/questions/3041154/intellij-idea-9-10-what-folders-to-check-into-or-not-check-into-so...
- Modified
- 21 Nov at 10:17
What is the best way to delete a component with CLI
I tried using "ng destroy component foo" and it tells me "The destroy command is not supported by Angular-CLI" How do we properly delete components with Angular CLI?
- Modified
- 28 Dec at 02:54
Python - Extracting and Saving Video Frames
So I've followed [this tutorial](https://web.archive.org/web/20161010175545/https://tobilehman.com/blog/2013/01/20/extract-array-of-frames-from-mp4-using-python-opencv-bindings/) but it doesn't seem t...
- Modified
- 25 Jan at 17:14
Add new item in existing array in c#.net
How to add new item in existing string array in C#.net? I need to preserve the existing data.
How to stop event propagation with inline onclick attribute?
Consider the following: ``` <div onclick="alert('you clicked the header')" class="header"> <span onclick="alert('you clicked inside the header');">something inside the header</span> </div> ``` Ho...
- Modified
- 20 Jan at 15:12
Java ResultSet how to check if there are any results
[Resultset](http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html) has no method for hasNext. I want to check if the resultSet has any value is this the correct way ``` if (!resultSet.nex...
Append a single character to a string or char array in java?
Is it possible to append a single character to the end of `array` or `string` in java. Example: ``` private static void /*methodName*/ () { String character = "a" String otherStrin...
Find the host name and port using PSQL commands
I have PSQL running, and am trying to get a perl application connecting to the database. Is there a command to find the current port and host that the database is running on?
- Modified
- 11 Jun at 14:1
Passing an array by reference
How does passing a statically allocated array by reference work? ``` void foo(int (&myArray)[100]) { } int main() { int a[100]; foo(a); } ``` Does `(&myArray)[100]` have any meaning or its...
What is a daemon thread in Java?
Can anybody tell me what daemon threads are in Java?
- Modified
- 26 Jul at 03:22
What's the difference between a mock & stub?
I've read various articles about mocking vs stubbing in testing, including [Martin Fowler's Mocks Aren't Stubs](http://martinfowler.com/articles/mocksArentStubs.html), but still don't understand the d...
Laravel 5 Failed opening required bootstrap/../vendor/autoload.php
I have recently installed Laravel 5 via composer. I tried creating a new controller using artisan and I get the following error: > bootstrap/../vendor/autoload.php. Failed to open stream: No such fil...
Pure JavaScript: a function like jQuery's isNumeric()
Is there is any function like `isNumeric` in pure JavaScript? I know jQuery has this function to check the integers.
- Modified
- 3 Jan at 20:34
How to check if a number is between two values?
In JavaScript, I'm telling the browser to do something if the window size is greater than 500px. I do it like so: ``` if (windowsize > 500) { // do this } ``` This works great, but I would like...
- Modified
- 12 Jun at 04:58
NameError: global name 'xrange' is not defined in Python 3
I am getting an error when running a python program: ``` Traceback (most recent call last): File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\_sandbox.py", line 110, in <module> Fil...
- Modified
- 28 Jun at 21:13
Random shuffling of an array
I need to randomly shuffle the following Array: ``` int[] solutionArray = {1, 2, 3, 4, 5, 6, 6, 5, 4, 3, 2, 1}; ``` Is there any function to do that?
Error: EACCES: permission denied
I run but it throws error. I know it is permission issue but as far as I know, sudo permission is not required for installing node module locally. If I run it with sudo, it gets installed inside ~/n...
require is not defined? Node.js
Just started working with Node.js. In my `app/js` file, I am doing something like this: ``` var http = require('http'); http.createServer(function (request, response) { response.writeHead(200, {...
- Modified
- 7 Nov at 02:44
How to convert string to binary?
I am in need of a way to get the binary representation of a string in python. e.g. ``` st = "hello world" toBinary(st) ``` Is there a module of some neat way of doing this?
- Modified
- 3 Oct at 21:5
Display JSON as HTML
Any recommendations on how to embed JSON in an HTML page with the JSON formatted in a human readable style? For example, when you view XML in a browser, most browsers display the XML formatted (indent...
How to avoid MySQL 'Deadlock found when trying to get lock; try restarting transaction'
I have a innoDB table which records online users. It gets updated on every page refresh by a user to keep track of which pages they are on and their last access date to the site. I then have a cron th...
How can I declare optional function parameters in JavaScript?
Can I declare default parameter like ``` function myFunc( a, b=0) { // b is my optional parameter } ``` in JavaScript?
- Modified
- 8 Oct at 22:47
How do I measure execution time of a command on the Windows command line?
Is there a built-in way to measure execution time of a command on the Windows command line?
- Modified
- 14 Mar at 18:36