« first day (1415 days earlier)      last day (3534 days later) » 
05:00 - 23:0023:00 - 00:00

5:04 AM
@Karl yeah I did.. gZ !
 
 
3 hours later…
8:16 AM
how i get rid off null from the final result?
code:
 
What do you mean?
 
	String s = "<a name='bill_pay' href='javascript:goto(&#39;billpay&#39;);' class='fsdnav-top-menu-item'>Bill Pay <span class='fsdnav-ada-hidden'>link and menu. Press enter to navigate to this link. Press control + space to open submenu.\n" +
			"To move through submenu items press tab and then press up or down arrow.</span> </a>\n" +
			"<a name='bill_pay' href='javascript:goto(&#39;findmyinfo&#39;);' class='fsdnav-top-menu-item'>\n" +
			"<a name='bill_pay' href='#' onClick='OOLPopUp(&#39;/myaccounts/brain/redirect.go?target=findmyroutingnumber&#39;,&#39;ool&#39;,&#39;currentPage&#39;);ret
output:
billpay
null
findmyinfo
null
null
/myaccounts/brain/redirect.go?target=findmyroutingnumber&#39;,&#39;ool&#39;,&#39;currentPage&#39;)
it's because of the OR operator.
 
Correct.
A easy way out would be to use branch resets (| ), but unfortunately there is no such in Java.
 
hmm
 
You can use logic:
13 messages moved from The SO Tavern (Free Snacks)
 
 
1 hour later…
9:29 AM
Nevermind, sorry
 
HI
 
Hello
 
Is it possible to set isInterrupted to false after using thread.interrupt()?
 
9:46 AM
Can anyone tell me of my simple thread solution is correct?
0
A: Simple Threading Exercise

bob-cac Create class X that extends Thread and have an ICustomer Field. Implement the run method to use the ICustomer and fill the list. create main class that create two new instance of Class X set the ICustomer in both classes and call the start method.

 
@heyya99 when in doubt try it out.
 
i have and it works.. i think
 
 
2 hours later…
11:27 AM
Oh my goodness
Room is dead once again
wake up people
 
Guys
anyone?
 
Noone is here for us @Ben :'(
Let's hold hands and cry :'(
@BenBeri do you know how to check points in a GridLayout?
 
what u mean by check points?
 
tell me of this os right if you want work!
0
Q: Simple Threading Exercise

heyya99I have an interface called ICustomer. I have 2 implementations of it: Database and XML. The Database implementation gets Customer records from a database and the XML version from a Restful service. Both implementations return a list of Customer objects. When they return, I want to combine both l...

 
Greetings
 
11:47 AM
Greeting @Karl :)
@Karl I couldn't get it working
:(
 
12:25 PM
I'm not here right now...
[OK, I'm typing in my sleep]
Let me see what you got...
Just aL
 
i tried only the selected one
 
Show me aL
 
    private void checkSelected(int i1, int j1) {
    		if(grids[i1][j1].getIcon() == whitePawn || grids[i1][j1].getIcon() == redPawn){
    			if(grids[i1][j1].getBackground() == Color.BLACK){
    				grids[i1][j1].setBackground(Color.BLUE);
    				temp.setIcon(grids[i1][j1].getIcon());
    				disableOtherButtonsWithPawn(i1, j1);



    			} else {
    				grids[i1][j1].setBackground(Color.BLACK);
    				enableOtherButtonsWithPawn(i1,j1);
    			}
    		}

    	}
 
Edit it
Put a blank line first, then fixed font
That's not aL
 
grids[i][j].addActionListener(new ActionListener(){
	public void actionPerformed(ActionEvent event){
		checkSelected(i1,j1);
	}
});
I just made a method
 
1:14 PM
Good morning, Java!
 
Good Morning !
@Karl :)
 
Hi! :)
 
hey @OlegKuznetsov
 
does anyone here understand threads?
 
Hiya @Karl, @Sabಠ_ಠ, @Michael, @OlegKuznetsov, @ItachiUchiha :P
 
1:27 PM
Hiya
 
sounds more like a martial art sound HIYA
 
@heyya99 A program can have multiple threads. Threads all run at the same time.
Hey @Unihedron.
 
Hi @Unihedron @ItachiUchiha @Michael @OlegKuznetsoz @heyya99
 
hey @Sabಠ_ಠ
I like when so many people talk in this room
:D :D
 
1:31 PM
:D
I managed to make the pawns move @ItachiUchiha
noone saw that!
now the only problem is I need to check if the move is allowed
so that I can't move to random places
Brb after a 10 minutes shower
 
