« first day (2067 days earlier)      last day (2887 days later) » 

1:02 PM
Hi everyone
I've got a quick question
I have this
def toto():
ab = []
for count in range(1,26):
ab.append(count)
return ab
why if I'm running this alone toto(), I have this [1,
2,
3,
...
 
@AndyK what do you expect it to be?
 
and why I need this az = toto()
to have everything as one liner?
sorry for the lack of indent
 
We can't help without proper indenting.
 
Are "why I need this az = toto()" and "to have everything as one liner?" separate questions, or part of the same sentence? I'm confused.
 
You should post your code in a pastebin.
 
1:06 PM
because that's how repl represents the lists
and with assignment it just won't print anything because it's not an expression.
 
@bereal oj ok
@bereal oh ok
 
Is your output literally [1, followed by a new line followed by 2, followed by a new line followed by 3,...? That's really strange to me.
It all prints on one line for me.
>>> def toto():
...     ab = []
...     for count in range(1,26):
...         ab.append(count)
...     return ab
...
>>> toto()
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
 
@Kevin must be ipython
@AndyK are you using ipython?
 
@bereal
yes using iython
 
there
 
1:10 PM
Ok, problem solved. If your question is "how do I get lists to appear all on one line instead of having one element per line?" the answer is "switch to a different IDE"
 
oh shit ...
 
I'm sure it can be hacked up in ipython, but why?
 
@kevin
 
Or maybe ipython has a configuration option to change that behavior? I wouldn't know I've never used it
 
thanks mate
 
@kevin what is your ide of choice
 
ipython is not really an IDE, is it?
just a juiced-up repl
 
Never mind, don't switch. Just read the answer bereal linked.
 
@bereal @kevin I feel stupid -- -- -_-
-_-
thanks guys, beers on me if we meet one day
IRL I mean
 
ok, I wrote it down.
 
1:12 PM
I just use "IDE" to refer to anything where you put in text that you want to eventually be interpreted as a program.
 
@kevin got it
 
Ok but to be clear that last message wasn't directed at you, I'm just trying to weakly defend my poor choice of terminology to Andras
Don't take it as Word Of God that that's what IDE means
 
@kevin ok, thanks anyway.
 
@Kevin so, REPL?:D
anyway, Word of Kevin is almost as good as Word of God
 
In the Land of Kevin, ipython is an IDE. the python.exe REPL is an IDE. Notepad is an IDE. A literal physical notepad that you use a pencil on is an IDE.
 
1:15 PM
cbg all
 
cabbage
 
@AndrasDeak What did they both contract Bill Gates?
(I really Excel at Microsoft puns)
 
@inspectorG4dget any reference I can think of involves Devil instead of God, so shrug :P
 
1:18 PM
POWER POINT
 
nicely done
 
Every 100 years, God takes a "cheat day" where He allows Himself to squish one particularly annoying human with His mighty finger. This poster teaches us to be vigilant.
 
@WayneWerner That sucks. I wonder why they were deleted.
 
There was once a programming competition between Jesus and Lucifer. In the last 10 seconds, the power goes out. When the power returns, Lucifer has lost all his work. On the other hand, there are sounds of bells and angels coming from Jesus' computer - he seems unaffected.

Baffled, Lucifer asks how this was possible.
Answer: Jesus saves
 
Jesus saves. He has the puck! He shoots, He scores!!!
 
1:20 PM
@PM2Ring It's the unanswered questions that we'll take to our graves
 
Relevant:
 
user559633
In this scenario, a man named jesus is the goalie and is forward skating?
 
@Kevin I always heard that he passes to Gretzky ;)
@inspectorG4dget That's always a fun story to illustrate the importance of saving your work ;)
 
I think we should all be thankful that I didn't mangle the reference even more than I did.
 
1:24 PM
@kevin btw how do you indent code on chat stack, please?
 
highlight the entire message and click the "fixed font" button.
 
nope, no highlight needed
 
Alternatively, highlight the entire message and press ctrl-K.
 
multiline messages can be indented
 
Alternatviely, manually indent every line by four spaces.
 
