« first day (2322 days earlier)      last day (2625 days later) » 

6:00 PM
If you're thinking "well it doesn't matter if you find it annoying, because I'm writing this program for my own personal use", then great! You don't need it to be cross-OS-compatible. Just make sure it works on your own machine and you're done.
 
it is just for fun kind of thing!
@Kevin Agreed
 
If you're thinking "you're getting really hung up on the practicality of the software when I'm just using it as a simple project to get me up to speed on the techniques involved. I'm more interested in learning than making something enormously useful", then that's another matter. I'm sure we've all been in that position before.
 
Is this a python project?
 
@paul23 I was trying my hands on web crawling
n then show somewhere this notification thind
thing*
 
Oh if you wish to do it a bit more useful make a "shower alarm" - but then not only for the netherlands.
 
6:04 PM
It was fun making that thing...btw I m getting weather by crawling google search page
 
This page describes the process involved in displaying a notification in Windows. In principle, you should be able to do everything you need with ctypes and a lot of elbow grease
 
drops.live < for years the most used android app in the netherlands
 
Skimming the document, I give it a 6/10 on the "irritating hoop-jumping" scale
 
Uh, doesn't Qt abstract away all that stuff?
 
cbg
 
6:08 PM
Certainly you can use a GUI library to simply display a short-lived standalone window, but it won't look official and OS-ey.
 
I tried this stackoverflow.com/a/36136344/3297613 answer for getting an enum type field using Flask-sqlalchemy ORm, but it shows
 
If all you want is to display some text temporarily, there's an OS-agnostic solution ready to go right here:
1
Q: How to display a system notification in Python?

