« first day (1616 days earlier)      last day (3336 days later) » 

2:00 PM
Double moot, as it got closed without me.
I considered hammering at the last second just to increase visibility to the post that I answered. Not sure if evil; definitely seflish.
I see a double standard here, because the post I was going to use as a dupe target has received precisely zero off topic close votes.
 
brief cbg
 
cg :-)
 
@Kevin That can be changed... :evil grin:
 
@JonClements Brief? Busy day ahead?
@PM2Ring Do what you must. I have already won.
 
Well... was busy this morning... just gotta do some house work, then back at it ;(
 
2:04 PM
Blech, house work
I want to live in a featureless white cube.
 
@Kevin white tends to look dirty fairly quickly though
 
No grass to mow, no storm drains to clear.
But I guess I'd still have to paint it :-(
 
If it's featureless, how is it going to be white?
 
@XavierCombelle Never use a regex when a simple str method will do the job. Generally, the str solution will be faster. And probably easier to read.
 
The same way that colorless green ideas sleep furiously.
 
2:07 PM
@Kevin This isn't exactly featureless, or perfectly cubical, but it's pretty neat. And very compact. :) The Cube Project
 
@XavierCombelle overkill?
 
Microhomes are pretty neat. They are one of the possible end scenarios for my "drop out of society" fantasies.
I'd rather have an exquisitely appointed log cabin, but my carpentry skills aren't that great
 
@PM2Ring yes but I found that
pattern = "Generated dump "
if s.startswith(pattern):
    return s[len(pattern):]

carry less what you want to do than

pattern = "Generated dump (.*)"
re.match(pattern,s).group(1)
@MartijnPieters I don't know that's why I asked. The advantage I see in a regexp constuct would be it check if the format is correct
 
Umm... when I see something like "The Cube Project" - I have flashbacks to the Cube movies :)
(I'm fairly sure that's definitely not the idea of a nice relaxing cube that @Kevin would enjoy living in)
 
I haven't seen Cube, but I've seen Cube 2: Hypercube.
I'm guessing the concepts are pretty similar. Just, with a different number of dimensions.
 
2:13 PM
Nope, not going to do all your parsing work today.
 
@Kevin ahh... you need to see the first one! And then its prequel - Cube Zero :p
 
So... just a square, then?
 
Sometimes I'm up for it, but today is not that day.
 
Reminds me of a movie I saw while channel flipping, where the characters are trapped in a single square room whose walls are slowly drawing closer.
 
Star Wars?
 
2:15 PM
Fermat's Room. That was it.
 
@Martijn "TODAY IS (NOT) A GOOD DAY TO PARSE!" - a well known geeky Klingon phrase...
 
I think we've discussed the movie in here before.
 
Anyone know a great tutorial for Sockets?
 
ok, Thnx :)
 
2:22 PM
@XavierCombelle: Do you like this avatar?
:)
 
yes I love it. oh you found it on xkcd forum very nice
 
has anyone used codeship? Does it offer any advantages over travis-ci?
 
@PM2Ring ^^
 
It belongs to a user named neoliminal
 
@PM2Ring searching for neoliminal avatar I found this thread quite interesting but also pointless fora.xkcd.com/viewtopic.php?f=40&t=79963
@PM2Ring I particulary love this answer fora.xkcd.com/…
 
2:36 PM
@XavierCombelle I've just had a quick look at that thread, but I'll have to read therest of it tomorrow: it's getting late here.
@XavierCombelle :) One time, my best friend and my girlfriend were playing Go. She thought she had him beaten, then all of a sudden the tide turned and she was slaughtered. In her anger, she picked up a handful of Go stones & threw them at his face, chipping one of his teeth.
 
DSM
Cabbage, all.
 
Cbg
 
DSM
The "D" in DSM stands for "defender of runtime asserts".
 
I thought it stood for "Dastardly"?
 
