« first day (1556 days earlier)      last day (3377 days later) » 
00:00 - 18:0018:00 - 00:00

fge
12:23 AM
 
 
4 hours later…
4:43 AM
hey @fge
 
5:39 AM
Hello, does anyone know how to update eclipse version (not the plugins)?
 
@JavaTechnical download tne new version
 
but unpacking it into the existing directory can create problems?
is it?
I am actually running..
Version: Juno Service Release 2
Build id: 20130225-0426
I need to update it to the latest version.
 
Just download eclipse luna
 
and then.
Can i unpack it to the existing directory?
@ItachiUchiha Does it create any problems?
 
No
Why do you want to unpack to existing directory?
 
5:50 AM
because plugins are there in that directory.
that i have installed previously
and also the configuration settings
 
Plugin compatibility differs for eclipse versions
You will have to re-install them
 
@ItachiUchiha now, it is a difficult task to look for each plugin installed and the current version and install it in the new version
 
Eclipse has a marketplace
 
also, i might have made some configuration settings for every plugin.
 
+ which plugin are you talking about
Luna comes bundled with most of the required plugins
 
5:54 AM
@ItachiUchiha these are my plugins, i have currently
 
You just need to re-install Jrebel and Command line interface
 
@ItachiUchiha also, there is a plugins tab what is it?
 
M2e and git comes pre-installed
 
and it has a long list.
@ItachiUchiha Do i need to re-install plugins again?
what are these plugins apart from Installed software?
 
What plugins?
 
6:05 AM
wait.
@ItachiUchiha the above image
 
6:29 AM
This will be created automatically by eclipse
 
7:14 AM
Good morning, Java!
 
@oleg heya
 
fge
Moo
 
7:52 AM
moo back
 
8:14 AM
Hi
 
8:30 AM
Ok, CI question time: How do you make Travis work with a Java 8 project? Or do I have to set up Jenkins?
 
8:52 AM
Once I tried to build my android project's apk with Jenkins
But that was long days ago
 
Well, Android is Java 6. I'm pretty sure Travis isn't reading my project as with a proper default configuration because java 8 isn't recognized.
 
Possible! Never tried Travis though
 
I want to insert an string into database via JDBC but I get error here
	"INSERT INTO damtable"+"(dam_name) " + "VALUES"+"("+insertTableSQL2+");"
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '://joudystore.com/14122)' at line 1
 
> Travis CI provides OpenJDK 6, OpenJDK 7, Oracle JDK 7, and Oracle JDK 8. Sun JDK 6 is not provided, because it is EOL as of November 2012.
@JavaFan you should provide a space between damtable and dam_name
 
@JavaFan Do as it says. Read the (word stolen by a trespassing police) manual!
Also, may someone named hacker"; DROP TABLE damtable;-- nuke your database.
 
9:04 AM
@TheLittleNaruto thanks I will try
 
fge
@JavaFan two words: SQL injection
 
@fge inb4 this is a test project i dont need important security its too hard for me blah blah blah
 
fge
@Unihedro yeah, the good excuse, until the day you do work on an important project and don't even know how to manipulate a PreparedStatement; I don't know for you but I never accept this kind of "excuse"
 
"INSERT INTO damtable(dam_name)" + "VALUES"+"("+insertTableSQL2+");";
Same error!
 
fge
@JavaFan no help as long as you don't use a PreparedStatement
Not from me
 
9:08 AM
@Fge okay I will use it
 
I'm dumbfounded - What makes you think there wouldn't be an error?
 
@Unihedro I tried JDBC with a string by this code
and I successed
 
@JavaFan If you're using JDBC then why isn't the query executed as a statement?
 
this was an error till now I don't it
Might be the error here
stmt.executeUpdate(sqlcommand);
@Unihedro Was this should be executed correctly?
Is anyone could disscuss?
 
9:49 AM
/
 
hello everyone
I would like to know how you name your packages
as in
do you prefer com.example.dto or com.example.dtos?
plural vs singular
 
No?
 
...what ?
 
do you prefer to use singular or plural package name?
as in com.xxx.models or com.xxx.model?
 
9:56 AM
In JDBC do I need preparedStatement really?
 
Actually I dont really care
 
yes do it
 
But most of the time, I go with plural
 
@JavaFan
Its better
faster
and flexible
but its not mandatory
!
 
