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

12:06 AM
Sooo anybody worked with pyqt? That can give me some pointers??
 
 
1 hour later…
1:25 AM
huurrrrrrr trying to deploy something and getting a weird error...finally decide to do the thing I should have done from the beginning, check the deploy script. Pretty much "if this distro, you shall not pass". Well then...time to use a different linux distro.
 
user559633
heh. home-made deploy script?
 
1:40 AM
@tristan need to deploy devstack for some upstream work I want to get done. I kicked off a vm from our internal cloud. It wasn't working, then noticed the condition that was excluding the distro I chose. Reading helps.
I figured...hey ubuntu 15.04 should be fine...nope
 
user559633
oh, cool.
 
user559633
heh, pinned to 14.04 for lts?
 
This was the condition I found that gave me my answer
if [[ ! ${DISTRO} =~ (trusty|wily|xenial|7.0|wheezy|sid|testing|jessie|f22|f23|rhel7|kvmibm1) ]]
 
user559633
weird that xenial would already be in there but not 15.04 feisty furry or whatever they called it
 
(vivid vervet I think) it is weird.
it completely skips that version
and 16.04 just came out too
how you been doing @tristan?
 
user559633
1:49 AM
@idjaw good. put in notice on friday and confirmed it earlier today. working on my stealth mode right now. found out that i have some competitors in the space that are very, very smart, but their focus is different.
 
user559633
how have you been? how's the fam?
 
DSM
Competitors.. in.. space.. #muppets
 
@tristan all the best for that man.

I've been pretty good. Had a great week last week at the summit. It was great meeting new people and sharing all our pains and wins with the platform we are using. Was tough being away from the family for a week...but the welcome home was nice. My wife and I were surprised that my son was asking about me a lot. He is pretty independent, so it was kinda funny.
 
How do I show how much I'm worth to my employer? I haven't signed an official contract, but I can't find solid data to back up what I think I should earn because I'm in an area with low cost of living.
 
user559633
Oh cheers. Much appreciated. I'm pretty anxious, but ultimately, I need this for personal growth.

Hah. That's actually pretty sweet -- maybe he's independent because he feels like he has a solid base.
 
2:04 AM
So I could still use some help if anybody is looking to dive into some code!
 
user559633
@Programmer Part one would be finding the modal income for people in your region. Part two would be your replacement cost -- e.g. if you make $50k/yr, and that's pretty normal, but it would cost them $20k in recruiting and searching costs, you have a bit of negotiation room.
 
@ZackTarr don't feel ignored....but there aren't a lot of pyqt experts around right now. You could ask your question and maybe someone might know it.
 
Cabbage for a short while
 
cbg
 
user559633
cbg :]
 
2:06 AM
Good Morning :-)
Summer is killing us here.
 
user559633
I'm looking forward to it being 16º here
 
My question is here if anyone if feeling up to the ask. stackoverflow.com/q/36963353/6275676
 
We have 38 here. Hoping that it will climb up... :(
 
@tristan I get how you feel all too well. You ever wanna chat, hit me up. :)
It's still pretty cold and rainy here.
 
@idjaw Send some of those rains over, please
 
user559633
2:10 AM
@idjaw hey, i really appreciate that offer. i'll be bugging you next month about a couple things (ideas/feedback/will want to get your thoughts on a bulk-processing architecture)
 
@thefourtheye Yeah, your area can really use a good hard rain fall.
 
DSM
It was rainy earlier today but became absolutely gorgeous in the evening. (Maybe a little cool by most people's standards, but I liked it.)
@tristan: not knowing much about startup culture, how long a process is it to get your new idea into semiproduction? Or at least to the point where someone will write you a nine-figure cheque to buy you out?
 
@tristan Would love to help! I actually was involved in a fairly large bulk processing project a few years ago. I probably would have approached it much differently now, but yeah, would love to provide any input I can.
 
@DSM Oh, you are making me jealous :D
 
user559633
@DSM the idea is typically to get into market as soon as possible, but you can do testing before the thing is even functional (some of my usability testing is that someone sends me an email, i "manually" massage the data, run it through some of my algo, and email back the response). as for the nine-figures, depends on what kind of startup you have, but if you don't have sales, you would need IP.
 
DSM
2:25 AM
We're all rooting for you. And the room has enough people with random talents in strange domains that I'm sure if you have a rough weekend sometime where you need some assistance that some of us can lend a hand. :-)
 