Weird. Someone just tried to vandalize an answer I did earlier today: stackoverflow.com/review/suggested-edits/7413618
 
DSM
2:42 PM
Death-dealing? Oh, wait, we already have a "Death Dealer" around here, don't we. I'll work on it.
 
I feel like the S should be "sans"
So you're "DXXXXXX sans MXXXXXXX"
Where the "DXXXXX" is something good and "MXXXXXX" is something bad.
 
DSM
dangereux sans merci
 
:-)
 
I was thinking "merde" for the M but okay.
"Dangereux Sans Merde" - "Danger, without sh*t"
 
DSM
.. "direct" would also work, highlighting my forthrightness and honesty!
(We'll work on my modesty later.)
 
2:46 PM
Anyway, it's rhubarb time again
 
rbrb PM
 
DSM
Have fun storming eating the rhubarb!
 
 
The Oatmeal is on my list of things to semi-irrationally hate.
 
Cabbage
 
2:52 PM
I thought "this one isn't so bad, it doesn't have any non sequitur grossout food humor" but then I saw the "pork hobbits". Just couldn't resist, eh Oatmeal author?
 
@XavierCombelle: you have a point there.
 
Anybody have experience with cloudlinux?
 
this, but only if you think not including a stack trace or error message qualifies as "needs reproducing example"
I have a sneaking suspicion that the OP transcribed his code from memory, and his real problem is not actually the Syntax Error that TidB pointed out.
 
DSM
Do you think "# everything looks pefrect" is intentional, or just apt?
 
I think OP is literally 12
 
DSM
2:57 PM
Isn't the age limit higher than that?
 
Doesn't matter. All twelve year olds were born on January 1 1900.
 
DSM
Did I mention that one of our clients used a special age in their database to indicate that the entry was an agency and not a human being? I wanted to throw their DB people off a bridge.
 
Hah. I signed up for Apple iTunes when I was below the minimum age (16 at the time I think) and so put in a fake date. 10 years later I had to change my password and, as a security question, they asked me for my DOB. Had no idea what I'd put in :P
 
That's not a very good design choice.
 
3:02 PM
For both of the above posts, actually. DOB is a lousy security question.
If I can answer your security question by browsing a social media site, without even being your friend, it's not very good.
 
One of my friend's security questions was "What's your last name?". That was a fun account hijacking.
 
That's how Sarah Palin's account got hacked. The questions were all answerable by browsing her website.
 
Oh yeah, and this was his gmail account <his first name><his last name> :D
 
@DSM Il Dit Sans Modestie :)
 
I wonder how common this is: passwords are hashed, but security answers aren't. User knows a little bit about security, thinks "pah, these security questions worsen security; I'll just put my password in again".
 
3:09 PM
cbg
 
DSM
I tend to combine incredibly obscure facts which for some reason I remember (strange phrases and long digit sequences).
 
adds more to journal
 
DSM
And if I can't remember those, I just go with "correct horse battery staple". It's been proven to be secure, because math.
 
Isn't there a Mitchell and Webb skit where the guy is signing up for something, and none of the pre-supplied security questions apply to him? "girlfriend's middle name? Never had a girlfriend. Favorite color? None, I'm colorblind. Mother's maiden name? Don't know, I was left on the steps of an orphanage."
 
I just generate completely separate passwords for the security questions, and store them along with the password in keepass.
 
3:11 PM
I reset passwords every time my cookies expire
 
I have gone into great length of my excellent password system previously.
 
@vaultah That seems like overkill
 
I like to choose cryptic questions like "the color of her hair" which are only meaningful if you've had my exact life experiences
 
It also makes you seem mysterious to everyone else.
 
DSM
Unless the answer is "the auburn of the hills in late October" I'd be worried about a lucky guess.
 
3:14 PM
Though 10 of my passwords are posted on my page in a social network
 
A sufficiently determined attacker could find the question's meaning by learning my life story, but once he does, I'm such a sympathetic character he no longer feels like harming me by stealing my identity
 
