« first day (531 days earlier)      last day (3481 days later) » 

11:00 AM
@rolfl How does class loading change when going from PermGem to Metaspace though?
Then classes get loaded into the dynamic memory, right? But if you load too many (or simply never unload them on a server), you still have an issue
 
@Pimgd Want to check my answer
Please
 
C++ constructors are weird
class Cylinder {
    Circle base;
    double height;
  public:
    Cylinder(double r, double h) : base (r), height(h) {}
    double volume() {return base.area() * height;}
};
 
I agree @skiwi
 
@skiwi I don't know. The one thing is that the limit on space is much larger...
I have not studied the Java8 memory model at all, other than the high-level marketing blurb.
 
@rolfl As far as I have read up on it, the Metaspace is definitely not equal toth e Heap memory, but I think it can dynamically grow
I'm interested to see what will happen with generics over value types/primitives in Java 9/10, the consensus now seems to be that <any T> is not wanted for, as that would render all current code useless, but redefening <T> to mean somewhat like <T extends AnyType> over <T extends Object> is also problematic, as null is not a possible value for AnyType, whereas it is for Object
It's said though that the project lead is working on an interesting proposal regarding that part
 
11:12 AM
@TheFailure which one
 
4
Q: Small password generator app with GUI

SingularityFXI will appreciate to hear from you if the code below conforms to the generally accepted rules / conventions / best practices and how can it be improved. This is a GUI-based random password generator, which supports internationalization. It consists of 6 small classes: Main classes: Applicatio...

Did I miss anything
 
@TheFailure alphabet is a better name than characters.
 
24
Q: Jack of All Trades, Master of None - Let's work together to offer ultimately better content, faster

jt0ddNhgrif pointed out a great idea: Teamwork "I think it's probably best if the question instead has several good answers that each address a specific topic. The result will be that no single answer is complete, but every problem is addressed between all the answers." Alright, so that ...

 
is "123456789" in the alphabet?
Numericbet?
 
characters usually includes things like: ½é"Ò¬ and alphabet means: "limited subset of characters"
 
11:15 AM
characterset would be better I think
 
In cryptography, "alphabet" means "set of characters"
 
Oh ok...
Ill remove it
 
In computer science and mathematical logic, a non-empty set is called alphabet when its intended use in string operations shall be indicated. Its members are then commonly called symbols or letters, e.g. characters or digits. For example a common alphabet is {0,1}, the binary alphabet. A finite string is a finite sequence of letters from an alphabet; for instance a binary string is a string drawn from the alphabet {0,1}. An infinite sequence of letters may be constructed from elements of an alphabet as well. Given an alphabet , we write to denote the set of all finite strings over the alphabet...
 
:(
Sorry
 
Sorry is for when you mean it.
Use "Thanks" here.
 
11:18 AM
Thanks
 
=)
Sorry is for when the other person is angry with you... we're not angry at all
you mention useuppercase
but then later use uppercase instead
 
it should be useCamelCase...
 
....
 
@Vogel612 *it should useCamelCase
 
Ill go change it?
 
11:23 AM
yeah =)
 
Thanks @Pimgd for the edit.
 
@Heslacher Teach me your ways of writing that much
 
I didn't write much at this question.
 
Exactly
 
You need to just wait for a few answers. Then pick the stuff which hadn't been addressed.
 
11:29 AM
@TheFailure it's relatively simple.. you just stop when you aren't in the mood anymore.
 
He made 2 points.
You made 1... but proceeded to describe a whole solution.
If you wanted just as short an answer, drop the whole solution description...
but I don't think that'd be very good for your answer.
 
Hmmmmmm
 
Ok, I will ad a third point.
 
NOOOO!
Hahahaha
Joking
 
This is sad...
 
11:32 AM
confusion ensues
 
when MSDN docs for Java show up before the ones of Oracle
 
Oh, i forgot to link...
 
(unicorn kill)
 
@TheFailure It's not required, but I like to link to documentation whenever I mention a standard java library function.
 
11:34 AM
@Pimgd did you start yet?.....
Yeah
I forgot
 
and it doesn't really matter if you forget
someone else will clean it up if needed
 
You do need to link to the documentation when you say something like "According to the documentation, ..."
 
When I had that.....
 
haha =D
Digital post-its
 
11:36 AM
Should I as application developer keep my library dependencies up to date? In case I am forced (by requirement, design or by security update) to switch to the latest version?
 
Not as good as the real thing
Just dont have any
 
@skiwi Search/Post Programmers.se, I wanna see the answer to this one in a bit more detail than yes or no
 
Not in the position to do that right now though, will remember it tonight and do it then, still university now
 
15
Q: How to keep your third party libraries up to date?

Joonas PulakkaLet's say that I have a project that depends on 10 libraries, and within my project's trunk I'm free to use any versions of those libraries. So I start with the most recent versions. Then, each of those libraries gets an update once a month (on average). Now, keeping my trunk completely up to da...

 
@skiwi there's that thing called deprecation... It's the reason why you shouldn't have a <dependency><version>LATEST</version></dependency>
 
