« first day (1287 days earlier)      last day (3655 days later) » 
01:00 - 15:0015:00 - 00:00

1:36 AM
Hai, python!
 
user3444876
2:33 AM
Cabbage All
 
5:01 AM
cbg
@JonClements the question is how to get that working on python 3 ... :P
@JonClements alas, the python3 re is borken
 
@AnttiHaapala broken? Why so?
 
it can work only on str, so not so very good for binary data ;)
though ofc jons code above wouldnt work for many definitions of word character
    import mmap
    from collections import Counter
    import re

    with open('/etc/passwd') as fin:
        mf = mmap.mmap(fin.fileno(), 0, access=mmap.ACCESS_READ)
        word_counts = Counter(re.finditer('\w+', mf))

    print(word_counts)
 
Cabbage All
 
cbg
ah
but byte pattern works :D
import mmap
from collections import Counter
import re

with open('/etc/passwd') as fin:
    mf = mmap.mmap(fin.fileno(), 0, access=mmap.ACCESS_READ)
    word_counts = Counter(re.finditer(b'\w+', mf))

print(word_counts)
 
@AnttiHaapala Yup, Just add b
 
5:11 AM
I wonder what the "works" there is actually,
still ascii [a-z0-9] matches
 
@AnttiHaapala They may be compared with their byte values... Not sure though
 
5:23 AM
For 8-bit (bytes) patterns:
Matches characters considered alphanumeric in the ASCII character set; this is equivalent to [a-zA-Z0-9_].
so no UTF for bytes ;)
but ofc it didnt work on 2 either
 
5:45 AM
Cabbage
 
 
1 hour later…
sue
7:04 AM
testing
 
7:41 AM
@MartijnPieters The same guy, said this to me today :'-(
i belive u have another account and upvoted urself ;) but i give vote.for excellent answer — Sundar Nataraj 3 mins ago
 
@BartoszDabrowski Thanks man :)
 
8:25 AM
Cbg all
 
8:37 AM
Cbg everyone. Rather quiet in here don't you think.
 
@sshashank124 it depends on the time of day. It's only 9.40am GMT.
It tends start getting busier at this time of day
 
@Ffisegydd, True. Its 4:40 pm here.
 
At this point British/European people start to get active, then in 6-7 hours time our American compatriots start to come online also so it tends to stay pretty active from then on
 
@Ffisegydd, Even the rate of questions seems much slower right now.
 
It's a good chatroom though. I actually prefer this side of SO to the Q+A side. In the Q+A side it is far too much a "race" to help someone, and a lot of the time the people that are asking questions don't need a sterilised answer, they need to talk to someone about their problems, so if they come here it can be better for them in the long run.
 
8:44 AM
2PM over here in India.... The typical "Can't work, I need to sleep after my lunch" time.
 
9:11 AM
cabbage!
 
cbg @Terfin
 
@Ffisegydd Potato?
 
cabbage guys
 
Banananananananana
 
@LevLevitsky cbg
 
9:14 AM
@Pulimon he he he All Indians have the same emotion :D
BTW, Cabbage all :)
 
Hi
 
cbg all
 
@MartijnPieters cbg
 
@thefourtheye That user seems to not yet understand how SO works.
The flag is still active.
 
@MartijnPieters Yup, I asked him to flag my answer, if he suspects that I sockpuppet... Then he said slowly backed off...
 
9:24 AM
There's a Dutch saying, that roughly translates to "So the innkeeper, he'll trust his guests".
It's by your own nature you judge others.
If someone comes up with outrageous claims of unacceptable behaviour without proof, it may well be its because that's how they'd behave.
 
Thats true...
I have a question. Why deque is not considered as a Sequence?
print(isinstance([], collections.Sequence))
# True
print(isinstance(deque(), collections.Sequence))
# False
print(issubclass(list, collections.Sequence))
# True
print(issubclass(deque, collections.Sequence))
# False
 
Because it's a double ended queue ? :)
And sequences are required to be directly indexable whereas a linked list structure is not?
 
