After installing with pip, "jupyter: command not found"
After installing with `pip install jupyter`, terminal still cannot find `jupyter notebook`. Ubuntu simply says `command not found`. Similar with `ipython`. Did `pip` not get install properly or s...
- Modified
- 7 Jun at 12:36
Untrack files from git temporarily
I have setup a local git on my machine. When I initialized git, I added pre-compiled libs and binaries. However, now during my development I don't want to check in those files intermittently. I dont w...
- Modified
- 30 Jun at 05:47
How to display an unordered list in two columns?
With the following HTML, what is the easiest method to display the list as two columns? ``` <ul> <li>A</li> <li>B</li> <li>C</li> <li>D</li> <li>E</li> </ul> ``` Desired display: ...
- Modified
- 16 Nov at 01:59
Detect and exclude outliers in a pandas DataFrame
I have a pandas data frame with few columns. Now I know that certain rows are outliers based on a certain column value. For instance > column 'Vol' has all values around `12xx` and one value is `40...
How to check whether a str(variable) is empty or not?
How do I make a: ``` if str(variable) == [contains text]: ``` condition? (or something, because I am pretty sure that what I just wrote is completely wrong) I am sort of trying to check if a `ra...
- Modified
- 29 Mar at 13:50
Converting string to double in C#
I have a long string with double-type values separated by `#` -`value1#value2#value3#` etc I splitted it to string table. Then, I want to convert every single element from this table to double type a...
- Modified
- 21 Jan at 19:54
How to sum array of numbers in Ruby?
I have an array of integers. For example: ``` array = [123,321,12389] ``` Is there any nice way to get the sum of them? I know, that ``` sum = 0 array.each { |a| sum+=a } ``` would work.
How to get milliseconds from LocalDateTime in Java 8
I am wondering if there is a way to get current milliseconds since 1-1-1970 (epoch) using the new `LocalDate`, `LocalTime` or `LocalDateTime` classes of Java 8. The known way is below: ``` long cu...
- Modified
- 24 Feb at 20:12
how to find host name from IP with out login to the host
i need to find the host name of a UNIX host whose IP is known with out login to that UNIX host
- Modified
- 20 Oct at 11:48
Questions every good .NET developer should be able to answer?
My company is about to hire . We work on a variety of .NET platforms: ASP.NET, Compact Framework, Windowsforms, Web Services. I'd like to compile a list/catalog of good questions, a kind of minimum st...
- Modified
- 24 Dec at 10:32
The remote end hung up unexpectedly while git cloning
My `git` client repeatedly fails with the following error after trying to clone the repository for some time. What could be the issue here? I have registered my SSH key with the GIT hosting provid...
- Modified
- 19 Jun at 02:27
Quickest way to compare two generic lists for differences
What is the quickest (and least resource intensive) to compare two massive (>50.000 items) and as a result have two lists like the ones below: 1. items that show up in the first list but not in the ...
How do I block comment in Jupyter notebook?
I want to comment out a block of multiple lines in Jupyter Notebook, but can't find out how to do that in this current version. It used to be in one of the drop down menus but is no longer there. How...
- Modified
- 12 Jan at 21:26
Add all files to a commit except a single file?
I have a bunch of files in a changeset, but I want to specifically ignore a single modified file. Looks like this after `git status`: ``` # modified: main/dontcheckmein.txt # deleted: main/plzch...
Do you have to include <link rel="icon" href="favicon.ico" type="image/x-icon" />?
I didn't include the following line of code in my head tag, however my favicon still appears in my browser: ``` <link rel="icon" href="favicon.ico" type="image/x-icon" /> ``` What's the purpose of ...
How to delete a certain row from mysql table with same column values?
I have a problem with my queries in MySQL. My table has 4 columns and it looks something like this: ``` id_users id_product quantity date 1 2 1 2013 1 ...
- Modified
- 27 Oct at 16:22
How to render HTML string as real HTML?
Here's what I tried and how it goes wrong. This works: ``` <div dangerouslySetInnerHTML={{ __html: "<h1>Hi there!</h1>" }} /> ``` This doesn't: ``` <div dangerouslySetInnerHTML={{ __html: this.pr...
- Modified
- 29 Jul at 06:52
How to have a default option in Angular.js select box
I have searched Google and can't find anything on this. I have this code. ``` <select ng-model="somethingHere" ng-options="option.value as option.name for option in options" ></select> ``` ...
- Modified
- 3 Nov at 15:35
C error: undefined reference to function, but it IS defined
Just a simple program, but I keep getting this compiler error. I'm using MinGW for the compiler. Here's the header file, : ``` //type for a Cartesian point typedef struct { double x; double y; }...
- Modified
- 17 Mar at 13:30
Calling remove in foreach loop in Java
In Java, is it legal to call remove on a collection when iterating through the collection using a foreach loop? For instance: ``` List<String> names = .... for (String name : names) { // Do somet...
Where is git.exe located?
I have PyCharm and I am looking around trying to find git.exe to set it up with my repo. What is the PATH to git.exe?
- Modified
- 6 Feb at 21:4
How to use unicode characters in Windows command line?
We have a project in Team Foundation Server (TFS) that has a non-English character (š) in it. When trying to script a few build-related things we've stumbled upon a problem - we can't pass the letter...
- Modified
- 22 Dec at 09:6
How can I "disable" zoom on a mobile web page?
I am creating a mobile web page that is basically a big form with several text inputs. However (at least on my Android cellphone), every time I click on some input the whole page zooms there, obscuri...
TypeError: $(...).DataTable is not a function
I am trying to work with jQuery's Datatable JS for my project from [this](https://www.datatables.net/) link. I downloaded the complete library from the same source. All the examples given in the pack...
- Modified
- 8 Jul at 14:20
How to define an empty object in PHP
with a new array I do this: ``` $aVal = array(); $aVal[key1][var1] = "something"; $aVal[key1][var2] = "something else"; ``` Is there a similar syntax for an object ``` (object)$oVal = ""; $oVal-...