« first day (1984 days earlier)      last day (2949 days later) » 

12:04 AM
hello
 
12:31 AM
@idjaw thanks for the heads up. Now, to locate it...
 
12:51 AM
hey J Richard
 
1:09 AM
@JRichardSnape np. Unfortunately for me our flight leaves tomorrow, so I will be out of luck. Apparently there is a manual way to do it. Hopefully that will work.
 
hello @idjaw
 
cbg
 
what up
@GLaDOS
 
Pretty good
How are you?
 
I cant complain
just here trying to meet some fellow pythonistas
 
1:28 AM
I see
well you definitely found the place.
 
Hey @Jonathan :)
 
1:42 AM
its my first time in the chat and I'm fairly new to S.O. Is this more of a casual chatbox or tech talk? @idjaw @GLaDOS
 
yes
 
are you a python programmer professionally?
 
In my heart.
 
We are a pretty open group with what we talk about but the main topic is Python shenanigans.
I am a python developer professionally
 
well I hope to get to the level where I actually understand some of the jokes lol. I came to this site to learn and also to help but I find that about 99.9% of the stuff is so over my head its almost a lost cause lol
frameworks I've never worked in, code that I look at and just scratch my head, etc lol. I'm here daily hoping that I will bang my head long enough that one day it will start to make sense :)
 
1:53 AM
there is a lot I don't know about too. It's all the fun in learning.
Try stuff out. Break it, fix it. Ask. Learn++
 
what type of developing do you do?
 
My current position is pretty much mostly backend. I work on the openstack platform
 
I'm trying to do backend work. for some reason Doing html,css,js doesn't seem interesting to me.. I'm hoping to get good enough with Python that I can at some point learn C. I'm self taught. Too bad I wasn't exposed to cs when I was younger, I would've done this over Accounting anyday lol
 
you don't necessarily need to be exposed to cs. I did a computer engineering degree....I only did two cs courses that were 200 level courses. Everything I am doing professionally is mostly self taught.
 
what helped you to get your foundation? I've done some tuts but they seem to all be so painfully novice. The data struc/Algs books all seem too mathematical for me. I'm just trying to get a solid feel for things.
 
2:10 AM
I started doing basic web stuff when I was young and then through small projects I was involved in either through school or jobs at University I solved problems by learning new languages leveraging off of what I already knew.
My academic background is hardware...so my first job out of school was a web developer for a small store...I barely knew anything. So being on my own having to figure it all out helped by learning how to do something with technology X, then I looked at best practices..
 
Set yourself a goal to do something very small which is interesting in your opinion. You'll learn a lot in the process.
You don't have to know python to learn C.
 
exactly
finding something small to work on....I could have probably summed it up better to that
 
DSM
Python didn't even exist when I learned C. #oldmanwisdom
 
hahah same here
 
lol
 
2:14 AM
but I didn't even learn C
=/
when I learned how to program Python was not around
and my first editor was called "notepad.exe"
:D
 
yea but I guess reading on the web a lot ppl say to get comfortable with 1 language before moving on so here I am trying to learn the ins and outs of python
 
Sure, just don't think it's a prerequisite
 
DSM
Not unreasonable. Better to know one language well than five languages equally badly.
 
the abstraction is great but sometimes I just wonder how certain things are happening.
 
also, reading is cool and all, but really try getting into the nitty gritty as soon as possible
 
2:17 AM
yeah....making mistakes is the best way to learn
 
it's not possible to eat everything all at once. So it's more like learning a real language, you learn it bit by bit and after a while you suddenly realize you can speak.
You'll learn in time how everything works if you're the type of person that's intrigued by it. But trying to understand everything at once will confuse you very much
Knowing when to say that something is magic and you just assume faeries and little gnomes operate it can go a long way.
 
lol
 
like my dryer....gnomes operate my dryer...that's why I can never find matching socks anymore.
 
