What's the purpose of the LEA instruction?
For me, it just seems like a funky MOV. What's its purpose and when should I use it?
Gitignore not working
My `.gitignore` file isn't working for some reason, and no amount of Googling has been able to fix it. Here is what I have: ``` *.apk *.ap_ *.dex *.class **/bin/ **/gen/ .gradle/ build/ local.propert...
How do I ignore an error on 'git pull' about my local changes would be overwritten by merge?
How do I ignore the following error message on Git pull? > Your local changes to the following files would be overwritten by merge What if I to overwrite them? I've tried things like `git pull -f`...
How can I do a FULL OUTER JOIN in MySQL?
I want to do a [full outer join](https://en.wikipedia.org/wiki/Join_(SQL)#Full_outer_join) in MySQL. Is this possible? Is a supported by MySQL?
- Modified
- 7 Aug at 22:6
Multi-Line Comments in Ruby?
How can I comment multiple lines in Ruby?
- Modified
- 23 Sep at 18:15
Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server
This should be dead simple, but I get it to work for the life of me. I'm just trying to connect remotely to my MySQL server. - Connecting as:``` mysql -u root -h localhost -p ``` - works fine, but tr...
- Modified
- 28 Jun at 15:52
IEnumerable vs List - What to Use? How do they work?
I have some doubts over how Enumerators work, and LINQ. Consider these two simple selects: ``` List<Animal> sel = (from animal in Animals join race in Species ...
- Modified
- 12 Sep at 13:53
How to check whether an object is a date?
I have an annoying bug in on a webpage: > date.GetMonth() is not a function So, I suppose that I am doing something wrong. The variable `date` is not an object of type `Date`. I tried to add a `if ...
- Modified
- 21 Aug at 15:25
What's your favorite "programmer" cartoon?
Personally I like this one: ![](https://i.stack.imgur.com/ZNtvc.jpg) P.S. Do not hotlink the cartoon without the site's permission please.
- Modified
- 31 May at 02:15
Can the :not() pseudo-class have multiple arguments?
I'm trying to select `input` elements of all `type`s except `radio` and `checkbox`. Many people have shown that you can put multiple arguments in `:not`, but using `type` doesn't seem to work anyway ...
- Modified
- 26 Aug at 10:35
How to use multiprocessing pool.map with multiple arguments
In the Python [multiprocessing](https://docs.python.org/3/library/multiprocessing.html) library, is there a variant of `pool.map` which supports multiple arguments? ``` import multiprocessing text = ...
- Modified
- 15 Dec at 17:12
Can I catch multiple Java exceptions in the same catch clause?
In Java, I want to do something like this: ``` try { ... } catch (/* code to catch IllegalArgumentException, SecurityException, IllegalAccessException, and NoSuchFieldException ...
- Modified
- 1 Nov at 20:16
How to apply !important using .css()?
I am having trouble applying a style that is `!important`. I’ve tried: ``` $("#elem").css("width", "100px !important"); ``` This does ; no width style whatsoever is applied. Is there a jQuery-ish w...
- Modified
- 11 Apr at 20:25
Can I use a :before or :after pseudo-element on an input field?
I am trying to use the `:after` CSS pseudo-element on an `input` field, but it does not work. If I use it with a `span`, it works OK. ``` <style type="text/css"> .mystyle:after {content:url(smiley.g...
- Modified
- 14 Nov at 04:16
How to delete all files and folders in a directory?
Using C#, how can I delete all files and folders from a directory, but still keep the root directory?
Random number generator only generating one random number
I have the following function: ``` //Function to get random number public static int RandomNumber(int min, int max) { Random random = new Random(); return random.Next(min, max); } ``` How I...
Disable ONLY_FULL_GROUP_BY
I accidentally enabled ONLY_FULL_GROUP_BY mode like this: ``` SET sql_mode = 'ONLY_FULL_GROUP_BY'; ``` How do I disable it?
- Modified
- 30 Jul at 16:38
C# List<string> to string with delimiter
Is there a function in C# to quickly convert some collection to string and separate values with delimiter? For example: `List<string> names` --> `string names_together = "John, Anna, Monica"`
Insert HTML into view from AngularJS controller
Is it possible to create an fragment in an AngularJS controller and have this HTML shown in the view? This comes from a requirement to turn an inconsistent JSON blob into a nested list of `id: value...
- Modified
- 17 Apr at 18:43
Most efficient way to create a zero filled JavaScript array?
What is the most efficient way to create an arbitrary length zero filled array in JavaScript?
- Modified
- 18 Aug at 18:11
What is the difference between range and xrange functions in Python 2.X?
Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far that it is faster) or what besides that is different about ``` for i in range(0, 20): for i i...
- Modified
- 26 Nov at 09:17
Docker how to change repository name or rename image?
I'm trying to change repository name of the image: ``` REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE server latest d583c3ac45f...
- Modified
- 4 Jan at 09:56
Argument list too long error for rm, cp, mv commands
I have several hundred PDFs under a directory in UNIX. The names of the PDFs are really long (approx. 60 chars). When I try to delete all PDFs together using the following command: ``` rm -f *.pdf `...
- Modified
- 11 Nov at 17:28
Hiding the scroll bar on an HTML page
Can CSS be used to hide the scroll bar? How would you do this?
Best way to find if an item is in a JavaScript array?
What is the best way to find if an object is in an array? This is the best way I know: ``` function include(arr, obj) { for (var i = 0; i < arr.length; i++) { if (arr[i] == obj) return true; ...
- Modified
- 11 Feb at 19:12