Questions

to_string is not a member of std, says g++ (mingw)

I am making a small vocabulary remembering program where words would would be flashed at me randomly for meanings. I want to use standard C++ library as Bjarne Stroustroup tells us, but I have encount...

23 May at 12:18

What is the correct way to do a CSS Wrapper?

I have heard a lot of my friends talk about using wrappers in CSS to center the "main" part of a website. Is this the best way to accomplish this? What is best practice? Are there other ways?

12 Jul at 20:31

adding directory to sys.path /PYTHONPATH

I am trying to import a module from a particular directory. The problem is that if I use `sys.path.append(mod_directory)` to append the path and then open the python interpreter, the directory `mod_...

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...

7 Apr at 10:31

Delete a row in Excel VBA

I have this piece of code which finds the excel row of an item from a list and deletes the items from a list. What I want... is to delete the Excel row as well. The code is here ``` Private Sub impe...

21 Oct at 15:40

Is there any way I can define a variable in LaTeX?

In LaTeX, how can I define a string variable whose content is used instead of the variable in the compiled PDF? Let's say I'm writing a tech doc on a software and I want to define the package name in...

21 Jan at 17:8

What is the perfect counterpart in Python for "while not EOF"

To read some text file, in C or Pascal, I always use the following snippets to read the data until EOF: ``` while not eof do begin readline(a); do_something; end; ``` Thus, I wonder how can I d...

21 Oct at 10:2

Get query string parameters url values with jQuery / Javascript (querystring)

Anyone know of a good way to write a jQuery extension to handle query string parameters? I basically want to extend the jQuery magic `($)` function so I can do something like this: ``` $('?search').v...

Moment JS - check if a date is today or in the future

I am trying to use `momentjs` to check if a given date is today or in the future. This is what I have so far: ``` <script type="text/javascript" src="http://momentjs.com/downloads/moment.min.js"></s...

22 Jan at 13:31

Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy

Just started using Xcode 4.5 and I got this error in the console: > Warning: Attempt to present < finishViewController: 0x1e56e0a0 > on < ViewController: 0x1ec3e000> whose view is not in the window h...

16 Nov at 12:40

How to import/include a CSS file using PHP code and not HTML code?

I have googled a lot but it seems that I am doing something wrong. I want to do this: ``` <?php include 'header.php'; include'CSS/main.css'; ... ?> ``` However, my page prints the CSS code. Note...

11 Jun at 12:0

OSError [Errno 22] invalid argument when use open() in Python

``` def choose_option(self): if self.option_picker.currentRow() == 0: description = open(":/description_files/program_description.txt","r") self.information_shower.setT...

30 Aug at 15:45

Multiple radio button groups in one form

Is it possible to have multiple radio button groups in a single form? Usually selecting one button deselects the previous, I just need to have one of a group deselected. ``` <form> <fieldset id="...

2 Apr at 13:58

Best GUI designer for eclipse?

I'm looking for a good GUI designer for swing in eclipse. My preference is for a free/open-source plugin.

27 Aug at 03:6

npm ERR! Error: EPERM: operation not permitted, rename

When I execute `npm install` I get this error > npm ERR! Error: EPERM: operation not permitted, rename C:\projects******\node_modules\react-async-script' -> 'C:\projects*******\node_modules.react-as...

11 Mar at 10:5

HttpWebRequest using Basic authentication

I'm trying to go through an authentication request that mimics the "basic auth request" we're used to seeing when setting up IIS for this behavior. The URL is: [https://telematicoprova.agenziadogane....

Converting a POSTMAN request to Curl

I am calling my java webservice (POST request) via POSTMAN in the following manner which works perfectly fine (i.e. I can see my records getting inserted into the database): [](https://i.stack.imgur.c...

2 Feb at 02:13

How do I get the last inserted ID of a MySQL table in PHP?

I have a table into which new data is frequently inserted. I need to get the very last ID of the table. How can I do this? Is it similar to `SELECT MAX(id) FROM table`?

30 Jan at 17:57

How to declare an array of strings in C++?

I am trying to iterate over all the elements of a static array of strings in the best possible way. I want to be able to declare it on one line and easily add/remove elements from it without having to...

22 Dec at 19:18

An error has occured. Please see log file - eclipse juno

Whenever I start up Eclipse Juno, it gives me an error saying: > An error had occured. Please see the log file:C:\Program Files\eclipse\configuration\1362989254411.log. Some websites say to uninstal...

19 Feb at 13:0

C# list.Orderby descending

I would like to receive a `List` by `Product.Name` in . Similar to the function below which sorts the list in ascending order, just in reverse, is this possible? ``` var newList = list.OrderBy(x => x....

30 Jan at 18:10

"Uncaught TypeError: a.indexOf is not a function" error when opening new foundation project

I've created a new Foundation 5 project through bash, with `foundation new my-project`. When I open the index.html file in Chrome an `Uncaught TypeError: a.indexOf is not a function` error is shown in...

Android: install .apk programmatically

I made this with help from [Android download binary file problems](https://stackoverflow.com/questions/576513/android-download-binary-file-problems) and [Install Application programmatically on Andr...

24 Feb at 09:12

Javascript Confirm popup Yes, No button instead of OK and Cancel

Javascript Confirm popup, I want to show Yes, No button instead of OK and Cancel. I have used this vbscript code: ``` <script language="javascript"> function window.confirm(str) { execSc...

13 Jun at 13:39

Returning http status code from Web Api controller

I'm trying to return a status code of 304 not modified for a GET method in a web api controller. The only way I succeeded was something like this: ``` public class TryController : ApiController { ...