Bootstrap 4 - Glyphicons migration?
We have a project that uses glyphicons intensively. Bootstrap v4 drops the glyphicon font altogether. Is there an equivalent for icons shipped with Bootstrap V4? [](https://i.stack.imgur.com/98yvZ.p...
- Modified
- 25 Sep at 15:22
Running an outside program (executable) in Python?
I just started working on Python, and I have been trying to run an outside executable from Python. I have an executable for a program written in Fortran. Let’s say the name for the executable is flow...
- Modified
- 3 Jun at 15:13
Printing leading 0's in C
I'm trying to find a good way to print leading `0`, such as `01001` for a [ZIP Code](https://en.wikipedia.org/wiki/ZIP_Code). While the number would be stored as `1001`, what is a good way to do it? I...
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
Calculate date/time difference in java
I want to in hours/minutes/seconds. I have a slight problem with my code here it is : ``` String dateStart = "11/03/14 09:29:58"; String dateStop = "11/03/14 09:33:43"; // Custom date format Simp...
Shell script - remove first and last quote (") from a variable
Below is the snippet of a shell script from a larger script. It removes the quotes from the string that is held by a variable. I am doing it using sed, but is it efficient? If not, then what is the ef...
How to change an element's title attribute using jQuery
I have an form input element and want to change its title attribute. This has to be easy as pie, but for some reason I cannot find how to do this. How is this done, and where and how should I be sea...
- Modified
- 12 Aug at 17:46
Regular expression to match balanced parentheses
I need a regular expression to select all the text between two outer brackets. Example: `START_TEXT(text here(possible text)text(possible text(more text)))END_TXT` `^ ^` Result: `(text here(possible t...
- Modified
- 19 Apr at 12:33
Issue with virtualenv - cannot activate
I created a virtualenv around my project, but when I try to activate it I cannot. It might just be syntax or folder location, but I am stumped right now. You can see below, I create the virtualenv an...
- Modified
- 1 Dec at 02:21
How to filter empty or NULL names in a QuerySet?
I have `first_name`, `last_name` & `alias` (optional) which I need to search for. So, I need a query to give me all the names that have an alias set. Only if I could do: ``` Name.objects.filter(alia...
- Modified
- 20 Feb at 03:4
CSS selector for a checked radio button's label
Is it possible to apply a css(3) style to a label of a checked radio button? I have the following markup: ``` <input type="radio" id="rad" name="radio"/> <label for="rad">A Label</label> ``` What ...
Missing Maven dependencies in Eclipse project
We have a project set up with maven for resolving dependancies. It usually works fine, but now I am trying to compile and run it on a new PC and I have problem with missing dependencies in Eclipse. W...
How do I remove all non alphanumeric characters from a string except dash?
How do I remove all non alphanumeric characters from a string except dash and space characters?
How do you divide each element in a list by an int?
I just want to divide each element in a list by an int. ``` myList = [10,20,30,40,50,60,70,80,90] myInt = 10 newList = myList/myInt ``` This is the error: ``` TypeError: unsupported operand type(s...
- Modified
- 22 Oct at 21:23
Version of Apache installed on a Debian machine
How can I check which version of Apache is installed on a Debian machine? Is there a command for doing this?
JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
I am getting the following error when trying to get a JSON request and process it: > org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class com.mywe...
- Modified
- 22 Oct at 19:15
How to execute mongo commands through shell scripts?
I want to execute `mongo` commands in shell script, e.g. in a script `test.sh`: ``` #!/bin/sh mongo myDbName db.mycollection.findOne() show collections ``` When I execute this script via `./test.sh...
How to remove origin from git repository
Basic question: How do I disassociate a git repo from the origin from which it was cloned? `git branch -a` shows: ``` * master remotes/origin/HEAD -> origin/master ``` and I want to remove all k...
htaccess Access-Control-Allow-Origin
I'm creating a script that loads externally on other sites. It loads CSS and HTML and works fine on my own servers. However, when I try it on another website it displays this awful error: ``` Access...
- Modified
- 2 Feb at 09:25
How to manually include external aar package using Gradle for Android
I've been experimenting with the new android build system and I've run into a small issue. I've compiled my own aar package of ActionBarSherlock which I've called 'actionbarsherlock.aar'. What I'm t...
- Modified
- 25 Jan at 16:12
Get Current Session Value in JavaScript?
I have a scenario where I open my web application in a browser but in two separate tabs. In one tab I signed out from the application and as a result the all session values becomes null. While in the...
Difference between map, applymap and apply methods in Pandas
Can you tell me when to use these vectorization methods with basic examples? I see that `map` is a `Series` method whereas the rest are `DataFrame` methods. I got confused about `apply` and `applyma...
- Modified
- 20 Jan at 17:7
Getter and Setter declaration in .NET
I was wondering what were the differences between those declaration of getters and setters and if there is a preferred method (and why). The first one can be generated automaticly by Visual Studio. Ho...
- Modified
- 15 Feb at 15:29
How do I use MySQL through XAMPP?
I installed XAMPP v3.2.1 because I wanted to learn how to create database in MySQL and learn more about TOMCAT. However, I am a little confused about what to do now. I have read many blogs and the doc...
What is the curl error 52 "empty reply from server"?
I have a cron job setup on one server to run a backup script in PHP that is hosted on another server. The command I've been using is ``` curl -sS http://www.example.com/backup.php ``` Lately I've bee...