Better HN
topnewbestaskshowjobs
Log inSign up

bArray

7,485 karma · joined Mar 14, 2016 (10y ago) · 2,314 submissions

Why jump in one pond when you can dip your foot in many?
Submissions

comment 6y ago · link · parent

> Master should always be in a deployable state.

I think the head of master should always be deploy-able, but ultimately it seems better to make use of tagging of specific hashes which realize some degree of reliability for field use.

Obviously you have your unit tests and other kinds of tests, but ultimately nothing beats just using it. If it "feels" reliable (which can be hard to quantify sometimes) or has proven itself (you've been using it without issue for some time), then it's probably worth tagging for that fact.

> Incomplete features that will take more than a week or so

> to develop should be merged to master early protected by

> feature flags. This avoids long running branches.

I prefer to properly scope the time/effort required to complete a feature, rather than having massive features. If a feature is taking more than a few weeks to bring into fruition (assuming ~1 dev per branch), then it's probably too large of a feature and needs to be broken down. A properly sized feature should probably fit within a sprint cycle.

comment 6y ago · link · parent

> Squashing that history of 25 commits, will create one giant

> commit of 1500 changes. Have fun finding where in those

> 1500 changes that little nasty bug was introduced!

100% agree, the only purpose of this is to make "pretty graphs" at the cost of destroying the history of the code changes.

I prefer to write small commits with simple messages that explain exactly what that change does. Sometimes it costs some time in Git Gui selecting the lines that make up the commit, but ultimately it's worth it.

comment 6y ago · link · parent

How seriously should this be taken? It doesn't feel as if we're much closer than we have been?

comment 6y ago · link · parent

> Is there some reason why an introduction to SerenityOS GUI

> programming cannot also be an introduction to SerenityOS

> programming as a whole?

It could be, but it's vague. The original title was very much to the point, I don't understand why 'GUI' was dropped.

comment 6y ago · link · parent

Please update the title to include GUI, i.e. "Introduction to SerenityOS GUI programming".

comment 6y ago · link · parent

From the guidelines [1]:

> On-Topic: Anything that good hackers would find

> interesting. That includes more than hacking and startups.

> If you had to reduce it to a sentence, the answer might be:

> anything that gratifies one's intellectual curiosity.

Hackers _are_ interested in this story for many reasons. People re-hashing positions you happen to find boring is not a good measurement of what should stay or not.

I still don't understand why this was manually pulled from the front page.

> Otherwise, racism, climate change, healthy diet, etc.

> would have to be guaranteed constant front page placement.

They do occasionally end up on the front page when people find the topics interesting. For example this study on "night owls" [2].

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

[2] https://news.ycombinator.com/item?id=22413676

comment 6y ago · link · parent

This is now manually removed from the front page...

comment 6y ago · link · parent

Other discussion here: https://news.ycombinator.com/item?id=22471698

comment 6y ago · link · parent

Surely it's for each person to decide whether they want to engage in the stories?

This blog is interesting (at least to me) because the guy is actually reporting first-hand from the court that will decide his fate.

comment 6y ago · link · parent

I had to "vouch" for the article, no idea why it got flagged off of the front page. I read back through the guidelines and I'm pretty sure this is a useful and insightful article for the community [1].

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

comment 6y ago · link · parent

> I'm trying to imagine a need for something like this, and

> maybe I'm not imaginative enough, but I can't figure out

> why such awful conditions were built in the first place.

For somebody who is a high escape, high assassination or generally high risk. Somebody with enough money for example could arrange for an escape attempt at the court itself.

Unfortunately it's also used for anybody who acts "against the state", i.e. whistleblowers. Such cases do not occur without consent from high levels of government.

comment 6y ago · link · parent

> Perhaps because he has a history of trying to escape the

> law?

I don't think that warrants him being treated like a terrorist, even if you believe he has a high chance of fleeing.

comment 6y ago · link · parent

Yet again, the British courts acting illegally as it suites them. I am pretty sure that Assange's trial already has a written ending.

Why, for example, is he even being held in prison? He's innocent until proven guilty, even by the law of the land. Instead he is held in maximum security reserved for the worst of criminals.

comment 6y ago · link · parent

Is the back-end of WhatsApp like the back-end of the Facebook and Messenger apps? I.e. loads of teams, lots of redundant code, massive attack surface, constantly breaking, etc?

comment 6y ago · link · parent

Surely if you know that the hashes will have an ~even distribution you can quite quickly make some assumptions about roughly where the key will be?

I'm not entirely sure I'm sold on the speed gained by splitting files vs doing a simple seek operation to an offset [1]. There's probably a bunch of time lost searching the filesystem through a file/folder structure?

Also the simple act of converting the numbers from ASCII to binary should save a bunch of disk space too (and make searching quicker)?

Great write-up though, good to see a bunch of solutions tried.

[1] http://www.cplusplus.com/reference/cstdio/fseek/

comment 6y ago · link · parent

If anybody else is using a similar method, I think it's also good to encrypt the backups:

    tar -zcv <SRC_BACKUP> | gpg -c --batch --passphrase <PASSWORD> -o <DEST_BACKUP>.gz.gpg
In my experience the encryption part doesn't add any extra time on a modern machine, with the spinning disk being the slowest cog.

comment 6y ago · link · parent

Yep I fully agree, you can't hold others to a standard you're not willing to hold yourself to. I specifically remember Microsoft begging for more time on a bug.

Also if I understood it correctly, it seems as though some devices may require a factory reset to apply the new firmware? If so, for a lot of devices this still isn't fixed.

comment 6y ago · link · parent

I'm unsure, I certainly show the symptoms, but never got myself diagnosed as I was investigating the possibility of a military career. Thinking about it, quite a few of my family members also have ADHD.

comment 6y ago · link · parent

Woah, thanks for the heads up, I had no idea. I'm relatively lucky (at least so far) not to suffer effects of sleep deprivation.

(I was looking here: https://en.wikipedia.org/wiki/Non-24-hour_sleep%E2%80%93wake... )

comment 6y ago · link · parent

Huh, I always woundered why I live a 28-30 hour day. My sleep schedule continuously drifts as a result - luckily I live a lifestyle where it's possible to get away with this.

I did used to do a 9-to-5, but what ended up happening was that I slept less and struggled to keep in control over the weekends. Luckily the people I live with would wake me up (just by carrying out their own routines).

These days I typically sleep ~4 hours a night to keep some osrt of schedule. As others have mentioned, diet, exercise, etc, etc, no change seems to break this habit. To the surprise of many, I am also able to remain productive for all but a few of the last hours - some days I have commit streaks spanning something like 18 hours.

comment 6y ago · link · parent

> Why isn't this being solved on an operating system level

> instead?

It probably should be, but the undertaking is massive (cross platform) and browsers want a quick turn around. A lot of people would think that VPNs solve such issues, but it just pushes the problem further up the network.

In my opinion Linux would be a good candidate for such an initial implementation - but you wouldn't pick DoH, you would likely offer DNSCrypt or DoT.

comment 6y ago · link · parent

I wounder what would need to be done in order for a computer to still work that far out?

Even removing every single point of failure, statistically the other components would still fail over time.

I think whichever system you build, it would somehow need to be self-repairing.

comment 6y ago · link · parent

Shameless plug for a similar endeavor, but for low end embedded devices that need small vector icons and font: https://github.com/danielbarry/pt-draw/tree/feature/basic-ic...

It's currently a work in progress, but the intention is to develop this for drawing simple vector graphics to the Pine Time: https://wiki.pine64.org/index.php/PineTime

comment 6y ago · link · parent

> Now-a-days converters are built intelligently & removing it

> just reduces performance by fucking up the O2 sensor

> readings unless you also dump a grand on a new ECU

You can also get a piggy-back ECU for the purpose of sending false sensor data - it's quite a bit cheaper.

comment 6y ago · link · parent

> This is how the hybrid car was born.

Yes :) We were quite amused to have had the idea a few years before it's popularization!

comment 6y ago · link · parent

I should probably add, at one time I had a throw-away car, it cost <£100, it's scrap value was £100+ and at the time the MOT and tax was registered to the car itself and it had a few months left of road-legal use.

Before scrapping it I decided to drive it around as a "risk free" car. The exhaust fell off (so not even a straight pipe), the battery was dead (had to push start it everywhere), the clutch was teetering on death, brakes were merely a suggestion to your speed (it had drums), the radiator leaked, the oil was probably as old as the car, tires were barely legal and it had no working headlight bulbs.

We ripped out all of seats, removed the air filter, filled the tank with contaminated petrol (had diesel in it - added a small amount of nitro-car fuel to balance it out) and drove it very hard.

I ended up using it for quick 20 minute journeys (that's about how long it took for all the coolant to leak out). We would leave it unlocked with the keys in the ignition - I think it was more hassle to whoever tried to steal it. The car survived long enough to drive itself onto the back of a flat-bed lorry to be taken to the scrap dealers once the MOT and tax ran out.

This is not uncommon either, many people get "traders plates" just so that they can drive barely legal cars around before getting rid of them.

comment 6y ago · link · parent

> Good god... Who the hell does that? What ricer would

> willingly risk killing their motor from eating some leaves

> (or a piece of gravel!) for a minuscule performance

> increase? The risk:reward scale there is just bananas.

A lot of people do it. In the UK you've also got tonnes of rain regularly too, meaning all sorts of crap is sprayed into the engine bay area, both dry and wet.

The performance gain is surprisingly high given how simple the action is, the throttle becomes more responsive and you can audibly hear the engine taking gulps of air. Of course that comes with the associated risk. If you're a student with a £300 car and you want to pretend it's a race car, little tricks like this cost nothing for a little speed boost.

comment 6y ago · link · parent

> A shop replaced my failed catalytic converter ($1200+

> replacement) with a straight pipe ($20 pipe and $200 of

> time) many years ago because they (correctly) assessed me

> to be a broke-ass student who wouldn't tell on them.

The mechanic may have even made even more money by scrapping your catalytic converter.

In the UK, swapping the exhaust out for a straight pipe is a common (illegal) modification for greater performance and sound. To get the car through the MOT, you either need to find somebody willing to "look the other way" or re-weld the original exhaust in place.

I've seen in many scenarios "boy racers" dipping the clutch and coasting the car by the police. If your car is making a sound resembling a Spitfire you're sure to get pulled over, where they'll use a road side test kit and confiscate your car.

Some other popular cheap modifications include completely removing the air-filter (dangerous), stretching tires to create low-profile wheels (extremely dangerous if they let go [0]), putting the car on a diet (ripping out all interior, seats, etc), running contaminated fuel (either diesel/petrol mixes [1] or running farmer's diesel) - the list goes on.

There are also some processes for purposely causing the car to backfire regularly (especially on a down change, with quite large flames) and getting more "bang" from the fuel. At one point we were also experimenting with the idea of using the starter motor strategically to aid engine acceleration - but nothing ever came of it.

[0] We had a car crash on the motorway into the central barrier, which then caused all of the tires to instantly disintegrate - all at ~90 mph (~145 kph).

[1] We once had a vehicle literally explode when unburned fuel collected in the catalytic converter/exhaust and suddenly decide it wanted to be on fire. This in itself wouldn't have been an issue if a) somebody noticed and b) it didn't then ignite the fuel lines.

comment 6y ago · link · parent

I think the nicest part of this is for people to be able to poke at and inspect every part of the code - very cool. Normally these things are hidden in large loops! Here you can tug on a single thread and follow it through.

comment 6y ago · link · parent

> I actually still like the smell to this day.

Air-conditioning units with ionizers generate ozone, it's why they smell sweet.

P.S. Ozone is meant to be pretty bad for you.

1
535455
78