« first day (1377 days earlier)      last day (3547 days later) » 

12:38 AM
Hello
 
1:06 AM
hi
 
Anybody alive?
 
Anyone have any idea on why loading two sounds would cause my program to crash?

http://stackoverflow.com/questions/25028058/openal-loading-two-sounds-freezes-java
 
 
1 hour later…
2:38 AM
hey
anyone can help me with some design inteview problems?
 
 
1 hour later…
4:08 AM
hello
 
4:22 AM
hi
 
4:46 AM
hi
 
5:06 AM
good morning everyone
 
hey is anyone working in android
could you pls help
is it any possible to upload image in dropbox using sync api?
 
 
2 hours later…
6:55 AM
hi
guys
@agarwal
 
7:21 AM
Good afternoon!
 
7:31 AM
Hello can anyone help me with smartGWT implementation
 
7:44 AM
No experience with that, sorry.
 
7:58 AM
Harro!
 
@Sabಠ_ಠ Hi there!
 
Sup :)
 
I'm hunting for good questions (that I know how to resolve) that are worth my time composing an answer. :)
 
Awesome. So I'm new to Java and I got Python experience. Not really sure where to start.
 
Maybe a Hello World!? ;)
 
8:00 AM
Yeah. I already did it, but I need to get the syntax right.
I can't find a good and reliable source for a quick start with the basic syntax and move on to OOP
 
Ah, in Java syntax is pretty generous, (they do say Java is a language for lazy programmers), no forced indention and some statements can be transformed
 
I'm lazy and I find the syntax long and boring. Is it normal? xD
 
e.g. array declaration: String[] split = "happyness".split("[aeiou]") vs String split[] = ...
 
I mean System.out.printl() vs print("")
You got any good books I could read and some great online sources?
 
8:04 AM
Ohhh That's nice :O
The link seemed fishy at first though :P
 
Laugh out loud zebras
 
public static void main(String[] args) {} that's too much. I don't get any of it right now ll
Do they still use public void run{} ?
I saw that on a video on youtube, but it was quite old(2008)
 
public is the "visibility keyword". static is something you'll learn when you start the OO part of Java. void means that this function does not return as a statement, main(String[] args) means this function is (surprise!) named main and takes the argument, a String[].
 
Nice :D. Guess I'll create a spam message generator to begin with :3
 
Good luck!
Can anyone please flag this as VLQ? It got edited.
 
8:11 AM
Flagged! Though I'm not sure why xD
@Unihedron What Java books would you suggest me to have on my shelf?
 
I'm not sure. I've never read a book on Java.
 
Where did you learn Java from then? :P
greenteapress thinkapjava seems nice so far.
 
How I learned Java: I was an ActionScript / C++ coder, but then school requires us to learn Java. Knowing that relying on school for education is not the way to go, I took a crashcourse™ and composed a markup language parser in Java.
 
I was a PHP coder and college requires us to learn Python and Java for year 1 :/
Python was Piethon. Java needs a crashcourse
But I need to find some sources first..
 
... Yeah. I recommend the Oracle tutorials. It's pretty heavy though, so expect the sea of text like any official tutorials: docs.oracle.com/javase/tutorial/java
 
8:23 AM
Yep. I'm using it as reference for functions mostly
 
8:46 AM
Nice read
http://gvsmirnov.ru/docs/presentations/java-concurrency-hands-on/
 
Love the Pink Floyd reference :)
....... :
 
Such hax!
 
9:08 AM
@Unihedron :P
 
 
2 hours later…
11:07 AM
Everyone in the room is sleeping
 
lolz
are you doing it ?
 
11:29 AM
hi
 
@Sethu Hey
 
hi @uni
how yo?
 
I have been well.
 
hmmm
What doing dude?
 
Gravedigging old posts. You?
 
11:42 AM
@Unihedron i added answer to @kya's doubt :P
 
11:57 AM
@uni am n office
had dinner?
when is your sleeping time?
 
12:33 PM
4 am
 
12:44 PM
hi
 
@user2848901 Hey
 
 
1 hour later…
2:04 PM
I hope @aliteralmind won't mind that I referenced an answer of his in my answer...
 
 
1 hour later…
3:10 PM
sigh git scripting got me down
 
