« first day (1594 days earlier)      last day (3346 days later) » 
04:00 - 19:0019:00 - 23:00

4:15 AM
good morning..
 
4:45 AM
Mrng.. are you early today?
 
nope.. its the usual time
 
Ok..
How z the game dev goin on?
 
I am partnering with an experienced guy whom i know personally
Currently i know all the logic but since I'm new to java , i find it confusing on how to implement stuffs in various classes etc.
 
Ahh ok.. cool..
 
what about the media player ?
 
4:55 AM
v 0.0.1 is done and released
 
wow.. Awesome..
link ?? (not the github repo :P)
 
It is for people who are new to javafx and wants to create a mediaplayer of their own. So its kinda educational and only has a github repo link :-P
 
ohhh really.. nice..
 
fge
5:23 AM
Moo
 
@fge moo to you too :)
 
6:20 AM
Oowwwww (werewolf style)
 
6:41 AM
Good morning, Java!
 
7:07 AM
Hi
 
fge
7:22 AM
Wee, modifying throwing-lambdas is loooong
 
<html:form action="/aaaa" method="post"> how to include id attribute in this tag
 
<html:form action="/aaaa" method="post" id="formId">
 
@ItachiUchiha whats the difference between normal form and this core tag type form
 
google is your friend
 
8:07 AM
@ItachiUchiha it shows id is invalid for tag
 
8:30 AM
hi, i have two forms in my jsp and they are pointing to seperate actions to their destined servlets, one servlets retireves the textbox as null and other servlet retrieves the textboxbox value as empty whats the reason of it?
 
fge
8 interfaces left
Yay
 
9:02 AM
@fge how many completed?
 
fge
9:19 AM
31 out of 29
Err
39
 
9:30 AM
@fge the stackoverlow link u provided at the end in this tip is no longer available
 
@Sword use webarchive
 
what is that?
 
@fge woah
 
Hello
I am using Sea Glass Look and Feel within my Java program
I used JPanel set to show border and title but it doenst show when I run my program
 
9:59 AM
Wow, applying for jobs is a whole 'nuther story now when it comes to myself O.O
 
Huh? xD
 
I put out some ads yesterday because I thought I'd try to get a summer job or at least a paid internship
People are almost throwing offers at me
 
Sigh female coders.
 
Even though I stated that I'm still a student :)
@Unihedro You'd have a lot of offers here too Uni
But yes, for once, sexism is in my favor
 
You're probably right
speaking of jobs I should finish mine
 
10:02 AM
I'm not gonna pretend that my gender doesn't have anything to do with it
But there is a huge demand for developers here
 
I did some research for career purposes, we have very few programmers since most of the development work over here locally are research instead of development.
 
@fge yes , java code.
 
@Uni That's why I've said that I got a room to rent you if you wanna come over here ;P
 
I would finish education first, though. :p
 
@Unihedro Of course!
But when you're done you can always contact me
 
10:04 AM
And also legally grow up from being a Minor so I can fly myself without getting permission from my Legally Significant (virtually insignificant) guardians.
 
Do you think your guardians would mind? ;P
 
Nope. :p They wouldn't be around for me to poke though.
 
Well, I did also say that you should be closing in on 18 because of employment laws. I think you'd be able to work just fine under the age of 18 but I won't promise the employers won't be age discriminating because of your young age.
 
As long as it works, it's fair game.
 
It's more like; as long as you're good at programing, you'll get hired and people do think "if you're this good now, how awesome won't you be in a couple of years?!"
 
fge
whew Only suppliers left
 
@fge Good job! :D
 
@fge Should I help?
 
fge
@Unihedro that's a little late, now :p
 
It would had been timely if you were going to sleep or something :p
 
fge
10:16 AM
Maybe if I implement sneaky throws then another potential 39 interfaces will have to be implemented... Meh
 
Oh god.
 
@Unihedro Do you know a good PHP tutorial
 
Can somebody suggest, how do I implement hashcode() method here?
1
Q: "Data Abstraction" and "Abstract Data Type" for a rational number

