Skip to main content

Jonathan Lamothe reshared this.


โ€œWe just launched a 16TB archive of every dataset that has been available on data.gov since November. This will be updated day by day as new datasets appear. It can be freely copied, and we're sharing the code behind it to help others make their own archives of data they depend on.โ€ Harvard Library Innovation Lab (via BlueSky)

lil.law.harvard.edu/blog/2025/โ€ฆ

bsky.app/profile/harvardlil.bsโ€ฆ

#archival



I made a thing that makes working with #CSV files in #AWK easier. It's a quick and dirty hack, but maybe it'll be useful to someone else.

git.fingerprintsoftware.ca/jlaโ€ฆ

#awk #CSV
in reply to Jonathan Lamothe

Also, do lists in #Python seriously not have a .map function?

Edit: Ohhh... I expected it to be a method on the list object itself.

Tech Cyborg reshared this.

in reply to Jonathan Lamothe

geeksforgeeks.org/python-map-fโ€ฆ
in reply to Darcy Casselman

@flyingsquirrel Yup. And there's a multiprocessing version which can be useful if you're doing a very large csv but you probably want imap() for that one.

docs.python.org/3/library/multโ€ฆ

in reply to Jonathan Lamothe

If you're looking for a function that applies another function to each element of a list and aggregates the results, it'd typically be done with a list comprehension:

[your_function(item) for item in your_list]

But you can also use list(map(your_function, your_list)) if you want. Basically, it's a built-in function rather than a method of the list class.

There's also a whole discussion to be had about lists vs generators and why you often wouldn't even need to make a list in the first place, but I won't get into that unless you want to know more.

#Python

in reply to Jonathan Lamothe

the logic being that `map()` take any iterable, jot only lists, but sets, dicts, and anything that complies with the iterable protocol. I'm not saying you have to _like_ it. See also `str.join()`.
in reply to Marcos Dione

@Marcos Dione Yeah, in hindsight, that makes sense. I'm usually a Haskell programmer, not a Python programmer, so I don't usually have to deal with the question of whether a function is on an object or not.
in reply to Jonathan Lamothe

I understand. I get similar issues when I jump to other languages. The ones I had more impedance has been golang for certain decisions and rust because of the "harsh" syntax and verboseness.

Jonathan Lamothe reshared this.


I use

git checkout -

all the time for switching back and forth between two branches. Mind blown now that I know you can also do:

git merge -

to merge your previous branch into the current branch.

#git

#git

Jonathan Lamothe reshared this.


Jonathan Lamothe reshared this.


New Study Finds 90% of Cat Owners Experience oofjfjjggigiiiiifohhhjjfjfjjjjj)))))))))))))): theneedling.com/2024/11/29/newโ€ฆ

Jonathan Lamothe reshared this.


LB I do not understand at all how people are arguing this is GTS behaving badly and not scrapers like...

FediDB: how many users do you have
GTS: I'm not telling you don't crawl my page
FediDB: I'm going to do it anyway how many users do you have
GTS: Fifty billion
FediDB: okay thanks
FediDB: hey wait you lied to me!!!

Like idk sounds to me like you should have walked away at "don't crawl my page" and if you get the wrong numbers after that that's on you

reshared this

in reply to lori

Just to provide some perspective here, the endpoint in question exists specifically to be crawled by robots, nodeinfo is not a user-facing page and does not serve a purpose for federation. GTS could remove the endpoint if theyโ€™re not interested in it being crawled or serve 0s. The proposed behaviour seems to be more punitive than reasonable.
in reply to Eugen Rochko

@Gargron serving 0s makes the stats just as inaccurate as serving random numbers.
in reply to lori

@Gargron but the real problem isn't what the software is doing, it's the extremely public accusation that another dev was acting maliciously at him personally

That's worse behavior than anything else here

Unknown parent

mastodon - Link to source
lori
@chkdsk @jeremiah @Kiloku I'd say most people trying pixelfed have no idea who dansup is, most people couldn't tell you who runs any website unless they're billionaires. I guarantee most Tumblr users can't name the guy running that because he's not in the news every other day like Elon or Zuck. Dansup is a non entity to them.


TIL that my local library has a recording studio that you can book. I don't really have an immediate personal use for this, but it's pretty cool that it exists.


white guy commenting about racism on the fedi
It's odd. Whenever I hear an argument that racism isn't a problem on the fedi, it always seems to be a white person expressing the opinion.


Oh good, Let's Encrypt sent me an email about how they're no longer going to be sending notifications about expiring SSL certificates.

I do not foresee this causing me any problems at all. ๐Ÿ™ƒ



I know this is very first-world-problem, but now that I have my favourite #FountainPen back in working order, I had to make a tough decision about which pen gets the boot from the limited pen slots in my messenger bag. I imagine it's a bit like choosing favourites amongst one's children.

reshared this



Finally got the replacement barrel for my TWSBI Diamond 580 #FountainPen from the factory.

Jonathan Lamothe reshared this.


[just back from Damascus]

โ€œYo! Saul! Long time no seeโ€

