« first day (1650 days earlier)      last day (3515 days later) » 

01:25
meh; ignore facebook.. they'll go away
In other privacy news.. a couple of transvestites attacked an nsa facility guns blazing a month ago.
while(isWatching(NSA)) { sendAngryTransvestites(); } //effectiveness is debatable
01:42
@Woodrow hi
01:58
@mikeeustace hi
@JudeNiroshan - morning.

Where do you live? You're always on in the mornings (well, my mornings)
what is that new thing Unihedron is always talking about instead of JDBC?
hehe. i'm from Sri Lanka
it's 8 am
getting ready to go to work
Ah. I'm British (but in Thailand) - 9am!
What do you do? Something with computers?
02:12
developer
found it :D jooq.org
see ya later
have a nice day!
02:28
Bye
02:40
Bye
I'm revising and looking at those annoying "print a triangle of '*', print a hollow rectangle of '*'" etc using loops.

By the time I get to hollow triangles, there's just no way my brain can understand or picture the output of

for...for...for...if...else...

and also the effect of a println(); or print(" "); in their particular positions.

Am I missing something? Is there a way to figure out the output? Am I just too dumb (hope not!)
 
2 hours later…
04:43
Anyone around?
05:09
yes
java room never dies :D
05:28
RAAAAAAHHHH~!
Could you help me run a class file from cmd prompt
huh? seriously ?
I've only ever used an IDE!
1) set the path to /bin
2) compile the .java to .class
3) run
lol
How to set the path?
The path is H:\109 Practice\GreatertCommonDevisor\bin
and there is already a class file in there...
05:35
no,
first you need to set the path like
set path="C:Program Files/Java/bin"
then confirm whether the path has set to that location by typing "PATH" and hit enter
Yep, it was set. The output is

C:\Documents and Settings\librarynet>PATH
PATH=C:\Documents and Settings\All Users\Application Data\Oracle\Java\javapath;C
:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
so far so good
after that go to the directory where you have .java file using 'cd ' command
then use 'javac <YourJavaFileName>.java'
and go and see whether the .class file has created in your directory
is the java file in the src folder (usually) ?
then just type 'java <Class file name>'
you mean in your project that you are working with IDE ?
if that, answer is yes
05:42
got it, ok?
No,

C:\Documents and Settings\librarynet>javac GreatestCommonDivisor.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\librarynet>
Hi! I have a problem in reference to my question: stackoverflow.com/questions/29937812/….
Im having a strange problem, the solution to that question worked yesterday but today morning I pulled the code from git on a different machine and not it doesn't work.
The problem is the & character is showing up as &amp; again now!
06:06
Anyone?
@shyam i see you got the answer for your question
@mikeeustace ohh.. it seems like your java path has not set to java/bin folder
Thanks. Why not? Is C:\Program Files\Java\jdk1.8.0_45\bin incorrect?
I took that by copying the directory from the win explorer window
because you have set system variable to PATH=C:\Documents and Settings\All Users\Application Data\Oracle\Java\javapath;C
:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
this has been configured to your machine
o/
06:21
environmental variables
Okay....
@Appu isn't that so? i haven't deal with those much.
I typed

set path = "C:\Program Files\Java\jdk1.8.0_45\bin"
@JudeNiroshan Sorry, that ping was about? I don't have context
@JudeNiroshan Yes but no. I mean, it worked fine yesterday on a different machine but something weird is happening today morning as it turns out!
06:58
@shyam do you mean that even after you use parenthesis ?
@shyam according to the doc from thymeleaf the answer you received is correct. It should work. i haven't used it. i'm kind of meh... :(
@mikeeustace Where does your .class file exist?
@appu how to create a empty string array?
i want to eliminate the nullPointException when calling .size()
so i decided to create an empty string []
opps! omg! what am i asking here?.... sorry
07:20
@JudeNiroshan ?? .size() is not meant for an array, is it?
@JudeNiroshan Yeah. I have the parenthesis. Thanks anyway :)
Morning
ASR
ASR
mrng
fge
fge
07:39
@JudeNiroshan Collections.emptyList() (or emptySet())
java morning
fge
fge
<--- working like a dog, but loving his work
Meh
07:58
:/
08:23
@fge ela
fge
fge
08:36
I have discovered another interesting anime...
~interested
beep beep
fge
fge
"The melancholy of Haruhi Suzumyia"; problem is, episodes 11 to 18 is too long
I already watch that @fge
fge
fge
But the animation film ("The disappearance of Haruhi Suzumyia") is one of the best ones I've ever seen
08:38
6 years ago :D
fge
fge
Yeah well, I just discovered it :p
hmm...
 