overexchangeBelow is implementation 1 of data abstraction for rational number using functional paradigm written in Python: #Use def mulRational(x, y): """Violate abstraction by using other than constructor and selectors""" return Rational(getNumer(x)*getNumer(y), getDenom(x)*getDenom(y)) #x and y ar...

 
@Gemtastic Eh, PHP really isn't that hard. It's a script language at best.
And existing PHP tutorials are mostly well defined, too.
 
Yeah, but it's always better to get tutorial tips from people who knows the language; you know if they are good or teaching crap ;P
 
10:20 AM
My rule of thumb: If it's a video tutorial, it's probably crap.
If it shows up high in search engine query results, it might be good.
 
Well, I have that rule of thumb too, but then we have the fact that n00bs can't tell if it's good or bad so that's why the market is full of less optimal stuff
I just thought I'd ask. You seem to be similar to me in the way you learn too, so I figured that if you liked something I'd probably would too.
But if you don't wanna recommend me one, just say so. "No, go google you dumb broad"
 
I don't really know great PHP tutorials in particular, sorry. :/
 
It's ok. I'll do with google :P
 
@Unihedro @Gemtastic lots of crap PHP resources out there
 
@SecondRikudo recommend a good one
 
10:24 AM
The PHP manual at php.net is the best.
It's easy to read too.
 
@SecondRikudo That's what I thought.
@SecondRikudo Thanks! I'll check it up!
 
@Gemtastic Why PHP?
 
@SecondRikudo But it's a manual, not a tutorial :/
 
@Unihedro It's both.
 
@SecondRikudo I got directed to a job to apply for, and they said that I'd be perfect for them if I didn't mind learning PHP
 
10:28 AM
Even Node is faster than PHP, and PHP doesn't have as best of capabilities as other web frameworks like Django or Flask
 
@Gemtastic PHP is super easy to learn
Especially if you're familiar with Java.
@Unihedro "Even" Node? Node is pretty damn fast.
 
@SecondRikudo Great!
 
@SecondRikudo Node is 21 times faster than PHP on non-peak IO.
 
@Gemtastic I have a lot of background in PHP, if you need help, ask :)
 
@Unihedro node can be faster than java too.
 
10:30 AM
@FlorianMargaine Yeah, that's correct. I don't really use Java for it being fast.
 
compare apples to apples... you can compare php to python or ruby
that said, php7 is much faster too...
 
@FlorianMargaine Or perl :P
 
@FlorianMargaine contextually, I think you meant "can't" instead of "can"
 
no... perl is too good to be on the same level as php/python/ruby
 
@FlorianMargaine perl... is better than python...?
 
10:31 AM
perl is better than anything
 
@FlorianMargaine Hold on while I call this very nice man with a very large net...
 
@SecondRikudo I can't wait to get there and hear "I thought you didn't know PHP" and I can say "I didn't, but I learned" and then they'll realize what a golden cow they got ^^
 
@SecondRikudo Awesome! thank you for offering :)
 
cc @Gemtastic ^
it's not basic php, but you can see all the syntax et al in the examples...
anytime there's a function you don't understand, just open php.net/function-name
example: php.net/header
 
10:49 AM
@FlorianMargaine Oh yeah, totally forgot about that one. It's excellent.
 
Application sent! Time to dig into PHP! :D
 
fge
<-- gets "distracted" too easily
 
11:05 AM
Anyone here familiar with linux's zip command?
(Counting on you here @FlorianMargaine)
 
<-- only familiar with tar commands :)
 
fge
@SecondRikudo sort of
But if you want to extract files in Java, use java.nio.file :p
 
in JavaScript, 18 secs ago, by Second Rikudo
I want to create a zip that takes two specific files from each directory, and bundles them into a zip
 
fge
Sure, just create a zip filesystem
Do you want that at the command line or in Java?
At the command line that'll be zip the.zip file1 file2
 
cli
@fge Oh, sorry, you missed the punchline
in JavaScript, 5 mins ago, by Second Rikudo
@Sushil I have a crapton of directories with a crapton of files in each
 
fge
11:14 AM
Well, I'm not on the JS chat room, so...
And what do you want to do with those craptons, then?
 
