« first day (2026 days earlier)      last day (2920 days later) » 

7:03 PM
ah, getoutput is what I want now anyways
 
DSM
See? You're making excellent time. :-)
 
now to figure out why a list comparison in a unit test is failing :o
hrm a list is returning backwards now
I think most of my problems are going to be subprocess related...
 
If you are unittesting why not mock subprocess
 
@idjaw I have it mocked there. but my actual app calls a few subprocess calls too, which appear to either have been broken-but-not-buggy before or changed in python3
 
Ah I see.
 
7:12 PM
I guess I had a system issue that was causing the problem in the first place (!)
weird timing
 
airport lounge cbg
 
ahhhh printing anything to debug results in tons of b' in front of the strings ahhh
 
That's normal. Embrace the b.
 
@AnttiHaapala where you off to
 
user559633
someplace warmer, i'd bet
 
7:16 PM
@tristan Hey, he could be headed to space.
 
Some parts of space are warm. Like the inside of a star.
 
@idjaw home :D
 
@Kevin it's so ugly! my beautiful logs!
 
left in the morning, came to helsinki to do some embedded systems, now hopping back
@tristan so that'd be wrong ;)
Finland. Be very, very afraid:
 
> Jani learned the basics of his security skills on YouTube
> Just imagine the chaos if a hacker wrote a script to delete all of Justin Bieber’s comments.
 
7:24 PM
at the age of 10 I had just realized how "letters can be numbers" :D
 
chaos? sigh. Bliss!
@AnttiHaapala stuff like that or even SE in general makes me feel like I wasted way too much of my youth, heh
and even college XD
ooooh this 2to3 is where any bad habits I have from logging strings are going to make my life miserable
 
@AnttiHaapala that's embedded systems for you, you can't just pull it out and have it mailed to you, amirite?
 
Just stay with Python 2 forever. Lie down in the nice warm snow and go to sleep. Only for a minute...
 
@AndrasDeak I could program it via teamviewer and ssh
but it isn't as handy
 
7:30 PM
the device costs 5000 €
for the price of one device I can fly 50 times there :p
 
@AnttiHaapala Also, that story makes me sad. Our 10-year-olds are being encouraged to go play soccer football
 
I like flying :D
 
@AnttiHaapala all's well, then:D
 
this is a good excuse to drink free beer :d
 
lol
 
user559633
7:38 PM
 
why is this throwing a list conversion typeerror?
> stdout = str(container_logs['stdout'])
logger.debug('\n' + stdout.splitlines())
> TypeError: Can't convert 'list' object to str implicitly
 
splitlines() is a list?
'\n' is a string?
string+list = no-no?
 
oh
 
'\n'.join(stdout.splitlines()) or something?
 
user559633
Because you're making a TypeError? Because the reason the exception tells you?
 
7:39 PM
i think I was reading that backwards
 
user559633
:D
 
If you're still working on porting from 2 to 3, I find it unusual if this is the first time you've ever seen that error, because you can't add a string to a list in either version.
 
this worked before:
> logger.debug('\n' + str(container_logs['stdout']))
 
This may indicate that this code path never executed in 2, but it is executing in 3. That might be bad.
 
nah it definitely executed before, but I think it was hacky in how I was generating the visual \n
 
7:42 PM
@enderland for logging, use .format().
 
stackoverflow.com/q/37012670/400617 typo, didn't commit change, two questions, second is a dupe
 
@davidism and hardly mcve
 
that too
 
-> goes get more beer
 
Is that the airport of Western Welfare?
where beer flows from the walls and shit?:P
 
7:47 PM
beer is in tap
don't know about shit
 
I see, I see.
 
@AndrasDeak did you hear about this chinese guy who found this loophole :D
 
@AnttiHaapala I'm trying to print a bunch of debug info back in multiline (comes with lots of \n as it's a response from another command), which is annoying since apparently python3 doesn't autosplit it when put into the logger :(
 
No? Which loophole?:D
 
