« first day (1467 days earlier)      last day (3475 days later) » 

1:18 AM
cbg all
 
Anyone use Djaneiro in Sublime? Am I missing something, an SO post says it has color schemes but not seeing any new scheme in my prefs.
 
 
2 hours later…
user559633
the "i know i haven't done the work for this question, but don't downvote it" pushed it over the edge for me
 
4:02 AM
This guy is amazing
 
@thefourtheye you mean amazing in the context of the number of questions asked??
 
and the popularity of the questions
 
@thefourtheye Just so ya know that is solo fisher's 3rd SO question on the same python problem set. And that's all his SO activity, ever.
 
Actually, I feel that his question is far better than most of the questions which we see these days. Atleast he has given some code which he tried. And I havn't slept in two days, so I was little upset when he came up with new constraints :(
 
4:17 AM
You mean the code he slowly pieced in from the other half dozen people who answered the other three questions. Slowly pieced in because using 'too advanced' topics might look like cheating.
Oh well. Shouldn't fan the flames. SO is full of good stuff to look at.
 
5:02 AM
Cabbage
 
how do i use %timeit on this??
%timeit for p in lxml_tree.findall('.//{' + w + '}p'):
            text.append(''.join(t.text  for t in p.findall('.//{' + w + '}t')))
tried using semi colons too.. but errors
 
put it in a function and time that
 
will that be using timeit.timeit??
 
no, I mean put that code in a fuction, then %timeit my_function()
 
thanks , worked..
 
5:06 AM
you can also use %%timeit to time a mult-line cell
 
list comprehension will be faster ,right?
 
cbg all
 
yes , i did but it had returned a warning that are you sure it is multi line as something's blank
 
cbg, and rbrb, time to sleep
 
rbrb @davidism
 
5:07 AM
rbrb @davidism
 
UsageError: %%timeit is a cell magic, but the cell body is empty. Did you mean the line magic %timeit (single %)?
@Jerry cabbage,regex lootmaster
 
cbgcbg
 
@Jerry Why doesn't this work? re.sub("(\w+)\1", "\\1", data)?
 
raw your string
better as re.sub(r"(\w+)\1", r"\1", data)
 
Oh yeah, I should have done (\w+)\\1 otherwise.
Thanks :-)
BTW, re.sub(r"(\w+)\1", r"\1", "cbgcbg") ;-)
 
5:40 AM
Whoo, I guessed the answer right
 
5:50 AM
what the cabbycab, peeps
 
@thefourtheye Well... cbg*3 then :D
 
Cbg
 
cbg cbg
 
6:46 AM
And it got an upvote and I can't re-downvote it D:
 
7:21 AM
I think this was discussed in this room before
One day ago
 
7:43 AM
Cbg :)
 
8:00 AM
(Not my copy)
 
Ooo
Just a quick cbg... gotta get emails done... rbrb in a bit
 
:D
 
You broke my streak!
I'm on a one-man-cv-pls-mission.
 
I'm sowwy :(
 
8:42 AM
I am abandoning my one-man-cv-pls-mission to actually do some work.
 
@Ffisegydd is that a game?
 
Is what a game @Swordy?
 
beyond earth , over
 
Ah. Yes it is.
 
you play on desktop or a laptop?
 
8:45 AM
Desktop.
My laptop probably couldn't handle it.
Or if it could only on lower quality.
 
yeah.. laptops only for work and movies
 
Not true at all.
I used to have a gaming laptop that was as good as most desktops.
 
yeah , don't forget to mention the price tag as well
Desktops are a hell lot cheaper..
 
True. Though my gaming laptop wasn't too bad, it wasn't ridiculously expensive. Just mildly ;)
You get what you pay for in the end. This is why Macs are expensive, because they're good.
 
morning cbg
 
8:50 AM
One reason is the OS . it is fully optimized for a limited set of hardware.. Windows on the other hand , has to be compatible with many different systems and their variable hardware specs..
intel dual core to an intel i7 4th gen..
 
Yes true.
It's the difference between half-assing lots of things or full-assing one thing.
 
ninja and puppy enter together..
 
@MartijnPieters haha, I have read all the documents I can find about multiadapters; yes, if the target interface is IRequest, the adapter chosen can also be for adapting to IFancyRequest; just I can't find anywhere info on how the matches are scored...
 
9:09 AM
cbg
 
1941
Q: Why does HTML think “chucknorris” is a color?

user456584How come certain random strings produce various colors when entered as background colors in HTML? For example: <body bgcolor="chucknorris"> test </body> ...produces a document with a red background across all browsers and platforms. Interestingly, while chucknorri produces a red back...

 
9:31 AM
@Swordy sssh.... you'll start rumours :)
 
