skysight-inc/HackerNews huggingface dataset:
Create stunning landing pages that represent your brand and connect with your audience in minutes. Focus on what matters most - your content and your audience - while we take care of the rest.

BITHUB is now live on Product Hunt! Show us your support today
https://example.com | SEEKING INVESTMENT | USA | raising $50k (pre-seed)

Lorem ipsum sit dolor. hello@example.com
Has ford considered taking this a bit further - in between your songs they pause the music and make you repeat "It's Always Fresh in the Outback!" or "Subway, eat fresh!" a few times to refill your ford points to re-enable the radio. The more volume -> more points used per minute. If they detect you let your dog ride without strapping it into a ford approved dog cage then it will report you to the local police and self-drive you to the police station. Imagine if we integrated a covid testing application and an automated system to detect slurs during bouts of heavy traffic and immediately reports your bad words to twitter and your covid test result directly to the CDC. Oh and a perhaps they could integrate a giant screen that shows a picture of a small animal dying from being submerged in an oil spill to shame you for buying their product, the more you drive the cuter and more dead animals that could appear on the dash.
Show HN: Graph-based roadmap to learn anything 10x faster
Hey guys, I am founder of Neuton. I have built roadmap playground that guide student to learn skills faster with the help of progress tracking and interactive graph-based roadmap.

To read more:
https://www.producthunt.com/posts/neuton-2-0/maker-invite?co...

I would love to get some feedbacks.
Can that be detected by the site? (in a non-hacky way)
Theft is a huge factor if you live in a city.
I have been riding crap bikes all my life since the good ones get stolen :/
A few years ago I got a Fuji Xerox DocuPrint P115 monochrome laser printer. It's small/compact, looks elegant, fits nicely in a corner of a top shelf in a closet, works fine over Wi-Fi, and it always works perfectly about the 3-4 times a year I need to print something. It cost about $150 and didn't hook you into any toner subscriptions or other strings attached. It's been perfect.

Fuji Xerox doesn't make it or anything like it anymore. HP has one that looks similar [1] – could that be as good? The equivalent Brother models all seem much bigger and uglier.

I'm not looking forward to having to replace it, whenever that day comes.

[1] https://www.hp.com/us-en/shop/pdp/hp-laserjet-m110we-printer
> My understanding too is that energy intensive manufacturing, like that of aluminum, often take place in regions of the world where energy is cheap: as an example the hydroelectric power along the Columbia River in the U.S. North West.

In the west that's true - mostly American companies operating in Iceland and Norway where there's cheap hydroelectric power, the US isn't one of the top smelters. This involve shipped a lot of alumina and aluminium about.

In China it's dug up, extracted, smelted and manufactured all within China. I don't know if that's because energy is cheap, but it's quite possibly not green!
You should see the capacities from Chinese LLMs.
> A related fact is that sometimes “advanced technology” really just means using more energy.

I don't think this is what generally happens. Chips right now do this because Dennard Scaling / Moores Law are coming to an end, so they have to increase performance in different ways to win some dumb benchmarks. Nearly everywhere else its the opposite. Cars, fridges, heating, houses, lighting - they all use less energy than they used to.
At one point when at work, I raised the possibility of a lab leak. My friend, whom i usually consider open minded, immediately burst out with “conspiracy theorist!”.

Now the FBI director thinks the same.
Jancovici's conference about how ecology and economy eventually boil down to fundamentals such as energy is eye opening:

https://www.youtube.com/watch?v=KtQBPhKSWu0&list=PLMDQXkItOZ...

The punchlines are wonderful. E.G: "The first law of thermodynamics will always win over political promises".

Highly recommended.
LOL welcome to your thirties. Try to lean more towards the weird new hobby side of things, instead of the 20yo girlfriend side.
Microsoft bought Access, PowerPoint, Flight Simulator, Skype, GitHub, LinkedIn, etc

That’s part of the game…
Uhm, this is a preview. You’re not supposed to use it until it’s widely available. They’re just showing it off and gathering feedback.

> I'll file this under something interesting to revisit in a year or two.

Correct. However things are moving fast so certain new features become widely available within months.
ChatGPT tells me:

Dividing a number by 7 using bitwise operations can be done using a technique called "magic numbers." This involves precomputing a number that, when combined with bitwise operations, will give the correct result.

Here's how it can be done:

First, we need to find a "magic number" that will help us divide by 7. One way to do this is to use the fact that 7 is a prime number, which means that there is a number k such that 2^k ≡ -1 (mod 7). This number is called the "multiplicative inverse" of 2 modulo 7. We can find k by repeatedly squaring 2 until we get -1 modulo 7:

lua

2^1 ≡ 2 (mod 7)
2^2 ≡ 4 (mod 7)
2^3 ≡ 1 (mod 7)
2^4 ≡ 2 (mod 7)
2^5 ≡ 4 (mod 7)
2^6 ≡ 1 (mod 7)