(Not saying that you shouldn't research into how things work!) Just make sure you do the actual practice more than the theoretical research if you want to get into programming
@idjaw If it wasn't for those meddling ...
 
makes sense
I just interviewed for a helpdesk job recently. hopefully I can have a chance to put some of my skills to work in a basic real world situation
 
DSM
2:24 AM
I used to TA a physics-for-life-science-students class. One thing I always tried to teach them is that memorization might be really useful for biology, but you can't learn physics by taking careful notes and being able to regurgitate the text. You learn physics by doing problems until your brain is leaking blue goo out your ears. Only by applying the principles do they really make sense.
Programming is much the same.
 
I'll trust you, @DSM you're a Dr ;) lol
 
Hands learn faster than the eyes.
 
at times I feel slight breakthroughs @GLaDOS. Other times I feel like there aren't enough tools in my toolbox and for some reason that I'm doing something in a makeshift way or very sloppily .
 
And that's perfectly fine
In a way, that's what you're supposed to do right now.
If you can find someone that will review your code and help you understand how to improve it this sounds like a good way to continue learning.
 
and the fact that you care enough to say "there is probably a better way to do this" is a big step.
wait....I'm dumb...Python was definitely around when I started to learn how to program...
 
2:35 AM
Do you think Python will have longevity ?
 
I don't think there is any need to worry about that at all.
 
thank you guys for your input. its great to receive advice from ppl of diff areas and expertise levels
 
I'm actually a six legged mahogany table. But the other avatars here are real people so thank them...
 
It's true. I just ordered my GLaDOS mahogany 1.5 last week. Comes with a cup holder
 
I guess I'm a 2 legged table just looking for a leg to stand on lol
 
DSM
2:48 AM
Evening rhubarb for all.
 
rbrb DSM
 
lol @GLaDOS
 
but, can you really trust GLaDOS....I mean...it IS GLaDOS
:)
 
3:15 AM
Where are my code diving goggles?
 
3:27 AM
lol
 
4:24 AM
Hi; would anyone mind peer reviewing a few of my recent answers? Nearly half of them in the past few days have been downvoted with no feedback and I'm concerned that I'm simply missing glaring flaws.
1, 2, 3
 
hi guys
I start server on a network and I want other clients to access it.
I can port-forward the open port manually and it works. But how to do it automatically.
I tried upnp and it doesn't work.
any suggestions?
 
@TigerhawkT3 Seems like you have a stalker
nothing wrong with your answers.
 
Alrighty. Thanks for the review.
 
np. Sorry that happened. That sucks =/
 
"That's life" -Sinatra
 
4:49 AM
Say I transmit some audio in chunks using this code. gist.github.com/anonymous/01d0e1888bf282cdf477 How can play it at other end. Pyaudio examples I have play files mostly.
 
5:08 AM
@TigerhawkT3 well they do not shine among the competition there either, but nothing downvoteworthy as far as I can see..
 
alden: I can't find any examples. I am guessing stream_callback=s.recv(1024)? A separate thread to receive and one to playback is it?
Has any1 ever tried this? any suggestions?
 
@AbhishekBhatia this is not a python question anymore
perhaps you ought to go into superuser or something to ask how to poke holes into firewall
 
@AnttiHaapala yeah. But I was hoping to find say any voip application existing in python, and check what it does about this.
any idea about the audio thing?
 
5:24 AM
hello
 
Morning CBG all.
 
@AbhishekBhatia no
 
i have some doubt can anyone clear my doubt
 
@imdadhussain: you don't need access to that room, that's just the place we take out the trash to.
 
5:25 AM
@imdadhussain: and read our room rules: sopython.com/chatroom
Specifically the part about asking questions.
 
and reading the rules could be of use to @AbhishekBhatia as well
 
i have fetch the mail from the server and i want to save the mail which is fetch along with To and body of the mail in mongodb database
but i get one problem everytime the same user data is saved with to and body
i want if to is same then same only the body of that mail in user data
 
 
2 hours later…
7:34 AM
@imdadhussain sounds like a question you should ask on main site.
 
8:01 AM
@khajvah integer overflow of the day ^
 
8:13 AM
@holdenweb I see you're having fun with Anatoly :)
@IanClark I see you sneaking in :)
 