1:24 PM
with the button, or ctrl+k, but it's binary for the whole message
no need to highlight, don't even have to lift your hand
or touch *shiver* the mouse
 
Today all of my useful advice will contain a mistruth.
 
def toto():
    for count in range(11):
        print("hello"+str(count))
got it
thanks @kevin
 
@Andy you can also delete/edit your messages in the first 2 minutes after posting
 
(You can press up to modify previously posted message ... as Andras just said)
 
delete with the context menu of your message, edit with the context menu or by just pressing the up arrow
 
1:27 PM
just insane. Thanks
 
oh, and in multiline messages there's no markdown, only code XOR full verbatim text
not even links etc
 
@AndrasDeak what is multiline message?
 
user559633
@RobertGrant i find this amusing as an american. it would suck to leave the EU, but you believe the fiat currency of the group to be bad.
 
you mean the chat room?
 
yes, a line that contains newlines, just like your code messages
(you can manually do multiline by pressing control+enter instead of enter)
 
1:31 PM
@AndrasDeak I think you meant "a message that contains newlines" :)
 
@tristan that EU stuff... EU is work in progress for almost more than half a century now. In the same time, when you think about it, it took almost US 2 century to be where it is now
 
And the US had a common ground to start from that wasn't "Our ancestors tried to kill eachother. Constantly."
 
@tristan I don't think it's intrinsically bad, I just like having the pound :)
 
user559633
why? lack of trust in the euro?
 
No, it's honestly not a negative thing about the Euro
 
DSM
1:35 PM
Morning cabbage for all.
 
I just like that we have our own currency called the pound :)
 
@WayneWerner : A desire for peace is not a bad common ground... :) @Tristan for the euro, well ... Fiscal policies are not common yet we have a common currency ... Sounds weird
 
Also it gives us a small amount of additional control and maneuverability
 
user559633
to me, that just seems like the unit of commitment to the concept of the EU for most people. you can have open borders and trade and blah blah expensive diplomat dick waggery, but when you tell someone "hey, if enough of your neighbors don't pull their weight, things you own will be confiscated by a non-eu bank", that's when it's real
 
@RobertGrant english folks have still leverage over their fiscal and monetary policies, which give you guys better competiveness than the euro zone
 
DSM
1:37 PM
I understand very little about economics, but even within Canada the same currency status relative to USD can affect different provinces very differently and has been a source of friction. Never quite understood why it was obvious there should be a single European currency (as opposed to, say, a free trade zone.)
 
Hi @DSM
@DSM the idea of the currency
 
user559633
@DSM Because ~~unity~~ and that we live in an age in which disney has tricked people into thinking that they need to root for the underdog
 
Yeah unity was the word I was thinking of
 
Re: "the US had a common ground", this book review gives an interesting summary of the theory that colonists weren't quite as homogeneous as the average person imagines them
> Different parts of the country were settled by very different groups of Englishmen with different regional backgrounds, religions, social classes, and philosophies. The colonization process essentially extracted a single stratum of English society, isolated it from all the others, and then plunked it down on its own somewhere in the Eastern US.
 
dates back to the grand idea of the European founding fathers like Monnet or Adenaueur had of a grand ~~United~~ europe
 
1:39 PM
Of course in the same sense that concept also tends towards "remove national borders entirely"
 
@RobertGrant it is starting already
in a few decades, there will be a region called France or Germany
no longer countries
 
Good time to be on an island
 
user559633
It's amusing because you have the EU "togetherness", but then it comes to a match of kicking a ball around to make rich people richer, and y'all go out and buy expensive little soccer outfits and try to wreck each others' cities
 
#LMAO @RobertGrant yet you guys are flocking to the continent
 
DSM
I find that very unlikely. More likely to me is that there will be a substantial reaction, and nations will survive.
 
1:41 PM
@AndyK flocking is a strong word. What percentage of the total population are flocking?
@tristan there may be different people involved in each
 
user559633
@AndyK as far as i know, a large part of the exit is that britain wants to stem the flow of unskilled workers to its land
 
