« first day (2117 days earlier)      last day (2814 days later) » 

3:00 PM
@Kevin noice!
swag is the best :)
 
I like puzzling
 
I'll have to wait until I get home to determine what my t-shirt size is.
 
I want SE swag D: Martijn was kind enough to give me two of his stickers when I visited.
 
spoken like a man
 
SE stuff is generously sized. :) Probably on a par with Gap sizes, ime if that's a useful reference point.
 
3:04 PM
I'm hoping I can get some decent swag from pycon.
 
@Kevin congrats:)
 
Otherwise, what's the point in going?
 
I came to the realization last week that all my summer attire is a collection of shirts I collected at conferences
 
@idjaw like a true rock star coding kung fu master chef wizard
 
3:05 PM
I also have a crap load of decals on my laptop. Because otherwise I'm a bad programmer, right?
 
Nice! I don't attend enough conferences. I do have an awesome bag with this logo on though: avatars.tagboard.com/168426/168426_1398523496112_avatar.png
 
my kids drew on my laptop case and I left it - everyone seems to like it
opposite for me @idjaw all my winter wear are conference shirts cause they give long sleeve or windbreakers at a lot of them down here
 
Random cool thing in Scala - this is perfectly valid and returns an xml type:
val xml2 =
<sammich>
 <bread>wheat</bread>
 <meat>salami</meat>
 <condiments>
  <condiment expired="true">mayo</condiment>
  <condiment expired="false">mustard</condiment>
 </condiments>
</sammich>
 
expired mustard is totally ok.
 
Only if the expiration increases the flavour.
 
3:12 PM
is it possible to load data on the first try? or is it a rule of nature that all datafiles are malformed
 
It's like usb sticks. Impossible to plug in on the first go.
 
@Ffisegydd There was a koan-esque story I wanted to link here but I can't find it. so I'll just paraphrase.
Once there was a great technical conference. At the end of the first day, a man approached the guard at the entrance and introduced himself as a master thief. The guard searched the man's swag bags carefully but found nothing that didn't belong to him, so he sent him on his way.
At the end of the second day, the thief approached the guard again and bragged that his haul was even greater than the day before. The guard searched the thief's bags again but found nothing out of place, so he sent him on his way.
 
You have to turn them at least 180, sometimes 360, degrees to get them to fit
 
At the end of the final day, the desparate guard asked the gloating thief: what had he stolen all these days, that the guard could not find? The thief smiled and replied, "I have been stealing knowledge."
 
hmmm
 
3:13 PM
@Kevin Does knowledge have cool python logos on it?
If not, don't care.
 
:D
Also, he's not really stealing it, is he? Unless he's bashing people's heads in to deprive them of the same knowledge he's just garnered.
 
You wouldn't download a car
 
Wouldn't I?
 
monster
 
3d print me one of those bad boys.
 
3:15 PM
I wouldn't download a car because it probably wouldn't run and the plastic seats would jab me in the butt.
Ask me again in fifty years.
 
How do you steal knowledge? Wipe someone's memory of what they told you?
 
Exactly.
 
Convince them that it was a dumb idea when in fact it isn't a dumb idea!
 
You could call it "stealing" if the person didn't want you to have access to the knowledge, I suppose.
 
As indeed the US government did to Snowden
 
3:18 PM
heh...so the error was that I had indicated the first field was a Year (a date field) and they set the data as "2 Yrs", "3 Yrs", "3 and a hal......
head table
 
Nah. This is where the difference between intellectual property rights/ proprietary knowledge has been mashed up by the RIAA and the UK equivalents. Theft is removal with intent to deprive. The others are all some variants of 'copying when I'm not allowed to' or 'knowing stuff the other person didn't want me to'.
 
Ah, found the original. here it is, chapter 3.1.
 
Unrelated to theft chat:
 
PENIS Johnson. Nominative determinism at work.
 
Hah, I don't think the Johnson analogy scans quite as well in the UK, but yeah. Although when I was at primary school, our janitor was called Willie Wiper, which is just the worst name to have at a school in Scotland.
 
