How to convert / cast long to String?
I just created sample BB app, which can allow to choose the date. ``` DateField curDateFld = new DateField("Choose Date: ", System.currentTimeMillis(), DateField.DATE | DateField.FIELD_LEFT); ``` ...
- Modified
- 3 Nov at 17:15
How to trigger a click on a link using jQuery
I have a link: ``` <ul id="titleee" class="gallery"> <li> <a href="#inline" rel="prettyPhoto">Talent</a> </li> </ul> ``` and I am trying to trigger it by using: ``` $(document).ready(funct...
Undo working copy modifications of one file in Git?
After the last commit, I modified a bunch of files in my working copy, but I want to undo the changes to one of those files, as in reset it to the same state as the most recent commit. However, I onl...
- Modified
- 11 Jan at 10:49
Install a Python package into a different directory using pip?
I know the obvious answer is to use virtualenv and virtualenvwrapper, but for various reasons I can't/don't want to do that. So how do I modify the command ``` pip install package_name ``` to make...
How to make blinking/flashing text with CSS 3
Currently, I have this code: ``` @-webkit-keyframes blinker { from { opacity: 1.0; } to { opacity: 0.0; } } .waitingForConnection { -webkit-animation-name: blinker; -webkit-animation-iterati...
- Modified
- 25 Sep at 17:20
What is the difference between functional and non-functional requirements?
What is the difference between and requirements in the context of designing a software system? Give examples for each case.
- Modified
- 23 Jan at 20:52
How to keep one variable constant with other one changing with row in excel
Lets say I have one cell A1, which I want to keep constant in a calculation. For example, I want to calculate a value like this: ``` =(B1+4)/(A1) ``` How do I make it so that if I drag that cell to...
- Modified
- 25 Jan at 21:58
How do I change the data type for a column in MySQL?
I want to change the data type of multiple columns from float to int. What is the simplest way to do this? There is no data to worry about, yet.
- Modified
- 31 Aug at 10:44
How to post JSON to a server using C#?
Here's the code I'm using: ``` // create a request HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url); request.KeepAlive = false; request.ProtocolVersion = HttpVersion.Version10; reques...
- Modified
- 9 Sep at 05:21
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...
Showing which files have changed between two revisions
I want to merge two branches that have been separated for a while and wanted to know which files have been modified. Came across this link: [http://linux.yyz.us/git-howto.html](https://web.archive.org...
- Modified
- 28 Dec at 17:17
How can I run a program from a batch file without leaving the console open after the program starts?
For the moment my batch file look like this: ``` myprogram.exe param1 ``` The program starts but the DOS Window remains open. How can I close it?
- Modified
- 4 May at 11:5
Ignore files that have already been committed to a Git repository
I have an already initialized Git repository that I added a `.gitignore` file to. How can I refresh the file index so the files I want ignored get ignored?
- Modified
- 25 May at 23:17
How do I unload (reload) a Python module?
I have a long-running Python server and would like to be able to upgrade a service without restarting the server. What's the best way do do this? ``` if foo.py has changed: unimport foo <-- How ...
- Modified
- 14 Jun at 06:4
Android ADB device offline, can't issue commands
I can't connect to my device anymore using [ADB](http://en.wikipedia.org/wiki/Android_Debug_Bridge) through the command line or in [Eclipse](http://en.wikipedia.org/wiki/Eclipse_%28software%29). Runn...
- Modified
- 20 Feb at 14:21
Redirect stderr and stdout in Bash
I want to redirect both [standard output](https://en.wikipedia.org/wiki/Standard_streams#Standard_output_.28stdout.29) and [standard error](https://en.wikipedia.org/wiki/Standard_streams#Standard_erro...
- Modified
- 3 Aug at 09:51
Recursively counting files in a Linux directory
How can I recursively count files in a Linux directory? I found this: ``` find DIR_NAME -type f ¦ wc -l ``` But when I run this it returns the following error. > find: paths must precede expression: ...
How to connect to SQL Server database from JavaScript in the browser?
Can anybody give me some sample source code showing how to connect to a SQL Server 2005 database from JavaScript locally? I am learning web programming on my desktop. Or do I need to use any other sc...
- Modified
- 28 Sep at 14:0
Strip HTML from Text JavaScript
Is there an easy way to take a string of html in JavaScript and strip out the html?
- Modified
- 25 May at 03:54
What is a correct MIME type for .docx, .pptx, etc.?
For older *.doc documents, this was enough: ``` header("Content-Type: application/msword"); ``` What MIME type should I use for new .docx documents? Also, for pptx and xlsx documents?
- Modified
- 11 Feb at 20:43
How to format a floating number to fixed width in Python
How do I format a floating number to a fixed width with the following requirements: 1. Leading zero if n < 1 2. Add trailing decimal zero(s) to fill up fixed width 3. Truncate decimal digits past fi...
- Modified
- 25 Sep at 20:21
How do I define a function with optional arguments?
I have a Python function which takes several arguments. Some of these arguments could be omitted in some scenarios. ``` def some_function (self, a, b, c, d = None, e = None, f = None, g = None, h = N...
- Modified
- 19 Jul at 14:53
Install tkinter for Python
I am trying to `import Tkinter`. However, I get an error stating that `Tkinter` has not been installed: ``` ImportError: No module named _tkinter, please install the python-tk package ``` I could p...
- Modified
- 30 Mar at 06:55
ng-repeat :filter by single field
I have an array of products that I'm repeating over using ng-repeat and am using ``` <div ng-repeat="product in products | filter:by_colour"> ``` to filter these products by colour. The filter is ...
- Modified
- 1 Aug at 22:41