I'm now picturing you in a film noir setting.
"Kevin Kevinson was drinking at his desk. His code wouldn't compile, and he'd be damned if he could fix it. He looked past the bottle of whiskey, at the only photograph he had of her. "What a dame" he thought, as his eyes glazed over while reminiscing about that glorious summer, back in '23..."
 
I've always wanted the slats of the window blinds to project a stiped pattern on my grizzled face, as I look over my shot glass at a framed picture of Her that I keep in the lower drawer that I think is secret from my business partner, but he knows. He knows.
 
"Suddenly, powered by the evil Dr. Dangereux Sans Merde, Jupiter crashed into Earth!"
 
DSM
Toss in a few Dutch angle shots and I think we've got ourselves a picture here.
 
3:17 PM
Can we have a dolly zoom when I suddenly realize the identity of the killer? I love dolly zooms.
 
stackoverflow.com/questions/29169164/… (again) question is so unclear, even the author doesn't seem to know what they're asking for
 
Dolly zooms are pretty cool (didn't know they were called that)
 
Also a good porn name.
 
heh
 
@Kevin thanks for linking to qntm.org yesterday, his writing is great
 
3:22 PM
Hey, someone finally listened to a story recommendation of mine! :-D
 
I watched Primer last night with his commentary track, it was really good.
I already understood what was going on Primer reasonably well, and it still tied in things I hadn't noticed.
 
His explanation of the time travel system of Back to the Future finally brought me closure when nobody else could.
 
I haven't gotten to that one yet, but the Looper one was really good, and I didn't even think I needed an explanation of it.
 
DSM
Am I missing something? What's so bad about this question?
 
3:27 PM
@Kevin maybe you'll be able to identify a couple other short stories for me?
 
The Looper system is lunacy, but Bruce Willis' character said to not bother thinking about it, so I don't.
 
There's three that I read a while ago and can't remember where anymore, and it's driving me crazy.
 
@davidism I'll give it a shot
 
> Know someone who can answer? Share a link to this question via email, , , or .
Have I just not noticed this before?
 
Maybe it's a userscript glitch, because it says "via email, Google+, Twitter, or Facebook." on my machine
 
3:29 PM
Ah.
 
Got some kind of social media blocker or something? That might do it.
 
OK, first one: man is part of a drug test, and realizes that the drug makes him smarter, steals more drug, gets even smarter, then realizes someone else must have been effected in the trial, and they basically mentally fight (I'm trying not to spoil things as well)
 
Yes, it'll be an antifacebook addon.
 
Ooh, I've read that as well. I will now try to remember the title.
I remember specifically that the main character's name was "greco", because the other supergenius manipulated stock market prices so the S&P listing would spell out his name.
 
yeah!
 
3:33 PM
@DSM People don't understand why he'd want that, therefore he shouldn't want it.
>Logic
 
Hmm, I wonder if there's a way to search for "scifi" in my firefox history window while excluding all stack exchange sites... That would probably help
 
They have a stackexchange site for these questions.
 
Yes, but I could remember the answer at any moment! In which case it's less effort than making a post.
 
why doth thou torment me so, javascript?
 
It enjoys watching you suffer.
 
3:36 PM
You sound like a programmer giving an estimate for a bug fix.
 
"Any minute now..."
 
Second one, might be by the same author: making golems by writing information into vessels is a science, and the race that does it seems human but isn't, there's no sexual reproduction, and they realize they're all basically going to die. One scientist figures out 23 symbols that create golems that can reproduce by trading, which turns out to be the human chromosomes.
 
In practice, my usual recall time for "tip of the tongue" memories ranges between four hours and six months.
That second one is not familiar to me.
 
It's nearly a year since I last requested a reopen-vote on this in here, so:
 
3:40 PM
I think I may have gotten some of the details wrong. I remember it being recommended in some Reddit thread about the first story, but I can't find the thread either. :/
 
@Zero it's already open?
 
(dammit)
-2
Q: How to convert list of strings to a Query String?

SooIn NamI have list of values: md5 = ['1111', '3333', '44444', '555555', '56632423', '23423514', '2342352323'] I want to concatenate them into a Query String: 'md5=1111&md5=3333&md5=44444&md5=555555&md5=56632423&md5=23423514&md5=2342352323' What is the best way to do that?

That one.
 
@Zero oh yeah... not a good dupe target - re-opened
 
Ta :-)
 
@davidism Found it!
Understand is a science fiction novelette published in 1991 by Ted Chiang. It was nominated for the 1992 Hugo Award for Best Novelette, and won the 1992 Asimov’s Reader Poll. The story has been recorded by Rhashan Stone and broadcast as a four-part series on BBC Radio 7. == §Plot summary == The story follows a man who is given an experimental drug to heal brain damage caused by anoxia after he nearly drowns. The drug regenerates his damaged neurons and has the unintended side effect of exponentially improving his intellect and motor skills. As he gets smarter and smarter, he is pursued by several...
 
3:42 PM
\o/
 
It used to be available here but alas it is no longer
 
Wrong paste buffer!
 
@ZeroPiraeus I'd use urlencode({'md5': md5}, True) personally though
 
Awww I thought you'd posted something terribly embarrassing for a minute there.
 
Wayback Machine to the rescue: web.archive.org/web/20130112204224/http://…
 
3:45 PM
Took me a while to track it down. The successful trail was "I think I read it on one of those scifi story collection sites. Were there any other stories on that site that I read? Yeah, the one about the fractal image that kills people when they look at it. What was that story called? Something about a winking fractal... /me googles "winking fractal", finds "BLIT" at infinityplus, searches "infinityplus" in my browser history, immediately recognizes "understand" as a core plot point to the story.
 
DSM
Not unimpressive.
 
And that's why I should be a film noir detective.
 
@Kevin you'd have to change your name to "Sam" though... can't be a film noir detective called "Kevin" - just doesn't work
 
Yeah, you have to pay by the letter when they put your name on the door.
 
Sam Samson?
 
3:50 PM
@JonClements Hmm ... save 7 characters, lose a lot of legibility. Don't think that's the right way for an OP at that level, tbh (and generally hate functions with inscrutable True or even doseq=True arguments).
 
Hey what's the difference between pyvenv and virtualenv
 
@Zero well... an explicit doseq=True with a link to docs as to what it does, it probably less obscure than a gen-exp if you're worried about the level of the OP (I'd have thought anyway).
 
