« first day (1616 days earlier)      last day (3316 days later) » 

12:36 AM
Hiya
 
hello
 
user3208640
1:08 AM
Hi
 
Hello
 
user3208640
@Gemtastic I created the git account, uploaded some sample projects, from now I'll do all interesting public projects on it, I have an Idea I think a Java8 based ORM with is interesting because using of stream and lambda features in it, I have not seen a Java8 ORM do you know an java8 based ORM?
 
@Farhęg I don't really know, I'm still new to Java. JOOQ might be using it but I'm not sure if it's open source
 
user3208640
we al are somehow knew, I haven't used JOOQ
 
user3208640
sorry for my english,
 
user3208640
1:18 AM
we all are somehow new.
 
1:40 AM
Doubt this is worthy of a question so asking here... Can custom classes be bound to listboxes in Java? Just working on an assignment rn and my code works fine for strings but nothing else... DefaultListModel<GraphicalObject> listData = new DefaultListModel<GraphicalObject>(); listData.addElement(new GraphicalObject("circle", 50, 50, 50, 50));
 
user3208640
just override the toString() Method in your custom class and then
 
user3208640
use listData.addElement(yourInstanceOfYourClass.toString(),......)
 
user3208640
however not sure, it's a long time that I have not worked on Java Swing
 
user3208640
try
 
user3208640
@JoelMurphy what do you want to display in the list box?
 
1:50 AM
@Farhęg Thanks for the reply! Yeah I've got a custom toString() method in my class but I was wondering if there was any way to bound a GraphicalObject type to the list itself and add it to the listbox by calling the toString() to get the name of the object. Is this possible? or should I just create a separate list to keep track of the objects and then a list to store the strings (which would be bound to the listbox?)
bind*
 
user3208640
Am not sure while have not seen the codes. I prefer to ask a new question on SO if you have serious problem
 
user3208640
sorry for couldn't help you.
 
2:16 AM
@Farhęg Yes got it to work now! Thanks :D Your advice was helpful
 
user3208640
You are welcome bro, happy to see you finally fixed it.
 
3:20 AM
 
?! xD
 
I'm afraid to disappoint people :P
 
Cool, Gitter now gives private rooms for free!
 
Gitter?
 
3:26 AM
Sounds like slutty Git stiptease
 
Chat rooms for git repositories and organizations.
 
Are you 0 because I'll turn you one!
badum tss
 
k
 
My humour is bad and I should feel bad :/
 
Lol, it's not too bad :D
 
3:31 AM
:D
 
3:42 AM
can anyone please explain me this below code?
ServletContext servletContext = getServlet().getServletContext();
WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
ValueListHandler vlh = (ValueListHandler) context.getBean("valueListHandler", ValueListHandler.class);
net.mlw.vlh.ValueListInfo info = new net.mlw.vlh.ValueListInfo(ValueListRequestUtil.getRequestParameterMap(request));
 
No, the problem demonstrates a lack of minimal understanding to attempt.
 
I know that servletContext is only one for application.
 
@SecondRikudo Was it recorded?
 
but other lines, i don't understand. we are using struts 1
 
Good for you.
 
3:50 AM
@JudeNiroshan Did you even RTFM?
Because that's the very very basic things which ARE in the manual.
 
@Gemtastic you say that these are customized classes?
@Gemtastic therefore i need to read their documentation ?
 
@JudeNiroshan You always have to read the documentation. And the manual.
Why would anyone want to spend time telling you something you'd find out from reading the documentation and/or the manual for 5min?
 
Hello Java
 
Someone already took the time to explain it there
 
@Gemtastic ok.. i'll try it right nw
@Gemtastic i'll read it say that what i understood. then if there something wrong, could you please correct me?
 
4:02 AM
Sure
 
hi
which framework is best for developing large java web application? Spring or Struts
 
Good question... I've only used Spring myself so I can't really say though
 
4:19 AM
@Gemtastic I m using Struts. But I would like to know about Spring framework.
 