Hi! @ItachiUchiha Sorry, I was AFK
Hi! @Unihedron I was AFK when you got here too!
 
I turned up the sound on my mac to play a vid, and forgot to turn it off… Computers are NOISY when the sound is on!
 
1:49 PM
indeed
omg 20 minutes shower eww
 
NEVER! [Mine run about 10…]
 
18 mins ago, by Sab ಠ_ಠ
Brb after a 10 minutes shower
that's why I'm ewwwing
 
I have LONG hair, so a RUSHED 7 minute is difficult...
 
same
i care too much about my hair
 
Care? What does you do to it?
You don't want to do much to hair, it's actually bad for it.
You wash it, scrubbing the scalp!
TOWEL dry it.
Brush/Comb it, rubbing the scalp!
Hairspray, hair dryers, are no good for it. Conditioners are OK if your hair requires it. You also don't want to wash it daily! [It needs the oils to remain healthy!]
 
1:56 PM
happy middle autumn festival
 
what kinda festival is that ?
 
@DarkHorse Happy mid-autumn festival to you as well!
We have a holiday here on Tuesday for it.
Anyone want to try a String parsing puzzle?
 
@ItachiUchiha It's a Chinese festival
 
Mid-Autumn festival? Can you elaborate
Oh...
 
1:59 PM
@DarkHorse ahh, sounds cool
 
More details please
 
Yep, not "middle autumn"
It's a festival where people eat mooncakes, and geeks like me stay indoors to code and surf SE :)
 
So are @DarkHorse n @Unihedron school friends ?
 
@Unihedron What's a mooncake?
 
SE?
 
2:00 PM
@Michael it's a cake shaped like a circular thing with the chinese characters "moon" written on it
 
bingo
 
@Unihedron Those sound good, I wish we had those. :(
 
Me too
 
What else happens?
 
M hungry as well
 
2:02 PM
and SE stands for Stack Exchange :)
 
we will see a biggest moon of this year tomorrow night
 
What do mooncakes look like?
 
They look like boxes
 
cupcakes, except it's made of dough and looks like a box
 
@Karl Oh, that makes sense. xD
 
2:03 PM
[Read up 9 messages above the question]
 
Wait, you're serious?
 
@Unihedron why are you so familiar with Chinese culture?
 
@DarkHorse I live in Hong Kong..
 
Chinese is one of the oldest cultures on earth...
 
Well not really, I actually live in Alpha Centauri, but when I stay on Earth I live in Hong Kong..
 
2:04 PM
Why do you live in H.K.?
@Unihedron Wait, in, on, or above H.K?
 
I don't use anything but shampoo every 1-2 days
 
:D
 
My hair is very silky so styling products do not really work
 
My baby pic is still kinda accurate of what my hair looks like.
[My avatar IS my baby pic]
 
exactly the same
ah in my case my hair is the same style
 
2:06 PM
I have a bit of a beard now...
 
@Karl why not both?
 
okay your hair is super long
I'm trying to reach your level
I have a stubble which I like grooming
 
Wasn't I a cute little hatchling?
 
Yeah
I can see the fluid that covers you
 
Mooncake fellas !!
 
2:07 PM
@ItachiUchiha O.O I want one!
 
is it a biscuit?
 
@Sabಠ_ಠ thats a cake
 
yeah they make cute faces out of it
the first time I ate suchi was the last
 
Cars look fast, muscular, efficient or powerful.
 
This shit tastes so bad eww
 
2:10 PM
room topic changed to Java: Holy cow! It's Java! -- Happy Mid-Autumn Festival! (mmm mooncakes...) [java] [javabeans] [java-ee] [jsp] [servlets] [swing]
 
Never saw cute sushi
 
Messages burninated!
 
And cars attract cute ladies
 
haha
@Unihedron no need to move anything to trash
its fine
 
2:11 PM
I agree, but I didn't get a chance to have the screen stop scrolling itself par off-topic stuff :/
 
Don't tell me you dun wanna eat this cute panda suchi Om nom nom
 
I like Ramen
 
OK, pandas are cute. But, they could easily rip you apart!
 
when I eat it with Naruto ;)
 
How did you boldface?
 
2:11 PM
Idatakimass!
\bold {Text} w/o space
 
you need to surround it with **
 
Space between d and { I mean
 
**go**
this way
 
Y u no let me troll @ItachiUchiha ? Cries
 
:P
 
2:14 PM
I had this ready
 
@Sabಠ_ಠ so cute breakfast
 
Be right back, complete a regex :)
 