They're virtually the same.
 
So - anyone else in the UK bother trying to see the eclipse?
 
Don't know if it would have been visible in America, but it's been completely overcast since dawn
 
3:57 PM
In terms of how they're used or how they work? @QuestionC
Kevin I don't think they were visible in America
 
Unless you have a groundoscope, which can see through the ground the way a telescope sees through the atmosphere.
 
lol
 
I guess the closest thing to that in real life would be a neutrino detector, which is no good for observing eclipses because neutrinos pass through the Moon just fine.
 
gents, im trying to draw a graph us networkx, in runs on mapplotlib, it generates the graph in command line
 
which pretty much means not close at all lol
 
4:00 PM
but doesnt when i do it in code
 
Speaking of the eclipse, I think it's rather auspicious that I print my thesis during a solar eclipse :D if only I'd done some kind of ritual at the same time.
 
any thoughts why its not forcing the graph?
 
@rodling without seeing code anything we could say would be guesswork.
 
@rodling I don't know much about matplotlib, but it reminds me of the way that Tkinter works differently depending on whether you run it inside the command-line REPL or not.
 
@Ffisegydd oh no... I think it brings bad tidings if you don't perform a ritual! :(
 
4:01 PM
If you're in the REPL, you can see the window without running root_widget.mainloop. If you try that in regular code, nothing appears.
 