@Smrita thank you "INSERT INTO damtable(dam_name)VALUE"+"("+insertTableSQL2+")"; what error here
 
9:58 AM
@Smrita Context?
 
your single quotation marks are missingf
@Unihedro if you have to execute same statement multiple times
then prepared statement is fatesr
as the statement is precompiled
 
@Smrita What does statements have to do with package naming?
 
huh?
 
Hmm?
 
I guess we aree confused here
 
9:59 AM
@Smrita okay preparedStatement are faster
 
packages are my concern while JDBC is javaFan's
I am just tring to answer his question
 
@Smrita Singular, since you'll create only one object at time
 
1 min ago, by Smrita
@Unihedro if you have to execute same statement multiple times
Yeah, but you pinged me just then.
 
oh okay sorry my bad
 
So are you going to provide more context to your question?
 
10:00 AM
okay OlegKuznetsov
:)
well say for the package of your models
classes
 
@OlegKuznetsov ....w...what ? Explain.
 
also
do you keep I infront of interfaces
as in say there's an interface named shape do you name it IShape?
or simple Shape
 
@Smrita The package of my what?
 
modela
 
Thanks for inventing new terms.
 
10:02 AM
*models
 
@Smrita Could you possibly correct my statement?
Am confused
 
I have no idea what you're asking. What stops you from following naming conventions? Inverting your domain name, or your email or github if you do not have one, or a subdomain you own, followed by the artifact name.
 
or controllers
 
(Or artefact, depending on where you're from)
 
"INSERT INTO damtable(dam_name)VALUE"+"('"+insertTableSQL2+"')";
you are gettinfg me wrong @Unihedro
 
10:04 AM
@Smrita Well, you didn't ask it clear enough.
waits for citation
 
well all i wana know is do you prefer com.example.controllers or com.example.controller?
controllers or controller
 
Oh, in that case, it really depends on whether I want to name the artifact Controllers or Controller.
 
@JavaFan you should always keep the value inside quotation mark
 
For example, throwing-lambdas really deserves that 's'.
 
@Smrita thank you the code executed fine
It's really great help for me.
 
10:06 AM
@JavaFan No it's not. Use a preparedStatement now.
 
@Unihedro Okay I will use it
 
k good
 
@JavaFan no problem I hope you know what your bug was
@fge I want to file gradle build whenever I save certain files from eclipse IDE . please do let me know if you have any idea about it
*fire
I am using eclipse gradle plugins
 
@Smrita Now I know it, thank you again.
 
no problem @JavaFan happy coding :)
 
fge
10:15 AM
@Smrita none, sorry, I don't use Eclipse
 
10:32 AM
@Smrita might be possibe to bind gradle build to the save-actions
get into the settings and look for save actions
 
@Vogel612 thanks will check it out
 
fge
<-- loves testable code
 
10:49 AM
<-- dislikes writing tests
 
11:00 AM
<-- is yawning
 
11:15 AM
<--- Just found out that it wasn't only a .zip file of the project that you needed to send to the teacher, in a mail from him for the first time in two months I get to hear about a report you were supposed to write about it...
Good morning monday :/
 
@Unihedro I heard you're going to finish your PR today?
 
@Vogel612 Yeah, I'm doing that right now.
 
~cheering
 
5
A: Explanation of different flag types

Unihedro Some of the wrong ones were from longtime users who ought to know by now what the different flags mean. I'm (definitely) not a long-time user, but I feel that the current explanations are slightly (just slightly; no more no less) mismatched with the actual descriptions: The Very Low Quality...

^ What I was doing just then
 
I kinda regret that extra time I spent on the JavaDoc now. He deserve to read undocumented code if I'm gonna have to re-write it and extend it anyway >:(
 
11:18 AM
@Gemtastic Oh?
 
Luckily he seems a bit lenient with time so I'll write it later today and proofread it tomorrow
Though I kinda just wanna know my grade >_>
 
fge
"Dear professor, I was rudely handled by online friends of mine because I used Spring" :p
3
 
He's not a professor though
 
Dear teacher, why are you making us use an obsolete technology? You suck and I wish to slice you into your pieces and roast- Nah, too far.
 
As far as I know, he could be self-taught in his mom's basement
He's only 1 or 2 years older than I
Well, JSP isn't his fault, it was the school board of directions that accepted a course plan based on old technology
 
