« first day (1466 days earlier)      last day (3474 days later) » 

1:29 AM
Dead chat
 
 
2 hours later…
3:49 AM
FUCK YEAH!!!
does a victory dance!
 
 
1 hour later…
5:03 AM
!?
 
5:13 AM
I got a reply on my project. I turned it in yesterday
Highest grade and two eff yous for being so good.
Aparently a lot of my classmates have failed misserably so he got really happy when he got to see my code :P
I did not expect that reaction, but it made me happy ^^
 
:)
Well deserved! Keep up the good work!
 
He loved my JavaDoc too (required for the highest grade)
 
You have the potential to be a decent coder, in case you haven't realized. Some people just can't makedo algorithms and documentation, it's miserable. ;)
 
So today I'm gonna go to school and review the fe tiny parts that could be done better, mostly because my teacher has set that nothing short of perfection is good enough for me :P
 
Post it on Code Review then. :)
I'm not near a computer, so I won't be able to post an answer if you do now. :P
 
5:20 AM
I hope I do have some talant for it. I think this is fun and if I can get to live off of it I'll be very fortunate.
 
Oh, but a question, do you do maths?
 
Yes
I'm kinda slow at math when I do calculations on paper tests, but I do math.
 
Well...
 
Well?
 
Have you thought about top notch development? Video processing, rendering, predicting flights of spaceships, they're all maths over programming.
 
5:23 AM
I have, but I'm starting small. I will probably end up there some day; I tend to get "bored" with my knowledge so I'm in constant need of learning new stuff
 
So if you want to live a fortune out of being a programmer, with or without mathematical skillsets is an important key ro determine which field is good for you, like software dev.
Hmm.
 
I don't have to earn a fortune, I'd feel fortunate if I could just earn enough to live off of it
 
:)
 
I've been freelancing as a graphics designer, cost me more than I earned :P
 
Oh, and always take what I say with a grain of salt. It's not the best idea following some online teenager's career advice.
 
5:27 AM
I know that XD
Also, the markets here and where you live are different
Programmers are in very high demand here
 
I also don't understand how people include their SO reputation into their CVs. your colleagues might know of the site, but employers don't.
 
It's probably one of the very few job-markets where the unemployed is the one to pick and choose :P
I don't know either, people seem desperate to try and show themselves off
 
Lucky. I envy sweden, a very fortunate place.
 
The only place in even more demand of programmers is holland :P
Sweden also has a kinda good politics for employment (for now at least). Flipping burgers at mcdonalds is a nice job.
The crap jobs are being hired by a staffing company; you get a shit wage while the company who bought your services is paying full price.
The middle-man gets the nice parts. And they are kinda untouched by the law
 
Programmers here has to deal with cruel deadlines, rude bosses, undercredited as usual, and long work hours
unless it's a startup
 
5:33 AM
Yeah, it's terrible :/
If you wanted to move abroad though, you'd have a lot of great chances.
I'm gonna keep calling you a prodgedy
;P
So about Code review, do you put the entire thing in there or only a part of the code? It seems to be more questions about smaller things on there
 
:D
Take their tour.
 
I am, but I'm also comparing it to the questions there
Heck I've read their tour thrice XD
 
!! :D
 
I just woke up so my brain is probably still booting¨:P
Best way to start your day though; being praised to the sky by your teacher XD
 
6:01 AM
purrs contently
 
ASR
6:48 AM
Hi all I have a one problem with date format, my date format is now like this
2014-10-12 00:00:00.0(from mysql)
now i want to convert it dd/mm/yyyy.
 
7:42 AM
Hello, is there anyone here familiar with Minecraft Forge?
 
 
1 hour later…
8:58 AM
@RichardA I work with MCP, not MCF though, but you can ask.
@RichardA Actually, I think I've used Minecraft Forge before, and the tag was created by me.
 
 
1 hour later…
10:08 AM
@ASR What have you tried?
 
fge
Hmm, OK, I have quite a complicated scenario and I wonder whether what I want is feasible
Using TestNG you can timeout tests... Can you make it so that annotation is ignored if you try and debug your test?
 
What do you mean ignoring an annotation? Can you comment it out or something?
 