9:39 AM
@JonClements Oh, but this works...
print(deque([1, 2, 3])[1])
# 2
 
@Jon BRIIIIIIIIIIIIIIiiiiiiiiiiiiaaaaaannnnnnn....
 
@thefourtheye I think that what @JonClements means is that you need the indexing to be an O(1) operation, whereas in a linked list it is potentially an O(n) operation.
 
@Terfin Oh, got that. Thanks :)
 
Thanks @Terfin :)
deque[0] and deque[-1] are O(1)... the middle bits might take some time...
 
@thefourtheye also I do believe collections.Sequence is a higher-level object wrapper, vs. a generic Python object implementing something like e.g. the iterable protocol – I don't know but I don't think most standard-library “sequences” would be built on collections.Sequence at this point.
 
9:43 AM
@JonClements Thanks Puppy :)
@fish2000 object wrapper?
 
If there is anything about CS I REALLY love, is Data Structures and Complexity. Those two subjects actually make you think deeply about each decision you take regarding choosing the correct DS to solve a certain problem. Especially planning a complex DS, I simply love that.
 
0
Q: Wanted: a friendly and knowledgable soundboard for coding (Python).

RolfBly(Having read could we be a bit nicer to new users and related posts.) I work alone, every now and then coding in Python (which I enjoy), on medium to small projects. I often wish I had a sound board, just to reflect on approaches to a problem, tools, libraries, and so on. As one would with coll...

Heads-up, I pointed him to this room.
 
@Terfin Sometimes the things we love the most, confuse us a lot :D
 
True. It is confusing sometimes.
 
@thefourtheye not the least ambiguous term I could have used, admittedly – collections.Sequence is an abstract base class that exposes a bunch of methods for a Sequence-y object (as I understand it).
 
9:48 AM
My fiancee is also very confusing sometimes.
 
@Terfin As someone who has been married for 18 years: that'll never go away.
 
@MartijnPieters So I've heard
 
Try to make it a source of fascination, not frustration. :-)
 
Nah, I am not frustrated at all actually!
 
@fish2000 Try this
import collections
print(isinstance(range(10), collections.Sequence))
# True
 
9:51 AM
brb
 
What is this cabbage all about? Is the way to say hello here?
 
@thefourtheye rite totally – but if you look at the bases it gets tricky:
 
^^ that
 
>>> print collections.Sequence.__bases__
(<class '_abcoll.Sized'>, <class '_abcoll.Iterable'>, <class '_abcoll.Container'>)
>>> print range(10).__class__.__bases__
(<type 'object'>,)
@thefourtheye I was just offering the caveat, if you were testing explicitly for inheritance (vs. behavior, duck-punch style) – that’s all I was saying. Pardon me if it was tangental and/or confusing, yes!
 
9:55 AM
@fish2000 That is okay :) I was trying to understand their behavior. Thanks for the help :)
 
@Ffisegydd Melon
 
> This module provides abstract base classes that can be used to test whether a class provides a particular interface; for example, whether it is hashable or whether it is a mapping.
 
@thefourtheye Yeah, I actually just took a look at collections.Sequence.__metaclass__ to discover the ABCMeta
 
@Terfin Do you know how to access the metaclass from the code?
print(collections.Sequence.__metaclass__)
# AttributeError: type object 'Sequence' has no attribute '__metaclass__'
 
Oh Python 3, nvm I was looking at Python2.7
Lemme take a look at Python 3
btw, in Python2, these lines exist under _abcoll.py that comes with the Python2 standard lib:
Sequence.register(tuple)
Sequence.register(basestring)
Sequence.register(buffer)
Sequence.register(xrange)
and
Sequence.register(list)
Which is what I suspected after I found out the ABCMeta.
 
10:03 AM
print(collections.Sequence.__class__) # Python 3
 
Abstract base classes are pretty nifty… but their use of baroque metaclasses to bend runtime inheritance to their will is often at odds with, say, how protocols and duck-typing typically work.
IMHO of course.
Not a bad thing, just gotcha-prone, for certain mindsets
 
