Questions

HttpServletRequest - Get query string parameters, no form data

In [HttpServletRequest](http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html), `getParameterMap` returns a Map of all query string parameters and post data parameters. I...

27 Jul at 15:43

Starting Docker as Daemon on Ubuntu

Have been using Docker successfully for a few weeks but today when I was following a set of instructions which suggested adding the following two lines to the docker configuration file at `/etc/init/d...

20 Jun at 09:12

Show compose SMS view in Android

I want to send a sms with Android. What is the intent for SMS sending? I want to show the compose sms view with my pre-define text passing over in message field.

16 Jul at 13:26

How to convert list of numpy arrays into single numpy array?

Suppose I have ; ``` LIST = [[array([1, 2, 3, 4, 5]), array([1, 2, 3, 4, 5],[1,2,3,4,5])] # inner lists are numpy arrays ``` I try to convert; ``` array([[1, 2, 3, 4, 5], [1, 2, 3, 4, 5], ...

17 Dec at 01:16

SSH SCP Local file to Remote in Terminal Mac Os X

I am attempting to copy a local file 'magento.tar.gz' from my local machine to a remote server using SSH through a VPN. This is connecting to the Virtual Machine's Internal IP which I've used as xx.x....

6 Aug at 03:23

How can you export the Visual Studio Code extension list?

I need to send all my installed extensions to my colleagues. How can I export them? The extension manager seems to do nothing... It won't install any extension.

25 May at 08:19

Shortcut to create properties in Visual Studio?

I have seen some people creating properties in C# really fast, but how did they do it? What shortcuts are available in Visual Studio (currently using Visual Studio 2010) to create properties? I am u...

jQuery selector for the label of a checkbox

``` <input type="checkbox" name="filter" id="comedyclubs"/> <label for="comedyclubs">Comedy Clubs</label> ``` If I have a check box with a label describing it, how can I select the label using jQuer...

25 Mar at 00:14

How to reference static assets within vue javascript

I'm looking for the right url to reference static assets, like images within Vue javascript. For example, I'm creating a leaflet marker using a custom icon image, and I've tried several urls, but the...

15 Nov at 16:57

How would I stop a while loop after n amount of time?

how would I stop a while loop after 5 minutes if it does not achieve what I want it to achieve. ``` while true: test = 0 if test == 5: break test = test - 1 ``` This code throws...

23 Mar at 20:15

SQL query for getting data for last 3 months

How can you get today's date and convert it to `01/mm /yyyy` format and get data from the table with delivery month 3 months ago? Table already contains delivery month as `01/mm/yyyy`.

Combining C++ and C - how does #ifdef __cplusplus work?

I'm working on a project that has a lot of legacy code. We've started writing in C++, with the intent to eventually convert the legacy code, as well. I'm a little confused about how the and C++ in...

30 May at 06:8

Count records for every month in a year

I have a table with total no of 1000 records in it.It has the following structure: ``` EMP_ID EMP_NAME PHONE_NO ARR_DATE 1 A 545454 2012/03/12 ``` I want to calculate no of records ...

27 Mar at 11:46

How can I sort generic list DESC and ASC?

How can I sort generic list DESC and ASC? With LINQ and without LINQ? I'm using VS2008. ``` class Program { static void Main(string[] args) { List<int> li = new List<int>(); ...

8 Aug at 20:50

C# Convert List<string> to Dictionary<string, string>

This may seem an odd thing to want to do but ignoring that, is there a nice concise way of converting a `List<string>` to `Dictionary<string, string>` where each Key Value Pair in the Dictionary is ju...

27 Oct at 20:32

How to filter multiple values (OR operation) in angularJS

I want to use the `filter` in angular and want to filter for multiple values, if it has either one of the values then it should be displayed. I have for example this structure: An object `movie` w...

Left align block of equations

I want to left align a block of equations. The equations in the block itself are aligned, but that's not related at all to my question! I want to left align the equations rather than have them centere...

13 Apr at 19:37

laravel collection to array

I have two models, `Post` and `Comment`; many comments belong to a single post. I'm trying to access all comments associated with a post as an array. I have the following, which gives a collection. ...

9 Feb at 06:3

Check date between two other dates spring data jpa

I have this model: ``` public class Event { private String name; private Date start; private Date end; } ``` and repository as ``` @Repository public interface EventRepository extends Jpa...

Where are environment variables stored in the Windows Registry?

I need to access an environment variable remotely. To do this, I think the best way is to read it from registry. Where are environment variables stored in the Windows Registry?

How to check if a column exists in a datatable

I have a datable generated with the content of a csv file. I use other information to map some column of the csv (now in the datatable) to information the user is required to fill. In the best world ...

1 Apr at 11:49

Requests -- how to tell if you're getting a 404

I'm using the Requests library and accessing a website to gather data from it with the following code: ``` r = requests.get(url) ``` I want to add error testing for when an improper URL is entered...

29 Dec at 09:5

How to check if an element is visible with WebDriver

With `WebDriver` from Selenium 2.0a2 I am having trouble checking if an element is visible. `WebDriver.findElement` returns a `WebElement`, which unfortunately doesn't offer an `isVisible` method. I ...

27 Nov at 19:32

Passing an array as an argument to a function in C

I wrote a function containing array as argument, and call it by passing value of array as follows. ``` void arraytest(int a[]) { // changed the array a a[0] = a[0] + a[1]; a[1] = a[0] - a[...

Any way to select without causing locking in MySQL?

Query: ``` SELECT COUNT(online.account_id) cnt from online; ``` But online table is also modified by an event, so frequently I can see lock by running `show processlist`. Is there any grammar in M...

4 Sep at 15:55