« first day (1712 days earlier)      last day (3237 days later) » 

12:00 AM
I get one free book from pact ... which one should I get? packtpub.com opinions welcome :P
mastering pandas is the one im leaning towards
but i kinda want one that branches out from python but is still relevant
 
12:39 AM
@JoranBeasley The R Cookbook they have is good for reference/working with Python but if you want to learn R instead its so-so
 
1:23 AM
Anyone know how I can delete an item from a listbox, as well as from the list it comes from?
 
1:38 AM
cbg all
 
cbg @holdenweb
 
What's a listbox?
 
1:57 AM
a widget in Tkinter
or gtk or whatever Tk library someone is using
 
@feners assuming the listbox is set to lb (standard way) then lb.delete(INDEX) or lb.delete(ANCHOR) or lb.delete(ACTIVE) depending on how it is called
@feners as for deleting it from the original list; depends on how the list was generated but this question covers most of them
 
this is my question for better understanding
 
@feners Looks like you already got an answer. Also, please read our rules: don't post recent questions. Be patient, the users who can answer are already following the site.
 
SOrry! wont happen again
 
2:47 AM
cbg
 
3:01 AM
cbg @JonClements
 
Not sure why I woke up at 3:30am... but oh well... gives me a head start on the day :)
 
What country are you in, jc?
 
Says on my profile :)
 
okay, I've done websites with Perl/CGI/Template-Toolkit, JQuery/Bootstrap (& Knockout too), PHP/alot, and now Python/Django....I really like Django
I particularly like not having to make websites but still
 
3:18 AM
you have no idea how much I want to finish moving to data analysis and scientific programming....but web contracts pay the bills right now
 
Yup - some stuff I'd rather not do... but heck - entitles me to send invoices - so - that's a comfort :)
 
eh, just got passed up on a good job offer. So more contracts and keep plugging away at my Master's
I maybe a little annoyed at having to play politics every week to keep contracts open :P :)
 
cbg @JonClements
 
How's Houston going Steve?
 
Woo, another ten rep. I'm on my way
 
3:33 AM
@Dracunos woo hoo!
10 more and you can start making comments on stuff :)
 
3:47 AM
Phoenix actually, Jon - Houston was just a stop along the way. It's 8:45 pm and the temperature is still 110°F (38°C)
@Dracunos Slow and steady wins the race. And get used to the idea that you'll never catch @JonClements - I have!
 
@holdenweb 38C? I'd melt... :(
 
Yeah, I'm staying where there's air conditioning
 
That just makes it worse when you step out the door though, surely? :p
 
okay, sleep time. Night all
 
ditto
 
3:51 AM
Yeah, it's going to be 113ish all week here. It's actually going to get overcast and muggy too this weekend until Monday :(
It's still 107 at 9pm. But at night it's kinda nice with the sun down
 
4:22 AM
@JonClements I hope you aren't suggesting that I should put up with 100° temperatures indoors just so I don't feel too hot when I go out
The official temperature is now "as hot as yam"
But it is kind of weird taking my jacket off to go out
 
 
2 hours later…
6:24 AM
Cbg
@JGreenwell, @JonClements ever thought of employing a young protegee to do your bidding and get some bigger projects?
(I don't mean me; I'm neither young nor prodigious)
(As you can see by my thinking that prodigious is the adjectival form of prodigy)
taps mic
@Kevin well that's...pretty amazing
@Kevin I'd love to write an alt-history story about how the Romans invented steam power, and basically jumped Europe forward by 2000 years, technologically speaking
 
7:10 AM
Hey up
 
@Ffisegydd cbg
Sorry I need to sort out my itinerary for August; will try and do that in the next couple of days
@Ffisegydd have you started your job yet?
 
@Boberta No I start Aug 3rd
 
Aah ok
 
My first week is an induction week in Guildford.
 
Other fizzyish news: I signed up for a followon course to the Spark one, which is about Spark+ML
 
7:15 AM
Nice.
 
I'm barely hanging on in the Spark course, now it's become a bit more statsy (without explaining the stats), but I'll try and get through it
 
What in particular are you struggling with?
 
I'll find it
So first there was TF-IDF (term frequency/inverse document frequency) which is fine
(Hm maybe this isn't stats and it's some other area of maths, but anyway)
But then it used TF-IDF to produce cosine similarity, which is "We will treat each document as a vector in some high dimensional space. Then, to compare two documents we compute the cosine of the angle between their two document vectors."
From which point I have just been mechanically following the instructions :)
Context: this is entity resolution, so I'm basically trying to compare two strings to see how similar they are
 