I don't know much about OOPS, as I don't like that, much.
 
@thefourtheye Ahh I see now. Aight if you take a look at the source, collection.Sequence inherits from a class named "Sized" (and 2 other classes, but it is irrelevant at the moment)
Sized itself has the ABCMeta as a metaclass.
 
Plus there's numbers.Number for instance...
 
@Terfin This table is pretty neat, I guess
 
10:10 AM
@thefourtheye Yeah, or you can simply look it online and not dive into the source like the 'tard I am xD
 
@thefourtheye I find that isinstance() is more trouble than it is worth, especially if you’re passing it instances of totally unknown provenance (e.g. something returned by dequeue(), or a promise-style return value, etc).
 
isinstance is rather unpythonic. When you deal with duck typing, you more care of whether an object conforms to a certain set of operations or has a certain set of attributes, less whether it is a class X or Y or even if it inherits from X or Y.
 
@Terfin source is always a 'tarded-good read, when it comes to other peoples’ libraries (even/especially GvR’s work)
@Terfin totally (w/r/t unpythonic)
 
@fish2000 We don't have promises in Python, I guess...
 
@thefourtheye not natively – but while Python’s non-laziness makes it difficult they can be implemented (like e.g. by Celery)
 
10:16 AM
Also regarding metaclasses, I love metaclasses. They are a great way to confuse others who try to debug your code at runtime instead of looking at the source :P
 
@thefourtheye my (poorly-phrased) point with that was that they can be a source of instances that can confuse poorly-concieved isinstance()-based branching code.
(by “they” I mean “promise-style lazily-evaluated objects”
)
 
@fish2000 non-laziness? Most of Python is Lazy in 3.x I believe :)
@Terfin (muhuhahaha evil laugh)
 
@thefourtheye Try to debug SQLAlchemy once... you will see the true nature and evilness of metaclasses.
 
@thefourtheye not in the same fundamental way as e.g. JavaScript – that is why one still finds things like this:
... which can confuse isinstance() in both Python 2.7 and Python 3
 
Hey guys, we've discussed Python for over 30 mins in a row I think, it is quite possibly a new record in this room :P
 
10:27 AM
@Terfin I can fix that
 
@Ffisegydd Thanks, I got a bit worried.
 
@fish2000 Too much classes :(
@Ffisegydd Who tipped him?
 
Java programmers.
 
@terfin I don't know what you could possibly be implying there ;-)
 
Gasp! Those evil statically typed bastards!
 
10:29 AM
@thefourtheye rite?? that’s why you don’t see much promising in Pythonland
@Ffisegydd I knew they were all a bunch of bunnytippers
 
@fish2000 mmm, I guess the reason is, Python is not Async, like JavaScript is
 
@JonClements Nothing at all, I am a saint from heaven. Pure and dressed in white.
 
@terfin as your picture shows, right? ;-)
 
Oh that? Its an old picture from high school :P
 
@Ffisegydd Prepare for war, how dare they tip our Bunny. If we don't react now, tomorrow they will eat our Cabbage also
 
10:32 AM
@thefourtheye there's asyncio in 3.4 (or tulip available as a back port for 2.7+)
 
@thefourtheye It is ok, ask them to use reflection in order to do things that in Python are rather trivial.
 
@thefourtheye that is one reason – it doesn’t get any easier if you use, say, Tornado or Gevent or similar; Python’s evaluation fundamentals still make you jump through all those misdirected-proxy-method hoops that you see in that Django example to be properly promissory
 
@JonClements We have concurrent.futures since 3.2 itself :)
 
In my experience at least – I may have missed something
 
Python isn't for everything (it's not far off though)
 
10:34 AM
@thefourtheye good to know about that – I still generally have to straddle the 2/3 divide and so I haven’t been able to indulge in all the new 3-only toys like that one
 