user6568562
3:27 PM
I'm really sorry guys if this is a dumb question or one that have been answered multiple times before. But I would like to know if there are databases that work with Python better than others. In short, while learning Python from the very bottom, what db system should I get interested in, in parallel.
 
Any.
 
Hi Guys, I am currently building a web app using Flask and Stormpath. My application is designed for a company (theirs users should be allowed to see all the content) and their clients (who should only see the content associate with them). Do any of you have an idea about how I should procede to only give access to the content associate with them in the database and restrict them from viewing content associate with other clients.
 
@Ffisegydd until usb-c kicks in. My mother's oneplus came shipped with that
but yeah, the earlier standards are spin-1/2
 
user6568562
@Ffisegydd Do you have one that you personally prefer more than others ?
 
What does it matter what I prefer? I'm not writing the code.
 
3:29 PM
I like postgresql @randomhopeful
 
You could ask anyone else here and get different answers, what does it matter? Just pick one that you are comfortable with.
 
Anecdote: I recently started doing Python DB stuff for the first time. I more-or-less arbitrarily chose sqlite and SQLAlchemy. I got from "zero knowledge, nothing installed" to "create/read/update/delete tables and rows" in about an hour, which was a lot better than I expected.
 
user6568562
@JeanMichel Did you switch to postgresql from others, still relevant today, or did you start right with this system ?
 
And I use SQLServer and MySQL and don't have any major complaints with either of them.
 
3:31 PM
sqlite is nice because it's a built-in library so you automatically get a wide compatibility base
 
I use Neo4j which isn't even relational.
 
It really doesn't matter unless you're a huge application, and in that case you probably know what tradeoffs you care about.
 
I suspect other DBs are also nice, but I don't know in what ways they are nice because I haven't used them.
 
It's almost as if you could get many different answers and so should just pick one which suits your requirements and be done with it.
 