9:45 AM
ignore it ,I'll ask on SO
Just realized they were parentheses in 平成角ゴシック font
 
11:23 AM
Do KFC restaurants play music from some constant playlist?
Same music set was exactly 2 weeks ago, same time of the day
 
@vaultah Do you have a regular fortnightly appointment at KFC then? :)
That'd be a better question :)
 
HELLO hello hello
 
@RobertGrant None of that. You'll say Cabbage as your peers taught you.
 
I did, five hours ago :)
 
@Robert nah... we can't let that slide... else people will be like "Yeah, I did once upon a time" and that way lunacy lay!
 
11:37 AM
@JonClements but then where's your cabbage? WHERE DOES IT END, PEOPLE!!??!!11eleven
 
@Jon no :D hopefully I'll never become a regular in KFC
 
But I'm not a person...
 
cbg :)
 
11:53 AM
@Ffisegydd love to vc on mikko's question on SO, after all he was the one who cured my perlitis :D
 
@Antti that sounds a horrendous condition to have :)
 
a debilitating disease indeed
 
bet it requires a large amount of psychiatric attention....
 
Do you still require trigger warnings for parentheses?
 
12:35 PM
 
I can never go back to a language with limited precision integers.
Too much of my old C++ code is riddled with handling for corner cases like "but what if the user enters 2**16+1 phone numbers?"
If higher level languages can abstract away one thing, let them abstract away the restriction of numbers into limited bit sizes
 
1:16 PM
morning you beautiful people
 
cbg
i am using from foo import * , to avoid circular imports, is it a good practice?
 
don't do that
 
No.
Sometimes using from x import * will cause you troubles.
It's generally good practice to not do it.
 
I think you can use __all__ within the file to define what is imported, no?
 
__all__ will define what is imported by * yes.
I prefer import x as y personally.
 
1:22 PM
an alternative for me is to use django signals, which makes testing code a bit difficult.
 
I use regular non-star imports, and I think I've had maybe one circular import problem in the last three years. I don't even know how I did it, it disappeared after my next check-in.
 
hey @Ffisegydd , do you think SOPython might benefit from pagination on common questions tag?
 
@corvid yes I think so once we start to increase the number of common questions. Of course it'd be nice if we had searching by tag/search bar before we apply pagination, otherwise we just make it awkward to find things for a while.
For now I don't think it's necessary, but that's no reason to not implement it I suppose (planning for the future).
 
cbg, @all
 
Once Nidaba gets going we may be able to find a lot more commonly asked questions.
 
1:26 PM
I came across a question today that could use a common post: "this function prints a value and I want that value in a string, what should I do?"
"redirect stdout" is a complex enough process that it could use a canonical guide
 
this is kind of frustrating :| I spent a lot of time implementing an online interactive java practice test for students and literally none have looked at it and the midterm is tomorrow
 
Please join me in the despair pit known as "does anyone even use my work?"
 
@corvid as part of teaching experimental labs I would look at their lab books for them and suggest improvements. I once spent 15 minutes explaining to someone in detail how they could improve their book, and hence their mark, with minimal effort. I pointed out examples of where they were wrong and how it could be made all good. They said "Thanks" and then immediately handed the book into the lecturer without a second look. In short: students are ****ing lazy.
 
A despair pit is a lot like a ball pit, minus the balls.
 
I'm in the Mariana of Despair trying to work out why my email server won't work
 
1:31 PM
I wish I was in a despair trench. There's more leg room.
 
@Ffisegydd yeah, what's especially frustrating is this class is one where students have been noted to have a lot of difficulty to begin with. So the school funded extra money into it to help students. Now I think I'm seeing why students are doing so poorly... not because the material is hard but because they're lazy
 
All* students are lazy.
 
Devil's advocate: the students aren't lazy, they're calculating. If they're interested in only pass/fail, they have no reason to spend even ten seconds altering their work from C quality to A quality.
 
I was lazy. I did the work but I did it in such a way that I did the minimal amount of work necessary.
 
"Here's how you can improve your log book". "yeahhhh, or I could go party tonight and get course credit anyway"
 
1:34 PM
I do the work but I usually like to do it in the way I want. Because I'm stubborn. I once wrote an operating system simulator in javascript. It was awful.
 
this might be a dumb question, but what is the "excerpt" in the canonical questions form? Just example code? Then body is the English representation?
 
Sounds like a reasonable interpretation.
 
@corvid Excerpt is what appears in the index.
Body is what appears in each question's individual page.
The excerpt should contain a small amount of detail so people can work out what it's referring to. The body can contain a lot more detail, including code, etc.
 