8:35 AM
haha Antti :), reading.
 
@JonClements *runs*
o/
How be?!
 
Be good thanks - how be you?
 
8:57 AM
Hi everyone
 
heya @Qadir
 
I'm new to Python programming lang
 
terrorists now doing their ops in brussels
 
@Antti yup :(
 
8:59 AM
seems like they've sped up their plans after the 1 guy was captured
 
From where I should start learning Python and web frameworks ?
 
@QadirHussain you should learn python first.
 
Anyone there to help me out ?
 
only then the web frameworks.
 
any good and easy tutorials
 
9:00 AM
The web framework materials for python strongly assume that you know about python already.
 
cbg
 
@QadirHussain ensure you're using Python 3.
 
Ok thanks so much
 
only after you've done that (shouldn't take too long) should you proceed to look into web frameworks
 
Ok will start it from now onwards
 
9:04 AM
@AnttiHaapala Did you buy the C standard or you are using the draft?
 
draft
it is mostly right
you know
at first I took that guy's code, then added x = 0xFFFFFFFF
then compiled it with -O3
it just printf("%d") with constant values :D:d
had to change it to read the number from scanf :d
 
god, that's so much to deal with
BTW, have you ever had the fear as a noob that your architecture might fail one day?
I think my manager trusts me with more stuff that I can handle
 
I am fearing it all the time
 
@JonClements Be good thanks :) - I need to be more active with SO though and want to start doing something meaningful in OSS / blog-writing
 
Well... we'll expect that in 6-8 something :p
 
9:12 AM
@AnttiHaapala If it fails, I will let the whole team down, we will be late for deadlines and the application might fail.
this is terrible
 
soundslike you've got a management failure
why isn't the whole team responsible :d
 
it's not like they are making me responsible but I am feeling responsible as I am deciding on the most stuff
 
@khajvah time to nominate the nearest person as new architect, and go on leave for 3 weeks
 
lol
I will actually spend my own time to write an extensive overview and ask everybody to review it.
 
exactly 2 upvotes to 2^15
 
9:25 AM
Can I ask a off topic question on AWS?.
 
Thanks. Is the VM instance limitation dependent on subscription or subscription per region?. i.e.) 20 instance as a whole for subscription or 20 instance for subscription per region like 20 for us-west, 20 for us-east etc.
 
@The6thSense well, the other number is "Reserved Instances 20 instance reservations per Availability Zone, per month"
by googling..
@The6thSense it says above there in your link as well that it is per region
and of course you can lift the limit by contacting them
they just want to make sure that they can forecast the demand
so that some asshole does not request a million instance for one hour, just to block others out
 
Thanks Antti I was just confused, in the beginning they stated like it was per subscription and at last it was like subscription per region.
 
9:41 AM
in any case the limit is not hard at all
you just need to write them a justification for them to raise the limit
 
Thanks Antti :).
 
Cabbage!
 
Cabbage!
 
user559633
10:31 AM
Belgium :(
 
@tristan Flagged for rude and offensive!
 
user559633
@Carpetsmoker What are you on about?
 
Ugh, how do you prevent the chat system from expanding links like that?
 
user559633
Not cute
 
@Carpetsmoker [ link ] (localhost)
 
10:58 AM
Wow - how did you put a link to my secret internal system!?
 
I cracked you
@RobertGrant It says "Welcome to Nginx" right?
 
Oh...crap. Dude, please sign this NDA?
 
cbg, all. Got my "let's git this release built" shoes on today
Ready to bang heads together if I have to (but hoping I won't have to)
 
@holdenweb go Steve, go Steve, go Steve... bah... I've never been good at cheerleading - (not that I've tried at all of course)
 
Don't be afraid to show a bit of leg, Jon
 
11:07 AM
it's hard to tell with that mask
hello
 
oh god - and they promised they'd never put that online! The yamming b*tards!
 
@tristan Oh, I now understand the context of this... :-/
 
Jon it might be your evil brother :P.
 
@The6thSense ahhhh.... yes... I like this... blame the other puppy... rubs paws together as he formulates a plan!
 
Cabbage
 
11:11 AM
Cbg PM.
 
Is it just me, or is this question totally unclear? stackoverflow.com/questions/36152566/…
 
wow
the question is clear, and the answer is "no":P
"can somebody help me?"
 
:)
 
