How can I use MS Visual Studio for Android Development?
Can you use Visual Studio for Android Development? If so how would you set the android SDK instead of .NET framework and are there any special settings or configuration?
- Modified
- 8 Nov at 19:45
Specifying width and height as percentages without skewing photo proportions in HTML
I was wondering if in the width and height `<img>` attributes, I could specify width and height as percentages? Well, I guess that is obvious, because when I try so, it resizes, but it appears to ske...
- Modified
- 15 Sep at 21:55
DatabaseError: current transaction is aborted, commands ignored until end of transaction block?
I got a lot of errors with the message : ``` "DatabaseError: current transaction is aborted, commands ignored until end of transaction block" ``` after changed from python-psycopg to python-psycopg...
- Modified
- 5 Jul at 05:13
jquery if div id has children
This `if`-condition is what's giving me trouble: ``` if (div id=myfav has children) { do something } else { do something else } ``` I tried all the following: ``` if ( $('#myfav:hasChildren...
Android: How to Programmatically set the size of a Layout
As part of an Android App I am building a button set. The buttons are part of a nested set of LinearLayouts. Using weight I have the set resizing itself automatically based on the size of the containi...
- Modified
- 23 Jul at 07:2
How to change context root of a dynamic web project in Eclipse?
I developed a dynamic web project in Eclipse. I can access the app through my browser using the following URL: ``` http://localhost:8080/MyDynamicWebApp ``` I want to change the access URL to: `...
- Modified
- 26 Nov at 09:19
Spring CrudRepository findByInventoryIds(List<Long> inventoryIdList) - equivalent to IN clause
In Spring CrudRepository, do we have support for "IN clause" for a field? ie something similar to the following? ``` findByInventoryIds(List<Long> inventoryIdList) ``` If such support is not avail...
- Modified
- 2 Sep at 12:34
How to understand nil vs. empty vs. blank in Ruby
I find myself repeatedly looking for a clear definition of the differences of `nil?`, `blank?`, and `empty?` in Ruby on Rails. Here's the closest I've come: - `blank?` objects are false, empty, or a...
- Modified
- 30 May at 00:15
convert a list of objects from one type to another using lambda expression
I have a foreach loop reading a list of objects of one type and producing a list of objects of a different type. I was told that a lambda expression can achieve the same result. ``` var origList = Lis...
What is difference between Errors and Exceptions?
> [Differences betweeen Exception and Error](https://stackoverflow.com/questions/912334/differences-betweeen-exception-and-error) How can I differentiate between Errors and Exceptions in Java?...
Move_uploaded_file() function is not working
I'm working on a website and I want the user to be able to upload files. So I'm trying to learn how to do that. I researched and it said that I had to use the function move_uploaded_file(). I wrote th...
element not interactable exception in selenium web automation
In the below code i cannot send password keys in the password field, i tried clicking the field, clearing the field and sending the keys. But now working in any of the method. But its working if i deb...
- Modified
- 19 Jul at 07:32
How do I get the name of the current executable in C#?
I want to get the name of the currently running program, that is the executable name of the program. In C/C++ you get it from `args[0]`.
- Modified
- 3 Apr at 19:4
.NET NewtonSoft JSON deserialize map to a different property name
I have following JSON string which is received from an external party. ``` { "team":[ { "v1":"", "attributes":{ "eighty_min_score":"", "home_or_away...
- Modified
- 2 Mar at 05:11
What is a classpath and how do I set it?
I was just reading this line: > The first thing the format() method does is load a Velocity template from the classpath named output.vm Please explain what was meant by classpath in this context, an...
- Modified
- 2 Jun at 07:44
Changing text of UIButton programmatically swift
Simple question here. I have a UIButton, currencySelector, and I want to programmatically change the text. Here's what I have: ``` currencySelector.text = "foobar" ``` Xcode gives me the error "Exp...
Finding local maxima/minima with Numpy in a 1D numpy array
Can you suggest a module function from numpy/scipy that can find local maxima/minima in a 1D numpy array? Obviously the simplest approach ever is to have a look at the nearest neighbours, but I would ...
How do you determine what technology a website is built on?
Quite often I come across a nice looking or functional website, and wonder what technology was used to create it. What techniques are available to figure out what a particular website was built with? ...
- Modified
- 17 Mar at 08:52
What's the best way to select the minimum value from several columns?
Given the following table in SQL Server 2005: ``` ID Col1 Col2 Col3 -- ---- ---- ---- 1 3 34 76 2 32 976 24 3 7 235 3 4 245 1 792 ```...
- Modified
- 25 Nov at 10:9
How to set up Automapper in ASP.NET Core
I'm relatively new at .NET, and I decided to tackle .NET Core instead of learning the "old ways". I found a detailed article about [setting up AutoMapper for .NET Core here](https://lostechies.com/jim...
- Modified
- 23 Jun at 14:28
Replacing values from a column using a condition in R
I have a very basic `R` question but I am having a hard time trying to get the right answer. I have a data frame that looks like this: ``` species <- "ABC" ind <- rep(1:4, each = 24) hour <- rep(seq(0...
- Modified
- 13 Jul at 12:31
twitter bootstrap typeahead ajax example
I'm trying to find a working example of the [twitter bootstrap typeahead](http://twitter.github.com/bootstrap/javascript.html#typeahead) element that will make an ajax call to populate it's dropdown. ...
- Modified
- 2 May at 10:38
Background color for Tk in Python
I'm writing a slideshow program with Tkinter, but I don't know how to change the background color to black instead of the standard light gray. How can this be done? ``` import os, sys import Tkinter ...
- Modified
- 30 Apr at 13:28
How to change values in a tuple?
I have a tuple called `values` which contains the following: ``` ('275', '54000', '0.0', '5000.0', '0.0') ``` I want to change the first value (i.e., `275`) in this tuple but I understand that tuples...