Yeah I've looked into cosine similarity before now.
TF-IDF is pretty straight-forward once you've read the wiki page.
 
Yeah TF-IDF makes intuitive sense
 
7:46 AM
cbg @all
 
a = chr(3); print a
output showing some junk value
 
@siddaramesh what should it show?
 
@ReutSharabani thanks; I'll take a look
 
@siddaramesh Try print("\\x{0:02x}".format(3))
 
i'll try thanks
 
7:54 AM
repr(chr(3))
 
@ReutSharabani yes it's working thanks
 
@ReutSharabani hey that's already helped explain some of it; thanks!
 
Cabbage!
I got a bronze “Popular Question” badge for a Java question I asked… I feel bad.
 
lol
Cabbage BTW
 
8:16 AM
Hi, is there anyone who is familiar with gevent? I find one difference between my self-learning and the production code. So I ask here first to get some light. :)
    while True:
        try:
            client = self.serverTransport.accept()
            gevent.spawn(self._serve_client, client)
        except (SystemExit, KeyboardInterrupt):
            break
        except Exception as x:
            logging.exception(x)
The code is like above. When i taught myself, i have to add gevent.sleep(0) to let the new-spawn task to run. but the above prodution code. there is no such code to switch to the new-spawn task.
is there some other way to trigger the new-spawn task to run? or do i miss something in gevent?
 