10:24 AM
@Unihedron Well, I'm working on a mod and I have an event handler which is being fired twice. But I have no idea why.
 
@RichardA I saw your question.
 
@Unihedron Which I should update, one moment.
I made some changes.
 
The documentation didn't reveal anything helpful. minecraftforge.net/wiki/Event_Reference
 
No it didn't, I checked there too.
I also asked on the Forge and Minecraft Forums, nothing there yet.
 
Uh oh. Did you cross-post?
 
10:27 AM
Cross-post?
 
I.E. Leave tickets in two different places on the internet
 
Yeah.
In case someone knows, I can update the others. Potentially prevent it from happening to others.
Is that a bad thing to do?
 
I don't know, though Stack Overflow raid moderation users might smack you real hard if they find it out. It doesn't happen that frequently though.
 
Oh.
 
I don't have a Forge environment set up to mess this with (And I don't have very much time on my hands right now), do you want a quick comment though?
 
10:32 AM
Sure?
 
In your getSoulAward(Entity) method, you can use else ifs instead of just ifs so the conditionals can skip when any of them passes. Fundamentally no object instance will be of more than one of those types.
It's better algorithm.
 
Is that better performance wise?
 
I'm not sure how you would measure performance when coding Java. Good algorithm is good algorithm.
 
Fair enough.
 
If you're using HotSpot, then yeah sure it will help the interpreter.
 
10:35 AM
No idea what HotSpot is.
 
It's one of JRE implementations.
HotSpot, released as the "Java HotSpot Performance Engine" is a Java virtual machine for desktops and servers, maintained and distributed by Oracle Corporation. It features techniques such as just-in-time compilation and adaptive optimization designed to improve performance. == History == The Java HotSpot Performance Engine, first released April 27, 1999, was based on technologies from the Strongtalk implementation of the Smalltalk programming language originally developed by Longview Technologies which was doing business as Animorphic. Animorphic's virtual machine technology had earlier ...
 
Depends if Forge uses it.
 
@RichardA Depends if you run Forge on HotSpot.
 
Oooh.
 
Forge runs on Java.
 
10:36 AM
No, I run Forge.
On Java
 
And did you install HotSpot as your Java Runtime Environment?
Or did you even install Java?
 
Just JRE and JDK
 
Which JRE though?
 
Not HotSpot, that's for sure.
 
If you're using Oracle JVM, then it's HotSpot.
Cuz that's what HotSpot is.
 
10:38 AM
I did a quick check, it IS HotSpot.
java -version said so
 
Then yeah, use else ifs.
 
Okay, thanks for the tip.
 
There are other hackable implementations of JRE, and they may or may not benefit from this small algorithm change.
 
Well, if it's ran every time a mob dies.
 
Hmm, I don't see anything wrong with the implementation, it has to be something wrong with the event caller. Maybe the problem is with it throwing when the entity health reaches zero. Sometimes there's overkill damage.
But that doesn't explain it throwing itself twice.
 
11:06 AM
Guys i have a question!
 
doesn't care
Ask it?!
 
if we have to upload files, should they be uploaded to the webapps folder or wtpwebapps?
i am working on an application and i found out that if i upload files to wtpwebapps, it will automatically delete the files after a while
 
Neither?
 
you mean save the files outside the application folder?
somewhere like: C:\app\uploads\
 
What stops you from doing that? It's not like you provided any specifications, and it totally works.
 
11:09 AM
i'm not sure why i'm facing this. i asked his question and i cant get an answer. stackoverflow.com/questions/26605477/…
when i placed the files outside the application folder, the files remained there. But when placed inside the application folder using: request.getServletContext().getRealPath("") the files would be deleted after a while.
as if they were temporary files.
the files are uploaded. after 10-20 seconds, they disappear...
 
Where's the problem?
The server's probably configured to do that. Are you using shared hosting?
 
no...
that is what i dont understand. Why are the files deleted... i dont get it myself :/
i'm currenlty working locally...
 
11:35 AM
thanks guys :)
i mean thank u @Unihedron
 
You're welcome, I'd help more if I knew what's wrong.
 
actually... i want to know one more thing
maybe you can help with that.
we can download only a specific type of file. How could we download a file which is of different type say i uploaded .jpg so i can download the same file then and if its .png or .doc or pdf
 