10 mins ago, by Second Rikudo
in JavaScript, 18 secs ago, by Second Rikudo
I want to create a zip that takes two specific files from each directory, and bundles them into a zip
 
fge
So the zip has the two files of all the directories?
 
11:29 AM
Hello @ItachiUchiha
anyone can tell me difference between QR and two-dimensional barcode
 
Whats the way to search special charterers , . ' " & in lucene search ?
existing references doesn't work
 
fge
Finished!
 
gZ
 
fge
Now looking up sneaky throw...
 
CTRL+W in terminal to delete whole word!
Where have you been all my life?!?!?!?!?
 
11:48 AM
XD
 
Now the only problem, of course, is if I try to use it in the browser...
 
I hate that word in swedish has crtl+ F to make things bold
guess how many times I've mixed them up?
 
@SecondRikudo Ctrl + backspace
 
@Unihedro That's not the problem
The problem is if I have both terminal and window open, and I try to CTRL+W with my browser in focus :P
 
:p
 
12:00 PM
@AniketDeshmukh 2D barcode are becoming obsolete because they can store only limited amount of data
 
ok
how i create 2d bar code such as pdf417
 
google is your friend
 
Matrix pdf417 = new Matrix();

// Encode Target PDF-417 data
pdf417.Valid_Data("pdf417www.tarcode.com");

// Generate and Save pdf417 barcode as GIF format
pdf417.drawToFile("C://java-barcode-pdf417.gif");


// Create PDF-417 barcode save image as Graphics2D object
pdf417.drawToFile("Java Graphics2D object");


// Save Generated PDF-417 barcode into JPEG format
pdf417.drawToFile("C://java-barcode-pdf417.gif");

// Draw PDF-417 barcode into EPS image format using Java Class
pdf417.drawToFile("C://barcode-pdf417.eps");
i fond it but not getting proper jar file for it
 
did you try googling for it? google.nl/… i'm literally drowning in different libraries that do the same thing.
 
12:35 PM
Hi. Is there's something better than gradle today for building projects including a lot of java ?
 
guyz... if I close a ObjectInputStream obj. isnt it possible to recreate it without closing the socket connection? ?
 
okaay... anybody want to work on a project with 10k+ warnings?
@dystroy define better...
I mean I'm working with ant right now and it's working just fine ;)
and it's quite fast, too
 
@Vogel612 Ant sucks when the it is filled heavily with tasks that are their for no reason :P
 
well.. it is a ~1.5k LoC buildfile...
 
you can always go oldschool and just do javac ;-) be your own dependency manager. stick it to the gradle!
 
12:49 PM
ant fast becomes painful...
 
^^ True that
 
@dystroy well it depends on what you expect...
again: define "better"
 
so, any minecraft modders in this chatroom?
 
Uni is involved a lot in minecraft
 
hiya @Gemtastic
 
12:54 PM
Hey Vogel :)
 
Do you mean an university or a chatter here?
 
@ItachiUchiha ant just redeployed this application in 11 seconds on my tomcat...
cross-platform
#justsaying
 
@Vogel612 I am not complaining about its speed(though it can be taken into consideration as well)
 
@MichaelDibbets A SO user
 
hm...
 
12:57 PM
ah
 
anyways back to work ;)
 
the one with a minecraft avatar
 
figures :P
 
:P
 
@Vogel612 work? weren't you preparing for college?
 
12:58 PM
I was just curious. I'm modding away in minecraft for hobby and i was just curious if a fellow modder was floating around
 
I'm only a casual player
 
So am I, although i do have my own server
but its too bloody popular heh
but I find more joy in the modding aspect
I like picking hte pieces apart and making something new
 
I know this is not the best place to ask this type of questions. But can a school student of age 16 participate in MS Imagine Cup?
Only the Universities and IT institutes are listed on their registration page.
 
It is best to drop a mail to them
 
contact them directly to see if there is an application procedure outside of schools
 
1:09 PM
can anyone write logic for 1 32 456 10987 triangle series?
 
@MaheshG How much would you pay?
 
@Gemtastic this was my Interview question
 