8:36 AM
@tristan looks as though they've reverted that Chromium change: codereview.chromium.org/1201163002
@tristan (why can't I tab-complete your name?)
@tir huh.
Probably should've just looked at the pictures of chatroom people instead of scouring the chat logs
Now seems like a good as time as any to change my name to tristan and copy his profile pic
 
user559633
@RobertGrant no, that just makes it so debian doesn't drop chromium
 
user559633
it will still be there in chrome and in other builds of chromium. (do you build chromium from source? if no and if you're not using a debian official repo, your chromium will still be there as a google spy device)
 
Sure, yeah I see what you mean
 
user559633
@RobertGrant go for it. while you're at it, you can go to work for me too :)
 
user559633
8:48 AM
and yeah, new name. davidism typo'd my name, DSM made a comment that 3 letter names are best, and that i should change mine
 
which if you translate it back is "thunderstorm with rain"
Interesting.
 
user559633
yeah -- strange because I don't know of an english word "tir"
 
nor me
A google search reveals that TIR (==Thermal Infra Red) is used for detecting rainfall and thunderstorm prediction by some people. Possibly translation offered by an over-enthusiastic meteorologist.
Google is amazing. Allowing for spyware installation, of course ;)
 
user559633
9:08 AM
yeah. i wish their browser and mail solution wasn't so good or i'd stop using their services. also, google fi sounds amazing
 
Cbg
 
user559633
cbg
 
cbg
@tir 'course we should all be running our own mail servers and web servers, physically gapped except when we choose to connect for a short amount of time and refuse to open or browse to anything that isn't plain text. LaTex files should be delivered on a clean flash disk to publishers who might then wish to do trivial things like format them. That would allow us time to disassemble Flash player and other such tasks.
Software as a Service. Bah, humbug. Spyware as a service y'mean.
:D
 
user559633
i like where you're going with that, but i'd suggest that trying to silently back-door a web-browser to poll an audio sensor is a step beyond.
 
Yes - I'm teasing - of course
 
user559633
9:14 AM
If you want to preserve your freedom, you'd make your own CPU rabble blabble
 
I'm not unaware of the potential nasties - to be honest even my non-techy wife was suspicious of "talking to google" as she put it when it first became available. This is a (maybe logical to some) step beyond.
 
user559633
It's just so disappointing because google is otherwise doing good things for the web and their services are fantastic.
 
I do also agree with that (takes off his silly hat and reverts to serious face)
I'm sorta generally pro-Google but my innate anti-corporate stance makes me suspicious.
Which, I guess, is probably a fairly reasonable place to be
 
user559633
With other things in mind, it's just pushing us to a place in which the only web browser is one made by the company pushing for different standards (embrace extend extinguish?), shuts down complaints when they push in binary blobs into open source projects obviously outside of the typical way of doing things, and your linux system lies to you and writes logs in a format you can't plainly read
 
Use Firefox
 
user559633
9:18 AM
I'm pro-google as a consumer, but I don't think I'd ever want to work for them or use my time helping them grow.
 
user559633
Firefox isn't even in the same decade as Chrome
 
Personally, I think harsh. Maybe you do other things to me where Chrome hugely out performs.
 
Yeah I loaded Chrome after yesterday, and other than "it looks old" I haven't noticed much of a difference
 
I think as well, TBH, I will always retain a special place for Mozilla as it took the fight to Microsoft.
 
Yeah same
 
user559633
9:21 AM
Yeah, don't get me wrong, I'd happy work my ass off to help Mozilla.
 
What the heck is going on with Chrome today? Everyone and their granny is asking me to allow the sending of notifications
 
user559633
/me foams at the mouth about desktop integrations in chrome
 
and didn't lose catastrophically.
 
Even people who don't understand the details enjoy siding with the nonsinister little guy
Hence ddg vs Google
 
exactly
I have to say though, I've just looked up browser stats. Didn't realise how utterly dominant Chrome had become. I guess that's android devices
Another reason for me shouting about chrome. I like throwing stones at the biggest player :)
 
9:25 AM
Classic Englishman
I cheer for the underdog
 
user559633
careers.mozilla.org/en-US/position/oAMY0fw4 this stuff worries me though. mozilla is hiring a lead engineer, but wants a project manager for the role
 
Although, no, I see it's not android. In fact chrome is more dominant in the desktop only stats. I find this odd. I use both (I even own a chromebook) I don't get what people find so much better. Maybe it's the process per tab thing just as tabbed browsing was really taking off. Thus the "superfast" chrome sell.
 
@IntrepidBrit do you have my extension installed? I'm sorry this was/is a bug. :D
 
Must not have contributed more than $1000 to campaigns against certain bills
In all seriousness though, I'm not sure that's a PM
 
9:29 AM
@vaultah Ah yes. I've disabled it and everything has stopped asking me
 
user559633
@RobertGrant quacks like a duck.
 
@tir I don't know. I'd want all those things in a Lead Engineer. Surprised it doesn't have more about actual tech skills, though.
 
@vaultah Sooooo, how do I file a bug report? :P
 
I'm rolling out a fix
 
the "Engineer" bit should give that away.
 
user559633
9:29 AM
@JRichardSnape Yeah, almost no mention of tech skills or technical requirements.
 
user559633
'• Sufficient understanding of current front-end and back-end technologies to effectively guide specialists on the team'

that's recruiting speak for "can bullshit well enough that a developer doesn't end your life with a mechanical-switch keyboard"
 
@RobertGrant Hai! You've locked me out! :P
 
yep - "Will not annoy people who can code"
 
Er I have? :)
 
user559633
That said, they're hiring for positions in Berlin, so I think I'll apply for Mozilla
 
9:33 AM
@RobertGrant Fired you a message in a different room
 
@tir cool
Ah the autograder for this edx coursework has been going for about an hour, and it normally takes about 2 minutes. Not a good sign.
 