user6568562
@Kevin I'll keep their names in mind, once I'll be comfortable to test my own date storage/retrieval. Thank you [ :
 
3:32 PM
@MorganThrapp Still needs 2 close votes. 2 more answers have appeared.
 
My primary requirement is "doesn't consume all of my extremely limited patience for installation and configuration bullshit"
 
sqlite is fine for most stuff while you're learning, but it has a tendency to lock up with lots of writes, so a bit problematic in production use. Not much mileage between MySQL/MariaDB/Postgres unless you have very particular requirements, in which case you'll know what you need. MariaDB > MySQL as it's the community fork, I guess.
 
@PM2Ring One more now!
 
I got yo back.
 
closeded
 
user6568562
3:33 PM
@Morgan, I see. Mainly, it would be strings and ints storage, for what I have in mind. So for the time being, I'll start with the ones whose documentation fits my understanding abilities
 
Danke.
@randomhopeful Yup, that would be a good way to do it.
 
one answer needs some more peer pressure...
 
Use SQLITE if you're new
 
Or even redis
 
3:34 PM
I've never used redis.
 
I have used Postgres, SQlite, MySQL, and MS SQL (several versions) the only thing I can say is no Oracle
unless you have to
 
If you want simple relational, sqlite. Simple non-relational, redis
 
which a lot of us have to
 
Redis is a ballache to install if you're new though.
 
redis the new black
8
 
3:35 PM
Yeah actually I would advise to avoid Oracle, whatever you do.
@Withnail docker mate.
 
user6568562
@Kevin That's the directive I wanted to hear, lol. I'm confused by the number of available systems
 
I'd say the same about that tbh.
 
@Ffisegydd Well, yeah. They want a database, not to be waterboarded.
 
I am currently building a web app using Flask and Stormpath. My application is designed for a company (theirs users should be allowed to see all the content) and their clients (who should only see the content associate with them). Do any of you have an idea about how I should procede to only give access to the content associate with them in the database and restrict them from viewing content associate with other clients.
 
Docker is easy to get going.
 
3:35 PM
@Jean-MichelProvencher Yes, you asked that.
It's still too broad.
 
@Jean-MichelProvencher you've already asked, you don't need to repeart.
 
okok thanks
 
If no one wanted to answer 2 minutes ago, give it a while.
 
user6568562
JGreenwell, having worked for about ten years in technical assistance and hotlines, I can understand where the resentment towards Oracle solutions come from.
 
3:36 PM
Oracle are the worst. The only reason they still exist is they've locked a bunch of big enterprise companies in.
 
OSS will topple them eventually.
 
not unless you've gotten a call at 0100 about an Oracle DB problem on Thanksgiving -> then you learn what it is to hate them
 
When I worked in government we spent about a million quid (actually) trying to make their People Management software work and be a bit more custom.
 
user6568562
@Withnail, True. Their marketing budget is enormous. No wonder they're wildly used. I speak from the perspective of a tool's simple user, not even a coder
 
It was a maybe ~10-15% improvement. Legitimately the worst software I've ever used.
 
3:39 PM
It's been said that Oracle software is sold on the golf course, not on the whiteboard.
 
Seems doubtful. I reckon it's mostly sold at gunpoint.
 
The only database on the same level as Oracle is Sybase.
SQL Anywhere is the bane of my existence.
 
user6568562
I wanted to know, if you, as confirmed and professional coders, can get overwhelmed by the wild range of frameworks, systems and structures available. Do you rely on experience to choose your tools, or opinions of people you trust, or etc
 
Honestly, I just use the stuff that I use in my day job, unless I find something way better from someone yelling at me for using the first thing.
 
Yes, yes, yes, and yes to et cetera
However, in my day job, I'm mostly using what's already there. I don't get too many greenfield projects. For personal stuff, I use whatever I'm interested in at the time
 
user6568562
3:45 PM
I see
 
user6568562
This must be noob anxiety but I wouldn't want to end up learning stuff that would end up being useless or inefficient
 
I do research on the various libraries and make a choice.
That research is mostly reading, but also asking the opinion of those I trust.
 
@randomhopeful as your starting out I'll give you the best advice I know to give UG - check the job listings in your area and start learning whatever they ask for the most as DBs are mostly the same (as long as not Oracle)
 
user6568562
Yes to the reading. The discipline needed is martial art like
 
3:49 PM
It's not martial art like at all, most people are just lazy.
 
only in the way that martial arts are like all learn
 
user6568562
@JGreenwell I will do that. Hopefully, I'm not planning on finding a salary. I retired relatively young and would like to be able to join communities and be on the productive side of the internet
 
aww, well I'm retired military trying to get into teaching but its still the same advice :)
 
13
Q: The Un-shipping of Teams

bluefeetFor almost the past year, we've had Teams in private beta and while we believe in its potential value, after a lot of consideration we've decided to un-ship the idea for the time being. Teams will shut down in about a week, meaning you will no longer be able to access, join, or create ne...

Teams is being shut down, there's still hope for examples Documentation!
 
local charities and non-profits use the same tools as other companies in the area
 
3:51 PM
May angels sing thee to thy rest, Teams ;_;
 
'un-shipping', haven't heard that euphemism before.
 
Just reminds me of fanfic.
 
user6568562
@JGreenwell Very true ! I will keep your advice in mind. [ :
 
"And then Snape unshipped Ron from the rear", that sort of thing?
 
£10 for the first person to comment "So how long will we have to wait for Docs to be unshipped?"
 
3:52 PM
Pretty sure sopython won at Teams.
 
@Ffisegydd I was VERY tempted.
 
only place that is weird are universities and other schools - they use what their grants require them to use
 
user6568562
I don't know if you guys know about Sage. They're a huge company that make billing and accounting solutions
 
user6568562
Nightmarish solutions. Too expensive and too buggy.
 
"In order to "serve programmers better", when will all the other new features be un-shipped so you can focus on the huge backlog for the well established tool you guys maintain that serves programmers really well?"
 
user6568562
3:54 PM
But with lack of actual competition, they can do whatever they want to.
 
@davidism Fuck that shit. That doesn't make us more money fast
 
in Documentation Public Beta, Jul 26 at 15:32, by davidism
OK, since we're going there, could you give an example of a constructive team and how it's constructive?
 
yeah! already a reference to anti-doc team :)
I wonder if it has also been triggered by the recent misuse of it (you know, the anti-docs team…) … But I agree in general, teams is quite disappointing as of what's possible with it now [as @Pekka웃 notes correctly, it has some potential, but current state :-/] and documentation is a far more important topic currently. — bwoebi 2 mins ago
 
I feel like I played my small part in the un-shipping.
 
bluefeet said it wasn't a factor............................uh-huh, sure
 
3:59 PM
I doubt it was a factor, things like these don't get cancelled on such short notice.
 
hah! data loaded funk music playing in my head
 
I doubt they were thinking that everything was going well, and us making a small joke team then convinced them that it was a terrible idea.
With Thomas leading the Teams (or being the public face at least) and him leaving a few months ago, it's probably been on the rocks for a while.
What I can imagine though is that the shit storm that Docs has been, with the need for further features quickly, might have caused them to shift focus and stop any further Teams dev for the foreseeable future.
 
user6568562
Does anyone know if SO is planning to add topics from the main questions flow to the documentation topics ? i.e " To see how this topic gets applied in the real world "
 
It's a shame, maybe if they'd had some Documentation about how to make a new feature, this could've all been avoided.
@Pekka웃 We simply felt it was time to find new and better ways to test our tolerance for grief from the community. — Ana ♦ 9 mins ago
Heh.
 
I need more chalkboards
 
4:15 PM
ORA-00942: table or view does not exist, says Visual Studio on my left monitor. TABLENAME (10000 rows displayed), says SQL Developer on my right monitor. "hghgghhggf", says my head on the keyboard.
 
@Kevin Is it not qualified with the proper user/app?
I ran into that issue a LOT a couple months ago when I was using Oracle.
 
If by "It" you mean "the VS stack trace", no.
There's no indication what user it's trying to connect to the database with.
The connection.connection_string property in the config file says User Id=FOO, and SQL Developer is using user id 'BAR' to connect, but the two accounts should have identical permissions.
 
I meant that I was used to other databases where you just do SELECT foo FROM bar, but Oracle you have to do SELECT foo FROM stuff.things.bar.
 
I suspect that kind of qualifying isn't mandatory because I've never seen it in the raw SQL present in the stack traces generated by the ORM I'm using
An ORM which, up until a month ago, worked properly. So we can also rule out "the qualifying is mandatory and your code simply never worked"
 
Oh, maybe not.
 
4:25 PM
Could the configuration of the program and/or db have changed, however?
 
A suggestion from my coworker: "we have multiple schemas for our many projects. Maybe your program is looking in schema A for a table in schema B. This used to work because schema A had a synonym for the table in schema B. It doesn't work anymore because you screwed up while importing the tables and none of the synonyms built properly"
I'm not sure how I would test the validity of this idea, but it's certainly possible.
@KevinMGranger It is overwhelmingly likely because we all migrated to new computers two months ago.
 
Hi, I have an important question for a friend!
 
We are ready to hear your question.
 
It is, "What Py editor(s) do method following?"
 
I don't know what that means.
 
4:33 PM
He also said, "I feel like reading code straight out of github isn't the most practical way of following flow of execution in python. Especially across classes. "Oh a function is being invoked" /me opens new tab in github."
 
Like, which IDEs let you right-click a function name and choose "jump to definition" in the context menu?
 
Yeah maybe
Or maybe follow execution if you do it that way
 
I don't even know if that's possible in dynamically typed languages. But maybe it is.
 
PyCharm supports that.
 
Okay I'll let him know, thanks
ANy others? IDLE, or w/e
 
4:34 PM
It sometimes can't find something if it's truly dynamic, but it'll get 99% of cases.
 
Could someone point me in the right direction toward speeding this up. I.e. how to perform multiple api calls simultaneously that get correctly appended to my pd dataframe? code snippet gist.github.com/click-here/68695aa96da6d39eb6e9e4703c2a7b83
 
He may also be asking "which IDEs have step in / step out / step over / pause / resume controls?"
 
Worst case, it just shows you a list of potential definitions.
Which, again, PyCharm.
 
Yeah so far I think all he wants to know is the actual code for a invokation
*invocation lol
 
@MarkC Wing IDE also has that functionality
 
4:35 PM
Okay thanks
 
vim and there's probably a plugin for that
Sorry, I had to
 
As well as the step in/out/over ones you mentioned
 
and emacs too
 
hehe I saw Vim on a Google result but
 
@clickhere threading might help.
 
4:35 PM
"Yeah learn all of $TERMINAL_EDITOR real quick so you can write python"
 
Since he was born in the last ~25 years I didn't think he would likely use it
 
Assuming that .get is one of those things that can actually be parallelized by threads in spite of the GIL
 
I'm 23 >:/
 
((((EMACS))))
yes but u have to be dedicated!
 
Eight Megabytes And Constantly Swapping
 
4:36 PM
I'm 22 and I've occasionally used Vim.
 
I found vimtutor really simple, but like I said, I was mostly joking.
Mostly.
 
you'd be surprised (I use Vim for quick edits) but met < 26 year olds that use emacs
 
When I'm feeling particularly masochistic. ;)
 
hey i like finger-efficiency too
i just haven't really had the need or reason to learn it
 
DSM
Lunchtime cabbage for all.
Wow, so no more Teams. (That was more by way of expressing surprise, not to restart a conversation.)
 
4:39 PM
It's like we're all strangers now.
 
@DSM yikes, when did that happen?
Oh, reading now
 
I call dibs on being the last person in the room, wistfully gazing in the dim light of dusk at all the chairs upturned on the tables, and turning the lights out and climbing the stairs to the entrance, while the credits roll and a tinkling minor-key version of the intro music plays
 
Thanks a lot @Morgan
There's intro music??
 
@MarkC No problem.
 
:)
 
