SQL Server : error converting data type varchar to numeric
I have a table: ``` Account_Code | Desc 503100 | account xxx 503103 | account xxx 503104 | account xxx 503102A | account xxx 503110B | account xxx ``` Where `Account_Cod...
- Modified
- 5 Jul at 15:47
Upgrade version of Pandas
I am running Python on a Windows machine at the following path: ``` C:\WinPython-64bit-3.4.4.1 ``` I am trying to upgrade to the latest version of pandas (currently running '0.17.1') but am having ...
Redirect pages in JSP?
I have to design several pages in jsp. After clicking on the submit button on the first page, the page should be automatically redirected to the second page. Can you help with a quick example or a li...
How to implement endless list with RecyclerView?
I would like to change `ListView` to [RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html). I want to use the `onScroll` of the [OnScrollListener](http://...
- Modified
- 7 Oct at 14:34
Adb Devices can't find my phone
I am trying to get adb to see my Samsung Fascinate phone so that I can install my Android apps via usb to the phone. I am using osx 10.6.7. When I run "adb devices" it does not list my device and "a...
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithDexForDebug'
Due to `65K` error in my project I need it to migrate to Android Studio . While running > ./gradlew assembleDebug I am getting the error: ``` Execution failed for task ':app:transformClassesWithDe...
- Modified
- 16 Jun at 18:8
How to remove leading and trailing whitespace in a MySQL field?
I have a table with two fields (countries and ISO codes): ``` Table1 field1 - e.g. 'Afghanistan' (without quotes) field2 - e.g. 'AF'(without quotes) ``` In some rows the second field has whi...
- Modified
- 2 Aug at 15:29
Why catch and rethrow an exception in C#?
I'm looking at the article [C# - Data Transfer Object](http://www.codeproject.com/KB/cs/datatransferobject.aspx) on serializable DTOs. The article includes this piece of code: ``` public static stri...
jQuery toggle CSS?
I want to toggle between CSS so when a user clicks the button (`#user_button`) it shows the menu (`#user_options`) and changes the CSS, and when the user clicks it again it goes back to normal. So far...
How to apply specific CSS rules to Chrome only?
Is there a way to apply the following CSS to a specific `div` only in Google Chrome? ``` position:relative; top:-2px; ```
- Modified
- 14 Sep at 15:27
How to access elements in an array returned from a function?
I need to return multiple values from a function, therefore I have added them to an array and returned the array. ``` <? function data(){ $a = "abc"; $b = "def"; $c = "ghi"; return array($a, $b, $c...
How do I use brew installed Python as the default Python?
I try to switch to Homebrew (after using fink and macport) on Mac OS X 10.6.2. I have installed python 2.7 with ``` brew install python ``` The problem is that, contrary to Macport, it seems that ...
Where can I find Android source code online?
Where can I browse the source code for any Android Open Source Project (AOSP) application (for example the Contacts application)? Is the only way to clone the entire source repository for all of AOSP?...
- Modified
- 18 May at 07:12
How do I activate a virtualenv inside PyCharm's terminal?
I've set up PyCharm, created my virtualenv (either through the virtual env command, or directly in PyCharm) and activated that environment as my Interpreter. Everything is working just fine. However,...
- Modified
- 31 Jan at 10:27
How to use the CancellationToken without throwing/catching an exception?
Compared to the preceding code [for class RulyCanceler](http://www.albahari.com/threading/part3.aspx#_Safe_Cancellation), I wanted to run code using `CancellationTokenSource`. How do I use it as men...
- Modified
- 16 Feb at 01:31
mysqli_real_connect(): (HY000/2002): No such file or directory
``` mysqli_real_connect(): (HY000/2002): No such file or directory ``` PhpMyAdmin error on MacOS. I want answer I really have no idea what I need to do to resolve this.
- Modified
- 27 Dec at 19:50
How to calculate probability in a normal distribution given mean & standard deviation?
How to calculate probability in normal distribution given mean, std in Python? I can always explicitly code my own function according to the definition like the OP in this question did: [Calculating P...
- Modified
- 27 Oct at 01:36
Eclipse Error: "Failed to connect to remote VM"
I’m getting the following error when I start Debug from the Eclipse IDE. > Message: `“Failed to connect to remote VM. Connection Refused”` What could be the reason?
How to delete multiple values from a vector?
I have a vector like: `a = c(1:10)` and I need to remove multiple values, like: `2, 3, 5` How to delete those numbers (they are the positions in the vector) in the vector? at the moment i loop the ...
- Modified
- 13 Aug at 08:50
How can I implement static methods on an interface?
I have a 3rd party C++ DLL that I call from C#. The methods are static. I want to abstract it out to do some unit testing so I created an interface with the static methods in it but now my program err...
Overriding !important style
Title pretty much sums it up. The external style sheet has the following code: ``` td.EvenRow a { display: none !important; } ``` I have tried using: ``` element.style.display = "inline"; ``` ...
- Modified
- 5 Feb at 06:17
Set the absolute position of a view
Is it possible to set the absolute position of a view in Android? (I know that there is an `AbsoluteLayout`, but it's deprecated...) For example, if I have a 240x320px screen, how could I add an `Ima...
- Modified
- 3 Mar at 18:34
Is it ok to use `any?` to check if an array is not empty?
Is it bad to check if an array is empty by using `any?` method? ``` a = [1,2,3] a.any? => true a.clear a.any? => false ``` Or is it better to use `unless a.empty?` ?
How do I check the difference, in seconds, between two dates?
There has to be an easier way to do this. I have objects that want to be refreshed every so often, so I want to record when they were created, check against the current timestamp, and refresh as neces...
How can I change the color of my prompt in zsh (different from normal text)?
To recognize better the start and the end of output on a commandline, I want to change the color of my prompt, so that it is visibly different from the programs output. As I use zsh, can anyone give m...