9:48 AM
Soo, I changed a lot in my extension yesterday (it now works on all sites in SE network) and introduced a very stupid bug: github.com/vaultah/se-questions-notifications/commit/…
I'm really sorry
 
@vaultah No need to apologise. I should have been following your GitHub project
 
Well, I only created that repo yesterday
 
Ah!
That'll do it then
No need to apologise for it mate. I'm just glad you were here to point it out to me
(The notification requests have changed their look on Chrome recently, so I was blaming Chrome for going bezerk)
 
10:05 AM
umm.. some english help please: can I use the "printer" and "printee" terms, to talk about the function which is printing and the argument which will be printed?
btw cbg for all
 
user559633
@PeterVaro "the printing function" and "the function that is getting printed" is more clear
 
@tir the argument that is getting printed
anywho, what has happened to your name?
 
user559633
@PeterVaro sure, that :) printer/printee is fine in colloquial english though (for what it's worth)
 
@PeterVaro It's not normal usage, would cause me to pause to think about it for a second.
 
user559633
@PeterVaro y'know, the economy...
 
10:09 AM
But you'd be able to get your point across, I think
 
@IntrepidBrit hmm.. well, since both of you think it is confusing (who's mothertongue is english) I guess I should drop these terms -- all righty, thanks!
 
user559633
cheers :)
 
yup - late to the party, but I'd agree too (native)
 
kk, thanks all of ya'
 
@tir yeah - what gives with the name change?
 
10:11 AM
@PeterVaro But depending on the context around it, it might give it a certain clarity
 
user559633
@JonClements DSM suggested that 3 letter names are the best and I figured I'd give it a try
 
does anyone know how to create a tablewidget layout in visual studio like the one we have in qtdesigner, i'm only seeing tablelayoutpanel
i just started using it
 
@IntrepidBrit ha - the typical British equivocation ;) Full marks. Well, it might be appropriate...
 
@IntrepidBrit custom implementation of vfprintf, vprintf, fprintf and printf functions which are using printer functions to create the interpolation (C)
@JRichardSnape :P
 
@tir umm.... had you considered that DSM is biased? I miss "tristan" already - doesn't seem the same anymore :(
 
user559633
10:13 AM
@JonClements trolling spotted; no one would ever miss me. nice try, evil ninja twin
 
user559633
ruse spotted and bested!
 
Huh? I don't miss whoever you are - I miss tristan! :p
 
user559633
@JonClements aw. fine fine, using the network association hack. great, now i have an account on math.se
 
@PeterVaro Sorry, I was meaning direct context (ie, the sentences surrounding it). If the text around it is overly verbose, then adding in terms like: "the function that is getting printed" could muddy understanding
 
@PeterVaro What I was trying to say is that we (British) are often reluctant to say "definitely wrong" or "definitely right". It's a sterotype, probably more prevalent in my arena (academia). However, @IntrepidBrit is right to note that too many words can cloud the meaning. If you want to drop the paragraph here, happy to have a look.
 
10:19 AM
@tir Errr... you couldn't think of another site to join? :p
 
He's not wrong. Although, I do know some people who work in definites :P
 
@JRichardSnape will do that later, thanks, right now, I'm only thinking about the words of the documentation -- while working of course ;)
 
@IntrepidBrit Unfortunately, I also know people who work only in imperatives too.
 
user559633
@JonClements actually no. outside of the typical SF/SO/Math/Puzzling, it gets sad and weird, quickly
 
I have become fascinated by dimensionality. I am wondering whether my tendency (learnt behaviour?) to be able to visualise 3D from 2D plans actually inhibits my proficiency in higher dimensions because I tend to think physically rather than in the abstract. Not unrelated to a couple of questions on here, recently.
 
10:23 AM
Umm... well congrats on your maths account... just realised I think I could have changed it back for you :)
 
user559633
@JRichardSnape Sounds like you need a big bag of drugs and a forest to play in.
 
user559633
@JonClements aww shucks, you'd do that for me? kicks pebble
 