1 hour later…
09:39
@fge i'm curious to know is this possible with an tricky way?
http://stackoverflow.com/q/29962581/4506140
i know static methods can't access non-static stuff
"I know you can't, but is it possible anyway?"
contradiction in that sentence :(
fge
fge
@JudeNiroshan it isn't possible and you don't want to do that anyway
@JudeNiroshan I'm glad you realized your question contradicts itself, and that you already self-answered it.
fge
fge
~maven--
09:51
thank
thanks
my very first question in SO -_-
http://stackoverflow.com/q/29964393/4506140
"This give an error in eclipse IDE." eh no it doesn't
that error symbol is coming
unless allText isn't String
allText is a String array
That's the Eclipse compiler's fault then, because it works fine on javac.
09:58
Hey, I'm running into difficulties with the Criteria API
dammit @JudeNiroshan
I need to do a simple query:
SELECT t1 FROM Table1 LEFT JOIN Table2 ON t1.id = t2.table1 WHERE t2 IS NULL
but I can't seem to find out how to do it in CriteriaAPI
can anybody help me?
fge
fge
"t1.id = t2.table1"?
@Erates don't do it in criteria api..
yes, the join link?
fge
fge
09:59
And "t2 is null"?
Uh
oh lol
yes, I need all the Table1 objects not linked in Table2
@Erates You expecting a table1 property on NULL?
now that's something different.
LEFT OUTTER JOIN ?
10:01
SELECT t1 FROM Table1 t1 WHERE t1.id NOT IN (SELECT t2.table1 FROM Table2 t2)
@Unihedron Look, I've got 3 tables: Table1, Table2 and Table3. Table1 and Table3 are independent tables, while Table2 links the 2 together
Now for every link between Table1 and Table3, I've got a row in Table2
soooo your query is wrong
fge
fge
select id from table1 t1 where not exists (select 1 from table2 t2 where t2.table1id = t1.id)
What I want is every Table1 object that aren't linked in Table2
@fge that looks faster..
10:03
@fge 1 -> t1
fge
fge
But, uhm, this is Hibernate, so SQL support is limited
@Unihedron why?
Native query ftw.
fge
fge
I only need the existence test
unless you mean TOP 1?
fge
fge
No need to select a column
10:03
You have to label the column if you want a constant?
nope
fge
fge
Eh?
it's not a column anyways
fge
fge
It isn't indeed, it's a column expression
But then a column from a table is a column expression too
You select column expressions, not merely table columns
And for harnessing this power you need to have access to SQL proper :p Which is where JooQ outshines any ORM save for MyBatis
So what should I do? I should do it via the CriteriaBuilder
I've done simple selects with complex where clauses, but never this..
10:11
sprint is ending today!!! haven't even started my development yet o_O
What's sprint?
fge
fge
@Erates no idea; I have abandoned Hibernate a looong time ago
@JudeNiroshan That doesn't answer anything. Is it a framework?
Good bye guys. see you soon!
10:15
Oh well.
Your language sucks! PHP FTW! IT IS GREAT AND DOES ALL THE THINGS!
Uhhhhm morning I mean. Typo
@PeeHaa you should totally drop that and try jquery
fge
fge
@Unihedron no, it's an "agile methodology" process
Basically, it's a development cycle iteration
@fge Oh cool
10:24
@fge Does agile work for you?
oh not you
God I suck at this chat thingy
fge
fge
@PeeHaa they used that at my old job and it worked well as a general rule; but then it's not a flawless method either...
What is the length of this string -> ""?
@fge Last time a client of mine wanted to work using agile it ended up with the same shit different name
@PeeHaa haha I recently did a WebApp project for a company. I wanted to do it in PHP but their systems were all in Java. So I had to do it in Struts2. Made me realize that PHP is so much more simpler implement.
@user1675395 0
10:27
@KsheetijSaini :P
fge
fge
@PeeHaa hence the crucial role of a project manager... Dealing with the different parties
That's no easy task (my gf does that, I can tell)
@Unihedron Doesn't it take into account the null character?
What is a null character?
@KsheetijSaini PHP rox
terminating character like \0
fge
fge
10:28
@user1675395 a Java string constant is an array of chars and a length; and a char in this array can be 0
There is no such thing as a "terminating character" in a Java string
Alright thanks a lot
Really appreciate it.
Just try it out and you'll see :P
@fge Yeah I can see a lot depends on the PM
Pulled an all nighter already, 6.29 am here. Just want to get it done with now
fge
fge
@user1675395 never a good idea to code when you're exhausted -- go to sleep
10:30
@fge Why? It's the best way to write all the bugs
Almost done. Finishing touches.
@HassanAlthaf Yeah. For web development I would prefer working in PHP or Python.
@fge Meh write code when (sleep)drunk, run tests when sober :)
fge
fge
No thanks :p
@MadaraUchiha indeed; been there, done that, won't do it again
> Failed to load resource: the server responded with a status of 503 (Service Unavailable: Back-end server is at capacity)
crud my server is dead
10:41
morning
Morn'
caught new bugs, fixed the bugs, remain thankless. The unsung story of the developer.
coming to a cinema near you july 2019.
meh typical
@Nisk o/
hi
Does anyone know how to code on radio buttons in Netbeans?
10:54
Aside from the fact that there are bad practices involved, the article is very concise in emphasize for using Java concisely. ^
none of that makes sense to me
@rubin.kazan no, it was not for you, and I highly doubt I will bother helping you with your vague and incomplete problem anyway.
fge
fge
@Nisk meh, the story of a systems engineer is just as depressing... It's one of the only jobs where the only moment you notice such a job exists is when something doesn't work
(speaking from experience :p)
@Unihedron lmfao
@fge tell me more about that :P
fge
fge
10:58
@Unihedron example: your 503 error from earlier
I rebooted it.
fge
fge
You did notice that, yet when it "just works" you don't even care
So true. :p
fge
fge
Am I right?
How would i calculate an average in java?
10:59
yess
fge
fge
@rubin.kazan an average of what?
integer arrays
sum / count
In colloquial language, an average is the sum of a list of numbers divided by the number of numbers in the list. In mathematics and statistics, this would be called the arithmetic mean. However, the word average may also refer to the median, mode, or other central or typical value. In statistics, these are all known as measures of central tendency. == Calculation == === Arithmetic mean === The most common type of average is the arithmetic mean. If n numbers are given, each number denoted by ai, where i = 1, …, n, the arithmetic mean is the sum of the ai's divided by n or The arithmeti...
fge
fge
Hmwell, with Java 8 you could use .intSummaryStatistics()
we use netbeans at school
11:01
I think there's something bad in my code - it went back into code 503 again
>:|
hmm
If i try and work out some code the average my self could u guys help me to see if its right?
yes... but you could also just write tests....
because this is what I did earlier, and it doesn't seem to be working
http://hastebin.com/urabuyiguv.axapta
^^^
@rubin.kazan "double" when you're summing integers?
doubles i meant
11:03
@rubin.kazan aside from what Uni said, this should be working just fine...
double sum = 0; -> int
@everywordisgay
Every word in the English language with the word gay in front. Posts every 20 minutes. Bot may occasionally stop/start.
22.5k tweets, 26.4k followers, following 0 users
geez so much to retweet
Also, for the sake of your sanity, use an enhanced for loop: for (int each : Temp) instead of for (int i = 0; i < Temp.length; i++)
@Unihedron well... while that works fine here, it might not work everywhere else..
@fge that's the same for developers tho :P
first the basics and then the actually good stuff ;)
@Nisk Not necessarily; Developers are occasionally credited as "the team", sysadmins almost never
@Unihedron too circumstantial to argue about.
@HamZa DEAD
@HamZa it's deleted....
^ if you think it's worth an undelete vote, please do so. Otherwise comment on meta.stackoverflow.com/questions/291852/…
@HamZa dv'd mso request
11:10
@Unihedron care to explain?
someone wanna fill us low-reps in with a screen-cap?
I don't think this post needs to be locked with a historical lock because it's not significant in keeping - the post is not stellar and is not likely to help future readers other than conveying redundant information, which is likely obsolete par revision changes anyway. To be more specific, later versions of Java isn't even slow anymore. — Unihedron 30 secs ago
Stack Printer saves the day
also, what does .length of an int array do in Java?
@Unihedron found a cached version...
so for example for(int i =0; i < Temp.length;i++)
where Temp is an integer array holding [5]
11:13
@Vogel612 Neato
@rubin.kazan what would you expect it to do?
so if i entered 9999 .length would return 3?
^ screenshot of today
undelete (7) - wow
11:16
so no help???
@Unihedron YOur comment is a bit contradictory...
So you rather keep it deleted?
Why does it get deleted? Is there a space problem on SO or what? =)
Although I think a wiki-lock is more appropriate
fge
fge
The problem with that kind of questions is that it is becoming obsolete as soon as there are answers to it; the JVM is evolving very quickly
11:18
Help is obtained by looking it up in the proper place. This is a room for discussions, not vampiring.
@rubin.kazan With what?
fge
fge
I don't believe there is one comprehensive page on the net explaining the state of the JVM, really
what does .length do when used with an integer away?
array
@HamZa Should I post it as a full answer so people can (down)vote on it?
@HamZa affirmative.
@Unihedron You could maybe elaborate more on it. Or maybe I'm just not seeing the point.
fge
fge
11:20
@rubin.kazan well, it's an array; and as @Vogel612 asked you earlier, what do you believe it to do? You should go and read a basic tutorial on Java types
@rubin.kazan You can easily google stuff like that.
5 mins ago, by Unihedron
http://blog.codinghorror.com/what-is-trolling/
fge
fge
This is a list of the instructions that make up the Java bytecode, an abstract machine language that is ultimately executed by the Java virtual machine. The Java bytecode is generated by language compilers targeting the Java Platform, most notably the Java programming language. == See also == Java bytecode, a general description of Java bytecode within the context of the JVM Jazelle DBX (Direct Bytecode eXecution), a feature that executes some Java bytecodes in hardware, on some ARM9 CPUs Common Intermediate Language (CIL), a similar bytecode specification that runs on the CLR of the .NET Framework...
^^^ .length on an array just calls the arraylength bytecode instruction on an array reference
fge
fge
That's all it does
11:22
pretty sure that blows his mind :D
<rant>Meh, they really should throw away the bytecodes for array one day.</rant>
true words
fge
fge
@Unihedron not happening; unless Oracle miraculously decides one day that there should be a "JVM v2"
@fge DEAR ORACLE please give us JVM v2
i'm on my knees
fge
fge
Well, it's not like there is no room for new bytecodes but the introduction of new bytecodes is very rare
11:24
@Unihedron you gotta beg for it and smack your lips
fge
fge
The last introduced one was invokedynamic back in 2011
Also, I've never succeeded in researching, but I'll ask anyway - is Double.compare(a, b) compiled to dcmpg and dcmpl like they should?
(same with Integer.compareTo and their Number counterparts)
fge
fge
No
Is that so you can hack the method with reflection?
fge
fge
For a simple reason: those won't work on NaNs; whereas Double.compare() does the correct thing
11:25
ohh
fair
fge
fge
(for some definition of "correct")
Well, it probably gets compiled into native code ultimately, but otherwise it's a plain old invokestatic
lol
Stop nagging chat users to help. If they want to, they will.
lol just deleting whatever u feel like
Isn't this room moderated?
fge
fge
11:29
@rubin.kazan I'm going to be blunt; you are behaving like an idiot
@fge Hey, play nice.
@fge I am an idiot
fge
fge
Of course we know the answer, and I even told you the technical side of things
@MuratK. Yes, which is why I trashed the messages to begin with.
fge
fge
But you don't seem to have made the effort to even research by yourself
Otherwise you'd have known the answer for a long time
11:29
9 mins ago, by Unihedron
5 mins ago, by Unihedron
http://blog.codinghorror.com/what-is-trolling/
i cannot load any webpages
internet troll :P
@rubin.kazan evidently.
so thats why I'm asking u peeps
what is a webpage anyway, can I print it out and send it by mail?
11:30
@Nisk use curl
Give this guy a chat ban
@HamZa Who? I'll do it just for you :p
allahuakbar
https://i.imgur.com/iWKad22.jpg
you are humourless
@Nisk omg nisk pls
11:32
@rubin.kazan god is great indeed
u dont humr in a hitd debate k
@Unihedron y u mad bro
@Nisk geez don't bring it plz
@HamZa which one though?
i has no internets
11:34
@Unihedron can't take it?
all i ask is helps
@Nisk let's not go there
@Nisk I see where you're going...
@rubin.kazan YOU HAVE NOW, GTFO
You got help
no i didn't?
11:34
@Nisk my productivity is low enough already
yes you did
I usually do not want to ignore anyone. But I'm tempted to this time....
12 mins ago, by fge
^^^ .length on an array just calls the arraylength bytecode instruction on an array reference
My problem is that I cannot load any webpages
can i convert HashMap to List ?
11:35
@Unihedron just kick that .... please
@Vogel612 done
@JudeNiroshan why would you?
@JudeNiroshan You can but it makes no sense to - HashMap isn't ordered
thanks
You can get a Set of its Entry with entrySet
fge
fge
11:35
@JudeNiroshan one is a Map, the other is a List
=javadoc HashMap#entrySet
fge
fge
So, uhm
@Unihedron Set entrySet(): Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation, or through the setValue operation on a map entry returned by the iterator) the results of the iteration ...
are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.
@fge both are Collections and sometimes requirements suck... but generally speaking you're right ;)
@HamZa you talking about ignoring me? :D
fge
fge
11:36
@Vogel612 err no, Map doesn't extend Collection :p
fuuu
Wait, is that your bot?
thanx all...
@MuratK. It's Michael's. Our one has been in the works for a looong time
and it may or may not be my fault - whoops
=about
OakBot v0.0.2 by Michael | source code | built: Yesterday at 10:16 AM | started up: Yesterday at 10:16 AM
11:38
@Unihedron ~cough
fge
fge
=javadoc Assertions.assertThat(Path)
@fge Sorry, I never heard of that class. :(
@fge doesn't even implement iterable
fge
fge
Ah
Would be quite hilarious if it was developed in a non java language :D
11:38
=javadoc Assertions#assertThat(Path)
@Vogel612 AbstractPathAssert assertThat(Path actual): Creates a new instance of PathAssert
fge
fge
=javadoc PathAssert
@MuratK. The chat bot in the works specifically for this room is made in Java - and that's the part that makes it take long :p
fge
fge
Heh
11:39
@OakBot credits to @fge
fge
fge
(that's my contribution to assertj, yay)
@Unihedron Type =help to see all my commands.
guys, what do you think about the instanceof operator?
@MuratK. Every time a programmer uses an instanceof where a better solution exists, a cute bunny dies. :(
No but seriously, type comparison isn't what you should be coding - you should instead throw out the object types, then wire them up with business logic.
If you need instanceof, the project must either warrant its use, or you're doing it wrong.
11:42
hello
@Unihedron Thanks, gotta go now. But this might be worth a discussion later
@MuratK. See you around. :)
@MuratK. bye :)
Also, like organic chemistry reactions, the major outcome is "you're doing it wrong".
hahaahahahhahahahahahahahah
11:51
~grabs popcorn
oops killed by feeds
We should name the DevDoodle's developer podcast as "Killed by Feeds".
:)
@Nisk No, about the other helpvampire
ohh bjb pushed an awesome feature in the dev portion of DD :p
@HamZa ah, we're good then! :)
"Help me, I'm a lazy, stupid fuck who can't even google, yet I'm kidding myself with doing IT. Do this assignment for me."
Lounge roots of being offensive? :p
oh well, they kinda asked for it

« first day (1650 days earlier)      last day (3515 days later) »