Better HN
topnewbestaskshowjobs
Log inSign up

beefield

3,780 karma · joined Jan 6, 2015 (11y ago) · 1,206 submissions

Submissions

comment 7y ago · link · parent

> Every script should leave the database in either the new state or the previous good state no matter how many times it's run.

I wonder if there were somewhere a website to describe good idioms to achieve this?

comment 7y ago · link · parent

> My cries to use git were unheeded (would have required upskilling everyone on the team).

What is the best practice workflow using git with SQL server views/procedures? Can you actually somehow track changes in the views/procs themselves so that if someone happens to run ALTER VIEW, git diff is going to show something?

comment 7y ago · link · parent

> Is there a tax on cash or something.

Something. It is far from trivial to store significant amounts of cash. If it gets stolen, lost or destroyed, you basically have lost your money. Also, significant amounts of cash are not that liquid anymore. It takes time to get that from your vault and deposit that to a bank. Cash is just a pain in the ass in many ways.

comment 7y ago · link · parent

>I find it hard to see how a company will be able to have enough capacity for peak demand

I would guess that in most cities the capacity is not limited by capital to buy cars, but capacity of the street network, which cars, autonomous or not, are notoriously bad at utilizing.

comment 7y ago · link · parent

It has been tried in the world history many times and is currently being tried in some parts of Somalia. Most of people do not prefer that, so if you do, maybe you should move there?

My guess is that we are about to see "No True Scotsman" very soon after I post this.

comment 7y ago · link · parent

> It will leave 17m people in an absolute rage, and they have already murdered one MP. It'll get worse.

So, the decision making is kept as hostage by 17m angry people who won't accept that their side winning was based on pretty much fraudulent arguments? Maybe, just maybe, it could be in the long run worth paying the price of their anger and show that the modern democratic society has some backbone against these kind of people?

comment 7y ago · link · parent

I think the issue is that once you have had a referendum with outright dishonest arguments and likely manipulated by foreign states and one side wins by a couple of perentage points, the outcome is ironclad will of the people and even if these dishonest arguments turn out to be to many people's surprise wrong, it will not change what is the will of the people. Vice versa, any notion of asking people what they like about the actual outcome is considered pretty much hostile against democracy. Or something like that. I really can't claim to understand the argument properly.

comment 7y ago · link · parent

Real problems like how to get people click more ads and how to create useless cryptocurrencies that lots of great (and arguably not so great) minds seem to be nowadays primarily occupied with?

(Yep, loads of sarcasm here)

comment 7y ago · link · parent

Just thinking that a success in that might be more likely if the plan did not include giving seigniorage from the state (i.e. people) to a bunch of cryptonerds. Also, a monetary policy not from medieval times might help.

comment 7y ago · link · parent

> Sweden’s too egalitarian society

Any examples of societies that are unequal[1] enough for you?

[1] Not sure about a proper antonym here.

comment 7y ago · link · parent

I'd like to have an app that creates virtual android environments that I can run my apps in. And the possibility to spoof the sensor data for the environment with configurable profiles. Like "rich geek in Silicon Valley traveling occasionally to Caribbean" or maybe "suburban middleclass housewife in Florida".

comment 7y ago · link · parent

Sorry, I am confused. In your comment you said that in case of ssh there are several EXAMPLES or USAGES sections. Well, in my case I find exactly zero instances regardless what kind of key combo from your comment I use.

If you instead meant that e.g. TCP FORWARDING or X11 FORWARDING are such sections that explain use cases, well, in that case I still fail to find a section that would describe simple use case of just connecting to a host.

comment 7y ago · link · parent

Sorry, in my Ubuntu 18.04 "man ssh" produces output that does not have either EXAMPLES or USAGE. /^E takes me to ENVIRONMENT instrad of EXAMPLES.

comment 7y ago · link · parent

My usage of manpages would increase by orders of magnitude if I knew there were examples of actual working commands in the first page. Most of the time I am not looking for an obscure parameter, but my brain just has failed to take a note of the basic syntax of the command. So why not start ssh manpage with two simple examples, how to connect to a host with username and ssh key:

ssh user@example.com

ssh -i ~/.ssh/id_rsa user@example.com

comment 7y ago · link · parent

> I wonder if you have to a certain level of insanity for doing something like this.

My assumption is that people want and need some level of "excitement"[1] to feel like living a meaningful life. Say, in scale 1-10, if you only get exposure to level 1 excitement, you kill yourself to avoid a boring life, occasional level 5 keeps your life interesting, 7-8 starts to be so uncomfortable that you rather avoid and 10 is so much that you rather kill yourself than expose yourself to this level of excitement.