DSM
4:43 PM
"Sorry, we're closed," said Kevin.
 
Well it's non-diegetic so you can only hear it if you're a protagonist... And if you sniff a lot of glue.
 
DSM
Ah, diegetic. I remember you.
 
^That's the reference.
 
Good word.
 
4:46 PM
Rbrb :)
 
sopython theme music? Whiskey in the Jar - Metallica.
 
DSM
So Toto's Africa is out?
 
Wouldn't it be the theme to Flying Circus?
 
For legal reasons we're not allowed to associate ourselves with Monty Python.
 
I assumed it would be
Forgot how bad Cobra Starship is, sorry.
 
4:49 PM
If we've got the budget for it, the opening theme could vary based on who is the main character that episode. I want something appropriate for throwing my hat in the air just before a freeze frame, a la Mary Tyler Moore.
 
DSM
That could actually work. Kevin could write a userscript to play music when people appear.
 
FizzyGirl brought gin from the supermarket, she's a keeper.
 
@MorganThrapp I want to leave a comment saying "+1 for un-shipping things in beta". I'm a bit reluctant...
 
OK, getting close to PyData London time
 
Teams is going away? How will I continue to do nothing with it?
 
5:04 PM
The teamwork was inside us all along.
 
But...but...I was a member of a team:(
 
I thought you said "I was a team". I'm not. There is no team in I.
 
Time for an exceedingly old reference: brunching.com/magicfeather.html
Requires flash 4 or greater.
 
Oh you said it the other way around. Dang!
not to worry; still mildly relevant
 
My program is crashing exactly every other time I run it. This concerns me.
 
5:12 PM
50% success rate is not bad!
 
we call that a parity efect
blame it on quantum confinement
 
It's 100% success if I pretend I just need to hit the run button twice per execution
It's funny how weird behavior in my Python hobby projects make me go "I'm getting to the bottom of this" and weird behavior in my work projects make me go "I guess this is my life now"
 
Anyone here good at lower level operations? I am trying to receive user interrupts on a controller but the instructions are slightly unclear
 
Possibly because the latter projects are a hundred times larger than the former.
 
something with files that exist or not?
 
5:16 PM
@corvid Lower level operations? It's a python room. The only way you can get more high-level is to just have a readme.
 
"sudo make me a sandwich"
 
My current guess is "some kind of semi-persistent resource that partially initializes on my first execution, then crashes because it's not fully initialized, then fully initializes on my second execution, then eventually expires and completely de-initializes if I leave it alone long enough"
 
maybe your lengthwise excessive pinky nail hits ctrl-c on every second run?
 
Meh :\ I'm just trying to use the EI and UI commands from here to dispatch events, but I never receive the events on the socket
 
5:19 PM
@MorganThrapp voted to close as unclear, that doesn't deserve to be dupe closed
 
@AndrasDeak Yeah, it could go either way.
 
I mean, just my two grumpy cents:)
I'm OK either way, as long as it's closed
 