@RobertGrant that is a good question. I've been living 5 years in the real England (not London) and I was very surprised to see a quite substantial numbers of friends who were either having a pied à terre in Europe or spending time in Europe very often. Not mentionning when you go to Ski, the huge numbers of brits I see ...
 
user559633
Okay, pied a terre and a ski lodge does not "flock to vacation country" make
 
@RobertGrant flocking is a strong word. Coming in mass, I would say
 
DSM
Canadians regularly visit the US. Never occurred to us we needed to merge and form a superstate.
 
1:43 PM
cbg. You guys read about Microsoft buying LinkedIn?
 
user559633
that's like saying that college-aged kids are flocking to mexico because they go to spring break in cancun
 
woah. nope
 
user559633
@idjaw no, but it makes sense.
 
No, but seeing as they've swallowed Yammer I can imagine they're now hungry again.
 
user559633
1:44 PM
lol yammer.
 
@tristan they do flock to mexico. And then they flock right back ;)
 
I quite liked Yammer; we had it :)
 
Ooh, does this mean LinkedIn is about to go on an incredible journey? Please?
 
user559633
lol i don't see how anyone in tech would choose to give microsoft money
 
I didn't know that LinkedIn was even public
 
user559633
1:45 PM
yeah, you pretty much have to go public when you trade in narcissism
 
guys, thanks for the help. Going back to my "studies". See ya. @RobertGrant I miss a good fish & chip with a ESB
 
@tristan They don't, it's the corportate world that forces their tech to give money to Microsoft :P
 
@AndyK ESB? :)
 
user559633
extra special bitters, brah
 
@tristan 2thumbs up
 
user559633
1:48 PM
4 now
 
:)
 
Now that I think about it, LinkedIn does make a good fit for Microsoft, as it's something that I actively dislike, yet still have a presence on
 
user559633
Britain should leave the EU and the US and Britain should join up. We can call it USB.
 
and only use when I'm forced to
 
user559633
Canada can come too. We'll make it USB-C
 
1:51 PM
@PM2Ring I now have a generic function that has 2 callbacks in it to make it work in each case :) Can't tell if I've really helped myself but as you say, at least it's obvious the different things that call it are supposed to be calling the same thing
 
@RobertGrant Oh good. I'm glad I motivated you to do it properly. :)
 
user559633
Let's do a betting pool. I bet that within 3 years of a Microsoft purchase of LinkedIn, it will be "over" (linkedin. you can blow up microsoft's death star, but they own too many judges and know where enough strippers are buried to ever be destroyed)
 
I got so confused seeing all these pings, then I realized @tristan is a person...
 
@tristan One of the origins of football was in Tudor England, whereby two different villages set up teams, and without many codified rules, proceeded to absolutely beat the living hell out of each other whilst trying to capture something (like a ball) and bring it back to their village. We're just more civilised now, look at my shiny shirt.
 
@PM2Ring you would think that, wouldn't you?:P
 
user559633
1:53 PM
@TristanWiley Hi other Tristan :) I saw your question last night and almost felt the need to answer it on principle
 
Haha I figured it out, made a bunch of progress.
 
Hiss! A stranger, from the Android room!
 
as if 1 tristan wasn't enough already
cabbage @TristanWiley :)
 
It's nice to meet someone that spells their name the same :P
 
wait, I've seen you discuss somewhere, in relation to you being very young and doing a lot of stuff already?
 
1:54 PM
Tristan, Tristen, Tristin...
 
wait wait....we have two Tristan's in the room right now.
 
user559633
@IntrepidBrit oh. I thought that soccer came from victorian theatre. the acting, melodrama, and thinly veiled xenophobia is there, so pardon my confusion
 
@idjaw catch up, slowpoke:P
 
I'll whip up a quick Chrome extension that changes my name to Joe if you want...
or leave heh
 
user559633
@TristanWiley The one true spelling.
 
1:56 PM
The others are just failed imposters.
 
@tristan Looking at modern football, I can see where the confusion can happen.
 
Actually, slight question. I'm making a Python program that I want to be able to be cross platform, and I'm using gTTS to convert text to speech, which outputs a mp3 file. I then want to play the mp3 file but I really can't find a cross platform way. Should I convert it to an .ogg file? Or...
 