Nope - I'd do it for tristan though... oh no... wait... paradox...
 
user559633
I started this new habit of arranging bookmarks by trello tasks. It's pretty great
 
@tir hmmm - I shall refrain from responding to that given that I'm at work.
 
10:24 AM
@tir sounds far too organised to me :)
 
user559633
@JonClements alternative is stressoverflow from a thousand tabs open and trying to soft bookmarks without real metadata
 
user559633
i've got too many irons in the fire i think
 
user559633
i really want to know what davidism's novel is about :/
 
@tir would you now? What a shame :p
 
I think it's a constitution for the room
Along with a security council, and who should be permanent members thereof
 
10:31 AM
I'll just emphasis it has nothing to do with world domination or anything... honest...
 
user559633
@JonClements /me starts rolling up a newspaper
 
I dare you :)
Why are you not tristan yet!? :p
It's really hard to take our resident MTFL seriously called "tir" :p
 
user559633
@JonClements Because SO chat is a second class citizen for the company that has us working for free for them?
 
user559633
also, i really like the ":p" as in "ha ha but serious"
 
11:03 AM
PANIC - action stations!
I am out of teabags
 
OMG! OMG! The sheer thought of that terrifies me...
 
Wow. Always wondered what it'd be like to be part of a real-life emergency
 
@tristan you're back! yay!
 
What do people do in this situation? Is this why people start drinking coffee and then can never stop?
 
@tristan that's better
 
11:06 AM
our real MTFL is back! woo hoo... let's throw a party to celebrate :)
 
user559633
:)
 
Dumb question your way
 
user559633
@VigneshKalai then improve it.
 
What is the use of withopen method other than automatic closing of file object when exception
 
@tristan See... the name change has improved your MTFL abilities all ready! :p
 
user559633
11:09 AM
I figured you'd like that
 
user559633
@VigneshKalai read about context managers
 
user559633
rbrb
 
Rbrb
 
@BadgerCat miaow!
 
@JonClements eeek!
 
11:10 AM
eeek! What language is that? :p
 
Hmm... python?
 
Snakes go eeek? Umm... I've been lied to all these years about the "hissssssss" then...
 
I just realised that you're a mod!
I have been living under a rock... congrats!
 
Only for just over a week - so I'll let you off for not noticing previously... thanks though :)
 
Full marks for getting mod and rock(er) into the same comment.
 
11:15 AM
This is the best day ever.
 
Why - what's happening?
 
You're a mod? I'm tempted to go wake up @copy shouting the good news.
 
@IntrepidBrit worlds collide, black holes are born, chasms of despair open before your very eyes
 
@BadgerCat I wouldn't consider that making it the best day ever... I think just finding out you've won the lottery would trump that by a mile ;)
 
Well yeah, but I haven't won it.
 
11:20 AM
Well try harder - then feel free to through a python room party for all of us :)
 
I might do that, you all just have to come to Germany
 
I could do with seeing more of Germany. I've only ever rushed through on business
 
New SOPython project: build a Universe Simulator accurate enough to predict which ping-pong balls will come out of lottery machines.
 
@Zero we haven't even finished nidaba yet... give us time :)
 
Once we've got that working, we can use the some of the profits to work on the time machine that will send the rest of the profits back to us to work on the universe simulator.
 
11:25 AM
Such a simple yet cunning plan... I like it
 
I like Zero Piraeus' plan. But let's sit back and wait for FutureIntrepidBrit's contribution
 
He's probably too busy drinking the scotch with the profits he took
 
Ha - I just had to verify that I'm not a robot to submit an answer. I didn't realise my prose was so obviously stilted.
 
Sounds like him.
 
wonderb0lt.cabbage()
 
11:30 AM
Set-Cookie: greeting=cbg; domain=.wonderb0.lt; path=/
 
@tristan as I said it reduces typing and closes the file object when finished is there any other advantage to it correct me if I am wrong
 