11:40 AM
@Vogel612 yeah but you should try to keep it up to date occasionally
@TheFailure also you have a tiny screen
... orrrr my 1920x1080 display is just huge.
 
@Pimgd I only have a laptop right now :'(
That hurts
 
@Vogel612 I mean manually updating... never using the latest tag
 
Muhahahahahaha fear my 1920x1080 display
3
 
:(
That really does make me jealous
I need to get a new computer for next year
 
Me too, I don't have one like that at home
 
11:43 AM
@Pimgd muhahahahaha fear my 2 1920 x 1080 displays
4
 
@Vogel612 Curses, I have been out-displayed!
 
I have to go for a laptop because of UNi
 
> Don't break what isn't fixed.
 
@skiwi Good ad- wait, what?
I can only interpret that as "If you know the bridge is broken, don't cross it."
but that's flawed too
more like "If you know the bridge is under repairs, don't cross it."
 
11:46 AM
Any recommendations for a laptop?
 
Nope
 
Was going to wait for boxing day sales as well
 
neither.
 
Damn
 
Build your own PC is my advice for PCs...
but laptops are complicated
 
11:47 AM
Too broad and Unclear, btw..
 
@TheFailure VTC Opinion based
 
Build your own laptop!
 
DO IT
(Remember, we're anonymous internet strangers. Don't take advice from us.)
4
 
Come on
 
11:49 AM
Someone who puts up with reviewing code that bad every single has to be mental enough to trust
 
@TheFailure take a relatively fast and affordable one, and don't use windows if you can help it....
 
@TheFailure Oh, we're mental, I can assure you that
2
 
tempted to relink the image
 
I have Kali as my main OS
 
okay now why in god's name would you trap the hindu godess of destruction into your computer and put her in charge of your hardware??
 
11:51 AM
Because
I can!
 
Oh, it's only the hindu version of the Grim Reaper.
 
Hahahaha
That makes it OK? Right?
 
Probably.
 
Greetings, Programs.
 
Salutations
 
11:56 AM
Oh hey look she's in Shin Megami Tensei too
 
@Vogel612 Seriously. Computers are already evil enough.
 
"Hello" >> @Donald.McLean
 
And by the way, it's FRIDAY!!!!!!!!!!
 
Ooh, silver badge for birds
still no good answers.
Maybe I'll hit 10k views without a good answer =D
 
Hahahaha
 
11:59 AM
Birds don't need shelter from the rain. Their plumage is waterproof.
 
so it's just confirmation bias that I don't see them when it rains?
 
@Pimgd 2560x1600 HA!
 
@Donald.McLean Enjoy your whitespace
=D
 
@Pimgd I doubt they do much flying. Waterproof does not mean that water doesn't stick to them. They're probably just chilling out on a power line somewhere.
 
lol reddit...
 
12:03 PM
I was disappointed that Apple didn't introduce a 5k external monitor.
Because, obviously 2560x1600 isn't nearly enough pixels.
 
@Donald.McLean True... my dad's camera shoots 5000x2200 pixel images or something like that
 
I have yet to have something past 1366*768 :(
 
That don't fit on my screen
 
Would the following be workable on?
Processor: Intel® Coreâ„¢ i7 processor 4710HQ (Quad Core 2.5 GHz - 3.5 GHz - 6MB L3 Cache)
Memory: 12GB (1x8GB + 1x4GB) DDR3 1600Mhz (32GB Max)
Hard Drive: 128GB M.2 SSD + 1TB HDD (7200RPM)
Display: 17.3" Widescreen Full HD LED (1920x1080)
Graphics: Nvidia® GeForce GTX970M 6GB GDDR5 (HDMI & 2x miniDisplayPort)
Optical Drive: Blu-Ray Writer
Wireless: 802.11ac & Bluetooth 4.0
Lan: 10/100/1000]
Also Includes: 720p HD Webcam, Illuminated SteelSeries Keyboard, 9 Cell Lithium-Ion battery, 3-in-1 Card Reader and 6xUSB3.0 Ports\
 
802.11ac wireless
 
12:07 PM
Windows 8 doesn't come near my computers
 
Thats why I removed it
 
@TheFailure Nah, I belong to the other commercial OS church.
 
Windows 8.1 + startmenu works here, still waiting for Windows 10 though
 
I am not having windows on it anyway
 
Oh okay
802.11ac doesn't mean 802.11a + 802.11c
it's a whole separate thing based on 802.11n
 
12:09 PM
Can you explain :)
 
@TheFailure No.
But it's good.
 
802.11 specs are backwards compatible anyways..
there's just that american - european - asian thingy..
mutually exclusive crap..
 
@Vogel612 yeah but you don't want to be the guy who builds a super computer and then hooks it up with a 128KiB/sec wifi
KIBIBYTES
 