That's adorable!
 
@idjaw Herman has seen some shit
 
5:24 PM
@MorganThrapp I am saying it should have been mentioned here. I have no idea what Python even is. Just #SOReadyToHelp :) — Dani Springer 22 secs ago
Good thing you're on Python question then!
 
Read that as "cat shaming time", expected:
 
~sigh~.
 
 
@MorganThrapp you ninjad me
I was going to mention that I'm getting an aneurism from that comment
 
Oh we're not shaming coreutils? "I take 12 flags even though I'm just supposed to concatenate files and print on the standard output"
 
5:25 PM
wish I could flag a comment as "butt"
 
Is there a butt emoji?
 
there has to be, there's even 💩
 
Welp, never thought I'd be googling "Butt emoji" at work.
So thanks for that.
:P
 
I once responded to a bug report about a bug I introduced with a poop emoji. Apparently, if the emoji font doesn't load on that app, the alt text is just... uh, what's the room policy on profamity?
 
@MorganThrapp one more thing: take a peek at Dani's profile. One word: "musician".
@KevinMGranger depends
 
5:28 PM
ayyyyy lmao
 
@AndrasDeak Yeah, that does not surprise me.
 
Devil's advocate: you can discuss the merits of the presentation of technical advice without understanding the technical advice itself.
 
