7,485 karma · joined Mar 14, 2016 (10y ago) · 2,314 submissions
comment 6y ago · link · parent
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
> 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
> 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].
comment 6y ago · link · parent
comment 6y ago · link · parent
> 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
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
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.
comment 6y ago · link · parent
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
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 was looking here: https://en.wikipedia.org/wiki/Non-24-hour_sleep%E2%80%93wake... )
comment 6y ago · link · parent
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
> 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
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
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
> 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
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
> 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
> 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.