cool, do canonical questions require authorization?
 
1:42 PM
cbg
 
@corvid what do you mean? Reading them? No.
 
just added a canonical question
 
I've been looking at Twitter's docs on Scala futures, and they look very powerful. Looking at concurrent.Future it doesn't seem quite as good, e.g. in Scala you can combine futures and do scatter/gather with them.
Can Python futures do that, or is that more event loop territory?
 
user559633
cbg all
 
1:58 PM
Yo
 
baf(9000) # because I just saw this
 
user559633
 
Wow @tristan I just came in here and I was just watching that.
What's another word for class (like a place where you go to learn)?
 
what's the proper negation of something like "there is no greatest negative real number"?
 
user559633
"there is no no greatest not positive real number"
 
2:10 PM
there is a greatest negative real number?
 
user559633
or total negation "there is a greatest positive real number"
 
or there is a worst positive fake letter
 
user559633
yesss
 
user559633
there is a worst mediocre fake ass bitch glyph
 
Oh, I was just gonna write "there is a greatest negative real number... NOT!"
 
user559633
2:11 PM
^^ i'm almost positive now that this is what you are looking for
 
just trying to figure out the proof by contradiction
 
yo wassap
 
This is an impressive amount of music: ddrkirbyisq.bandcamp.com/music
cabbage @MrAbdul
 
user559633
it definitely is a lot of it.
 
hey @davidism does SOPython have a markdown guide?
I looked back at the code to format things
 
user559633
2:23 PM
i added vim to the list of IDEs. i hope this is cool
 
Listening to his remix of The Black Box album right now, and it is amazing. :)
@corvid it's just regular markdown, with the extensions enabled, but the extensions have no good documentation anywhere
 
Ooh, I know the proof by contradiction for that. "Assume that there is a greatest negative real number, X. Let Y be equal to X / 2. Y is negative and greater than X. Therefore, X is not the greatest negative real number. This is a contradiction".
Therefore, there is no greatest negative real number.
belongs on Meta.
 
buh, I don't get how to integrate irrational numbers in proofs
 
Hi does any one here have experience with kivey?
 
just ask your question, someone will answer if they can
 
2:38 PM
Do you mean "integrate" in the mathematical sense, "finding the area under a curve"? Or the usual meaning, "incorporating into a larger work"?
 
user559633
@MrAbdul read the faq sopython.com/pages/chatroom
 
DSM
Cabbage, all.
 
Yo.
We're at four close votes now. This is surprisingly difficult to migrate, considering how obvious the title is
 
DSM
Client wants results by mid-November to present for government budgeting purposes. Client keeps promising data that mysteriously never arrives. Client presents difficult-to-believe data. And client can't even agree with itself about how many people it serves (100k or 150k.) And yet, somehow, client is going to be unhappy with us when this goes all 'splodey.
 
2:55 PM
@tristan sorry thats my first time here thanks for the rules
 
@tristan Nice production values. I wonder if the bit with the guy clapping at the end is an intentional reference to the slow clap from Citizen Kane.
 
i was just wondering is kivey capable of hardcore 2d platform rpg? is it easy to implement a currency system and a shop system and weapons system?
thanks in advanced
 
I expect it's as easy to implement those things in Kivy as it is in any other UI library.
 
Yes, anything is possible, but (and this is the tricky part) you'll have to program it.
 
They aren't going to just hand you a pre-built ShopSystemInterfaceWindow class, but there's nothing keeping you from making one yourself.
 
2:59 PM
haha yah i know that i am just started learning python and i love it it is so beautiful
so if learn python will kivy be easy to pick up?
 
Well, it will be easier than if you don't learn it.
 
In my opinion, it takes 20 years to really "learn" any one language. So, yes, if you have 20 years of experience in Python, then Kivy will be easy to pick up by comparison.
 
Not to discourage you, but just about every new programmer at some point thinks "now I can make an RPG!" without realizing what they're in for.
Might want to start smaller.
 
i am only 19 lol but i am sure that if i put in the work and ask you guys if i get an error i will do it in no time haha
 
If you mean "is it easy to learn Kivy while I learn Python at the same time?" no, I don't think it would be. Nor would it be easy to learn any other library, because learning a language is already inherently hard by itself.
 
3:03 PM
Long ago when I used Game Maker, you could always tell who the really new programmers were because they'd all announce "I'm making an MMO, it shouldn't take too long."
 
but i heard that python is easy to learn
also i don't think that anything is wrong with making an rpg, i know it isn't the easiest to create for a new programmer but i don't think it is that hard
 