Now, the problem is that same things give very different levels of excitement. There are people for whom game of Monopoly is level 5 excitement. And there are people for whom game of Monopoly is solid level 1 excitement.

With this model you see why some people decide to take risks some other find outright stupid or insane. So next time you think someone is doing something insanely risky, you might want to think how fulfilling your life would be if the things you do to get emotions would be stripped from you before calling the persons with pejorative adjectives...

[1]no, I have no good definition for this word

comment 7y ago · link · parent

Well, my personal rule is to never touch csv with excel, because depending on the locales, most of the time excel breaks something in the file. (Of course, in theory I might make a flawless data type mapping when importing the file to excel, but unfortunately that happening is quite rare...)

comment 7y ago · link · parent

> Even if there were no safety or environmental regulations at all, you still couldn't get there

I am not so sure. I mean, if you really do not have to care about safety and waste, how expensive it can be to dig up uranium, centrifuge it for enrichment and mold it to a shape that heats stuff around it?

768.

The fight to keep ideas open to all(economist.com ↗)

2 points · by beefield · 7y ago · discuss

comment 7y ago · link · parent

> I think everyone can agree that cryptocurrency got way ahead of itself but HN almost seems Luddite in it's treatment of the underlying technology to the point that we are going to have our own "No wireless. Less space than a nomad. Lame." moment that people will link to for years to come.

Well, as long as the underlying monetary policy of the cryptocurrencies is well tried and failed directly from the medieval times, I would personally:

1. Be quite careful who I blame being luddites. 2. Not holding my breath waiting for any kind of success as a currency.

comment 7y ago · link · parent

Funny. I have been able to send money cross-border relatively cheaply and relatively fast for quite some time. So yes, obviously I see value in that. But actually it has never been any kind of issue that would have even crossed my mind that it would need some fancy new solutions to enable me to do that. Would you be willing to share some more details on which kind of money transactions this is an actual unsolved problem? Where from/to are you trying to transfer the money and what are you buying/selling with that money?

comment 8y ago · link · parent

How about the types of products that can't be stored in a secure package from producer to consumer through the supply chain but need somehow be processed within the supply chain? You know, at least something like 99.9999% of the products...

comment 8y ago · link · parent

Sorry, should have made it clear that my comment was sarcastic.

comment 8y ago · link · parent

But... all these gallons are much more easy to relate to than a standard metric liter, thus making all of them superior. If you do not believe me, ask Nassim Nicholas Taleb[1].

[1] https://www.google.com/search?hl=en&q=metric%20system%20tale...

comment 8y ago · link · parent

I have this hypothesis - which admittably is very weak on evidence and very weak on political correctness - that it is kind of a self-enforcing process.

First, people with less cognitive capabilities seem to be inclined into conservatism and prejudice.[1]

Now, how do you make people's cognitive capabilities less?

You make people poor.[2]

Second, you can make people conservative by making them scared [3]

So you being a conservative politician and wanting to get more votes, you make people poor and scared and you get more votes. And the problem is, it is much easier to make people poor and scared than wealthy and feeling safe.

[1] https://www.livescience.com/18132-intelligence-social-conser...

[2] https://www.reuters.com/article/us-poverty-brain/study-finds...

[3] https://mic.com/articles/26911/people-who-are-fearful-tend-t...

comment 8y ago · link · parent

> I do have a Thinkpad (running NixOS), however the battery life sucks.

Do you have tlp set up?

https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-ma...

comment 8y ago · link · parent

Did I understand correctly that basically air speed sensor was faulty and because of that the autopilot decided that we need more speed to avoid stall and put the nose down all the way to the ground/sea?

comment 8y ago · link · parent

> why the fuck are you bothering me with this?

Handling cash is a hassle in many ways:

1. It's slow. Obviously it is not slow in the best case when the customer throws in the exact change, but it is _really_ slow in the probably more typical case when the drunkard is at the counter and starts to dig into the pockets and find out if he has enough coins or when the seventh customer in the row wants to pay his ten cent lollipop with a hundred dollar bill and you run out of change.

2. It ties capital to keep sufficient amount of change in all of the booths.

3. It is difficult/expensive to manage securely and safely. You need to figure out how to stop personnel and other people stealing the money. Also your personnel likely feels more safe when they know that nobody can think that hey can come and try to steal money from you because you simply have none.

comment 8y ago · link · parent

Do I calculate right that plain water stores energy around 0.2 MJ/kg when heated by 50 degrees celsius? (Specific heat is 4 J/gK) If I am right, ot feels like it would likely be cheaper to just make seasonal heat storages with water.

comment 8y ago · link · parent

Government intervention. Not good. Much better would be letting free markets to allocate more resources to figure out how to get people clicking more ads and development of cryptocurrencies.

(This was sarcasm.)

1
252627
41