math hard... write code :P
doesn't this involve pythagoras?
 
@MaheshG get a different job, this one is too low of a skill set
 
gotta love mathematical notation
 
1:13 PM
stackoverflow.com/questions/3203339/… Nope. Eclipse's console sucks
 
Thanks for suggestions. I'll implement on my own
 
Eclipse console is nice enough... it squishes everything into one big text blob... which slows down your application considerably
 
@MichaelDibbets lol
 
which makes it nice to follow movements at 1fps if need be :P
 
Hahaha :D
 
1:16 PM
Hi all, Anybody with crystal reports xperience?
 
I'm sorry @user3892439 but by the aparent lack of eerie silence I think the answer is no
hmm
that came out wrong
 
@user3892439 Don't ask to ask. Don't ask for topic experts. Don't ask if anyone's online.
 
... just ask.
 
Yeah, since your rates of getting an answer is equal in both cases.
 
1:20 PM
Actually I am finding it hard to install crystal reports to Eclipse
I installed it just as we install any other plugin into Eclipse
but it does not work
 
2
Q: Crystal reports installation in Eclipse

Name is NilayI am very new to Crystal Reports but I am familiarized by eclipse as I have made many apps of Android in it. Now I want to generate Crystal Reports in Eclipse Helios (SDK 3.6.2). So for the installation I referred this link. I followed the path of manual download and successfully downloaded the S...

 
tried this
 
Have you tried looking at its settings? Window > preferences > java? > something?
I had to configure javascript plugin for my helios before it started working
maybe its a similar issue
 
more detail pls @MichaelDibbets
 
When you look at the settings for crystal reports, see what you can change. For me it took some fiddling with settings and such to get all my plugins working
for pdt I had to configure a file, for javascript I had to fiddle around in preferences > editor
 
1:24 PM
0
Q: Add crystal reports into Eclipse to work with Java

user3892439I am trying to add Crystal reports plugin to Eclipse in order to create reports in Java. I downloaded manual installation package from here and installed it manually. (Extracted the downloaded zip file to the eclipse dropins folder) But I see I have no way of creating a crystal report project in...

any clue?
 
@ItachiUchiha ?? preparing for college??? like... learning stuff???
nope..
but kinda, yea
stil... 6 months unitl college is long and you gotta live off something..
 
@user3892439 I am getting the faint suspicion that in this moment and time there are no people here to help you... I'm getting this faint clue from the lack of response
 
