HNHacker News
TopNewBestAskShowJobs

djrockstar1

398 karma · joined March 19, 2019

submissionscomments
djrockstar1··on Field Notes from Shipping Real Code with Claude
[flagged]
djrockstar1··on The good times in tech are over
Isn't demand a function of how much the company makes from your labour?
djrockstar1··on Fix date-handling bug when today’s date is later than the target month
And the right way would be?
djrockstar1··on Ask HN: Show me your half baked project
Now if someone could make this but with food, they'd get all my money.
djrockstar1··on Ask HN: How to Classify Websites?
Someone had success using GPT-3 to classify episodes of a podcast[1]. I imagine if you fed the HTML from the crawler into an LLM, it could come up with a usable classification for it.

[1] https://news.ycombinator.com/item?id=35073603

djrockstar1··on ChatGPT generated a puzzle game
> Ability to mark cells as "locked" (i.e. "definitely present")

Try double clicking

djrockstar1··on Help! Is This Arabic?
Except Microsoft Word, which for some god forsaken reason demands you do Ctrl+V, Ctrl, T.
djrockstar1··on Ask HN: Math books that made you significantly better at math?
Had to do a Calculus course in uni despite not having taken any calc or pre-calc in high school. "Precalculus Mathematics in a Nutshell" and "Calculus Made Easy" were complete lifesavers.
djrockstar1··on Ask HN: What $500-2500 product improved your 2022
You spent $500-2500 on a water bottle?
djrockstar1··on State of CSS
Yeah container queries are what I'm most excited about looking at this list. I was pretty bummed out to see they're only supported on 63.75% of browsers, and notably missing on most mobile browsers, where they'd be most useful.
djrockstar1··on Dear Chess World
Chess.com already put out a statement saying Carlsen has not seen anything about their cheat detection or their list of known cheaters.
djrockstar1··on Dear Chess World
FIDE already put out a statement saying they know nothing about this incident and want Carlsen to put forward initial evidence for them to start an investigation. Carlsen's statement shows that he has no evidence beyond his feelings over the board and Hans' history of cheating online.
djrockstar1··on Why do domain names sometimes end with a dot?
It's not considered a repost unless it has already gotten attention recently. Things like time of day or day of the week or just randomness can affect if a post gets the discussion is deserves, so HN does allow reposts.

From the HN FAQ[1]:

> Are reposts ok?

> If a story has not had significant attention in the last year or so, a small number of reposts is ok. Otherwise we bury reposts as duplicates.

> Please don't delete and repost the same story. Deletion is for things that shouldn't have been submitted in the first place.

[1] https://news.ycombinator.com/newsfaq.html

djrockstar1··on A prank cursor resulted in an employee being fired before they started (2020)
The bonus chatter bit made this worth the read.
djrockstar1··on Why I don't miss React: a story about using the platform
I got into RxJS cause I had to deal with an Angular project a few months ago, what's wrong with it?
djrockstar1··on Things I can’t do on macOS which I can do on Ubuntu (2020)
Oversights like these always make me wonder if the author is cunning and Cunningham's Law is at play.

Why look very hard for solutions when you can just claim there are no solutions and wait for someone to disprove you?

djrockstar1··on A short conversation with a bank
On the bright side, now that you have step by step instructions for what needs to be done, you can hack together a script that will take you more time than doing that process manually would have for the rest of your life, but once you do you won't have to do it ever again.*

*unless the bank changes something about their email/website/pdf and that breaks the script

djrockstar1··on Use spacer components instead of CSS margins (2020)
Not OP but I had a scenario where I had a row with a variable number of items, left-aligned, and then the final item had to be right-aligned. "margin-left: auto" on the final item achieves that effect.
djrockstar1··on Use spacer components instead of CSS margins (2020)
Thing is, clickbait works, so people will continue doing it. All your "gotcha" showed was that it works. Look at all the people in this thread engaging with this post, not because of its content but because of its title. If a clickbait title will lead to higher engagement, why would an author not use it?

The best way to combat clickbait is to not fall for it, not play into it, to either ignore the article, or to read the article and discuss or critique the content instead of bringing more attention(all press is good press) to the title.

