T-SQL CASE Clause: How to specify WHEN NULL
I wrote a T-SQL Statement similar like this (the original one looks different but I want to give an easy example here): ``` SELECT first_name + CASE last_name WHEN null THEN 'Max' ELSE 'Peter' E...
- Modified
- 15 Mar at 08:7
Which icon sizes should my Windows application's icon include?
I have a Windows application which will run in Windows XP and newer (i.e. Vista/7). According to the [Vista UI Guidelines](http://msdn.microsoft.com/en-us/library/dn742485.aspx#size_requirements), the...
Can a constructor in Java be private?
Can a constructor be private? How is a private constructor useful?
- Modified
- 13 May at 08:45
Git: copy all files in a directory from another branch
How do I copy all files in a directory from another branch? I can list all of the files in that directory by doing ``` git ls-tree master:dirname ``` I can then copy all of the files individually ...
PHPMailer character encoding issues
I try to use PHPMailer to send registration, activation. etc mail to users: ``` require("class.phpmailer.php"); $mail -> charSet = "UTF-8"; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host ...
How can I make a JPA OneToOne relation lazy
In this application we are developing, we noticed that a view was particularly slow. I profiled the view and noticed that there was one query executed by hibernate which took 10 seconds even if there ...
- Modified
- 22 May at 13:9
Can you have multiple $(document).ready(function(){ ... }); sections?
If I have a lot of functions on startup do they all have to be under one single: ``` $(document).ready(function() { ``` or can I have multiple such statements?
- Modified
- 12 Jan at 17:14
Find text string using jQuery?
Say a web page has a string such as "I am a simple string" that I want to find. How would I go about this using JQuery?
What's the longest possible worldwide phone number I should consider in SQL varchar(length) for phone
What's the longest possible worldwide phone number I should consider in SQL `varchar(length)` for phone. considerations: - - - - - Consider that in my particular case now, I don't need cards etc. ...
- Modified
- 27 Feb at 10:28
HTML table with fixed headers?
Is there a cross-browser CSS/JavaScript technique to display a long HTML table such that the column headers stay fixed on-screen and do not scroll with the table body. Think of the "freeze panes" effe...
- Modified
- 12 Jan at 17:55
How to include() all PHP files from a directory?
In PHP can I include a directory of scripts? i.e. Instead of: ``` include('classes/Class1.php'); include('classes/Class2.php'); ``` is there something like: ``` include('classes/*'); ``` Couldn...
How do you import classes in JSP?
I am a complete JSP beginner. I am trying to use a `java.util.List` in a JSP page. What do I need to do to use classes other than ones in `java.lang`?
How do I move a file (or folder) from one folder to another in TortoiseSVN?
I would like to move a file or folder from one place to another within the same repository without having to use Repo Browser to do it, and without creating two independent add/delete operations. Usi...
- Modified
- 2 Oct at 23:56
How to configure "Shorten command line" method for whole project in IntelliJ
When I run tests I get the error "Command line is too long". It works if I set the "Shorten command line" method in the Run/Debug configuration to "JAR manifest" for the specific method or class, but...
- Modified
- 27 Nov at 04:3
How to implement sleep function in TypeScript?
I'm developing a website in Angular 2 using TypeScript and I was wondering if there was a way to implement `thread.sleep(ms)` functionality. My use case is to redirect the users after submitting a for...
- Modified
- 13 Jan at 12:47
Iterating over Typescript Map
I'm trying to iterate over a typescript map but I keep getting errors and I could not find any solution yet for such a trivial problem. My code is: ``` myMap : Map<string, boolean>; for(let key of m...
- Modified
- 18 Jan at 01:29
How can I send a Firebase Cloud Messaging notification without use the Firebase Console?
I'm starting with the new Google service for the notifications, `Firebase Cloud Messaging`. Thanks to this code [https://github.com/firebase/quickstart-android/tree/master/messaging](https://github....
- Modified
- 17 Jan at 14:15
Django - makemigrations - No changes detected
I was trying to create migrations within an existing app using the makemigrations command but it outputs "No changes detected". Usually I create new apps using the `startapp` command but did not use ...
- Modified
- 4 Sep at 11:56
HttpClient - A task was cancelled?
It works fine when have one or two tasks however throws an error "A task was cancelled" when we have more than one task listed. ![enter image description here](https://i.stack.imgur.com/zZojw.png) `...
- Modified
- 16 Mar at 22:22
How/when to generate Gradle wrapper files?
I am trying to understand how the Gradle Wrapper works. In many source repos, I see the following structure: ``` projectRoot/ src/ build.gradle gradle.properties settings.gradle g...
- Modified
- 10 Sep at 15:36
Best practice for Django project working directory structure
I know there is actually no single right way. However I've found that it's hard to create a directory structure that works well and remain clean for every developer and administrator. There is some st...
- Modified
- 13 Mar at 17:7
How to delete last item in list?
I have this program that calculates the time taken to answer a specific question, and quits out of the while loop when answer is incorrect, but i want to delete the last calculation, so i can call `mi...
- Modified
- 21 Apr at 15:32
Invoke-WebRequest, POST with parameters
I'm attempting to POST to a uri, and send the parameter `username=me` ``` Invoke-WebRequest -Uri http://example.com/foobar -Method POST ``` How do I pass the parameters using the method POST?
- Modified
- 19 Dec at 21:35
Is there a library function for Root mean square error (RMSE) in python?
I know I could implement a root mean squared error function like this: ``` def rmse(predictions, targets): return np.sqrt(((predictions - targets) ** 2).mean()) ``` What I'm looking for if this...
- Modified
- 13 Feb at 21:25
How to set xlim and ylim for a subplot
I would like to limit the X and Y axis in matplotlib for a specific subplot. The subplot figure itself doesn't have any axis property. I want for example to change only the limits for the second plot:...
- Modified
- 15 Sep at 04:43