maybe if I knew any selenium...but I don't think so
 
He needs to convert PDF-lasku sähköpostiin into this PDF-lasku s[ascii symbol]hk[ascii symbol]postiin why is it unclear ?
 
11:23 AM
Anttiiiii!
we need your Finnish wisdom:P
WOW
sähköpostiin is a lot of effort to say e-mail
 
"electric mail"
 
I stand by my statement;)
@Ilja hey, you're also from Oulu!
 
yeppers
 
small world?:)
 
and cabbage!
 
11:26 AM
cabbage!
or personal correlation?
 
just a few days ago @AnttiHaapala calculated that ~10-14% of this room was from Oulu
 
well I am the sqrt(all(eval)) here
 
the Finnish Python Mafia (and I thought the Dutch were many)
 
we should make hoodies with that on
 
11:29 AM
actually mikko is the root of all that eval.
 
yes, all hail mikko
 
but he's never stepped in the room. He's the original connection
 
now we know who to eliminate if eval answers start popping up on SO
 
python mafiaa of Finland
 
in [matlab] there's been an epidemic
 
11:31 AM
eval epidemic?
 
yup
 
:D
 
had to extend matlab with Java once, perhaps that's one of the reasons my bachelors was never finished
 
@Ilja I believe this accurately describes some Ruby code I've seen...
 
11:32 AM
@Ilja well real hackers use java in matlab
I get frightened of all the dots
 
actually I'm a super lazy documenter, and it's hanging from not writing the thesis part :P the program worked fine
 
and do you still have an option of writing it?
 
yeah
some day...
 
and are you planning to?
oooh wait I just saw yesterday what you need
 
caffeine injections?
:D
 
11:35 AM
caffeine could also help, yes
but not as much as The Beef
 
he's a lot bigger than in the movies
 
he became a fully-grown appendage
 
xD
 
12:03 PM
Having to lead them by the hand, but we will get there
 
Cbg
 
I just don't know what to say in response to this: stackoverflow.com/questions/36153617/…
 
@PM2Ring You might suggest they use getpass.getpass()?
 
Someone already made that suggestion.
 
Good day!
 
12:10 PM
Well, other than pointing out that the print reveals it anyway, you're done. And I think we can assume the print is just test code
 
stackoverflow.com/questions/36132142/… Anybody can say, why "out = [e for e in list_input for i in list_lines if e.startswith(i)]" is not working for me?
 
@JonClements Fun with Anatoly? Not at all. Simply refusing to engage further. The man is an ineffable troll
 
@XuMuK define "not working"
 
@holdenweb You seem to be a magnet for those types :p
 
@AndrasDeak I get an empty file... but using monstrous if == is working for me
 
12:14 PM
@XuMuK I don't see any "out" nor list comp in that post
neither in your self-answer
 
@JonClements Yeah - far too forebearing for my own good
 
and @XuMuK what is list_lines??
oh, a list
oh, you mean Raja's answer
 
@XuMuK Probably due to newlines / other whitespace at the end of the `i` lines you're testing against.
 
@AndrasDeak all other code lines are the same
 
now you're linking your own answer, which again, doesn't have any of that
if all other code lines are the same: are you printing out instead of what you were printing yourself?:P
ah OK, the writelines is part of the code
 
12:18 PM
@AndrasDeak out = [e for e in list_input for i in list_lines if e.startswith(i)]
output.writelines(out) I got from RaJa user
 
OK
it works for me
at least out is what it should be
on a simple test case
so you IO might be off
check if your lists are what you think they are
and if out really is empty, or only your file is due to some silly mistake
 
@AndrasDeak Ok, I will try to just echo
 