@Sabಠ_ಠ I'm still waiting to see aL
 
2:15 PM
@Karl I managed to make a move
 
Waits for onwards to push back
 
SO basically I click on a button, store it, move to another blank space, turn the previous button to blank
However, I can move to any blank spcae on the board which is not good
 
I'd do that first, simply let people move anywhere, don't worry about legal yet...
 
So now I need to limit it to move only to the space that is legal
@Karl already did it :D
 
how to send out a pic?
 
2:16 PM
Step 1 done!
 
code too huge
 
How long is aL?
 
And i wrote it it worked :D
I was smoking and the idea hit me
 
@DarkHorse copy the url of the pic
and post it here as a message
 
I decomposed the problem
basically that's aL
grids[i][j].addActionListener(new ActionListener(){
	public void actionPerformed(ActionEvent event){
		performEvent(i1,j1);
	}
});
and performEvent is the pastebin thingy
smoking gives me ideas it's so good
 
What you put in pasteBin is not aL.
 
This is unreadable @DarkHorse just like chinese
wait it'schinese
 
what is aL then?
 
@DarkHorse You have to post the URL of the image on a single line. also check out the help pages
 
2:19 PM
@DarkHorse right click on image, view image, copy link, paste here as a single message
 
How do I quote?
 
Just paste it
?
go on the message, click the arrow in the left, copy the permalink location paste as a message
ahh
 
I'm just a newcomer
 
aL gets the data, stores it where it needs to and makes calls….

    grids[i][j].addActionListener(new ActionListener(){
    	public void actionPerformed(ActionEvent event){
    		performEvent(i1,j1);
    	}
    });
 
Me too @DarkHorse :) You will enjoy the ride in this room
So that's my aL then :) @Karl
 
2:22 PM
Right.
You got it to move, so you are doing great!
 
Now I need to check the legality of things
 
You need to check to see if it's your piece, or the other player's. Then check for legality
 
> you mean like this
 
I recommend separating each step to a separate method, method names help you. They kinda self comment...
 
shit. don't work again
 
2:24 PM
yep
So basically in my aL just after the performEvent I make the method?
of I decompose the performEvent in itself?
 
@DarkHorse you paste the link on one line. Your message extends two lines.
 
This is my most commented method:

   private void rares()
   {  // Limit frequency of some
      switch (letter)  // letters
      {  // MUST be odd number
         case 63: // A - Keeps
            letter--; // the "A"
         case 73: // J
         case 74: // K
         case 80: // Q
         case 85: // V
         case 87: // X
         case 89: // Z
            if (!rares)
            {
               letter++;
            }
            rares = !rares;
      }
   }
 
What does it say?
 
I'm not translating it. I'm busy writing a regex. :P
 
2:26 PM
@Unihedron knows chinese?
No doubt he's good at Java. I got a feeling if you know Chinese you know everything
Beat me to it @Unihedron -_-
 
This has gone so off-topic :P
 
lmao
 
I learned a trick about 20 years ago, I understand EVERY written/spoken language, except Greek...
 
the trick to learn any language is very simple
i was talking to my african friend who happens to know Afrikaans
 
The pic above is Greek to me.
 
2:27 PM
so long a time i have not write some Markdown syntax script
 
and we were walking to a shop
And I picked it up quickly
the trick is to get some basic vocabulary and be able to form sentences
easy as pie :D
 
> Markdown is awesome
 
When I look at Greek all I see is Mathematical formulas
It's very weird
 
Hey. I like Mathematical formulas.
 
I'm going to attempt to code…I REALLY need to, I've been trying to write it for 3 hours, but I keep getting distracted...
 
2:29 PM
Go for it @Karl :)
 
good night. you guys
 
That's what happens when I get distracted I don't do a thing
 
Sleeps well...
 
then I tell my friends I've been coding the whole day when I was distracted 90% of the time
xD
 
2:30 PM
Night @DarkHorse
 
I'm autistic, with holes in my memory…
 
Night @Dark
 
I'm autistic with ADHD
I'm sure I got ADHD
I just don't want to go to get evaluated
brb time to smoke it's crazy this craving
 
I'm not ADHD, but I look it [according to a pro]
 
I want to be a programmer!!!
 
2:35 PM
You are :D
 
I'm not
I'm a student who wastes time on the internet.
 
@Karl Probably in the same situation
5 mins ago, by Unihedron
I'm a student who wastes time on the internet.
I cri eveitiem
:'(
If I didn't have to go to college I would have been a programming superstar
d
too bad
 
