News for hackers. Stuff that matters.

mbudde

Re:Intermediate Vim on Wednesday May 01, 2019 @06:56AM (#19795981)
You can also visual select all the lines and then do

  :'<,'>norm @x
Re:Amp – A complete text editor for the terminal on Thursday November 22, 2018 @03:30AM (#18508667)
This plugin is working quite well for me: https://github.com/justinmk/vim-sneak
Maps.me, which also uses OpenStreetMap data, can show live traffic info. Not sure where they get the data from or whether it's accurate.
Re:Key Git Concepts Explained the Hard Way on Thursday March 15, 2018 @03:17AM (#16590972)

    git ls-files --others --ignored --exclude-standard
Or if you want to see files ignored by a specific .gitignore:

    git ls-files --others --ignored --exclude-file=<file>
There's also

    git status --ignored
if you just want a quick view of the ignored files (i.e. not for scripting).
Re:Things I Wish I'd Known About Bash on Saturday January 06, 2018 @11:13AM (#16085845)

    ${name%.*.*}   polish.ostrich
    ${name#*.*.}                  racing.champion
Re:URL to PDF Microservice on Friday October 06, 2017 @01:56AM (#15414731)
Re:Localizing “Papers, Please” (2014) on Sunday June 25, 2017 @03:42AM (#14629052)
This is why gettext supports using a "message context" to differentiate identical phrases when looking up translations: http://pology.nedohodnik.net/doc/user/en_US/ch-poformat.html (section 2.2.2)
Not that it makes the practice any better but the bottom navigation bar is in fact part of Material Design: https://material.io/guidelines/components/bottom-navigation..... It is also used in Google+ and Google Photos. The bottom-nav-vs-no-bottom-nav design trend seems to reverse frequently though. The bottom bar will probably be removed again in a year or two.
Re:A deep dive into APL on Tuesday March 28, 2017 @12:54PM (#13978279)
Take a look at this explanation on the APL wiki: http://aplwiki.com/GameOfLife
Fermat's Library is not only for math, it has a few CS papers already, for instance http://fermatslibrary.com/s/bitcoin. If there is a particular paper you would like to be annotated, you can suggest it and maybe you'll get lucky :)
Re:Firefox Now Offers a More Private Browsing Experience on Thursday November 05, 2015 @05:36PM (#10516631)
A new version (0.15.20150902901) of TreeStyleTabs has been released that works with Firefox 42, but it will not automatically update so you need to install it from [1]. See also [2].

[1] https://addons.mozilla.org/en-US/firefox/addon/tree-style-ta...

[2] https://github.com/piroor/treestyletab/issues/973

Re:Remarkable – a JavaScript Markdown and Commonmark parser on Sunday October 26, 2014 @08:56AM (#8510908)
In Danish (and probably others) "paragraph" ("paragraf") usually refers to a section of a law text and uses the "§" symbol.
Re:Using GNU Stow to manage your dotfiles on Tuesday October 21, 2014 @03:48PM (#8489445)
I have very similar setup to yours, but my solution is to use a bare repository. To set up dotfiles on a new computer is just

    $ git clone --bare [email protected]:mbudde/homedir.git .homegit
    $ git --git-dir=.homegit --work-tree=~ checkout -f    # Overwrite existing files
    $ echo '*' >> .homegit/info/exclude
And then I have a simple git wrapper script [1]. I moved from using an alias to a script for some reason I can't remember (and of cause I didn't write it in the commit message -_-).

[1] https://github.com/mbudde/homedir/blob/master/usr/bin/hgit

Re:Servo: Inside Mozilla's mission to reinvent the web browser on Wednesday February 26, 2014 @03:40AM (#7303719)
A javascript version of Nem-ID is planned for release in 2014 [1].

[1]: http://www.nets.eu/dk-da/Produkter/Sikkerhed/NemID-tjenesteu...

Re:Show HN: Use your phone to present slides on any screen on Sunday March 24, 2013 @08:02AM (#5431815)
It doesn't seem to work in Firefox for Android. I scan the QR code and the page says I'm connected but when I click "Try Uslide Demo" nothing happens.
Re:Life ToDo on Friday January 11, 2013 @02:57PM (#5044630)
Re:Hazel for hackers on Sunday December 16, 2012 @01:54PM (#4929140)
There's this example from the README which seems to do what you are asking for:

    Maid.rules do
      rule 'Old files downloaded while developing/testing' do
        dir('~/Downloads/*').each do |path|
          if downloaded_from(path).any? {|u| u.match 'http://localhost'} && 1.week.since?(last_accessed(path))
            trash(path)
          end
        end
      end
    end
Yes, it has both biking and walking directions.
Re:Vim: Buffers, Windows, and Tabs on Saturday June 09, 2012 @04:48AM (#4087637)
You can if you enable the 'hidden' option.
Sounds much like SparkeShare which also uses Git as a backend but is written in C#/Mono:

http://sparkleshare.org

https://github.com/hbons/SparkleShare

Re:A Collection of Useful .gitignore Templates on Sunday November 21, 2010 @12:23PM (#1927367)
You can, you just need to use ``git add -f`` otherwise you get an error.