« first day (1795 days earlier)      last day (3151 days later) » 
06:00 - 21:0021:00 - 00:00

6:46 AM
Looking at your old code and thinking "ewww, that's garbage", is a good thing. It means you have learned.
 
Looking at old code and thinking "What was I thinking" could mean you havn't fully read the code.
 
 
2 hours later…
8:23 AM
morn
 
8:42 AM
morning Tavo
I know features in Java 7. like Nio, enchancements for standard control flows, etc. So, other than that Why Java 7 is more popular than Java 6 ?
 
try..with..resources
security patches
switch() with string
 
My company still using Java 5. But the when ever possible to use newer version (like a totally new component integrating to the current system) they have chose Java 7. not Java 6
curious to know the reasons from you experts :D
@ItachiUchiha something that anyone can easily remember. I never thought Java had hesitations to add this feature in thier early versions
 
@JudeNiroshan well, I am not an expert in this, but most probably they are still using java 5 because there product is still aiming the people who use it, which IMO, should be very less..
when building a new component in Java 7, they chose it because when they started it, it must have been the latest java version available
 
Hi all.
 
heya
 
8:53 AM
Is there an Assembly language chat on SO? I can't seem to find one. Basically Spim(Mips) stuff
 
I am learning it and it's messing with my brain. It's not like Java at all :o
 
@nTuply no idea, search it in chat.stackoverflow.com
 
thanks. I'm reading it
Happy to see an updated blog which is in 2015
 
Can't find any @Itachi
 
8:55 AM
then none exists..
 
I'm so dead lol
Thanks though.
 
fge
9:28 AM
Assembly? What CPU?
 
Curiously, one of the biggest enhancements I found in java 6 was able to use @Override on interface methods. Such a small thing, but a huge bug hunting time saver.
7 feels a smaller update, but if that's what customers have, supporting 6 is needless hassle
 
fge
9:50 AM
@kiheru a smaller update? With JSR 292 and JSR 203? And try with resources?
If anything I find 7 to be a bigger update than 8
8 wouldn't be there without JSR 292
 
@fge I'm not that good with JSRs.. which one is 292?
 
