Better HN
topnewbestaskshowjobs
Log inSign up

mekazu

88 karma · joined Dec 9, 2008 (17y ago) · 55 submissions

Submissions

comment 2d ago · link · parent

False dichotomy. The hidden premise is that any of this is necessary.

comment 2d ago · link · parent

Push back. Sure solar and wind isn’t always on but you can still maximise what’s possible and invest and find new ways to make it cheaper. Same with closed loop water. Don’t like data centers being built? Good! Demand more. They should be a net win or not be built at all.

comment 1w ago · link · parent

It’s not working.

What do you mean by not working exactly?

Not sure.

comment 2mo ago · link · parent

It’s probably a delimiter. Or an escape indicator.

comment 1y ago · link · parent

Agree that it’s good to get the certainty of zero memory leaks (assuming there’s no associated bugs in apache) but it’s not that hard to write code that doesn’t cause memory leaks for stateful apps as long as you are able to follow certain simple principles and avoid bugs in the third party libs you use.

comment 3y ago · link · parent

I wonder if the author knows about `watch`. It seems like it might’ve saved some effort with a better outcome.

comment 3y ago · link · parent

This is an great example of how you don’t need fancy graphics for good, playable and engaging games. The music combined with the sound effects works really well too and is very simple.

comment 4y ago · link · parent

But they wouldn’t announce it until it’s pretty much ready.

comment 4y ago · link · parent

Most good software that I can think of has the luxury of being delivered whenever it’s ready. It’s not estimation that improves the quality of the product but good cost/benefit analysis, although you can get one from the other.

comment 6y ago · link · parent

Could use mv -iv for interactive and verbose if you want a rollback or commit alternative.

The real question is: why move files at all?

comment 6y ago · link · parent

I use Perl similarly to awk if I need to use regex rather than white space delimited fields.

I think if you know Perl really well and can remember the command line arguments - particularly -E, -n, -I and -p - then it’s a good swap in substitute for grep, sed, awk, cut, bash, etc when whatever 5 min task you’re working on gets a tiny bit more complex.

Similarly a decent version perl 5 seems to be installed everywhere by default.

I’m curious to know if anyone would say the same about python or any other programs? I’m not particularly strong in short python scripting.

comment 6y ago · link · parent

> Therefore, this line actually says:

    !didIMakeAMistake() || CIsWrongHere();
> If you understand how short-circuit evaluation works, you can understand that this will result in the following:

   if (!didIMakeAMistake()) 
      CIsWrongHere();
Can someone explain this? I’d have thought that was right without the !

comment 6y ago · link · parent

Employees are valued by businesses more for their expertise than for their work. I’d rather have one dev who knows how to solve difficult problems than a hundred who don’t. Roughly.

comment 6y ago · link · parent

I wonder why pg didn’t launch this article on a Tuesday.

comment 7y ago · link · parent

Yeah if the last election result wasn’t a perfect demonstration of voter apathy and disengagement I don’t know what would be. Having said that, that’s just the majority - the rest of us are very engaged I promise! Just uselessly, impotently quiet.

comment 7y ago · link · parent

National security is important, but so is whistleblowing, and the ability for journalists to protect their sources. There’s a trade off here between, and it’s worth looking at this from all angles to ensure that the AFP have the right intentions.

comment 7y ago · link · parent

Sounds similar to P2PE.

comment 7y ago · link · parent

I agree, and I like having those ‘oh wow, I can do that in bash? That’s dangerous, but awesome’ moments just by researching how to get stuff done. Really people don’t know what they’re getting themselves into when they start down the shell scripting path.

comment 7y ago · link · parent

Yeah? I’m off to read some Jane Austen. Seeya!

comment 8y ago · link · parent

Unit tests that don’t read or write to disk and don’t try thousands of repetitions of things should be bleeding fast, but the most useful integration tests that actually help find faults (usually with your assumptions about the associated APIs) often need interaction with your disk or database or external service and tend to take a bit more than a few seconds. I find you need both.

comment 8y ago · link · parent

I kinda like the idea that Americans could be gradually migrated from Imperial to metric by osmosis over the course of a few thousand measurement based scientific articles.

comment 8y ago · link · parent

Plastic is sometimes useful to preserve fresh food to some degree. Without plastic many goods wouldn’t be viable. Would be nice though if at least the necessary plastic was highly recycleable, as well as cost efficient etc.

comment 8y ago · link · parent

Was anybody else thinking these tools would be great for general development and debugging purposes? Anything that uses the network or file system anyway. The fact that they can detect malware reads as just an aside to me.

comment 8y ago · link · parent

Just remember the name XKCD is already taken.

comment 8y ago · link · parent

If only when googling “sql on csv” this comments page would show up first.

comment 8y ago · link · parent

Is this reddit now?

comment 9y ago · link · parent

Many of the comments made here are < 140 chars. Others are more.

comment 9y ago · link · parent

Nope, the company is called shifty jelly. They've still got other iOS apps though so it wouldn't surprise if they were taken down.

comment 9y ago · link · parent

Would it be illegal to write say an excellent grepping or sorting tool that I really want someone to use as part of a criminal activity, even if it had heaps of other uses?
12