« first day (2365 days earlier)      last day (2617 days later) » 

1:46 AM
I'm voting to close this question as off-topic because it is about Mathematics instead of programming or software development. — Pang 51 secs ago
 
 
7 hours later…
8:35 AM
Is it impossible?But i see some data recovery softwares can list deleted file name correctly. — LI.Steven 11 secs ago
 
Help center said to ask kinda off topic questions here. I am looking for a C++ profiling tool that can generate graphical call graphs akin to heap profiler of gperftools but for time spent in subprocesses rather than memory allocated by subprocesses. Does anybody know such a tool?
 
 
1 hour later…
9:53 AM
What are the merits of writing try (Statement stmt = con.createStatement()) { rather than try { Statement stmt = con.createStatement(); ?
aka try-with-resources
I guess it is useful when you need that object in the finally clause, but most examples I see in the while do not use these resources in finally (examples at docs.oracle.com/javase/tutorial/essential/exceptions/… )
I am sure a question must exist about this, but my searches by keywords and tags have been vain.
Should I post that question?
 
 
1 hour later…
11:04 AM
also, asking for a library recommendation is off topic at stack overflow. maybe one of the other stack exchange sites, like softwareengineering.stackexchange.com (screw off gnat) — xaxxon 6 secs ago
 
@Duga: Library recommendation is on topic at softwarerecs.stackexchange.com
 
7
Q: Is there an issue with closing our database connections in the "Finally" block of a Try statement?

ZibbobzI'm doing some refactoring for our application, and trying to reduce the number of issues reported in our ISO Scan (a static code analysis tool based on HP Fortify). Right now, what I'm trying to address is the "Unreleased Resource: Database" issues our application has built up. One of the most...

19
A: Did the developers of Java consciously abandon RAII?

PatrickJava7 introduced something similar to the C# using: The try-with-resources Statement a try statement that declares one or more resources. A resource is as an object that must be closed after the program is finished with it. The try-with-resources statement ensures that each resource is close...

closing needs to be in finally clause if you want the correct code - unless system handles this for you (RAII, using in C#, try-with-resources in Java)
 
11:26 AM
@gnat: Look at the ZipFile example at docs.oracle.com/javase/tutorial/essential/exceptions/… : No finally. Declaring zf and writer inside the try{ block would not have demerit I believe?
 
@NicolasRaoul check out docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/… l.lock() outside the try and l.unlock() inside the finally
though I'm dissapointed that they didn't create a try-with-resources object for scoping the lock
@NicolasRaoul duga is a bot to monitor mentions of progs.SE and such in comments so we can educate people that keep pushing bad questions to this site
though the actual merit of try-with-resources is that exceptions thrown in the close don't hide any exception thrown in the try.
 
12:18 PM
@NicolasRaoul when there's try-with-resources system implicitly calls close for you (for objects that implement Closeable interface) - it just spares you from need to write it yourself in the finally block (along with brain-damaging exception handling)
 
I see, thanks! :-)
 
12:36 PM
@EricLin If you want to participate in the beta testing for Microsoft then you should report back your problem to them. They will be certainly eager to hear about any possible bug you come across in their (installation) software. Yet, you should include much more information / details about your setup, installation logs, etc. — Ralph 49 secs ago
 
 
3 hours later…
3:13 PM
This would actually be a good question for the Software Engineering stack exchange. softwareengineering.stackexchange.comDeeV just now
 
3:33 PM
I recommend searching Software Recommendations. Maybe even posting there. — Thomas Matthews 55 secs ago
 
 
2 hours later…
5:19 PM
So, I bet you could find some software to plot 1m+ nodes, but the more important question is... what would that look like? Can you imagine any plausible arrangement of 1m+ plus nodes that would be a viable, visual representation? Think about it.... if you had a 1000x1000 pixel image, every single pixel in the image would be needed to represent each node at a unique 1x1 pixel position. I think maybe you need to rethink what you're trying to achieve... maybe work with subsets of your data? — CJ Yetman 23 secs ago
 
6:03 PM
Maybe this question belongs elsewhere, such as Software Engineering, but it might be off-topic there as well. — zarchasmpgmr 57 secs ago
 
6:37 PM
It would be absolutely delightful if someone could add migration votes to this good but off topic question: Which specific packages are sealed when sealing a .jar?
 
@amon pew pew
 
thanks :)
 
7:46 PM
 
 
1 hour later…
9:12 PM
I am not a student. Thank you for your very constructive comment. — Ki Jéy 25 mins ago
:D
 

« first day (2365 days earlier)      last day (2617 days later) »