its very simple
import networkx as nx
import pdb, random

node_count = 20
density = .5

nodes = []

while len(nodes)< node_count:
    foo = (int(random.randint(1,node_count)*density), int(random.randint(1,node_count)*density))
    nodes.append(foo)

print nodes
g = nx.Graph()
g.add_edges_from(nodes)
nx.draw(g)
 
So... Check if matplotlib requires a mainloop, and if so check that you're running it
 
@Ffisegydd it says so quite clearly in the book I'm making up in paragraph 2, section C "thou shalt always perform a ritual when printing a thesis - or beware bad things!"
 
@rodling and what's the problem?
 
ya solved, need to import matplotlib.pyplot
 
4:03 PM
You will probably need to do plt.show() maybe?
 
was just weird, spyder imports in the interpreter automatically
ya, exactly what i did
nvm, false alarm.. thanks everyone haha
 
9
A: How to convert list of strings to a Query String?

Zero PiraeusSince you're building a query string, it's better to use a function from the standard library that's specifically designed to do so: urllib.parse.urlencode() (in Python 3) urllib.urlencode() (in Python 2) ... than to muck around with str.join(). Here's how you'd use it: from urllib.parse imp...

Better?
 
@Zero I like it - +1 :)
Umm... is this a typo in the docs? if the optional parameter doseq is evaluates to True
 
Yup :-)
 
Okay... I'm going to pretend I didn't notice that for now then...
 
DSM
4:18 PM
:-/ I can't see a nice way to get Octave-like performance out of Python on this question. Random number generation time seems comparable but erf is much slower.
 
@davidism If it's by the same author, at a glance the closest match seems to be "Seventy Two Letters", which is summarized here
 
Wow... did anyone else think Star Trek when they say: You might want to consider reporting this performance differential
 
Awesome! One more left.
 
> Glad to have you stay with us!
— Martijn
:-)
 
@davidism Got any details?
 
DSM
4:29 PM
Nope, that's all you get. Now let's see how good you really are as a detective.
 
Sorry, I'm in the main office today, having real life conversations.
Someone American invents an "electronic manager", that will direct fast food workers through little earpieces. All they have to do is follow instructions. This eventually moves to other industries, and ends up making people unemployable. Better robotics, machine vision, and stronger AI develop, until there's this dystopian future where the ultra rich are the only ones living in comfort, but they still fear that *their* job will be the next replaced.

Then it turns out that someone else took the technology, and in cooperation with Australia, built the exact opposite of the US: the technol
 
@davidsm real life conversations? What... why would anyone want to do that!? :p
 
I've also read that one, and also don't immediately remember the name
This one won't be on infinityplus, though.
 
I remember liking it because it reversed the idea of who the machine is: the AI makes programs by sending instructions to humans.
 
(if my browser history is any indication)
 
4:36 PM
It had it's own website, and I'm pretty sure there's an ebook on amazon.
 
Wikipedia -> Fictional Artificial Intelligences, don't fail me now
Nope, it failed me
 
DSM
 
Yes!
 
Nice find.
 
DSM
"science fiction story australia usa AI fast food"
 
4:45 PM
A year of mental nagging has finally been lifted. I'm free!
 
@davidism that freedom is just an illusion :)
 
So I'm still pretty new here... and I think I may be experiencing my first "help vampire".
Any advice on what to do when, after answering someone's question, you get a comment that says: "Thanks, now here's this other thing I'm trying to do next, how do you do that?"
 
walk away
at most, leave one comment saying "That is a new question, please make a new post about it."
 
I usually tell them that it would benefit them to ask a separate question so it gets more attention. Gotta appeal to that self-interest :-)
I'll say this even if I already know the answer, so I can harvest more precious accepts.
 
Haha ok, both good suggestions :)
Hahaha
I will try not to get sucked in
 
