« first day (1766 days earlier)      last day (3405 days later) » 

18:01
Speaking of beer, the local bar has wing night tonight. 50c wings and $5 pitchers. It makes Mondays so much more bearable.
Speaking of beer, I wish I had some ;_;
DSM
DSM
And Tuesday mornings much harder to bear.
@MorganThrapp that's a cool deal, where is it?
The key is to keep on drinking through to Tuesday
@AaronHall Local faux-irish pub called Murphy's. I don't think they even have a website.
Really good wings, and they have one they do with ghost chillies and one with scorpion chillies.
@Ffisegydd Why stop there? I don't stop drinking till Friday night, and that's only because weekend drinking doesn't count.
18:17
@Morgan are you sure you're not part-Welsh?
@Ffisegydd I'm Irish, Italian, and Norwegian, does that count?
DSM
DSM
Morgan sounds Welsh to me, FWIW.
@DSM It's Irish, which is pretty close.
Morgan is a Welsh name, plus the alcoholism, I'd say you sound pretty damn Welsh.
DSM
DSM
nor-(WE)-gian ita-(L)-ian iri-(SH)
18:19
Someone posted something on FB over the weekend that I've just been reminded of
user559633
A Python meetup group that will teach you a more useful language, like Java.
It all fits... Illuminati confirmed
In 1872 the welsh invented the condom using a length of sheep's intestine. However in 1873 the English somewhat refined the idea by taking the intestine out of the sheep first.
4
user559633
3 sets of parens. HalfLife calculations normally contain parens. HL 3 confirmed.
user559633
@JonClements In 1874 the Americans somewhat refined the idea by not re-inserting it into the sheep.
18:20
Iris-(H)- Ita-(L)-ian norwe-(confirmed)-gian
the "confirmed" is silent. And invisible.
@tristan okay - could take a while to get to modern day here... :p
user559633
@JonClements I got nothing but time, Mr Pups
this is the third time I've asked somebody where they learned bad behavior X, and I expect it will be the third time I receive no reply.
I just can't find a tactful way to word "who put this dumb idea in your head? Or did you come up with it yourself?"
Someone is writing bad tutorials. I don't know who they are or what they want. But I will find them. And I will write a strongly worded email to them.
DSM
DSM
I wouldn't rule out the independence possibility just yet.
I was about to say "but so many people make the same mistake, how could it be a coincidence?" but that's reverse-survivorship-bias: People that grid properly may outnumber the misfits by 99 to 1, but I only see the 1% because only they come on SO
18:29
The rest are all members of "Stack size is well within tolerated values dot com" where they make posts confirming that everything is just fine, thanks
@corvid you're finally set! ^^^
Implying I don't already do that with my cat
@DSM Maybe I should bury the lede and just ask "are you using a tutorial?" and only disclose my motivation if they say "yeah, I'm using X, why do you ask?"
Yes but now your cat can actually have wine.
18:31
This has a chance of backfiring, if the user thinks "he probably won't answer my question if I admit I'm copying code from an outside source", but OTOH it can't get much worse than my current 0% success rate
My cat prefers rum
@Kevin Of course it's a tkinter tutorial. Do you see the import?
I'm actually quite liking AngularJS guys.
It's the first time I've really done MVC programming.
It's too Monday for this.
18:41
Uh oh. Won't be too long and "y'know what, minifying your code isn't a bad idea"
Obfuscations, not that bad, really...
;)
DSM
DSM
Maybe we should add "saying our farewells to Fizzy" to AOB at the GM.
Pfft, reading code is overrated. That's why everyone only writes in Brainf*ck, right?
>++++++++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>[-]>>>++++++++++<[->-[>+>>]>[+[-
<+>]>+>>]<<<<<]>[-]>>[>++++++[-<++++++++>]<.<<+>+>[-]]<[<[->-<]++++++[->++++++++
<]>.[-]]<<++++++[-<++++++++>]<.[-]<<[-<+>]
This is where you're going wrong - code is meant to be compiled, not read.
18:43
@Ffisegydd Are you using version 2.0 or still version 1?
@corvid dunno mate I'm not on my work computer. I literally started learning it properly today.
I've spent about five hours today watching a progress bar crawl towards 100%. It's at 68% now.
DSM
DSM
To quote myself: "I took a stab at Angular a while ago and found it needlessly baroque."
Coulda been a lumberjack, they never have to watch progress bars. But noooo.
3
DSM
DSM
@Kevin: can you do x = whatever.pack(), or do you have to do x = whatever; x.pack()?
18:48
pack() returns None, so assignment is technically allowed yet useless
@Kevin They just spend a lot of time with logs.
obligatory monty python link to commiserate past Kevin's career choices
That is an unflattering depiction of lumberjackery, but I can never fault anyone for linking a Monty Python bit
DSM
DSM
19:11
I think Martijn has made an error.
user559633
@DSM I don't see any pigs flying...
user559633
Was there a solar flare that is causing bits to flip in the Martijn AI? We couldn't afford a faraday cage in the new datacenter we had to move "him" into after he got moderator controls.
DSM
DSM
Any solar events would have happened two and a half years ago or so. I guess we could look it up.
Hm. Can you get the results of stdout and use python to pretty print it as json?
plutil -convert json ${plist} -o - | python -m json.tool
Got it
DSM
DSM
19:25
@MartijnPieters: you 'round?
Well, he ain't no square.
hi
i have some questions with nested dictionary
this is my first time here.
Welcome @Larry, just ask.
let's just try that again.
@DSM: I am
I just deleted my answer to this question.
Too many questions unanswered, OP keeps moving the goalposts.
i have tables with column (CODE; DESCRITPION)