@ZeroPiraeus I've always wanted to register wonderb0.lt
 
Twenty bucks isn't a fortune ...
 
Unless you don't have it, in which case...
Anyhow. Lunch for this procrastinator. Then yet another presentation to prepare. Deep Joy
 
Well, the lunch bit sounds okay at least :)
 
11:45 AM
Can I ask a question
 
Probably.
 
Yep :-) Also, please read sopython.com/chatroom (especially "You do not need to ask if it’s okay to ask a question").
 
list_to_search =['TRC_BTM', 'TRC_HCI', 'TRC_L2CAP']
dict = {'TRC_BTM': '6', 'TRC_HCI': '6', 'TRC_L2CAP': '6'}

filename ='input.txt'
aa=open("sad.txt","a")
for a in open(filename):
    if any(ext in a for ext in list_to_search):
        for value in list_to_search:
            if value in a and "=" in a:
                aa.write(value+"="+dict[value]+"\n")
    else:
        aa.write(a+"\n")
aa.close()
 
Ah - Zero in before me
 
This works fine but it adds additional new line when else case is running
TRC_BTAPP only.
TRC_BTM=2
TRC_HCI=2
TRC_L2CAP=2
The input file is
 
11:47 AM
Doesn't a already have a newline in it?
 
Do you understand why it does that?
 
Solution: drop the +"\n" ...
 
oops - one at once. I'll leave it to you, zero
 
Reason: a is a line from iterating over the file, and already includes a newline.
@JR You can take it from here bud :-)
 
Oh thanks folks didn't know that
 
11:50 AM
Domain: wonderb0.lt
Status: REG REQUESTED
\o/
 
Lithuania stronk
 
I like this word "stronk". Reminds me of Helena from Orphan Black.
 
Seestra!
 
11:54 AM
A truly terrifying woman
 
The actress does such a good job
It blows my mind
 
She's awesome, yeah :-)
 
user559633
I wish they'd teach her another word though :)
 
user559633
Sistra sistra my sistra sistra sistra. Sistra? Sistra.
 
It's the first show where I actually forget that she's the same actress
 
11:56 AM
I met a guy with a Masters in CS trying to learn Python. He couldn't read regular expressions. Said he had only programmed in C++ and C#. What's up with that?
 
user559633
@AaronHall That if you're doing academic coding, you can avoid regex for years.
 
user559633
Also, depends on the program for depth and breadth of knowledge.
 
@RobertGrant the Romans did have steam power, of a sort. It didn't catch on because slaves were more efficient.
 
When I was Uni, I learned regular expression syntax. They taught us it without telling us "why" it was useful. So I stored that under the "learn to pass exams category"
 
11:59 AM
@AaronHall I only know enough regex to ask where the bathroom is.
12
I do most of my string matching with startswith and in and what have you
 
user559633
language learning joke? that's a starring
 
user559633
okay, rbrb going to the market before work
 
@Kevin Eventually that doesn't work.
 
There was a tremendous storm here last night... I looked skyward and said, "is this about my Sims joke from yesterday?"
 
Anyways, we discovered he doesn't know regular expressions when I attempted to give him the regex for a legal Python name.
 
12:02 PM
I can usually puzzle it out if it just uses "+" and "*" and "|" and parens
 
Well he learned a little bit last night
I just don't get how you get a MS CS and don't know regex
 
