How to check a radio button with jQuery?
I try to check a radio button with jQuery. Here's my code: ``` <form> <div id='type'> <input type='radio' id='radio_1' name='type' value='1' /> <input type='radio' id='radio_2' na...
- Modified
- 25 Jun at 15:1
Where are Docker images stored on the host machine?
I managed to find the containers under directory `/var/lib/docker/containers`, but I can't find the images. What are the directories and files under `/var/lib/docker`?
- Modified
- 29 Mar at 16:26
How can I find all the tables in MySQL with specific column names in them?
I have 2-3 different column names that I want to look up in the entire database and list out all tables which have those columns. Is there any easy script?
- Modified
- 6 Aug at 16:5
Set environment variables from file of key/value pairs
How do I export a set of key/value pairs from a text file into the shell environment? --- For the record, below is the original version of the question, with examples. I'm writing a script in bash...
- Modified
- 14 Jan at 17:1
Downloading an entire S3 bucket?
I noticed that there does not seem to be an option to download an entire `s3` bucket from the AWS Management Console. Is there an easy way to grab everything in one of my buckets? I was thinking about...
- Modified
- 30 Nov at 08:15
How do I create a transparent Activity on Android?
I want to create a transparent Activity on top of another activity. How can I achieve this?
- Modified
- 28 Apr at 22:23
How to get an absolute file path in Python
Given a path such as `"mydir/myfile.txt"`, how do I find the file's absolute path in Python? E.g. on Windows, I might end up with: ``` "C:/example/cwd/mydir/myfile.txt" ```
- Modified
- 5 Jul at 15:51
What is the difference between a symbolic link and a hard link?
Recently I was asked this during a job interview. I was honest and said I knew how a symbolic link behaves and how to create one, but do not understand the use of a hard link and how it differs from a...
.NET String.Format() to add commas in thousands place for a number
I want to add a comma in the thousands place for a number. Would `String.Format()` be the correct path to take? What format would I use?
Remove empty array elements
Some elements in my array are empty strings based on what the user has submitted. I need to remove those elements. I have this: ``` foreach($linksArray as $link) { if($link == '') { u...
How to get a JavaScript object's class?
I created a JavaScript object, but how I can determine the class of that object? I want something similar to Java's `.getClass()` method.
- Modified
- 27 Dec at 13:4
How do I join two lists in Java?
Conditions: do not modify the original lists; JDK only, no external libraries. Bonus points for a one-liner or a JDK 1.3 version. Is there a simpler way than: ``` List<String> newList = new ArrayList<...
What is the difference between .NET Core and .NET Standard Class Library project types?
In Visual Studio, there are at least three different types of class libraries you can create: - - - While the first is what we've been using for years, a major point of confusion I've been having is ...
- Modified
- 6 Aug at 14:48
PostgreSQL error: Fatal: role "username" does not exist
I'm setting up my PostgreSQL 9.1. I can't do anything with PostgreSQL: can't `createdb`, can't `createuser`; all operations return the error message ``` Fatal: role h9uest does not exist ``` `h9ues...
- Modified
- 18 Nov at 05:36
What's the difference between the 'ref' and 'out' keywords?
I'm creating a function where I need to pass an object so that it can be modified by the function. What is the difference between: ``` public void myFunction(ref MyClass someClass) ``` and ``` pub...
What is the difference between substr and substring?
What is the difference between ``` alert("abc".substr(0,2)); ``` and ``` alert("abc".substring(0,2)); ``` They both seem to output “ab”.
- Modified
- 19 Sep at 11:40
Given a DateTime object, how do I get an ISO 8601 date in string format?
Given: ``` DateTime.UtcNow ``` How do I get a string which represents the same value in an [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601)-compliant format? Note that ISO 8601 defines a number o...
- Modified
- 14 Dec at 20:18
Java string to date conversion
What is the best way to convert a `String` in the format 'January 2, 2010' to a `Date` in Java? Ultimately, I want to break out the month, the day, and the year as integers so that I can use ``` Dat...
- Modified
- 25 Jun at 13:53
Understanding unique keys for array children in React.js
I'm building a React component that accepts a JSON data source and creates a sortable table. Each of the dynamic data rows has a unique key assigned to it but I'm still getting an error of: > Each c...
- Modified
- 4 Feb at 20:16
How to reference a method in javadoc?
How can I use the `@link` tag to link to a method? I want to change: ``` /** * Returns the Baz object owned by the Bar object owned by Foo owned by this. * A convenience method, equivalent to getF...
typedef struct vs struct definitions
I'm a beginner in C programming, but I was wondering what's the difference between using `typedef` when defining a structure versus not using `typedef`. It seems to me like there's really no differenc...
Is an entity body allowed for an HTTP DELETE request?
When issuing an HTTP DELETE request, the request URI should completely identify the resource to delete. However, is it allowable to add extra meta-data as part of the entity body of the request?
Update Git branches from master
I have four branches (master, b1, b2, and b3). After I worked on b1-b3, I realized I have something to change on branch master that should be in all other branches. I changed what I needed in `master`...
- Modified
- 28 Dec at 23:48
Best way to repeat a character in C#
What is the best way to generate a string of `\t`'s in C# I am learning C# and experimenting with different ways of saying the same thing. `Tabs(uint t)` is a function that returns a `string` with `t`...
Move branch pointer to different commit without checkout
To move the branch pointer of a checked out branch, one can use the `git reset --hard` command. But how to move the branch pointer of a not-checked out branch to point at a different commit (keeping a...
- Modified
- 13 Jun at 10:48