^^
 
user559633
Aww, thanks. Our little community is actually pretty amazing. If I raise a round, I'd legitimately just start hiring regulars as remote (or on-location) employees/contractors. Culture is so hard and ultimately what I find most important in a job after basic needs are met.
 
DSM
I can't even remember what "on-location" is for you any more. Are you back in the New World?
 
user559633
I suppose that's Boston now. Moved here last month.
 
tristan's been chowing down on some clam chowder from source
 
DSM
2:32 AM
Boston's such a pretty city! Pity about all the Ma-------. ;-)
 
freakin' Bruins.
 
user559633
They're so bad at driving.
 
user559633
First time owning a car in ~10 years and it's just amazing to watch them roll through stop signs, fail to merge, park a meter from the curb, drive alternately too slow/too fast.
 
DSM
@idjaw: I admit to a grudging respect for Bobby Orr. But he's been gone a long, long time.
 
user559633
In defense of Massachusetts drivers, the roads here make almost no sense. Too many one-way streets with no exit routes, left/right/center lane exits from the highway, onramps/offramps sharing a lane of the highway within the same 1/8km.
 
DSM
2:36 AM
At least they don't drive on the left side of the road, like they do in Maine. #callback
 
We seem to all have our own ridiculous conditions. Montreal has endless construction and pot holes
 
user559633
no cahp no stahp
 
read twice, then laughed.
 
hrmph, is it worth it to take a film class at a local college? I forgot how expensive colleges were, $2,500 for a single easy class seems like a waste
 
user559633
one thing i missed from living outside of new england: our need to be hyper-polite and trying to close a conversation as soon as possible. it's like hearing the verbal manner equivalent of a tcp congestion window when you order a coffee. "thanks-hava-good-day-thanks-you-too-thanks-you-too-thanks-bye_starts to speak but turns around instead_"
 
user559633
2:43 AM
@corvid are you $2500 interested in that class? self-improvement is the best use of money because it lasts forever
 
DSM
@corvid: That seems high. I've taken classes at universities (not for credit) after graduation and they were much cheaper than that.
 
user559633
corvid, is there an area school where you can sit in for non-credit for free? it's like that with tufts here
 
I just want to learn it for the sake of learning it :\ and it's not an actually applicable-to-real-life kind of class anyway
 
DSM
Ahem. My incomplete screenplays say otherwise.
 
user559633
i should start a kickstarter for nerdcop
 
user559633
just watch every redlettermedia video
 
@DSM that's actually what it's for haha
@tristan Psh, just redlettermedia? I have so many movie reviewer subscriptions its crazy. I really like yourmoviesucksDOTorg
 
