« first day (1574 days earlier)      last day (3377 days later) » 

11:00 PM
theres probably something in there that tells you the current temp and barometric pressure and relative humidity and maybe even todays stock market picks
 
bad char in struct format
 
lol
of coarse
 
import socket, struct
# the public network interface
HOST = socket.gethostbyname(socket.gethostname())
# create a raw socket and bind it to the public interface
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)

while 1:
s.bind(("192.168.1.100", 63578))
# Include IP headers
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)
# receive all packages
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)
# receive a package
packet, address = s.recvfrom(65565)
struct.unpack_from('bbbbbbUUUUUQQQQllllL',packet)
 
you have to know the structure of the message
 
Ah that makes sense
 
11:01 PM
and look at the documentation for struct
and then properly unpack the message
 
b'E\x00\x00o|\x05\x00\x00@\x11\x00\x00\xc0\xa8\x01d2\x16\xcc\xf2\xf8Z\x13\xc0\x0‌​0[\xc1\x81[\x00\x00\x01\x00\x05\x82\x871\xa6\x80d\x07\x01\x00\x04\x00\x00\x00G\x0‌​0\x00\x00\x00\x00\x00\x00\x8c\xf3\x02\xfd\x00\x02\xf5h\x00\x02b\x00h\x00\x02b\x00‌​i\x00\r\xbb\xa1b\x02i90\xa4nb\x01z\x00\x07bdbdk\r\x10k"\\k\x04;k\x04\x11k\\\x95\xf4b‌​\xc9'
 
that was just a garbage string of letters
 
Okay let me check
 
@StaticCast if you press Ctrl+K after writing a message, it will format the whole message as a code block. That will help immensely in understanding your code blocks here :)
 
what exactly are you connecting to?
 
11:02 PM
Ah thanks
A server
umm udp client
 
Note that this
and this
must be separate messages
 
it looks more like you are writing the server and a client is connecting to you
 
Nope
port listener
waiting for chat messages
 
port listener == server
so those chat messages are encoded some how
or thats header data
of some kind
 
Well I'm trying to incorporate a loop
In wireshark they are plaintext with a little bit of junk
 
11:05 PM
but the bottom line is that you need to know what that message means
 
@davidism tohster seems to be thinking that because the post was closed as too broad, you too voted too broad, which ofc was not the case.
 
Yeah, I've lost interest, that's probably the last response I'll give him.
 
Okay I've got it
:D
How do I pause a script?
 
you don't?
 
... which would warrant another meta post
 
11:06 PM
I want to pause it because infinite while loop
lol
 
control-Z in linux
 
dd nul of /
 
control-c to kill
 
[or at least output data to file]
okay thanks
 
that works to pause scripts :P maybe one of you linux guys can correct my bad linux there
 
11:06 PM
I'll tell you how it goes
 
dd if=/dev/nul of=/
 
@JoranBeasley sudo rm -rf /
 
that maybe
 
BOOYAH
 
doesnt work, of= needs a file
 
11:07 PM
[CT][Mr.]nyero_: test
Found my chat message!
 
try sudo dd if=/dev/null of=/dev/hda ;)
 
;p
dont really
 
Here is the code, if you guys want to know what worked:
 
DSM
Umm, guys, earlier someone tried struct.unpack_from('bbbbbbUUUUUQQQQllllL',packet). Please don't recommend destructive commands in such a context..
 
11:08 PM
1 message moved to Trash
 
yeah I realized that
 
good point
:D
 
lol really david
 
sorry :d
 
use dpaste.com to share code
 
11:08 PM
thats why i said dont really :P
 
okay I do 5 small code blocks XD
[just kidding]
 
sudo dd if=/dev/zero of=/dev/kmem shouldn't be destructive more than destroy all your unsaved work
 
DSM
"A recursive function returns a none type although the computed type is tuple". Is this the One True Recursive None bug? Let's find out, and click..
 
What it feels like to solve a problem:
 
DSM
11:10 PM
.. and yep, it is.
 
close tab close tab close tab close tab close tab close tab close tab YESSSSSS!
 