So k = 3, since 2^3 ≡ 1 (mod 7).

Next, we need to combine this magic number with bitwise operations. Specifically, we can use the following formula to divide a number x by 7:

scss

x/7 = (x + (x >> 3)) * k

Here, >> is the bitwise right shift operator, which shifts the bits of x to the right by 3 places, effectively dividing x by 8. The expression (x + (x >> 3)) adds these two values together, which effectively multiplies x by 9. Multiplying by k then gives the correct result of dividing by 7.

Here's some example code in Python that implements this division algorithm:

python

def div_by_7(x):
k = 3
return (x + (x >> 3)) * k

Note that this algorithm assumes that the input number x is a non-negative integer. It may not work correctly for negative numbers or floating-point numbers.
Most areas don’t let you drive a car until 16 or even 18: but whether people are shuttled around before that or transport themselves.
FWIW privateering was violent, on the ocean, and legal
Well said. I spend my day doing professional software development in a particular domain, where I solve real, tangible problems. In the evening I like to spend some time on aimless programming, tinkering with new languages, technologies, tools, etc. I do it for the enjoyment of the learning and the creative process as you mentioned, with no particular goal in mind.
Shimano Cues was recently announced and might help with some of the compatibility issues moving forward.
https://bike.shimano.com/en-US/product/component/cues.html
Never heard of place-self before! I've always resorted to fumbling around with flexbox froggy and wondering why the changes I make to froggy seemingly don't do the same thing to my simple HTML.
Yeap - my e-bike is a kid hauler, with the battery canceling out ~80lbs extra weight to make it feel like my road bike. We know so many parents who’ve picked those instead of a car (or more likely SUV).

The right way to think about it is as a two order of magnitude reduction in the amount of battery needed to transport the same number of people compared to an EV, and without all of the other negative impacts on city life.
This indeed often works, but there's a whole class of questions where it doesn't.

Example: yesterday, I was listening to Abbey Lincoln's performance of the song "Angel Face" (you can find it on youtube). I wondered who composed such a beautiful song. Unlike the majority of jazz standards, this song doesn't have a dedicated page in wikipedia. Other sites cited different composers. When I asked chatGPT, it confidently told me the song was composed by Duke Jordan in 1952.
This claim was easy to refute by googling Duke Jordan. By more googling, discovered the real composer: Hank Jones (1947, originally as an instrumental piece).

This is an instance representing the class of questions where you expect a very concrete answer, but chatGPT fails, and the info it provides is totally useless.
That's a fine advice for people with hobbies that use technology.
https://powerspeeds.com/
Rent went down because people left, and they did because (1) remote work is way bigger than before and (2) housing price are still incredibly high.

I suspect that is the SF housing prices were not that high to begin with, not that many people who have left when remote became possible.
Not a joke. I usually end up creating better workflows automating tasks
Show HN: Front end developer jobs board
How to Upload Large Files Directly to Amazon S3 in React/Next.js
Making telemetry opt-in would not have fixed this issue, the author is simply using this example to make an unrelated point about telemetry.

The real solution here is to remove all optional code from the critical path - this not only includes telemetry, but also things like in-app tutorials, automatic updates, crash reporting... If some code is not implementing a core function of the application, it should be allowed to crash and the application continue working. This is a core principle of good software engineering and it needs to be talked about more.
>Crypto and layoffs are out boys! AI chatbots are back in!!

At least the LLM stuff is useful. I haven't gotten this much value out of a new technology in a long, long time. Possibly since the Web.
It depends on the "channel" and the time. I get the logo playing a lot watching through the official app on my tv.
Leveraging Proprietary Data with GPT-3
I wanted to see what you could do to train GPT on custom data. Fine tuning was a dud but I was amazed at what composition tools like LangChain were able to accomplish even on a small dataset.
> Look, most modern software is spending 99.9% of the time waiting for user input, and 0.1% of the time actually calculating something.

I'm sorry to say that this argument is not even wrong.

As programmers, it is not useful to us to think about that 99.9% of time. The 0.1% of the time is literally our entire job.