user559633
 
mp3 is proprietary, isn't it? In principle some vanilla linux distros can't handle it
 
Oh god, Tristian... They added another letter too. Ew.
 
1:58 PM
So no jokes about Iseult?:P
 
> The basic MP3 decoding and encoding technology is patent-free in the European Union, all patents having expired there. In the United States, the technology will be substantially patent-free on 31 December 2017 (see below). The majority of MP3 patents expired in the US between 2007 and 2015.
 
oh, cool
 
@AndrasDeak wow this tristan sounds amazing
 
user559633
AFAIK mp3 is patented, but open to implementations. vanilla linux distros don't handle it because tilting at windmills > user experience
 
user559633
yeah, he's like tristan 2.0.
 
2:00 PM
@AndrasDeak Wait me?
So tristan, should I convert it to say... an ogg?
 
I tried working with mp3s but gave up, not because of onerous licensing requirements, but because I couldn't figure out how fourier transforms work
 
Hi all; could we get a on this with either this dup or no MCVE? And then a DV so I can del-v.
 
user559633
@TristanWiley If you happen to be down with OGG, but you know me, I prefer mp3/mp4.
 
user559633
PyGame can play MP3s and I'm sure you'll find another library that can too. There's probably some PortAudio wrapper out there.
 
user559633
and IIRC, WAV is like the BMP of formats. Expensive in terms of file size, not particularly fancy, but everything can handle it
 
2:03 PM
IIRC PyGame just wraps SDL so you could use that directly if you don't want the other game dev cruft
 
user559633
I wonder if the market for tech recruiting is larger than the tech market.
 
Hm... I hate choices :P
 
am I the only one who caught that reference?
 
Pygame's MP3 support is iffy. It much prefers OGG.
 
@tristan oh?! I would have gone with trispale walks into the sunlight and gets a tristan
 
DSM
2:05 PM
Is Pygame still a thing? I thought for a while it wasn't. Is it again?
 
well how else will snakes play/
 
PyGame is still a thing.
 
user559633
@DSM It is and it isn't. It's the hard to install tkinter of the "python can totally make games, you guys" of libraries
 
It was the best option I could find last year for a reasonably cross-platform audio module for my chess program.
 
There was a talk about PyGame Zero at the PyCon Education Summit.
 
2:05 PM
Alright. I'm just going to convert it to some file and play it.
 
user559633
@inspectorG4dget I don't get that reference, but I'm concerned about someone making my name into a noun
 
Pyglet is the other option. Honestly, both of them need a lot of work.
 
user559633
Yeah. Last time I used PyGame, I used Unity instead.
6
 
"Last time I used PyGame, I didn't."
 
It shouldn't be too heavy to convert it, it's less than 30 seconds of audio.
 
2:07 PM
I'm writing some custom DjangoCMS plugins, one of them I have a ForeignKey set to my plugin, but when I try to copy_relations for when the plugin is published, the reference to the plugin isn't being set to the published version, it's duplicating my inlines to point to the original copy. Following the documentation, but not seeing the same behavior. Any ideas?
 
I had some difficulty with Pygame's sound module for my Tetris clone. "figure out why the background music plays at a very low volume sometimes" has been in my "to fix" notes for a couple years.
 
So, either I convert to wav or ogg. It sounds like wav is more cross platform compatible?
 
It's also huge.
 
@tristan more of a pun than reference. I was calling upon the fact that skin gets darker in the sun, in a process called tanning
 
user559633
@inspectorG4dget huehuehue. i missed the tan joke.
 
2:10 PM
OHHH lolololol
 
I think it's a sin that I did cos you to be a tan gent
 
user559633
solid b+ for effort
 
I hope my tristan doesn't give me a 3rd degree burn.
 
user559633
3rd degree burn = tri's tan
 
that's my motto in life... B+
 
@TristanWiley is that like "haha you stayed at uni too long!"
 
DSM
@tristan: I'm torn between disapproving of the pun chains that g4dget starts and grudging respect for that line.
 
