« first day (1627 days earlier)      last day (3305 days later) » 
01:00 - 11:0011:00 - 00:00

1:22 AM
o /
 
1:46 AM
Morning
 
 
3 hours later…
4:17 AM
Hi peeps
 
heya
 
can someone help me with a smalllllll problem
 
shoot
 
give me a sec to type it up
I have a class that consists of 5 Strings, and I want to sort an arraylist of objects of this class based off one of the strings in the class
the string i want to sort it by corresponds to a "visibility" attribute
and there could be 3 possible visibilities: Private, Public and Friends
I want to sort the arraylist so that Public is displayed first, then Friends, then Private
thats pretty much it
 
Create an enum with these three attributes and supply int value to them
Let the class implement Comparable and inside the compareTo() just compare these enums..
 
4:30 AM
@ItachiUchiha thanks, will look into it
 
fge
4:46 AM
Moo
 
Meow
 
5:03 AM
Hi all. I have an error ArrayIndexOutOfBoundsException with my code.

http://pastebin.com/xx4Hj2Dy

I've read what I can about the error but can't see what in my code could be causing it.
 
   for (int counter = 0; counter <= length; counter++) {
       System.out.println(names[counter]);
  }
Use counter < length
 
@ItachiUchiha hi
 
Hi, i have some doubt on activiti-explorer. Anyone please help me.
 
Thanks.
@ItachiUchiha
 
5:12 AM
How to get call value from database on activiti-explorer directly
 
@Velmurugan What is activiti-explorer?
 
@ItachiUchiha activiti.org
 
No idea
 
hey
what's special about FilterOutputStream? I have a class which is extending it. some of my data seems to break if i extend it. if i extend FileOutputStream, it works fine
i'm trying to figure out what's so different
 
fge
FileOutputStream in 2015?
 
5:24 AM
1.7.x
 
fge
Well yes
So why File?
Use java.nio.file
Also, what are you trying to do?
 
i basically want my stream to be generic as it's not necessarily going to be writing to a file
 
fge
Well then just use OutputStream
OutputStream out = Files.newOutputStream(...);
 
i'm basically creating a stream which calculates checksum on the go.
 
fge
Uhm
The JDK already has those IIRC
Oh, no it doesn't; it's Guava which has them
 
5:27 AM
i have the InputStream that works fine generating checkums using MessageDigest. i need to implement the same as an OutputStream now.
my *InputStream extends FilterInputStream and that works fine
however, if i try extending FilterOutputStream, it messes up and the checksums aren't right.
 
fge
Well, without code...
 
i tried extending DataOutputStream as well but that lead to the same result.
hang on
 
fge
(use a pastebin)
 
in this particular case its extending DataInputStream
this is my test case
anything obvious?
 
fge
Don't use DataOutputStream, use a plain FilterOutputStream
Also, don't use File
 
5:32 AM
i tried using FilterOutputStream
 
any one can help me realted Epub reader tool development in java
or any one suggest
 
the file reference i will need later just for path-related stuff which will happen during close()
 
fge
Well, don't use File
Use java.nio.file
This is 2015
 
gud mrg all
 
fge
File is broken
 
5:33 AM
good morning
 
i am new to eclipse and i got this error what's the cause of it?
The content of element type "urlrewrite" must match "((rule|class-rule|outbound-rule)*,catch*)"
 
@fge: anything else?
 
@Edge I guess not..
@jude mrng
 