4:34 AM
in The 2nd Monitor on The Stack Exchange Network Chat, 17 secs ago, by Unihedro
Stay up to date, man. Use git or something.
@Appu Morning!
@ManojPrabhakarM Both Spring and Structs suck.
One is hell, and the other is obsolete hell.
 
hahaha...
 
Jan 21 at 18:00, by Kylar
Programming in spring is just like riding a bicycle, except that the bicycle is on fire, and you're on fire, and everything is on fire and you're in hell.
^_^
brb lunch.
 
Which framework you recommend for developing a large web application.
Guide me
 
5:04 AM
Spring
definetively
Does anyone here used RMI ?
how can i bind objects on a remote registry?
or what is the correct way of doing this
 
@Unihedro Howdy!
 
 
2 hours later…
fge
7:12 AM
Moo
@ManojPrabhakarM dropwizard
If Java 8, you can have real fun by using spark (not Apache spark; I mean this)
And JooQ for your RDBMS needs
 
7:59 AM
@fge Thank u
 
Morning
 
morning
I'm a little nervous :S
 
8:20 AM
@ManojPrabhakarM the answer is: neither...
 
8:50 AM
@ItachiUchiha Nope, although I didn't do much
@Gemtastic Why so nervous?
 
9:06 AM
Can I hijack the destination package of a specific package during compile lifecycle of maven?
For example, I want all com.unihedro.artefact.Class in destinations of com.unihedro.artefact.v${version}.Class.
 
fge
Yes, using the shade plugin
Another 30 lines of XML for you, mate :p
 
@ItachiUchiha @Gemtastic @fge the repo is here bitbucket.org/MadaraUchiha/test-meister
Although I won't keep it open for very long, it's not going to be open sourced :P
 
fge
@SecondRikudo sorry, I lost track; I'm head deep into work. What is this repo about? :p
 
@fge It's the iojs project I started yeterday
I'm currently in the process of adding a readme
 
What's iojs?
 
9:26 AM
@Unihedro Newer fork of nodejs
 
Does it work better?
 
@Unihedro btw, I got the don't dump code room unfrozen
 
:O Awesome!
 
@Unihedro it's better managed
 
I'll be sure to keep it alive then.
Feel free to add owner access for people who need them. ;(
 
9:26 AM
Open governance vs controlled by a company that almost never pushes updates.
@Unihedro let's just make it nonn gallery and be done with it
 
True.
 
9:42 AM
There added a readme
Hope the problem will be clearer now
 
fge
<-- dislikes anything import ... as ...
Aliasing namespaces (for some definition of "namespace") is confusing :(
 
I have the following code: for(MessageIndex index : message.getM().getMessageIndexesCollection()) {
SLOGGER.warn(index.getField().getName() + " = " + index.getValue());
if(index.getField().getName().equals("MyIndex")) {
if(index.getValue().equals("VALUE_1")) {
var = true;
}
}
}
but my var is never coming on true, even though the message has an index where the name is "MyIndex" and the value of that index is "VALUE_1"
any idea's?
 
@fge I hate aliasing too.
Adds an extra layer of confusion with no real benefit.
 
fge
@SecondRikudo python fans do see it as a feature though
 
@fge Adding another layer is great
"Every problem in computer science can be solved by adding another layer of indirection" after all
The question is what benefit it gives you :)
 
Aliasing adds another layer of complexity over you application, I still just don't see the benefit (maybe one day, when I Python hard enough, I will)
 
@SecondRikudo Class, package, jar, library, bundle...
 
fge
Heh, did you get that quote from Brian Goetz' video on lambdas? (did you watch it by the way?)
I also love it when he says "when you give things a name, it makes them real"
It's soo true
 
@Erates what is the type of value? When you print it, you get the result of toString(), which is not necessarily the same as the value itself
 
@fge I've known the quote long before, but our presenter at work used slides from Briat Goetz, and it appeared there :P
 
9:50 AM
@kiheru the getValue() is a String object
 
fge
Yeah, Mr Goetz is a person I look very highly upon
Did you know that he was the author of JCIP?
 
@Erates is var = true; reached then? If not, then either of the values checked can't be what you think they are. Consider the possibility of invisible characters too (such as trailing space). If it is reached, then you may have a problem of shadowing fields
 
@kiheru and what is a shadowing field?
 
(or one of the get*() methods has side effects that change the returned value, in which case shoot the developer)
 
9:58 AM
Shadowing happens when you have a local variable with the same name as a field. Then setting the value changes the local variable, instead of the field, unlike the developer might have intended
@Erates you have an unconditional var = false just after you have done some checks to set it true
 
@kiheru After I set it to true? I only see before...
 
before the loop. that could be a problem but not necessarily tyhe problem you have right now
 
Anyway, this generates this log: pastie.org/private/6sutliuqvgvvxcfxrkzm4w
 
have you checked var = true is reached? (by inserting debugging output for instance). If it's not, then either of those values are not equal to "MyIndex " or "VALUE_2" - either by having different type than String (enum for the values for instance), or by having some invisible characters in the strings
 
Use the debugger, luke!
 
10:11 AM
<- too lazy to use a debugger usually, when System.err.println() has been invented
 
10:25 AM
Is anyone here familiar with JFrames?
 
@kiheru I've added .trim() where I check for the values... turns out there were some spaces in front or behind..
 
OK, good
 
Thx!
@MichaelWiggins Just ask:)
 