11:28 AM
@Gemtastic Well in that case.
 
Luckily the course plan never stated that we HAD to use JSP it just listed JSP as the course litterature
 
- into shards of your tainted souls to feed to the sharks and enlighten them with such fouled matter that still exists on Earth, being an ancient lifeform they would too agree with me that we should throw you into a sea of lava filled with silverfish.
/end rant
 
What we did HAVE to use was HTML, CSS, JavaScript and a framework of some sort
 
Just kidding, the rant never ends.
 
Haha
 
11:31 AM
@Gemtastic Flask?
 
Is that a framework?
 
It's a name of a lightweight web application framework yes, and my favourite one. Though, it's written in Python.
There's also a bed company of the same name.
 
fge
final int theAnswer = 42;
Meh
 
final int fakeAnswer = 042;
I love using random octal literals in mysterious places.
 
fge
Eh
 
11:34 AM
@Unihedro Not sure if that would have been accepted seeing as JavaScript is a must use, and we're programming in Java, but you could probably use that.
 
fge
MoreFiles.changePermissions(thePath, 0644);
You can actually do that with java7-fs-more
 
Oh? Is that a per-byte flag?
 
fge
=javadoc PosixFilePermissions
 
@fge java.nio.file.attribute.PosixFilePermissions: This class consists exclusively of static methods that operate on sets of PosixFilePermission objects.
 
fge
^^^
I just created a utility class which converted a number into a Set<PosixFilePermission>
But you can also write MoreFiles.changePermissions(thePath, "rw-r--r--") <-- this uses JDK methods to get the job done
 
11:37 AM
Can you invoke a constructor via MethodHandles?
(yes, it's monday again, so.)
 
fge
@Gemtastic "at this time of the 21st century, web sites have become bona fide user interfaces, with GUI elements, controls, events etc; and the dominant language used to implement such interfaces is JavaScript (also known as ECMAScript). This project therefore uses xxx"
etc etc
@Unihedro yes
throwing-lambdas uses that
 
frantically rushes to find code
 
fge
@Unihedro in ThrowablesFactory
@Gemtastic if you want help with documentation, tell me, I'm quite good at it :p
@Unihedro lines 57 and 94
 
@fge Well, it's not docuentation as much as a project report
 
fge
Still, a report is documentation
 
11:42 AM
Yes
I still have to write the JavaDoc into it
 
fge
Oh? Is that a requirement?
 
@fge Yes.
 
Which is why I said this:
25 mins ago, by Gemtastic
I kinda regret that extra time I spent on the JavaDoc now. He deserve to read undocumented code if I'm gonna have to re-write it and extend it anyway >:(
 
School often makes their students write good documentation, despite the fact that no one is going to read it in production, in training or whenever.
 
fge
Sorry, I didn't really follow
@Unihedro I do read documentation
And I am particularly infuriated when a moderately complex project does not have any documentation
 
11:44 AM
@fge I mean the institution. Teachers don't rate to documentation, but it has to be there.
 
fge
Well, anyway
I document
Always
 
Good practice, A++
But honestly, writing docs / unit testing / deploy in good exercise is like flossing; Everyone agrees they're great (they probably are), few does it
 
fge
Well, I am not only talk :p I actually do all of this
And yes, this means it takes more time
 
Here have a cookie.
 
fge
But it takes less time in the long run
 
11:46 AM
I agree.
 
fge
So, pam4j? :p
 
~priority("pam4j") *= 1.75;
There.
 
12:38 PM
~uni.priority("pull-request") *= 2.25;
 
1:01 PM
hello
 
hi
 
1:38 PM
Made chicken nuggets as a late night snack to code with.
 
2:12 PM
Hi everybody. Anyone understand glassfish+ldap?
 
I do. How much are you paying and when can I start?
 
If you want you can come to Portugal and I will show the beauties of this country
 
@Unihedro Not noodles? What is this?!
 
@Gemtastic Bad news, I'm out of ramen noodles. The few boxes didn't last long (enough).
 
@Unihedro Might be because a pack of famen only has about 110 calories :P
 
2:27 PM
@Goldbones What, I can't work remotely?!
 
And you need anout 2500/day as a growing young male :P
 
yes, you can, but you I have to pay in Portugal in person
On my vacations
sorry ;)
@Unihedro, I really need some help. Do you know anything about ldap+glassfish?
 
 
1 hour later…
fge
3:41 PM
 
