« first day (2342 days earlier)      last day (2616 days later) » 

5:00 PM
Since they can't import anything, they can't use reduce, because that's an import from functools. Looks like the question is actually impossible.
 
wim
so operator.mul and operator.add can be lambdas ... and itertools.cycle is the enumerate mod two thing
 
@davidism well spotted
 
You can recreate reduce's functionality in-line with lambdas, but it is advanced dark magic
 
wim
you've done that before?
 
@wim Or just use the int methods.
 
wim
5:02 PM
that would reduce me to tears
badum-tish
 
reduce is built in in python 2
 
Yeah, it's an integral part of my 35,000 byte fizzbuzz implementation
 
Yeah, but you shouldn't be learning on Python 2 or using it for new projects.
 
@wim lulz
 
yeah, you shouldnt be using java 7, c++ 11, etc etc
 
5:04 PM
I agree. Use the latest supported versions if possible.
 
Some people still use Java 6 :(
 
And unless you're working on an existing ancient project, it's possible.
 
And Python 1.4, for that matter :P
^that
 
@davidism Unless of course they're being taught Python 2, which would give them another reason to despise such a teacher who gives stupid assignments.
 
to avoid problem with b" :D
 
wim
5:06 PM
When writing my setup.py I like to throw an f-string in there so it crashes at pip install time for any lamerz using old Python version
 
lol
Kevin's calls out to KevinScript to increase KS adoption
 
I went through my SO library and replaced all the url building with f strings. They're so nice.
Hadn't had an opportunity to use them.
 
I wonder how Armin and friends are coming along with their next version of Python
 
Next version? I don't think Armin's working on a Python version.
 
...2
Yeah I'm sure I read a while ago that that was on the cards
 
5:08 PM
Not sure what version of a programming language to use? Try KevinScript! With only one release, version incompatibility is a thing of the past.
 
Putting more Python 3 features into an unofficial 2.8
 
wim
Version incompatibility is always a "thing of the past"
 
Nice
 
That wasn't Armin, that was some random person who got their story on HN.
 
wim
(Armin's trolling account)
 
@davidism yeah fair. I withdraw my statement :)
 
Tauthon, heh. I like the allusions to tau
 
(Glad to hear it, as I like his writing)
 
That was tauture
 
5:21 PM
lol
 
(I'm just assuming that's coming)
 
@ZeroPiraeus Though, if you read the book I'm pretty sure he's legit
 
oh gods, is 'tauthon' still a thing?
(and Armin knows better than to keep bashing Python 3 now)
 
I think that was over a year old. Not sure if anyone has actually been doing anything
 
5:31 PM
oh wait, nope
not quite that long ago
 
@WayneWerner Last commit, 19 days ago: github.com/naftaliharris/tauthon
(tauthon is the project formerly known an Python 2.8, see github.com/naftaliharris/tauthon/issues/47).
 
So, apparently it's still a thing
 
Who's this Armin guy everyone's talking about?
 
ugh...The Matrix reboot was NOT a joke...they are seriously doing it
 
They are making some pretty dubious decisions. Like adding nonlocal support but not making it a keyword.
 
5:33 PM
Google points me to lucumr.pocoo.org, a blog with six entries in the last year
 
@Kevin Armin created Flask, Jinja and click, among other projects.
 
@MartijnPieters no, someone was casting aspersions
 
> While promoting John Wick: Chapter 2, Reeves said he would be open to returning for another installment of the franchise if the Wachowskis were involved. "They would have to write it and direct it. And then we’d see what the story is, but yeah, I dunno, that’d be weird, but why not?”
Yeah, that would be weird.
 
Ah, yep, says that on his Wikipedia page. Which I didn't see because it was on the second half of the google results, and I didn't scroll down -_-
 
I really like his article in response to that Stop Creating Objects youtube video
 
5:37 PM
@WayneWerner If they expanded the universe and tried to continue the story somehow, sure...but rebooting already? that's just ridiculous
 
Yeah. But... like where do you expand? I thought they wrapped it up really well. Maybe if you did something to the side, I suppose
some kind of parallel story
 
Imagine the Matrix sequels, but good.
 
Well..they wrapped it up well in to a new version of the matrix
 
I think "reboot" implies that they intend to tell the same story but better this time
 
so they could totally do something and they can ignore the previous cast
 
5:39 PM
Y'know, like how they keep trying to do with Spiderman
 
lol....
 
We're holding steady at an average of 0.67 Peter Parker origin stories per decade
 
The biggest Spiderman thing is that Sony doesn't want to give up the rights
so until Spiderman reboots become a loss engine, I'm sure we'll continue to see reboots
They're probably fine even with making it a loss-leader
 
The problem is the spiderman origin story is great, and after that he's just not as cool or powerful as other superheroes
 
I haven't actually seen any of them besides the McGuire trilogy, which I liked 2/3rds of
 
5:42 PM
The problem with Spiderman is that they keep trying to wa...nevermind
 
My absolute favorite part of the movie - and I still don't know if it was intentional, it was certainly product placement...
but the part where he was saying, "Focus... focus... FOCUS!" and then runs off the building, promptly smashing his head into a Ford Focus.
 
@idjaw they keep making spin off stuff like, lethal weapons the TV show or training day TV show. I'm not surprised one bit
 
@WayneWerner amazing
 
I wouldn't be surprised with a Home Alone spin off or remake...
 
I guess it was "Strong focus on what I want"
You see it at 0:58
that was either intentional or the most perfect accident in the history of hollywood
 
5:47 PM
There's still plenty of room for Matrix prequels, too... There's a five-matrix gap between the origin story in The Animatrix, and the start of the first film
There's your gimmick right there. Every version of the Matrix gets a movie, and every one follows different internal laws
 
Err I'm pretty sure the Matrix has never needed a gimmick
 
I want to see the societal breakdown that occurs due to the widespread discovery of administrator console commands. Gunfights except instead of guns, everyone types "kill -9" as fast as possible
 
I never did finish the third movie in the Trilogy... Maybe I should... Maybe I shouldn't who knows.
 
would be nice to create a movie where matrix would be in another matrix
 
5:53 PM
@MooingRawr might as well, but don't expect a lot
 
That's the song that plays during the kill -9 fight
 
@marxin I thought that was implied in the third movie. Why else would Neo have magic blind-vision?
 
@Kevin wait he has magical blind-vision? in the Matrix or in real life.... actually eh... maybe I will finish the movie tonight.
ill step away from this chat until matrix chat is over I guess :D
 
And the bit where the Hulk punches all the Agent Smiths at once...amazing!
Shame about the dinosaur re-extinction
 
@Kevin I've seen only first one... :x :p
 
5:58 PM
rbrb
 
There are only two kinds of people: People that have seen the whole Matrix trilogy, and people that saw it but pretend that they didn't see it or that they never made more than one.
I give your performances a 7.6 out of 10.
 
This might seem kinda random, but I got this md5 code: "21e6fe41060f6c4413a18542add5ebcc", I have tried decrypting it on several different websites without luck. Is it possible to somehow decrypt it?
 
I think the entire idea of md5 hashes is that it's really really hard to determine the cleartext the hash came from
 
@SebastianNielsen as Kevin says, MD5 is a hash, not a reversable encrypted value
 
Extra super mega hard because there are multiple inputs that could produce the same hash. It's like asking "x divided by 16 has a remainer of 7. What is x's value?"
 
6:00 PM
Having said that I'm pretty sure MD5 is broken and you can do it, but I wouldn't know how
@Kevin duh, it's 23
 
@SebastianNielsen if you've got good graphic card, try hashcat
 
Thanks I'll give it a try.
 
If I understand correctly, MD5 is broken in that you can find collisions, not that you can guarantee the collision is the same as the original input.
 
@RobertGrant Sorry, the right answer is 10923622376902871112131863
You were pretty close though
 
In fact, you would typically want to find a hash collision so that the content is different.
 
6:02 PM
That would've been my second guess
 
Natch
 
Lol I just figured it out.
That was easy :)
 