good luck
it's highly probable that the problem is what PM 2Ring said above (which I missed at first)
8 mins ago, by PM 2Ring
@XuMuK Probably due to newlines / other whitespace at the end of the `i` lines you're testing against.
'asdf\n' doesn't match 'a\n'
 
@AndrasDeak print out gives : []
 
try print(repr(list_lines[0][-1]))
if it's \n, there's your problem
(or other whitespace)
 
12:29 PM
@AndrasDeak not working...
 
is it not?
 
@AndrasDeak gives '\n'
 
lol:D
I find that hard to believe
 
@AndrasDeak ActivePython 2.7.6.9
 
seriously, slash-n, rather than backslash-n?
/n rather than \n?
 
12:31 PM
@AndrasDeak %'\n'%
 
mumble mumble
so define "not working" again, please
 
OK, I will post into the pastebin
 
please don't
just read what I wrote half a page above
if you're not willing to read and comprehend the help of others, don't bother asking
 
@AndrasDeak OK, I will use "if" and double "for" cycle
@AndrasDeak Thank you for your help
 
just strip your list_lines of whitespace (trailing newlines and maybe other stuff, like carriage returns, who knows)
I'm not telling you to leave, I'm just asking you to not make me repeat myself
 
12:38 PM
@AndrasDeak list_lines[i][:-1] is exactly without whitespace
@AndrasDeak O! I found! It should be: print(repr(list_lines[0][:-1]))
 
@XuMuK to be absolutely sure there are no trailing whitespace characters of any kind you could instead use list_lines[0].rstrip()
 
@XuMuK: What Andreas said. You should be using .rstrip() or .strip() on the lines you're testing against. BTW, Raja's answer is inefficient because it keeps looking through all the lines in list_lines even after it's found a match.
 
It happens. Good eye
(Wouldn't have happened with .rstrip() though)
So the kiddies are all hard at work now, pulling together to build a release. I stand over them, holding the whip ...
0.1.8 here we come. Then I have to think about versioned build configurations
Then I have to think about extracting configuration data in a refactoring so we can switch a server to use different sources for its services
Fun, but you have to watch these little buggers - Murphy's law applies
 
But not watch so closely they feel you don't trust/have confidence in them I hope
 
12:46 PM
@XuMuK: One way to get rid of line endings is to read all the file data into a single string and then call .splitlines() on it; that won't get rid of trailing spaces though. Here's a short demo, with an improved list comp that stops searching list_lines as soon as it finds a match.
list_lines = lists.read().splitlines()
out = [e for e in list_input if any(e.startswith(i) for i in list_lines)]
 
@holdenweb list_lines2 = list_lines.rstrip() AttributeError: 'list' object has no attribute 'rstrip'
 
@XuMuK I was telling you to check the final character of the first list element, to see if it's whitespace...
 
.rstrip() is a string method; you have to call it on each string in the list, eg list_lines = [s.rstrip() for s in list_lines]
 
@PM2Ring isn't that a short-circuit only in python 3?
 
@PM2Ring Hm.. so I am using not the list of strings?
 
12:49 PM
@AndrasDeak any / all short-circuit in all versions of Python, AFAIK.
 
oh wait
I thought that was a list comp in any()
but it's a generator expression, right?
I keep thinking that python3 put everything into generators
and I keep forgetting that (k for k in list) is a generator
then I understand, thanks:)
 
@PM2Ring list_lines = [s.rstrip() for s in list_lines] is crashing my IDLE
 
@AndrasDeak Yep. You still get the short-circuiting if you feed any a list comp, but the whole list has to be constructed before any starts work on it, so you lose some of the benefit.
 
yup, that's exactly what I had in mind initially
and I imagine most of the hard work is checking for matches, not finding the few trues and falses
 
@XuMuK It shouldn't do that! list_lines is a list of strings, right? I assume you created it with: list_lines = lists.readlines()
 
12:58 PM
@XuMuK rstrip is a string method, not a list method, so you have to call it on the individual elements
Per @PM2Ring's response above
 
@PM2Ring Exactly! It should be list of lines.
 

« first day (1984 days earlier)      last day (2949 days later) »