Browsing 7239 questions and answers with Jon Skeet
PID is the process ID - not the port number. You need to look for an entry with ":8080" at the end of the address/port part (the second column). Then you can look at the PID and use Task Manager to work out which process is involved... or... more 11/13/2013 10:34:55 PM
I would avoid trying to read using a File at all - just use the URL returned by getResource: BufferedImage image = ImageIO.read(getClass().getResource(fileName)); Aside from anything else, that will still work when the resource is in a... more 11/13/2013 10:15:41 PM
My guess is that you're actually running on .NET 4.5. Bear in mind that .NET 4.5 is effectively installed over the top of .NET 4. Even if your application is targeted at .NET 4, if the user has installed .NET 4.5 you'll get the new... more 11/13/2013 5:31:14 PM
You end up with an empty string value for the keys "<dummy>" and "</dummy>". You can show this easily: import java.io.*; import java.util.*; public class Test { public static void main(String[] args) throws IOException { ... more 11/13/2013 5:00:00 PM
Well unless you really need the catch block, you don't need to introduce try/catch/finally. You can just add a throw statement at the end of your initial method. Along the way, I'd start using FirstOrDefault(), follow normal C# naming... more 11/13/2013 2:56:48 PM
Simply put, System.String doesn't implement IFormattable. If the documentation isn't enough for you: object x = "a string"; Console.WriteLine(x is IFormattable); // False Given that ToString() is declared on object, why not just... more 11/12/2013 9:01:54 PM
Since the clear of list2 altered the contents of list1 Yes. Because ArrayList.subList is following the documented behaviour of List.subList: Returns a view of the portion of this list between the specified fromIndex, inclusive,... more 11/12/2013 6:02:19 PM
The original problem was that your class was in a package, but you were trying to load it as if it weren't in a package. You'd normally organize your source code to match your package hierarchy, then from the root of the hierarchy, you'd... more 11/12/2013 4:37:24 PM
How can i have the LINQ just focus on the first <item> instead? I assume you don't just want the very first <item>, but each top-level <item>. Just change Descendants("item") to Elements("item"). That way it will... more 11/12/2013 3:59:34 PM
This is the problem: "-"+cal.get(Calendar.MONTH)+1 That's actually performing string concatenation - it's effectively ("-" + cal.get(Calendar.MONTH)) + 1 So when cal.get(Calendar.MONTH) returns 1, that's effectively: ("-" + 1) + 1... more 11/12/2013 9:02:32 AM