Hey guys, I am looking over the asyncio library. In particular looking at the Future object. The future object has the add_done_callback(fn)(docs.python.org/3/library/…), but I am not able to find an error callback. What gives?
 
@JoranBeasley actually dd if=/dev/null is safe too, bc it would copy 0 bytes.
 
yeah still starting to walk a dangerous path in an advice channel
 
Okay, so I'm apparently the only one who doesn't know what struct.unpack_from('bbbbbbUUUUUQQQQllllL',packet) would do?
 
11:12 PM
@jakebird451 there is no "error callback"
what is done is done
 
I agree with @DSM we probably shouldnt do that :P its my fault i started it :P
its so tempting some times though
 
@AnttiHaapala Why?
 
@jakebird451 see the "set_exception" documentation there
 
@DSM I'm missing it, what's destructive about it?
 
the future is done with future.exception() giving the exception in the callback
 
11:14 PM
we were playing with formatish commands
 
DSM
@davidism: I was getting at the fact that someone had tried an obvious toy example command, so posting delete-all-the-files commands might be a little dangerous if someone didn't get the joke..
 
reading from /dev/null on linux reads 0 bytes
 
ah, I thought you were referring to the struct example :P
 
I still have the 1 command there, anyone care to move it to trash? :D
2
anw, is there a meta post on the "close reason should list all the users cving separately"
 
DSM
Yes. I remember reading and upvoting it, because I was annoyed at the behaviour.
 
11:19 PM
7
Q: Multiple close reasons no longer shown

PaulI voted to close this question as "unclear what you are asking". The display showed 4 existing close votes for "primarily opinion based". The notice posted to the user was then for the majority message "primarily opinion based", and indicates that I voted with the majority, which is incorrect. ...

here
 
rbrb
 
DSM
Pretty sure I'm thinking of an older one, probably one of the ones in the links there.
 
163
Q: Distinguish close votes by reason

Mark ElliotEven though a question may be closed by receiving 5 close votes, the votes do not necessarily need to agree. I think this is a good behavior, but recently I voted to close a question for being an exact duplicate (which it was) and found the question was closed as "not a real question". This is ...

 
DSM
Yeah, that looks like it. Sometimes I don't understand why the Powers that Be make the decisions they do.
 
What do we think about tag:restrict. Doesn't seem useful to me.
hmmm how do I link inside a tag?
 
DSM
11:27 PM
Okay, time to give up on a frustratingly unproductive day.
Rhubarb for all!
 
rbrb @DSM
 
@AdamSmith just [tag:restrict] becomes a link
 
really? Argh.
 
anw that should be totally burninated
 
ummph... feel like I've got a hangover without actually having drunk anything but tea
 
11:29 PM
cbg @JonClements
 
cbg cbg,
@JonClements you can go train your modskills at meta.stackoverflow.com/questions/285545/…
though if you have hangover, wouldn't recommend
 
I'm happy with my results
This is what I've found
\x04Bomb\xfei [bomb planted]
TerWinb [terrorists win]
CTerWinb [counter-terrorists win]
Now I can make a program that will say things like [SCORE: 5-3]
And look for strings such as "!ready"
Thanks everyone! ;)
 
hmmmm???
 
11:33 PM
oh... a hangover I can manage... just not sure feeling like I'm having one when I haven't drunk anything alcoholic is good
 
I was trying to make a program that could host tournament style games
[as the game doesn't have any sort of good system for doing so]
So I would monitor the chat
too look for player commands
 
ahh :D
 
And if someone says "!score" it would print score and such
I'll get to the macro part later though, time to finish my work elsewhere. ;)
Thanks, Antii, for teaching more than I have ever known about Python XD
 
so you are reading promiscuous socket?
 
Yeah
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)
This is how you do it ;)
 
11:35 PM
so beware that
 
Beware what. O.o
 
the messages can be split in 2 :D
 
Ah :D
 
there's a joke in there somewhere about using protection when reading from promiscuous sockets, but I cba to format it well.
 
Adam and his love of cba
Cya
 
11:36 PM
:D
 
oh terrific... just vomited...
 
@JonClements Somebody poisoned the puppy chow!
 
