How does the compilation/linking process work?
How does the compilation and linking process work? [Stack Overflow's C++ FAQ](https://stackoverflow.com/questions/tagged/c++-faq)[the posting on meta that started all this](https://meta.stackexchange....
- Modified
- 26 Mar at 13:0
C++11 rvalues and move semantics confusion (return statement)
I'm trying to understand rvalue references and move semantics of C++11. What is the difference between these examples, and which of them is going to do no vector copy? ## First example ``` std::vec...
- Modified
- 20 Jun at 09:12
Change date format in a Java string
I've a `String` representing a date. ``` String date_s = "2011-01-18 00:00:00.0"; ``` I'd like to convert it to a `Date` and output it in `YYYY-MM-DD` format. > 2011-01-18 How can I achieve this?...
- Modified
- 5 Aug at 13:6
What is an index in SQL?
Also, when is it appropriate to use one?
List of Stored Procedures/Functions Mysql Command Line
How can I see the list of the stored procedures or stored functions in mysql command line like `show tables;` or `show databases;` commands.
- Modified
- 3 Dec at 14:29
Updating to latest version of CocoaPods?
I'm having some issues installing `Alamofire 4.0` into my project. I've got the latest version of , running , and when I try to install alamofire I'm getting like 800 compiler errors. Apparently > Coc...
Multidimensional Array [][] vs [,]
``` double[][] ServicePoint = new double[10][9]; // <-- gives an error (1) double[,] ServicePoint = new double[10,9]; // <-- ok (2) ``` What's their difference? yields an error, what's the reason? ...
- Modified
- 11 Mar at 19:30
Why do we need the "finally" clause in Python?
I am not sure why we need `finally` in `try...except...finally` statements. In my opinion, this code block ``` try: run_code1() except TypeError: run_code2() other_code() ``` is the same wi...
- Modified
- 4 Dec at 12:30
How to pretty print nested dictionaries?
How can I pretty print a dictionary with depth of ~4 in Python? I tried pretty printing with `pprint()`, but it did not work: ``` import pprint pp = pprint.PrettyPrinter(indent=4) pp.pprint(mydict) ...
- Modified
- 18 Oct at 23:31
jQuery same click event for multiple elements
Is there any way to execute same code for different elements on the page? ``` $('.class1').click(function() { some_function(); }); $('.class2').click(function() { some_function(); }); ``` in...
How to assign a heredoc value to a variable in Bash?
I have this multi-line string (quotes included): ``` abc'asdf" $(dont-execute-this) foo"bar"'' ``` How would I assign it to a variable using a heredoc in Bash? I don't want to escape the charact...
How to diff a commit with its parent
Aside from writing an alias or script, is there a shorter command for getting the diff for a particular commit? ``` git diff 15dc8^..15dc8 ``` If you only give the single commit id `git diff 15dc8`, ...
Converting dictionary to JSON
``` r = {'is_claimed': 'True', 'rating': 3.5} r = json.dumps(r) file.write(str(r['rating'])) ``` I am not able to access my data in the JSON. What am I doing wrong? ``` TypeError: string indices mu...
- Modified
- 28 May at 17:15
What in the world are Spring beans?
I am yet to find a high-level definition of Spring beans that I can understand. I see them referenced often in Grails documentation and books, but I think that understanding what they are would be ben...
Find index of last occurrence of a substring in a string
I want to find the position (or index) of the last occurrence of a certain substring in given input string `str`. For example, suppose the input string is `str = 'hello'` and the substring is `target...
Improve subplot size/spacing with many subplots
I need to generate a whole bunch of vertically-stacked plots in matplotlib. The result will be saved using `savefig` and viewed on a webpage, so I don't care how tall the final image is, as long as th...
- Modified
- 26 Aug at 20:28
What is the difference between "is None" and "== None"
I recently came across this syntax, I am unaware of the difference. I would appreciate it if someone could tell me the difference.
- Modified
- 21 Jan at 22:36
How to emulate GPS location in the Android Emulator?
I want to get longitude and latitude in Android emulator for testing. Can any one guide me how to achieve this? How do I set the location of the emulator to a test position?
- Modified
- 25 Dec at 03:33
How to navigate through textfields (Next / Done Buttons)
How can I navigate through all my text fields with the "Next" Button on the iPhone Keyboard? The last text field should close the Keyboard. I've setup the IB the Buttons (Next / Done) but now I'm st...
- Modified
- 1 May at 14:58
Differences between a multidimensional array "[,]" and an array of arrays "[][]" in C#?
What are the differences between multidimensional arrays `double[,]` and array of arrays `double[][]` in C#? If there is a difference? What is the best use for each one?
- Modified
- 9 Feb at 11:27
Can anonymous class implement interface?
Is it possible to have an anonymous type implement an interface? I've got a piece of code that I would like to work, but don't know how to do this. I've had a couple of answers that either say no, o...
- Modified
- 27 Aug at 19:33
How can I add a border to a widget in Flutter?
I'm using Flutter and I'd like to add a border to a widget (in this case, a `Text` widget). I tried `TextStyle` and `Text`, but I didn't see how to add a border.
- Modified
- 28 Feb at 16:56
Global Angular CLI version greater than local version
When running `ng serve` I get this warning about my global CLI version being greater than my local version. I don't notice any issues from this warning, but I was wondering if the two versions should ...
- Modified
- 23 Dec at 19:25
Loading/Downloading image from URL on Swift
I'd like to load an image from a URL in my application, so I first tried with Objective-C and it worked, however, with Swift, I've a compilation error: > 'imageWithData' is unavailable: use object c...
Is Task.Result the same as .GetAwaiter.GetResult()?
I was recently reading some code that uses a lot of async methods, but then sometimes needs to execute them synchronously. The code does: ``` Foo foo = GetFooAsync(...).GetAwaiter().GetResult(); ``` ...
- Modified
- 29 Oct at 07:44