Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Ruby
Indie Mac/iOS & web developer โข Currently building random fun things on ATProto using Ruby and occasionally JavaScript โ https://blue.mackuba.eu "mostly-happy-but-occasionally-grumpy Ruby guy" - Why ๐ Krakรณw, Poland ๐ต๐ฑ๐ช๐บ โข โ๏ธ
15,912 followers 288 following 36,154 posts
view profile on Bluesky Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Ruby
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
What goes out of these two lines should be: .where("(text LIKE ?) AND (text LIKE ?)", "%a%", "%b%") Where the first string is the condition and the other two are parameters
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Shouldn't be, the words get passed as parameters for the '?' in the main part of the condition, and ActiveRecord or the Pg library should escape them
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Wouldn't be surprised in the slightest
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
It's been a while since the last time I wrote this monstrosity ๐ (split a typed query into separate words, then turn them into an SQL condition "text LIKE '%a%' AND text LIKE '%b%' AND ...")
BUG MANE (@bugmane.bsky.social) reposted
Covfefe was Matthew mcconaughey in the tesseract trying to tweet Covid thru Trumps hand
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
My thoughts exactly, which is why I said 'fuck it' and left it for a future-me (I'm on holidays after allโฆ) :p
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
That is a possibilityโฆ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Basically a lot of combinations and edge cases ๐ an account could be deactivated, then it & its posts seem to be gone, but can be back at any moment, when it's suspended it also could, but when it's deleted then it can't. And at first glance most of these look the same, "this post doesn't exist".
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
And I met this older guy who makes amateur radio transmissions via morse code and can read and send it really fast ๐ (but he says there are young people who can do it much faster still, there are some meetups and competitions and they specifically train for this ๐ )
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I loved this space exploration section - I was kinda shocked that: - it seems that for a long time USSR was ahead of USA, hitting many "achievements" first, until they were overtaken - and soo much of this happened in like ~15 years, from zero to Moon landing! and then we somehow lost motivation?โฆ ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
I was in a really cool Swiss Museum of Transport today in Lucerne ๐ So much stuff: ๐๐๏ธ๐ ๐๐๐โ๏ธ๐ฐ๏ธ๐๐โต๏ธ๐ข (all of these!) Made me think - man, humans can be so amazing when we're not terribleโฆ such crazy ideas that were turned into reality by smart and stubborn people, such insane feats pulled off!
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
I'm trying to add error handling to the code which downloads all liked posts, to figure out exactly why a post wasn't downloaded, depending on what the PDS says about the post/user and what the AppView says about the post/user (deleted? suspended? deactivated?)โฆ and it's starting to look like this ๐ซ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Building, not installing - I'm making a thing to search for things in all the posts you've liked on Bluesky
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Omg
Ian Boudreau (@ianboudreau.com) reposted reply parent
It's okay. We get to share a special Advent Calendar together until it happens. Every day might be the day
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
How do you delete someone else's skeet?
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
It forces sales?
Sindre Sorhus (@sindresorhus.com) reposted reply parent
๐ป Cat Mode โ Disable keyboard and mouse to stop pets and other cute creatures from accidentally typing ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Thank you for making mine worth more ๐ซก
post malone ergo propter malone (@proptermalone.bsky.social) reposted
Frankentrump confirmed
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Unless it's like, pre 2015 wallet
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Tbh this wouldn't be something you'd remember, you had to write it down, so you might have it written down *somewhere*
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
:/
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
And you have a lot of money, guns and oil that we need
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
(Probably yeah, I mean unless you have the wallet installed somewhere and know the pin/password, the phrase with words is usually a backup you don't use every day)
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Write "I can't open my Bitcoin wallet" on Twitter and someone will help you
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I think it exists?
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Wersja po polsku: ale tu jest kurwa ลadnie
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
This "outside" is pretty nice actually, I gotta sayโฆ ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
Poland with the biggest change old to young on the whole list ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Yeah, means plush PKP = Polskie Koleje Paลstwowe (Polish National Railways)
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Ahh, right
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I'm with firstname29502 on this one tbh
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
Spoiler: it's Trump and Republicans. It's always Trump and Republicans ๐ซ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
BECAUSE NEIN!!! ๐ฎ๐ผโโ๏ธ (I guess it's like, normally a beach with lifeguards and stuff and they don't want people to use it when it's unguarded or something?โฆ Also it's some kind of walled off compound with paid entrance, but there was no one at the gates and it seems generally off season)
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I always feel like saying this ๐ซ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
Hmmm
sweet little raquel (@computer.fish) reposted
checking out a long awaited bluesky feature ask the devs if it's atproto or a separate service pulling out an illustrated diagram etc etc it's a separate service
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Hmm, or maybe justโฆ (Now I have two problems)
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
โฆ I know some of these words ๐ฅฒ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reposted
If you want to try out an alpha version of a liked posts search engine, ping me :>
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
Shouldn't these things be, like, not related in theory?โฆ ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I'm not a big fan of making that kind of binstubs for every binary somewhere in the project directory, and `be` (as opposed to not adding it) ensures that it's run in the right version as listed in the Gemfile if you have more than once in the global gems folder.
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I think there's a few different ways to do that, and "the right way" / "the Rails way" changed more than once, like some other things in the Rails world did too, depending on the team's current mood ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
It's used to it
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Go to sleep, school tomorrow
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
Apparently I have made 128380 likes since I joined this website ๐ซฃ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
If you want to try out an alpha version of a liked posts search engine, ping me :>
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
bsky.app/profile/mack...
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
macOS really insists on automatically autocompleting 'lycan' to 'lycanthropy' whenever I'm typing the name anywhere ๐ซ ๐บ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Gets an encoded public key from user's DID doc and wraps it in some OpenSSL nonsense so it can be fed to the `jwt` gem which verifies the token. The OpenSSL part is what I have no idea why it is this way, because it's much more than just OpenSSL::Key.new(file)โฆ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I was sooo confused because I had no idea that bear.app was open sourceโฆ until I realized it's a completely different unrelated Bear ๐ง
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Yup ๐ฏ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
Yeah, what I'm sayin'
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Jack be like:
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
It's a good sign when you put something like this in cryptography code, right ??
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I thought like, "(complementary)" or "x are stored in y" or "jerry no"
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
โฆ what is a Blueskyism? ๐ซฃ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
This isn't looking goodโฆ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
legos
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
It's almost as if that was all bullshit and plenty of politicians claiming those values also personally live very differently than what they sayโฆ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Yeah PDS doesn't have its own "identity" as a DID I guess, feed generators do
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Fuck, nevermind, Ruby error ๐ซฃ ENV vs. envโฆ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
@doris.is.goblin.fyi frog account mentioned
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I receive this request from the PDS IP on blue.mackuba.eu on that path, but without any auth headerโฆ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I think I'm still missing somethingโฆ so I have this definition: blue.mackuba.eu/.well-known/.... I reused the existing `#bsky_fg` there. I'm making a call to my PDS with /xrpc/blue.feeds.lycan.printToken and headers { 'atproto-proxy': 'did:web:blue.mackuba.eu#bsky_fg' }.
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
I choose to stick to this interpretation of what that means ๐ธ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Awww โบ๏ธ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
So, based on what I've seen so far, realistically the main way that you can get this while being an older, well established account, is byโฆ posting a gofundme link ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Of course I had to pet her ๐ฑ I fell for the exposed belly trap and got scratched a little bit, but it was worth it, she was so soft ๐ฅบ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
What the fuck
David Buchanan (@retr0.id) reposted reply parent
the fun thing about recommendations is that you don't have to follow them
Dominik Picheta (@dom96.picheta.me) reposted
ATProto may live on if Bluesky dies, but it will see nowhere near the same level of adoption as it would if Bluesky thrives. That is why Bluesky does need revenue and for that it needs growth.
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Yeah I was just wondering what I need to do on the server side to make this work, like this?
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Wait, so like the whole Bluesky works?โฆ ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Yeah, IIRC one is in DID doc (plc/web) and another in operations in the plc export or audit logโฆ ๐ซ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
No I think it's actually services in one place and service in another, and array in one and hash/object in anotherโฆ because I had to implement reading this twice in DIDKit
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Ok, thanks!
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Maybe, I just never really used thisโฆ So like I have (copy-pasted) here for the feedgen, but just add another entry to services there? blue.mackuba.eu/.well-known/...
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
#atdev people, how do I use this atproto-proxy thing? Do I need to have this did:web:your.app.domain#some_identifier defined somewhere on your.app.domain somehow?
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
๐ฉ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Like, an App Store notification email, from Apple, right?
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Ahh, I think I might have done it this way one timeโฆ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Ah, maybe the trial there isn't an App Store trial but just something done locally?
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I wonder why this works differently here for exampleโฆ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu)
When you start a weekly trial of a subscription for an app on iOS, is it possible to get notified/warned when the trial ends and it's about to bill you for a full year?โฆ ๐
anisota ๐ฏ๏ธ (@anisota.net) reposted
yeah
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Like e.g. here ๐
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
Yeah we have a fuckton of pigeons here, and they really love my balcony ๐ซ poop everywhere ๐ฉ๐ฉ
Kuba Suder ๐ต๐ฑ๐บ๐ฆ (@mackuba.eu) reply parent
I remember seeing a lot of sparrows when I was a kid, but somehow I rarely see them these days, I think I read that the Polish city environment isn't good for them ๐ข and they're so cuteโฆ so I'm happy when I see them in other places :)