4:56 PM
While we're discussing scifi stories, I want to praise The New York Magician for being a fun urban fantasy series. And the first book's chapters are free; can't beat that price.
 
Actually, why don't I stick it in the book recommendation page...
 
284
Q: Exit strategies for "chameleon questions"

AarobotI'm not sure if there's already an existing term for this, so I'm inventing my own. (tl;dr: I call them "chameleon questions" because they change every time you submit or edit an answer. If you're already intimately familiar with the phenomenon, please skip past the first set of bullet points t...

 
Thesis submitted! Hurray! I'm going to go get drunk eat cake.
 
4:59 PM
@Ffisegydd Hurrah! Consider trifle, if you want both dessert and drunkenness :-)
 
There - now if we re-forget any of those titles, they can be found on the recommended reading list.
 
Now I only need to find the Go angel story I described this morning, and I will be totally satisfied.
 
@Kevin Where do you get these stories from?
 
 
DSM
5:14 PM
@Kevin: satisfaction?
 
@DSM Nice, you're 2 for 2 today :-)
 
Thanks @ZeroPiraeus
 
5:38 PM
-2
Q: Using bitwise operator to divide by 0

Mr. SinghWe know that we can use bitwise operators to divide any two numbers. For example: int result = 10 >> 1; //reult would be 5 as it's like dividing 10 by 2^1 Is there any chance we can divide a number by 0 using bits manipulation? Edit 1: If I rephrase my question, I want to actually divide a nu...

lol
now there's a chameleon question :d
 
0 isn't a power of two, so, no.
The real question is "popular culture has led me to believe that dividing by zero is like a magic spell that makes computers explode. I assume ordinary consumer hardware has wards in place to block this magic. How do I release those wards?"
 
He wants to unlock the seventh seal of programming.
0th seal perhaps?
 
I am able to apprehend the confusion of ideas that could provoke such a question, but I don't know of a good way to answer it besides "read a lot about how computers work"
 
5:56 PM
My favorite is where the poster himself comments "That's correct. It's undefined. – Mr. Singh"
 
I really like the question. It's not answerable, but the world could use a succinct description about why division by 0 doesn't make sense.
 
I'm having to refrain from upvoting that comment purely for (unintended) humor value
 
It feels obvious, but at some point people have to learn this stuff and it can be a big eye opener. Like learning that addition is commutative.
 
Actually, I wonder if OP would be satisfied to know the result of the x86 assembly instruction DIV when the second operand is zero.
 
it's hard to find hosting options with MongoDB available :| Just want to make a free demo of code
 
5:58 PM
Which, if I am reading these docs correctly, does nothing other than set #DE to be the value of wherever exception signals are sent
 
@QuestionC, there's a forum for that :) math.stackexchange.com/questions/26445/division-by-0
Perhaps I will link to that in a comment on his original question
 
0
A: What is wrong with this Python code about the Catalan numbers?

Antti HaapalaThis is almost an exact duplicate of Python:: "IndexError: list index out of range"; in there I proposed that instead of using the recurrence, one should just use the iterative formula to produce the Catalan numbers; this is quite memory efficient compared to creating an array to store all n Cata...

I copied my answer almost verbatim from other question
bc it didn't get any upvotes in the other question :D
 
@leekaiinthesky I was thinking more... like going through the processor's logic of performing division and looking at what would intuitively happen if you plugged in 0.
 
@QuestionC That's more or less what I did
Short answer: even at a hardware cpu level, all it does is raise an exception.
 
Oh I see... I was already extrapolating upward to "Edit 3: let's forget about computers for a minute"
 
6:05 PM
@AnttiHaapala Why does that problem use numpy?

Genuine question, I've never used it. All I know about it is people turn to it when they're incorrectly solving programming puzzles.
 
@QuestionC is that a rhetorical question? <- this is a rhetorical question.
 
Is that a really subtle answer?
That might or might not be rhetorical.
 