i have created dictionary for each table as below:

tb = "ELES_STATUS"
with arcpy.da.SearchCursor(tb,["CODE", "DESCRIPTION_G"]) as srows:
dict1 = dict([srow[0], srow[1]] for srow in srows)


tb = "U_ELES_KABELBANDFARBE"
with arcpy.da.SearchCursor(tb,["CODE", "DESCRIPTION_G"]) as srows:
dict2 = dict([srow[0], srow[1]] for srow in srows)

tb = "ELES_TYP_KABEL"
with arcpy.da.SearchCursor(tb,["CODE", "DESCRIPTION_G"]) as srows:
dict3 = dict([srow[0], srow[1]] for srow in srows)
DSM
DSM
19:35
@MartijnPieters: this guy is trying to apply a code you wrote, but I don't think your code works for the original user's purpose either (from the question I thought he was after a set-consolidation style approach, and from his comment he eventually wound up using one).
Gosh, I can't remember a thing about that answer.
I wish you could still buy an iPod Classic :(
@Larry look at what's the same in each of those blocks. All that changes is the tb value and the index in the lookup dict. So put the tb values in a list, and loop over them to build each dict.
DSM
DSM
I can't find my iPod touch at the moment. I may have lost it. I keep it around because it syncs up nicely with the machines at the gym. ;_;
@Larry,
19:43
Bah.... got a head ache - gonna get an early night... rbrb for a bit
tbs = ["ELES_STATUS", "U_ELES_KABELBANDFARBE", "ETC"]
dicts = []
for tb in tbs:
    with arcpy.da.SearchCursor(tb,["CODE", "DESCRIPTION_G"]) as srows:
        dicts.append(dict([srow[0], srow[1]] for srow in srows))
#optional, since `dicts` already associates integer indices with the dictionaries you want, so you can just use that
lookup = dict(enumerate(dicts))
I've got a shuffle but am getting fed up of having to change it around as it only has 2GB of space. I've got 50GB of music so don't really want to buy a Touch as they only have 16GB.
I had a 4th gen iPod back in '04. Was my first ever MP3 player, I bought it with money saved up from work.
I wonder if my old iPod is still somewhere in my room.
I never used it for much.
@DSM: tbh I don't have the bandwidth right now to even figure out why they implemented my solution entirely differently there.
DSM
DSM
@MartijnPieters: no worries. I figured since you were mentioned explicitly I should draw your attention to it. :-)
user559633
19:48
@Ffisegydd Similarly, I had a 4th gen iPod back in late '04. Was my first ever MP3 play, I stole it from someone that saved up money from work.
@DSM my second solution provides the exact same output they got, at any rate. :-P
user559633
From some curly-haired kid that was into physics
user559633
ME!
I had curls.
And was into physics.
Not that I had an iPod.
19:50
Reminds me of my old job selling bootleg 4th gen iPods back in early '04. They were pretty authentic looking, but caused impotence after extended use.
user559633
@Kevin Still got any of those around? The girlfriend has been talking about kids lately
user559633
"guess we have to get a dog instead!"
Nah, all my surplus stock got sealed in a drum and sunk into the deepest part of the ocean.
user559633
boooooo
Just use a cellphone or a laptop, according to my mom, that'll make you impotent and give you cancer.
19:53
@Kevin, thanks for that bit of code. I have another question unanswered on stackExchange. Can you have a look at it
user559633
@MorganThrapp It's worked for us so far
Can't help you there, I don't know r.
no its with python.
1
Q: Update values in fields from look up table