I wish I could work in Python :(
 
@thefourtheye So do I...
 
@Terfin Never written a single Python program, apart from SO, like me?
 
Thankfully most of my work is Python. Some C++ and erlang now and again but I can live with that
 
@thefourtheye @Terfin I often sneak it into the non-Python codebases I am employed to work on
 
10:37 AM
@JonClements I am looking at some Kernel developement exercises. So, I may have to dust off the C knowledge
 
I use Python and NumPy every day and I totally know how lucky that makes me, yes
 
@thefourtheye Actually I did. I worked for a startup company that deals with phishing, I did quite a few things with Python there. But the salary was less than minimal wage as they didn't have enough money to pay... so I had to go towards the big market, which is dominated by mostly .NET and some Java
 
@fish2000 NumPy, a dream of mine...
@Terfin In India, its Java everywhere... :'-(
 
@thefourtheye Heh, the company I work for at the moment got a not so small development center in India.
 
@terfin yeah - I know what you mean... in 2005 I had a role that required developing a C# system...
 
10:40 AM
@Terfin Let me guess, is it in Bangalore? ;)
 
@thefourtheye I have no idea
 
@thefourtheye recently I reimplemented a host of image-processing algorithms and techniques in NumPy, from Java source – it was awesome. Often dozens of lines of nested for-loops could be condensed into one or two legible array expressions, yes
 
@fish2000 Lucky you...
 
@thefourtheye Pune
 
@Terfin Oh, that is in northern part of India.
 
10:42 AM
@thefourtheye It is worth learning how – I don't know what your work environment is like, but I find that if you are seriously interested in doing stuff like that, and you build a little demo to show the stakeholders, you can end up running a little skunkworks
It’s worth the effort, for the authorship you get back (if the workplace is amenable to that kind of sub-rosa development, of course)
 
I work for a consulting company, which means I actually work at other companies as a developer (and actually doing a consultant job as well) and I offered the current place I work at to convert all their Perl codebase to Python, especially that those scripts started breaking down recently for some reason and the only guy who could maintain them no longer works there.
 
@fish2000 My other problem is, I don't know what to do... :'(
 
@thefourtheye pick a small, trivial task – one that’s useful, and has been done before, like walking a directory tree and generating an HTML index of all the .txt files, or somesuch – and make yourself build it using only google and a text editor.
@thefourtheye that sort of task will get you started
@Terfin perl… ugh. I wrote enough smugly illegible perl in the 90s to gross myself out for the rest of my career
 
@fish2000 Thanks man :)
 
@Terfin if you sneakily redo one of those scripts in Python, it would turn the heads of the Wallites who maintain it, no?
 
10:53 AM
@fish2000 Which is exactly why I offered them to convert it. It also becomes harder and harder to find good Perl developers nowdays, amongst the youngsters at least.
 
@thefourtheye anytime!
 
@fish2000 Hmmm, I think I will get the system architect rather mad as well.
 
@Terfin did they take you up on it? It can be tough to pitch an unknown, if they don't know Python like you do
@Terfin likely yes – that is their job, rite? To get pissed at implementors? Haha.
@Terfin but if you demo them some new styles on a new branch, you can ask for forgiveness instead of permission, which I am told is a better deal :)
 
@fish2000 I didn't. They didn't want.
@fish2000 HAHA! Branch! I doubt that the entire system is even backed up somewhere. They only started using a VCS with TFS, when .NET was introduced to them.
 
@fish2000 The problem I have with the "forgiveness vs permission" mentality is that there's a performance cost
 
10:57 AM
@Terfin oh wow pardon my presumptiveness, haha
 
Or at least, there used to be be
 
@IntrepidBrit depends on the task. Plus, reimplementing stuff is always a risk.
 
@fish2000 Which was at 2008. Those Perl scripts must have been written at the late 90's, maybe even before.
 
@IntrepidBrit If you do it one night over the weekend by yourself, and it fails, nobody knows tho. If it works, you bring it in and impress them
@Terfin oh MAN. Late 90s perl with no DVCS… wow. That’s positively vintage at this point!
@Terfin does TFS support Git? Just curious – I have never had the pleasure of using it but I read somewhere that it does.
@Terfin I also used SourceSafe back in the same 90s tho, so I feel something that must approximate your pain
 
