« first day (1938 days earlier)      last day (3011 days later) » 

1:16 AM
hi! just wondering how to split a message in a JTextPane (Java Swing) to a new line when it's too long
 
 
2 hours later…
3:32 AM
Lately, I have started using eclipse after a long stretch with IntelliJ and every time I start my program with changes I figure out that the changes are not picked up. Why? The reason is I forget to press CTRL + S after making my changes. Duh!!!
@Mikhail catch block?
 
 
4 hours later…
7:58 AM
@ItachiUchiha it is genius
 
Dev
8:49 AM
@ItachiUchiha Hi
 
9:48 AM
m.o.r.n.
 
 
4 hours later…
1:47 PM
@wonderb0lt haha, thanks. I did something similar, but I used mieliestronk.com/wordlist.html as my input.
Found 606 words
Thank you though!
 
2:03 PM
It's Fryyyday Fryyyday
 
2:21 PM
Gotta do a hop on Fryyyyday
 
2:46 PM
for those who may
0
Q: Swing component is blinking paining BufferedImage

some FolkThere is this Jframe holding Jcomponent that being drawn 30 times a second. The problem appears to be with flashing or blinking effect when drawing the BufferedImage like it gets drawn on each other un-accordingly.. Also, There is a second problem wheres the Window constructor is excecuting real...

 
 
3 hours later…
fge
6:02 PM
sigh
 
6:23 PM
@fge ?
 
fart
 
fge
The vendor's API fails to give any useful error messages on exceptions
I am left totally in the dark
 
wow , first time just entered into chat room :D , so many geeks
 
fge
Define "geek"
 
6:28 PM
ops my bad
 
Any networking gurus in here by chance?
 
fge
Define "guru" :p
I know quite a few things about networking, so try and ask
 
Okay
I have 2 laptops
one has a Verizon aircard
the other has no internet access
the two are connect via a switch (not a router)
I want the second computer to be able to use the first computer's internet connection
 
fge
Switch or router doesn't matter much in that case; but then again I guess you'll misdefine "router"
 
probably
so
I get the aircard connected
 
fge
6:31 PM
To what?
 
both laptops are on the switch
to the internet
So the air card is plugged in and connected to the internet
on the first laptop
 
fge
OK, then what you need to do is assign an IP address on the same IP subnet for both laptops on the switch
And then you need two things
 
k
 
fge
1. tell the first laptop that it can forward connections
2. configure the second laptop so that it know that its default route is the first laptop, and also configure the DNS servers
The easiest way to do this is to install a DHCP server on the first laptop
(and configure it appropriately)
 
Lry
rtt
damn it
**err
let's assume I can't install a DHCP server on the first laptop
 
6:33 PM
you can make proxy server in you first laptop that have Internet access and then you can try to access through that proxy
 
fge
@PrappoPrince that will only work for specific protocols; worse, you'll need to configure the necessary applications individually
No, it's better solved at the network level
@DRich then you need to configure the IP stack manually on both
 
@fge "Configure the IP stack manually"
 
fge
For instance: first laptop has IP address 10.23.2.1 on the "switch network"; second has IP address 10.23.2.2
 
@fge im not sure but it probably works
 
fge
Once this is done you need to tell laptop 2 that its default route is 10.23.2.1
@PrappoPrince I can tell you -- it won't
Or in a very limited, therefore mostly useless, fashion
In addition you need to tell laptop 1, if it doesn't do so already, that it allows IP forwarding
 
6:36 PM
okay, so on laptop 1 I set it up to forward connections
laptop 1's IP address is set
I tell laptop 2, go to 1's IP address before going anywhere else
 
fge
No; tell it to go through that IP for any address which it cannot reach by itself
Also, don't forget IP masquerading
Unfortunately, I only know how to do that under Linux, so if you use anything else you're on your own
 
IP Masquerading... of course
Alright, cool- you've given me quite a bit to work with
thanks @fge
 
fge
On laptop 1, provided that your interface to go on the net is foo, masquerading is a single command line: iptables -t nat -A OUTPUT -o foo -j MASQUERADE
On laptop 2, once the interface is probably configured: ip route add default via 10.23.2.1
 
 
4 hours later…
10:10 PM
Hi guys :-)
Regarding the Observer pattern, the observer object normally agregates the observers (it keeps a list of references), however, the most popular diagram (actually, there are plenty in google xD) doesnt show that aggregation relationship; which confuses me... What am I missing ?
Apparently that full dark arrow is for "Synchronous messages", but what about aggregation ?
Oh, btw that diagram comes from Head First Design Patterns
I mean like this diagram:
 
11:16 PM
@Enissay It may just be a matter of preference.
If I understand the pattern correctly, Swing aggregates observers, while JavaFX does not. Right @Itachi?
For instance, addActionListener vs setOnAction.
 
11:44 PM
Hmmm, I see...
 

« first day (1938 days earlier)      last day (3011 days later) »