Sure, it's relatively easy to pick up the basics, but there are a ton of secondary concepts you need to learn and systems you need to design to make a game.
Consider trying to recreate Asteroids as a way to evaluate the difficulty. It is a much simpler, still complex, task to start with.
 
I don't see any harm in trying something that might turn out to be too hard. Just remember, there's no shame in putting aside a project halfway through so you can try something easier.
 
Again, not trying to discourage here, I started a ton of projects that I never finished, just for the sake of experimenting.
 
Wow... something going on at the Canadian Parliament
 
3:08 PM
Just don't get into the mental trap of "I HAVE to write this RPG or else I'm a failure" and you just get more and more frustrated and eventually abandon programming entirely
 
user559633
3:21 PM
@JonClements yeah. based on what i'm hearing of the motivation, "shit is about to get real" on this side of the pond
 
user559633
3:33 PM
I love working from home. related: youtube.com/watch?v=aNwFwzyc-kQ
 
DSM
@Kevin: hard to resist wrtiting lst[:] = ['{}-{}'.format(k, mean(float(p) for c,p in g)) for k,g in groupby((x.split("-") for x in lst), key=lambda x: x[0])] or something else equally unhelpful.
 
Cabbage all!
 
cabbage?
 
I considered doing basically that, but I didn't want him to go "oh yeah, and the countries aren't necessarily grouped together"
 
DSM
Could always add a sorted..
 
user559633
@MrAbdul i see you didn't read the FAQ i linked you, even though you thanked me for making you aware of it .__.
 
@tristan So I've found my new alarm clock.
 
The "proper" answer is probably, "stop storing your data in a list of strings. create Match instances with team_name and score attributes"
or whatever the use case is, I can't even tell
 
DSM
Yeah, it's an absurd format.
 
user559633
3:41 PM
@Iplodman :D
 
@tristan If you're interested, this one works well.
 
@tristan i did and it said flufly animals are cool
 
@IntrepidBrit ;)
 
3:56 PM
I feel like I am doing something terribly wrong here.
 
I was summoned?
 
That you were!
Click the winky!
It's about the Scots :P
 
Ah yes! That old chestnut
Gotta love a cheeky bit of QI
 
Very much so c:
 
4:18 PM
anyone here got an Android phone and want to be my temporary best friend?
 
Sure c:
 
Aha
 
@corvid What version you on?
 
corvid.me/CSCI303/midterm/midterm.html Does this look correct, Iplodman?
 
DSM
pretty
 
4:19 PM
Version of what?
 
@corvid Ignore me ;-;
What is it, exactly?
 
DSM
so colourful!
 
I'll never ignore you, Iplodman <3
 
But it still looks purty as yam.
 
it's a midterm assignment in a web apps class, the premise is just for "national reptile day"
 
4:21 PM
@corvid My Danish poop! <3
 
Hey Sean
 
Greetings @corvid
 
@corvid Looks good to me!
 
do you get a random reptile?
 
Yep!
 
4:24 PM
most excellent! That assignment was bretty easy, just had to do a mobile redirect and some dom manipulation
 
@corvid I can't wait until I start getting tricky homework :c
I've started making homework harder for my self because I enjoy it more, like writing diagrams in LateX instead of drawing them.
 
what year you in? College?
 
Woo hoo... my email server appears to work
 
proud of you jon
 
and using SSL certificates...
that's been a struggle collapses on desk
 
4:40 PM
@corvid year 10 Secondary school :P
(I'm 14-- college? I wish! c:)
 
why is it that when I do setup.py to a project, then do pip install [something] && pip freeze > requirements.txt, it includes the project I am in? Am I doing something wrong?
 
@JonClements what was involved in setting that up?
 
@davidism lots of swearing
 
haha
 
@davidism I went through this guide then spent several hours trying to work out why it didn't work, because it misses out or has a few incorrect bits in it...
and the errors you get really aren't that useful
 
4:51 PM
Gah I hate it when that happens - way to go @JonClements!
 
I'm feeling rather pleased, if a little peeved it's taken an entire f*ing day of faffing about
More respect for sys admin's now though :)
Awesome - it's been up less than an hour, and it's already getting random connection attempts :)
 
DSM
Everyone wants to welcome it to the global community.
 
@DSM I have certain doubt the Iranian IP is doing it to be friendly :)
 
Oh, just noticed that the guide was Linode's
Their guides are usually quite thorough
 
Umm... appears the solider that was shot in Canada has died :(
 
4:58 PM
ick, any ideas as to the motives yet?
 
no... probably won't take too long before we find out though....
 

« first day (1467 days earlier)      last day (3475 days later) »