Victor DomingosWhat is the best way to display system notifications with Python, preferably using tkinter for cross platform implementation (I am on OS X, so I'm also open to implementations that would allow integration with Notification Center)? I want to show a self-destroying message, I mean something that ...

 
line 1244, in <genexpr>
    length = max(len(x) for x in self.enums)
TypeError: object of type 'type' has no len()
traceback.
 
Enums don't have a len, what are you trying to do.
The only thing I can guess is that you're using an old version of SQLAlchemy, as the comment right above yours points out.
 
I'm using 2.1 version Flask-SQLAlchemy==2.1
 
6:15 PM
Yes, but what version of SQLAlchemy are you using?
 
here is my schema..
class EmailType(enum.Enum):
    SAMPLE = "sample email"


class EmailHistory(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    user_id = db.Column(db.Integer, db.ForeignKey('User.id'))
    email_type = db.Column(db.Enum(EmailType))
SQLAlchemy==1.1.5
A part of traceback looks like,
File "/home/avinash/up_project/s2s_backend/app/models/__init__.py", line 53, in <module>
    class EmailHistory(db.Model):
  File "/home/avinash/up_project/s2s_backend/app/models/__init__.py", line 56, in EmailHistory
    email_type = db.Column(db.Enum(EmailType))
  File "/home/avinash/.virtualenvs/s2s/local/lib/python2.7/site-packages/sqlalchemy/sql/sqltypes.py", line 1244, in __init__
    length = max(len(x) for x in self.enums)
  File "/home/avinash/.virtualenvs/s2s/local/lib/python2.7/site-packages/sqlalchemy/sql/sqltypes.py", line 1244, in <genexpr>
 
I can't reproduce your issue. Python 2.7 doesn't have an enum module, so whatever you're using for enums isn't compliant with the type that SQLAlchemy supports.
> The source of enumerated values may be a list of string values, or alternatively a PEP-435-compliant enumerated class.
 
ya, I have installed enum package through pip
 
> a PEP-435-compliant enumerated class
from the enum packages docs:
> Python 3 now has in its standard library an enum implementation (also available for older Python versions as the third-party flufl.enum distribution) that supersedes this library.
You're just using some enum package right now, not the standard enum interface.
 
It's weird to me that the package in control of the name "enum" on pypi is not technically an Enum as specified by the PEP standards.
 
6:26 PM
ya.. it's weird..
 
What's the impeachment process like for packages? Do I have to sign a petition, or...?
 
History
 
DSM
davidism (unsurprisingly) is probably right. I think I've used the "enum34" package in the past when I've needed the "real" enum backported.
 
Yeah, that's the other backport, it should work too.
 
In my mind, a perfect package ecosystem has these qualities:
- preserves the behavior of projects that are no longer being maintained, and which depend on third party packages hosted in the ecosystem.
- allows for the removal of packages that unfairly "squat" on a package name, whether it be because of shifting standards or active malice or simple incompetence.
... But I don't see an obvious way to reconcile these two. How can we give the "enum" package name to a more deserving package, while still allowing old and dusty projects to continue installing the old enum package that they have a
 
6:35 PM
anybody django here ?
i have three types of users
patient, doctor, nurse
what would be the correct way to use django's authentication ?
im thinking of creating a person class
and those three types of users will each have a one to one relationship with person
 
So it's a beautiful day in the land of the leafs :D.
 
In New England it's like 60 degrees, there was a blizzard just last week.
 
It's bizarrely hot here in Jersey.
 
57.2 F or 14 C, clear skies, nice breeze. We just had snow last week too.. #global warming
 
Predicted high of 70 F today. I can't... It's February, right?
 
6:38 PM
It's sunny in San Diego, like always. I wish it would rain more.
 
I open my car's roof window for the first time this year. Soon it's going to be too hot for me to function.
 
On the plus side, it's not overcast or windy anymore, so I can go fly the drone.
 
it is currently 11 (~51F) celsius and I went out in a spring jacket
It was really nice
 
@davidism what kind of drone do you own? I was thinking of getting into the hobby, but I think I'm way in over my head. So many options...
I wish my office would allow shorts ;(. T-shirts are fine but shorts with t-shirt = ideal.
 
I want to get into building my own racing drone though, which is significantly less expensive.
There's also plenty of premade ones that are more reasonably priced.
 
6:42 PM
I was hoping for something I can see if the hobby is right for me. I guess entry drones is what I have to research. I was watching 'Daily Planet' and they had a session on racing drone, which made me want to try it out... new sport hype!
 
If you're just getting into it, there's plenty of small prebuilt drones. Unless you're really into the hobby, the parts likely don't matter for the most part.
I like watching this YouTube channel; he reviews different builds and components in depth.
 
Saved for later. Thanks. I was also reading into my city's air zone laws... Don't wanna get into trouble :\ What are San Diego's laws like, if you know off the top of your head.
Here in the city of the leafs, I think we need to fill out an 'Exemption notification form'
 
In the US you have to get a UAV hobby registration for $5 and paste your number somewhere on the drone. Then just stay a few miles away from airports, stadiums, and some other locations.
Can't fly in state or federal parks.
My drone will warn me or just not fly into certain regions based on GPS. There's also maps and apps you can use to check.
 
My family wants to visit Canada's national parks this summer. I need to look into if I'm allow to fly drones in there. Hopefully I could, yield some nice landscape pictures.
 
I think there might be a law for that ^^
you might want to look in to that
 
6:52 PM
Yup, I don't wanna get into trouble during a family trip.
 
On the other hand, if you hike out to the middle of nowhere first and don't pass any rangers, you're probably ok.
 
I wonder if they got any surface to air radar scanners (sorry for my lack of knowledge on the correct terminology), covering the park... I wonder if that's how they nail you.
Gonna google it some more when the time comes I guess..
 
Who needs radar when you've got trained attack eagles?
 
wooosh
 
You guys have eagles, we have geese :( Yours are cool and can do awesome things. Ours can only bully little creatures like children
 
6:58 PM
I'm surprised an eagle can grasp a drone without getting cut up by propeller blades. I guess they have less torque/momentum/whatever than I thought.
Hot new technology of 2018: eagle-proof drones with razor sharp propellers.
 
Pretty sure that would cause more injuries to humans, than to birds.
 
@MooingRawr Apparently the eagles in the article aren't even American, which means we don't have the monopoly on the technique. You're free to import the idea if you want.
 
Drone security is going to be a massive business. Just you wait and see!
 
Yeah, I saw a company that's building signal hackers that can take over drones and safely land them when near emergency zones.
Which, of course, can be extended to less noble purposes.
 
I expect a game of wall-and-ladder to occur between drone makers and drone signal hackers, playing out pretty much exactly the way that garage door openers did.
 
7:09 PM
Putting a new meaning to "Drone Race". This proves war never changes.
 
I don't have a link handy but a while ago I read a quite interesting article describing the history of garage door opener design that evolved in order to prevent 1) your neighbor accidentally opening your door with his opener; and 2) bad guys intentionally opening your door with their homebrew devices.
Towards the end it gets to the level of "change the code needed to open the door every seventeen seconds"
Ain't nobody gonna hack my drone when it communicates with my controller via https stream
 
All we need to do is to employ the pigeon protocol.
.__(.)< (MEOW)
\___)
TIL that amazon's home page has this commented at the bottom.... well played.
 
KeeLoq is a proprietary hardware-dedicated block cipher that uses a non-linear feedback shift register (NLFSR). The uni-directional command transfer protocol was designed by Frederick Bruwer of Nanoteq (Pty) Ltd., the cryptographic algorithm was created by Gideon Kuhn, and the silicon implementation was by Willem Smit at Nanoteq Pty Ltd (South Africa) in the mid-1980s. KeeLoq was sold to Microchip Technology Inc in 1995 for $10 million. It is used in "code hopping" encoders and decoders such as NTQ105/106/115/125D/129D and HCS101/2XX/3XX/4XX/5XX. KeeLoq is or was used in many remote keyless entry...
 
7:24 PM
Just came across this on Reddit.
 
@davidism At first, I thought you just linked a loading icon, got confused on why it wouldn't load with in a minute, then I get that beautiful gif xD
 
I really hope they're smart enough to not eat plastic :/
 
ew there is just way too much to look through
no no
 
The opposite of "give me teh codes": "here's all teh codes, find the issue"
 
which is worse?
 
^^
 
7:57 PM
:D
 
The second one tends to produce more OPs that get all huffy from the downvotes and say "but my post must be good, look how much detail I included!"
At least the OPs that put forth the lowest effort possible have the decency to quietly vanish forever when they don't get what they want. </cynicism>
 
Someone linked to a question with a Martijn answer, but Martijn's answer doesn't mention a good specific case this question asks about... do I dare edit a Martijn answer?
 
wim
how cute is pathlib (python3 replacement for os.path)
 
Uh, "cute"? As in "overloaded /" is cute?
 
wim
yeah
>>> Path('/usr') / 'bin'
PosixPath('/usr/bin')
 
8:02 PM
It is cool, although it's weird seeing perl in python
 
wim
I hate os.path
it always does weird unexpected shit
 
what do you hate about os.path
 
If you're about to complain about symlinks making things complicated you're right and that's why plan9 refused to add them ;)
 
wim
yeah, mostly the handling of symlinks
and abspath behaviour
it's easier just to use strings and do everything yourself
plan9 ??
 
I don't remember os.path being surprising about how it handled it, but maybe I've just learned to pessimistically read the docs (and I the last time I used the filesystem instead of a db was... idk when)
It was made by many of the same people as unix and it improved upon several shortcomings immensely, while adding amazing features we're only just seeing popularized now
For instance, this whole "containerization" thing with Linux "namespaces" was in plan9... well, if not first, very early.
 
wim
8:09 PM
os.path.abspath eats '..' components without resolving links
that's the one that really hurt my feelings. I think I've been bitten a few other times but I can't recall what
 
That was one of the specific examples cited in the plan9 papers as a problem. So you're not alone in the pain there
 
I don't know what a link is in this context so I assume it's not that important. Just don't use them and you're golden.
 
If I'm making an app that spends the majority of its execution waiting on TCP I/O, that means I can do threading without worrying about the GIL drawbacks, right? (Also, no, I can't use asyncio. I have to target... 2.6. Yuck)
I'm willing to look into gevent or greenlet or whatever the alternative is
 
twisted?
 
I'm pretty sure you can rely on threading here, although I encourage you to benchmark rather than take my word for it
 
8:19 PM
I'm relying on a third party lib that already does blocking I/O, so I'd rather avoid event loops
The whole point of gevent and greenlet is CSP, right?
I'll definitely benchmark, and the first version will be blocking just so i can get it working first.
 
I have about thirty minutes of experience with greenlets so I'm not the person to ask, I'm afraid
 
wim
>>> !ls -l
total 0
>>> f = Path('myfile.txt')
>>> f.write_text('hello')
5
>>> !ls -l
total 4
-rw-r--r-- 1 wglenn it 5 Feb 23 14:22 myfile.txt
>>> f.read_bytes()
b'hello'
some cool shit here
 
I had my fill of too-clever operator overloads when C++ used the right shift operator for piping data to stdout.
 
Didn't python do the same thing with the print statement?
 
DSM
8:34 PM
Back from many hours of meetings only to be reminded of Python's flirtation with print shift. :-(
 
Was that a thing? I think I remember that being a thing. I never used it myself.
 
DSM
It was, and it was hideous. As bad as the dangling comma.
Oh, good news! My last interviewee accepted the position, and so come March I'll have a new Python-speaking minion!
 
\o/
congrats on finding a worthy minion
 
Shamir's Secret Sharing is an algorithm in cryptography created by Adi Shamir. It is a form of secret sharing, where a secret is divided into parts, giving each participant its own unique part, where some of the parts or all of them are needed in order to reconstruct the secret. Counting on all participants to combine the secret might be impractical, and therefore sometimes the threshold scheme is used where any k {\displaystyle k} of the parts are sufficient to reconstruct the original secret. == Mathematical definition == The goal is to divide secret...
mind blown, this is beautiful
 
Nice
cabbage all
 
8:45 PM
cbg Wayne
How you doing
 
Doing well. Looks like I'll be visiting NJ on work here in a week
 
Sounds like a DnD spell. "I cast Shamir's Secret Sharing... [rolls 4d8]"
 
"I'm sharing the darkness!"
 
Classic reference.
 
When I was a teenager and first downloaded that from Napster, I remember finding it ridiculously hilarious
 
8:48 PM
I must have watched it a hundred times back in the day
 
wim
@DSM Waht questions did you ask? Any of my ones?
 
No questions, he only had to retrieve the still-beating heart of a COBOL programmer.
4
(Don't worry, this doesn't harm the COBOL programmer. They are technically undead and usually keep it in a jar on their shelf next to their reference manuals)
 
thank you for that, Kevin.
 
(This is the source of their seemingly supernatural job security. Can't get a cushy gig like that in this industry without a couple dark rituals along the way)
 
Will you let the next one read out a page of Perl to summon Cthulhu?
 
wim
8:58 PM
Should never do that to a COBOL programmer ... we might need them in the year 9999
 
Depends on your tech stack. Cthulhu is unsupported in Windows; you have to make do with the proprietary alternative, Zalgo.
 
W̩̩̆i̡̩̬̩̩̩̩̩ͦ̚͟n̩͍̩͇̩̰̩d̩̰̩̩̩̾͠ő̡̩̩̩̩̩̾̇w̵̩̩̩̐s̩̩̩̩̩ͯ̑͞͡ ̩̩͖̩̪̩̿i̩̩͓̩͢s̩͇̩͕̩̩̎ ̧̩͔̩̤̩̬̩̩̩̍t̩͇̩̩̩̩̘̩̊̌͡h̶̩̦̩̩̩̦̩ͥĕ̩̤̩̩ ̩̩̩̩́̐̾O̩̩͜҈̩͈̩S̩̝̩̩͢ ̩̩̬̩͑õ̩̩f̨̩̲̩̩̩̩̩ͦ͐ͅ ̩̩͚̩̓t̩̩ͤh̩͏̩ȇ̩͉̩̩ ̧̩̩g̩̩̍o̩̩͉̩̙̩̖̩̲̩͆d̩͕̩͍̩̩̩̓ͨs̩͏̩̰̩̩̩͆̽͟
 
I was linked to the "How to ask a question" guide here on the webpage and it has some external links. I'm reading them all in hopes of being able to convey my questions better. I came to this in one of the guides "If you're a programmer, try to find an answer by reading the source code." Wouldn't think be detrimental to the learning process by basically looking at the answer?
 
@WayneWerner I can still read that. You can't fool me
 
9:13 PM
cbg
 
9:43 PM
@Tokencodingnewbie Yes and no. Try to code/answer it yourself, if you don't understand the question after researching the problem, there's no shame in looking at the source code for help.
@MoinuddinQuadri \o cbg, how goes it
@DSM congratz! I wonder how he or she will turn out. Good luck.
 
What's wrong with this code? I can not figure out the error

def reverseSentence(sentence):
    new=sentence.split()[::-1]
    return " ".join(new)
 
Well, it's not indented correctly, for one.
 
i know
its the chat
that indenteted it wrongly
 
@zeeks it reverses the sentences words....
 
indented*
 
9:47 PM
We know, we also know there's a "fixed font" button that indents it correctly. Edit your meesage.
 
(Use four spaces before each line, and make sure it's its own message)
 
What error are you talking about?
 
'hello world' -> 'world hello' I see no issues here o.o
 
Well it is supposed to reverse the words in a string
 
It does.
 
9:48 PM
and in codefights, it does it but there are some hidden tests that do not apply
i spent 1 day with it, i can not figure out the problem
 
Oh, of course, the hidden tests. Forgot to turn on my psychic powers.
We can't help you unless you ask a good question. Same rules as the main site.
 
@davidism Does garlic help boost your psychic powers?
 
It boost my telekinetic cybernetic kick.
 
recbg from homecountry
I'm now scarred for life after having seen a few colleagues overload << for a class in order to use it as a mutating assignment
in python
 
so no one has any suggestions for my little problem
 
9:52 PM
Considering we don't know what your problem is, it would be hard to give suggestions for it
 
The problem is that some hidden tests cases (I do not know what the input is) do not work with that solution.
 
so use the other test cases
 
Then either you or the website have incorrectly described the problem
 
oh, they're hidden:(
 
Or there's a bug with the site
 
9:54 PM
thanks everyone
 
The only near-psychic guessing I can do is that maybe it cares about whitespace, or they want to be tricky with punctuation, or something
 
@zeeks Do you get an output when the code is running for these tests? Because you can put a print statement in your function to output what the input data is to understand how you can better test your code
 
I'll go out on a limb and say that any reasonable online judge should prevent print(inp) from printing the hidden test inputs
 
depends what kind of online judge this is
but, codewars for example, since you get an output of what is happening with each test case, you can check to see what input is passed
however, a lot of times the inputs could be randomized, so each run will be different. It will at least give you the opportunity to know what test case you missed and fix your code accordingly
I don't really see anything wrong with that
 
@MooingRawr Currently researching about the storage engine our team should be using for our new analytics component. We need to fetch data from our data warehouse which is based on IBM Netezza and Apache Impala. We are also having the production deployment scheduled for 5:30 am which is 2 hours from now. So waiting for that. How about you?
 
10:12 PM
<3 C
complex long volatile long unsigned const extern int simple;
that's a valid variable declaration:)
 
wim
how to use str.format with python logging ?
 
I think you can do something like:
"this is {} logging {} stuff", foo, bar
I think
hold on...
 
no
@wim lmgtfy
 
Yeah that's complex alright
 
10:17 PM
there are recipes.
 
>>> logger.error('This is an%s %s %s', 'other,', 'ERROR,', 'message')
2010-10-28 15:19:29,833 foo.bar ERROR This is another, ERROR, message
there
 
@idjaw hmm no, but {} new formatting
 
If you had both it would be ambiguous
 
@idjaw the point about using str.format with logging is that the logmsg itself uses that...
 
The doc has an example
but I can't get the anchor link to it
in what I linked look up "from wherever import BraceMessage as __"
check that
the lines below show an example of using {}
there is an example that allows the usage of
def main():
    logger.debug('Hello, {}', 'world!')
wow....I don't understand. I am almost sure I've used formatting in my logging...can it be this complicated?
I just checked one of my projects and I have
log.info("Committing {}".format(list_of_files_to_commit))
I'm not doing anything fancy to do that
I'm just doing it
 
wim
10:23 PM
you're doing it wrong @idjaw
don't template the string before logging !!
anyway, I've asked a question about it stackoverflow.com/q/42427337/674039
 
which I've now hammered
 
wim
you hammered it onto a question that I explicitly linked in my question
 
DSM
Aaargh, is there an easy way to get some kind of week-number-since-the-epoch?
 
wim
undo it please
I tried them all, the solution is not there
 
then place a bounty there
there is no other solution, yet :D
 
wim
10:26 PM
No
hammering a question to a dupe of a question that I already read and mentioned I already read in the question...? come on Antti ...
 
9
A: Logging variable data with new format string

DunesThis was my solution to the problem when I found logging only uses printf style formatting. It allows logging calls to remain the same -- no special syntax such as log.info(__("val is {}", "x")). The change required to code is to wrap the logger in a StyleAdapter. from inspect import getargspec ...

this is the solution from Python 3 docs.
what else do you need?!
you didn't read it carefully enough
 
Is what is in the python 3 documentation on this wrong, then?
Because it shows how to do it
Would they show the most inefficient way to do this? I would not think so
 
@idjaw I have abso-fscking-lutely no idea, but let wim ask...
 
wim
that sucks
__("the __ is a function call??")
 
@wim aslkjsaöldkjfsölfdj
 
wim
10:28 PM
I'm not interested in that ugly ugly hack
 
@wim so obviously you didn't even read all the answers.
how about you open the link that I just provided above:
it starts with: no special syntax such as log.info(__("val is {}", "x"))
log = StyleAdapter(logging.getLogger(__name__))
log.info("a log message using {type} substiution", type="brace")
 
6
A: Logging variable data with new format string

pR0PsAs other answers mention, the brace-style formatting introduced in Python 3.2 is only used on the format string, not the actual log messages. As of Python 3.5, there is no nice way to use brace-style formatting to log messages. However, as with most things in Python, there is a not-nice way. T...

 
@idjaw no
but the one that I linked.
monkey patching is ugly and that OP should feel bad.
 
haha
 
wim
omg why does python logging suck so bad
 
10:32 PM
because it was copied from java
by people who can't do java.
 
DSM
You can tell it's not native from the uglyFunctionNames.. :-/
 
and it wasn't even fixed in python 3
 
iLoveFindingStandardLibPythonCodeWithCamelCase
 
love love, or just like like?
 
love love
bromance love
 
10:34 PM
I severely hate camelcase and its relatives
 
wim
yeah, I think it's no coincidence that the libraries written in camelCase are also shite
unittest for example
 
Python should convert everything to camel case. Save those characters.
alright. I think that's enough trolling from me
 
Changed in version 3.2: You don’t need to create specialized Filter classes, or use other classes with a filter method: you can use a function (or other callable) as a filter. The filtering logic will check to see if the filter object has a filter attribute: if it does, it’s assumed to be a Filter and its filter() method is called. Otherwise, it’s assumed to be a callable and called with the record as the single parameter. The returned value should conform to that returned by filter().
 
I'm going to play Tomb Raider
 
you can fork python from github and call it ShittyScript
 
10:36 PM
xoxoxo all
 
have fun
 
@AndrasDeak pffft I'd make it count and call it CamelSnake
 
unittest is a copy of junit3.
logging is a copy of apache commons logging
 
wim
log4j also
all the stuff copied from java is bad
 
and both of them are like "ok let's just copy this verbatim without understanding anything"
 
10:37 PM
s/the// s/copied//
 
@KevinMGranger negative.
 
I can't think of a single thing in java that something else doesn't do better
 
try writing a proper android app in python
 
@KevinMGranger java time apis
 
wim
10:39 PM
from wherever import BraceMessage as __
^ I can't believe this shitty approach is in the official docs
🐍 💩 💩 💩
 
Matsumoto trolling?
he must have haxxed the docs
 
@wim one thing could be to indeed monkey patch logging itself so that
at first it tried {} formatting and if that threw an exception, then %-formatting :P
 
9 mins ago, by Antti Haapala
monkey patching is ugly and that OP should feel bad.
 
DSM
Happened again -- was googling for something and found an SO answer of mine I don't even remember writing!
 
ah no...
@DSM did you try to upvote it?
 
10:41 PM
I went as far as upvoting once when I found my own answer
That's how I found out it was my answer
 
happened several times for me.
 
DSM
It's been about a year or so I think.
 
@idjaw dood what r u doin still here?
 
@AndrasDeak I turned on my game and then I realized "crap...I didn't eat supper"....and now I'm really hungry and have no idea what to make
oh nice...salmon! sweeeet....gonna make me some salmon
 
I'll be having sholet for supper \o/
my wife's the best
(no offense, married people)
actually, this version :D
 
10:46 PM
is the egg cooked on the side and then brought in to the stew
or is the egg cooked with the stew
I would assume the former?
 
latter, in our semiexperimental case
nicely embedded in the stuff
I prefer my portions sans eggs, so I don't have strong feelings for its method of preparation;)
 
@MorganThrapp needs more pork and beans:P
 
shakshouka is great because you can just throw anything in to the base shakshouka
but shakshouka is a very quick thing to make.
crap...that is what I should have made for breakfast today
 
I've only made it once, but I really enjoyed it.
 
10:51 PM
yeah, this has been cooking for 3 hours
 
aw well....
 
wim
Is there a pathlib replacement for os.walk ?
 
11:16 PM
@wim probably not, but depending on your goal rglob('*') may be helpful
 
wim
11:27 PM
rglob looks good, thanks
do you know if it calls stat on files visited ?
I need to process millions and if they all get stat it will be too slow ...
 
nope, I can't comment on that
 
wim
I'll have a play, thanks.
Where are you based?
Chicago, here
 
moscow, ru
 
wim
priviet
 
хэллоу :P
 
11:45 PM
I was really cool yesterday because I realized that a girl with a name tag "Alena" is actually Alёna
by which I mean Алёна
rhubarb/рубарб
 
wim
hmm, glob no good
too unix-y ... doesn't match files beginning with .
no easy way i could find to filter out directories
is there a way to exclude with glob ?
like, say I want everything EXCEPT *.zip
 

« first day (2322 days earlier)      last day (2625 days later) »