« first day (846 days earlier)      last day (4078 days later) » 

12:15 AM
I'm reading one book, and i have problem with one sentence:
"When I inherit behavior by subclassing, that behavior is set statically at compile time"
How is that? i can override that behavior dynamically through polymorphisim.
 
hello
 
hiz @Nathvi
 
12:37 AM
Hello, Java!
@MooingDuck What are you doing here? =p
 
How would you put the copyright symbol in a string
 
@DemCodeLines what would it be used for?
 
@DemCodeLines How are you displaying the String?
 
String COPYRIGHT = "\u00a9"";
 
@Code-Guru what do you mean how am I displaying the string?
 
12:49 AM
@CCInc If the String is placed in a JLabel, you can use HTML: "&copy"
 
@CCInc Its for an "About" window
 
@DemCodeLines I mean are you using System.out.println() or a JLabel or what?
 
public static void infoBox(String infoMessage, String location) {
		JOptionPane.showMessageDialog(null, infoMessage, location, JOptionPane.INFORMATION_MESSAGE);
	}
infoMessage contains the copyright symbol
 
@DemCodeLines You should be able to use "©" then
 
public static final String COPYRIGHT = "\u00a9"; did the trick
 
12:54 AM
@DemCodeLines Oh, you have to add HTML tags for my solution to work: "<html>&copy</html>"
 
oh hehe
 
1:09 AM
I get cannot find symbol on this line: ArrayList<String>myList = new ArrayList<String>();
I am clueless
 
wtf
arraylist?
 
in c# arraylist is outdated, I would presume the same
 
1:29 AM
nah, in java its not
 
@CCInc In Java, Vector is the antiquated class that has been replaced by ArrayList.
 
oh
There is no List?
 
@CCInc What do you use in C# instead of ArrayList?
 
List<T>
 
@CCInc List is an interface.
 
1:31 AM
Both an interface and an object...
 
@DemCodeLines What is the exact error message?
 
List<string> list = new List<string>() { "item"};
 
@CCInc In Java, you cannot do "new List<String>()` since List is an interface.
 
OH in java you mean
 
List<String> list = new ArrayList(); is valid.
 
1:32 AM
yes
I suppose ArrayList is the implimintation of List
 
@CCInc right
@CCInc on both counts
 
I got it to work
I was missing import java.util.*;
 
do you not have an IDE that tells you that?
sigh java
 
@DemCodeLines Or better yet import java.util.ArrayList;. It's preferred that you import only the classes which you actually use.
 
@CCInc It doesn't tell me that I was missing that, I had to figure it out.
@Code-Guru what's the advantage in that?
 
1:44 AM
7 mins ago, by CC Inc
sigh java
 
@DemCodeLines The advantage is that the compiler will give you an error when you accidentally type a class name that hasn't been imported yet.
For example, if you import java.util.Collection, and accidentally type Collections when you mean Collection the compiler will tell you there is a problem. But if you import java.util.*, the compiler can't help you.
well...the compiler might give an different error somewhere else so that the real problem isn't as clear
 
So I used to do Java until a year ago and then stopped it, and now I have started it again, and have forgotten so much.
I have an arraylist of a custom type, "Song." The song constructor itself demands String Name, String artist.
Now, I am running a for loop against the arraylist, and I am not sure how to get the values.
 
oh
for(int i = 0; i < list.count; i++)
list[i].VALUE;
 
Hello, World!
 
2:23 AM
@DemCodeLines The values of what? The name and artist? Are you doing this inside your Song class or another class?
@CCInc Since it's an ArrayList, @DemCodeLines can't use array syntax like that...
@Doorknob Howdy! Tabbing around, so sorry for the delay.
 
nvm, I got it :D
silly mistakes.
:)
 
2:50 AM
@Code-Guru :o Omg
@Code-Guru you are alive :o
 
hey @Code :)
 
@Doorknob :o
 
hi @Wa !
 
I aint no Wa
xD
 
:P
hi @Was
 
2:52 AM
@Doorknob please... finish the llama game D:
 
I'm working on other stuff right now :O
oh noes @Code disappeared
 
:(
but i want to play more levels
 
ok I promise I will work on it over the weekend :D
 
@Washu of course I'm still alive! I'd say the same about you
 
that would be great :D
 
2:53 AM
@Doorknob I'm back now ;-)
 
@Code-Guru i havent seen you in days
 
ohai
 
@Washu Okay...I haven't logged on for like two or three days.
@Washu @Doorknob So what's new with you?
 
not much
 
Waiting for my valentines day date
meanwhile watching X Men
 
2:56 AM
@Washu At least you have one =p
 
@Code-Guru Wait you dont?
That is hard to believe
 
@Washu Thanks for the vote of confidence ;-)
 
@Code-Guru but dude you are awesome and fun how not?
 
meh, must go to sleep now
bye all
 
@Doorknob xD ok cya
 