@fish2000 Maybe, I don't know.
@fish2000h Regarding the TFS, that is.
 
11:03 AM
It’s a dirty world.
 
@fish2000 In my experience, companies over a certain size fixate on mitigating risk. By potentially introducing (unauthorised) risk, it could get you some serious flak
 
@IntrepidBrit totally. Which is why I am advocating making, say, a small proof-of-concept in ones’ own time, in an isolated development environment.
 
@fish2000 aha whoops. I didn't spot the "branch bit". Have this running on a small window
 
@IntrepidBrit asking forgiveness for a wholesale swap of an established codebase for an untested rewrite out of left field will not work, I can only imagine!
@IntrepidBrit no problem, I talk too much anyway.
 
11:07 AM
@fish2000 Depends on how good your Testing methodology is :)
 
Oh well. I think it is time to get the whiteboard if I want to get that OData framework going somewhere. Someone needs to design the features. Since I am the only contributor on my own project, I guess that will be me :D (Or my other self)
 
@IntrepidBrit that helps, yes – but if you’re coming from an entrenched methodology like “no testing methodology,” or “it works for me”, you don’t have to prove that it’s done right, if people sufficiently believe it is working (for large enough values of sufficiently)
@Terfin do it! Fun times, yes.
 
@fish2000 That should only happen in the rapid prototyping field, or if you're working by yourself(*)
*and even then, you probably shouldn't
 
@IntrepidBrit not that I think that is the way to go (I like tests, myself)
@IntrepidBrit totally – especially if you’ve got a System Architect on the payroll
 
heya @kapranov.anton
 
11:13 AM
@fish2000 My advice would be to lead by example if you can. Even if you have to do something silly like merging branches into your own local "testing" branch
Not that you were asking for my advice. I felt compelled to lecture ;)
 
@IntrepidBrit It’s cool – I’m the last person to complain about anyones’ effusiveness
@IntrepidBrit generally we agree (I have been known to merge a branch or two, off the books)
brb (it’s cigarette o'clock)
 
11:34 AM
@fish2000 Enjoy ;)
 
OK, I am out – great chatting with everyone. Cabbage!
 
Cabbage!
 
11:49 AM
I'm starting to fall in love with pandas
As a test/learning exercise I'd downloaded all my activity from the SO API and am processing it using pandas.
 
I thought pandas would be too interested in bamboo to be of any use ;)
Ha! That terrible joke is either better or worse by the fact this exists: bamboo.io
 
12:09 PM
@fish2000 rhubarb!
 
12:23 PM
Hmm, what are some good tags for "Asking the User For Input Until He Gives a Valid Response"?
"Python", surely. "Python 3.X", perhaps? Although it also applies to 2.7 with some trivial changes
 
Ahh yes, that embarrassing moment when you promise to call someone at 13:30 and realise you possibly don't have their number...
It must be in a text or phone logs or contacts or something... flicks through phone frantically
 
Worst case scenario, just dial all possible numbers until you get him.
111-1111. Hello? Damn! 111-1112. Hello? Damn! ...
 
I'm sure my mobile phone company would love that :)
 
Hey, brb guys. I'm getting a call from an unknown number ...
:P
 
12:39 PM
Maybe it's the person I'm meant to be calling... grab their number, I'll give 'em a ring :p
 
@JonClements lulz :P
 
Now to compose a comment indicating why self-answering questions is not evil and wrong. Hard mode: don't come off as a defensive loony
 
@Kevin yes... it didn't go so well the last time you did that great Q&A pair
 
Hard mode is especially hard, because I am a defensive loony as a result of my previous attempt :-D
 
pondering if we could @ThiefMaster to immediately make the Q a community wiki entry
 
12:47 PM
Why CW? A self-answered question does not need to be CW
 
IT'S ALIVE! :)
@ThiefMaster last time it didn't go well, and it garnered down votes
 
meh.. did people comment why?
 
my impression was that people thought it obnoxious or something
 
