Questions

IntelliJ show JavaDocs tooltip on mouse over

In Eclipse, when hovering over a method, variable, etc. a tooltip is displayed with the corresponding JavaDocs. Is there such a feature in IntelliJ?

25 Sep at 17:10

Git push existing repo to a new and different remote repo server?

Say I have a repository on [git.fedorahosted.org](http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=summary) and I want to clone this into my account at github to have my own playground aside from the ...

3 Mar at 14:18

How do I align views at the bottom of the screen?

Here's my layout code; ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width=...

Examples of GoF Design Patterns in Java's core libraries

I am learning GoF Java Design Patterns and I want to see some real life examples of them. What are some good examples of these Design Patterns in Java's core libraries?

11 Apr at 03:40

What is the difference between HTML div and span elements?

I would like to ask for some simple examples showing the uses of `<div>` and `<span>`. I've seen them both used to mark a section of a page with an `id` or `class`, but I'm interested in knowing if th...

5 Nov at 13:7

How to build a basic iterator?

How would one create an iterative function (or iterator object) in python?

24 Nov at 14:14

Convert list to tuple in Python

I'm trying to convert a list to a tuple. Most solutions on Google offer the following code: ``` l = [4,5,6] tuple(l) ``` However, the code results in an error message when I run it: > TypeError: 'tup...

16 Feb at 12:55

Why does AngularJS include an empty option in select?

I've been working with AngularJS for the last few weeks, and the one thing which is really bothering me is that even after trying all permutations or the configuration defined in the specification at ...

7 Jan at 13:54

How can I clear previous output in Terminal in Mac OS X?

I know the `clear` command that 'clears' the current screen, but it does this just by printing lots of newlines - the cleared contents just get scrolled up. Is there a way to completely wipe all previ...

28 Aug at 11:57

Why does printf not flush after the call unless a newline is in the format string?

Why does `printf` not flush after the call unless a newline is in the format string? Is this POSIX behavior? How might I have `printf` immediately flush every time?

24 Jul at 17:18

What is "with (nolock)" in SQL Server?

Can someone explain the implications of using `with (nolock)` on queries, when you should/shouldn't use it? For example, if you have a banking application with high transaction rates and a lot of dat...

14 Mar at 04:52

How would you make a comma-separated string from a list of strings?

What would be your preferred way to concatenate strings from a sequence such that between every two consecutive pairs a comma is added. That is, how do you map, for instance, `['a', 'b', 'c']` to `'a,...

28 Nov at 10:22

async/await - when to return a Task vs void?

Under what scenarios would one want to use ``` public async Task AsyncMethod(int num) ``` instead of ``` public async void AsyncMethod(int num) ``` The only scenario that I can think of is if ...

14 Sep at 15:21

What are Aggregates and PODs and how/why are they special?

This [FAQ](https://stackoverflow.com/tags/c%2b%2b-faq/info) is about Aggregates and PODs and covers the following material: - - - - -

SqlException from Entity Framework - New transaction is not allowed because there are other threads running in the session

I am currently getting this error: > System.Data.SqlClient.SqlException: New transaction is not allowed because there are other threads running in the session. while running this code: ``` public c...

Two submit buttons in one form

I have two buttons in a form. How do I determine which one was hit serverside?

13 Feb at 21:52

Official way to ask jQuery wait for all images to load before executing something

In jQuery when you do this: ``` $(function() { alert("DOM is loaded, but images not necessarily all loaded"); }); ``` It waits for the DOM to load and executes your code. If all the images are n...

23 May at 11:47

When to use static classes in C#

Here's what [MSDN has to say under When to Use Static Classes](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/static-classes-and-static-class-members): > ``` st...

30 May at 00:25

"rm -rf" equivalent for Windows?

I need a way to recursively delete a folder and its children. Is there a prebuilt tool for this, or do I need to write one? `DEL /S` doesn't delete directories. `DELTREE` was removed from Windows 2...

3 Oct at 19:25

How to determine the size of an object in Java

I have an application that reads a CSV file with piles of data rows. I give the user a summary of the number of rows based on types of data, but I want to make sure that I don't read in too many rows ...

16 Feb at 16:10

Find first element by predicate

I've just started playing with Java 8 lambdas and I'm trying to implement some of the things that I'm used to in functional languages. For example, most functional languages have some kind of find fu...

6 Sep at 19:44

How do I find the duplicates in a list and create another list with them?

How do I find the duplicates in a list of integers and create another list of the duplicates?

17 Jul at 09:28

Retrieving Android API version programmatically

Is there any way to get the API version that the phone is currently running?

15 May at 18:36

Is it possible to break a long line to multiple lines in Python?

Just like C, you can break a long line into multiple short lines. But in [Python](http://en.wikipedia.org/wiki/Python_%28programming_language%29), if I do this, there will be an indent error... Is it ...

7 Feb at 05:44

How can I unset a JavaScript variable?

I have a global variable in JavaScript (actually a `window` property, but I don't think it matters) which was already populated by a previous script, but I don't want another script that will run late...