user559633
@corvid i did until the saw one and learning too much about him (actually that's a genetic fallacy, his work is still excellent)
 
user559633
lol what's up my job is boring too
 
but he has good tastes (which is to say, similar taste to my own, therefore it must be good)
 
user559633
2:59 AM
oh yeah, definitely. listening to him rip into interstellar made me think that maybe i could drink some beers with him and have a good time
 
Although, Interstellar was okay because at least it was an original screenplay
 
user559633
exactly. it was okay
 
3:39 AM
How come this only prints like half the line?
    with open(fname) as f:
        for line in f:
            if line.startswith('From:'):
            	print line
line to print from the file is 'From louis@media.berkeley.edu Fri Jan 4 18:10:48 2008' but only prints from and the email, not the time stamp
 
Is the time stamp on the next line?
 
no, the line begins with "From" and ends with a year
Here's the pastebin of my sample file pastebin.com/tphDWQ8A
 
I was wondering why .startswith didn't sound familiar. I'm a 3.x guy. Hold on
 
Your code is looking for From: and your example does not have a :
 
I didn't even notice that lol
 
3:47 AM
@idjaw You're right, in some instances it doesn't but in other it does and it contains a time stamp and it doesn't output the whole line
 
Copy pasting your code, adding the :, and putting the sample sentence you provided in a file, I get the entire line printed out.
 
@rubito the lines with "From:" appear to only have an email
 
I just did that too. I guess my mind is playing tricks on me!
 
I didn't notice the sample file pasted
 
That's what happens late at night
 
3:49 AM
yep... From: only has email
 
so I would just ad another if statement to not print the lines that begin with "From" not "From:"
 
what is your goal?
 
You can use an or statement if you just want those lines. You probably need more functionality than that to parse it out though.
 
My goal is to count the distribution of the hours when the messages were sent
 
a cheap way of doing it is like startswith("From ")
 
3:53 AM
lol my way
 if line.startswith('From') and not line.startswith('From:'):
 
no
well
yeah you can do that
I was saying you can add a space at the end
so it looks for From and a space
 
Well that sure looks a lot better! lol
 
Be careful, you might still have lines without timestamps in them! ( I think I saw some earlier )
 
The output I'm getting seems about right
 
Okay, maybe I was mistaken.
 
4:00 AM
do you guys know how I can extract just the hours from this list?
match = re.findall(r'\d{2}:\d{2}', lst2str)
nvm
 
 
3 hours later…
7:25 AM
brief morning cbg
 
Cbg
>>> "what\""
'what"'
>>> "what'\""
'what\'"'
Can't understand the second prompt command. What happened there?
 
Nothing?
 
Where did the single quote go?
 
It's still there but escaped - Python's decided to display the repr using 's as the quotes, so it's escaped it inside... (and hasn't had to escape the ")
 
7:38 AM
Why does it display \?
 
It doesn't, it displays \
Look into the difference between str and repr.
 
@AbhishekBhatia You produced a value with both a single and a double quote. Python prefers to use single quotes when producing a repr() representation of a string, so it had to escape the single quote. The value is still the same.
You just used double quotes so you had to escape the double quote. 'what\'"' == "what'\"" produces True.
 
@MartijnPieters ah, thanks, good to know:)
I assumed you were familiar with sites like this, I just didn't have time to discuss due to having been terminally exhausted
 
@MartijnPieters thanks! So it always prefers single quote. I tried with >>> 'what"\''
'what"\''
Any reason for this preference?
 
8:06 AM
There's two styles to chose from. Single or double quotes. Does there have to be a reason one was picked?
 
8:52 AM
Cabbage.
 
Hey up PM2.
 
@AbhishekBhatia: From the official tutorial:
In the interactive interpreter, the output string is enclosed in quotes and special characters are escaped with backslashes. While this might sometimes look different from the input (the enclosing quotes could change), the two strings are equivalent. The string is enclosed in double quotes if the string contains a single quote and no double quotes, otherwise it is enclosed in single quotes.
The interactive interpreter displays the repr of expressions. So the quoted paragraph is saying that single quotes are the default quote used in the repr of a string. I suppose Guido made that choice because single quotes look less cluttered than double quotes. Also, in some fonts it can be hard to tell the difference between a double quote " and a pair of single quotes ''.
 
If like a noob I accidentally hit Remove -> All Sessions in Fiddler, is there any way to get the data back?
 
OTOH, this convention can be annoying for someone coming from C (and some related languages), where strings are delimited by double quotes. In C, single quotes are used to delimit single characters; a string is essentially an array of characters. However, Python doesn't really have a single char datatype: if you extract a single char from a string you get a one-element string.
 
I don't think it's annoying, and the first and only formal programming course I had was C
 
9:02 AM
@Ffisegydd G'day, Fizzy.
 
I'm not sure I mean "formal" when I say "formal", but anyway
 
@AndrasDeak Hi, Andras. It doesn't worry me, either, but I've used all sorts of string delimiting conventions over the years. Because I use Python so much these days I sometimes accidentally attempt to use single quotes in awk, but awk doesn't like that. FWIW, in PostScript strings are delimited by parentheses.
 
Yeah sometimes I forget that Java doesn't like single quotes for strings
 
Makesahmesad.
 
@PM2Ring hi:)
 
9:12 AM
I guess the most confusing / arcane string rules are in scripting languages like sh and bash, since they have to handle undelimited strings as well as quoted strings, but you can get quite different behaviour from string expressions depending on whether they're undelimited, singly-quoted or doubly-quoted.
 
still doesn't explain the wild whitespace thing with bash:P
 
