Readit News logoReadit News
LecroJS commented on Git 3.0 will use main as the default branch   thoughtbot.com/blog/git-3... · Posted by u/ingve
Sander_Marechal · 4 months ago
No problem. The parent had it the wrong way around. OMZ will use main if it exists, master otherwise. So a bad move still works!
LecroJS · 4 months ago
Thanks that’s good to know
LecroJS commented on Git 3.0 will use main as the default branch   thoughtbot.com/blog/git-3... · Posted by u/ingve
lunias · 4 months ago
At the end of the day, all I really care about is consistency. It's annoying to switch between projects which use different branch names to describe the same thing.

That being said, this is a dumb reason to introduce inconsistency.

LecroJS · 4 months ago
I had this problem too until I forced myself to use the `gcm` alias from oh-my-zsh’s Git plugin. IIRC it checks out to master if it exists, else main. It has almost entirely removed this distinction from my life.
LecroJS commented on Ask HN: Gift Ideas for 3 year old?    · Posted by u/LecroJS
Bender · 8 months ago
A super soft stuffed animal that is verified child safe as in it does not come apart easily and/or have small parts one could choke on. It should be something really cute that both the Niece and other family members will be happy with. Send links and pictures of your ideas to the other family members for their input.
LecroJS · 8 months ago
Thanks. Do you have any places you would recommend buying from? I am guessing Amazon might not be able to meet this criteria.
LecroJS commented on EA Pushes Full Return to Office, Effectively Ends Remote Hiring   ign.com/articles/ea-pushe... · Posted by u/napolux
disqard · 10 months ago
I kinda hear you -- there's definitely gradations at work here -- but the sentiment you've expressed is also fast losing veracity. For instance:

https://news.ycombinator.com/item?id=43612448

LecroJS · 10 months ago
So is that post’s sentiment: https://news.ycombinator.com/item?id=43725229
LecroJS commented on Serverless Is a Scam   sliplane.io/blog/serverle... · Posted by u/ipeev
CafeRacer · a year ago
The thing i hated the most about aws lambda is connecting to postgres or using bcrypt... it's possible, but it felt like defeating Malenia.
LecroJS · a year ago
What did you dislike about connecting to Postgres from AWS lambda?
LecroJS commented on Spreadsheets are all you need   spreadsheets-are-all-you-... · Posted by u/evanmays
tombert · 2 years ago
I occasionally need to loan people money, and usually they need to pay me back in multiple payments, sometimes over several months.

Being a proper geek, my first inclination was to build a web app to keep track of that and so the people I am loaning cash to can also view their balance, but I realized that would involve maintaining state and login creds and a bunch of other variables I haven’t even considered, and maintaining this app would become a second, unpaid job.

Then I thought “I could just use a Google sheet and share it”, which is what I ended up doing. It’s easy to set permissions, I don’t have to worry about hosting, I can have it do any amount of arithmetic and light programming that I might need, as well as being automatic and reactive as I add information. It will be slower than something I would write in C obviously, but realistically for something involving budgeting the time savings will be on the order of milliseconds.

I love spreadsheets. They provide a gateway to programming for non-programmers, and they provide a low-effort means of playing with data.

LecroJS · 2 years ago
Well said. This can go even further by defining JavaScript code as functions in a sheet. For example, if someone pays you back, you click a checkbox in the corresponding cell, and it runs your code to send them a thank you email.
LecroJS commented on Ask HN: Why does Apple refuse to add window snapping to macOS?    · Posted by u/retskrad
guitarbill · 3 years ago
Also Rectangle, which I moved to from Divvy: https://github.com/rxhanson/Rectangle
LecroJS · 3 years ago
+1 for Rectangle. It’s the first thing I install after homebrew on any new Mac. I came from Spectacle after EOL and was pleasantly surprised at the additional features (like window snapping) + support for Spectacle binds. If you want to try it out, it’s as easy as `brew install --cask rectangle`
LecroJS commented on Ask HN: What decade or older games surprise you with how well they have held up?    · Posted by u/Decabytes
LecroJS · 3 years ago
Super smash brothers melee, and it still has a strong grassroots competitive scene. It’s a work of art made in only 9 months
LecroJS commented on AutoHotkey v2 Official Release Announcement   autohotkey.com/boards/vie... · Posted by u/majkinetor
SeriousM · 3 years ago
Oh yes of course, thanks for the follow up! I work in many different applications therefore I can't create fixed automations for the major part, but many times I come across tasks I need to do N times with ui elements always on the same spot. Think of it like the very same website but in a different context (build, commit, server, ...). I want to start a macro recording, do my stuff and stop the recording, then start the playback N times like shift-F11-13 where 13 is the number of loops. All that should be ui hidden and always be on the watch for my keystrokes to start recording/playback.
LecroJS · 3 years ago
Thanks for the extra details, I think I understand what you’re looking for.

Have you looked into something like this[1] for generating the macro as an ahk file? Full disclosure: I have not used it, but it seems like what you’re looking for. If you find that it suits your needs, I’d use that to record the macro and then wrap it in a loop from 1..N where N is based on the Fn key you press. That should do the trick unless I’m misunderstanding.

I wish I could be of more help, but this repo seems like a decent starting point for your use case.

Apologies if the formatting is poor as I am on mobile.

[1] https://github.com/adegard/AHK_SCRIPTS

u/LecroJS

KarmaCake day133January 11, 2022View Original