That was fast. Whatever hash-reversing algorithm you just invented, would probably sell for a pretty penny in the intelligence community.
 
Perhaps it was the identity hash
 
I wonder if we can use this to get infinite bitcoins somehow...
 
6:06 PM
No I just guessed on a password
and it was correct
Haha, how lucky can you be.
 
Ah, the social engineering approach. That'll do.
 
Exactly Kevin :D
 
6:25 PM
I want to create an array of array, in which each array has 4 numbers. Each number should be a random number between -1 to 1. But the sum of all these 4 numbers should also be between -1 to 1. I tried random.randrange(-1, 1, 1), which makes sum out of the given boundary. Then I tried random.randrange(-1, 1, 0.1), which throws me an error that it could not be a non-integer. Anyone know of a way how to do this?
cbg! :)
 
I have too much work to do to get involved now
temp-rbrb
 
Here it is, since you asked for what I've attempted in more detail. pastebin.com/k0GUkPFS
Since I wish to calculate sine on these 4 numbers' sum, it has to be between -1 to 1. But I don't know of a way to get random number with smaller steps (float steps).
 
recbg
 
Oh sorry, I saw it but didn't realize that it could be done without steps. Thanks :)
 
6:38 PM
Sure
 
If you append data to a csv file does it open the entire file into memory before appending?
 