Nothing can explain that. :)
On a more serious note, you just have to chalk that up to an unfortunate language design choice. Permitting naked strings in a CLI command language seems like a sensible and innocuous thing. After all, you want people to be able to do stuff like commandname arg1 arg2 without the hassle of needing quotes. But once you have all sorts of fancy parameter expansions in an environment that does automatic string splitting things are bound to get messy.
 
9:29 AM
yeah:(
 
My rule of thumb in Bash: "When in doubt, double-quote. Unless you really need word splitting, and you probably don't want word splitting because it's bound to not behave the way you want on some corner-case". See BashGuides Quoting. Also shellcheck.net
rbrb
 
9:51 AM
I usually get it right out of 10 tries;)
 
 
2 hours later…
11:46 AM
also shlex.
 
I thought it was a German swear word
turns out it's just sh+lex
 
... yeah ...
 
12:06 PM
Cbg
 
12:57 PM
Yay! We're back! Was that only 2 hours? It seemed longer...
 
morning everyone
 
cbg all you beautiful snake charmers
 
crows are bad at charming snakes usually
 
Sup
 
what's on the menu today
 
1:04 PM
Chimichangas and Captain Murica
 
Morning cabbage.
 
Getting a good question out of some people is like pulling teeth. But sometimes it pays off. I came into this question after 2 answers had already been submitted, but they didn't do what the OP wanted, mostly due to poor explanation in the question, and although the original answerers tried to keep up with the changing specs I guess they eventually got sick of it.
I felt I bit guilty for "stealing" the accept from them, especially since my answer was a minor re-working of their codes, but I compensated by giving them both an upvote, so hopefully they won't be too annoyed. :)
 
Alright, I have my first major complaint with Windows. stackoverflow.com/questions/12161554/…
Apparently, in Windows 7, it will store copies of certain files in a hidden directory and then lie to the program and you what the path is.
 
ewwwwww
 
So when you delete the old files, it doesn't actually delete them.
And it only happens with older software that's 32 bit.
 
1:09 PM
Morgan. You need to let it go man. Just stop windowsing. Let the *nix flow through you.
 
I want to. I want to so badly.
This IDE is Windows only, and it's what all our software is written in.
 
Being tied to a specific IDE is nasty.
 
yeah that's brutal.
 
It's terrible.
 
can you get away with installing Cygwin?
 
1:12 PM
Especially when said IDE/Language came out in 1998.
(Delphi 5/7)
 
Python came out in '91.
 
Right, but it's been updated since.
 
Are...are you younger than Python?
 
The latest version of this language is from the late 90s.
Yup, by 3 years.
 
o___o
 
1:13 PM
Young Morgan is young
 
Hey, I'm not that young. I've been able to drink for almost 11 months now.
 
Able to. But when did you actually start? :p
 
I've been able to drink (legally) for almost 9 years.
 
@idjaw We don't talk about that. :P
 
I've been able to drink (otherwise) for almost 20.
 
1:15 PM
15 years for me
 
Drinking age of 21 is silly though.
 
Think of it this way, I'm as old as Forest Gump.
Yes, yes it is.
 
that's why Montreal gets a lot of Americans on weekends . 18+ here.
 
@MorganThrapp waaat
finally, if I disagree, I can just dismiss you with "toddler";)
 
@MorganThrapp O.O
 
1:16 PM
 
"lol"
 
Kevin sweeps in for the victory
 
@idjaw Mind you, you can do some pretty crazy stuff with *nix filesystems too. But at least you don't have to deal with the insanity of a proprietary OS that hides important implementation details from programmers.
 
C+H is an easy win.
 
Shh, don't reveal my secret laziness.
 
1:18 PM
Secret?
 
@PM2Ring oh yes. I remember when I was starting out and the amount of times I had to keep reinstalling the OS because I had no idea what damage I had done.
 
:-p
Argh this training course was cobbled together from videos of two real-world classes and the two instructors keep repeating what the other guy said in the previous one.
I already know what Passive and Active recon is, Mr Suit. Mr Graybeard already explained it fifteen minutes ago.
 
Ah ha! This IDE doesn't work because instead of passing full paths to the files it needs to load, it just passes the file name and assumes that the folder is in your path.
 
speaking of silly talks. Last week during the keynotes, the quality of wifi was inversely proportional with the business-speak and buzzwords going on.
It was pretty funny how can point out the moment in a talk where an entire room has lost interest because wifi starts to die out
 