user559633
[nvm: mind playing tricks on me]
 
@TristanWiley yeah you
 
2:13 PM
Oh..?
 
@tristan I find it ironic that there's only two of you in this room
 
user559633
@DSM yeah, i was figuring i'd close the browser once someone stars it
 
@TristanWiley it was here, I have no idea how I got to that transcript:D
something about Android probably
 
user559633
@inspectorG4dget yeah, would be much more fitting if there were three stans
 
Andras, you stalker ;P
 
2:18 PM
:D
serious question (not a setup for a pun): if I created a class through namedtuple, am I I am unable to edit the attributes of an instance of that class. Is this by design?
 
user559633
got it
 
user559633
yes. named tuple attributes are immutable
 
perfect, thanks
 
user559633
assuming that i understand you correctly. you can get something in between namedtuples and full dictionary-namespace classes using __slots__
 
hang on a sec. This is what I mean:
Foo = namedtuple("Foo", "a1 a2 a3")
f = Foo(1, 2, 3)
f.a3 = 4  # fails
 
DSM
2:22 PM
I just found out I spent an hour on Friday wondering why I could read every table in the database with five exceptions some of which I needed, only to find out I was pointing at the production database which has (for reasons I don't understand) empty/broken versions of the tables which are still in testing. Moral of the story: don't write code on a Friday afternoon.
 
user559633
Foo = namedtuple("Foo", ["a1", "a2", "a3"])
 
DSM
@inspectorG4dget: wouldn't that fail with a missing a3?
 
it works both ways
 
user559633
Interesting. But yeah, immutable after instantiation.
 
@DSM not quite sure. See my updated example to illustrate the point, which is still valid
 
user559633
2:24 PM
>>> a = (1,2,3)
>>> a[1] = 5
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'tuple' object does not support item assignment
 
DSM
Yeah, it's a named tuple.
 
fair enough. This is going to take some trapeze artistry to fix
 
user559633
are you using them as classes?
 
user559633
because this is what i use when i want to save on memory and don't need the dictionary namespace
 
user559633
class Inspector:
  __slots__ = ["gadget_arm"]
  def __init__(self, gadget_arm):
    self.gadget_arm = gadget_arm
  ...
 
user559633
2:26 PM
that gives you the memory saving aspect of a namedtuple, as Inspector doesn't get made with a dictionary namespace, but allows you to change your gadget_arm later
 
user559633
>>> class Inspector:
...   __slots__ = ["gadget_arm"]
...   def __init__(self, gadget_arm):
...     self.gadget_arm = gadget_arm
...
>>> i = Inspector('laser')
>>> i.gadget_arm
'laser'
>>> i.gadget_arm = 'extendo'
>>> i.gadget_arm
'extendo'
 
DSM
A few years ago there was a flood of questions from beginners using __slots__ in every class. I suspect there was a professor somewhere who was really uncomfortable not having variable declarations in Python.
 
I basically need a very small struct/container to hold some data. Since each instance has many attributes that I need to capture, I didn't want to rely on a tuple/array/list as I might screw up the positional arrangement of my data. I therefore wanted to use something where I could say myDataPoint.myAttr to access
I don't even need methods, so namedtuple seemed a logical choice - moreso over a dict
 
user559633
and there's a requirement that after instantiation, you can modify the attribute?
 
user559633
i'd say if that's the case, simplenamespace or class with slots (someone probably has a better suggestion)
 
user559633
2:30 PM
brb
 
not if I read multiple files in parallel to get all the required data before instantiation
all the required data is in pieces in multiple files - different people have different datasets, each one with a different set of attributes. So I was reading each set of files, creating (incomplete) datapoints, progressively filling them in as I read "files from the next dataset". However, it feels like I should now read multiple files in parallel and instantiate the namedtuple instance right at the end
 
DSM
If you can rework your process to get away with a namedtuple, that's probably simplest: one fewer new data structure to manage.
 
I step out for a minute and you're all being on-topic, how dreadful
 
hahhahahaaha
DSM: I think that's what I'm going to do
does splat unpack generators map objects as well?
apparently it does
need help with a multisplat hack
I have this
T = namedtuple("Foo", "a b c d e f")
a = range(2)
b = range(3, 5)
t = T('a', *a, *b)
 
DSM
2:46 PM
What's the 'a' for? (Oh, wait, you changed 6 to 5, didn't you?)
 
