Questions

100% width Twitter Bootstrap 3 template

I am a bootstrap newbie and I have a 100% wide template that I want to code with bootstrap. The first column begins at the left corner and I have a Google map the stretches to the rightmost. I thought...

Ajax Upload image

Q.1 I would like to convert this form to ajax but it seems like my ajax code lacks something. On submit doesn't do anything at all. Q2. I also want the function to fire on change when the file has b...

15 Dec at 08:24

how to take user input in Array using java?

how to take user input in Array using Java? i.e we are not initializing it by ourself in our program but the user is going to give its value.. please guide!!

15 May at 12:47

How to format date with hours, minutes and seconds when using jQuery UI Datepicker?

Is it possible to format a date with [jQuery UI Datepicker](http://jqueryui.com/datepicker/) as to show hours, minutes and seconds? This is my current mockup: ``` $(function() { $('#datepicker')...

How do I get the SharedPreferences from a PreferenceActivity in Android?

I am using a PreferenceActivity to show some settings for my application. I am inflating the settings via a xml file so that my onCreate (and complete class methods) looks like this: ``` public clas...

horizontal scrollbar on top and bottom of table

I've a very large `table` on my page. So I decided to put a horizontal scrollbar on the bottom of the table. But I would like this scrollbar to be also on top on the table. What I have in the templat...

28 Jan at 15:16

No submodule mapping found in .gitmodule for a path that's not a submodule

I have a project that has a submodule at `lib/three20` My `.gitmodule` file looks like this: ``` [submodule "lib/three20"] path = lib/three20 url = git://github.com/facebook/three20.git ``` ...

15 Nov at 14:38

Inheriting constructors

Why does this code: ``` class A { public: explicit A(int x) {} }; class B: public A { }; int main(void) { B *b = new B(5); delete b; } ``` Result in these errors: Shouldn'...

7 Mar at 06:39

How can I create an array with key value pairs?

How can I add key value pairs to an array? This won't work: ``` public function getCategorieenAsArray(){ $catList = array(); $query = "SELECT DISTINCT datasource_id, title FROM table"; ...

10 Jun at 12:39

The project cannot be built until the build path errors are resolved.

While compiling an android project in eclipse 3.4.2, I am getting I got a from the blog [http://www.scottdstrader.com/blog/ether_archives/000921.html](http://www.scottdstrader.com/blog/ether_arch...

2 May at 22:41

Copy an entire worksheet to a new worksheet in Excel 2010

I have found similar questions that deal with copying an entire worksheet in one workbook and pasting it to another workbook, but I am interested in simply copying an entire worksheet and pasting it t...

26 Mar at 17:3

AccessDenied for ListObjects for S3 bucket when permissions are s3:*

I am getting: > An error occurred (AccessDenied) when calling the ListObjects operation: Access Denied When I try to get folder from my S3 bucket. Using this command: ``` aws s3 cp s3://bucket-...

What are file descriptors, explained in simple terms?

1. What would be a more simplified description of file descriptors compared to Wikipedia's? Why are they required? Say, take shell processes as an example and how does it apply for it? 2. Does a proc...

Regular Expressions and negating a whole character group

I'm attempting something which I feel should be fairly obvious to me but it's not. I'm trying to match a string which does NOT contain a specific sequence of characters. I've tried using `[^ab]`, `[...

10 Jun at 18:11

How to format strings in Java

Primitive question, but how do I format strings like this: > "Step {1} of {2}" by substituting variables using Java? In C# it's easy.

28 Aug at 17:31

grep a tab in UNIX

How do I `grep` tab (\t) in files on the Unix platform?

16 Feb at 04:47

How can I navigate back to the last cursor position in Visual Studio Code?

What is the keyboard shortcut to navigate back to the last cursor position in Visual Studio Code?

Select all from table with Laravel and Eloquent

I am using Laravel 4 to set up my first model to pull all the rows from a table called `posts`. In standard MySQL I would use: ``` SELECT * FROM posts; ``` How do I achieve this in my Laravel 4 m...

23 May at 00:33

How do I add a simple jQuery script to WordPress?

I read the Codex and a few blog posts about using jQuery in WordPress, and its very frustrating. I've got as far as loading jQuery in `functions.php` file, but all of the guides out there are crappy b...

13 Mar at 16:48

How do I calculate the date in JavaScript three months prior to today?

I Am trying to form a date which is 3 months before the current date. I get the current month by the below code ``` var currentDate = new Date(); var currentMonth = currentDate.getMonth()+1; ``` Ca...

29 Oct at 05:55

Python NoneType object is not callable (beginner)

It tells me line 1 and line 5 (new to debugging/programming, not sure if that helps) ``` def hi(): print('hi') def loop(f, n): # f repeats n times if n <= 0: return else: ...

13 Apr at 20:36

Adding Permissions in AndroidManifest.xml in Android Studio?

In Eclipse we were able to add permissions in AndroidManifest.xml by going to AndroidManifest.xml->Permission-> Adding permissions. How to add permissions in Android Studio? How can we get a list of...

22 Jan at 10:47

True and False for && logic and || Logic table

# Table true/false for C Language I have heard of a table true false for C Language for and && or || is kind of the mathematics one for which they say if true+true=true and false+true=false I'm jus...

20 Jul at 11:28

Uncaught SyntaxError: Invalid or unexpected token

I have a razor syntax like this: ``` foreach(var item in model) { <td><a href ="#" onclick="Getinfo(@item.email);" >6/16/2016 2:02:29 AM</a> </td> } ``` My javascript that recieves the req...

16 Jun at 11:56

Increment value in MySQL update query

I have made this code for giving out +1 point, but it doesn't work properly. ``` mysql_query(" UPDATE member_profile SET points= ' ".$points." ' + 1 WHERE user_id = '".$userid."' "); ```...

17 Mar at 18:31