Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

recursive, (edited ) to random
@recursive@hachyderm.io avatar

Confronted by the only known portrait of Adrien-Marie Legendre
https://www.numericana.com/answer/record.htm#legendre

(Marked media as sensitive because it's scaring me every time I see it my notifications)

davidr,
@davidr@hachyderm.io avatar

@recursive the gentleman with the thistledown hair

https://images.app.goo.gl/bfNx6rckBe7rSSqg8

davidr, to geopolitics
@davidr@hachyderm.io avatar

These nitwits still don't get it.

Maybe the economic metrics you've chosen to measure and maximize don't address the actual kitchen table #economy that affect the 99%.

How are homelessness, low wages, unavailable housing, lack of union protection, terror over medical debt, etc captured? They aren't!

"The economy grew" could be like a person building muscle or like a cancer metastasizing.

Measure the right variables.

https://www.msnbc.com/11th-hour/11th-hour/are-americans-unhappy-strong-economy-rcna139546

#politics

davidr,
@davidr@hachyderm.io avatar

@flipsideza prices go up? all hail The Line!

JoscelynTransient, to ADHD
@JoscelynTransient@chaosfem.tw avatar

#ADHD and #kinetic brains - do you have any good tricks for getting yourself to do mental or intellectual work when your brain is hyperfocused on something else?

Last few days, my brain is completely interested and trying to pull me towards certain entertainment content, but I have a lot of work I need to do for my dayjob that requires my brain to be able to focus and flow, at least a bit. And I am STRUGGLING to get my brain to stop interrupting my work focus every five seconds to tell me to play a game or read a comic.

My usual coping skills ain't working (e.g. basic mindfulness, using music to change the emotional context of work, trying to grab onto the tasks that interest me, etc.), and I'd love new ideas!

#ADHDisaster #WorkWithMeBrain #WallOfAwful

davidr,
@davidr@hachyderm.io avatar

@JoscelynTransient Loud music...oh, you tried that.

How about panicking that you'll be discovered as an imposter who has been slacking off and they will chop your body into tiny bits and then fire the bits?

For me, the main impediment is not a different hyper focus (bc my work is mostly fun and interesting to me, how lucky). The main impediment is overwhelm at the hugeness of effort or a Big Boring First Step.

Finding some route around that initial hurdle often breaks the dam.

davidr, to art
@davidr@hachyderm.io avatar
davidr,
@davidr@hachyderm.io avatar
davidr, to OSINT
@davidr@hachyderm.io avatar

I was doing some extremely basic this weekend. Just going through pipe bomber info released by the

One task I set myself was to find the camera each video/photo was taken from. I found them all except this famous shot:

https://www.youtube.com/watch?v=WQ0KUK7PmuY

Location: https://maps.app.goo.gl/j9dddxVZSfQQZXL66

Reverse angle shows that the lightpole has to be the camera. Those exist nowadays, but except for a paintjob this light has been here since at least 2007.

davidr,
@davidr@hachyderm.io avatar

The published a lot on the but missing some things

https://www.fbi.gov/wanted/seeking-info/suspected-pipe-bombs-in-washington-dc

There are vidcaps there that aren't from videos posted. Also videos in some early reporting that aren't on the page

Anyway, the next task was figuring out how tall the bomber is. The obvs place to start is the trashcan, but nope. Too many trashcans look exactly like that except for scale

davidr,
@davidr@hachyderm.io avatar

First stab was via the scooter in the DNC video that the walks right next to. In 2021, there were only a few companies providing scooters and this one looks a lot like one of them that has a known height. I got 5'9"

Second stab was from a video the didn't post but did in early reporting. Bomber walks close to a car of known height. I got 5'9" again

It's worth noting that as much as I don't like her, popular suspect is easily in the clear. She is 5'3".

mekkaokereke, to random
@mekkaokereke@hachyderm.io avatar

Mark Rober is at it again.👍🏿

Either he's the single greatest detective and criminal justice mind on earth or... SFPD is incentivized to not reduce these car break-ins.🤷🏿‍♂️

https://m.youtube.com/watch?v=iWWWyG5ZwG8

Everyone knows:

  • which vehicles are targeted
  • what streets they're targeted on
  • about the stolen licence plates
  • where the stolen goods are fenced

We all pretend not to know these things though.🤷🏿‍♂️

He didn't name the neighbourhood that ultimately fenced his laptop, but the Dim Sum there is lit! 👍🏿😋

Google maps screenshot showing Chinatown in San Francisco.

davidr,
@davidr@hachyderm.io avatar

@mekkaokereke Disappointingly few of the thieves got glitter bombed. Why is there a 15s delay with announcement on that?

villares, to python Portuguese
@villares@ciberlandia.pt avatar

So nice to see how @rougier used Shiffman's Flocking example as inspiration for the spatial vectorization techniques on https://www.labri.fr/perso/nrougier/from-python-to-numpy/#spatial-vectorization

Such a pity that the Processing Foundation has in all these years abandoned Python... but... now we have and + + has a future!

I'll see if I can remove the matplotlib dependecy and use py5 for boids in the next weeks. I have both a bio-simulation educational demo and a "hey, I'm learning numpy in the context of creative coding" presentation in the coming weeks.

davidr,
@davidr@hachyderm.io avatar

@villares @rougier I only skimmed, but the lines with "norm" in them around lines 111-116 look like clamping, not normalization.

davidr,
@davidr@hachyderm.io avatar

@villares aha, I see that now.

I guess perpend_a/_b are the other points of the triangle. but those are just using individual components, which aren't normalized....?

davidr,
@davidr@hachyderm.io avatar

@villares Right, but individual components of a normalized vector can be any length at all. Or maybe I'm not understanding what '[::-1]' means....

davidr,
@davidr@hachyderm.io avatar

@villares derp, I've been thinking of 3D vectors so I was like...you aren't using all the components.

I agree about the shape apparently meaning it's just the normalization. I wonder if the linalg is doing the wrong direction or something.

numpy makes this hard for no reason, but I usually take row-wise magnitudes like this:

mag = np.sqrt(np.sum(v**2, axis=1))

davidr,
@davidr@hachyderm.io avatar

@villares Oh yeah, this is tricksy as well. You need to tell numpy where the broadcastable dimensions are

norm = v/mag[:,None]

davidr,
@davidr@hachyderm.io avatar

@villares Oh, it worked? Great!

I've only scratched the surface as well. I just happened to have been working with lots o' rows of data this summer needing to do similar vector ops.

walkerb, to python

Read a post last night asking about making a python class use different code for different things. It was in the context of a game, so extending the ability of the class with different objects.

It interested me so I thought I'd play with the idea this lunchtime.

Here we have a player object (apologies to Steve Jackson / Ian Livingston for appropriating their combat system) with name, skill, stamina and the weapon and armor they have.

The weapons and armor are defined in different classes as functions representing the damage they do, or absorb.

They are passed into the player object by assigning them.

Then battle commences...

Fun little lunchtime code illustrating the power of object oriented code.

https://github.com/nakedmcse/PyRPGCombat/blob/main/PyRPGCombat.py

image/png
image/png

davidr,
@davidr@hachyderm.io avatar

@walkerb If I understand what you mean "use different code", first class functions are probably a clearer example of this.

davidr, to python
@davidr@hachyderm.io avatar

oh jesus, , please stop breaking things like this

https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated

I want naive datetime objects. I want them to be unknowable because I want them to be unalterable.

I don't want some silent function in the middle of something somewhere to "help" me by changing my datetime objects to the timezone I "obviously" mean.

I want to be in charge of my own data representations.

davidr,
@davidr@hachyderm.io avatar

@tshirtman I deal with space data. It is always and forever utc, period.

If there's no tz attached, "helpful" libraries cannot try to move that time to "local". If there is a tz attached, I 10000% guarantee they will. And my code will break.

Unsubscribe me from this breakage.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • rosin
  • slotface
  • GTA5RPClips
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • cubers
  • khanakhh
  • hgfsjryuu7
  • everett
  • osvaldo12
  • cisconetworking
  • tacticalgear
  • modclub
  • mdbf
  • vwfavf
  • ethstaker
  • tester
  • normalnudes
  • anitta
  • All magazines