@AndrasDeak he bought one first class ticket to a chinese airline.
every single day he'd go to the airport, show his ticket, go to the lounge
then eat there...
 
7:51 PM
lol
 
then get out of the lounge, then change the ticket for the day after.
and repeat.
after a year the staff started to take notice of this guy, approached him...
 
lol:D
I only know airport lounges from the fact that there are signs pointing to them.
 
asked if he's ever going to use the ticket and that they didn't really approve his actions
so the guy went and cancelled his ticket for full refund, and hasn't been seen ever after :D
 
lol:D
I'm surprised you can delay and cancel for free.
 
@AndrasDeak that is a superduper expensive ticket
 
7:54 PM
Not if it pays for itself, in food.
 
That I know. But still... No free lunch, right?:P
At least cancelling (the ticket for tomorrow) should cost something
(it probably does now)
 
no but usually airlines see that if you've checked in then you've used the ticket already
and you get to a lounge only on the airside
 
airside? you mean the other side of the ladies and security gents?
 
Ladies and security gents?
 
I'm not to hot on airport lingo:(
 
7:57 PM
arg this is annoying. why is my string printing the \n characters when I log >.>
 
Well, so far I've only seen female staff who check your ticket before you enter the security area. And majority of security are men, except for the few who check out women.
@enderland you have it in a raw string?
 
@AndrasDeak yes
 
that's why
raw means \n is \\n
 
lol
@enderland or is it bytes actually
 
@AnttiHaapala errr, wait, now I have to care about such things
its bytes
 
Ah :)
 
Also, I can't read FSM as anything other than Flying Spaghetti Monster.
 
@enderland actually, you would've had to care about this thing all the time
only it'd been more evil before
 
@MorganThrapp lol:D
 
break on the very moment that @IljaEverilä logs in :D
 
8:06 PM
@AnttiHaapala like working without being supposed to work? :)
 
yeah
@enderland like ... this
>>> a = {'surname': u'Haapala'}
>>> i = {'surname': 'Everilä'}
>>> json.dumps([i], ensure_ascii=False)
'[{"surname": "Everil\xc3\xa4"}]'
>>> json.dumps([a], ensure_ascii=False)
u'[{"surname": "Haapala"}]'
>>> json.dumps([a, i], ensure_ascii=True)
'[{"surname": "Haapala"}, {"surname": "Everil\\u00e4"}]'
>>> json.dumps([a, i], ensure_ascii=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/json/__init__.py", line 250, in dumps
    sort_keys=sort_keys, **kw).encode(obj)
 
8:48 PM
Today I am trying to boost my home wireless signal by putting a second router at the opposite end of my house. Here's hoping Wikihow has better instructions for technical matters than it does for day-to-day life ones. "how to stay up 48 hours" and "how to accept the inevitability of your death" were both duds.
 
@Kevin Good luck, wireless repeaters are finicky beasts.
 
@AnttiHaapala I've fortunately not gotten anything complex enough to hit those problems, hehe
 
If it makes it any easier, I'd actually prefer that the two routers have different names etc in the "wireless connections" list.
Wikihow says this is "LAN to WAN"
 
Captain Murica is well worth it btw
 
@Kevin I think that's better
 
8:53 PM
Yeah, that's definitely easier.
 
9:04 PM
Ok when I change router 2's address to 198.168.2.1 as indicated by step six, then I can no longer access the router's configuration pages from my browser.
Either via 198.168.1.1 or 198.168.2.1.
I can get access back by poking the "factory reset" button with a pen, but this is obviously not a useful permanent solution.
Maybe I'm misunderstanding "Ensure that the subnet mask is the same as the primary router. "
 
What is the subnet mask? 255.255.255.0?
 
Uh, maybe? Bonus challenge: I forget the admin password for router #1.
 
@Kevin at least you can reset it!
 
This is true.
I don't suppose I can query router #1's subnet mask non administratorially with ipconfig or something...
 