@MichaelWiggins It's better just to ask. People can't know what level of knowledge are you looking after unless they know the problem
 
I open another window by calling a method that creates said window. Pressing the red X on this window closes the application. How can I prevent this?

This new window is a help screen for the application
 
10:30 AM
Sounds like you have set the default close oparation to exit
Anyway, you should likely use a JDialog for help screens, instead of a JFrame
In case you really need to use a JFrame, take a look at docs.oracle.com/javase/7/docs/api/javax/swing/…
 
Ah ok thanks, i'll look into JDialog
 
JDialog can usually give a better behaviour. Setting your main frame as the parent frame lets the system treat them as related, and in the correct way for the system in question
 
10:55 AM
Should I use Externalizeable instead of Serializeable?
 
fge
Yes
Serializable sucks
wonders what on earth @Unihedro is currently working on; somehow I guess it's not HTTP/2
 
Welp, this is going to be fun.
 
fge
Why do you want that?
 
does any one have eclipse RCP Autocomplete with multi value searching???
 
fge
<-- doesn't use Eclipse and doesn't even know what RCP means, so no
 
11:08 AM
eclise is an IDE :D
 
@Balkrushn ... We're well aware.
Eclipse is a terrible IDE. It may have its merits in 2010, but it's 2015.
 
so can any one help me for autocomplete with multi value ?
 
What's RCP?
 
rich client platform
 
A rich client platform (RCP) is a programmer tool that makes it easier to integrate independent software components, where most of the data processing occurs on the client side. It is a software consisting of the following components: A core (microkernel), lifecycle manager A standard bundling framework A portable widget toolkit File buffers, text handling, text editors A workbench (views, editors, perspectives, wizards) Data binding Update manager With a RCP, programmers can build their own applications on existing computing platforms. Instead of having to write a complete application from scratch...
 
11:11 AM
for creating desktop based application in java
project is handled by eclipse
 
fge
Well, nobody's perfect
 
Read ALL of it.
Wait, the Eclipse wikis are built with PHP? ... Eww.
~eclipse--;
 
fge
PHP: Pin Headed Programmer :p
 
:D
 
fge
Or, as javabot would put it, "the medium of choice for relaying MySQL errors to end users"
 
11:14 AM
Ever since I realized how PHP is stupid compared to Node, I completely stopped defending PHP. Suck it! :D
~problems--;
 