I recognize that not all self-answered questions need to be CW, but I want this post to be a canonical reference for novices, which feels like a CW-ish objective
In any case, I can do it myself, right, by checking the "make community wiki" box
Oops, that box is for the answer, not the question
 
don't think you can do that with Q's
hence my "at-ting" our resident mod :)
@ThiefMaster if you have a moment to look at this for context, and offer any suggestions (as to CW status) - that'd be great :)
 
12:53 PM
i'll have a look later
@Kevin ok, for that one CW is fine. ping me once you posted it.
 
The question might need a little more work... I can imagine commenters saying "what have you tried?" there
(oh the irony in implying that I haven't put in enough effort!)
 
@JonClements Can we include iter with the sentinel value answer, as well?
 
Damn he made me earn that accept >.< I hate when people tack on more questions in the comments.
 
cbg
 
1:08 PM
@Kevin I'm sat waiting for you to post so I can comment and lambaste your total lack of any effort...:)
 
@Ffisegydd I see you're new to the evil overlord status of the room... :)
@thefourtheye don't ask me - it's Kevin's Q&A... I did suggest a rather nasty iter approach already though :)
 
cabbage.
Today is FrIday
I can't wait to work on this weekend, with the weather being beautiful and all that.
 
You're obviously not in England then :)
 
Almost ready... Just trying to figure out per-code-block language hints
 
mumbles if I hadn't come 7th cough cough :p
 
1:21 PM
@JonClements Or Scotland. And I don't even need to peer out the window to check ;)
 
@IntrepidBrit the pounding on the roof suffices I take it? :p
 
@JonClements Are you psychic or something?
 
I knew you were going to say that... :)
 
creepy
 
and yes, that might be a good idea
 
1:23 PM
@JonClements Awwww, talking to people would be boring to you, then... bow bow, bow?
 
@thefourtheye I personally thought such an "ability" would be a "curse"...
 
@JonClements FBI or CIA might not think so ;-)
 
like the fact you miss out MI5/6 there :)
 
Only problem is, when you know what they're going to say, but then they don't say it, which gives you an awful headache. So impolite
 
@Kevin cabbage dammit... thought you were going to say "pink umbrellas are only applicable to purple unicorns on Wednesday's" - now you've gone and confused me!
 
1:27 PM
@JonClements Damn the american serials
 
talk about destroying the flow of the yet to happen conversation or something!
 
Oops, sorry. I would say it now, but I think that would only cause a double headache...
 
@Kevin yes... now I've entered a JJ Abrhams universe it would appear
 
@ThiefMaster I have posted my post.
 
@Kevin In case you are wondering, that was me :)
 
1:33 PM
Thanks, off to an encouraging start :-)
Now to update the common questions wiki. Suddenly I see a drawback in numbering all the "Unanswered questions"... Removing something from the list is an O(N) task!
 
1:52 PM
LOL
good job anyway Mr Smiley... +1 :)
 
No downvotes so far...
 
Whew... I'm emotionally drained
 
I have a big file, what I must do is: every time one line starts with a certain string, I want to detect the third line before this line. What can I do?
 
How big?
It's pretty simple if you can load the entire file into memory
 
100 pages
 
1:59 PM
what's a "page"
 
Why is Python better than Haskell?
 
So, like 3,900 lines... That might be OK
with open("mybigfile") as file:
    lines = file.readlines()

for idx, line in enumerate(lines):
    if line.startswith("A certain string"):
        line_to_detect = lines[idx-3]
 
cpx
Searching for newline character to move to a line perhaps?
 
@Dalek I can't say, having never used Haskell
Um, dynamic typing is cool? We've got a diverse and well documented standard library? I dunno
 
cpx
I haven't heard of Haskell much.
 
2:05 PM
Good languages, bad languages. That is only the selfish perception of people.
 
closed the wrong tab...
 
@Dalek One's a functional language, the other is a snake ;)
 
cpx
Is there any language which is not bad?
 
@JonClements Is that a reference to the weather or it not being a Friday. ;)
 
@IntrepidBrit on the plus side, even though it comes across as potential trolling, at least we're not getting exterminated....
@abhi haha... just clicked the wrong "X" :)
 