okay :(
 
are you sure the crystal reports you use is made for the eclipse version you are using?
 
1:41 PM
hi everyone, is there any AOP deveopper ?
 
21 mins ago, by Unihedro
@user3892439 Don't ask to ask. Don't ask for topic experts. Don't ask if anyone's online.
 
i am new in here, sorry
i am trying to creat a real time chart, however using JFREECHART allows to creat several good charts but real time ones
 
@MichaelDibbets there is no way I can get to know about that. There is only one place where I can get the plugin and there is no version or compatibility details available.
 
@Unihedro does this warrant a feature in Junior??
if (message.contains("is there any")) { reply("...");}
 
@user3892439 That sucks badly then. It might be an outdated plugin that tries to access hooks that have been deprecated by now
 
1:49 PM
@Vogel612 yes
 
should be simple enough...
be so kind and open an issue, I'll take care of it this weekend then..
 
hm, but there has to be a way. crystal reports is a big product :(
 
there is always a way. it is pretty easy to code plugins for eclipse. YOu could always decompile it and see what makes it tick
then modify and recompile so it works
Or you couuld mail the author, asking for details
I have this hate love relationship with sql.... sometimes it stupidity baffles me, and sometimes its elegance baffles me... it's almost like a woman, sometimes nice, sometimes a pain in the ass
 
@Vogel612 gotcha
 
thanks ;)
 
2:07 PM
Question. I am comparing two classes. One I have gotten from Class a = myObject.class and that walks around my code for a bit.
But when I want to compare it later on to see if it matches class myObject or myOtherObject it always matches to whatever object I put first in the if list.

I use

private boolean compare(Class it) {
if (it == myObject.class) {
}
if(it == mySecondObject.class) {
}
}

but it doesn't work as espected. Does anyone know why?
 
Anybody interested in helping? stackoverflow.com/questions/28879854/…
 
hmmm, do you have access to the source code of that library? When google fails I usualy find my answer by manually traversing the path my request will go.
 
fge
3:10 PM
<-- preparing to release throwing-lambdas 0.5.0
(at last)
 
@fge Hip hip array!
 
Good morning, Java!
@MichaelDibbets Can you please post the complete method source code? -_-
=about
 
OakBot v0.0.2 by Michael | source code | built: About 5 days ago. | started up: About 5 days ago.
 
=about exact
 
OakBot v0.0.2 by Michael | source code | built: About 5 days ago. | started up: About 5 days ago.
 
3:19 PM
@Vogel612 Mmm
 
 @fge this is nice!
    Product product = create.selectFrom(PRODUCT).where(PRODUCT.PRODUCT_ID.equal(productId)).fetchOne().map(new ProductMapper());
it directly gives me a single object, rather than a list. was expecting list, but get ahead and try if jooq could have already done that. :D or im just ignorant that its logical that way..
 
fge
Heh
 
This is how i usually write my oop queries:
 
fge
@LeeJeong I believe there is an even shorter way to do that; but since I don't use pre generated records, I can't recall
 
Map<Object, Object> whereVals = new LinkedHashMap<>();
whereVals.put("product_id", productId);

ArrayList<AProduct> products = prodDao.retrieveWithParams(whereVals, new LinkedHashMap<>());
AProduct product = products.size() > 0 ? products.get(0) : null;

return product;
now its just like this:
DSLContext create = ConnectionManager.getDSLContext();
		Product product = create.selectFrom(PRODUCT).where(PRODUCT.PRODUCT_ID.equal(productId)).fetchOne().map(new ProductMapper());

		return product;
 
fge
3:28 PM
Note that you can extend DSLContext
 
simply awesome.... @fge oh really???? im extending jOOq's auto gen POJO so that whenever I regenerate the autogen artefacts based on new changes on DB, it wont get hit...
@fge what gives when i extend it?
 
@Michael hey .. long time no see ..
 
fge
What do you mean "extending auto generation POJO"?
 
"auto generated pojos" - extend them to have my own implementations and additional methods and stuff
 
Hi @Sword
 
fge
3:31 PM
Ah, I see
Well, since I don't use them at all in my case... :p
 
@fge but do you happen to know where can i read the stuff of the shortcuts you speak of?
 
fge
Well, the user manual actually
But admittedly it's not very well structured
I always jump from section to section to section
 
TRUE THAT
im all over the place
and i think there are some typos and reversed things, like for example the offset and limit example
offset 2 limit 1 - in SQL
offset 1 limit 2 - in jooq code... idk.. xD
 
fge
Well, you can mail the guy :p
He's @LukasEder on SO by the way
In mathematics, the four color theorem, or the four color map theorem, states that, given any separation of a plane into contiguous regions, producing a figure called a map, no more than four colors are required to color the regions of the map so that no two adjacent regions have the same color. Two regions are called adjacent if they share a common boundary that is not a corner, where corners are the points shared by three or more regions. For example, in the map of the United States of America, Utah and Arizona are adjacent, but Utah and New Mexico, which only share a point that also belongs...
 
@fge that doesn't ping the person or link it to them
 
fge
3:36 PM
Interesting; proven by a formal theorem programming language
@Unihedro I know, I just gave the handle
 
@fge do you trust this: blog.jooq.org/2013/07/30/…
particulary no.2
 
fge
Yes, 2. is a definite error to make
You have an RDBMS; when you can, put it to work
Looking the rest...
 
3:57 PM
i read a debate somewhere that all your business logic should just stay in your business layer...... i think it comes down to priorities? or just how well you document it if in case you wanted your RDBMS to do some work for you
 
fge
OK, now consider this
You want a list of your customers ordered by age
 
I thought database is model layer, rather then a business layer :/
 
fge
Would you use ORDER BY in SQL or use .sort() on a Stream?
 
@fge The database can probably perform the sort more efficiently.
 
fge
Exactly
The RDBMS is closer to the data than you'll ever be --> put it to work
 
4:01 PM
Also, if the database is running on its own server, then that will offload some CPU time away from your Java server.
 
fge
The closer to the data the better
Especially since with JooQ you express what you want (the RDBMS) to do In Java, just go for it
You have nothing to lose; quite the opposite
My "tree depth by line" query would just be impossible to do in a practical amount of time if I chose to perform the sort and merging in Java alone
But with the RDBMS it takes less than 2 seconds
 
@DroidDev of course its a model layer... but if you place stored procs and business specific logic in it, it somehow becomes a logical layer.... but as what is sane IMO and what @fge have perfectly described it'll be quite harder for Java to process data than the RDBMS..
 
fge
You may consider extracting the data out of the RDBMS for analytical processing though; while it is possible to do this with some RDBMSes (Oracle comes to mind here), this is highly business dependent in the end
But then again you can also extend DSLContext and make it so that you use either the RDBMS functions or Java functions
 
@LeeJeong oh
 
@fge about this Stream your talking about, these are the statements being created after DSLContext right?
 
fge
4:13 PM
No, I'm talking about java.util.stream
 
I mean the collections resulting from the statements being create after the DSLContext
what is that??? enlighten me
 
fge
Well, .fetch() return a Result<? extends Record>, and Result extends List, therefore Collection; therefore .stream() is defined on it
And you can use all the niceties of it
 
and you told me not to abuse stream... what about that?
 
fge
While I could use a second SQL query that would be ridiculous; I just use a Collector to make my stats summary here
Were I to do it in pure SQL I'd probably have had to use a pivot table etc
But the RDBMS still does the majority of the work
The MatchesData contains both the results from the SQL query and stats I compute with the Collector
 
........ :/ I didnt quite... get it. what happened there?
 
fge
4:19 PM
(I should probably sort at the RDBMS level by the way)
Prior to the .stream() note that it's "pure RDBMS"
 
.stream() is RDBMS?? so there goes, you write it in java but you execute it in SQL? correct?
 
fge
No, I say "prior to .stream()"
The work of the RDBMS is jooq.select(...).fetch()
 
Question: Are there any languages out there that use a character other than - to represent a negative number?
 
@fge thanks dude for the usual help and sharing~! (y)
 
=javadoc DecimalFormatSymbols#setMinusSign
 
4:30 PM
@Michael void setMinusSign(char minusSign): Sets the character used to represent minus sign. If no explicit negative format is specified, one is formed by prefixing minusSign to the positive format.
 
fge
@Michael meh, for some reason I believe there are languages which actually do that
 
@fge I wish I knew one so I could use it in a unit test. :)
 