Looks like OP is using numpy because it's the first approach he stumbled upon that (mostly) worked.
 
"mostly worked?"
crashes before anything from numpy :D
 
"mostly" for very small values of "most"
 
6:16 PM
It can well be that this problem is common in university programming courses. It is of no use, however, to write (copy) a code I don't understand: my goal is to both complete the homework, and to get familiar to the methods I've seen during the course. In the code you've written, yield, itertools, and list are unknown to me, and are not supposed to be used in solving the problem. Nevertheless thank you for answering! — Mitlasóczki Bence 8 mins ago
wrong answer
/me opens the small notebook
/me writes MB, followed by -
 
followed by "true knowledge seeker"?
 
numpy.savetxt("catalan",numpy.c_[i, c[i]])
 
"hire in ten years"?
 
aaaha :D
now i understood
it is just the first number greater than
h no
 
6:34 PM
how much do programmers create in an average day?
 
DSM
@QuestionC: I think a lot of it is it just "numpy = fast math", people want their code to be fast, so they think they should be using numpy, even if it's not going to help at all. I've even seen some people simply add import numpy to the start of their code, in the same way we used to use import psyco; psyco.full().
 
1 line if its a good day :P ... jk
but that one line does a whole lot
 
I feel pretty good on the days where I delete lines.
When we get the product down to a 1-liner I think I'll be done.
 
6:50 PM
song so catchy
 
0
Q: Ushing shmat and shmget with forks to multiply a matrix

DustySackThis is an assignment I'm working on for class. We must use forks, shmget, and shmat to create a multiplied matrix from two given matrices. Each fork does one instance of multiplication each (this is required). size_t size = matrix1.height * matrix2.width * sizeof(int); int shmid = shmg...

love these questions that tag both C and C++
@corvid foreigners are not allowed to like Finnish music
 
75% of the bands I listen to are from Scandanavia + Finland .-.
 
ok, if you say "from Scandinavia and Finland", then you are allowed
 
Which reminds me, I must go find all that Finntroll I lost during the Great External Hard Drive Calamity of 2013.
 
Ah yes, Fintroll... side project of Korpiklaani, isn't it?
 
7:01 PM
No idea, I just like the accordions :-)
 
DSM
@Antti: the chorus from Värttinä's "Matalii ja mustii" was stuck in my head for an entire summer.
 
Good day pythonistas, may all ur codez be bug free
 
People complain about unexpected downvotes all the time, but I now want to complain about the upvote on this post. Really? That's worthy of upvoting? Where is the research, the code, the effort?
 
@DSM lol
 
7:02 PM
grmbl grmbl grmbl grmbl
 
DSM
Questions with words like "desperately" or "ASAP" should require multiple upvotes before they get out of triage..
 
user is just linking to their consulting site in their signature: 2 strikes in one!
 
Give you the most annoying earworm
 
@davidism They are also answering. The footer links are bad judgement, but not necessarily the goal.
 
DSM
7:10 PM
@davidism: that's borderline for me. The two answers he..
 
I edited them out and left a comment.
 
DSM
Ah, Martijn said what I was about to.
 
yeah, seems reasonable
 
I wish there was a better way to search through github than cloning the repo and using ack
 
7:39 PM
still looking for something that can mind map in Python
or build a map from dict relationships or something
I should ask a better way. I have a ton of relationships I need to map out.
doing it by hand seems onerous. Wondering if there's a programmatic way to do it. Any ideas?
 
DSM
@AutomaticStatic: you're going to need to make the task a lot clearer before anyone can help, I expect.
 
fair enoug
enough
 
DSM
@AutomaticStatic: if you hit the up key you can go back to an earlier comment and edit it (within a few minutes after the comment, anyway.) For example, like I just did.
 