Or was it that meta thread?
Never a good idea to consume spoiled meta
 
strangely though, feeling better now
 
Got those evil spirits out, no doubt.
 
11:39 PM
@Kevin's list.append(Birdman) # I gave it a 6.7/10, but I'm pretty curious about your interpretation
 
^ I watched that trailer just the other day. I'd like to see it. Looks entertaining.
Though severely lacking in Phil Ken Sebben.
 
do yourself a favor, and don't watch trailers ;)
just the movies
 
anyway... glad to have provided valuable info. to chat :p
 
I have zero interest in seeing birdman
I do want to see jupiter ascending however
 
@PeterVaro If you're telling me it doesn't lack Phil Ken Sebben, I must see it right now
 
11:41 PM
and I also wanna see youtube.com/watch?v=nh23-rQUi5U
 
local newspaper on jupiter ascending was basically "wachowskis, wtf?"
 
@AirThomas I think because of the trailer, you have false expectations about that movie
 
TurboKid
 
@PeterVaro If you mean that I expect it is a superhero movie, then no, I was not fooled
 
There should be an auto-prompt to edit your question title if it matches ^Can you.*$
 
11:44 PM
well, tbh I think I kinda understood the movie and the intention behind it => however it looks like from the reviews and critics, that most of the people do not, even if they were not prepared to watch a superhero movie
 
The answer to those questions are either "Yes, but it's too broad," "No, for some trivial reason" or "Yes, but without knowing the specifics of your question I can't tell you how."
 
even better is "Can I"
 
my only problem was, that it had so much unnecessary details in it (if I understood the main concept)
 
"I do not know what you can"
 
unlike "Under The Skin" or "Enemy"
which both were way harder to accept and understand
but had a way stronger and more focused meanings/messages
without the unnecessary and misguided details
@AnttiHaapala LOL
 
11:47 PM
@PeterVaro I watched Mirror Mask the other day
 
@JonClements this one ?
 
hows imitation game btw?
 
@JonClements umm.. " Adventure | Drama | Family".. was it good?
@AnttiHaapala it is on my watchlist
btw, some totally different genre: I watched Big Hero 6 yesterday, and it was awesome (8.5/10 from me)
 
@PeterVaro ummm... it was errr.... weird.... I'm 50/50 on recommending it though
 
11:50 PM
(not because of the "original" factor of the story, but because of the small details, the animations, and the pretty nice visions of the future (nice sci-fi elements))
@JonClements well.. in that case if you don't mind, I won't put it on my watchlist then :)
 
I found Big Hero 6 kind of disappointing
 
how's so?
 
But, I seem to have that reaction to many animated "family" moves these days
Some of them translate better to adult audience than others
The plot was just boring
And the depiction of AI behavior left me nonplussed
Ha ha, the robot is drunk, because its battery is low
Funny stuff for kids I guess.
 
try not to watch movies as a real developer :)
 
And the one scene where they're flying around the bay, was very How To Train Your Robot
 
11:53 PM
what will you do when you watch a film about a hacker like the guy in Swordfish?
cracking systems on 9 monitors with a 3D rotating cube?
:D:D:D:D
@AirThomas LOL
 
@PeterVaro I will jam with the console cowboys in cyberspace, obviously
 
bah... went to watch Swordfish in the cinema....
 
actually Swordfish's OST was (and probably still is) kind of fun ;)
 
I try to suspend disbelief, but sometimes I am more successful than others. I think part of my issue was I didn't catch on until late in the movie the degree to which it was not going to take itself seriously
 
I used to listen to it a lot -- imagined that I'm a hacker, with Halle Berry on my side ;)
 
11:55 PM
bought it on DVD :(
ONLY because I'd just bought a new 7.1 surround system
 
and that ball-bearing scene was quite nice for noise
that and the helicopter going into the side of the building in the original Matrix
 
@JonClements ahhh...
 
actually broke windows on that one sighs
 
anywho.. it is time to call it a night, at least for me.. (it is 1:00 at here)
rhubarb(all)
 

« first day (1574 days earlier)      last day (3377 days later) »