Questions

How to start automatic download of a file in Internet Explorer?

How do I initialize an automatic download of a file in Internet Explorer? For example, in the download page, I want the download link to appear and a message: "If you download doesn't start automatic...

How to render an array of objects in React?

could you please tell me how to render a list in react js. I do like this [https://plnkr.co/edit/X9Ov5roJtTSk9YhqYUdp?p=preview](https://plnkr.co/edit/X9Ov5roJtTSk9YhqYUdp?p=preview) ``` class First e...

2 Aug at 06:28

How do I write a bash script to restart a process if it dies?

I have a python script that'll be checking a queue and performing an action on each item: ``` # checkqueue.py while True: check_queue() do_something() ``` How do I write a bash script that will...

23 Feb at 06:54

Index all *except* one item in python

Is there a simple way to index all elements of a list (or array, or whatever) for a particular index? E.g., - `mylist[3]` will return the item in position 3- `milist[~3]` will return the whole lis...

26 Sep at 01:15

C# How can I check if a URL exists/is valid?

I am making a simple program in visual c# 2005 that looks up a stock symbol on Yahoo! Finance, downloads the historical data, and then plots the price history for the specified ticker symbol. I know ...

1 Oct at 13:53

What are the rules for JavaScript's automatic semicolon insertion (ASI)?

Well, first I should probably ask if this is browser dependent. I've read that if an invalid token is found, but the section of code is valid until that invalid token, a semicolon is inserted before ...

How can I change image tintColor in iOS and WatchKit

I have an UIImageView called "theImageView", with UIImage in a single color (transparent background) just like the left black heart below. How can I change the tint color of this image programmaticall...

13 Jan at 21:2

DateTimePicker: pick both date and time

Is it possible to use DateTimePicker (Winforms) to pick both date and time (in the dropdown)? How do you change the custom display of the picked value? Also, is it possible to enable the user to type ...

22 Feb at 21:58

How to download all files (but not HTML) from a website using wget?

How to use `wget` and get all the files from website? I need all files except the webpage files like HTML, PHP, ASP etc.

24 Aug at 16:9

How do I make a single legend for many subplots?

I am plotting the same type of information, but for different countries, with multiple subplots with Matplotlib. That is, I have nine plots on a 3x3 grid, all with the same for lines (of course, diffe...

28 Aug at 16:21

Windows 7 - 'make' is not recognized as an internal or external command, operable program or batch file

I have Windows 7 and tried to use the 'make' command but 'make' is not recognized as an internal or external command. I did `Start -> cmd -> run -> make`, which outputs: > 'make' is not recognized a...

29 Jul at 04:14

How to select a CRAN mirror in R

I'm trying to install a package through the R prompt by doing the following: ``` install.packages('RMySQL') ``` But the output is as follows: ``` --- Please select a CRAN mirror for use in this s...

23 Jan at 19:58

How to subtract X days from a date using Java calendar?

Anyone know a simple way using Java calendar to subtract X days from a date? I have not been able to find any function which allows me to directly subtract X days from a date in Java. Can someone poi...

8 Oct at 08:30

Should I use Singular or Plural name convention for REST resources?

Some RESTful services use different resource URIs for update/get/delete and Create. Such as - - - I'm little bit confused about this URI naming convention. Should we use plural or singular for resour...

28 Dec at 23:52

Tree view of a directory/folder in Windows?

In Linux/KDE, I can see a directory as a tree. How can I do it in Windows 7? Consider I do NOT mean "Windows Explorer". This just shows the directories, I also want the files.

Increasing (or decreasing) the memory available to R processes

I would like to increase (or decrease) the amount of memory available to R. What are the methods for achieving this?

14 Jul at 19:29

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled

My Autoconfiguration file is not working in Spring-Boot application. I attach my configuration application file below: ``` @Configuration @EnableAutoConfiguration @ComponentScan @SpringBootApplicatio...

11 Sep at 08:34

How to create an empty R vector to add new items

I want to use R in Python, as provided by the module Rpy2. I notice that R has very convenient `[]` operations by which you can extract the specific columns or lines. How could I achieve such a functi...

20 Jul at 13:26

Find location of a removable SD card

Is there a universal way to find the location of an external SD card? Please, do not be confused with [External Storage](http://developer.android.com/guide/topics/data/data-storage.html#filesExternal)...

1 Aug at 08:35

Can a local variable's memory be accessed outside its scope?

I have the following code. ``` #include <iostream> int * foo() { int a = 5; return &a; } int main() { int* p = foo(); std::cout << *p; *p = 8; std::cout << *p; } ``` And the...

How to display the function, procedure, triggers source code in postgresql?

How to print functions and triggers sourcecode in postgresql? please let me know if any one know the query to display the function, triggers source code.

27 Jul at 21:11

Compare DATETIME and DATE ignoring time portion

I have two tables where column `[date]` is type of `DATETIME2(0)`. I have to compare two records only by theirs Date parts (day+month+year), discarding Time parts (hours+minutes+seconds). How can I ...

How to find day of week in php in a specific timezone

I am confused while using php to handle date/time. What I am trying to do is this: When a user visits my page I am asking his timezone and then displaying the 'day of week' in his timezone. I don't ...

30 Jun at 17:0

Xampp-mysql - "Table doesn't exist in engine" #1932

Xampp error after moving xampp folder: [](https://i.stack.imgur.com/Fwc8O.png) Apache is running fine: [](https://i.stack.imgur.com/DEy9P.png) as given below image i'm sucess to run apache but una...

1 Jul at 12:36

How to calculate the sum of the datatable column in asp.net?

I have a DataTable which has 5 columns: - - - - - The DataTable contains 5 rows. How can I show the sum of the Amount Column in a Label Control as "Total Amount"?

29 Feb at 08:32