@greenhorn sorry... negative from my side :(
 
yaar i really need some help about this coz i just want to open epub file using epub reader tool
 
fge
5:38 AM
@carlspring not that I can see; if you use a plain FilterOutputStream this should work
 
like i said,
that was the first thing i tried
could it somehow be related to the ByteArrayOutputStram?
i have a big wtf here
 
fge
Well, you didn't show your attempted code with FilterOutputStream, so how do you want people to fix that version?
But DataOutputStream is definitely not what you should use
 
refresh the gist
there's no real change
it's just ...extends FilterOutputStream
 
fge
Well, that should work, yes
But again --> drop File
Just pass the OutputStream as a constructor argument anyway; you don't need any other argument
And that will simplify your test to boot
Here you rely on the path of the project
You shouldn't
Using java.nio.file you could use a memory filesystem for instance
Which File cannot do
 
any one worked in java swing ?
 
5:56 AM
fge, i agree, but in this case, this isn't the actual problem.
if you try the code, you'll see that the checksums its producing are both incorrect.
i've tried them with sha1sum and md5sum to be sure it's doing the correct thing.
and it's not.
 
fge
Sorry, I don't have the time to try the code; what I simply see is that in your test you don't close() your stream properly, and also I don't see where the final digest() is called (it's probably in your utils class or some stuff)
If I were you I'd digest() when I close()
(which also means --> use try-with-resources)
 
What is the suitable ide for web development(MVC pattern with struts) NETBEANS || ECLIPSE
 
Eclipse
 
@Edge a little
 
6:17 AM
@ItachiUchiha can you reason it
 
fge
JSON + TestNG's @DataProvider for the win
 
@greenhorn I can, but I don't want to right now
 
Any other in this room can reason this?
 
fge
6:32 AM
Not me, I don't use Eclipse
 
I use eclipse for Android
 
My reason-> I have never used Netbeans, so eclipse :P
 
@DroidDev Switch to Android Studio
 
@ItachiUchiha pretty tedious for me. I'll shift when a decent build version appears. Though I keep checking on Android Studio from time to time
 
Hi Good Afternoon all.
I am trying to integrate spring with hibernate but while running app I am facing this issue can anyone please hep me ?
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [F:\ExampleApps\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\S‌​pringWithHibernateIntegration\WEB-INF\classes\com\shubhu\controller\HomeControlle‌​r.class]; nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class
Caused by: java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class
I have gone through google but still no luck
 
7:04 AM
Hi all
 
@AniketDeshmukh hi
 
how are you ?
 
@AniketDeshmukh good. hw about you? i'm feeling nervous as this place is not a place to silly chats... I'm mean, for me
 
ok can you tell me applet and jnpl difference
 
@deadlydragon00 devil$ ; clan level is 3.
 
7:10 AM
@AniketDeshmukh i only know applet. Applets are used in web... learned only for 2nd year exams .. lol.. basically used the same java.swing.* and java.awt.*
 
ok
are u student
 
fge
JNLP is Java Network Launch Protocol
And unlike applets they don't run in the browser but as separate entities -- with a custom security context defined by the JRE
 
@AniketDeshmukh yes. lot to learn
 
if i want to change applet code to jnpl what effort we required for that
@fge
 
7:30 AM
Hey hi buddy...
I just need your help on JSF and primefaces
I want to print password on outputlable in my xhtml just like this will print text <h:outputText value="#{bean.message}" />
 
Good Morning @ all
 
but I need password type view instead of text
 
@Gops do you realize you're sending passwords as cleartext?
 
eg. Gops will will shown ****
 
and if yes, do you realize you shouldn't?
 
7:32 AM
Yes he is admin
 
Does anyone know how to open the Windows Computer-View with JavaFx?
 
admin privileges shouldn't allow you to access passwords...
 
and he can show password but I don't want to show him easily
 
@Juce can't you set a L&F?
 
BTW its MD5
 
7:33 AM
okay no.
just no.
 
Ok dude...
 
use a proper password hashing algorithm and don't show passwords to your admin
scrypt or bcrypt
 
Ohk BTW admin want to change password so I just want him to update it not want to show him password
 
@Vogel612 L&F = look and feel? I don't know what it has to do with my problem ^^ just like I would call Firefox.exe I want to open the Computer-View where i can see the devices etc
 
@Gops that's better.
 
7:35 AM
:)
 
@Juce huh?? I don't understand what you wnat then...
 
Hmmm exactly right... that's why I had done MD5 hash algo
I just want to print ***** instead of password
length of password will be correct
 
@Vogel612 do you know the computer symbol on the windows desktop?
 
you cannot calculate the length of the password from it's hash @Gops
 
Ohk got it...
 
7:37 AM
@Juce that disgusting picture of a monitor?
 