fge
Hmm, PHP and node.js don't really have the same target audience
 
<- #optimalprogrammer
 
@SecondRikudo I just went to another "interview", with a guy who's kinda headhunting me
 
well...I just had interview in front of two guys with 10+ years experience for freelancing projects. Guess what...today I got requirements of first project from them :D
 
11:34 AM
Congrats? :D
The funny thing is; the guy I met today; his company wants to hire me, but they can't before fall, and i want to start working now!
So he's gonna try and introduce me to another company he's associated with instead.
 
fge
@Gemtastic making progress nevertheless then
<-- has been lucky
 
@fge Yep, and I still have that other thing I've been to two interviews for
This was acquired with two posts on facebook
 
fge
Heh
I'm not really a "social network" guy
 
I haven't even written a CV yet I just put out a little "hello I'd like to see if there's any interest in a developing developer"
I'm just really lucky
 
fge
So, have you trained yet into reading and practising :p
 
11:43 AM
Also, I'm a girl
 
fge
Then what? :p
I'm a Tasmanian devil
 
Sadly, I do have something to gain from that; this guy I met today sees it as his own personal benefit to introduce women to programming
 
fge
Well, take advantage of it then
 
And no, he's not hitting on me, luckily. He's married with kids (not that that necessarily means something :/ )
 
fge
But don't neglect improving your core skills either
Somehow I believe you have trouble with that
 
11:45 AM
No, Why would it? I want to work because I want to get better!
Well, that's your belief
I hope to prove you wrong :P
 
fge
Well, I have the opposite view
I want to get better because I want to work
And this is exactly what has happened for me
 
I want to get better because learning is fun and I want to create good code.
 
fge
Fine, then prove it to me by creating column expressions using JooQ and use that for your car shop statistics :p
And yeah, I've quite given up on hangouts; audience is just not there
*NF would have been nice but I've given up
 
@fge I'll get to that when i get to the statistics tab.
Aww I wanted to see the *NF :(
Can't repeat it too much
 
12:05 PM
I want to get better because I want to get even better.
 
Heh, you know Uni, if you want to come here and work when you're 18, I might be in a position to help you get a job :P
 
:D
 
We got some positive stereotyping and prejudice for you too here; asians and their smarts ;P
 
Hehe. xD
 
fge
12:20 PM
<-- not Asian and not a woman to boot
In short, I'm your standard imbecile
3
And I'm old to boot :p
 
Haha :P
 
Well, you're not applying for a job in sweden, though I'm sure they'd be fighting to hire you as well :P
 
Do employers give some value to your SO account's reputation?
 
fge
@Alagaros my current job was obtained because of my SO contributions, among others
 
@Alagaros Most often, no
 
fge
12:25 PM
The other being my github account
 
However, your colleagues might
In my country your colleagues often get to have a say when hiring
 
Hmm, that's actually quite cool. Contribute something to the community and higher your chances of getting a job :)
 
You only need to look at the job ads to know that the one hiring you have no idea SO even exist. "You need to know the following programming languages: Java, C, PHP, HTTP and DNS"
 
Makes me want to invent a language called DNS just for trolling such people.
 
@Alagaros It depends of which kind of job.
Most people hiring look for github profiles instead, they probably don't know what SO is.
 
fge
12:36 PM
@Unihedro let's be serious; my employer is looking to hire, specifically people who would help me for the project I'm working on. What do you say?
 
Let me guess... It's a Java software implementation?
 
fge
That is Java, yes
 
@kiheru I am - no joke - the world's greatest DNS programmer
 
hello
 
Hello.
 
12:42 PM
there is someone knows java agent development platform (JADE)??
 
fge
Not me
 
hmm i asked several time about JADE no one answer :/
 
12:59 PM
@Gemtastic How'd it go?
 
fge
Well, then it's a good opportunity to read and learn :)
 
@fge lolz, that needs to be starred :P
 

« first day (1616 days earlier)      last day (3316 days later) »