- โ€œIโ€™m โ€˜Paulโ€™ nowโ€

โ€œSay wha-โ€œ

- โ€œLet me tell you about Jepupโ€

reshared this



Fun fact: VPNs stop working when you forget to pay the bill.

#ADHD is fun.

#ADHD

Shannon Prickett reshared this.



Today I somehow fumbled an #org-mode keyboard command and made a file into an attachment on itself. I didn't know that was possible.

Fortunately, revision control came to the rescue.

#emacs #git



I swear my hobby isn't as sketchy as the tools would have you believe, though it can perhaps be as expensive.
#FountainPens

reshared this

in reply to Jonathan Lamothe

@Jonathan Lamothe are you also buying a significant amount of chemical mixtures especially brewed in small labs around the world?


TIL that tuning a glass pen with sandpaper (even the one included with the pen) should only be attempted by an experienced user.

Also, #today I gained a lot of experience in this area out of necessity after the fact. Still, I shan't be doing that again for a while.

#FountainPens



Went to put my PGP key on the new phone and realized it was less than two months away from expiry. Guess I should pay closer attention.


canpoli

More dead tree spam from the Conservative party addressed to my father (who has never lived here). This one was labelled "compliance request" with a red military stencil looking font that said "URGENT: CODE RED". This speaks to the way they percieve the intelligence of their supporters. I weep for the state of politics in this country.

It got a big fat "return to sender".



Is there a way to tell #Emacs #org-mode to omit yhe TOC and headline numbers when exporting to a text or markdown file? I'm trying to implement a #JohnnyDecimal system, so I'm supplying my own numbers and the 00.00-index.org file essentially is the table of contents.

Edit: Because not all replies federate, here's the solution I ended up with:

#+STARTUP: overview indent nonum
#+OPTIONS: toc:nil
in reply to Jonathan Lamothe

Sorry I don't have an answer. Nonetheless as an Emacs user (albeit only rarely in org-mode) I'll be interested in the responses you get. Cheers, -Randy


I got a new phone because my old one was giving out on me. This one is a decided downgrade from the last one, but that's (mostly) fine.

Anyhow, the new phone doesn't support wireless charging. Because of this, I can no longer charge it on the night stand breside my bed. When I wake up in the morning, my impulse in my half-awake state is to just grab my phone and go, forgetting that it's now tethered to the wall. This was not going to end well for anyone, most especially not my charging cable/port.

I charge it in the living room now.


Jonathan Lamothe reshared this.


Outbreak: #Influenza (not typed of subtyped)
Facility: St. Mary's General Hospital
Facility Type: Hospital (Acute Care)
Unit/Floor/Area: [Not Specified]
Location: #Kitchener #Ontario
Date: 2025-01-17

Public Health Unit: Region of #Waterloo, Public Health
Facility Tracking Hash: #RWPH0037
PHU Tracking Hash: #OnObRWPH

Click or follow tracking hashtags to see data for individual facilities or a specific public health unit.

reshared this




If anyone posts videos to #YouTube and doesn't want #AI garbage being made from their work, this might be useful:
youtu.be/NEDFUjqA1s8



I really should just set up my own #XMPP server. I've had no end of issues with SDF's lately.
#xmpp

reshared this

in reply to Jonathan Lamothe

yup. Same over here. Idk what's the deal with @SDF #XMPP server but it sure needs some love and care ...

I just got an account on other ( a German based ) server and that was about it. No need to set my own server for the time being ๐Ÿ‘


Jonathan Lamothe reshared this.


We've trained an AI to replace your largest business cost, the CEO!
We've carefully measured the outcomes of using this AI, and it's far more successful than humans making the same decisions!
We've also trained AIs to replace your customers, your stockholders, and you.
Please report to the AI replacement center.

#microfiction

Jonathan Lamothe reshared this.



I'm surprised that AWK is so bad at handling CSV out of the box.

Yes, I know about the --csv flag in later versions of gawk, but that isn't an option in this case.



I run a pretty tight budget. Twice a year, I get a fun surprise from my domain registrar (because I have two domains with them). They both come with a "free business card generator" that I have never used, but whatever.

Anyhow, every time a domain comes up for renewal, it's expected, budgeted, and paid for. All is good.

Then, about a month later I open my email and see an unexpected additional "receipt" from them. This sends me into a brief panic until I realize it's a $0 receipt for the business card bullshit.


Jonathan Lamothe reshared this.


Not my circus, not my monkeys: good luck with all that
My circus, my monkeys: I am running a successful monkey circus
Not my circus, my monkeys: I am running a successful monkey-rental service
My circus, not my monkeys: oh no, oh man

reshared this


Jonathan Lamothe reshared this.


hey everyone, noelle (a friend here in phoenix) needs $400 by sunday to not be homeless for February. it REALLY doesnt leave a lot of time but if youve got anything it would be greatly appreciated

reshared this


Jonathan Lamothe reshared this.


Its been over a month since I was let go and I still haven't found a lot of prospects for a new job. If you know anyone who is looking for an #iOS Developer for remote work I really could use the contact. Please boost.