I guess it's fair enough for Microsoft to keep details of important programs hidden from those who haven't paid for the privelege and signed the NDAs. But to make things like file formats and the filesystem itself proprietary is downright stifling. It took several years before Linux distros could read NTFS filesystems, and then several more before they could write to them safely.
And even now there's no Linux software that can do a complete chkdisk on a NTFS system, AFAIK. The ntfsprogs utilities can do some tests and repairs, but they can't do everything, and after they do their stuff they just mark the system so that Windows will run chkdisk on it next time you boot into Windows.
@idjaw ROFL
 
1:40 PM
If I were going to switch to Linux, what distro would people recommend?
 
I think Arch is recommended by some here.
I use CentOS myself, mostly due to work reasons.
 
We do all our work on Windows, but we're getting some virtualized windows environments spun up, so I could just drop into windows when I really need to.
I'll check out Arch, thanks.
 
CentOS is a bit strange, because it's meant for extreme stability. This has advantages in long-term services where you want it to be the same all the time, but has disadvantages when you're trying to get the very latest software onto a server.
@davidism is the person to bug about Arch.
 
Heh, that's not going to be an issue. None of our software is newer than ~2005.
 
If you are using CentOS, you're probably doing it because it's a RHEL clone.
Same with Oracle linux, although that has the nice brand name attached.
 
1:51 PM
we use Ubuntu a lot. We use coreOS for other work related reasons. We also use centOS. But our main work stations are mostly OSX. But we can install whatever we want. So some people are even running fedora.
One guy is actually running arch
 
Well, I'm attempting to install Arch.
I may finish at some point today.
 
If you're looking for something for home use, I suggest one of the debian-based distros that was designed to be as easy as possible (Ubuntu without the default window manager, Mint, &ct). Or just Debian, it's basically the standard.
 
user559633
I use Debian and install a bunch of 'non-free' packages.
 
Heretic!
 
user559633
I know I know. I've basically made it into ubuntu, but without the embarrassing OS names and marketing
 
1:55 PM
and privacy issues
 
Behold how his flash media loads and the sound drivers work. Surely dark magic is at work.
 
user559633
Systemd, from the people that made audio and wireless work so seamlessly on Linux.
 
Yeah, I've played with Mint and I really like it.
I might just do that.
 
For home use i recommend mint.
 
Oh you mean the audio that if I try to play it over HDMI it sounds like static is murdering my family?
 
user559633
1:57 PM
Yes, but now that team has optimized your OS for rebooting and stand in the way of init
 
I like working on Linux, but I've never run a Linux window manager and really liked it. To me it's an OS you shell into.
 
user559633
Linux virtual machine on OS X. It's like getting 0 calorie beer.
 
Sad and unsatisfying?
 
Tristan's love life!
 
user559633
Too good to be true
 
1:59 PM
@QuestionC I currently have arch installed and KDE Plasma is awesome, but the terminal is sill the overloard in linux.
 
Did I win?
 
Just spent five minutes loading a two minute video. Gotta love those in-house developed video players.
 
user559633
If anything, my girlfriend has made it overwhelmingly, unnecessarily clear that it's a like-life.
 
Shouldn't have turned your flat into a startup frathouse.
 
I've been working in another company's office for two days and they haven't noticed, not sure if bad (or at least, in the "visitor" area)
 
user559633
2:01 PM
I'm enjoying the algebra here. Apartment + computers = normal. Apartment + computers + Tristan = startup frathouse. It's like multiplying by a negative odd number.
 
user559633
@corvid They either think you're an executive's son or they're hoping that if they ignore you, you'll go away on your own
 
user559633
brb cahfee
 
I just want to steal that sweet sweet coffee
 
Programmers and hobos are similar in their easy-going approach to property law.
8
 
user559633
@corvid They're giving you coffee? I think this might just be an unorthodox recruiting technique
 
2:07 PM
Like picking up a stray kitten by giving it food? I'm okay with this
 
That's how we got our kitten. We fed her tuna and trapped her in a cage.
 
user559633
$dayjob had a company meeting to unveil new "core values." One of the values is "we are one team." Engineering didn't get an invite to the meeting.
 
I don't know whether to laugh or cry.
 
cue IT crowd reference
 
user559633
I love mission statements/company core values.
 
2:12 PM
BigCorp's mission statement was basically "work harder, losers"
 
