HN user

z92

1,606 karma

Contact: habib@habibur.com

Posts12
Comments498
View on HN

Consider keywords :

ফেরত -> উত্তর

ফাং -> কাজ

For hashmap indexes, consider

name["key"]-> name.key

And while initializing

"name" -> "value"

consider syntax

name : "value"

Less typing.

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.

DigitalOcean S-1 5 years ago

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.

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.

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.

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.

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.

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.

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.