#JobSearch #iOSDeveloper

linkedin.com/in/rhett-rogers-5โ€ฆ

reshared this


Unknown parent


Jonathan Lamothe reshared this.


Via the Algorithmic Sabotage Research Group (@asrg) ...

... here's a list of code designed to poison the well for AI web-scrapers

tldr.nettime.org/@asrg/1138674โ€ฆ

(thanks to @peterfr for pointing this one out!)


Sabot in the Age of AI


A list of offensive methods & strategic approaches for facilitating (algorithmic) sabotage, framework disruption, & intentional data poisoning.

Selected Tools & Frameworks


This is a living resource โ€” regularly updated to reflect the shifting terrain of collective techno-disobedience and algorithmic Luddism.


This entry was edited (9 months ago)

reshared this


Unknown parent

friendica (DFRN) - Link to source
Jonathan Lamothe
@mibwright You know, the Bible did have something to say about eating pork. ๐Ÿ˜‰

Jonathan Lamothe reshared this.


DOOM: The Gallery Experience lets you take part in an art gallery opening with a wine in your hand all while wandering through the Doomโ€™s E1M1 map full of classic masterpieces.

gamedevjs.com/games/doom-the-gโ€ฆ

#DOOM #gamedev #gamedevjs #Itch #Construct3 #JavaScript #HTML5

Jonathan Lamothe reshared this.




Aargh! I thought I'd worked out a system to help with my #ADHD, and it was working for a while. Unfortunately, it involved using the alarm on my watch, which my brain is now just starting to filter out as background noise.
#ADHD
in reply to Jonathan Lamothe

good luck! having a reliable solution can be hard to find. You'll figure something out !
in reply to Jonathan Lamothe

Use a different alarm. Possibly something annoying and that you have to move to switch off.


I need to find more excuses to use my glass pen. It's totally not practical as a daily use pen, but it's soooo satisfying to use.

I need to write some fancy letters or something.

#FountainPens

in reply to alexa-488

@alexa-488 I have not. Please tell me more.

Edit: Looked it up. I'm not sure how comfortable I am making my mailing address public, however I have been considering a PO box lately...

in reply to Jonathan Lamothe

@alexa488 You can also just write to the people who do feel comfortable posting. I've made a few good penpals that way.
in reply to Jonathan Lamothe

You don't have to post yours openly. I think there are various forums for sharing in a more limited manner, i.e. direct with someone. You can find addresses and mail to them first.

Pretty sure even short hand written notes count, so you could leave some fancy notes for people in your life who you appreciate.


Jonathan Lamothe reshared this.


The argument that people are responsible for filtering their own feeds and so Content Warnings are unnecessary doesn't work when many of the ones arguing this also constantly make up new fucking nicknames for the people they're talking about, requiring the constant addition of new filters to block out unfunny snarky bullshit.

Jonathan Lamothe reshared this.

in reply to Demon Queen Lucretia

I don't (and won't in certain cases) CW everything ever but if there's something I know SOMEONE out there might want to filter I try to get specific keywords in my post they might filter

Like for instance I wasn't gonna CW photos of my gerbils, I'm sure someone out there absolutely doesn't want to see rodents though, so I tried to be sure the word gerbil was in there

To some degree it involves some level of mind reading but it's something

in reply to lori

even moreso on a platform where 99% of the platform doesn't have an easy way to search the text of your post intentionally obfuscating words is silly. Like I don't recommend posting the words KiwiFarms on Bluesky but you don't need to find 500 new ways to put an asterisk in homestuck on here
in reply to lori

(the asterisk thing is wild to me anyway given that most platforms I've been on with text search will let you search tr*mp just as easily as trump)
in reply to lori

I get both sides of the CW debates and I have my own personal lines on what I find sensible or not, and on this account versus my other one I also accept that I agreed to follow certain CW rules on this instance and that's part of being a community even if I may not feel the same way on my own where I make the rules

But imo the best argument for NOT having to CW certain things is making an attempt to make sure people's word filters will work. You may not always get it right since like I said it takes a certain level of guesswork, and sometimes you just forget in the moment. But if you keep coming up with new nicknames for the worst people on earth it becomes impossible to keep up.

in reply to lori

(and frankly most of them aren't even funny let's get to the real important topic here most of these nicknames have the wit of micro$haft winblows)
in reply to Demon Queen Lucretia

@Demon Queen Lucretia 2025 Edition I end up collapsing (auto-CWing) all of the offending user's posts. I don't know if Mastodon has this functionality though. A block would also be effective.

Though even still, it's sometimes a game of whack-a-mole.


Jonathan Lamothe reshared this.


Reminder that intolerance of intolerance is not a paradox. Tolerance is not an absolute ethical stance, it is a social contract. If someone chooses to not participate in the social contract of tolerance, they do not get to benefit from it.


Who was the genius that decided that Cult Pens' search bar should disappear as you're typing in it on mobile? This person belongs in UX jail.
#FountainPens

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.

โ‡ง