:( what happened?
 
I'm trying to migrate my project's git repo to a corporate hosted Gerrit server
But it has limitations that require massive pre-processing of the repo
I have to strip out all objects >20MB
This is kind of ugly because that means I will have trouble building the source older than a certain sprint release.
It's a very slow, error-prone and tedious process.
 
Oh no! Sounds tough.
 
Not sure if I'm taking the correct approach, either.
I think I'd rather take a snapshot of all current files and migrate them to a new repo with history. Exclude all files not present in the branch.
 
 
1 hour later…
4:19 PM
Anyone alive?
 
Thread.sleep();
 
Here
Zzzzz
 
Room.asName("Java").getInstance().getPerson("Kylar").ping();
 
throw new NoRouteToHostError("Anonymized, BABY!")
 
(gasp!) An unseen exception! Must ask Kylar!
 
4:26 PM
I'll trade technical expertise for free accounts on Embercraft ;)
 
o_O How does that work?
 
LOL
It doesn't
I'd actually love to see your ember craft server code
I've done some client modding but never server
 
I'm surprised it even works. :P (Well, since I code it...)
 
0
Q: NoClassDefFoundError when including a jar that includes a jar

Ben BeriI am using JKeyMaster with JNA library. The project that uses these two libraries, is jarred. Now when I use that jar in one of my application, and try to run the app (accessing one of the methods in that jar that runs the following method): this.provider = Provider.getCurrentProvider(false); ...

Halp!
 
What's ?
 
4:33 PM
Java Native Access jna.java.net
 
Oops, no experience with it. Sorry.
 
but its not a JNA problem
More of library including problems
 
Wait, why are you including a jar in a jar?
 
to make the library im making ready without any additions
 
Oh the joys and relief as I resolve the last warning from FindBugs.
Probably wasn't a good idea to set it on maximum warning level, but never hurts to be safe...
 
Fev
4:40 PM
helo, how are u guys
 
Hey @Fev!
 
@BenBeri You can't load a jar out of a jar without a custom classloader
 
Fev
hi Unihedron
 
Just include both jars in your classpath
That's why we have all these crazy dependency managers and maven, etc
 
And if your application wants to be smart about it, use Maven to package the classes into your app or automatically download the jars to the working directory.
 
4:41 PM
It's totally fine to have a library need another library. Your alternative (if I may) is to unzip the other jar and just include the .class files
into your jar
 
^^^^^^^^
 
but you can't just double jar
That's complete insanity - like cats and dogs living together
 
As insane as parsing HTML with regex.
 
Let's not even go there. That's straight up "You're going to HELL" evil
BRB
 
....... But I just did!
0
A: Look for Nested XML tag with Regex

UnihedronSorry for the late answer, traffic was a nightmare. I hope you are ready for parsing XML with regex. First of all, let's define what XML tags would look like! <tag_name␣(optional space (then whatever that doesnt end with "/"))>(whatever)</␣(optional space)tag_name> <tag_name␣(optional space)/>...

By the way, post <([^ \>]++) ?[^>]*+>(.*?(?:<([^ \>]++) ?[^>]*+>(?:[^<]*+|(?2))<\/ ?\3>|<[^ \/>]++ ?\/>).*?)<\/ ?\1> in the chat and watch what happens.
 
Fev
4:54 PM
how do you declare var badwords=[] on stackoverflow.com/questions/17158519/… without making any single sin ?
 
Love, humanity, care, hope, will, ...
 
Fev
the guy who declare that variable must do some praying before doing something like that..
 
Don't know. Maybe use unicode literals.
 
Fev
^ great solution !
 
Good luck explaining it to your boss though.
 
Fev
4:57 PM
lol
 
@Fev you should ask in JavaScript, not java
 
Maybe in jquery.
 
Fev
can't stop laughing reading the variable
 
How much Photoshop was involved in that screenshot?
 
Fev
5:02 PM
@Kylar , the will give me downvotes even in a chat room..
 
@Fev Find somebody who is OK with typing those words.
 
Fev
@Karl , absolutely
 
I will do it.
Just send me a list of them, and I will type them in for you! :P
 
Laugh Out Loud Zebras
 
Fev
there is also other solution declaring the variable without making any sin , that is we search on google and copying the words , then we don't have to think about them !!! :D , brilliant right !!!
 
5:06 PM
Then you will have [Do, you, mean:, Profanity]
 
Fev
oh man , thats right
lol
devil always win !
i guess
 
(shrugs)
 
5:18 PM
@Kylar The jar im including contains the jar inside it, do i need custom class loader for it?
 
@BenBeri Yes. You can't do that
 
It's not good practice, @Ben
 
That's why I gave you two other options
Jar-in a jar doesn't work by default
67
Q: Classpath including JAR within a JAR

Paul ReinersIs it possible to specify a Java classpath that includes a JAR file contained within another JAR file?

 
Well then it's a HUGE problem, I have to handle the hotkeys in the actual application and not in the library which needs additional modifications now, listeners etc
 
No, it's not
I gave you two other options. One will take maybe 30 seconds of your time
the other will take 30 seconds of your user's time
 
5:21 PM
but it's a bad practice isnt it?
 
You're over estimating the problem
What's a bad practice?
It's fine to have a library that needs other libraries
 
alright illtry
thanks
 
everyone does that. Google does that.
OR: Extract the files out of the dependent jar and just include them in your jar
 
Do you prefer custom classpath or UberJar?
 
Neither. Both of those suggestions is bad
are bad, that is
English is no longer my primary language
 
5:23 PM
Should I just unpack them into the jar?
 
That will be your easiest option
 
but fml..
Jna is not small
 
the other (as I said) is to just mention that the users of your jar need another jar (the dependency) in theirs
 
hey ppl !
 
@ItachiUchiha Hey there!
 
5:24 PM
@BenBeri This is why we have dependency managers
you're jumping through a lot of hoops that you don't have to jump through
 
@Unihedron heya
 
Fev
helo itachi
 
@Fev heya
 
@BenBeri Trust me. Kylar is good, Kylar is wise. Just make your jar, and when you distribute it, include the jna jar along side it. Then make a script that includes both in the class path.
no-one releases jars that don't have dependencies anymore. Everyone uses LOTS of them. Apache Commons, Google Guice, all kinds of IO frameworks
it's extremely common
 
@Kylar @BenBeri may I interrupt ?
 
5:26 PM
By all means, this isn't a kingdom
 
@Fev When you write your badwords section. Add it to your library so you can use it whenever you need it and not have to worry about re-writing it.
 
If anything, it's a benevolent dictatorship, with @Michael running it ;)
 
@kylar script? how'd i make it include into the classpath? never done anything similar
 
@Kylar haha
true !
 
@BenBeri ??!
You've never made a script to run your programs?
 
5:27 PM
@BenBeri how are you preparing your jar ?
 
How do you execute them?
I.... I just.....
 
Kylar is correct. You'll probably regret it if you go that far to load a jar within a jar.
 
You are confusing me lol
 
is it a runnable jar or just a jar to be used in other projects ??
 
Library jar.
 
5:28 PM
second ^
 
If it's a library jar then 10x my words
ONLY include your code
people are used to needing multiple jars
 
What do you mean by script? a python script? bash? a java code to load it?
 
so do you want to create a jar which will have all the dependent jars inside it ?
 
@ItachiUchiha That was his first (bad) idea
 
Ye
 
5:29 PM
57 mins ago, by Ben Beri
0
Q: NoClassDefFoundError when including a jar that includes a jar

Ben BeriI am using JKeyMaster with JNA library. The project that uses these two libraries, is jarred. Now when I use that jar in one of my application, and try to run the app (accessing one of the methods in that jar that runs the following method): this.provider = Provider.getCurrentProvider(false); ...

 
hi all
 
@BenBeri that z the worst idea
 
Eh, click on "57 mins ago" to go to the part where he asked for help.
 
@mohsensolhnia Hi
 
@mohsensolhnia Hey there!
 
5:30 PM
i have a problem with java-asp
can i tell it?
or you have no time?
 
@mohsensolhnia never ask if you can ask
 
Aren't you a master of software engineering?
 
just ask your question
@Unihedron I don't like the term "master"
 
I like the term "Jedi" or perhaps "Guru"
 
5:31 PM
@Kylar It's in his profile (about me section) on SO.
 
lolz
 
in my webform, i have a update panel, and some element,
 
@Kylar You said one option is to unpack the jar, that means using a decompiler. What if the source is obfuscated?
 
I like Jedi !
 
Technically my business card says "Forensic Cryptoscatologist"
@BenBeri No, no
 
5:31 PM
haha
 
alooooooo
 
you don't need to decompile anything
It will be compiled into classes
 
Yeah, just move the .class files
 
you only need the .class files
 
I see
Thanks
 
5:31 PM
Have you actually *opened* a jar file?
 
.jar is just a .zip file
 
^^^^^^
 
so you unzip both jars,
 
i think ur r busy
.. u r ...
 
copy over the jna classes into the other tree, and re-zip it
@mohsensolhnia We're good at multi tasking
 
5:32 PM
@mohsensolhnia just ask your question
 
There's more people in here than in the last month
 
Oh @moh don't worry, ask away, we still have two threads active.
 
Only the event thread is spinning
 
in my webform, i have a update panel, and some element, and a hidden element
 
5:33 PM
with java, i change its css to visible but
 
Java or javascript?
 
you change the css by using java ??? o_O
 
after 0.5 sec it return to hidden.
i dont know what is problem.
 
@Kylar I extracted, I got 2 folders, jna and JKeyMaster with all the files in there. Just add them to the bin folder? won't I have package errors?
 
@mohsensolhnia do you have a meta-refresh that's accidentally refreshing the page
 
5:34 PM
Well Ill give it a shoot & will let you know
 
updatepanel
 
Ben, just add it into your compiled jar file using your zip software. (Even I do that.)
 
@Kylar updatepanel
 
@mohsensolhnia not following you
updatepanel what
 
in asp.net
ajax update panel.
 
5:36 PM
Wait, I thought this was a Java problem
 
Man @mohsensolhnia is confusing - Java, Asp, ajax ??
 
and my div is in the update panel.
 
asp.net?!
@Unihedron We need to make that the room title
 
i change this by java.....
 
LOL
 
5:37 PM
@Unihedron missed
:(
 
Meh I get the same problem, through when I jar, I don't see the files at all. It looks like Eclipse only jars from the .java files and compiles it then, doesn't use the ready .class files
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
Should I not jar with Eclipse?
 
I thought that was the wrong room for a moment...
 
haha
 
5:37 PM
@mohsensolhnia I'm not understanding. Java or Javascript
 
that room is going all mad
 
C++ and Regex room is still lonely. Oh boy...
 
@Kylar I dont think @Unihedron has an expertise on it !
neither do i :P
 
Goodbye!
 
5:39 PM
Once I had a problem, and I used regex to solve it. then I had a catastrophic backtracking problem as well.
 
Once I had a problem so I asked it on StackOverflow, then I got banned. Turns out I asked it on Meta.
 
lolz
 
Ugh... Remote Desktop and IntelliJ do not like each other. So much lag. :(
 
@Kylar Could NoClassDefFoundError be thrown because I did something wrong with the including?
 
@BenBeri No, because that jar within your jar will never be loaded to begin with.
 
5:46 PM
weird.. not sure why im getting that error
 
The issue is you can't have a jar within the jar loaded while your jar is loaded. You need to do what Kylar mentioned to "embed" it in a way that it will be loaded.
In this state, whereever your code tries to call the library it will get that exception because you put the library jar within your jar.
Excuse my english, it's 2 am.
Kylar has amazing relationship advice by the way.
 
@Unihedron is right. Anyting inside the second jar will never be found
to the JVM, it's as if they don't exist
 
@Unihedron he is the Jedi of everything
 
@Unihedron I did whatever he said.. I still get that error
 
@BenBeri how are you packaging your jar ?
are you using eclipse to create them ?
 
5:52 PM
No
Looks fine doesn't it?
Oh one second
 
@BenBeri do you have the source of your library somewhere like GitHub
 
Ok fixed
You will laugh at the problem though
 
HAHAHA
there you go, now tell us the problem
 
When I unzipped, as you see jkeymaster-1.1 is not the package, the package com.etc... is inside these folders
ty worked :P
 

« first day (1377 days earlier)      last day (3547 days later) »