just to illustrate that I'm using some non-splatted vars in the instantiation
yes, I had an off-by-one in there before. The numbers make more sense now
 
DSM
'a' is 1; range(2) has 2; range(3,5) has 2; that's 5 for a 6-argument T, no?
 
SONOFABISCUIT! apparently I can't math
can we pretend that T is a 5-arg instead of a 6-arg?
 
DSM
Sure. But then it works, no?
 
the problem is that py3.4 does not allow multisplat. I can't use 3.5 because for some reason, numpy/scipy won't install
is there a way I can future import mutisplat into 3.4?
see my issue/
 
DSM
2:50 PM
More trouble than it's worth, I'd think, even if it were possible. Why not just use *(list(a)+list(b)) or some chain-y variant of the same and get on with your day?
 
chain works. Thanks
 
welcome to a few minutes ago Fizzy pfffffft
1 hour ago, by idjaw
http://www.cnbc.com/2016/06/13/microsoft-to-buy-linkedin.html
 
;________________________________________________________________;
 
DSM
Aw, man, I was prepping a "welcome to X minutes ago" joke. :-(
 
3:00 PM
Note to self: have the free cookies and juice before giving blood.
Also, Cbg!
 
Yeah, but now it's officially happening. The Beeb says so ;)
#GotchaBackFizzy
 
morning everyone
 
If it isn't on the beeb, it isn't true.
 
DSM
My views are very similar, give or take a negation.
 
Hey guys, guess what!
It's on HN now, so it's double true.
 
3:04 PM
I have a new coworker today! I have immediately forgotten his name.
I think it might start with a "D"
 
Django?
 
Ok, so I'll say "Django is just the worst" and furtively check to see if he starts crying, then I make it clear I'm talking about the software.
 
My bet is on "Dorothy"
 
Solid plan
 
"Dorothy" isn't impossible. And if not I can just roll with it and foster a Dr Cox / JD relationship with him.
 
3:07 PM
I think the only thing for it is to refer to them as "Big-D"
Unless the person is overweight, in which case do not do this.
Alternative plan: arrange a card for another member of staff for some reason (birthday, spawn, retirement, whatever), have Big-D sign the card first, read name, win.
 
Or: call security because you've seen an intruder on the premises and loiter nearby when Big-D is forced to use their ID.
Sorry Kevin, your life has now been reduced to a zany sitcom
 
Install a keylogger on their PC and look up what username they use for logging into accounts.
Hire a woman of the night to seduce him and find out his name.
 
"He made me call him 'Big Poppa'. That will be a thousand dollars, thanks"
 
DSM
I met someone last week who introduced himself as Paul. Turned out his name was Colin, but the way he says it, everyone (not just me) winds up thinking it's Paul..
 
Make many fake phone calls to people whose names who happen to start with D, and intently watch him to see if he responds to any of them
DSM - but... how?
 
DSM
3:19 PM
He really undervoices the "in". I can't explain why his C sounds like a P. Deep mysteries of the universe, etc.
 
Tell him you're going to practice your social engineering training on him, then ask him his name. By telling him you're role-playing you avoid the awkwardness of not knowing his name.
 
Reminds me of a video I saw once that demonstrated how hard it is to distinguish between "B" and "D" sounds if you can't see the face of the person talking.
 
My Virtual Assistant In Python So Far (thanks @tristan for helping and everyone else :))
 
Hi python heads!

someone could help me understand the propoper way to acheive this without an else:

```
>>> z = [ version if "36.0.0.0" in version else None for version in versions_list ]
>>> z = [ version if "36.0.0.0" in version for version in versions_list ]
File "<stdin>", line 1
z = [ version if "36.0.0.0" in version.split("/")[-1] for version in versions_list ]
^
SyntaxError: invalid syntax
```
 