fge
@Vogel612 indy
(well, that's the visible part of the iceberg, really)
In fact, everything java.lang.invoke
 
10:03 AM
@fge MIPS Spim Simulator using QtSpim
 
fge
Well, google is your friend :p
 
I found some stuff. I can store a single value but I am not sure how to store several values and print them all out\
Basically I need to enter 5 different values and output them. And I can't even do that :| I feel so dumb\ at this point in time
 
fge
arstechnica.co.uk/information-technology/2015/09/… <-- such an article 10 years ago would have been unimaginable :p
"[...] With this new, more pragmatic Microsoft, the use of Linux should be expected"
Hah
 
10:36 AM
\o
 
 
2 hours later…
12:52 PM
Morning, Java!
 
yo!yo!yo!
 
/o\
 
@Jude Java 7 adds a lot of cool stuff to the syntax. Notably: try-with-resources and shorter generics declarations.
Hey @Tavo, @Hans
 
hi
 
Oh, and then there's the new file system API...which blows java.io.File out of the water.
 
1:01 PM
@Michael he already talked about nio package :P
 
@Itachi Oh, sorry. xD
Java 8 adds lambdas and a new date-time API
 
hi
 
I'm a Java newbie.
 
congrats
 
1:13 PM
Java 6 didn't add anything. xD
 
When I need to get latency from a server is it better to execute ping in java with system.milis() or in Runtime.exec() ?
 
"system" is not a class.
 
no I know, I meant System.currentTimeMillis(); just being lazy with typing :P
 
@Michael yes. Java 7 is much better.
 
i mean somthing like this stackoverflow.com/questions/8816870/… vs using Windows' cmd to execute ping
which is better
 
1:17 PM
Considering the fact that System.currentTimeMillis() doesn't, well, do a ping, I would opt for Runtime.exec().
 
Goood morning
 
long currentTime = System.getTimeInMills();
boolean isPinged = InetAddress.getByName(servername).isReachable(2000); // 2 seconds
long currentTime = System.getCurrenTimeInMillis() - currentTime;
if(isPinged) {
    System.out.println("pinged successfully in "+ currentTime+ "millisecond");
} else {
    System.out.println("PIng failed.");
}
 
-_-
That's a little more involved than 1 method call.
 
Well the other method would be too if I pasted the entire code
 
Do what your heart tells you.
You're probably better off doing it in pure Java.
 
1:23 PM
@Dustiny yo!
 
@Tavo Mornin' brotha!
 
what's cracking?
 
Came in 15 minutes late today, bad accident on the roads blocking me. But plus side I got a really nice sleep last night
And also watched my favourite adventure time episode, which always makes me laugh
 
sweet
 
Has one of my top 3 favourite scenes
What about you man?
 
1:25 PM
bacon pancakes is the best scene for me
 
Yeah that's in my top three as well
 
me? All good. I've queued up a huge amount of cool stuff for the next 30 days
resting is for the weak!
 
Right on brother, just like excursion sort of things?
 
Florence and the Machine today. Going to Sardinia for a long week on Saturday. Then my parents are coming over. I've got tickets for Asian Dub Foundation after that. Then going to Madagascar. And upon my return, Cavaleria Rusticana & Pagliaci
 
Have you seen the new episodes of adventure time? I'm trying to youtube and find the scene where Jake is freaking out about the bed, and how its sheets have high threadcount and stuff
@Tavo Oh damn dude! Sounds epic
 
1:28 PM
but I'm missing Weird Al in November because I'll be in Madagascar
but hey, can't complain :P
@Dustiny no, haven't watched Adventure Time for a while now. Need to get back into it
 
Yeah do it. I'm rewatching the series right now... but it's going to take a while, there are so many episodes
 
@Dustiny need to get back to Dr Who as well. Need to finish the previous season before the new one starts
 
Weird Al will be around again! haha
 
fge
<-- totally absorbed by work yet again
 
I got my coworker into drinking coffee... hes like "Yeah.. I'm addicted.. Next thing you know I'll be out smoking with you.. what are you doing to me man"
 
1:33 PM
@Dustiny next thing you know, the guy is injecting heroin in the bathroom :P
 
Hahahahahhaha yeah exactly
Leaves his wife for a younger girl..
 
any ejb people in here this morning?
(morning where I am, anyway)
 
Also I think you'll like this @Tavo
@arcy I dabble in EJB
 
this is likely a newbie question.
 
More specifically, all of my code is written in EJB but I'm no expert on it
 
1:36 PM
I have a stateless EJB; it implements a timer
 
@Dustiny mmmmm not really. I didn't like the base
 
one calls start() on it with parameters for interval, etc.
 
@Tavo Aww really, didn't like that fuzz?
 
I grew up with old school breakbeat ;)
 
I have a need for two timers; I would like to tell JEE to instantiate two of these, so I can give them different parameters.
 
1:37 PM
I like a different type of base
 
I like most kinds of bass
I'm not discriminatory towards bass
(remove the 'b' from the above statements and it still holds true)
 
I wrote "@EJB InterfaceName varName; @EJB InterfaceName varName2;", but got two references to the same bean
 
@Dustiny I knew you bat for both teams :P
 
Is there a way EJB allows that?
 
okay new goal: get a golden java tag badge..
 
1:39 PM
I tried adding "beanName=" to them also, with different names -- same result
 
I want a HAMMER!
 
@Vogel612 stop!
 
@arcy For this, would a @Schedule do the job?
 
@Tavo HAMMERTIME
 
(shame we are missing Caprica 6)
hahahaha
 
1:40 PM
anybody see Uni around lately?
 
he was here yesterday, but he's been pretty quiet lately
maybe Gem was right and he is busy doing other stuff
shrugs
 
@Dustiny was not / am not familiar with @Schedule, will have to read about it.
 
@arcy That's strange that it references the same bean. I have never actually needed to do what you're attempting here. I always use a single @EJB
 
@Dustiny I trust they allow multiple different timers in the same program?
 
upvotes yay!
 
1:43 PM
@Schedule(hour="*", minute="*", second = "*/5", persistent=false)
public void downtimeProcessor() {
..do stuff..}

@Schedule(hour="*", minute="*/4", persistent=false)
public void erpOrderTransfer() {
do other stuff}
 
@Dustiny referencing the same bean made sense after I thought about it -- EJB uses the class name to distinguish the instance, I guess
ah. that may be a problem. I want the parameters to be run-time readable from a database, not coded in the java
 
OR are you looking for a way to time something
Hmm
 
no, every 2 minutes I want code to read the DB and check something, and every 24 hours I want it to refresh its parameter values.
 
You could do that
My code works like this
Scheduler -> Business <-> Database
@EJB
	private IntegrationManagerEJB im;
