« first day (1112 days earlier)      last day (4053 days later) » 

00:39
No problem. Don't let the man get you down.
<b><Aaron/></b>
 
1 hour later…
02:04
Hello
Does anyone know of a way to restrict a directory under the directory a jar file is in?
I'm creating a server, and don't want people to edit the requests to under the game folder.
 
4 hours later…
06:17
@baseman101 "edit the requests to under the game folder" - what do you mean?
@Kylar I thought you were a non-hockey-playing Canadian.
 
3 hours later…
09:10
Hi!
How come "input\\synsets.txt" doesn't evaluate to "input\synsets.txt"?
 
2 hours later…
11:30
heya
dekh ise
this code is working for some mp3 but not for all
for some mp3 it's showing
java.lang.StringIndexOutOfBoundsException: String index out of range: -7
along with
File not Found
usme data nahi hoga
file not found is file reading error
to ise kese handle karun
?
JFileChooser gives right path, I guess.
11:38
haan woh toh sahi bol rha h
dena toh chaiye
What you think?
Ku6 to solution hona chahiye
hmm
ruk raat ko baat karte h
wat say ?
mmmm
okay aisa kr lete hain
but mil jaiyo online raat ko
@ItachiUchiha
:D
11:53
LOL
 
4 hours later…
15:52
@ItachiUchiha hi .
Good morning.
@AaronBlenkush hi
16:10
@TheLittleNaruto डिबगर का उपयोग करें. लाइन 10 पर एक ब्रेकपाइंट सेट और कोड के माध्यम से कदम.
16:41
@AaronBlenkush ??
Debug it line by line
16:54
Hello, if I have 2 threads and both use same method so should they use synch method? How does it works?
Because I am getting an invalid value from method
Hard to tell without code but probably yes.
okay. where you're from buddy ? @AaronBlenkush
Ok, I tested and It seems I did it. Can anyone tell me exact practice example where to use threads? I am just testing it, need some info (theory is enough for me)
is it prevent from invalid results while 2 objects try to use the same method? for example 1 is setting up a value and another just wants to return a value. So the latter will return an invalid value because the first 1 try to set up the value. Or they work not at the same time? Shit, confused.
in theory: use threads whenever there are things you can do in parallel. in practice: avoid them unless you really need them and know how they work.
17:05
OK, so in short words, there are lot of useless stuff in java -.-
Except some cases
@Ernusc avoidUnlessNeeded.equals(useless) == false ;-)
if you understand docs.oracle.com/javase/tutorial/essential/concurrency/… feel free to use them :)
17:26
@ernusc Nothing in java is useless to everyone...
@Ernusc Java says, "I Object!"
Can anybody here do regex in their head?
i.e. mental regular expressions?
If it's an easy one
not if it's hard
[?+.]
Right.
Well, I guess I was asking for it...
On a job search several months ago, I was feeling cheeky and I put on my resume that I was a "regular expression ninja" or wizard or something to that effect.
The interviewer responded by grilling me on several difficult expressions to do on paper without any reference.
I think I got them generally right, but it's still kind of lame
Or am I lame that I can't cast spells without a wand?
it's lame if you can't do polygenelubricants.com/2010/09/… without reference :D
@AaronBlenkush to answer your question: I was originally a non-hockey playing Canadian, but I picked it up as an adult.
17:42
It's always charming when people embrace their cultural heritage.
Well, I'm 1/2 Canadian, 1/2 American and 1/2 Irish, so take your pick. I can hit you with a stick, with a potato, or with a cheeseburger.
 
1 hour later…
19:02
Who can explain the notion of "atomic action" in synch?
there is state observable in between
1
Q: How to explain atomic actions?

user1014888Hi I am just trying to answer this question but not sure if my answer is correct, has anyone any better way of explaining an atomic action? Question: In a concurrent system it is necessary to implement atomic actions. Explain what atomic actions are and why they are neccessary. How are atomic a...

19:24
You can ensure that state is not observable, but often it's complicated, using mutex locks
19:40
Not to mention that as soon as you start doing that, you need to be very careful and know what you're doing, to avoid deadlocks or slowdowns
at least deadlocks are rather hard to produce
20:07
So what's the deal with closures in Java? Supposedly they were going to be added in Java 7, but now it looks like it won't be added until Java 8? docs.oracle.com/javase/tutorial/java/javaOO/…
I miss LINQ methods :'-(
And implicit typing
var filtered = modelCollection.Where(x => x.attr = "val");
noes, you ruin the strong typing
In C#, implicitly typed variables are strongly typed. The type is resolved at compile-time.
I guess that's the only way possible in a strongly typed language or it is no longer
but +1 for closures
Well... C# also has the dynamic type. Never used that one though. Seems messy. PHP-flashbacks.
PHP is a helluva drug.
user1804599
in Lounge<C++>, 25 secs ago, by Martin James
Plenty of eunuchs available in the java room.
user1804599
20:19
@AaronBlenkush I use it as an alternative for the visiting pattern, as it defers overload resolution to runtime.
user1804599
It way less verbose.
21:14
@zapl if you think deadlocks are hard to produce, try having a team of people all write multithreaded code.
that's typically "oh there seems to be a problem, let's make all methods synchronized and hope it's gone"
but ye, I've seen clever use of wait / noitfy
21:51
Hey guys, I'm having problems with printing a passed arrayList . Any help if i show u my code pelase?
@Eggy pastebin.com
It's a hw question which asks " Create a method ShowArray that takes in as a parameter an ArrayList of Integers (ArrayList<Integer>) and displays the contents of the ArrayList. "
So you tried just dumping the list
What would you try next?
Since this is homework.....
I've tried printing it in the main, but it still won't
You tried just printing the list object.
Don't you really want to print whats inside the list?
21:54
yep!
And how would you go through the list?
but, I thought that's what I was trying to do lol
Here's a hint: take a look at loops, both for and foreach, as well as how Iterators and Iterables work in java.
@Eggy, here's a little tip that's not obvious at first: When you call System.out.println(), it will call .toString() on whatever you pass to it.
21:56
And here's something that I've found to be a HUGE help whenever I get stuck on a programming question:
But it's a homework question! That would be cheating ;-)
ok, thanks I guess
He's been here 4 minutes and I haven't sworn, been mean or called him a fucktard yet. I'd say I'm doing pretty well
@Eggy: You'll get more help once you put some effort in on your own.
That's a tip for life, not just @java
Java: "Life lessons served daily."
ok it is not in java, but i will ask. Can someone give a link where can I get a proper GLUT C++ texture loader code? I have tried many of these... Help
"OpenGL" not appropriate I guess..
22:01
Did you ask Lounge<C++>?

« first day (1112 days earlier)      last day (4053 days later) »