Inserting string at position x of another string
I have two variables and need to insert string `b` into string `a` at the point represented by `position`. The result I'm looking for is "I want an apple". How can I do this with JavaScript? ``` var ...
- Modified
- 19 May at 09:31
How to transition CSS display + opacity properties
I have got a problem with a CSS3 animation. ``` .child { opacity: 0; display: none; -webkit-transition: opacity 0.5s ease-in-out; -moz-transition: opacity 0.5s ease-in-out; tra...
- Modified
- 8 Mar at 17:47
Combine :after with :hover
I want to combine `:after` with `:hover` in CSS (or any other pseudo selector). I basically have a list and the item with the `selected` class has an arrow shape applied using `:after`. I want the s...
- Modified
- 9 Jun at 08:34
How to compile python script to binary executable
I need to convert a Python script to a Windows executable. I have Python 2.6 installed to `python26`. I have created one script and kept it in `C:\pythonscript`. Inside this folder there are two fil...
- Modified
- 22 Feb at 16:41
How to get start and end of day in Javascript?
How to get start ( 00:00:00 ) and end ( 23:59:59 ) of today in timestamp ( GMT )? Computer use a local time.
- Modified
- 26 Dec at 14:28
Set height of chart in Chart.js
I want to draw a horizontal bar chart with Chart.js but it keeps scaling the chart instead of using the height I assign the canvas form the script. Is there any way to set the height of the graph from...
- Modified
- 29 Aug at 17:7
How to read data of an Excel file using C#?
How to read an Excel file using C#? I open an Excel file for reading and copy it to clipboard to search email format, but I don't know how to do it. ``` FileInfo finfo; Excel.ApplicationClass ExcelO...
Bootstrap Dropdown menu is not working
I am having trouble getting my dropdowns to work. I can get the navbar to show up perfectly, but when I click on "Dropdown" (either of them) it does not display the dropdown menu. I have tried looking...
- Modified
- 13 Jul at 12:50
Error: Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT
I am running a local server of MySQL 5.6.10 on MacOS 10.8.3 and manage my database via Navicat essentials for MySQL. The error I get is that after running and managing my database just fine for a coup...
- Modified
- 29 Dec at 03:25
How to list all users in a Linux group?
How do I list all members of a group in Linux (and possibly other unices)?
How to decode HTML entities using jQuery?
How do I use jQuery to decode HTML entities in a string?
- Modified
- 10 Jul at 19:56
Tooltip on image
I am using the tooltip. But I want that on image tag, like when I mouseover the image then the tooltip should work. I have tried but not working for me on image tag.
Export and import table dump (.sql) using pgAdmin
I have pgAdmin version `1.16.1` installed on my machine. For exporting a table dump, I do: Right click on the table => Choose `backup` => Set `Format` to `Plain` => Save the file as `some_name.sql` Th...
- Modified
- 9 Jun at 14:30
How to allow CORS in react.js?
I'm using Reactjs and using API through AJAX in javascript. How can we resolve this issue? Previously I used CORS tools, but now I need to enable CORS.
- Modified
- 8 Sep at 16:2
Why is setTimeout(fn, 0) sometimes useful?
I've recently run into a rather nasty bug, wherein the code was loading a `<select>` dynamically via JavaScript. This dynamically loaded `<select>` had a pre-selected value. In IE6, we already had c...
- Modified
- 14 Jul at 12:38
<!--[if !IE]> is not working as expected in this case
I'm having trouble getting ``` <!--[if !IE]> ``` to work. I'm wondering if it is because I have this in my document ``` <!doctype html> <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]--> <!--[if...
- Modified
- 28 Jan at 09:51
How to use mod operator in bash?
I'm trying a line like this: ``` for i in {1..600}; do wget http://example.com/search/link $i % 5; done; ``` What I'm trying to get as output is: ``` wget http://example.com/search/link0 wget http...
- Modified
- 5 Apr at 17:23
How do I get the YouTube video ID from a URL?
I want to get the `v=id` from YouTube’s URL with JavaScript (no jQuery, pure JavaScript). ## Example YouTube URL formats `http://www.youtube.com/watch?v=u8nQa1cJyX8&a=GxdCwVVULXctT2lYDEPllDR0LRTu...
- Modified
- 11 Aug at 01:52
Calling C++ member functions via a function pointer
How do I obtain a function pointer for a class member function, and later call that member function with a specific object? I’d like to write: ``` class Dog : Animal { Dog (); void bark (); ...
- Modified
- 21 Jun at 19:47
ArrayBuffer to base64 encoded string
I need an efficient (read native) way to convert an `ArrayBuffer` to a base64 string which needs to be used on a multipart post.
- Modified
- 9 Jun at 16:32
Mount current directory as a volume in Docker on Windows 10
I am using Docker version 1.12.5 on Windows 10 via Hyper-V and want to use container executables as commands in the current path. I built a Docker image that is running fine, but I have a problem to...
SQLite - UPSERT *not* INSERT or REPLACE
[http://en.wikipedia.org/wiki/Upsert](http://en.wikipedia.org/wiki/Upsert) [Insert Update stored proc on SQL Server](https://stackoverflow.com/questions/13540/insert-update-stored-proc-on-sql-server) ...
What are the differences between struct and class in C++?
This question was [already asked in the context of C#/.Net](https://stackoverflow.com/questions/13049). Now I'd like to learn the differences between a struct and a class in C++. Please discuss the t...
Difference of two date time in sql server
Is there any way to take the difference between two `datetime` in sql server? For example, my dates are 1. 2010-01-22 15:29:55.090 2. 2010-01-22 15:30:09.153 So, the result should be `14.063 sec...
- Modified
- 24 Jul at 14:43
What does `void 0` mean?
Reading through the Backbone.js source code, I saw this: ``` validObj[attr] = void 0; ``` What is `void 0`? What is the purpose of using it here?
- Modified
- 2 Feb at 13:32