Better HN
topnewbestaskshowjobs
Log inSign up

z92

1,606 karma · joined Apr 8, 2010 (16y ago) · 533 submissions

Contact: habib@habibur.com
Submissions

comment 5y ago · link · parent

Checked Zig. Doesn't have a memory manager. It's "free all at program termination" or manually manage memory like C.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Too large a company. Their cross-team is like other's cross-company.

comment 5y ago · link · parent

Consider keywords :

ফেরত -> উত্তর

ফাং -> কাজ

For hashmap indexes, consider

name["key"]-> name.key

And while initializing

"name" -> "value"

consider syntax

name : "value"

Less typing.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Gab is like Facebook. Parler like twitter.

comment 5y ago · link · parent

Do it for all the selected lines, when multiple lines have been selected and tab pressed.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Parse your server's access log file. The way it had been done for decades. "Analog" was popular then, Should be better options now.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

> 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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

The site has collapsed, instead.

"Resource Limit Is Reached"

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

Note that it's not 60% of all businesses closing. Rather 60% of businesses that have already closed, won't re-open.

comment 6y ago · link · parent

You can turn that off by turning off 2 factor authentication, where ever that setting is.

comment 6y ago · link · parent

The lamp was sold after demonstrating it really brought out a Genie.

27.

Fedora 33 released with Btrfs, nano and zRAM as default(itsfoss.com ↗)

2 points · by z92 · 6y ago · discuss

comment 6y ago · link · parent

This. Knew there's more to it than what the title implies.

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

> 547 AU

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

12345
18