Black transparent overlay on image hover with only CSS?
I'm trying to add a transparent black overlay to an image whenever the mouse is hovering over the image with only CSS. Is this possible? I tried this: [http://jsfiddle.net/Zf5am/565/](http://jsfid...
- Modified
- 4 Aug at 03:1
How to copy data to clipboard in C#
How can I copy a string (e.g "hello") to the System Clipboard in C#, so next time I press I'll get "hello"?
What are the ways to make an html link open a folder
I need to let users of an application open a folder by clicking a link inside a web page. The path of the folder is on the network and can be accessed from everywhere. I'm probably sure there is no ea...
How to calculate the number of days between two dates?
1. I am calculating the number of days between the 'from' and 'to' date. For example, if the from date is 13/04/2010 and the to date is 15/04/2010 the result should be 2. How do I get the result usin...
- Modified
- 9 Aug at 13:52
JSON Naming Convention (snake_case, camelCase or PascalCase)
Is there a standard on JSON naming?I see most examples using all lower case separated by underscore, aka `snake_case`, but can it be used `PascalCase` or `camelCase` as well?
- Modified
- 18 Sep at 18:43
Initial bytes incorrect after Java AES/CBC decryption
What's wrong with the following example? The problem is that the first part of the decrypted string is nonsense. However, the rest is fine, I get... > ``` Result: `£eB6O�geS��i are you? Have a nice ...
- Modified
- 6 May at 21:45
Display date/time in user's locale format and time offset
I want the server to always serve dates in UTC in the HTML, and have JavaScript on the client site convert it to the user's local timezone. Bonus if I can output in the user's locale date format.
- Modified
- 2 Dec at 19:22
Remove ALL styling/formatting from hyperlinks
I'm creating a navigation menu with words with different colors (`href` links). I would like the color NOT to change on any state (hover, visited etc). I know how to set the the colors for the differ...
Function to convert column number to letter?
Does anyone have an Excel VBA function which can return the column letter(s) from a number? For example, entering should return `CV`.
How to stop mongo DB in one command
I need to be able to start/stop MongoDB on the cli. It is quite simple to start: > ./mongod But to stop mongo DB, I need to run open mongo shell first and then type two commands: > $ ./mongouse admind...
- Modified
- 20 Jun at 09:12
Passing by reference in C
If C does not support passing a variable by reference, why does this work? ``` #include <stdio.h> void f(int *j) { (*j)++; } int main() { int i = 20; int *p = &i; f(p); printf("i = %d\n",...
- Modified
- 5 Sep at 21:57
Is there a difference between "==" and "is"?
My [Google-fu](https://english.stackexchange.com/questions/19967/what-does-google-fu-mean) has failed me. In Python, are the following two tests for equality equivalent? ``` n = 5 # Test one. if n =...
Check if list is empty in C#
I have a generic list object. I need to check if the list is empty. How do I check if a `List<T>` is empty in C#?
- Modified
- 25 Aug at 19:38
How do I recover a dropped stash in Git?
I frequently use `git stash` and `git stash pop` to save and restore changes in my working tree. Yesterday, I had some changes in my working tree that I had stashed and popped, and then I made more ch...
How to make method call another one in classes?
Now I have two classes `allmethods.cs` and `caller.cs`. I have some methods in class `allmethods.cs`. I want to write code in `caller.cs` in order to call a certain method in the `allmethods` class. ...
React Native android build failed. SDK location not found
I have error when i start running android ``` What went wrong: A problem occurred evaluating project ':app'. > SDK location not found. Define location with sdk.dir in the local.properties file or w...
- Modified
- 21 Nov at 00:12
List append() in for loop raises exception: 'NoneType' object has no attribute 'append'
In Python, trying to do the most basic append function to a list with a loop: Not sure what I am missing here: ``` a = [] for i in range(5): a = a.append(i) ``` returns: > 'NoneType' object h...
How to print pandas DataFrame without index
I want to print the whole dataframe, but I don't want to print the index Besides, one column is datetime type, I just want to print time, not date. The dataframe looks like: ``` User ID E...
Serializing with Jackson (JSON) - getting "No serializer found"?
I get the an exception when trying to serialize a very simple object using Jackson. The error: > org.codehaus.jackson.map.JsonMappingException: No serializer found for class MyPackage.TestA and no ...
How to avoid "ConcurrentModificationException" while removing elements from `ArrayList` while iterating it?
I'm trying to remove some elements from an `ArrayList` while iterating it like this: ``` for (String str : myArrayList) { if (someCondition) { myArrayList.remove(str); } } ``` Of co...
Java default constructor
What exactly is a default constructor — can you tell me which one of the following is a default constructor and what differentiates it from any other constructor? ``` public Module() { this.name =...
- Modified
- 2 Oct at 08:44
Shell Script Syntax Error: Unexpected End of File
In the following script I get an error: > syntax error: unexpected end of file What is this error how can I resove it? It is pointing at the line whee the function is called. ``` #!/bin/sh expect...
Merge 2 arrays of objects
Lets have a look at an example. ``` var arr1 = new Array({name: "lang", value: "English"}, {name: "age", value: "18"}); var arr2 = new Array({name : "childs", value: '5'}, ...
- Modified
- 15 Feb at 21:57
How to remove the leading character from a string?
I have a input string like: ``` $str = ':this is a applepie :) '; ``` How can I remove the first occurring `:` with PHP? Desired output: `this is a applepie :)`
What do I need to do to get Internet Explorer 8 to accept a self signed certificate?
We use self signed certificates on our intranet. What do I need to do to get Internet Explorer 8 to accept them without showing an error message to the user? What we did for Internet Explorer 7 appare...
- Modified
- 30 May at 18:15