@Pimgd point taken... not that you could change that if your AP just supports 802.11a
 
@Pimgd Your dad's in luck, the new retina iMac is 5120x2880.
 
12:12 PM
Additionally IIRC bandwidths in networkign context are always given in Xbits/sec aand not XBytes/sec
@Donald.McLean which isn't slightly overkill...
 
@Donald.McLean How big is it physically
 
oh okay
 
No shame in this room
4
 
12:15 PM
@JeroenVannevel LOL
 
That's why he works at the space thing
The only place it fits
but then you have like ~95 pixels per centimeter
images would be really tiny
It's like what you get now if you start up a DS emulator or a VisualBoyAdvance
SUPER TINY game
 
Lol that would be fun yes
 
His 27"?
 
Friday theme: Donald's 27"
9
Which means..... @Donald has 2 feet, and 3 inches?
8
 
12:31 PM
@Vogel612 has 2 large "displays"
 
how would I have 2 "displays"?? its just 2 displays. nothing more..
and I bet if InfiniteRecursion were here she'd be offended...
 
@TheFailure There is such a thing as "Trying too hard".
4
 
Ill go.
 
if I were trying too hard, I could try too hard about hard..
@TheFailure why that??
 
Nah just stay
 
12:34 PM
lucky you that InfiniteRecursion isn't here...
but I say we change the topic...
which brings us back to:
 
Fun Fun Fun!
 
		while (drivers.hasMoreElements()) {
			Driver driver = drivers.nextElement();
			if (driver.getClass().getClassLoader() == loader) {
				try {
					// deregister driver
					DriverManager.deregisterDriver(driver);
				} catch (SQLException ex) {
					Logger.getLogger(Log.class).error(
							"Error deregistering JDBC Driver {}", ex);
				}
			}
		}
why does this feel so blunt??
Hi @Funkydiddykong btw..
 
....
Hi...
 
@Vogel612 You're using == instead of equals?!
 
@skiwi nah that's k.. after all we're checking for reference equality..
 
12:37 PM
@Vogel612 use ===
 
anything else could be... possibly dangerous...
 
@Pimgd Not JavaScript
 
@Pimgd this is Java...
 
eh?
 
		ClassLoader loader = Thread.currentThread().getContextClassLoader();
		Enumeration<Driver> drivers = DriverManager.getDrivers();
 
12:37 PM
@Vogel612 - this is for JBoss?
 
yea...
 
Doesn't JBoss handle connection pools and other things for you?
 
taken from SO answer in a Tomcat context and not even deployed yet..
 
ooooh I see
 
interestingly I still get my PermGen OutOfMemoryError.
 
12:38 PM
Why are you not using a DataSource isntead of a Connection.
 
I made a doo doo
 
^^^ hehehe
 
@Vogel612 who's that
 
@Vogel612 The right way to manage connections in a Java application server: docs.jboss.org/jbossweb/2.1.x/…
 
monking
 
12:42 PM
@rolfl I am not managing the connection..
I am unregistering the Drivers on ServletContext.destroy();
but that looks.. good.
 
Alright, you probably know more about that than I do... other than what I have heard, but, the whole idea behind data sources is that you never need to manage either the JDBC Drivers or the infrastructure around it.
The platform does it for you
My experience there is very limited though
 
hmm... it seems that this: disposeAbandoned thingy is false by default...
which is slightly .... because you can't GC the registering ClassLoader on redeploy...
ermph..
 
Could someone tag the language? I'm not sure C or C++
0
Q: Count unique subsets of size k with some S

amdubeTeam 7 faces a horrible foe. He can only be defeated with a special quadruple combination attack of strength S ( 1 <=S <=10^9 ). Naruto, Sasuke, Sakura and Kakashi must attack simultaneously to perform the combo. Each of them can choose from N (1<=N <=1000) attacks, having strengths si each ( 0 <...

 
0
Q: Count unique subsets of size k with some S

amdubeTeam 7 faces a horrible foe. He can only be defeated with a special quadruple combination attack of strength S ( 1 <=S <=10^9 ). Naruto, Sasuke, Sakura and Kakashi must attack simultaneously to perform the combo. Each of them can choose from N (1<=N <=1000) attacks, having strengths si each ( 0 <...

 
C++ std
 
12:50 PM
can be done...
bad practice, but alas..
 
std::vector<int>
C++.
 
@TheFailure Thanks, I'm not very familiar with C nor C++
 
no classes no nothing, it could almost be C..
 
It cant be C, Just checked
 
facepalms himself... reading could help
 
12:56 PM
> Below is my code its only passes 3 test cases out of 10. I don't know the test cases as it was some online code submission.

Please review the code and tell me what scenarios you think code will not produce right o/p.
 
yep...
 
I don't even get the problem statement
 

« first day (531 days earlier)      last day (3481 days later) »