Why a function checking if a string is empty always returns true?
I have a function isNotEmpty which returns true if the string is not empty and false if the string is empty. I've found out that it is not working if I pass an empty string through it. ``` function ...
- Modified
- 11 Jun at 12:4
What is trunk, branch and tag in Subversion?
> [What do “branch”, “tag” and “trunk” really mean?](https://stackoverflow.com/questions/16142/what-do-branch-tag-and-trunk-really-mean) What is a trunk, branch and tag in Subversion and what ...
- Modified
- 23 May at 12:17
MySQL: Cloning a MySQL database on the same MySql instance
I would like to write a script which copies my current database `sitedb1` to `sitedb2` on the same mysql database instance. I know I can dump the sitedb1 to a sql script: ``` mysqldump -u root -p sit...
LINQ query to return a Dictionary<string, string>
I have a collection of MyClass that I'd like to query using LINQ to get distinct values, and get back a Dictionary<string, string> as the result, but I can't figure out how I can do it any simpler tha...
- Modified
- 5 Apr at 15:44
When to use a linked list over an array/array list?
I use a lot of lists and arrays but I have yet to come across a scenario in which the array list couldn't be used just as easily as, if not easier than, the linked list. I was hoping someone could gi...
- Modified
- 5 Aug at 19:45
Breaking out of a nested loop
If I have a for loop which is nested within another, how can I efficiently come out of both loops (inner and outer) in the quickest possible way? I don't want to have to use a boolean and then have t...
- Modified
- 13 Mar at 14:52
Convert Month Number to Month Name Function in SQL
I have months stored in SQL Server as 1,2,3,4,...12. I would like to display them as January,February etc. Is there a function in SQL Server like MonthName(1) = January? I am trying to avoid a CASE st...
- Modified
- 23 May at 14:9
Learning Ruby on Rails
As it stands now, I'm a Java and C# developer. The more and more I look at Ruby on Rails, the more I really want to learn it. What have you found to be the best route to learn RoR? Would it be eas...
- Modified
- 10 Jun at 10:21
Get OS-level system information
I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows. Has anyone been able to successfully extract informati...
How to retrieve a file from a server via SFTP?
I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this?
Android Material and appcompat Manifest merger failed
I have next grade ``` dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0-rc01' implementation 'com.androi...
- Modified
- 19 Aug at 13:44
Yarn: How to upgrade yarn version using terminal?
How should `yarn` be upgraded to the latest version?
- Modified
- 8 Feb at 08:13
Postgres: check if array field contains value?
I'm sure this is a duplicate question in the sense that the answer is out there somewhere, but I haven't been able to find the answer after Googling for 10 minutes, so I'd appeal to the editors not to...
- Modified
- 22 Sep at 15:45
Kotlin's List missing "add", "remove", Map missing "put", etc?
In Java we could do the following ``` public class TempClass { List<Integer> myList = null; void doSomething() { myList = new ArrayList<>(); myList.add(10); myList.rem...
- Modified
- 15 Sep at 21:44
How to plot in multiple subplots
I am a little confused about how this code works: ``` fig, axes = plt.subplots(nrows=2, ncols=2) plt.show() ``` How does the fig, axes work in this case? What does it do? Also why wouldn't this wo...
- Modified
- 15 Aug at 16:41
How to remove a branch locally?
I have a master and a dev branch in my repository. I want to remove the master branch from my computer so that I don't accidentally commit to it (it's happened..). There are questions on here about ...
How to dismiss ViewController in Swift?
I am trying to dismiss a ViewController in swift by calling `dismissViewController` in an `IBAction` ``` @IBAction func cancel(sender: AnyObject) { self.dismissViewControllerAnimated(false, compl...
- Modified
- 8 Nov at 08:36
Where can I find the TypeScript version installed in Visual Studio?
Maybe it's obvious, but I checked everywhere (besides the right place) and googled it. Nothing.
- Modified
- 30 May at 06:24
How do I mock an autowired @Value field in Spring with Mockito?
I'm using Spring 3.1.4.RELEASE and Mockito 1.9.5. In my Spring class I have: ``` @Value("#{myProps['default.url']}") private String defaultUrl; @Value("#{myProps['default.password']}") private Stri...
- Modified
- 21 Nov at 15:48
How to use the 'main' parameter in package.json?
I have done quite some search already. However, still having doubts about the 'main' parameter in the package.json of a Node project. 1. How would filling in this field help? Asking in another way, c...
- Modified
- 21 Aug at 14:14
How to declare an ArrayList with values?
[ArrayList or List declaration in Java](https://stackoverflow.com/questions/12321177/arraylist-declaration-java) has questioned and answered how to declare an empty `ArrayList` but how do I declare an...
- Modified
- 29 Jun at 08:37
Mounting multiple volumes on a docker container?
I know I can mount a directory in my host on my container using something like ``` docker run -t -i -v '/on/my/host:/on/the/container' ubuntu /bin/bash ``` Is there a way to create more than one ho...
- Modified
- 18 Sep at 00:4
Getting content/message from HttpResponseMessage
I'm trying to get content of HttpResponseMessage. It should be: `{"message":"Action '' does not exist!","success":false}`, but I don't know, how to get it out of HttpResponseMessage. ``` HttpClient h...
- Modified
- 26 Aug at 23:10
"Parser Error Message: Could not load type" in Global.asax
I'm working on an MVC3 project and receive the following error: > Parser Error Message: Could not load type 'GodsCreationTaxidermy.MvcApplication'. Source Error: > Line 1: `<%@ Application Codebeh...
- Modified
- 22 Aug at 19:32
How to request Google to re-crawl my website?
Does someone know a way to request Google to re-crawl a website? If possible, this shouldn't last months. My site is showing an old title in Google's search results. How can I show it with the correct...
- Modified
- 2 Aug at 03:54