I have a bunch of potentially matching data elements I'm grabbing from a handful of API's. I need to map out which ones are connected and/or which ones possess data that will be fed as arguments into certain functions.
Something like...I want to do this (function), and I can do it with these data or these data or these data...
but I have so many sources and interrelationships that it's proving to be a nightmare to map out by hand
Someone recommended networkx yesterday, which I'm checking out
 
DSM
7:45 PM
If you have a bunch of items (which you can view as nodes), and a function which can determine whether or not two items "match" (which can be viewed as an edge), then yes, you can use networkx to find the groups of connected components.
 
so many silent errors :|
 
They aren't really edges per se, because I'm arbitrarily deciding what can be done with a given node
which is why I started out mapping by hand
 
DSM
You keep using "mapping" as if it's an unambiguous word. Unless you can describe your task more concretely, whether in graph-theoretical language or not, it's going to be very hard for anyone to do anything other than express sympathy.
 
I mean a graphical map of items connected via arrows, where the map is not a traditional graph
Like-- I want to compute age. I can do it based on some data from X source or some data from Y source. I would represent that with two points x.data and y.data, both of them connected via arrow to a point ageCalc() or something.
 
DSM
Wait, so this is about drawing a giant flow chart showing connections?
 
7:52 PM
yes
Sorry I should have just said that
I started trying to do the chart by hand but it was so big that I paused to investigate whether I could somehow script it more easily
 
DSM
I've use dot to draw pictures like that in the past (looks like there are wrappers like pydot and pygraphviz). The degree to which you can automate it depends on what needs to be done to figure out what needs to connect to what.
 
Thanks. I'll check that out.
 
@JonClements It was too overcast for us to see anything in our neck of the English woods.
 
DSM
@AutomaticStatic: looks like they even have pygraphviz examples in the networkx documentation, so interop should be straightforward.
 
Sorry - Dave turned up early, and he's not long left... so was too busy talking/eating :)
@Martijn same here - although someone not 15 minutes away managed to get some awesome pictures
(quite impressed bearing in mind they were trying to point without looking...)
 
8:03 PM
dinner, rbrb
 
8:34 PM
Ahhh... the user profile page now says "All Actions" instead of "Activity"
 
8:46 PM
@Zero wow... that user was being stubborn re the using < :)
 
Yeah ...
 
DSM
Is there a shell that martineau's example works for? Under bash I think that would just dump text to a file called python3.
 
cbg
 
@DSM Not one that I know of ... I think it's a typo.
 
Naw! He meant that we write a BASH script that does so!
 
8:50 PM
I think most shells have switches to completely disable parsing
Also, I'm fairly sure I've written a windows program once that retrieved the raw command line...
 
And Zero you've gotta put the sentence but because of the way the shell works in huge letters! The OP did not understand when I told him ;) ;)
 
Hahaha tempting, but let's see if calm reiteration works before we resort to SHOUTING :-)
 
If only because I needed to have dosomething like: program in=somefile.csv; out=output.csv; quote="; keep=1,3,5; rename=(1='title'); or some weird specced syntax
oh - mostly for reporting... table=1*(title avg<title> all) all as blah.txt etc...`
 
Windows command line parsing is a dark mystery to me, but I was under the impression it was flat out impossible in a (normally-invoked) bash shell to retrieve the exact command line from inside a program called by it.
@Jon feel free to write an answer though ;-P
 
@Zero normally involves a system level call
but, I'm sure it's possible to retrieve the original buffer... because what you get as sys.argv is normally a copy, then tokenised...
 
8:56 PM
We may get the answer by looking through the code of sys.argv then ...
@ZeroPiraeus echo seems to work! Do I add it as an answer?
 
$ echo < 1 2 3 4
2 3 4
@BhargavRao ???
 
Nope
Martineau's way
echo 1 2 3 4 | python prog.py
will send "1 2 3 4" as a string
So I am able to process it :)
 
Oh, yes, that'll work, but it's not OP's question. As I read it, they specifically want to use a particular (daft) syntax.
 

« first day (1616 days earlier)      last day (3336 days later) »