Excellent!
 
Can anyone tell me how to build log analyzer tool? or can give some reference material regarding the same
 
@atul329 Write code?
 
How to get started?
is there any reference material?
 
@atul329 Why would you even need reference materials?
The topic implies an understanding of what you have to code.
 
3:52 PM
@atul329 what kind of logs?
 
Server Logs
 
do you use tomcat?
 
No and its unix based
 
@atul329 Do you know how to use a computer? And why would a perl script not suffice?
 
@atul329 awstats.org
goaccess.prosoftcorp.com
 
3:58 PM
@Unihedro ya, I wrote a script but I want to develop for general users who does not know scripting and there are thousands of log file generated everyday.
@Smrita thanks for the help but I cannot use other company software in mine and they don't want to pay a dime so, I need to develop my own. Anyway thanks.
 
hello
can someone help on this question stackoverflow.com/questions/28153711/…
 
@Giovanrich your requirements sound confused
also your question is unclear
 
@Giovanrich I have no idea what you're asking; Where exactly of the code is wrong?
 
and you have a code-dump there
 
@Vogel612 but i was trying to make it clear
 
4:11 PM
well you didn't succeed
 
@Vogel612 okay what i want is that when a user select an item, the program should add a new row and change focus to the newly created row
@Vogel612 selecting an item in the combobox, which is in the second column of my table
 
so where's the problem exactly?
what part of it doesn't work?
 
@Vogel612 can you try to run it, ...its not shifting the focus as i want
 
but the row gets appended?
 
yes,
 
4:17 PM
good.. Why didn't you write that into your question that way?
 
@Vogel612 I was trying to focus to the main issues, If you can run the program you will realise what i want
 
um. I won't run the program if you can't tell me what exactly is wrong
why? because I am not patient enough to troubleshoot when going by general "maybe that way" directions
suggestion: edit your question. Include a clear problem statement, like: "I already got the adding of a new row working, but I can't focus the row as I want yet"
 
@Vogel612 okay the problem is that its not adding the new row when the user select an item
 
prune all unnecessary code and replace it by minimal substitutes
and that's a whole different thing from what you said earlier
 
@Vogel612 there are two things
1. it should add/append a column when user select an item in the combobox
 
4:24 PM
aaaand muted.
 
2. it should shift focus to this new row
 
If you don't listen to me I won't listen to you either.
 
what?
okay let me do the pruning okay
 
@Vogel612 lulz
 
no seriously.
 
4:26 PM
Today in the Java room, Vogel612 tried to breakdown a code dump into a useful state to help with. Much lulz were had.
 
i am editing okay
 
I begin to think that if I don't regularly mute people like that fast I'm going to go mad
and going mad is not one of my favorite things to do in rooms where I'd like to come back somewhen ;)
 
okay i had not realized it, i am new to this side
@Vogel612 i finished my edit
hello, can someone help with this problem here stackoverflow.com/questions/28153711/…
 
now @Uni how's the PR going? (~takes out a whip from somewhere)
 
@Vogel612 working hard on it...
I ran into a problem... But I'll fix it!
 
4:38 PM
tell me, maybe I can help ;)
 