@fge dude, what happens if the query didnt return any value and you are pointing the DSL query into a pojo? (well, test for yourself)
 
fge
Well, you get an empty list
 
I know there are languages that use "," and others that use "." as a decimal separator.
 
fge
4:32 PM
(if you use .fetchOne() it may throw an error; haven't tested)
@Michael indeed, and that includes French
 
@fge Ah.
I use the Germany locale in my unit tests.
I need to test to make sure the "." separator is always used, no matter the locale.
Same with "-".
 
holy cow!
@fge after fetchOne, and if it didnt get any values.. then map() is not permitted. well makes sense... and i was expectng there were some magic handles to it..
 
4:58 PM
It's (almost) friday!!!
 
fge
Well, it makes sense that you'd get an error if no data, or even more than one row for that matter
 
That means I have 48 more dev hours after a school day. Awesome!
 
fge
You explicitly asked for one result :p
 
Night for now, then. :p
 
@Unihedro for you anyway :P
 
fge
5:23 PM
Aah, releasing 0.4.0
 
5:37 PM
Ugh
Sound, Y U no work? :(
 
fge
5:56 PM
0.4.0 released!
 
6:15 PM
why hello!!!
 
fge
6:54 PM
Hmm, I have implemented sneaky throws, now do I release again or not?
 
04:00 - 19:0019:00 - 23:00

« first day (1594 days earlier)      last day (3346 days later) »