@Sabಠ_ಠ or so you thought
 
I love doing programming projects
 
No really, despite that I code a server, that only makes me a hacker, not a programmer. :P
 
2:42 PM
I don't like doing assignemnt
LAMP APACHE UNIX
Did that when I was 15 forgot a bit now
I like hacking my own code to make it work like a human
brb laundry time
 
what's wrong with it?
 
not clear
 
2:58 PM
dv'd, cv'd, added to monitor stack, and auto-commented
 
Nice :)
You waste too much time on internet :P
 
i'm still watching the real-time tab :)
 
You didn't tell me how are you a hacker and not a programmer
 
oh?
 
18 mins ago, by Unihedron
No really, despite that I code a server, that only makes me a hacker, not a programmer. :P
 
3:02 PM
Programmers are the people who code and create softwares, programs, and systems.
By that logic, scripters and server devs aren't really programmers, but eh.
 
The code that you write for a server, also creates a program, doesn't it ?
 
@Unihedron that's why we call them System Administrators/ Server Admins
 
@Sabಠ_ಠ haha I'm a server dev / hacker, that is :P
I don't really administrate servers though.
 
These guys normally get paid better than us programmers :3
I'm was a server dev but I got bored quickly
I could install LAMP apache centos :(
now I don't have a clue how to forgot all of them
-yum :'(
 
I built a stack-and-struct based script language as a school project. My teachers were amazed.
"Wow, you could build a compiler? You should skip school and go to work already.."
By hacking atom, I made an IDE for the script language as well, so there's that.
 
3:10 PM
when i was in my local uni for 3 months (now I'm abroad to my fav uni) I created a script (in PHP though) which would auto install the tables, create a config file and install a website package. My professor was like you're better than me
And then I made a Javascript error box that was extremely cool and my friends were like WOW fck WOW!
Then my prof came and told me, you can use JQuery for that.
 
hehe
 
I replied. I'll submit this to the library then. He told me and this is exactly word for word:
"You're better than me, how long have you been coding websites"
I was like:
umm 2-3 months (since we started )
 
@Ita the question is clarified with a clear problem statement now, so I'm retracting the CV in 10 mins, let me know if there's anything else
 
so I left the uni since I got my fav uni abroad, and inspired some friends :D they still love me there <3
You know that feeling when you inspire someone :D
I wanna be a professor now but just the thought of 10 years to get a PhD is like wtf I can be a millionaire by then :P
 
 
2 hours later…
5:29 PM
haha
M still thinking how to become one ;)
 
6:19 PM
I'm back!
 
Anybody miss me?
Notice I was gone?
 
Is 0x0 and 0x000000 the same thing?
@ItachiUchiha Still here?
 
6:46 PM
@Karl they're the same. But if you're encoding colors, it's usually better to have all the components visible. That's easier to read for those that know how to interpret them (0x0 might be immediately recognizable as black, but 0xf00 is much less obvious green)
0xSTUFF is just an integer in hexadecimal
(The number constant prefix you need to watch for is "0". That means octal. The design flaw was unfortunately copied verbatim from C)
 
In my code, it's 0x0, I'm thinking of making it 0x000000 for consistancy
It is for making setting colors.
 
 
2 hours later…
8:36 PM
Dead chat...
 
9:11 PM
Hey all! pings everyone
 
9:33 PM
Ping to you too!
How you @BenBeri
 
9:46 PM
ssup ?
 
9:58 PM
I'm OK. Just finished dinner
*finished making dinner
 
ahh
cool
 
Actually, no. It's still hot
 
10:37 PM
ahh
have it
 
It was good..
Hey, QUICK question...
Hi @AlexK
I have: Color regColors = new Color(shape.regColors);
 
to define it, without setting the values, I just make the ()'s empty, right?
 
yeah
 
Or, is it just new Color;
 
10:40 PM
Color regColors = new Color();
 
I hate when I cannot remember that stuff!
 
all objects are created using new keyword calling a constructor, which is a method, so ()
 
It's called invoking a constructor.
Constructors are methods that create a class, but the method is not part of the class itself. You call the constructor of Type with new Type() and properly put the arguments between the parenthesis.
 
Yeah. I still forgets. I didn't realizing that invoking a constructor was calling another method.
 
@Unihedron awake early?
 
10:51 PM
@ItachiUchiha head out soon
 
05:00 - 23:0023:00 - 00:00

« first day (1415 days earlier)      last day (3534 days later) »