2:10 PM
Quick question - how do you type a literal double underscore in SOChat?
 
Either slash escape or use `
But you need to escape both underscores so it becomes \_\_init\_\_
 
test __init__
@Ffisegydd Excellent, cheers
@JonClements It wasn't lost on me ;). But if he did shout it, I'd just have to do a cheeky from __future__ import sonic_screwdriver. That'll learn 'em
 
cabbâge
 
Greetings
 
and salutations to you, Kevin
Who is talking about haskell here?
 
2:15 PM
Sigh, my snack drawer is empty and I've got a 10:00-2:00 meeting today
@Hyperboreus Dalek started it, about a page up
 
I still dream of a python with argument pattern matching and TCO...
 
@Kevin I have chocolate chip cookies - does that help?
 
I don't eat chocolate... so no
Are they TCO flavoured tho?
 
There were actually cookies in the office this morning, but they've all gone away ;_;
 
Should I drink my last bottle of beer now, or should I save it for tomorrow? Tough decisions
 
2:17 PM
Cookies in a office have a even shorter half life than pencils...
@Terfin It is 8:17 in the morning, not a good time to start drinking.
 
It's happy hour somewhere :-)
 
It is 5:17 PM in here :)
 
I am a temporal nationalist
 
Everyone should just use Eastern Standard Time, the time zone used by all right-thinking people
 
What is EST ? GMT-XX?
 
2:20 PM
-5. (-4 during daylight savings time)
 
Daylight saving time. Screws me over twice a year, when suddenly I am in a different US time zone...
 
I've been playing retro games lately. Pokemon Gold & Silver have internal clocks, which must be calibrated while playing. "What's the hour and minute?" - easy. "Is it daylight savings time?" - I'm sweating bullets.
Trying to remember decades-old civics classes which discusses what half of the year comprises daylight savings, and which doesn't.
 
So, DST is during winter or during summer?
And at the end of the year, what do you do with all the saved daylight?
 
Wikipedia says, spring/summer
Meeting time, gotta go
 
eats some cookies loudly so that it's heard in the US
@Kevin good luck
 
2:25 PM
May the odds always be in your favour
 
@Hyperboreus not sure if @Kevin is playing roulette, but yeah :)
 
Best thing to play at meetings is "bullshit bingo".
It makes even the worst case of ADHD pay attention
I googled a bit SL4A which was mentioned here yesterday... Quite a disappointment.
 
cbg
 
heya @Aamirkhan wb :)
 
@JonClements Thanks :)
 
2:36 PM
rbrb think I've phone the number I wanted 2 hours ago :)
 
Could anyone advise a simple, easy GUI toolkit to quickly build a windows app to annotate some yaml data in a text file? I know TkInter a bit. I find it hard to choose from wiki.python.org/moin/GuiProgramming.
 
@JonClements lolz
You should use true caller for Identifying numbers :P
 
@RolfBly welcome to sopython, Martijn mentioned you may pop by :)
Python does support Tkinter out of the box so it's not a bad choice if you already know a bit of it.
 
Thanks..
 
The other "major" GUI vendors are Qt and wxPython
Though I have also heard very good things about Kivy.
 
2:46 PM
@RolfBly Do you have any experience with out GUI toolkits? If you can find one that behaves in a similar way to one you already know - that'll probably have the shallowest? learning curve
 
@IntrepidBrit what's an 'out' GUI toolkit?
 
uhhhh. No idea. A bizarre typo
it should read *any experience with other GUI toolkits
 
@Ffisegydd thanks, I'm googling both as we speak.
@IntrepidBrit Ah. No. I found tkinter not so easy. Widgets elbowing each other across the canvas, unless you pre-format their contents.
 
I personally would go with QT. Very solid and if you ever need to do projects in other languages, you might fight bindings for that other languages too
And together with QtCreator and pyuic, you get a nice looking GUI in no time
 
01:00 - 15:0015:00 - 00:00

« first day (1287 days earlier)      last day (3655 days later) »