Skip to main content


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

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.

reshared this



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

Unknown parent

friendica (DFRN) - Link to source
Jonathan Lamothe
@Parker51 I mean, who only has four pens, right?
in reply to Jonathan Lamothe

I can't limit myself, I put different color ink in each pen to justify bringing them all.


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

Jonathan Lamothe reshared this.


:boostRequest: could you please give me a boost? I'm begging you. :boostRequest:​​ πŸ₯Ί

could you help a black trans au/adhd plural gal out?

another month and more expenses. I still need to cover my bills, debts and trying to save something to save me from my imminently crumbling living situation if worst comes to be.

since I'll be mostly in vacation from college this month I'll be trying to put some projects in action so that I can try and get some money coming in.

my father did already start demaning another 200 USD for living expenses and I feel it in my bones that I'm just one step from him completely kicking me out of here for petty reasons so I do really need every penny I can get.

every donation helps immensely and so does every boost.

please help a gal out πŸ₯ΊπŸ₯Ί

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

reshared this

in reply to legally distinct octo

:boostRequest: could you please give me a boost? I'm desperate 🀐 :boostRequest:

The month is almost ending and I'm still far from my goal

I do really, really need help.

  • I need to move to escape my parents abuse and it is getting worse by the day. I need to take my sister and my baby nephew with me
  • I still need to pay for my monthly expenses, college transport and food and debts.
  • one of my cats needed to do some procedures in the vet clinic and that really did cost way more than I could afford but I got it all on a borrowed credit card.

I'm desperate trying to do something about all this:

  • I'm trying to graduate from college (currently I'm at my last semester)
  • trying to work on my game, to try and apply to a grant in the coming months or try and monetize it somehow.

I do really need to pay the vet bill and to be able to move out of here before worst comes to worst.

please help a black trans au/adhd plural gal out. I'm really desperate.

every donation, boost and share does go a long way and I need every help that I can get.

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

in reply to legally distinct octo

okay so, I've got my goals covered an my plans are in motion and even tho I've got some to spare, I've set them aside because I could still be kicked out any day. (haha, fun /s).

but this is still my birthday month and... I haven't really gotten me anything besides something I really really needed (like walking shoes... and walking shoes again...) forever. so I'll leave my links up this month and I'll use anything I get to get me something nice for my birthday!

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

in reply to legally distinct octo

my birthday is tomorrow and I'd love to try and get me something nice for a change instead of just expanding everything I have on surviving. hahahaha 🫠

thank you very much!

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

in reply to legally distinct octo

:boostRequest: could you please give me a boost? I'm begging you. :boostRequest:​​ πŸ₯Ί

I've got my goal for the moving funds met. I'm working on my escape plan but while at that I need to pay for my college and the monthly bills plus the vet instalments and other funds.

I've got a breather last month but I forgot to budget money for this month in advance so I don't have anything unless I tap into the saved funds for the move which I don't want to because even tho I'm planning any of my parents could flip the fuck out any moment and kick us out.

I'm currently unable to pay for anything as the month goes on and I really need to pay my bills 🀐

anything helps, every donation and boost. thank you very much for your continued support >.<

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

Resident Psyduck reshared this.

in reply to legally distinct octo

:boostRequest: could you please give me a boost? :boostRequest:​​ πŸ₯Ί

I ran out of the fancy medicinal cat food for my recovering cat last month and I wasn't able to buy more because I also ran out of litter and the normal food. I was hoping I could get some this month but the reality is that I haven't got enough even to cover my expenses and my credit card is already maxed.

I am afraid that it can get sick again and I haven't even paid the last of it's expenses yet so I've made this goal exclusively so that I can buy the food that should last me for 2 or so months.

any amount helps as does boosting!

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

in reply to legally distinct octo

:boostRequest: could you please give me a boost? :boostRequest:​​ πŸ₯Ί

While I try to survive till I am able to graduate and sort out how I'm moving I still have lots of expenses to cover. mostly which are related to my current housing situation. haha 🫠.

I'm working on my projects when I can but I absolutely need help of I am to survive.

any amount helps. every donation and boost. thank you very much for your continued support >.<

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

in reply to legally distinct octo

:boostRequest: could you please give me a boost? :boostRequest:​​ πŸ₯Ί

my plans for moving are finally in motion and I will move by the middle of the year no fucking matter what and I'm looking for some work and it's been some hard as fuck days.

sleeping has been very hard and I've been once again subjected to direct abuse from my father. I also need help since my glasses broke last year and it is glued and holding on but I don't know for how long (and incidentally I found out I have this pair since 2017)

any amount helps. every donation and boost. thank you very much for your continued support >.<

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

in reply to legally distinct octo

oh, so it is #goblinweek ?

guess who is a goblin, and would you look at that, who would also like to survive another week (potentially more!)?!?!?!?!

it is me! I am the goblin help! haha :')

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease
@mutualaid

Shannon Prickett reshared this.

in reply to legally distinct octo

:boostRequest: could you please give me a boost? :boostRequest:​​ πŸ₯Ί

I'm a black plural neurospicy trans woman struggling a lot.

my plans for moving are finally in motion and I will move by the middle of the year no fucking matter what.

I've decided to keep on studying linguistics after graduating in sociology and my parents will definitely not approve it 😬

currently my anxiety is through the roof not only due to money but everything else and I've been sleeping no more than 4 hours a day and it is destroying me. It makes it so much harder to persevere and to try and pursue my objectives and project but I still am doing my best to achieve everything and I definately will.

I need help paying for my glasses replacement installments, paying for my monthly expenses and what wasn't met on the last two months because I was so burnt out that I couldn't even fundraise properly 🀐

thank you very much for your continued support >.<

links:


  • ko-fi - accepts paypal and stripe.
  • stripe (USD) - (for those that prefer not using paypal)


hashtags


#mutualAid #transCrowdfund #mutualAidRequest #blackMutualAid #boostPlease #transMutualAid
@mutualaid


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 Arjen :emacs: :linux: :nixos:

Since the manual doesn't include examples, it can be confusing as to how to actually use those settings. For this case, add the following line:

#+OPTIONS: toc:nil num:nil

This entry was edited (3 months ago)


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



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

Here is a curated list of strategies, offensive methods, and tactics for (algorithmic) sabotage, disruption, and deliberate poisoning.

πŸ”» iocaine
The deadliest AI poisonβ€”iocaine generates garbage rather than slowing crawlers.
πŸ”— git.madhouse-project.org/alger…

πŸ”» Nepenthes
A tarpit designed to catch web crawlers, especially those scraping for LLMs. It devours anything that gets too close. @aaron
πŸ”— zadzmo.org/code/nepenthes/

πŸ”» Quixotic
Feeds fake content to bots and robots.txt-ignoring #LLM scrapers. @marcusb
πŸ”— marcusb.org/hacks/quixotic.htm…

πŸ”» Poison the WeLLMs
A reverse-proxy that serves diassociated-press style reimaginings of your upstream pages, poisoning any LLMs that scrape your content. @mike
πŸ”— codeberg.org/MikeCoats/poison-…

πŸ”» Django-llm-poison
A django app that poisons content when served to #AI bots. @Fingel
πŸ”— github.com/Fingel/django-llm-p…

πŸ”» KonterfAI
A model poisoner that generates nonsense content to degenerate LLMs.
πŸ”— codeberg.org/konterfai/konterf…


This entry was edited (3 months ago)

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

reshared this

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.

⇧