4:49 PM
@Giovanrich you're still missing the explanation what exactly doesn't work :( It's definitely better though
 
Hello everyone here..
 
Hello!
 
Sam
Hiya
 
I have made a workflow system made up of threads (SwingWorkers), it is working almost fine.
Each SwingWorker when done() calls a function of workflow manager which decides which task to execute next. Problem occurs when another thread is done() while previous thread's done() is still in progress
 
then you have a synchronization issue
 
5:03 PM
I am thinking of using stack as event queue, but stack is not thread safe
 
make done() synchronized and you should be good to go..
also you might consider investigating a LinkedBlockingQueue
 
@Vogel612 never knew threads can be such a pain.
 
=javadoc LinkedBlockingQueue
 
@Vogel612 java.util.concurrent.LinkedBlockingQueue: An optionally-bounded blocking queue based on linked nodes. This queue orders elements FIFO (first-in-first-out). The head of the queue is that element that has been on the queue the longest time. The tail of the queue is that element that has been on the queue the shortest time. New elements are inserted at the tail ...
of the queue, and the queue retrieval operations obtain elements at the head of the queue. Linked queues typically have higher throughput than array-based queues but less predictable performance in most concurrent applications. (1/4)
 
@LifeH2O they always are a pain
 
5:05 PM
@Vogel612 if I make done() synchronized, will all calls from done() be synchronized?
 
@LifeH2O yes.
read up on synchronization mechanisms...
it's really easy to do things wrong and not even realize it until something blows up unexpectedly
 
fge
A LinkedBlockingQueue may be a little overkill, no? Well, it depends on the needs
 
So only one done() will be running at a time. I read that, but I am confused in using sync keyword in only first function vs all functions
 
?? you should only synchronize where needed
when you call a different method from a synchronized block, it will automatically get executed in the synchronized context
 
Than making done() sync should actually solve my problem.
Are there any design patterns which completely remove the issues of threads? That should be possible somehow maybe something ...
 
5:12 PM
@LifeH2O sure there are... don't use threads. Not that this solves the problem ;)
 
Hi, I am trying to annotate a field coming from a parent class but I am not sure if that is even possible. Is there any way of achieving that?
 
@hveiga You can't because fields aren't inherited.
 
I am trying to do it in the child class, since I would not like to touch the parent class.
 
Parent.field is distinct from Child.
 
thank you! any suggestions for a workaround?
 
5:21 PM
Um... It really depends on what you're trying to do. This is clearly an XY Problem. Have you heard of it?
 
I just checked it out in meta.stackexchange. Yes, this is one of those. I think I am gonna open a question in SO directly.
thank you again for your help
 
5:38 PM
OMG I still have a myspace account O.o
And I have my own songs on it.
 
Ohh @hveiga! You work at Nokia?
 
hmm... I should have one around somewhere, too..
 
That's a new find, I haven't seen a developer from Nokia in ages! =) (last I remember was 6 years ago)
 
It's interesting to listen to the songs I made prior to music school
I was so much better then :/
 
lol
 
5:40 PM
:/
I wonder if I still have my old playlists.
 
They really took all the fun out of playing
 
/me never went to music school
what did/do you play @Gem?
 
My senior high was music oriented
I sing mostly, but they wouldn't let me do that in school. I Took guitar and piano lessons, but I played the drums before I started highschool
So, guitar, drums and piano
 
Percussion!
 
And base
But the base is pretty much the same as a guitar so...
I also play a cajun, but everyone with a sense of beat can play that >_>
2
 
5:43 PM
I am currently getting into drums, I can actually create harmonies on piano (nowhere near playing though), and I play guitar (and am the worst guitarist in the band, so occasionally I'm the bass)
oh and I used to be the cajunist... until I decided that I wanted more possibilities than that to get a nice rhythm down and got some drums ;)
 
I don't think I can play at all any more
I haven't held my guitar in a year
 
fge
I used to play the guitar
 
unless you count handling it when I moved
 
fge
But then I discovered Sylvain Luc
 
and then you decided to give it up?
 
fge
5:45 PM
Yeah, I could never match him
 
I wanna play the theremin
 
fge
And I was better at computing anyway :p
 
I do. I joined few years ago!
 
recently a friend of mine, who's actually handling the bass in the group said something like: "Jazz-musicians are the best musicians ever"
 
Well, Jazz musicians have a history of being the most technically skilled players
Playing in a Jazz ensemble is extremely difficult.
 
fge
5:50 PM
Yeah, but it is extremely rewarding
 
Agreed
Though, as long as you like what you're playing, any music is fun to play as a band
 
I personally find Jazz music somewhat... over the top
they kinda lost the standing ground and float around aimlessly....
 
@Unihedro btw, I created the question in case you want to take a look: stackoverflow.com/questions/28155646/… :)
 
lost in harmonies, that many other musicians couldn't even understand
 
fge
This song is excellent
 
5:55 PM
I'm not a real jazzfan either, but a good jazzband one have to admire.
 
fge
Pity Esbjorn Svensson died, he was by far the best Swedish jazzman
There are good Swedes in jazz nowadays as well, but none on his level
 
Agreed
 
00:00 - 18:0018:00 - 00:00

« first day (1556 days earlier)      last day (3377 days later) »