@Gops if we use MD5 salt, when the user asks for password; what do i do?
 
Thanks you very much
It's over :)
 
well since md5 is cryptographically broken, you actually could probably...
 
@Vogel612 correct. i want to open that one but not with a click. just want to call it programmatically
 
I smell an XYProblem here...
what Problem are you trying to solve?
 
7:39 AM
@Vogel612 i made an icon in a selfmade bar. i want that that icon opens the computer view
@Vogel612 problem: how to call that view ^^
 
and what do you want to accomplish with that?
point being: your application shouldn't rely on external programs, especially if it's a java application.
and usually you don't just open the OS's File Browser...
OTOH what applications often do is use a FileChooser
=javadoc FileChooser
 
@Vogel612 javafx.stage.FileChooser: Provides support for standard platform file dialogs. These dialogs have look and feel of the platform UI components which is independent of JavaFX. (1/5)
 
^^They allow selecting a file to use in the application (for open, import, save, ...)
 
yeah i know how to browse :P
the intention was to create a little sidebar that gives me the functions i need without using the desktop icons
 
okay that makes more sense now.
be aware that this only works for windows if you call the corresponding windows executable
 
7:43 AM
sorry ^^ should have explained it like that from the beginning
 
I must say: I don't know off the top off my head, but you should investigate calling external programs from java
because it's not something JavaFX-Specific in the end
 
8:08 AM
Care to join a community page on pets?
 
Hi Java!
 
Heya
 
I'm going to an interview today. Any advices? :)
 
Keep calm
and Nail it :D
 
Thanks! :)
 
8:21 AM
morning
 
@ItachiUchiha yes and no.....
 
np :)
 
9:02 AM
@OlegKuznetsov I have 2 interview done already today, however they force me to use c# and not Java ...... by the way good luck to you as well
 
@Vogel612 just btw i found it ^^ its "explorer.exe","," for the computer ;)
 
Wow!
@deadlydragon00 and thanks :)
 
@deadlydragon00 Any specific reasons for opting to work in Java?
 
@ItachiUchiha comfortzone
 
Do you guys have any experience in how hard it is to get a job in Java? I want to learn as much as possible and don't really care how much I get paid right now.
 
9:10 AM
@Joop I got it after 5 interviews (and a few dozens of CV mailings)
 
Usually majority of the small company don't use Java, it requires Big Budget
 
Java - no. C# - yes
 
Yes I also notice C# far more used
 
@deadlydragon00 that's just you then...
 
9:12 AM
I meant the budget...
 
Sorry that's just what I observed... in our place
 
any one worked on Java Swing
I have to create one desktop application
can u please suggest me which tech we should follow
?
 
use JavaFX instead...
 
JavaFX?
in Eclipsed or Net beans which tool we should Use
 
~facedesk
 
9:19 AM
morning
I forgot to leave the room over the night.
 
Hi, I'm having a problem with a println in a method not being called, when I set a break point on the 'for' loop it skips over it when I step into it, any ideas why?
http://hastebin.com/ditedomire.coffee
 
hi @Unihedro :D
 
Hiya!
 
@BrianJ allLocations is empty?
@Unihedro so.. you're running?
 
@Vogel612 Yes. I highly doubt I'd win though, since there are brilliant people running. :P
 
9:21 AM
ya ... But seriously, the competition this year seems to be intense
Rikudo, Martijn, hichris, ....
 
I believe in Uni
 
@Vogel612 hichris made it into secondary last year, iirc
in Stack Overflow 2015 Moderator Election Chat, 12 hours ago, by Unihedro
Madara, Jon (Clements) and Martijn are my three favorite candidates. I would consider it perfectly fair if I lose to them. :)
 
I saw ;) I was still around then...
 
Good to know :P
 
9:24 AM
@Vogel612 I called the findLocation() after I've parsed in the file, so not sure why it would be empty, and allLocations is declared like this in the Location class: private ArrayList<Location> allLocations = new ArrayList<Location>();
maybe that creates a new empty instance of the Locations?
I'm thinking
 
you never add things to allLocations in that snippet....
 
