pip installs packages successfully, but executables not found from command line
I am working on mac OS X Yosemite, version 10.10.3. I installed python2.7 and pip using macport as done in [http://johnlaudun.org/20150512-installing-and-setting-pip-with-macports/](http://johnlaudu...
Starting a shell in the Docker Alpine container
To start an interactive shell for the Ubuntu image we can run: ``` ole@T:~$ docker run -it --rm ubuntu root@1a6721e1fb64:/# ls bin boot dev etc home lib lib64 media mnt opt proc root run ...
- Modified
- 7 Aug at 12:29
Purpose of installing Twitter Bootstrap through npm?
Question 1: What exactly is the purpose of installing Twitter Bootstrap through npm? I thought npm was meant for server side modules. Is it faster to serve the bootstrap files yourself than using a C...
- Modified
- 28 Dec at 12:45
Is SecureString ever practical in a C# application?
Feel free to correct me if my assumptions are wrong here, but let me explain why I'm asking. Taken from MSDN, a `SecureString`: > Represents text that should be kept confidential. The text is encryp...
App can't be opened because it is from an unidentified developer
I installed Mac OS X Mavericks (10.9) yesterday and since then I am not able to start my Eclipse. I am attaching a screenshot of the message I see. Is there a workaround for this? ![Enter image desc...
- Modified
- 19 Jul at 21:25
Select rows which are not present in other table
I've got two postgresql tables: ``` table name column names ----------- ------------------------ login_log ip | etc. ip_location ip | location | hostname | etc. ``` I want to get e...
- Modified
- 4 Jan at 16:59
Android Studio: Module won't show up in "Edit Configuration"
I've imported a project to Android Studio with several subprojects. I want to run a subproject. I successfully made this subproject's build.gradle as a module. In order to run it, I went to Run ...
- Modified
- 23 May at 05:4
How to increase maximum execution time in php
I want to increase in php , not by changing `php.ini` file. I want to Increase it from my php file. Is this possible?
- Modified
- 28 Aug at 14:0
How to "crop" a rectangular image into a square with CSS?
I know that it is impossible to actually modify an image with CSS, which is why I put crop in quotes. What I'd like to do is take rectangular images and use CSS to make them appear square without di...
Get selected option text with JavaScript
I have a dropdown list like this: ``` <select id="box1"> <option value="98">dog</option> <option value="7122">cat</option> <option value="142">bird</option> </select> ``` How can I get the actual o...
- Modified
- 10 Jun at 11:0
NPM global install "cannot find module"
I wrote a module which I published to npm a moment ago (https://npmjs.org/package/wisp) So it installs fine from the command line: `$ npm i -g wisp` However, when I run it from the command line, I ...
Concatenate a NumPy array to another NumPy array
I have a numpy_array. Something like `[ a b c ]`. And then I want to concatenate it with another NumPy array (just like we create a list of lists). How do we create a NumPy array containing NumPy arra...
In-place edits with sed on OS X
I'd like edit a file with sed on OS X. I'm using the following command: ``` sed 's/oldword/newword/' file.txt ``` The output is sent to the terminal. is not modified. The changes are saved to ...
Checking if jquery is loaded using Javascript
I am attempting to check if my Jquery Library is loaded onto my HTML page. I am checking to see if it works, but something is not right. Here is what I have: ``` <html xmlns="http://www.w3.org/1999...
- Modified
- 27 Jun at 19:19
Undo a merge by pull request?
Someone accepted a pull request which they shouldn't have. Now we have a bunch of broken code merged in. How do you undo a pull request? I was just going to revert the changes to the commit just befor...
- Modified
- 6 Jan at 02:4
Android - Package Name convention
For the "Hello World" example in [android.com](http://developer.android.com/resources/tutorials/hello-world.html), the package name is `"package com.example.helloandroid;"` Is there any guideline/sta...
Phone: numeric keyboard for text input
Is there a way to force the number keyboard to come up on the phone for an `<input type="text">`? I just realized that [<input type="number">](http://www.w3.org/TR/html-markup/input.number.html) in HT...
- Modified
- 10 Oct at 09:58
How to get exit code when using Python subprocess communicate method?
How do I retrieve the exit code when using Python's `subprocess` module and the `communicate()` method? Relevant code: ``` import subprocess as sp data = sp.Popen(openRTSP + opts.split(), stdout=sp....
- Modified
- 11 Nov at 20:3
"A lambda expression with a statement body cannot be converted to an expression tree"
In using the , I get the error "`A lambda expression with a statement body cannot be converted to an expression tree`" when trying to compile the following code: ``` Obj[] myArray = objects.Select(o ...
- Modified
- 7 Feb at 21:13
Where is Java's Array indexOf?
I must be missing something very obvious, but I've searched all over and can't find this method.
Regex to test if string begins with http:// or https://
I'm trying to set a regexp which will check the start of a string, and if it contains either `http://` or `https://` it should match it. How can I do that? I'm trying the following which isn't workin...
- Modified
- 10 Jan at 02:6
Override devise registrations controller
I have added a field to the sign-up form that is based on a different model, see [How do I use nested attributes with the devise model](https://stackoverflow.com/questions/3544265/how-do-i-use-nested-...
- Modified
- 23 May at 12:26
Dropping Unique constraint from MySQL table
How can I drop the "Unique Key Constraint" on a column of a MySQL table using phpMyAdmin?
- Modified
- 18 Mar at 20:17
How to Set Opacity (Alpha) for View in Android
I have a button as in the following: ``` <Button android:text="Submit" android:id="@+id/Button01" android:layout_width="fill_parent" android:layout_height="wrap_content"> </Bu...
C++ equivalent of StringBuffer/StringBuilder?
Is there a C++ Standard Template Library class that provides efficient string concatenation functionality, similar to C#'s [StringBuilder](http://msdn.microsoft.com/en-us/library/system.text.stringbui...
- Modified
- 17 Mar at 14:20