News for hackers. Stuff that matters.

hedning

Re:So Long, Macbook. Hello Again, Linux on Thursday January 10, 2019 @03:52PM (#18878010)
gtk supports emacs style bindings. Put `gtk-key-theme-name = Emacs` under `[Settings]` in ~/.config/gtk-3.0/settings.ini. Doing `gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"` might help too. That will work in firefox/chrome too.
Re:Show HN: Next Browser native on Linux on Wednesday December 05, 2018 @01:59PM (#18611309)
When searching using / you don't need the escape part. There's also ' which only searches links.
Re:Firefox 60 released on Wednesday May 09, 2018 @05:41PM (#17034413)
There's about:performance but it's not as full featured as chrome's resource usage view unfortunately.
Re:Smartphone sales fall for the first time, says Gartner on Wednesday February 28, 2018 @07:45AM (#16482594)
Firefox has `media.autoplay.enabled` in about:config, so it's easy to turn it off globally.
Re:Nix 2.0 Released on Friday February 23, 2018 @04:11AM (#16445148)
I guess this is a good place to plug the fairly new bash completion support for Nix (including Nix 2.0)[1]. For those like me who can't stand using a cli without completion.

[1] https://github.com/hedning/nix-bash-completions

Re:A Study of Tabbed Browsing on Friday December 08, 2017 @05:42AM (#15877887)
Ah, that looks promising, though it seems like the web extension uses a download hack to communicate with the backend, requiring you to let firefox download such files by default. They really should use the native messaging api, that would also make it possible to search from within the browser, which is kinda important for a good experience I think.
Re:A CEO's Guide to Emacs (2015) on Wednesday November 22, 2017 @05:58AM (#15755893)
Magit is really amazing. Recently learned that it optionally supports saving changes to git when saving a file or doing some destructive git operation, by using the magit-wip modes. Makes git much safer. https://magit.vc/manual/magit/Wip-Modes.html
Re:Smarter half tiling in Gnome Shell/Mutter on Wednesday October 04, 2017 @07:53AM (#15399808)
It's pretty straightforward to use mutter without gnome-shell, you just have to implement the MetaPluginClass [1], which is what gnome-shell does too here [2]. At that point you can basically just run `meta_init()` and `meta_run()` in main and you're up and going.

[1] Somewhat outdated documentation: https://developer.gnome.org/meta/stable/MetaPlugin.html#Meta...

[2] https://github.com/GNOME/gnome-shell/blob/master/src/gnome-s...

Re:Apple does right by users and advertisers are displeased on Thursday September 21, 2017 @05:16AM (#15301758)
The EU GDPR[1] legislation actually looks good. It includes the right to access your data and the right to be forgotten. It remains to be seen how well it's implemented, but they've really gotten the basics right I think.

1: http://www.eugdpr.org/the-regulation.html

Re:Why I Fell in Love with Arch Linux (2015) on Thursday September 14, 2017 @12:44PM (#15249786)
Yes, with nixos it's easy and _safe_ to install packages from unstable while running a stable system as default (installing stuff never breaks your system).

There's also a fairly new feature called overlays which are used to fully track upstream releases (there's overlays available for rust and Firfox Nightly for instance).

Re:The future of the human-computer interface? on Sunday August 13, 2017 @05:03PM (#15004916)
If sub-vocal recognition [1] (together with suggestions) gets as good as voice recognition I think we could finally have a viable alternative to the keyboard. [1] https://en.m.wikipedia.org/wiki/Subvocal_recognition
Re:The New Firefox and Ridiculous Numbers of Tabs on Saturday July 22, 2017 @11:07AM (#14827545)
You can also configure the character used to search only tabs (I use ",") with "browser.urlbar.restrict.openpage" in about:config.
There's bookmarks and history permissions available: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/ma...
Re:Silicon Valley gets a taste for food on Thursday March 12, 2015 @01:01PM (#9192120)
> Eggs are one of the most efficient sources of protein there is.

Eggs aren't even one of the most efficient animal based sources of protein [1]. When comparing the energy input in terms of fossil fuels against the energy output in terms of protein broilers have a 4:1 ratio, while eggs have a ratio of 40:1. The same value for corn is 2.2:1. (which goes up to 3.1 when accounting for bioavailability).

Looking at total caloric energy input against output isn't any better (worse for the broiler, better for the eggs). We here get a 6:1 conversion factor for eggs, and 9:1 for broilers [2].

[1] Sustainability of meat-based and plant-based diets and the environment: http://ajcn.nutrition.org/content/78/3/660S.full [2] Land, irrigation water, greenhouse gas, and reactive nitrogen burdens of meat, eggs, and dairy production in the United States: http://www.pnas.org/content/111/33/11996/F4.expansion.html

Re:Essential Oils Might Be the New Antibiotics on Thursday February 05, 2015 @10:02PM (#9007557)
But we aren't lacking land to grow food. We have so much of it actually that we use a third of the arable land world wide to grow feed for livestock, (which accounts for 40% all grains grown)[1]. If we just ate this grain instead we could feed 3.5 billions people extra[2].

Cattle (and sheep) are extremely inefficient. We use 60% of all farmland to produce beef, but it only provides us with 2% of all calories (5% of protein)[1]. So, the majority of all pastureland plus a big chunk of the arable land is used to produce 2% of all calories. That's not really much of a resource.

So yes, if we raised cattle purely on pasture (which we don't overall) we could actually get some net production of food. But it would still be an insignificant part of our diet.

[1] Grade A Choice? Solutions for Deforestation-free Meat. Union of Concerned Scientists, 2012: http://www.ucsusa.org/assets/documents/global_warming/Soluti...

[2] Meat and Animal Feed: http://www.globalagriculture.org/report-topics/meat-and-anim...

Re:Drug addiction: The great American relapse on Tuesday November 25, 2014 @10:51AM (#8658168)
I think the public at large thinks heroin is much more dangerous than it actually is. The rate of addiction is about 23%[1], compared to alcohols 15%. You don't get addicted just by shooting up one time. And opiates aren't actually that destructive on the body either, the lifestyle of a junkie is though.

[1]: Comparative Epidemiology of Dependence on Tobacco, Alcohol, Controlled Substances, and Inhalants: Basic Findings From the National Comorbidity Survey (http://www.umbrellasociety.ca/web/files/u1/Comp_epidemiology...)

Re:Vim After 11 Years (2013) on Sunday November 02, 2014 @06:09AM (#8546291)
It's not about speed. It's about finding the vocabulary of vim natural (which it seems you don't, which is fine). 'di(' for instance deletes the inside of parentheses. Which is a natural action to perform, if your cursor is inside parentheses.
I think what a lot of people mean when they say consciousness is "what is being directly experienced" (ie. the experience of ones own existence). Now there's seems to be more restricted definitions around, but this one is to me the most self evident, and useful (and I'm not aware of any other word that does the job, which is kind of mad).
Re:Letter From A Psychopath on Friday December 20, 2013 @11:54PM (#6945821)
> But beyond the terror you could see, there was nothing -- just pure cold and calculating rational self-serving thought.

Apart from his feelings he didn't have feelings? I appreciate you telling your story and I realize you were taken advantage of, and he treated you unquestionably bad, but painting this person as completly unhuman is not very helpful.

It seems to me that the things you describe here is an extreme end of human nature, but in way outside human nature. The best laws of physics are the one that are valid from all perspectives, so it is with the laws of human nature. Having a completly ad-hoc theory for someone elses behaviour is not emphatic or useful.

Re:Basic Income Means Basic Freedom on Sunday December 15, 2013 @10:21PM (#6912600)
As far as I see it. The point is that a big wealth gap is detrimental to a society. Having a good minimum wage is a good way to reduce such a wealth gap.
Re:Basic Income Means Basic Freedom on Sunday December 15, 2013 @10:19PM (#6912582)
Well, if no one would work the unrewarding jobs, and they were needed. The wages for these jobs would go up. As Bertrand Russell said there's two types of jobs. "The first kind is unpleasant and ill paid; the second is pleasant and highly paid". Reversing this might not be the worst thing in the world.
Re:The Price We Pay for Cheap Meat on Tuesday December 10, 2013 @01:39PM (#6882657)
Might be. I was just going off wikipedia, which only noted anything about veganism as a treatment for the cancer. But it sounds like you know more about it than me.
Re:The Price We Pay for Cheap Meat on Tuesday December 10, 2013 @01:03PM (#6882351)
Steve Jobs had cancer for the most of those 10 years. It seems he tried a vegan diet to treat it among other things, that was silly. That does not make him a poster child for vegans, it seems like he wasn't even vegan before the cancer.
Re:You can't beat politics with new technology all the time on Monday November 18, 2013 @09:59AM (#6754554)
It's quite clear he does not think he himself will change everything. He clearly calls out for people to start participating in the political system in a more active way. He also doesn't say that technology doesn't have a place in change. He's saying that a lot of people think that technology on its own will fix things.

Using a war metaphor. Technology is an attack on the rear, politics is a frontal attack. He is merely saying that basing your whole strategy on rear attacks is misplaced.

Not saying anything about the truth of what he's saying, but it's clear that you're misrepresenting him here.

And using Sunde's now quite distant past together with a rather stretched out notion of tax to discredit this message is pretty weird.