@Schedule(hour="*", minute="*", second = "*/5", persistent=false)
	public void downtimeProcessor() {
         this.im.createOPCConnection();
}
As an example
Where OPCConnection actually finds the OPC connection parameters from the database, and connects with it
 
@dustiny I understand that; but I don't know how I would get the parameter values (hour, min, second, etc.) from parameter values instead of putting it in the code in quotes
I need to be able to set these parameters at runtime
 
1:48 PM
Oh I see what you mean
Sorry I misunderstood you
 
mp
np
 
It was "every 2 minutes I want code to read the DB and check something," that confused me
Hmm yeah you probably won't be able to use a @Schedule then
 
I see. yes, that 2 might be changed to 5 while the system is running...
I think I looked at it, but don't remember why I rejected it -- this might have been it...
(If I had a good memory I'd be dangerous...)
 
@Tavo When's your vacation start anyways? Next week?
@arcy I know there are ways to initialize more complicated schedules
But if you want complete flexibility through the database I don't think it can do that
 
@Dustiny I'll be out from this Sat to next Sun
 
1:51 PM
Flying there?
 
@Dustiny thanks for the attempt. It's surprising there isn't a standard way to do this
Are all EJBs written so that you can only use one of them in the system?
 
yup. There's a whole bloody continent called Europe between here and Sardinia
 
@arcy I don't think so, I've had issues before by having them overlap eachother lol, specifically when I Was doing that @Schedule and the method call took longer than it did for a new call to the method
@Tavo Haha Europe is like barely the size of Canada dude!
It's a skip hop and throw away!
 
true. But under European standards it's still a whole continent :P
 
Jokes aside, take some picture for me while your there
I expect at least 2
 
1:54 PM
heh. I'm bringing my diving camera with me
apparently there are plenty of sunken boats from WWII there
 
Oh cool!
So lots of pictures for Dustin then
sweet
@arcy Lol worst case you could fandangle a solution to this..but it wouldn't be pretty at all
 
yeah well... Pictures of my holidays a year ago are still in my cameras so... :P
 
Just send me like 2 pictures over whatsapp you wanker
 
that'll do :P
 
Speaking of wanker, I had a dream last night that I was British, it was a pretty WTF kind of dream
 
1:57 PM
@Dustiny remarkable dream!
 
It was probably because I was watching a border security show and some guy was trying to get into Canada and was like "Yeah finally coming home! I guess I overstayed my travelling visa to England by a little bit" .. "how long" ..."uhh about 14 years"
Guy came back with a British accent lol
 
from Scotland, you fecker!
 
hihihi
randomly interrupts conversation
 
lol I love that gif.
 
fears lifetime-ban now
8(
 
2:03 PM
Scottish accents are the most hilarious accents
 
Why is it that only Americans find accents fascinating.
 
i think accents are realy disturbing
 
Im Canadian
 
well they can be nice
like a french accent if its a woman :)
 
@Hans1984 paddlin
 
2:05 PM
whats that supposed to mean
 
 
O...K....
 
also, why this obsession with women with French accent people have? Never understood it
 
I don't know. I just feel like you never hear a British person imitate an American accent and have people laugh at him.
Just a culture thing I guess.
 
@Michael dunno. Maybe because people here don't like the American accent, and the Americans love the British accent
 
2:08 PM
Lol, maybe.
That's right. There was that whole independence thing a few hundred years ago. xD
 
@Michael yeah. They started arguing about tea and look what happened...
 
I hate tea. I don't know how y'all drink it. xD
 
ice tea is the only tea i drink
 
Me too.
With lots of sugar. xD
 
:)
 
2:13 PM
@Michael I don't. I'm in the wrong country to like coffee :P
 
@Tavo Haha
 
@Michael I think it's because north americans (sans Mexico) think they don't have an accent since American and Canadian accents are very similar
So any other countries accent is funny to them
 
fge
@Tavo there is no wrong country to like coffee
 
Except African accents aren't that funny
And Indian accents are more frustrating to understand than funny
 
fge
But there are countries where it's wrong not to like coffee; at the top of the list: Italy
 
2:17 PM
@fge agreed. Surprisingly, Colombia is far from the top of the list
 
@fge Eyyy Mario! Let's get some coff!
 
fge
@Dustiny that would be "ci pigliamo un caffè"
 
@fge we need an emoji for the Italian hand
 
OMG, i got this error.
Error running FileChooser: No module defined
where i already defined a main method
 