3:01 AM
@Washu online maybe...and to other nerds. IRL, I'm a bit shy.
@Doorknob gnite!
@Washu If I may ask, you are a guy, right?
 
@Code-Guru check profile pic
 
@Washu Which one is you?
 
the crazier one
 
@Washu If you remember, I had a bikini chick on my profile at one time...so pics don't mean a whole lot =p
 
xD
Indeed
But is rather easy to go out with a girl @Code-Guru
The troubles is when you try to be with her in a relationship
 
3:04 AM
maybe I'm too picky
 
Maybe
 
and right now most of my energy is spent on other pursuits
 
Videogames :D?
 
not as much as I'd like...working too much to spend a lot of time gaming
coding has a slightly higher priority than computer games when I'm not at work
 
Hm.. i wish i could be like that...
 
3:06 AM
how so?
 
I mean being more responsable and fan code
when i'm at my house i hardly code
 
well, I have a project that I'm working on. Sometimes I'm not motivated to work on it or am just stuck.
When that happens, I don't code as much.
 
How old are you?
 
Old enough ;-)
That kind of shows the ups and downs of my coding time over the last few months
 
wow that's a lot
 
3:15 AM
Of course, a lack of commits doesn't necessarily mean I'm not coding. Just that I'm not making enough progress to add a more-or-less permanent change to my code base.
@Washu a lot of ups and downs?
 
yeah i know what do you mean
@Code-Guru a lot of commits
 
@Washu heh, perhaps
Some of the commits are huge. I'm trying to do more small commits now, though.
 
what are you developing?
 
Still getting a feel for how I want to use version control.
It's a baseball card database. Do you have an Android phone?
 
Yep
and @Code-Guru do you like X Men?
 
3:18 AM
@Washu Yup! Have you heard that a new Wolverine movie is coming out?
 
@Code-Guru yeah...! i'm wacthing right now the episode when they revive Omega Red
Freaking awesome
 
I haven't watched much of the cartoons. I really like the movies, though.
 
You must check the Serie
the first X Men serie you havent seen it when you were a kid?
 
I watched some XMen cartoons when I was younger. I don't really remember much, though.
 
X-Men, also known as X-Men: The Animated Series, is an American animated television series which debuted on October 31, 1992, in the United States on the Fox Network as part of its Fox Kids Saturday morning lineup. X-Men was Marvel Comics' second attempt at an animated X-Men TV series after the pilot X-Men: Pryde of the X-Men was not picked up — though it was broadcast multiple times between 1989 and 1992. Background X-Men was originally to premiere over the Labor Day weekend in September; however, due to production delays, it was pushed to the end of October. The "Night of the Sentinel...
@Code-Guru have you seen this one en.wikipedia.org/wiki/X-Men_(TV_series)?
 
3:33 AM
@Washu nope
 
:o
thats the best of them all xD
 
@Washu Oh...I thought you meant if I read that wikipedia article. I'm pretty sure that's the cartoon I used to watch. I didn't see many of them, though.
I was in high school when that came out ;-)
 
ohhh
that came out when i was 1 years old xd
 
heh
sweet! I fixed one error...now to track down the next one...
 
You need to change the UI of the app
i like the functionality and the menu
but the UI needs more work
 
3:37 AM
Did you DL it?
 
more baseball like
 
If you have any suggestions, I'm all ears ;-)
In fact, feel free to post on the project forums: sourceforge.net/p/bbct/discussion
I know the UI is very plain. I'm a coder, so I mostly work on the functionality.
 
oh ok
 
woohoo! Two new downloads today. One of those is you, I assume.
I hope to have an update out this weekend...
 
Hehe
 
3:44 AM
In JScrollPane, how would I select the first item?
 
@DemCodeLines I don't understand the question.
 
@Washu @Code-Guru Hola!
 
@Appu heyyy how was your valentines day?
 
@Appu Como estas?
 
@Washu Not good. Break up. So no celebrations.
 
3:47 AM
@DemCodeLines are you adding anything to the scrollpane?
 
@Code-Guru Sto bene. Como estas tu?
 
@Appu ohh break ups.... i;m going through that right now
 
I know.
:D
 
@Appu Bien. Estas practicando hablar espanol mucho dias. Cada dia, comia almuerzo a la restaurante mexicano.
y hablar con los empleados alla
 
@Code-Guru I don't know much than that. :(
 
3:49 AM
xD
 
@Appu oh...I had you confused for someone else then lol
 
Can we speak English? At least until I learn spanish
 
lol
sure thing
My spanish is pretty bad. When you said "hola" I thought you were one of the spanish speakers
 
Nope.
Washu taught me that words.
That's it. I don't know much than that. Neil is teaching Italian ;)
@Code-Guru I believe you work on Android, don't you?
 
I'm spanish speaker
 
3:52 AM
Yeah. I am learning Spanish from you and Italian from him.
 
Well going to take a shower
Date is coming
 
