HNHacker News
TopNewBestAskShowJobs

z92

1,606 karma · joined April 8, 2010

Contact: habib@habibur.com
submissionscomments
z92··on Zig, parser combinators, and why they're awesome
Checked Zig. Doesn't have a memory manager. It's "free all at program termination" or manually manage memory like C.
z92··on Food Prices Are Soaring Faster Than Inflation and Incomes
I don't get how food consumption can increase in a pandemic. Should be constant in or outside a pandemic situation. Possibly somewhere crops are getting rotten because of newly imposed export restrictions, or for some other things.
z92··on The new Google Pay repeats all the same mistakes of Google Allo
Too large a company. Their cross-team is like other's cross-company.
z92··on Show HN: Pakhi – Bangla Programming Language
Consider keywords :

ফেরত -> উত্তর

ফাং -> কাজ

For hashmap indexes, consider

name["key"]-> name.key

And while initializing

"name" -> "value"

consider syntax

name : "value"

Less typing.

z92··on Speed Is the Killer Feature
Anybody else remember the speedup loop.

https://thedailywtf.com/articles/The-Speedup-Loop

tl;dr : programmer inserts a large empty loop in a UI, so that in weeks when he achieves nothing, he removes a single zero from the end of the loop counter to speed up things a bit.

z92··on Gab has been hacked and 70GB of data leaked
Gab is like Facebook. Parler like twitter.
z92··on Generate Flowcharts from Text
Do it for all the selected lines, when multiple lines have been selected and tab pressed.
z92··on How I cut GTA Online loading times by 70%
Also note that the way he fixed it, strlen only caches the last call and returns quickly on an immediate second call with the same string.

Another reason why C styled null terminated strings suck. Use a class or structure and store both the string pointer and its length.

I have seen other programs where strlen was gobbling up 95% of execution time.

z92··on Google Analytics: Stop feeding the beast
Parse your server's access log file. The way it had been done for decades. "Analog" was popular then, Should be better options now.
z92··on DigitalOcean S-1
Right! Linode was $20/month at least and more focused to businesses. Not the then unbelievable $5/month for SSH ssh accessible virtual box with root access that DO started. Plus the SSD. Other hosting providers later caught on with DO.

But the thing I liked best was their "no hidden cost". You pay what you agreed before to pay. No surprise. No upsell, trick sell which were common with all hosting at that time.

DO still maintains that honesty. Not sure what will happen after their IPO.

z92··on The Evolution of Developer Salaries: Looking Back 20 Years
His conclusion :

> In the years to come, industry experts expect low-level coding and programming jobs to become obsolete with the development of new tools that remove the need to code completely.

Me wondering how much of it shall we see.

z92··on Build an SMS Forwarder with Raspberry Pi Zero W and Waveshare SIM7000E Hat
If you can't purchase the GNSS HAT, use an old Android phone and install Termux on it. Then run some bash scripts on the phone that will do the job.

The phone will communicate with your network over wifi, and replaces both the Raspberry PI and the HAT.

z92··on Australian Facebook News Ban Isn’t About Democracy
> continued dominance of facebook in a lot of countries is a bit of an anomaly.

Scaling for cheap is the winning strategy here. Google had its social network before facebook too. Orkut. Didn't scale cheaply. Invite only to limit load.

Facebook could do it. Fast loading pages serving billions. I was trying gab.com recently. Too slow. Too much non responsive. Even after they are trying their best. And even though they make money from premium membership.

z92··on Ask HN: Why aren't you coding?
Prototyping takes less time than writing up the requirement in paper. And customers can give more accurate feedback watching the prototype than reading the docs.

It rarely happens that once a prototype is written, the developer finds out it was all a wastage and the customer wanted something quite different.

Think of the prototype as a Photoshop mock, but interactive like the real application.

z92··on Aerobics instructor appears to capture Myanmar coup in dance video
Coup news takes time to reach the media. If this is not fake more likely this video is from the previous day afternoon, when they raided the parliament.
z92··on Aerobics instructor appears to capture Myanmar coup in dance video
Otherwise she had to place the camera on the road. And road views are fine specially when the background is the White House or the parliament building in this case.
z92··on This is How Google will Collapse (2017)
The site has collapsed, instead.

"Resource Limit Is Reached"

z92··on The M1 MacBook Air is the best computer I've ever owned
This post says how unpredictable it is.

Come on, you can run a linux distribution on a non-apple hardware and not even worry if any of those software will run on it. Plus any of the 40 other top TIOBE tools.

z92··on Termux no longer updated on Google Play
The Google play version was crippled beyond being practical anyway. Can't SMS, can't GPS, no access to address book.

The usable version is from F-Droid. And I had to install that one just to install Termux. No need to root your phone. Simply install F-Droid app store, and install from there.

z92··on Give your Mac imaginary unlimited storage thanks to Disk Utility’s bug
So does Fedora's latest release. zram0 partition. zipped RAM drive. And measuring speed of my /tmp directory, have a feeling it resides on RAM.
z92··on Self-Hosting Still Pays
He did,

Quote :

We are going to say we used four hours of labor. This includes drive time to the primary data center. Since it is far away (18-20 minute drive), we actually did not go there for several quarters. So over 32 months, we had budgeted $640 for remote hands. We effectively either paid $160/ hr or paid less than that even rounding up to four hours.

z92··on Undeleting a file overwritten with mv
Here's the summary on how he did it :

- Search and list all FLV files on the disk.

- Search for all FLV file signatures on raw disk.

- For each known file on the disk, compute md5 of the first 512 bytes.

- For each FLV file signature found on raw disk exclude those that match any of the known files using those md5 values.

- That leads to only 5 files remaining.

- The original file was known to be 1.6 GB. Read 1.8 GB serially from raw disk starting from file signature and save those.

- One of these is your file.

That will work if your file isn't fragmented on the disk, I guess.

z92··on Java is better than C++ for high speed trading systems
When you write Java in a C like syntax : "Chronicle's system is built in what Lawrey describes as "C-like Java" and it's this that he encourages people to code low latency systems in."

I guess very limited number of constructors, and most of all the methods are static.

And they still struggle to find programmers that can code that way.

z92··on Almost 60 percent of business closures are now permanent, new Yelp data shows
Note that it's not 60% of all businesses closing. Rather 60% of businesses that have already closed, won't re-open.
z92··on Don't use third party auth to sign in
You can turn that off by turning off 2 factor authentication, where ever that setting is.
z92··on Indian doctor duped into buying 'Aladdin's lamp' for $41,600
The lamp was sold after demonstrating it really brought out a Genie.
z92··on Google sues me for using the word “droid” in my company name Orpheusdroid
This. Knew there's more to it than what the title implies.
z92··on An earlier universe can still be observed today, says Roger Penrose
No explanation on how "expansion of space" fits with it. Did space expansion reverse and collapse back at one point? To restart their expansion after a new Big Bang?
z92··on Why is there a normal galaxy sitting at the edge of the Universe?
> 547 AU

For comparison Voyager-1 is now at a distance of 40 AU only.

z92··on NASA Funded Scientists Claim Breakthrough in Propellantless Propulsion
Reminds me of the recent EmDrive hype, that didn't go anywhere.
Page 1 of 17Next →