How to change the value of attribute in appSettings section with Web.config transformation
Is it possible to transform the following Web.config appSettings file: ``` <appSettings> <add key="developmentModeUserId" value="00297022" /> <add key="developmentMode" value="true" /> /*...
- Modified
- 23 Feb at 16:28
Installing Apple's Network Link Conditioner Tool
I have installed xcode 4.3.1 on my machine running Lion. I can't find the Network Link Conditioner tool anywhere. I have checked the utilities folder, also the `xcode/contents/developer/*` director...
Add a CSS border on hover without moving the element
I have a row that I am applying a background highlight to on hover. ``` .jobs .item:hover { background: #e1e1e1; border-top: 1px solid #d0d0d0; } ``` However, as the border adds 1px to th...
- Modified
- 25 Feb at 10:25
Bootstrap tooltips not working
I'm going mad here. I've got the following HTML: ``` <a href="#" rel="tooltip" title="A nice tooltip">test</a> ``` And the Bootstrap style tooltip refuses to display, just a normal tooltip. I've...
- Modified
- 3 Jan at 12:16
"Unable to find remote helper for 'https'" during git clone
I am unable to clone HTTPS repositories. I can clone SSH repos fine, but not HTTPS repos. I cannot test the GIT protocol since I am behind a corporate firewall. This is what I am trying to do: ``` $...
Eclipse comment/uncomment shortcut?
I thought this would be easy to achieve, but so far I haven't found solutions for comment/uncomment shortcut on both `Java class editor` and `jsf faceted webapp XHTML file editor` : 1. to quickly co...
- Modified
- 27 Jan at 10:28
Named capturing groups in JavaScript regex?
As far as I know there is no such thing as named capturing groups in JavaScript. What is the alternative way to get similar functionality?
- Modified
- 20 Mar at 08:2
How to change the Eclipse default workspace?
Where can I change the default workspace in Eclipse?
- Modified
- 8 Feb at 14:4
Fastest way to get the first object from a queryset in django?
Often I find myself wanting to get the first object from a queryset in Django, or return `None` if there aren't any. There are lots of ways to do this which all work. But I'm wondering which is the ...
- Modified
- 25 Feb at 23:26
How to set the margin or padding as percentage of height of parent container?
I had been racking my brains over creating a vertical alignment in css using the following ``` .base{ background-color:green; width:200px; height:200px; overflow:auto; pos...
- Modified
- 7 Oct at 01:38
Left padding a String with Zeros
I've seen similar questions [here](https://stackoverflow.com/questions/388461/padding-strings-in-java) and [here](https://stackoverflow.com/questions/473282/left-padding-integers-with-zeros-in-java). ...
What is an IIS application pool?
What exactly is an application pool? What is its purpose?
- Modified
- 30 Nov at 11:51
Split a vector into chunks
I have to split a vector into n chunks of equal size in R. I couldn't find any base function to do that. Also Google didn't get me anywhere. Here is what I came up with so far; ``` x <- 1:10 n <- 3 ch...
Java: Multiple class declarations in one file
In Java, you can define multiple top level classes in a single file, providing that at most one of these is public (see [JLS §7.6](http://docs.oracle.com/javase/specs/jls/se8/html/jls-7.html#jls-7.6))...
Testing two JSON objects for equality ignoring child order in Java
I'm looking for a JSON parsing library that supports comparing two JSON objects ignoring child order, specifically for unit testing JSON returning from a web service. Do any of the major JSON librari...
uint8_t vs unsigned char
What is the advantage of using `uint8_t` over `unsigned char` in C? I know that on almost every system `uint8_t` is just a typedef for `unsigned char`, so why use it?
Converting Dictionary to List?
I'm trying to convert a Python dictionary into a Python list, in order to perform some calculations. ``` #My dictionary dict = {} dict['Capital']="London" dict['Food']="Fish&Chips" dict['2012']="Olym...
- Modified
- 29 Jun at 18:20
Using IQueryable with Linq
What is the use of `IQueryable` in the context of LINQ? Is it used for developing extension methods or any other purpose?
- Modified
- 12 Nov at 08:49
How to create a multiline UITextfield?
I am developing an application where user has to write some information. For this purpose I need a `UITextField` which is multi-line (in general `UITextField` is a single line). As I'm Googling I fin...
- Modified
- 17 Dec at 18:45
How to create a zip archive with PowerShell?
Is it possible to create a zip archive using PowerShell?
- Modified
- 9 Feb at 20:24
How to create JSON string in C#
I just used the XmlWriter to create some XML to send back in an HTTP response. How would you create a JSON string. I assume you would just use a stringbuilder to build the JSON string and them forma...
How to turn a String into a JavaScript function call?
I got a string like: ``` settings.functionName + '(' + t.parentNode.id + ')'; ``` that I want to translate into a function call like so: ``` clickedOnItem(IdofParent); ``` This of course will ha...
- Modified
- 23 Jul at 15:13
How do I access named capturing groups in a .NET Regex?
I'm having a hard time finding a good resource that explains how to use Named Capturing Groups in C#. This is the code that I have so far: ``` string page = Encoding.ASCII.GetString(bytePage); Regex...
Initializing a list to a known number of elements in Python
Right now I am using a list, and was expecting something like: ``` verts = list (1000) ``` Should I use array instead?