@MorganThrapp I was going to say something along the lines of "how do they like if I spam their tag?", turns out that tag is .
 
@Kevin Fair enough. I normally agree with you, but in this case the info they wanted to be there was there already.
 
Terrible analogy: I don't speak French but I can still tell if a French sentence is improperly formed because the first letter isn't capitalized.
 
5:31 PM
So basically they didn't bother to actually read anything before complaining.
 
@MorganThrapp I'm not sure about that. They might expect an answer on the dupe question, containing the words "dict". Rather than grasping how duplicates work.
 
Yeah, I won't claim that this particular musician's comments have merit. I'm just saying that musicians in general are capable of making comments with merit.
 
@AndrasDeak Oh, maybe.
 
@Kevin There's no empirical evidence for that
 
:-P
 
5:33 PM
I'd make snide remarks about liberal arts majors, but Withnail seems like a great guy
 
Ok, anecdote: Cave Story's programmer and music composer are the same person.
 
That would be compelling evidence, if I knew what Cave Story is. Gotta go google.
 
There, one empirical data point. That's enough to draw a trend line I'm pretty sure
 
I was a theater major.
 
A cult hit rpg platformer with high production value
 
5:34 PM
gotta go google production value:P
 
I would also point out Toby Fox / undertale but his whimsical coding style would probably work against me
 
just restart firefox first...
 
Is Undertale open source? Do we know anything about the coding style?
 
yes... definitely TL;DR
 
5:35 PM
Oh you with the timing
 
@AndrasDeak Yeah, I saw that. I don't even know what they mean, so I'm just not touching it.
 
They have absolutely no idea what to do. Probably missing the abstraction needed to solve algorithmic problems entirely.
 
"How to create an output according to user input" is an amazing title because it pretty much covers everything you can possibly write a program to do
 
It's sad, but it also makes me want to kick them down a bottomless pit screaming THIS. IS. SO.
Oh, right, Be Nice...
 
5:40 PM
They've gone through 3 or 4 titles, each equally vague and useless.
 
Sometimes sending new users on a solitary journey of painful self-discovery is the nicest thing you can do.
 
Unless a musician comes along, ##SOReadyToHelp$_?!
 