LarryI have a feature class with several attributes/fields. Some of these fields have associated look up tables (arcgis tables). These tables have two columns, CODE and DESCRIPTION. Currently fields in feature class have values as CODE. I want to update the field values with DESCRIPTION corresponding...

DSM
DSM
Is this the first time someone's asked for an answer on a programming question on a different site?
Can't help you there, I don't know arcpy
19:56
So, I am trying to contribute to a big project for the first time open source... what is important to do?
@corvid The common answer is "documentation, because it's relatively easy for newbies, and nobody else wants to do it"
DSM
DSM
(1) match their style (2) go overboard with the tests (people like that, and if they don't you shouldn't be learning from them anyway) (3) make your contributions touch the minimum number of things they need to to ease review
"relatively" as in, it won't break the build if you miss a semicolon. Might still be hard to actually write something useful.
DSM
DSM
(after reading Kevin's answer I realize I automatically assumed we were talking about code contributions.. which may prove Kevin's point)
Oh I mean I already made a contribution, it's a pretty big thing... it adds a platform for the application to work on
DSM
DSM
19:59
.. so what's it running on now?
@DSM (4) Double-check your diffs before the pull request to make sure there aren't any gratuitous changes.
DSM
DSM
(5) don't forget to squash like I often do :-/
I used to get shouted at politely reminded by davidism if I forgot to squash.
@DSM Browser, ios, android, shenanigans like that. I just made a little script to compile it to a pure desktop application
20:14
(6) when you do attend the celebratory squash game after your first checkin, it's customary to let the repository owner win. But make it convincing.
(7) Zucchini is the best squash.
What are we counting?
"what things while trying to contribute to a big project for the first time open source are important to do"
Then I stand by zucchini.
Do Muricans refer to the juice you can add water to to make a drink as "squash" also?
Squash (also called cordial) is a non-alcoholic concentrated syrup that is usually fruit-flavoured and usually made from fruit juice, water, and sugar or a sugar substitute. Modern squashes may also contain food colouring and additional flavouring. Some traditional squashes contain herbal extracts, most notably elderflower and ginger. == Drinks == Squash must be mixed with a certain amount of water or carbonated water before drinking. As a drink mixer, it may be combined with an alcoholic beverage to prepare a cocktail (see preparation). Citrus fruits (particularly orange, lime and lemon) or a...
I am not familiar with that usage.
However, I am not familiar with drink terminology in general.
20:18
We have mio.
But not Squash (the drink).
Do you not have it by any other name either? I find that strange.
Crystal light? "Drink mix"?
It's basically a concentrated syrup that you add water to to make a juice drink. So one bottle can be made into significantly more.
@Ffisegydd We have soda syrup. That sounds like it might be similar.
Is it something like this? drinkmoregood.com/products/…
I know that many restaurants make soda out of syrup, but I've always perceived that as a solely commercial approach.
Doing it at home is tantamount to buying a thousand rolls of toilet paper at the bulk goods store. economical, yet unusual.
DSM
DSM
20:21
I share Kevin's unfamiliarity with this usage of "squash".
Most of the coke/pepsi that you drink in a restaurant will be produced from a concentrated syrup, yeah.
DSM
DSM
@Kevin: a friend had one of those machines growing up. When we ran out of syrup we tried carbonating milk. Not one of our more successful experiments.
"Squash" or "cordial" is generally still, or not fizzy, though.
That's what I think of when I hear cordial.
I vaguely associate "cordial" with alcohol in some way, but that might purely be from glancing over Ffisegydd's Wikipedia link.
I wish I could ask myself from fifteen minutes in the past, to get an untainted viewpoint.
But no, he is dead to me now. Oh well!
20:25
Present Kevin is, indeed, decidedly tainted.
@Kevin What do you think cordial is.
I could only find 13 minutes ago. :/
No good, his pings are redirecting to the present.
Damn, foiled again.
DSM
DSM
I always associate "cordial" with Anne of Green Gables. #PEI
I know, I'll enter a deep trance and induce a bout of short-term amnesia. Ask me again tomorrow.
20:28
We could hypnotise you, if you like.
This is an automated response from Kevin's subconscious. Hi, we can't talk right now because we are in a trance. Call back in 18 hours.
Damn, he's got his Out Of Consciousness message set. I hate those things.
If he's in a trance, does that mean we can mess with his body?
@Ffisegydd It's worth a shot.
cue a montage of Kevin in several hilarious and compromising positions
20:33
@DSM Did the carbonic acid curdle the milk?
I once had a shot of baileys + lime juice. It was grim. The lime curdled the cream in the baileys.
DSM
DSM
I don't know if it was technically curdled. I know it was one of the worst things I've ever tasted.
@Ffisegydd That sounds terrible. Why?
Bartenders only give that to people they hate.
Because I was 18 and out with the university golf team drinking for the first time.
20:35
He must've tipped badly. :D
We don't tip bartenders in UK :P
In fact, unless it's a really, really fancy restaurant, we don't tend to tip at all.
DSM
DSM
Moving away from tipping would probably be better for all concerned in the long run, so I'm sympathetic to that arrangement.
I agree. I tip if I get exceptional service (whether it's a fancy joint or not), but if they just do their job, I don't see the need to tip.
DSM
DSM
My sister used to work at a bar. She received excellent tips, for reasons I suspect (though I'm poorly situated to judge this particular case) may not have been exclusively functions of her performance. This seemed not entirely fair to me, but according to her is pretty common.
I worked in a golf shop for 4 years. I never received a tip once, even though I'd often spend more time with one customer (suggesting different equipment and helping them to test it on the range) than your average serving staff would.
I've read horror stories about places in the US and tipping. Waiters chasing people down the street because they only left a 10% tip.
DSM
DSM
20:46
I would be very surprised at that in either Canada or the US.
I think that particular case was in NY, and as everyone knows, New Yorkers be cray.
Hey, that's only down in the city. Us upstaters aren't too insane.
DSM
DSM
Do people still say "cray"? I know "cray cray" was a bit of a thing for a while.
21:32
hi, can anyone here help me with arcpy.
I'm on my phone and about to hit the hay so cannot handle this, hopefully another ro is about.
21:43
I have written python code to update values in a table as per associated look up table.
I have a feature class which has fields with look up tables. The look up tables have columns (CODE AND DESCRIPTION)
the feature class table fields are filled CODE values. I want to replac them with DESCRIPTION value
the code below does that but does not update the feature class. i need help on arcpy.da.updatecursor to do it

the code is as below:



import arcpy


arcpy.env.workspace = "C:/Data_geonis/cable-import/cable-import/shell_excel_import.gdb"
22:15
DSM, a guy I know tips waitresses well, but not waiters, because "I don't want to encourage that sort of behavior."
22:25
@Larry please post your programming questions to the actual site instead of text-dumping them in chat
And see the "room rules" link in the sidebar.

« first day (1766 days earlier)      last day (3405 days later) »