« first day (3889 days earlier)      last day (1056 days later) » 

12:00 AM
A university faculty is 500 egotists with a common parking problem. (source)
 
12:20 AM
picks nose
 
 
6 hours later…
6:20 AM
reads a book
 
 
2 hours later…
8:02 AM
Hello
I have a class named SocketThread that handles connections, then I have a class ListenerThread

https://pastebin.com/jcPYUPgr
In class StocktakingServer I create ListenerThread and start a loop

https://pastebin.com/9FkZbktt
After "q" I get exception. SocketThread waits for connection. Should I terminate it somehow? Or don't care?
 
 
2 hours later…
10:12 AM
163
A: How can I interrupt a ServerSocket accept() method?

Simon GroenewoltYou can call close() from another thread, and the accept() call will throw a SocketException.

also, dont extend thread
instead extend runnable and pass it to a normal thread
 
 
2 hours later…
11:51 AM
thank you
"You can call close() from another thread, and the accept() call will throw a SocketException."
This is what I do
Last time I pasted without close()
And I should not worry about thrown exception?
 
you catch the exception as expected
try
{
	while (StocktakingServer.FLAG_LISTENING)
	{
		new SocketThread(serverSocket.accept()).start();
	}
}
catch (SocketException ex)
{
	// stackoverflow.com/questions/2983835/…
	// expected when the serverSocket closes
}
catch (IOException ex)
{
	ex.printStackTrace();
}
 
12:07 PM
In your face, SocketException monster!
ty
 
12:30 PM
np
 
12:43 PM
posted on June 16, 2021

archive - contact - sexy exciting merchandise - search - about ← previousJune 16th, 2021nextJune 16th, 2021: Just a fun fact for all the non-murderers in my audience, of which I can only assume is a few?? In fact I'm gonna assume it's everyone! NOBODY DO ANY MURDERS, IT'S THE NEW RULE OF READING MY COMIC– Ryan

 
so since when does windows recognize the "ls" command? :D
even ls -l works :D
 
Zoe
Do you have mingw or cygwin installed?
 
not at all
nothing special installed
 
Zoe
git bash?
 
yes that I have installed but it is not running
 
Zoe
12:49 PM
Did you add it to the PATH?
try which ls
 
results in: /usr/bin/ls
 
Zoe
There you go
You have git bash's bin in your PATH
 
hmm not really
it is Anaconda
 
Zoe
Close enough
 
X:\Anaconda3\Library\usr\bin
:P
 
Zoe
12:52 PM
^^"
 
I almost thought that Microsoft wanted it to make more comfortable for unix users :D
 
Zoe
Speaking of Microsoft...
 
1:14 PM
Big big changes coming. The taskbar buttons will be...drum roll...centered. -_-
 
Zoe
I'm looking forward to the day where I don't need to use windows xd
 
 
3 hours later…
4:38 PM
wohoo! I finally managed to run a simulation at 5.2ghz on all 8 physical cores without crashing! Undervoltage finally did the trick!! :D
85° temperature is a litte heavy though which might be ok on an air cooled system
 
4:55 PM
soooooo satisfying :D
the cooler though is a beast
 
5:12 PM
@Michael which fcks everything up... I imagine myself and I think I will swear a lot due to fast mouse moving to the bottom left and then there is nothing happening
they should move the time into the center and leave the windows button on the left
or just simply keep everything as is and just simply move the application tabs to the center
 
 
6 hours later…
11:14 PM
solves P vs NP
 

« first day (3889 days earlier)      last day (1056 days later) »