I prefer the "force ghost" method of teaching where I'm frustratingly vague when I'm not absent entirely
 
@Morgan I don't even think OP needs a dict
they just need to store n integers, where n is read first from input...
 
@AndrasDeak I thought they needed it to store a mapping of items, quantity.
I have no idea though.
 
5:45 PM
Speaking of teaching methods. Yesterday I read that Plato had three Olympic medals in wrestling and his name was one letter away from the Greek word for "broad shouldered". To follow his example I'm going to get ripped and tell 1-reppers "provide an mcve or I'll put you in a headlock and pop your skull like a grape"
 
But brace yourself: if they find out how to do this, the next question will concern this: "it asks them how much of that product they want(quantity) and then prints out the info from the text file for that product"
(emphasis mine)
Oh man, @PeeHaa should've created a spoiler for the spoiler thing, that subtly tells you via XSS that you have an XSS vulnerability. What a missed opportunity:P
 
@AndrasDeak I was actually busy today so couldn't really be arsed ;-)
 
awww:P
 
What is a spoiler, anyway? In relation to the sopython site
 
@PeeHaa That's the reason why I'm an arse by default.
 
5:49 PM
Will troll proper for the next vulnerability though
 
guys, any thoughts on doing:
try:
    # stuff
finally:
    # things if things go well
 
@KevinMGranger it's an obfuscator for strings
you write "soylent green is people" (oops!) in it, it gives you an obfuscated URL
who wishes to see said spoiler, can do so by clicking
 
That's not how finally works unless I'm misunderstanding what you're asking
 
It's part of test code. So if something fails I want to see it in all its glory.
I'm asking more about the good/bad practice of doing that
 
Test code needs good practices?:P
 
5:50 PM
Finally runs no matter what, don't you mean to put that outside of the try: block?
 
yes, my comment in the finally was wrong
thanks for catching that
 
pun intended?
 
not at all
and now I see it
slow clap
 
too much Pokemon Go for you
 
&$#$ that game
I'm done with it
 
5:52 PM
Since the update?
it made our news
 
"Daddy I'm tired!" "NO! YOU'LL CATCH ME MORE POKEMON, POKESPAWN!"
 
:D
@poke should call his future children pokespawn ^
 
A week and a half ago I said "I'll play Pokemon Go if it's still popular in 30 days" and it's beginning to look like I saved myself a lot of walking.
 
That expands to pocket spawn...
 
I'm sure his hypothetical wife will love this.
 
5:53 PM
hmmm I think try/finally would be acceptable....if anything fails, then I want the thing in finally to run to clean things up in the test environment
are we talking about my hypothetical wife and spawns?
 
@idjaw no, that of poke
 
"Why is our daughter named pokespawn Patrick!?" "Because of a promise I made to old friends on a chatroom that got destroyed in the Docs Wars...I'm the only one left..."
 
"God bless them all...except Fizzy."
 
aka Judas, the Defiler, the One Who Broke Chat.
 
I went many years without using finally and I finally found a reason to use it in a program that generates intermediary files in the process of generating a final file. Whether the last file is generated successfully or not, I want the intermediary files deleted.
 
5:55 PM
@Kevin functionally that's like a context manager, right?
 
"high-level interfaces which provide automatic cleanup and can be used as context managers."
 
aaawww yisss
 
I guess up until that point I didn't really need finally because the vast majority of data manipulation I do, I prefer to do in-memory. But this was a special case because I needed to execute a command-line process on the data, and that process only accepted files.
 
How about <<<'string' syntax?;)
 
@AndrasDeak Sure. I probably could have refactored it to use with without much effort on my part.
 
5:56 PM
Yeah, FIFOs?
 
oh, that's your problem, STDIN is no-go
nevermind
 
I'm running commands via virsh, so I need to clean up the vms that I am creating. So if something fails, I need to make sure the command that cleans up the vms runs. I think the finally would help here.
 
or else they'll rage?
 
I think bash uses FIFOs for here-{doc,string}s
 
here-docs here-strings?
 
5:59 PM
should be an or in there
:P
 

« first day (2117 days earlier)      last day (2814 days later) »