Questions

How to create own dynamic type or dynamic object in C#?

There is, for example, the [ViewBag](http://msdn.microsoft.com/en-us/library/system.web.mvc.controllerbase.viewbag%28v=vs.98%29.aspx) property of `ControllerBase` class and we can dynamically get/set ...

29 Mar at 08:45

GitHub - List commits by author

Is there any way on [GitHub](http://github.com/) to list all commits made by a single author, in the browser (neither locally, e.g. via `git log`, nor via the API)? Clicking on a user name in the lis...

20 Jun at 20:7

form serialize javascript (no framework)

Wondering is there a function in javascript without jquery or any framework that allows me to serialize the form and access the serialized version?

28 Jan at 20:0

Get position/offset of element relative to a parent container?

How can I retrieve the offset of a container relative to a parent with pure JS?

18 May at 06:7

How do I merge multiple lists into one list?

I have many lists: ``` ['it'] ['was'] ['annoying'] ``` I want to merge those into a single list: ``` ['it', 'was', 'annoying'] ```

12 Sep at 08:35

How to get the browser language using JavaScript

> [JavaScript for detecting browser language preference](https://stackoverflow.com/questions/1043339/javascript-for-detecting-browser-language-preference) I want to detect the language of the ...

23 Jul at 16:59

Foreign Key to multiple tables

I've got 3 relevant tables in my database. ``` CREATE TABLE dbo.Group ( ID int NOT NULL, Name varchar(50) NOT NULL ) CREATE TABLE dbo.User ( ID int NOT NULL, Name varchar(50) NOT N...

21 Oct at 03:3

What's an object file in C?

I am reading about libraries in C but I have not yet found an explanation on what an object file is. What's the real difference between any other compiled file and an object file? I would be glad if s...

2 Nov at 15:35

Bin size in Matplotlib (Histogram)

I'm using matplotlib to make a histogram. Is there any way to manually set the size of the bins as opposed to the number of bins?

15 Nov at 12:43

Find files containing a given text

In bash I want to return file name (and the path to the file) for every file of type `.php|.html|.js` containing the case-insensitive string `"document.cookie" | "setcookie"` How would I do that?

16 Apr at 18:18

How to force an entire layout View refresh?

I want to force the main layout resource view to redraw / refresh, in say the Activity.onResume() method. How can I do this ? By main layout view, I mean the one ('R.layout.mainscreen' below) that i...

3 Feb at 14:37

What is the proper way to display the full InnerException?

What is the proper way to show my full `InnerException`. I found that some of my InnerExceptions has another `InnerException` and that go's on pretty deep. Will `InnerException.ToString()` do the job ...

13 Apr at 06:43

PHPMyAdmin Default login password

I have done a fresh installation of Fedora 14 and installed the phpMyAdmin module. When I run phpMyAdmin, it asks me for a username and password. What is the default username and password for phpMyA...

17 Aug at 15:36

How to create an infinite loop in Windows batch file?

This is basically what I want in a batch file. I want to be able to re-run "Do Stuff" whenever I press any key to go past the "Pause". ``` while(true){ Do Stuff Pause } ``` Looks like the...

Generating matplotlib graphs without a running X server

Matplotlib seems to require the $DISPLAY environment variable which means a running X server.Some web hosting services do not allow a running X server session.Is there a way to generate graphs using m...

14 Sep at 20:37

bash assign default value

> ${parameter:=word} Assign Default Values. If parameter is unset or null, the expansion of word is assigned to parameter. The value of parameter is then substituted. Positi...

2 Dec at 12:27

Checking for the correct number of arguments

How do i check for the correct number of arguments (one argument). If somebody tries to invoke the script without passing in the correct number of arguments, and checking to make sure the command line...

3 Dec at 01:12

Copy rows from one Datatable to another DataTable?

How can I copy specific rows from DataTable to another Datable in c#? There will be more than one row.

4 Mar at 17:12

Custom checkbox image android

Is there an easy way to use a custom image for a checkbox? I'm looking to duplicate the "starred" behavior of gmail. So I want to have a checkbox that, when checked, is a filled in star. And when unch...

19 Oct at 05:7

Transmitting newline character "\n"

Given the following URL (working, try it!) > [https://select-test.wp3.rbsworldpay.com/wcc/purchase?instId=151711&cartId=28524&currency=GBP&amount=1401.49&testMode=100&name=Tom%20Gul&address=24%20Hous...

6 Oct at 10:55

Can you center a Button in RelativeLayout?

I'm trying to center a button in relative layout, is this possible? I've tried the Gravity and Orientation functions but they don't do anything.

20 Sep at 02:20

Is there a virtual environment for node.js?

I've searched the wiki modules page, but I can't find anything similar to virtualenv (python) or rvm. Anyone here separates node.js in their own env? I really don't like to install npm system-wide. ...

How to get the separate digits of an int number?

I have numbers like 1100, 1002, 1022 etc. I would like to have the individual digits, for example for the first number 1100 I want to have 1, 1, 0, 0. How can I get it in Java?

2 Aug at 16:0

Integer.toString(int i) vs String.valueOf(int i) in Java

I am wondering why the method `String.valueOf(int i)` exists ? I am using this method to convert `int` into `String` and just discovered the `Integer.toString(int i)` method. After looking the implem...

2 Feb at 12:59

set gvim font in .vimrc file

I am using gVim 7.2 on Windows 7. I can set the gui font as Consolas 10 (font size) from the menu. I am trying to set this in `.vimrc` file like below: ``` set guifont=Consolas\ 10 ``` But it doesn...

19 Jul at 21:40