@Edge Yes, if you can, you should use JavaFX. I wouldn't recommend using GUI designers/generations in IDE: it's code is usually badly maintainable
 
@OlegKuznetsov Thanx
 
@Vogel612 JavaFX is not that well documented so I would still stick with swing if you really want an easy time.
 
9:28 AM
um. no
 
@Joop I wouldn't
 
Does someone know how to avoid a "background" when i give a button an image?
If I give a button a background image, i can still click next to the image in the transparent background to activate the button?!
 
JavaFX is well-documented and Swing is a royal PITA
 
@Vogel612 :D
 
I mean, Swing is good: it solves the problems, but it's layouts and some other stuff... I already ranted about it yesterday
 
9:28 AM
@Joop please suugest me which one will god
 
Maybe it's well documented but the problems people face are not well documented yet.
 
coz first time i m creating desktop app in java
 
@Vogel612 okay I see now I need to use location as that has the get/set
 
@Joop ... that's a non-existent problem
 
Why is that a non-existent problem?
 
9:29 AM
!!bring me to life
 
@deadlydragon00 That didn't make much sense. Maybe you meant: ping
 
because that's always the case...
 
Because its documentation is in a form of tutorials from Oracle, but not a manual.
 
No it isn
isnt*
 
@deadlydragon00 that would be !!evanescence
 
9:30 AM
@Edge go with JavaFX, you will be glad later that you did
 
OK
thanx
 
Ask a question about javaFX on stack overflow and you won't get a good response.
 
push my own question a little bit above <_<
 
If you're into learning something new I would also try JavaFX @Edge
 
9:31 AM
@Joop Bite me
 
learning also we have implement desktop application in given time period
 
What is your question?
 
I will look it up, maybe I can find what my question was.
 
@Joop Explain this then.
 
see i have to read web service and fetch data and print it and on click it should export to Our server
 
9:32 AM
@Vogel612 so now I get an NPE at this line when I changed the list to iterate through, `for (Location l : location) { `

I don't think this should be null as I have printed the contents of it before calling the findLocation()
 
i mean post to server
 
majority IS JAVAFX
 
All of them :P
 
SO I WILL That side thanx
 
9:34 AM
@ItachiUchiha I can't find the question anymore which was taken so long to get an answer to. I think I deleted it.
 
to evey one
 
@BrianJ you're being incredibly boring and annoying at the same time, do you know that???
 
@Edge which majority is javafx?
 
yes
 
@Joop So it takes time to get an answer to the question. When you finally get an answer, you delete it?
 
9:35 AM
@Joop The sane majority who participates with reasoning and logical induction.
 
It took like 2 days and I was working on a deadline and after the deadline was done I would have get pissed to get the right answer..
I'm only human.
 
@Joop People in SO don't care about your deadline.
 
@Vogel612 How so?
 
@Joop so?
If you're procrastinating until your deadline to ask, that's your problem
 
@Unihedro so I can't fly
 
9:36 AM
@Joop You expect differently given the premise?
 
@Unihedro it was 2 days before the deadline, usually I get an answer in about 20 minutes easily.
 
@BrianJ You're running against always the same walls and even though this room helped you so many times and told you to show some research effort and learn from this, you show no sign of improvement
 
Define usually?
 
You're still running against the same walls, and still show 0 research and understanding
we're not here to fix your problems
 
Out of my 45 questions I think it happened only twice that I didn't get an answer or helpful comment in 20 minutes
 
9:37 AM
so get your crap together and give us something more interesting than a codedump and "NullPointerException, it's not working"
 
If you make me review all your 45 questions, I don't guarantee they'll remain open.
 
@Joop I get the feeling you're asking the wrong questions....
 
@Joop I guess because your questions are easy enough to get answered. Buckle up!!
 
This one belongs on programmers.se. It's not code related, but broad programming. stackoverflow.com/q/29457319/3622940
 
@Vogel612 pls send me the link for Six repo..
 
9:39 AM
@Unihedro ;)
 
Same with this one, although it's not a bad question. stackoverflow.com/questions/29432765/…
 
@Unihedro You might be right, I am just trying to learn and try to improve everyday.
 