"Most of the universe is not Earth, so why do we spend so much time thinking about things on Earth?"
IKEA doesn't have a 3 meter desk last time I checked. I'm guessing he bought a 3 meter wood counter top and screwed IKEA desk legs to it. That's what I did at least.
How would you get people to trust you to do this and make a solution that they can maintain in the long term? It's hard for me to envision an organization accepting this offer.
The judge will be forced back to law school / grad school by the imminent Deepmind reinforcement lawner.
I guess experiences vary: I’ve never heard that – in fact, people who bought cheap Walmart bikes were surprised when they learned that a part was non-standard and hard to replace.
a bit OT, but I've noticed over the past 20+ years that almost every movie/tv show that shows someone playing video games will play the same 40 year old sounds. I'm always hearing the arcade Defender shooting and thrusting sounds, and occasionally Atari 2600 Pacman sounds. Are these just 'public domain'? Why don't we hear more 'real' video game/arcade sounds?
I literally just did exactly this to your comment. Bigger button or touch area for mobile would be fantastic.
Homebrew uses it to store bottles (the built assets).
Weighted average? Citi bike has 15k bikes and claims to have served over 120 million miles, although they don't know the true mileage because they just use the grid distance between stations. That's closing in on 10k miles per bike, ignoring whatever number they've needed to replace, and bike-of-Theseus philosophical questions.
This was posted a couple days ago too: https://news.ycombinator.com/item?id=34956747

Couple of thoughts on this piece from someone who has been working with PHP since 1996...

> Many years ago when PHP started the Web2 Movement it was the most popular and mainstream way to add dynamic content to static websites.

It may have been 'most popular' but even in 2002, 2003, 2004.... there was great ... skepticism or reluctance to use PHP. "It doesn't have threads!" "It's not .NET!" "Java is better/bigger/etc". Yet... it was still the most 'popular' by usage.

> It was the go-to language when creating user interaction and its success seemed unstoppable.

The success always seemed a bit fragile to me when thinking about 'big corp' adoption. There was always a big corp (MS, IBM, etc) that just a press releases away from the 'next big thing' that would kill all competitors.

Yet... here we are, 29 years after the language was started, and it keeps adapting to new ideas, the ecosystem grows, and stuff continues to get done. I'm hoping the 'open collective' continues to grow, and while I don't think they're going to be doing big flashy headline grabbing work all the time, quietly funding continued development of the language is a good thing.

Composer changed the game and continues to provide a great underpinning for evolving ecosystems, like symfony and laravel (among others).

> But the main reason for JavaScripts success were young developers. In my opinion, JavaScript became part of the enterprise stack because it was the cool way to develop in enterprises...

It 'took off' because we had a combination of XHR then jQuery within a couple of years. The 'browser' became a way to build AJAX-y applications, and jQuery made it at least bearable, if not fun, providing an abstraction between various browser differences. For those not old enough to remember, there were very big differences between browser implementations of JS, and it was a big overhead to try to make moderately complex JS-based apps for multiple versions of IE and FF and others (IE for Mac was fairly different than IE for Windows).

Had we had pluggable/replaceable JS runtimes for browsers, we might have seen more language progression, which may have reduced the need for all the layering on top (the transpilers, etc).

PHP is generally doing well, but always has room to improve.
Yep great points. The average citizen simply can't buy the average home in most cities.
Have you looked for a bicyle co-op near you? They usually horde bicycles and part them out, like a "pick-a-spare" would do for cars.

We have a great one here, you can wander the wall of hundreds of bikes and pull off whatever you need. Great atmosphere as well, like a makerspace exclusively for bikes.
What if the AI is racist? It’ll probably violate some civil rights law and the company will be sued.
Old cars had very narrow a pillars and they survived rollover just fine - look at the thickness of an actual full on roll cage and it is much smaller than modern a-pillars.

It’s mainly the airbags (and the angle of the windshield too I suspect) - and that it is simply not an aspect that is controlled for in testing to allow a vehicle to be road worthy. Add a tax based on degrees of width of A pillars and they would start shrinking.
Hank realizes that their image is maintained by early compliance, even though every “request” is made under the threat of eventual violence. So he refuses to comply and insists that they show up with guns to take his steel mill.

IIRC his approach worked and they yielded until they got dirt on Dagny which they used to blackmail him.
Note that the export on the source device doesn't seem to have any way to actually know whether or not you are actually setting up a new phone. It just makes QR codes with the keys for groups of accounts that Google Authenticator on a new device can scan to import those accounts.

I can't see any reason you couldn't start the export process without having a new phone and take screenshots of the QR codes, then back those screenshots up to some secure place.

You should be able to later use those screenshots to restore those accounts to a new phone without needing to have the old phone.

I don't use Google Authenticator so have not tried this.

While the above should work, I'd recommend saving the QR code for each site when you sign up for TOTP at that site. That way you can easily transfer to any other TOTP authenticator. The Google Authenticator export seems to make QR codes that combine multiple accounts and I'm not sure any other authenticators would know what to do with those.
Oh dear, Last time this happened was 11 days ago when more than just packages went down. [0] Perhaps relying and going all in on GitHub doesn't seem to be good in the long run. Especially GitHub Actions.

This is where OpenAI is now feeling the effects of instability [1] on Azure since their recent outage. I expect them to also have issues like GitHub has every month.

[0] https://news.ycombinator.com/item?id=34843748