What?
Can't you use that HTTPComponent thing from apache libraries?
System.out.println(Request.Get("url").execute().returnContent());
 
i didnt know that...
i'll check that out.
thanks! :)
 
It's sweet. But if you're downloading a binary file, returnContent() returns the binaries, which may not be helpful.
But it works pretty well with html, xml and text files (raw).
 
11:50 AM
since its html so it will work for me
 
Great! If you're downloading a binary file you can use .toBytes() and write it to a fileoutputstream. Just thought you'd like to know.
 
yes...
thank u for sweetening the pie for me :D
 
sure @Unihedron many thanks bro!
 
Glad it helps
Now if you excuse me, I'm going to get my meal. Bye!
 
11:55 AM
bubye :)
 
12:49 PM
Good morning, Java!
 
Good morning
I'm pretty sure I want to talk to my boss about possibly moving away from this Perl project into something more professionally built.
Can't seem to get the team to agree to the simplest of best practices.
 
Like what?
 
Like the master branch being the official code on record.
They want the prod server to be the official code.
Found out last week the guy who I thought was most on board with adopting git secretly believes the prod server is the "truth" and git is secondary, even though he's previously agreed with otherwise.
 
Wow, really?
 
Do you at least keep track of what code snapshot is running in production (e.g. with tags).
 
12:53 PM
Their process is to develop locally, manual copy files to prod, then update source control.
All manual steps.
 
Huh.
Not even an automated script for that?
 
They only just started using branching. I got them to create feature branches for each JIRA task. They commit there, then merge to master. At least that part is done right.
But there's no guarantee master matches prod.
The problem is their design is total crap.
Unlike a Java webapp, which is super simple. You upload a WAR file that contains all code, resources, and dependencies. Done.
They decided that it was appropriate to install resources, data files, etc. in a single install path. But then install the Perl modules and scripts in global system dirs so that they're always in search path.
This, of course, mixes with existing global system modules and executables.
So the best you can do with a deployment is to overwrite files with the new version.
But to make it worse, the install path is hardcoded all over the code base.
You can't install it anywhere else.
 
Sounds like a hell to work with..
 
That stinks.
 
And the scripts and such expect all the modules and scripts to be in the path. If you try anything else, all kinds of stuff starts breaking.
 
12:57 PM
You should put the install path in a config file somewhere.
 
I have a solution to all this, but I can't roll it out yet.
We're waiting on new web servers that were ordered in June, and STILL not installed because stupid asses drop the ball at every step.
I recommended VMs behind a load balancer. Then they disregarded that and went ahead and ordered physical servers and intended on a Linux cluster configuration.
It seems nobody likes good ideas.
 
Dang
 
The new servers will contain the new code that removes all the hard coding. They don't want to roll out on the existing servers because they're used to manual deployments on a running system. Kind of like tuning up a car while it's still running.
I'll stop ranting now. :) I'd rather work on a Java project.
 
Good luck @spoulson! Hope the best for you!
 
Well, at least you got them to agree to implement the new design on the new servers!
At least, part of the new design.
 
1:08 PM
I've muttered about solving certain design issues the "Java way" and I get the look of disapproval. ಠ_ಠ
I've installed Tomcat 8 on the dev server. I ought to just make something kickass to show them up.
I don't get the animosity to Java. They're really missing out.
And SAP has its own mature Javascript UI that works well with Eclipse/Java development. Not sure why we wouldn't use it.
btw, new Retina iMac is out. 5k display? WANT. store.apple.com/us_smb_78313/buy-mac/…
 
Yeah, looks awesome.
 
ASR
@Unihedron done ty :)
 
@spoulson Ohhhh...
 
hello
 
1:24 PM
hi
 
Hey @Joe.
I never programmed in Perl before.
 
@Michael Perl has great regexes!
 
Use it for small scripts, not enterprise solutions.
 
Yes, Perl is very handy for grab and go operations.
 
I happen to really like Perl. But not at scale.
 
1:28 PM
Is it like PHP?
 
No, PHP is more of a "weak" language. You're presented with tubes, and you plug them.
 
Once you have good debugging tools and IDE intellisense integration, you don't want to go without it.
 
Perl is a mastery and excellence in craftsmanship.
 