@fge Haha I've never been to Italy, so just basing this off the old Italians I've met
But that's good to know, I need to get the pronunciation down of that saying
 
morning
 
@Dustiny Mmm yeah, that's gotta be it. We are just not exposed to as many accents, since our countries are so big!
 
o/
 
It's the man himself!
 
@Michael Yeah exactly, and our media is very centred on North Americans
Most popular shows / movies are all with north american accents
 
2:24 PM
falls asleep and collapses right after walking into the room
 
@Dustiny Yep. We have an isolationist tradition.
puts blanket on Uni
 
Yeah
I also get upset when any call centre I call is not english
Like unreasonably upset
 
Well, it's hard to understand them sometimes!
 
meh
rain....again
 
Shhh. Uni is sleeping.
 
2:30 PM
:o
oops
 
xD
 
did you check if hes still alive?
 
fge
@Tavo if so, let's not make it caricatural :p
 
@fge we need some sort of ASCII-drawn hand
 
pokes @Uni
 
2:35 PM
looks dead to me
 
I call dibs on the crab hat.
 
:D
 
@Tavo What about this one ,,l,.
 
Maximum troll.
Welp, off to lunch. Bye Java!
 
2:45 PM
hahaha yeah I could have chosen a smaller picture..
^lmao
 
bye
well that would actually make a nice avatar
 
Yeah where did you find the one you have now?
Internet circa 1995?
 
its from icq 5
I allways loved that smiley back then
thats why i use it as an avatar
 
Hehe so I was kind of close
 
its actually 5.1
 
2:50 PM
hahaha so pixellated
 
yes
it was hard to find
and even harder to make an avatar out of it
 
Yeah kudos to you for that one lol
 
;)
 
I need to put blink-182 back on my iPod ;| what am I doing with my life
 
:p
 
2:53 PM
Just a random thought of the day
 
hehe
 
3:10 PM
Im leaving
bye!
 
fge
@ItachiUchiha yeah, I know
 
Does it work similar to what you did in throwing lambdas?
 
fge
At a first glance, yes, except it does not have the chaining capability
 
Ahh, I see
 
3:37 PM
I have a really dumb question, but after I've added some dependencies to my build.gradle file, what do I do then? Do I have to add some files to my project?
 
are you using gradle with an IDE?
 
fge
@TobLoef define "add some dependencies"
 
@Dustiny chase girls and brag about it?
 
@ItachiUchiha Yes I use IntelliJ
 
@Tavo Hey now, I like to think of it as sharing, not bragging!
 
3:41 PM
@fge I'm trying to install this github.com/TomGrill/gdx-dialogs
@fge but I'm not sure what to do aside form adding the few lines mentioned in the readme, to my build.gradle
 
@Tavo I never realized how annoying it was until one of my friends started doing it back to me lol now I basically just try to never talk about it
But I think to my defense the kid is just generally more annoying than I am
 
@TobLoef Just import the project as a gradle project
 
@Dustiny fair enough. I really don't want to meet that guy :P
slightly related question: can you strut about something?
 
@ItachiUchiha I already have a project which I want to add this library (module?) to.
@ItachiUchiha It is this projects build.gradle I've added the dependencies to.
 
@Tavo Hahah ouch.
Don't know if that was an intentional burn or not..
Am I just the right amount of annoying? lmao
@Tavo As in, replacing brag with strut?
Like you're being cocky about something, or proud of something?
 
3:52 PM
@TobLoef and?
 
@ItachiUchiha I'm not seeing what I'm doing wrong here. I've added a few lines of dependencies to my build.gradle and built my project, but the library I tried to add still isn't working (or that matter even in project as far as I can see).
 
@Dustiny yeah. I wonder whether you just strut or you can strut about something as in brag about something
 
Hmm I've never heard it used in the latter but it doesn't seem wrong to me
 
@TobLoef can you show me how are you trying to add the dependency?
 
Might take someone a bit to wrap their head around it
 
3:57 PM
boh, just wondering
 
Yeah I think if people starting using it more in the context it could catch on
"Bro he was totally strutting about wheelin last night, what a bozo!"
 
Here's my build.gradle. http://pastebin.com/VXN1t9i8
I added the line compile "de.tomgrill.gdxdialogs:gdx-dialogs-desktop:0.2.0-SNAPSHOT" under core, desktop and android, just changed the line so it fit the appropriate platform. Just like it said on the projects github page https://github.com/TomGrill/gdx-dialogs
 
