Font Awesome icon inside text input element
I am trying to insert a user icon inside username input field. I've tried one of the solution from the [similar question](https://stackoverflow.com/questions/14736496/use-font-awesome-icons-in-css) ...
- Modified
- 23 May at 10:31
Global variables in AngularJS
I have a problem where i'm initialising a variable on the scope in a controller. Then it gets changed in another controller when a user logs in. This variable is used to control things such as the nav...
- Modified
- 28 Jul at 15:55
ReferenceError: $ is not defined
I have this error message `ReferenceError: $ is not defined` This is my header. ``` <link href="css/global-style.css" rel="stylesheet" type="text/css" media="screen"> <link rel="stylesheet" type="text...
- Modified
- 20 Jul at 06:40
SQL Server - stop or break execution of a SQL script
Is there a way to immediately stop execution of a SQL script in SQL server, like a "break" or "exit" command? I have a script that does some validation and lookups before it starts doing inserts, and...
- Modified
- 2 Dec at 14:52
How do I add an existing directory tree to a project in Visual Studio?
The issue is simple really. Instead of creating folders in Visual Studio, I create a directory structure for my project on the file system. How do I include all the folders and files in a project, kee...
- Modified
- 2 Sep at 23:43
While loop in batch
Here is what I want, inside the `BACKUPDIR`, I want to execute `cscript /nologo c:\deletefile.vbs %BACKUPDIR%` until number of files inside the folder is greater than 21(`countfiles` holds it). Here i...
- Modified
- 13 Jan at 09:0
Android Studio error "Installed Build Tools revision 31.0.0 is corrupted"
I'm on Android Studio 4.2.2. I created a new project and haven't added anything to the starter code and whenever I click , I get this error: > Installed Build Tools revision 31.0.0 is corrupted. Remov...
- Modified
- 15 Aug at 21:6
HTML5 Video // Completely Hide Controls
How Could I completely hide HTML5 video controls? ``` <video width="300" height="200" controls="false" autoplay="autoplay"> <source src="video/supercoolvideo.mp4" type="video/mp4" /> </video> ``` f...
More than one file was found with OS independent path 'META-INF/LICENSE'
When I build my app, I get the following error: > Error: Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. More than one file was found with OS independent path 'META-INF...
- Modified
- 14 Feb at 13:29
How to clear https proxy setting of NPM?
How can I clear the previous ssl proxy setting of NPM? well, I search a lot, but all post I got is mainly about how to `set` proxy in corporate network. I try to set proxy to nothing: ``` npm confi...
gpg: no valid OpenPGP data found
I am trying to install Jenkins on Ubuntu 13.10 and I am getting the above mentioned error when i try to run the following command: ``` wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key...
- Modified
- 19 Apr at 13:3
How do you redirect HTTPS to HTTP?
How do you redirect HTTPS to HTTP?. That is, the opposite of what (seemingly) everyone teaches. I have a server on HTTPS for which I paid an SSL certification for and a mirror for which I haven't and...
how to delete all commit history in github?
I want to delete all commit history but keep the code in its current state because, in my commit history, there are too many unused commits. How can I do it? Is there any git command can do this? `...
How can strings be concatenated?
How to concatenate strings in python? For example: ``` Section = 'C_type' ``` Concatenate it with `Sec_` to form the string: ``` Sec_C_type ```
- Modified
- 23 May at 15:43
MySQL: selecting rows where a column is null
I'm having a problem where when I try to select the rows that have a NULL for a certain column, it returns an empty set. However, when I look at the table in phpMyAdmin, it says null for most of the r...
How to delete a file after checking whether it exists
How can I delete a file in C# e.g. `C:\test.txt`, although apply the same kind of method like in batch files e.g. ``` if exist "C:\test.txt" delete "C:\test.txt" else return nothing (ignore) ``` ...
What is the difference between range and xrange functions in Python 2.X?
Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far that it is faster) or what besides that is different about ``` for i in range(0, 20): for i i...
- Modified
- 26 Nov at 09:17
How to escape a JSON string containing newline characters using JavaScript?
I have to form a JSON string in which a value is having new line character. This has to be escaped and then posted using AJAX call. Can any one suggest a way to escape the string with JavaScript. I am...
- Modified
- 23 Jul at 15:12
How do I create a foreign key in SQL Server?
I have never "hand-coded" object creation code for SQL Server and foreign key decleration is seemingly different between SQL Server and Postgres. Here is my sql so far: ``` drop table exams; drop tab...
- Modified
- 15 Oct at 07:56
write a shell script to ssh to a remote machine and execute commands
I have two questions: 1. There are multiple remote linux machines, and I need to write a shell script which will execute the same set of commands in each machine. (Including some sudo operations). H...
Remove a JSON attribute
if I have a JSON object say: ``` var myObj = {'test' : {'key1' : 'value', 'key2': 'value'}} ``` can I remove 'key1' so it becomes: ``` {'test' : {'key2': 'value'}} ```
- Modified
- 2 Aug at 19:39
Regex select all text between tags
What is the best way to select all the text between 2 tags - ex: the text between all the '`<pre>`' tags on the page.
- Modified
- 22 Jun at 18:9
How can I combine multiple rows into a comma-delimited list in Oracle?
I have a simple query: ``` select * from countries ``` with the following results: ``` country_name ------------ Albania Andorra Antigua ..... ``` I would like to return the results in one row, ...
- Modified
- 23 May at 12:34
How do I make jQuery wait for an Ajax call to finish before it returns?
I have a server side function that requires login. If the user is logged in the function will return 1 on success. If not, the function will return the login-page. I want to call the function using ...