what's the context here?
 
Surely it just has some pointery thing. I'll bow out, as I'm probably getting too technical.
 
@idjaw I'm using with open('2015.csv', 'a') as v15: (and other years) to break out a large dataframe in Pandas. So as I understand it it's only opening the CSV file when I'm ready to append the next batch of data.
 
Unless you read things in, things won't be read in.
Since you're in append mode, you can't even read to begin with.
 
6:43 PM
and then this
for extra info
 
aha ok, that's what I hoped
 
7:04 PM
Interesting. My laptop is on work VPN, so I expect LAN activity to be non-functional...now, my Spotify is open and detects I'm playing Spotify from my phone casting on to my speakers at home. However, by using my work laptop on VPN, sending controls via spotify to what is playing here at home is instant
I'm impressed by how fast that is happening actually
 
Your work VPN very likely doesn't route all traffic over it
It probably only routes specific IPs or subnets
 
hmmm yeah...it's a bit too fast.
let me take a look and see
 
yep...netstat -nr gave me what I needed to see
not everything
well...makes much more sense now :P
 
Just remember that doesn't mean you have privacy from snoopers at work IT-- all of your DNS traffic probably still goes there
Does anyone have a good resource for learning about x509? And I mean more than "here's how you set up let's encrypt for nginx". I mean "What is a PEM, what do these fields on the certificate mean, how can I set up an encrypted tunnel between two computers with self-signed certs"
 
wim
7:15 PM
Just saw the discussion about tauthon. I love the new name, allows us to group deprecation of pi and implementation of Python 2.8 under the same category (silly and futile proposals that can be safely ignored)
 
I have been directed towards this description of cert formats and files and this chapter of the original RFC for fields, for those wondering
 
@KevinMGranger I was going to ask you to share what you find. I'll start reading too :)
and, yeah I'm not worried about work-snooping
I do all my illegal activity in the comfort of my own ISP, thank you very much
 
Ideally there'd be some way to delegate DNS to different nameservers based on parent domains, but I don't think that's necessarily simple
Possible, yes. But more work than it might be worth on different systems
 
7:32 PM
Ah, the XY problem, where "I have a specific set of steps, how do I tell computer to do exactly those steps" turns into "how to put left shoe on right foot".
The disconnect always baffles me.
I can't really tell what you're asking. I think you want to only set the date fields once the thing is published. If that's the case, then do exactly that: don't set defaults, and set the values in whatever code handles publishing. — davidism 4 mins ago
 
wim
bonus points for html snippet
 
what I love about working from home. Playing music out of my nice speakers
dou dou dou
 
0
A: How to create objects and then apply methods to them in a loop

harshil9968for i in range(9): eval('board_%d = classes.sprite.Sprite(x = 250, y = 200)' % (i)) eval("board_%d.set_image('board.png')" % (i))

aaaah
 
7:48 PM
I'm confused. 289 rep...gave answers in Python....unfamiliar with data structures that can be used for what they are trying to do.
 
7:58 PM
well, it does literally answer the question
it just happens to do so in the programming equivalent of jamming a spoon in your ear
 

« first day (2342 days earlier)      last day (2616 days later) »