DSM
(1) Ask him directly. You have one day to play this card without it being weird, so play it now. (2) Ask someone else who knows. Again, best done this week.
 
3:21 PM
What is this voice of reason? I don't like it. Can it be banned?
 
@vinni_f Try z = [ version for version in versions_list if "36.0.0.0" in version.split("/")[-1]]
When filtering items using a list comprehension, the if comes after the for.
 
Ask him to be your best man, make sure he understands he needs to introduce himself to the crowd at your wedding.
For the actual wedding itself, start off by hiring a woman of the night, then...
 
This occasionally causes some confusion because you can use if in the expression before the for, but only as part of a ternary, whose else clause is mandatory
 
DSM
@vinni_f: what will happen with your code (even Kevin's fixed code) if the last term in the split version is "136.0.0.0"? Is that what you want?
 
The people of the far future can worry about that. It will be the Y2K of their time.
 
3:22 PM
@TristanWiley Nonononono! Computers don't do Scottish accents.
 
DSM
They definitely can't understand them. "Hello, computer?"
 
@Kevin thanks for the solution and explication. works like a charm
 
@TristanWiley But in all seriousness - pretty cool
 
Thanks :P
 
@dsm not a problem in this use case. thanks for the heads up
 
3:25 PM
lol that's awesome
 
user559633
@TristanWiley that's super cool
 
Thanks :)
 
user559633
Make sure to opensource it when done -- i'd love to take a look
 
Will do
I'm actually going to make a DIY tutorial and it easy to use.
Make your own Pi virtual assistant.
 
user559633
Neat
 
3:29 PM
There's a lot for Amazon Echo, etc. But none for Houndify which... Hound is the most advanced Virtual Assistant app.
 
@TristanWiley link to Hound, please?
 
Houndify API, and the Hound App is here.
Made by Soundhound
 
user559633
I didn't realize that sphinx was that accurate
 
oh they actually made it! Good for them :)
I wonder if there's a desktop version of this
 
That's what I'm making.
Like seriously.
I'm making a program that can be run on a computer with a GUI, or on a Pi
 
3:40 PM
oh cool! Please let me know when you're done. I'm happy to help you test it
 
Thanks!
I have always listening worked out.
 
@DSM As for the "C" -> "P" thing, I suspect a variant of the McGurk effect youtube.com/watch?v=G-lN8vWm3m0
 
People will have to use their own API keys and stuff... sadly. Unless I can get a deal with the Houndify people (I know someone who works there).
I'll gladly let you use my API temporarily to test however.
 
I need a close reason for "user has no idea what they're doing". stackoverflow.com/questions/37793489/…
 
Deleted.
 
DSM
3:46 PM
@PM2Ring: huh.
 
I think that's the video I was thinking of.
 
What's the best way to make a GUI for this Python script? That can be run cross platform.
 
According to Party Doctrine, the Official Python Tutorial is the recommended tutorial, correct?
 
user559633
@Ffisegydd Yes please.
 
user559633
@TristanWiley tKinter is built-in, which means the easiest to package.
 
user559633
3:52 PM
I'm considering writing a Python intro tutorial/book
 
Cool
 
user559633
Tristanovka is learning Python, so I'm getting insight into where smart newbies get stuck/are asked to do rote memorization
 
oh nice, @TristanWi​thCapitalT
 
user559633
Yeah, now we have classic tristan and smarter, newer Tristan
 
Another question, when I'm all done with this is there an easy way to package all of the packages I use and stuff together into an installable thing?
Smarter...?
 
3:57 PM
yes, you are looking for one of two things: (1) venv or (2) py2exe (or other similar things)
I remember there was a PEP for this at some point, but I don't know if it was ever implemented: whatever happened to the inline try/catch for such use cases as list-comps?
 
DSM
@inspectorG4dget: nothing, AFAIK.
 
PROFANITY!
 
@Ffisegydd Yes, but it assumes some previous programming experience, it's not designed for complete newbs.
 
I had no idea that Tkinter was built-in
not that I ever gui, but still
 
Hey Tristan, can I ask about your startup?
 

« first day (2067 days earlier)      last day (2887 days later) »