Questions

How do I clear a combobox?

I have some combo-boxes that are set up as drop down lists, and the user can pick a number in them. I also have a Clear button that should clear the text from the combo boxes but I can't seem to get i...

12 Apr at 17:43

Get name of property as a string

(See below solution I created using the answer I accepted) I'm trying to improve the maintainability of some code involving reflection. The app has a .NET Remoting interface exposing (among other thin...

30 Aug at 11:57

HTML5 event handling(onfocus and onfocusout) using angular 2

I have a date field and I want to remove the place holder by default. I am using javascript `onfocus` and `onfocusout` events for removing placeholder. Can anyone help with using angular2 directive?...

5 May at 12:25

How to concatenate multiple column values into a single column in Pandas dataframe

This question is same to [this posted](https://stackoverflow.com/questions/11858472/pandas-combine-string-and-int-columns) earlier. I want to concatenate three columns instead of concatenating two col...

8 Jul at 07:44

How to disable phone number linking in Mobile Safari?

Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is turning that into a phone numb...

22 Oct at 15:0

how to convert date to a format `mm/dd/yyyy`

I'm having a `sql table` with date column named `CREATED_TS` which holds the dates in different format eg. as shown below ``` Feb 20 2012 12:00AM 11/29/12 8:20:53 PM Feb 20 2012 12:00AM 11...

1 Dec at 11:28

MySql: Tinyint (2) vs tinyint(1) - what is the difference?

I knew boolean in mysql as `tinyint (1)`. Today I see a table with defined an integer like `tinyint(2)`, and also others like `int(4)`, `int(6)` ... What does the size means in field of type intege...

16 Apr at 17:15

val() doesn't trigger change() in jQuery

I'm trying to trigger the `change` event on a text box when I change its value with a button, but it doesn't work. Check [this fiddle](https://jsfiddle.net/ergec/9z7h2upc/). If you type something in ...

16 Sep at 13:40

Get names of all files from a folder with Ruby

I want to get all file names from a folder using Ruby.

18 Nov at 12:33

How to upper case every first letter of word in a string?

I have a string: "hello good old world" and i want to upper case every first letter of every word, not the whole string with .toUpperCase(). Is there an existing java helper which does the job?

2 Feb at 13:35

How to determine if a type implements an interface with C# reflection

`C#``System.Type` ``` public interface IMyInterface {} public class MyType : IMyInterface {} // should yield 'true' typeof(MyType)./* ????? */MODELS_INTERFACE(IMyInterface); ```

10 Feb at 22:12

jquery get height of iframe content when loaded

I have a Help page, help.php that I am loading inside an iframe in main.php How can I get the height of this page once it has loaded in the iframe? I am asking this because I can't style the height o...

12 Aug at 18:36

Python Key Error=0 - Can't find Dict error in code

basically I have been racking my brains for a good while now as to why my code is not working, I have tested parts separately and have look throughout the web to see if it can help, to no avail. I am ...

25 Apr at 15:44

AWS ssh access 'Permission denied (publickey)' issue

How to connect to a AWS instance through ssh? I have: 1. Signed up at AWS; 2. Created a public key and a certificate at AWS website and saved them to disk; 3. Went to my console and created environ...

11 Jul at 17:8

How can I get the current directory name in Javascript?

I'm trying to get the current directory of the file in Javascript so I can use that to trigger a different jquery function for each section of my site. ``` if (current_directory) = "example" { var ac...

30 Jun at 16:43

how to check if List<T> element contains an item with a Particular Property Value

``` public class PricePublicModel { public PricePublicModel() { } public int PriceGroupID { get; set; } public double Size { get; set; } public double Size2 { get; set; } public i...

8 Feb at 20:6

Method List in Visual Studio Code

I've recently started using the Visual Studio Code editor. I'm really loving it, but there's one critical feature (for me) that I haven't been able to find. Is there a method list, similar to the Na...

8 Jan at 13:29

Simple way to create matrix of random numbers

I am trying to create a matrix of random numbers, but my solution is too long and looks ugly ``` random_matrix = [[random.random() for e in range(2)] for e in range(3)] ``` this looks ok, but in my...

30 Apr at 14:51

Can't compile project when I'm using Lombok under IntelliJ IDEA

I'm trying to use [Lombok](http://projectlombok.org/) in my project that I'm developing using IntelliJ IDEA 11. I've installed [3rd-party plugin for IDEA](http://code.google.com/p/lombok-intellij-plug...

22 Dec at 20:9

Could not load type from assembly error

I have written the following simple test in trying to learn Castle Windsor's Fluent Interface: ``` using NUnit.Framework; using Castle.Windsor; using System.Collections; using Castle.MicroKernel.Regi...

12 May at 18:34

How can I enable cURL for an installed Ubuntu LAMP stack?

I have installed the Ubuntu LAMP stack. But cURL is not enabled, and neither can I can find the extension listed in the INI file. I added it manually, but it didn't work either. How should I enable cU...

13 Feb at 02:3

"ImportError: No module named site" on Windows

I am trying to install Python for the first time. I downloaded the following installer from the Python website: [Python 2.7.1 Windows Installer (Windows binary -- does not include source)](http://www....

java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver

I'm getting this exception when I try to run this program. It's one of the Microsoft examples. I've added the sqljdbc4.jar to the classpath in netbeans for both compile and Run, via the project proper...

Increasing the maximum post size

There is a lot of data being submitted no file uploads and the `$_SERVER['CONTENT_LENGTH']` is being exceeded. Can this be increased?

5 Feb at 18:58

How to align a div to the top of its parent but keeping its inline-block behaviour?

See: [http://jsfiddle.net/b2BpB/1/](http://jsfiddle.net/b2BpB/1/) Q: How can you make box1 and box3 align to the top of the parent div `boxContainer`? ``` #boxContainerContainer { background: #fdd...

9 Aug at 14:39