PHP is loosely based on Perl. They managed to make it worse.
 
Unfortunately I'm no good at Perl.
 
1:30 PM
Perl is kind of a jack of all trades. You can make scripts, web servers, and web apps. But should you?
It doesn't do web all that great.
 
Haha "but should you"
 
Perl is pretty slow.
 
Java can do everything! But should you?
 
@Gemtastic Java doesn't let you play with pointers and bithacking.
"Security reasons", eek, they're just keeping new learners safe and sacrificing cutting-edge efficiency.
There's a pointer library which does stuff like Pointer<Byte>, but I doubt it actually is any good, I don't see them using native anywhere.
@spoulson Wait until you see a running Pascal program.
I cri ever tim
 
Tell me something good
 
1:36 PM
@Joe'sMorgue I finally started working on Astro's script.
 
@Unihedron I'm sure you could simulate it... somehow ;P
I'm just kidding
 
Just put him on the dog walk and be done with Astro! Work on Rosie's script!
 
@Trevi You used to make minecraft forge mods, right?
'Cuz I have a problem.
 
@Unihedron I got some nice replies to my code on CR
And I already have 28 points :P And I didn't even do anything but post my code :P
 
2:14 PM
My first Code Review question had 7 votes.
I guess it has to do with them trying to graduate.
 
They are graduating, it's official
It's been so long since I did C++, Java has ruined me a bit. "How do you do it when you can't make it into objects?"
;P
 
@Gemtastic Really?
Wow, I missed the days where PPCG and CR were spying on each other to be first to graduate. :)
39
Q: Call of Duty - We're on a mission

Mat's MugThis is a direct reply to Grace Note's recent CR review, more precisely the following part: (emphasis mine) Unanswered Tying in to all of the above is one of the most pressing concerns about the site I had in my own review, which is the gigantic pool of unanswered questions. There are, ...

 
76
Q: Code Review SE is graduating!

PopsMany of you have already seen announcements both on main and on meta announcing this site's graduation. At the request of a few of you who were skeptical (or perhaps merely in shocked disbelief), I'm here to confirm that yes, the Community Team has indeed decided that Code Review should graduate....

 
@Gemtastic I do realize.
 
I just wanted to post a source >_>
 
2:29 PM
Lol, so true:
 
@Unihedron yeah, still do a bit tho its hobby :)
 
Can you help?
1
Q: LivingDeathEvent fires twice, or not at all

Richard AI have an event handler which handles the LivingDeathEvent, but it either fires twice or not at all. Why is that? The event handler: public class EntityHandler { @SubscribeEvent public void onEntityDeath(LivingDeathEvent event) { DamageSource source = event.source; En...

 
Ill take a look :)
Most of the time its because its being executed on the client and the local server
Or well the fire twice thing
 
2:57 PM
@Unihedron that's how I imagine my teacher was last night XD
(He's grading our projects)
 
:)
 
I can look at his mail forever. Those words of praise really make me happy
 
Reminds me that first donation I got.
For writing that regex too.
I was really happy. :)
 
(Don't worry though; I'm still a n00b and I know that ;P)
@Unihedron Those little things that make you that happy are nice. To me it was especially nice since I didn't expect that much praise
 
Hehe.
 
3:04 PM
Heck I was even worried I'd have to redo it XD'
 
And "Hello World" too. I was really happy when I finally set up my environment and have it work. :)
 
Though when I read the reviews on CR I can kinda see why I worried; I'm trying to measure myself to people at a much higher level than I, or than where I should reasonably be considering I've only programmed for about 8 weeks
Though I like setting high goals; shoot for the stars and maybe you'll reach the moon
 
Change the world. :)
 
I told you, I'm gonna be awesome, so I better work hard ;P
 
@Gem how do you feel about the music? commitstrip.com/en/2013/01/17/…
 
3:11 PM
@Unihedron Well, I attended a music senior high so I like music! But dunno if I want some earnumbing chiptune on my key-gens (And I like chiptunes)
I'm a singer too you know :P
 
 
1 hour later…
4:18 PM
posted on October 28, 2014 by Artist