djrockstar1··on Use spacer components instead of CSS margins (2020)
The text of the article contains an argument to avoid margins when creating reusable components, instead allowing the consumer of the component define its margins. There is no argument made against using margin properties.
djrockstar1··on Genuary 2022: Generative Code Art Prompts for a Month
Gonna use this opportunity to show off my day 1 prompt (10,000 things) creation. I'm not quite satisfied with it, but also don't really know where to go from here. https://i.imgur.com/8LN0q6V.png
djrockstar1··on Ask HN: What are you predictions for 2022?
* I'll be closer to happiness than I am now
djrockstar1··on Please don't use Discord for FOSS projects
Note that there's an error in the assumptions behind the discord regex, discord invites do not necessarily have "invite" in the url, and may use the domain discord.gg instead. For instance the yarn repo[0] uses the url "https://discord.gg/yarnpkg" which was missed by your search. Another worthwhile mention is the Svelte repo[1], which uses discord, but instead of linking directly to their discord invite, links to "https://svelte.dev/chat" which then redirects to their discord invite.

Looking for the "discord.gg/invitecode" pattern[2] gives 27k results, safe to say discord is severely under-represented in your statistic.

[0] https://github.com/yarnpkg/yarn

[1] https://github.com/sveltejs/svelte

[2] https://sourcegraph.com/search?q=context:global+https://disc...

djrockstar1··on Please don't use Discord for FOSS projects
Going to play the devil's advocate for a minute here.

I've found discord's search feature to be quite powerful, specially if servers are well partitioned into channels based on topic, and are searched(and therefore indexed) semi-frequently. It's not as good as a search engine, but throwing some keywords in there does often get me the answer I'm looking for.

Also regarding irrelevant chatter, discord's gotten a lot better with that since the recent introduction of the threads feature, allowing each discussion to branch off into its own thread instead of getting intermingled.

djrockstar1··on A Tumblr developer on the App Store approval process
Alright, I looked around and finally came across this StackOverflow answer[0] that supports your point. Turns out, if you use let Xcode handle code signing for you, you need a physical device for it to target (which is what we were doing), however there also exists an option to manually sign code yourself, in which case you wouldn't need a physical device. Thanks for the correction, I'm glad to be wrong!

[0] https://stackoverflow.com/a/58920415

djrockstar1··on A Tumblr developer on the App Store approval process
It's appalling to me that iOS developers still exist after all the hoops you have to jump through to get an iOS app out. I'm a web developer that got roped into developing and then publishing a react native app for android and iOS. The android process was relatively painless compared to the crap Apple has you do. For starters, you can't even produce an app build without running on iOS, so the company had to procure an old Mac just so we could compile. Once I got Xcode set up, I learn that I need to connect to an iPhone as a target device in order to build. Thank god for small companies and being able to get things done quick. Another hoop and painful 30-40 minute compile times later (for a relatively small app mind you, also caching didn't seem to help whatsoever cause even back to back compiles were still slow as hell), we finally get out a build out on TestFlight, only to wait an undisclosed amount of time for Apple's approval.

I realize these aren't issues if you're already drunk on the Apple Kool-aid and have the latest Mac with the latest iPhone. Then these barely seem like hurdles, but to someone who hasn't already sold their soul to Apple, publishing an iOS app should not be this difficult.

djrockstar1··on An interview that disappeared – FIFA World Cup Qatar 2022
I'm literally just a Pakistani dude who's lived in Qatar all his life bored at work with nothing to do. Well, that or I'm a Qatari national working for the Qatari government as a social media agent, but doing programming on the side for some reason, who knows?
djrockstar1··on An interview that disappeared – FIFA World Cup Qatar 2022
I'm no human rights expert and nor am I trying to defend slavery. I'm just combatting the insane about of FUD that exists around basically any country in the middle east, specially on forums that are comprised of mostly western people.
djrockstar1··on An interview that disappeared – FIFA World Cup Qatar 2022
I haven't been able to find death rate statistics for people aged 18-30, so I can't really compare the numbers with strictly facts. There is an article from the BBC from 2015 that claims that the number is in line with what would be expected from that age group:

> The point officials are making is that there are about half a million Indian workers in Qatar, and about 250 deaths per year - and this, in their view, is not a cause for concern. In fact, Indian government data suggests that back home in India you would expect a far higher proportion to die each year - not 250, but 1,000 in any group of 500,000 25-30-year-old men.

https://www.bbc.com/news/magazine-33019838

djrockstar1··on An interview that disappeared – FIFA World Cup Qatar 2022
The Kafala System that was in use in Qatar until 2016 was indeed modern slavery. Workers had their passports taken, and couldn't travel or change jobs without explicit permission from their employers. Living in Qatar I've experience first hand how people were exploited, dealing with delayed salaries, sometimes taking on second jobs, sending a majority of their income back home every month.

However I would say that things have improved significantly, and are continuing to improve. You speak of a lack of oversight, but the fact that we're in this thread discussing this issue means that there must be some oversight. From international bodies to individual journalists there's many people concerned about labour rights, and these concerns aren't something the Qatari government can just ignore, as evidenced by the numerous labour reforms.

Page 1 of 3Next →