Which version of PostgreSQL am I running?
I'm in a corporate environment (running Debian Linux) and didn't install it myself. I access the databases using Navicat or phpPgAdmin (if that helps). I also don't have shell access to the server run...
- Modified
- 29 Dec at 13:16
Shortcut to Apply a Formula to an Entire Column in Excel
If I select a cell containing a formula, I know I can drag the little box in the right-hand corner downwards to apply the formula to more cells of the column. Unfortunately, I need to do this for 300,...
- Modified
- 14 Jun at 15:57
Reason for Column is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
I got an error - > Column 'Employee.EmpID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. --- ``` select loc.LocationID, emp...
- Modified
- 11 May at 22:29
Merge development branch with master
I have two branches namely `master` and `development` in a GitHub Repository. I am doing all my development in development branch as shown. ``` git branch development git add * git commit -m "My ini...
How to loop through PHP object with dynamic keys
I tried to parse a JSON file using PHP. But I am stuck now. This is the content of my JSON file: ``` { "John": { "status":"Wait" }, "Jennifer": { "status":"Active" }, ...
How to execute a stored procedure within C# program
I want to execute this stored procedure from a C# program. I have written the following stored procedure in a SqlServer query window and saved it as stored1: ``` use master go create procedure dbo...
- Modified
- 25 Jul at 22:57
Print the contents of a DIV
Whats the best way to print the contents of a DIV?
- Modified
- 19 Feb at 03:59
Can I delete a git commit but keep the changes?
In one of my development branches, I made some changes to my codebase. Before I was able to complete the features I was working on, I had to switch my current branch to master to demo some features. B...
HTTP Error 503, the service is unavailable
I'm really new to setting up web servers in general. I've got IIS 8 on Windows 8, and I'm trying to set up a little site locally, while doing some development. In IIS I choose Add Site, give a name, p...
- Modified
- 27 Nov at 21:2
How do I count the number of occurrences of a char in a String?
I have the string ``` a.b.c.d ``` I want to count the occurrences of '.' in an idiomatic way, preferably a one-liner. (Previously I had expressed this constraint as "without a loop", in case you'...
How to enumerate an enum?
How can you enumerate an `enum` in C#? E.g. the following code does not compile: ``` public enum Suit { Spades, Hearts, Clubs, Diamonds } public void EnumerateAllSuitsDemoMethod() {...
- Modified
- 24 Nov at 00:35
Word-wrap in an HTML table
I've been using `word-wrap: break-word` to wrap text in `div`s and `span`s. However, it doesn't seem to work in table cells. I have a table set to `width:100%`, with one row and two columns. Text in c...
- Modified
- 20 Jan at 16:58
React.js inline style best practices
I'm aware that you can specify styles within React classes, like this: ``` const MyDiv = React.createClass({ render: function() { const style = { color: 'white', fontSize: 200 };...
- Modified
- 29 Aug at 06:26
How to use glob() to find files recursively?
This is what I have: ``` glob(os.path.join('src','*.c')) ``` but I want to search the subfolders of src. Something like this would work: ``` glob(os.path.join('src','*.c')) glob(os.path.join('src'...
- Modified
- 20 Mar at 00:35
How to close TCP and UDP ports via windows command line
Does somebody knows how to close a TCP or UDP socket for a single connection via windows command line? Googling about this, I saw some people asking the same thing. But the answers looked like a manu...
- Modified
- 31 Jan at 13:41
How do I get the application exit code from a Windows command line?
I am running a program and want to see what its return code is (since it returns different codes based on different errors). I know in Bash I can do this by running > echo $? What do I do when usin...
- Modified
- 2 Dec at 18:4
How can I detect pressing Enter on the keyboard using jQuery?
I would like to detect whether the user has pressed using jQuery. How is this possible? Does it require a plugin? It looks like I need to use the [keypress()](http://docs.jquery.com/Events/keypress) ...
- Modified
- 28 Apr at 20:49
How do I create a message box with "Yes", "No" choices and a DialogResult?
I want to make simple Yes/No choiced MessageBox, but I think it is nonsense to design a form for that. I thought I could use MessageBox, add buttons, etc. to accomplish this. It is simple, but since t...
- Modified
- 1 Mar at 18:29
Is there a NumPy function to return the first index of something in an array?
I know there is a method for a Python list to return the first index of something: ``` >>> xs = [1, 2, 3] >>> xs.index(2) 1 ``` Is there something like that for NumPy arrays?
How to make a background 20% transparent on Android
How do I make the background of a `Textview` about 20% transparent (not fully transparent), where there is a color in the background (i.e. white)?
- Modified
- 28 Apr at 21:11
Removing an element from an Array (Java)
Is there any fast (and nice looking) way to remove an element from an array in Java?
How do I add files and folders into GitHub repos?
I created an account on GitHub and I'm facing a problem with adding files. I have added `readme.txt`. Also, I have 3 other PHP files and a folder including images. How do I add the files and folder? I...
Download a file by jQuery.Ajax
I have a Struts2 action in the server side for file downloading. ``` <action name="download" class="com.xxx.DownAction"> <result name="success" type="stream"> <param name="contentType">te...
- Modified
- 28 Dec at 13:48
PHP Pass variable to next page
It seems pretty simple but I can't find a good way to do it. Say in the first page I create a variable ``` $myVariable = "Some text"; ``` And the form's action for that page is "Page2.php". So in ...
How do I reference a local image in React?
How can I load image from local directory and include it in `reactjs img src` tag? I have an image called `one.jpeg` inside the same folder as my component and I tried both `<img src="one.jpeg" />` a...
- Modified
- 4 Jul at 15:58