Ours is, "Hey, we didn't go out of business this week!".
 
the engineering team did not synergize our global initiatives for maximum scalability
 
or if they did, it wasn't innovative enough
 
user559633
Without mission statements, where would I get my vague sense of direction?
 
2:20 PM
@tristan ours is also One Team
Amazing.
 
user559633
New startup: mission statement generator that reduces a horoscope into a few simple statements
 
user559633
Mission statement or horoscope, round 1: "Take creativity to a new level"
 
@tristan When do you finish at $dayjob?
2 months?
 
user559633
Next Friday
 
Oh nice.
 
2:26 PM
@tristan Would this work for you: output.jsbin.com/ibebih/49
 
user559633
@CryptoMin I deeply want to believe that you just hacked this together in 5 minutes
 
sorry to disappoint you, but i just spent 5 minutes looking for this. I had seen it a few months ago.
 
user559633
:D
 
user559633
We need the Society for Rare Diseases in Cute Puppies.
 
cbg
 
user559633
2:28 PM
cbg
 
> We need LessWrong.
 
Society of Puppies? Awyea!
 
@MorganThrapp It makes me sad that someone can get 2k+ and 3 gold badges asking questions like that. I suppose the core question is ok, but he should've made some attempt at providing code. OTOH, if the OP did post working code I guess that would've made it into a Code Review question.
 
@PM2Ring Agreed.
 
I may have posted this one previously, but I guess it's worth repeating. :) The Sad Sam Blues Jam featuring Krista Hess: The Thrill Is Gone
 
2:39 PM
back to what I mentioned about that keynote that caused the wifi to break. This is the new buzzword/business-speak I learned that had me scratching my head: bimodal IT I'm pinging @tristan on this because I think he'll get a kick out of it.
 
he's right here
 
Anonymous
So, I had never used/understood the purpose of setup.py file (despite its indicative name). So, now after reading about it, it seems A Lot like what requirements.txt does / used for.
 
Anonymous
Are they pretty much intended for the same purpose?
 
user559633
@samayo setup.py is like a full-featured requirements.txt. You should be able to run python setup.py on a project and have it do everything needed to set up.
 
I can't install anything on my work computer, so I use Portable Python and run setup.py to install beautifulsoup everyday
 
Anonymous
 
or everytime i open an interpreter
 
user559633
@idjaw "Bimodal capability that marries the rock-solid with the agile is essential for an enterprise to survive and flourish in the digital era. " why buy the snake when you can get the oil for free
 
user559633
Consider also if there are things needed to install or set up a project that aren't in requirements.txt, e.g. building C extensions
 
Give a man some snakeoil, and he's scammed for a day. But give a man a snake, and he's scammed for the rest of his life.
 
"Register for your free Deliver on the Promise of Bimodal research document now."
 
Anyone want to take the kool-aid with me? Should be one hell of a ride.
 
user559633
think marathon runner
"it centric removed from customer"; "business centric; close to customer"
 
@samayo It's also used for registering your project on PyPI so people can pip install it.
 
user559633
you can just write anything down and sell it to IT shops
 
Anonymous
@Ffisegydd Ah, so just like composer for PHP.
 
Anonymous
2:45 PM
I think I'm better of with requirements.txt for now.
 
"Agile synergy" crowd goes wild
 
user559633
tech management consulting 101
step one: invent an illness
step two: sell a cure
 
s/offer/sell/
 
user559633
thanks :)
 
:)
 
2:50 PM
Wow Idjaw not fair :P
 
hehe sorry...blame it on the public chat thing
 
I'm just messing around.
 
Heh.
For those of you who missed it, idjaw actually said "We were thinking of going into this new and exciting domain but then we found Tristan was rolling his startup in that same area. Once we knew that, we knew it was an awful domain and so should probably avoid it."
 
Yeah. Also, we did not want a monopoly on that market, so we are letting Tristan exist to not get the suits breathing down our neck. You're welcome, Tristan.
 
broken Windows theory?
 
user559633
2:58 PM
Cheers guys, you're so nice
 
<3
 
xoxo
 
My startup idea is the best anyway - delivering kittens by drone.
 
How did you get past the Amazon machine to get that going?
 
@Ffisegydd My GF will probably be your number one customer.
 

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