is reminded of that time he was feeling evil and suggested someone use .(?#nyh2p){0,1} to solve a problem
 
It does surprise me a bit. In college when we went over the non-deterministic finite automata that governs the behavior of a regex, it struck me as highly academic (in the sense of, you don't need to know it to actually write code)
(unless the code you're writing is itself a regex engine)
You'd think an MS would be all over that
 
Isn't that something you do after having done a bachelor's in something else?
 
morning friends
 
12:18 PM
Wotcha.
 
@Robert depends. To take the example of physics you can do a 4 year course and get an MPhys (Master of Physics) but you never get a BSci or anything. Then again you could do an undergraduate (either BSci or MPhys or whatever) and then do a 1-2 year postgraduate MSci as an extra to your previous undergrad studies.
There's also other 4 year courses, MChem, MEng, etc.
 
I wish more projects for work were in python :\ javascript is getting tedious
 
And depends what country you're in. You need to 5 years for a master's in Scotland (bachelors, honours, masters)
 
United states is 6 years for a masters I think
 
Ah yeah true. For example I did a 4 years Masters (MPhys) and then a 3.5 year PhD.
PhDs in the States can take a silly amount of time.
 
12:23 PM
@IntrepidBrit SA works that way as well
 
@AaronHall I programmed C++ then Java for 10 years without ever having used a RegEx. When I first heard the term it was well beyond my MEng (admittedly not a CS degree, but I think the point still stands)
 
PhD in the United states I think is over 8 years? Something ridiculous
 
Maybe it's a third world thing
 
Awesome. I thought we just did it alone in our own odd way up here (like our legal system. guilty, not proven and not guilty)
 
waits
 
12:24 PM
Nice
 
@Ffisegydd Going on personal experience, so can PhDs in the UK...
 
@JRichardSnape at Bath you're not allowed to take more than 4 years, unless you have extenuating circumstances (medical reasons, etc).
After 4 years they will literally not allow you to submit/continue.
 
That's because Bath is a proper university...
To be fair, I have had some extenuating circumstances. But I must submit asap
 
Hah yeah okay but it's the norm in the States to take a longer time :P
You can borrow mine if you want, just change the name.
 
12:27 PM
Fizzy J Richard Snape
 
Dibs next
 
FYI been playing "Sunless Sea" lately. It's very good, well worth a go.
 
I could do a Sokal. "My thesis on amorphous materials reflects the heterogeneity of the observing populace in a Deleuzian space time continuum."
I look forward to this post PhD life you speak of
 
Well I made it out of University never writing a regex (bachelor and half a master's degree in CS)
 
I think we did a module that included some Perl, so that's the only reason I saw regexs at uni
 
12:30 PM
So I'm not that shocked
 
stackoverflow.com/questions/31024159/… I gave a reasonable time to edit, I think.
 
Am I the only person to not have gone to uni here? :(
 
I suppose people think of CS as programming when really it's actually "computer science". Doesn't strike me as too strange that people wouldn't have studied regex.
 
Yeah our course was apparently quite well-balanced between CS and practical stuff
 
12:31 PM
I'd have thought you'd be buried in algorithmic theory
 
Of course now I wish it were more CS
 
My Master's was way too theoretical for me so I was happy with the rather practical nature at my uni. I'm just too dumb for complex maths
 
So am I; I just wish I had that knowledge :)
 
Okay, me too then. One would always like to be smarter, I guess :P
 
@JonClements I went, but dropped out after a year.
 
12:37 PM
@Zero ahh... I feel better now... I may not have gone to uni, but at least I didn't fail :)
 
So much of good programming is the result of self-directed learning, that college is even less useful for us than it is for ordinary industries.
 
So what would bad programming be?
 
@JonClements I've produced some examples
 
12:43 PM
hrmph. Would it be possible to extend on an instance of a class and have it still work?
 
"extend on an instance" sounds unusual to me.
 
"Extend on" is weird - do you mean extend?
And do you mean add things to an object, or do you want to modify a class and have that modification affect objects of that class?
 
I'm probably using more terminology from javascript; basically I am using a schema class, but I want to add a key AFTER it's been instanced
 
In python, I think you can just add arbitrary members to an object
e.g.
class Schema:
    def __init__(self):
        self.field_one = 'Name'
        self.field_two = 'Address'


if __name__ == '__main__':
    s = Schema()
    print(dir(s))
    s.field_three = 'Phone Number'
    print(dir(s))
Is that what you're after?
waits for lurking experts to pick apart what's wrong with that example
 

« first day (1712 days earlier)      last day (3237 days later) »