How to set a fixed width column with CSS flexbox
I want the red box to be only 25 em wide when it's in the side-by-side view - I'm trying to achieve this by setting the CSS inside this media query: ``` @media all and (min-width: 811px) {...} ``` to...
Detecting when user scrolls to bottom of div with jQuery
I have a div box (called flux) with a variable amount of content inside. This divbox has overflow set to auto. Now, what I am trying to do, is, when the use scroll to the bottom of this DIV-box, load...
- Modified
- 14 May at 09:59
How can a Java program get its own process ID?
How do I get the id of my Java process? I know there are several platform-dependent hacks, but I would prefer a more generic solution.
Excel VBA Run Time Error '424' object required
I am totally new in VBA and coding in general, am trying to get data from cells from the same workbook (get framework path ...) and then to start application (QTP) and run tests. I am getting this er...
How to get values of selected items in CheckBoxList with foreach in ASP.NET C#?
I have a CheckBoxList like this: ``` <asp:CheckBoxList ID="CBLGold" runat="server" CssClass="cbl"> <asp:ListItem Value="TGJU"> TG </asp:ListItem> <asp:ListItem Value="GOLDOZ"> Gold </asp:List...
- Modified
- 19 Feb at 21:9
How do I convert a TimeSpan to a formatted string?
I have two DateTime vars, beginTime and endTime. I have gotten the difference of them by doing the following: ``` TimeSpan dateDifference = endTime.Subtract(beginTime); ``` How can I now return a s...
Consider marking event handler as 'passive' to make the page more responsive
I am using hammer for dragging and it is getting choppy when loading other stuff, as this warning message is telling me. > Handling of 'touchstart' input event was delayed for X ms due to main thre...
- Modified
- 7 Nov at 20:4
how to stop a for loop
I'm writing a code to determine if every element in my nxn list is the same. i.e. `[[0,0],[0,0]]` returns true but `[[0,1],[0,0]]` will return false. I was thinking of writing a code that stops immedi...
- Modified
- 11 Mar at 09:14
jQuery: how to get which button was clicked upon form submission?
I have a `.submit()` event set up for form submission. I also have multiple forms on the page, but just one here for this example. I'd like to know which submit button was clicked without applying a...
React JS Error: is not defined react/jsx-no-undef
I'm developing a map functionality using `ReactJS`, My `app.js` file is: ``` import React, { Component } from 'react'; import './Map'; class App extends Component { render() { return ( ...
- Modified
- 16 Mar at 06:48
Python TypeError: not enough arguments for format string
Here's the output. These are utf-8 strings I believe... some of these can be NoneType but it fails immediately, before ones like that... ``` instr = "'%s', '%s', '%d', '%s', '%s', '%s', '%s'" % soft...
Run a Command Prompt command from Desktop Shortcut
Is it possible to create a desktop shortcut that, when pressed, will open command prompt and run a pre-defined command?
- Modified
- 16 Mar at 13:48
Get index of a row of a pandas dataframe as an integer
Assume an easy dataframe, for example ``` A B 0 1 0.810743 1 2 0.595866 2 3 0.154888 3 4 0.472721 4 5 0.894525 5 6 0.978174 6 7 0.859449 7 8 0.541247 8 9 0.232302 9...
c# open a new form then close the current form?
For example, Assume that I'm in form 1 then I want: 1. Open form 2( from a button in form 1) 2. Close form 1 3. Focus on form 2
How do I set the background color of my main screen in Flutter?
I'm learning Flutter, and I'm starting from the very basics. I'm not using MaterialApp. What's a good way to set the background color of the whole screen? Here's what I have so far: ``` import 'pack...
Java String.split() Regex
I have a string: ``` String str = "a + b - c * d / e < f > g >= h <= i == j"; ``` I want to split the string on all of the operators, but include the operators in the array, so the resulting array...
Proper LINQ where clauses
I write a fair amount of LINQ in my day to day life, but mostly simple statements. I have noticed that when using `where` clauses, there are many ways to write them and each have the same results as ...
How do I get the time of day in javascript/Node.js?
I want to get , 1 being 1am Pacific Time. How can I get that number in Node.JS? I want to know what time it is in Pacific time right now.
- Modified
- 9 Sep at 06:5
Transpose list of lists
Let's take: ``` l = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] ``` The result I'm looking for is ``` r = [[1, 4, 7], [2, 5, 8], [3, 6, 9]] ``` and not ``` r = [(1, 4, 7), (2, 5, 8), (3, 6, 9)] ```
Querying data by joining two tables in two database on different servers
There are two tables in two different databases on different servers, I need to join them so as to make few queries. What options do I have? What should I do?
- Modified
- 3 Mar at 09:52
Changing upload_max_filesize on PHP
I'm using PHP 5.3.0 and have encountered something that might be a bug (in which case I'll report it) or might be me - so I'm asking to make sure. When running this code: ``` <?php ini_set('upload_m...
Dynamically add data to a javascript map
Is there a way I can dynamically add data to a map in javascript. A `map.put(key,value)`? I am using the yui libraries for javascript, but didn't see anything there to support this.
- Modified
- 12 Nov at 12:2
How to specify the actual x axis values to plot as x axis ticks in R
I am creating a plot in R and I dont like the x axis values being plotted by R. For example: ``` x <- seq(10,200,10) y <- runif(x) plot(x,y) ``` This plots a graph with the following values on th...
Setting href attribute at runtime
What is the best way to set the `href` attribute of the `<a>` tag at run time using jQuery? Also, how do you get the value of the `href` attribute of the `<a>` tag using jQuery?
- Modified
- 10 Oct at 13:13
How to generate auto increment field in select query
For example I have a table with 2 columns, `first_name` and `last_name` with these values ``` Ali Khani Elizabette Amini Britney Spears ,... ``` I want to write a `select` query ...
- Modified
- 15 May at 04:33