@Vogel612 Okay
 
is it good to explicitly cast SuperClass to SubClass(in case where a method defined only inside SuperClass) while using factory pattern
 
9:40 AM
@Joop I am not sure when you asked the question, but the thread is more active now and have more contributors :D
 
@Tarun Explicit casts are usually bad.
 
@Unihedro Dude, stop it
 
@Unihedro disagreed....
could use a little polish and then could be fine
 
^^ True
 
comparing SQL to in-memory hashmap for specified task (aka. word search)
 
9:42 AM
Where can I get Six repo , I whant to download it
 
@Vogel612 The question cannot be answered with facts, references, or specific expertise.
 
@Unihedro so in order to use factory pattern all methods defined in subclass must exist in superclass right?
 
@Unihedro sure it can.
 
@deadlydragon00 What is Six Repo?
 
Caprica Six
 
9:43 AM
ask her for it
 
Vogel pls give me link
 
!!help
 
@Unihedro Information on interacting with me can be found at this page
 
That page. ^
 
9:45 AM
@Tarun I'm not sure if that's relevant.
 
Why the crap do people think I don't give them what they want, because they didn't beg enough????
 
morning!
 
Morning!
 
Morning, nice Avatar
 
morning
 
9:46 AM
Morng!
 
@deadlydragon00 ty :)
 
ohh... you took down the christmas decoration :,(
 
way overdue :p
 
Yeah.. no more winter now :/
 
meh.. I had frost this morning...
"morning".... 9AM
 
9:52 AM
No snow here, hashtag living near the equator.
 
We barely had any frost this winter here. Warm ocean city..
Well... too warm for frost, too cold for warmth
 
Kewl
 
I like that weather the most actually...
because I can't stand warmth
and permanently having snow isn't my thing either.
 
me too
I'd rather wear more than sweat everywhere :p
 
relevant meme just popped up on 9 gag XD
 
9:56 AM
XD
 
Hi everyone, i am trying to run a web app from eclipse but project is running on internal eclipse browser only, is this the only way to run a web app in eclipse
 
@greenhorn that's just eclipse default behavior to open the internal browser.
you should be able to access it in your standard OS browser anyways
 
yes i am entering the url manually in chrome to run the app but i want to run automatically with the chrome when i run the app
 
that's not possible.. you can turn off the default browser of eclipse, though...
 
Funny enough netbeans does that :P
it opens your default browser
 
10:13 AM
yeah @Gemtastic i too upvote for netbeans only in this case
 
:P
 
YAML looks simple and it takes less mem
 
The homepage is all in YAML. It's incredibly easy to read. :)
 
hello, is there anyone who is familiar with apache camel? I have a problem with implementing route which will manager more then one soapaction..
 
10:17 AM
YAML also has an ability to reference other items within the file with anchors, so it handles relational information, not like JSON.
@Mithrand1r I don't, sorry.
 
@Vogel612 which ide do i choose to develop web app eclipse || netbeans
 
@greenhorn IntelliJ idea.
 
@greenhorn HTML5 plugin for netbeans has a lot of feature compare to eclipse... But you will appreciate things if you only use simple Editor like Sublime Text.
 
fge
YAML is not JSON
And I dislike YAML :p
@Unihedro wrong; not with JSON Reference
JSON Schema uses that
 
@fge What's a JSON Reference?
 
fge
10:23 AM
A bona fide URI, whose fragment part, if any, is a JSON Pointer
 
@fge Which parser is good to go for JSON (Jackson, GSON ,Simple Parser)?
 
fge
@deadlydragon00 I use Jackson, but now it depends on your needs
 
@deadlydragon00 GSON is lighter but incapable of achieving much, it's generally preferred to use Jackson.
 
Ok tnx, I'll Note that
 
@Unihedro I gave you the #33 thingie back.
because... I don't understand the DOM stuff you did enough to do somethign about the malformed HTML.
and also I have something else in my pipeline right now and work is a PITA:..
 
10:30 AM
Ok :p
 
01:00 - 11:0011:00 - 00:00

« first day (1627 days earlier)      last day (3305 days later) »