How do you keep parents of floated elements from collapsing?
Although elements like `<div>`s normally grow to fit their contents, using the `float` property can cause a startling problem for CSS newbies: For example: ``` <div> <div style="float: left;">Div 1...
Loop through each cell in a range of cells when given a Range object
Let's say I have the following code: ``` Sub TestRangeLoop() Dim rng As Range Set rng = Range("A1:A6") ''//Insert code to loop through rng here End Sub ``` I want to be able to iterate...
How to create a signed APK file using Cordova command line interface?
I made a sample application named `checkStatus`. Now I want to create a signed APK file. So I can install it in different devices for my testing. For this, I Googled and found this [documentation](ht...
How to resolve "Input string was not in a correct format." error?
``` <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <asp:Label ID="Label1" runat="server" AssociatedControlID="TextBox2" Text="Label"></asp:Label> <asp:SliderExtender ID="Sli...
No log4j2 configuration file found. Using default configuration: logging only errors to the console
``` $ java -Dlog4j.configuration=file:///path/to/your/log4j2.xml -jar /path/to/your/jar_file.jar ``` Written to the console, you get ``` ERROR StatusLogger No log4j2 configuration file found. Using...
Find duplicate characters in a String and count the number of occurrences using Java
How can I find the number of occurrences of a character in a string? . Some example outputs are below, ``` 'a' = 1 'o' = 4 'space' = 8 '.' = 1 ```
- Modified
- 23 Dec at 20:16
Can I use multiple versions of jQuery on the same page?
A project I'm working on requires the use of jQuery on customers' Web pages. Customers will insert a chunk of code that we'll supply which includes a few `<script>` elements that build a widget in a `...
- Modified
- 20 Apr at 10:10
Program "make" not found in PATH
I'm having the Program "make" not found in PATH error in eclipse. I checked the path variable which is: ``` C:\cygwin\bin; %JAVA_HOME%\bin; %ANT_HOME%\bin; %ANDROID_SDK%\tools; %ANDROID_SDK%\platform...
How do I set Tomcat Manager Application User Name and Password for NetBeans?
I'm trying to follow a tutorial to make an extremely basic Java web application in NetBeans. When I try to run it, a dialogue box appears title "Authentication Required". Inside the dialogue box the...
How can I add new dimensions to a Numpy array?
I'm starting off with a numpy array of an image. ``` In[1]:img = cv2.imread('test.jpg') ``` The shape is what you might expect for a 640x480 RGB image. ``` In[2]:img.shape Out[2]: (480, 640, 3) ``...
jQuery/JavaScript to replace broken images
I have a web page that includes a bunch of images. Sometimes the image isn't available, so a broken image is displayed in the client's browser. How do I use jQuery to get the set of images, filter it...
- Modified
- 15 May at 19:54
How can I clear the input text after clicking
Using jQuery, how can I clear the input text after I made a click? By default, the value remains in the input field. For example, I have an input text and the value is `TEXT`. When I perform a click,...
- Modified
- 22 Apr at 10:54
Simple state machine example in C#?
Again thanks for the examples, they have been very helpful and with the following, I don't mean to take anything away from them. Aren't the currently given examples, as far as I understand them & sta...
- Modified
- 20 Jul at 15:54
mongodb group values by multiple fields
For example, I have these documents: ``` { "addr": "address1", "book": "book1" }, { "addr": "address2", "book": "book1" }, { "addr": "address1", "book": "book5" }, { "addr": "address3",...
- Modified
- 3 Jun at 01:23
How to set the size of a column in a Bootstrap responsive table
How do you set the size of a column in a Bootstrap responsive table? I don't want the table to loose its reponsive features. I need it to work in IE8 as well. I have included HTML5SHIV and Respond. I...
- Modified
- 19 Aug at 14:3
How can I create a self-signed cert for localhost?
I've gone through the steps detailed in [How do you use https / SSL on localhost?](https://stackoverflow.com/questions/5874390/how-do-you-use-https-ssl-on-localhost) but this sets up a self-signed cer...
- Modified
- 23 May at 10:31
How to remove a newline from a string in Bash
I have the following variable. ``` echo "|$COMMAND|" ``` which returns ``` | REBOOT| ``` How can I remove that first newline?
How do I use a delimiter with Scanner.useDelimiter in Java?
``` sc = new Scanner(new File(dataFile)); sc.useDelimiter(",|\r\n"); ``` I don't understand how delimiter works, can someone explain this in layman terms?
- Modified
- 23 Mar at 06:6
Undefined reference to main - collect2: ld returned 1 exit status
I'm trying to compile a program (called es3), but, when I write from terminal: `gcc es3.c -o es3` it appears this message: ``` /usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function ...
Make Bootstrap Popover Appear/Disappear on Hover instead of Click
I'm building a website with Bootstrap's [Popover](http://twitter.github.com/bootstrap/javascript.html#popovers) and I can't figure out how to make the popover appear on hover instead of click. All I ...
- Modified
- 21 Apr at 06:36
Online SQL Query Syntax Checker
I need an online sql query syntax validator. I searched online but didn't find anything good. I saw the references in this question too: [Syntax Checker and Validator for SQL?](https://stackoverf...
- Modified
- 24 Jul at 12:46
syntax error when using command line in python
I am having trouble using the command line. I have a script test.py (which only contains `print("Hello.")`), and it is located in the map C:\Python27. In my system variables, I have specified python t...
- Modified
- 19 Dec at 21:14
Flutter give container rounded border
I'm making a `Container()`, I gave it a border, but it would be nice to have rounded borders. This is what I have now: ``` Container( width: screenWidth / 7, decoration: BoxDecoration( ...
- Modified
- 28 Feb at 16:55
What is an IIS application pool?
What exactly is an application pool? What is its purpose?
- Modified
- 30 Nov at 11:51
How do I make a batch file terminate upon encountering an error?
I have a batch file that's calling the same executable over and over with different parameters. How do I make it terminate immediately if one of the calls returns an error code of any level? Basical...
- Modified
- 19 Sep at 10:13