[1] https://news.ycombinator.com/item?id=34958375
Software like tiktok is as easy to use as zapping tv channels, for zapping tv channels.
Clever. Seems so obvious in hindsight.
Some of the available modules include:

Speedster: Automatically apply the best set of SOTA optimization techniques to achieve the maximum inference speed-up on your hardware. https://github.com/nebuly-ai/nebullvm/blob/main/apps/acceler...

Nos: Automatically maximize the utilization of GPU resources in a Kubernetes cluster through real-time dynamic partitioning and elastic quotas. https://github.com/nebuly-ai/nos

ChatLLaMA: Build faster and cheaper ChatGPT-like training process based on LLaMA architectures. https://github.com/nebuly-ai/nebullvm/tree/main/apps/acceler...

OpenAlphaTensor: Increase the computational performances of an AI model with custom-generated matrix multiplication algorithm fine-tuned for your specific hardware. https://github.com/nebuly-ai/nebullvm/tree/main/apps/acceler...

Forward-Forward: The Forward Forward algorithm is a method for training deep neural networks that replaces the backpropagation forward and backward passes with two forward passes. https://github.com/nebuly-ai/nebullvm/tree/main/apps/acceler...
It’s not uncommon for people who like Debian overall but want to be less out-of-date.
I do the same thing with movies + anime, I can + will pay for it but streaming is a no mans land for me. It's a useless product that provides no value, but an .mp4 or .avi file can be played back on any hardware I own, anywhere.
Xor Grant – $1024 Grant Program for High School Seniors
And it goes much further. A bike is potentially something that is quite easy to comprehend, and relatively simple to repair and maintain, and the experience of doing so can instill a sense of ability, control, and responsibility, vs. helpless consumerism.
> I'd pay good money to see a TV show where his style of programming ("spaghetti", as you claim) run laps around your "Clean Code".

You'd like to pay money to be assured that you're right? I prefer to have an informed opinion based on actually trying stuff out and measuring†, I also find that as a result I don't feel the need to pay for validation.

> For example, he wrote a terminal emulator in a weekend to prove that Microsoft doesn't have a clue about how to write code

So, your thesis is that writing a terminal emulator - software which is pretending to be hardware that existed 40+ years ago, shows that this person is great at handling surprising requirements changes during development ?

An insistence that the only thing we can measure is performance and specifically speed and therefore that's the only thing that matters is nonsense. It's just that this technique does so poorly when judged on maintainability that it's no contest.

Try it, first add the hollow box example shape, in the Clean Code this is very easy and we'll notice immediately it's de-coupled, colleagues working with abstract shapes don't care at all about our Hollow Box shape, it all just works with the abstract APIs.

The less-clean switch approach is a little bit hairier now, but it's very possible although we may notice now our objects are all bigger again, even though perhaps few are hollow boxes, they're all bigger as they all need to track the possible state of a hollow box. So that's actually a significant performance degradation for some applications in our supposedly "high performance" solution...

The table-driven approach needs a rewrite though, the F*W*H simplicity doesn't apply any more, there are a few "minimalist" approaches, all of them awful compromises waiting for the other shoe to drop - so perhaps a big bang rewrite is called for. Ouch.

Now, having learned from our hollow box experience, let's add Regular Star Polygons next. These are pretty interesting shapes - but we're shape classes so no reason we can't handle this, the stars have a defined area and a defined number of vertices ("corners"). But while the Clean Code here is very tractable, the dirtier approaches start to hurt pretty bad now.

Notice that under Clean Code the exact implementation of Regular Star Polygons doesn't affect anybody else, their code all still works regardless. For example maybe we should sub-class popular examples like the 5/2 and 6/2 rather than taking p and q parameters, doing this works fine under Clean Code, since it's nobody else's business.

† EtA: One of the most important innovations in years has been Godbolt.org, Matt Godbolt originally worked on this tool to examine exactly this sort of question, it's one that comes up early in the talk you liked - can we safely use actual C++ iterators? Wouldn't an old-fashioned for loop be faster in some cases? Matt's answer was "Yes", you can use iterators, the iterators produce exactly the same machine code and the tool he used to demonstrate that evolved into Compiler Explorer, the godbolt.org site today.
Show HN: Track your submissions’ score on HN and Reddit
I started a new micro-side project to play with Next.js latest features and React server components.

I spend too much time tracking the (low) score my posts & side projects get on HN & Reddit, so I made an app to track them more efficiently!
The landing page for this is great, super clear calls to action, links to examples front and center, bullshit salesy stuff (which is necessary for many viewers, no shade) is below the fold where I can ignore it.

The only real question for me is how hard is the “initial setup”. Could you make a demotime of that process maybe?

Anyway, props, v cool.
Retention Benchmarks and Insights from Studying over 2,100 SaaS Businesses