It makes more sense in the context actually now that I give myself examples.. It was because you said strut about something that it took me a few seconds to know what you meant
 
fair enough
 
That and I thought you said struct for a second lol
Start a trend brother
I'll start it on this side of the atlantic
You on the east side
 
4:04 PM
@TobLoef Do you have this artifact in any of the repositories that you have declared?
 
I have only added those lines. No files have been added or downloaded
 
You should first install the artifact in your local maven repository, add mavenLocal() in your gradle repository declaration and check if it works
 
Alright, I'll look into that.
 
@Dustiny you are not going to believe this: there is a Club de Fromage in London (please don't confuse it with a club au fromage for those who speak French)
 
Wait what? lol
I'm still reading that as Club of Cheese
Or would it be Cheese Club
Lol "started by ex-gangster fat tony"
 
4:07 PM
/urban omelette-du-fromage
no bots? damn it!
 
@Michael ^^
 
@Dustiny just google "omelette du fromage"
 
haha I am
LOL a club that's just a play off of a dexters lab thing?
I actually vaguely remember that episode
also a steve martin joke
 
looks like it. And they are having their fourth yearly meeting in Ally Pally this month :D
 
So you're going to go, eh?
 
4:11 PM
I'm thinking about it. It's a rollerskating event
 
Oh that'd be fun, I haven't gone rollerskating in probably 10 years
I feel like the only people who rollerskate these days are butch girls in roller derby
 
@Dustiny don't know what that is...
 
4:27 PM
@Tavo If you want to discover the most pointless sport, check it out lol
Probably 80% of the players are lesbian
 
@Dustiny why are we not funding this?
 
It's interesting because it's an aggressive semi-full contact sport, but the rules of it are ridiculously bad/confusing
 
fge
<-- watching epic handball matches for pure pleasure
Especially since now the French championship is widely available
 
4:42 PM
I remember playing handball in elementary school.. fun sport
 
<-- watching epic bullet chess games
 
<-- leaving to see Florence and the Machine live
waves hand
 
Enjoy dude
 
will do, ta!
 
<-- watching JSR-376
 
4:48 PM
have a good rest of the day
 
Thanks man
 
5:43 PM
http://www.commitstrip.com/en/2015/09/22/software-worth-billions/
CommitStrip - Blog relating the daily life of web agencies developers
Software worth billions…
CommitStrip
1442943203
 
 
2 hours later…
7:35 PM
stop killing my chrome :(
 
7:55 PM
LOL
crashes instantly
 
fge
@MadaraUchiha well done... I haven't even clicked on the link and the page crashed
(not the browser though)
 
@fge Luckily, chrome has one process per tab (or tab group)
So the core browser doesn't crash
Apparently, this resolves to aaa.com/%00 which is a valid gurl, which is passed into a function that strips it of its username and password, but then it encounters %00, and parses it into the null character, which isn't valid in URLs, and that throws a DCHECK error
which is never caught, because the result of username/password removal is "guaranteed" to be a valid link
 
fge
You have to wonder why specific URIs trigger methods within the core of the browser...
Custom schemes, why not; but apart from that?
 
Ugh get rid of that
 
Might not be the right place, but I can't find an assembly chat room
Of anyone knows some assembly might help answer this question, I would really appreciate it :)
0
Q: MIPS (SPIM) Assembly input/output

nTuplyI just started learning Assembly programming using MIPS simulator and I am using QTSpim. Now I am trying to take 5 input values(strings) from the user and output them. The final output should be as follows: Input 5 strings: 3 2 5 =2 =5 Output: 3 2 5 =2 =5 I tried to write the code for it but ...

 
fge
8:05 PM
@nTuply and how do your searches go?
 
@fge managed to learn how to make addition and take user input
Tried to make a program to take 5 inputs from user and output them. Failed :(
lol
I basically started learning ASM today
 
fge
Well, you have to start somewhere
 
Agreed.
But the problem is I thought I understood it. When I made that simple program I made it after having done one with simple addition and user input(integer value). Now I tried to input 5 strings and it doesn't work.
And the views on the post at so low that I think I'll never get an answer :|
 
fge
SO is not the be all and end all of developers; veteran "answerers" did struggle to acquire the knowledge they have, just do the same :p
 
Ahhh assembly.. It's been a while
 
8:18 PM
I thought I understood it. That's so shattering
I managed to see my mistake with reading the inputs. However I just can output now lol
 
06:00 - 21:0021:00 - 00:00

« first day (1795 days earlier)      last day (3151 days later) »