9:09 PM
Doubt it. Can you google the make and model to get the default admin password?
 
If "subnet mask" means "the first half of the IP address", then they're both 198.168.
 
It...sort of means something like that
But not actually that
 
@Kevin did you disconnect and reconnect after IP setting?
 
this will make you folks cry probably, here's some Python27 stuff that worked that I cannot use now :D
> logger.debug('\n'.join(s.splitlines()[-numb_lines:]))
 
that's necessary to drop the old IP of your computer in favour of one in the new IP range
 
9:12 PM
@AndrasDeak No. I'll try that.
 
Um.... I've got one that plugs into a wall socket - you press the WPS button on the main router, press the button on the extender, wait a few seconds... done...
 
It's called the WPS button because IT'S FOR WIMPS!
Ironic, because it involves neither windows, icons, mice or pointers.
 
Wonder Puppy Service
 
wim
    # 1
    Point = namedtuple('Point', 'x y')

    # 2
    class Point(namedtuple('Point', 'x y')):
       ...
 
@AndrasDeak That did it, thanks. After unconnnecting & reconnecting the ethernet cable, I can reach the config options through 198.168.2.1.
 
wim
9:15 PM
what's less gross? 1 or 2 ? just curious what y'all prefer
 
Now I can continue following the wikihow steps.
 
I don't even understand 2
 
@Kevin glad to hear that:)
 
@wim 1 is simple, but 2 lets you add methods
if you set slots to an empty tuple for 2 you'll still have lower memory usage
 
wim
assume I don't need to add methods
 
9:16 PM
@RobertGrant Only because the last time I tried to bridge routers I spent about 2 hours swearing at how what I was doing should work but it wasn't. So I just left it alone for 30 mins - and then it started working by itself without further changes anyway... Then just stopped a couple of days after :)
 
then go with 1
 
wim
what looks less weird to a n00b? (context: here )
 
#1 seems straightforward
 
wim
I don't like the way you have to mention the name twice. But both implementations suffer from that.
 
yup
 
9:17 PM
absolutely #1
 
wim
OK. that's what I used too. Just seems kinda weird to me
 
they'll have to look up namedtuple either way, and the official docs use the first form as an example. might as well stick with that
 
wim
by the way, if you're in for a fright, have a look at the implementation of namedtuple. It builds up a code string, then execs it.
 
it's a type constructor, it is a tad uncommon in python land. A bit weird then, sure
 
wim
So I'm going to use this knowledge to tease anyone who discourages the use of exec/eval
"hey, if it's good enough for core libraries ... " :D
 
9:19 PM
@wim I think Raymond explains that somewhere... :)
 
wim
I would be interested to see that explanation ... I find it hard to believe it couldn't be done better with using the 3-argument version of type
exec is slow
 
Preliminary results are good. Router #2 AKA "test network please ignore" is providing me with sweet wireless Internets.
 
9:32 PM
Download speed in the far reaches of the house is 4.0 mbps for router 2 and 1.0 mbps for router 1... I was hoping for something more like 50 mbps, which is what I get when I'm a foot away from router 1.
I guess I shouldn't complain about a 4x improvement, just because it isn't a 50x improvement.
 
Mmm, streaming 480p without having to spend two seconds to load a second of video...
 
fist bump
 
cool! Did you guys notice this message that comes up in GH when you accept a PR?
"Avoid bugs by automatically running your tests."
a little CI love from GH
:)
 
9:47 PM
 
I put my fist on the screen. I hope you did too.....bro
 
ofc
That may be the most touched image on the Internet.
How many fists have bumped this fist. If jpegs could talk.
 
Ooo... where's Brofi St. ?
 
In your dreams. Brofi St is too pure for this world.
 
I love asyncio, but naming of the functions could be clearer…
 
9:57 PM
good night, fisted bros
(sounded way better in my head)
 
haha
 
 
2 hours later…
11:59 PM
cbg
 

« first day (2026 days earlier)      last day (2920 days later) »