I've nagged about this everywhere online today, but I'm genuinely happy about passing my first course with the highest grade and lots of praise I didn't expect. The goal in my coding is to make readable good code that's safe and generally well structured and built. It feels nice when it pays off, and I just love coding more and more for each day. So I'm celebrating by bying myself a new mouse

 
5:18 PM
Night!
 
5:57 PM
Hi
I have a column in my table NUMBER(5,3) can I use this type in java as Double or Float ?
 
@fahdijbeli you can, but floats and doubles are not precise - you will probably want to use BigDecimal
 
6:22 PM
@Kylar I never heard of BigDecimal.
 
6:35 PM
It's an arbitrary precision decimal number object
Float and Double are object wrappers for float and double - and those don't have specific precision.
ie:
double d = 1d;
double d2 = 0.1d;
double d3 = d1-d2;
System.out.println("%d %d %d".format(d, d2, d3));
 
I wonder why I never heard of it before.
 
been a while... raise your hands vampires of the east!
 
0
Q: Loss of precision after subtracting double from double

arjen1988 Possible Duplicate: Retain precision with Doubles in java Alright so I've got the following chunk of code: int rotation = e.getWheelRotation(); if(rotation < 0) zoom(zoom + rotation * -.05); else if(zoom - .05 > 0) zoom(zoom - rotation * .05); System.out.println(zoom); Now...

basically:
    System.out.println(0.1d+0.2d);
prints
0.30000000000000004
 
fge
Not surprising
 
7:13 PM
Sometimes I get bored and make new avatars (:
And sometimes it works
:/
 
fge
7:36 PM
@Gemtastic oh, if you're bored I have plenty of stuff to make you do
 
when does this procrastination ends....
 
fge
OK well, here is a challenge for you all; try and improve upon this: github.com/fge/java7-fs-ftp
 
7:59 PM
What's in it for me
My Consulting rate is $300/hr with a 4 hour minimum
 
do i have to place reference to owner classes on my comprising objects?
like say... a teacher class has student objects....
now do the student objects need to store reference on their teacher...
 
Not necessarily
 
you could say "depends" on what i want to do..
 
That's a decision that you make when you're designing stuff
 
so i am rubber-ducked..... you only place reference on it when you need to...
 
8:07 PM
So for instance, a singly linked list has Nodes that point to the next node, but not the previous node
 
but what if i dont need it now... then suddenly it pops in the future like " hey mofo, got to need this"
 
but a doubly linked list has nodes that point both ways
@LeeJeong That's a fear that we all have. It happens, but rarely
 
.. ok
 
Figure out your use cases before hand
 
ahahaha...
this is a very foolish question.. but i am...
where do you start developing a programm...
course design... on what?
is it necessary that my tables the same design with my application objects....
 
8:14 PM
Usually you have a problem that you want to solve
so you think through how you're going to solve the problem
then you realize you should have majored in Liberal Arts
 
Fvck man! You hit it on the nail!
i want to do performing arts instead... T.T i came flying to soft dev for dream of creating games... but its this.
 
9:12 PM
Hey guys, has anyone ever gone there: en.wikipedia.org/wiki/…
 
Nope
It doesn't pay well :)
 
are you a student?
 
Not anymore
 
yes, they give you very little $, but isn't a great experience?
I wonder what the level is...?
 
level=academic
 
 
1 hour later…
10:49 PM
Hello
 
anyone with libgdx experience here
 
11:10 PM
Morning!
 
Uhi
morning 2 you
are u experienced with libgdx
 
Hi @Unihedron @BenBeri
 
hey
 
11:28 PM
hi
 
Whats up?
Wow! Shut up! I can't read that fast!
@Unihedron What's this I hear about you being in charge of rumor control?
 
11:46 PM
What's rumor control?
 
Do you know what a rumor is?
 
Empirically, no
 
A rumor or rumour (see spelling differences) is "a tall tale of explanations of events circulating from person to person and pertaining to an object, event, or issue in public concern". However, a review of the research on rumor conducted by Pendleton in 1998 found that research across sociology, psychology, and communication studies had widely varying definitions of rumor. In the social sciences, a rumor involves some kind of a statement whose veracity is not quickly or ever confirmed. In addition, some scholars have identified rumor as a subset of propaganda. Rumors are also often discussed with...
 

« first day (1466 days earlier)      last day (3474 days later) »