I am still stuck at it :(
 
@Appu at spanish or dates?
 
My issue with Endless adapter.
 
ohhh
 
4:09 AM
@Washu I thought to explain him about my issue, but he is offline.
 
@Appu yeah.. he lives in the USA is already like midnight there :(
@Appu why dont you join Android room and ask there? o.o
 
Android room is only for casual chat.
In Other android rooms I checked with everyone, but no one knows about it.
 
I know none androids experts...
this weekend i may go for a code reunion
i see if i can get you someone
 
Okay. Thank you. What else?
 
Get a good laptop to learn Linux :P
 
4:21 AM
Sure. But it may take time as I told you before.
 
hehe ok :P
@Appu well friend is time to leave, talk to you in the morning have a nice work day
 
@Washu Cya. Take care.
 
 
6 hours later…
10:09 AM
Can I insert items in a TreeSet or a TreeMap and then change the properties of objects in the TreeSet or TreeMap that would modify the ordering?
Anybody know?
 
 
4 hours later…
1:48 PM
What a crazy night...
 
2:01 PM
@Neil i dont think that there is a propertie that does that
 
2:21 PM
@Neil How are you?
 
@Washu Good, you?
 
@Neil Sleepy... really sleepy :(
 
@Washu No, I mean, if I had an object which contained a date
And I used that date to position it in a TreeSet or TreeMap
And after it was inserted into the list, I modified that date.. would the ordering change also?
 
3:18 PM
hi
 
@Michael Hey
 
3:33 PM
@Neil how are you?
@Neil That's a good question. I don't think it would modify the ordering.
You'd have to remove the object, modify it, then re-insert it.
 
3:47 PM
For TreeMap, you can't modify the key, so it doesn't matter...
 
@Michael True
That stinks though
I have list of events on a calendar
And I want to be able to access all the events of a particular day in an efficient manner, because there may be many such events
So I was wanting to keep track of it with a TreeSet or TreeMap
But if I have to recreate the list everytime an event changes, I don't think it's so advantageous anymore
 
How is the object defined? Is it TreeSet<Event>?
I don't think removing and then re-inserting would be that expensive.
 
4:19 PM
@Michael Well, surely it's more expensive than doing one iteration of a large list
Recreating means iterating a large list and ordering it as well
I'm probably better off just iterating once
 
@Neil Depends on how TreeSet does the sorting
I think you should do speed tests
 
4:35 PM
@Michael I actually did a quick test
It isn't enough to recreate the TreeSet from an existing TreeSet because it doesn't reorder it
 
I never said to re-create the TreeSet, just remove the object and re-add it.
 
I inserted object classes containing values 0 through 9, then modified the object containing value 5 to 11, and it did not change the order
 
ah ok
 
@Michael Oh, yeah.. that makes a lot of sense actually
 
i love your bio btw lol
 
4:43 PM
@Michael Oh, thanks :)
 
 
2 hours later…
6:19 PM
@spoulson i'm busy, sorry
 
 
2 hours later…
8:08 PM
So quiet..........
 
yep
 
so bored :/
 
I'm having great fun with js...
 
I'm breaking my head doing my DB design
 
I'm trying to make a kind of image slideshow, so you click the buttons at the sides and all the images slide in that direction, with one central image in the middle. :(
 
8:23 PM
i'm doing GWT stuff
@Adude11 adude nooooo dont be sad
 
 
1 hour later…
9:50 PM
@Michael halp :(
 
problem?
 
washu sorry, i gtg
@Washu is it quick?
bye
 
10:25 PM
hey
I was wondering if someone could help me figure out this funky code
 
hi
i'll try, there's only me and you in here
 
k
I'm writing a dot plotting program using two for loops, there's one case that messes up, otherwise, it's perfect
using inputs of:
x1 = 3:
y1 = 5:
x2 = 4:
y2 = 5:
it dosen't output the colon, and the x coordinates get subtracted by one :(
 
I think you're missing a set of brackets: line 50
((column_number != x1) && (row_number != y1))
The outer brackets
 
I'll try that :D
same thing :(
 
What's the program supposed to actually do?
Work out the intercept between two points then draw that out?
 
10:36 PM
you type in paramaters for two points, it gives you the equation of the line
no, just the two points
and this one case is giving me grief
 
Be careful. If you type in the same point twice you end up dividing by 0.
 
I know
I'm writing a loop for that
 
You just need to test if the two x's are the same
 
I got it
I just needed to change the if to else
:D
 
Ok, why are you making the first column a colon, you should have printed that out before hand
bye
 
10:45 PM
bye
@Adude11, I did that, because that's the way the assignment was
the "0" column could is filled with :, and if there is a point there, you replace it with a *
hello @Washu
 
hi
 
11:14 PM
was wondering if anybody could help me write the last part of this code ;p
if you run and compile this, it works fine, except the last part of the code, where the row is all "-". I'm not sure how to test condition to print - or *
 

« first day (846 days earlier)      last day (4078 days later) »