HNHacker News
TopNewBestAskShowJobs

lervag

253 karma · joined October 5, 2013

submissionscomments
lervag··on VisiData in 60 Seconds
The more I learn about VisiData, the more I like it! It is a fantastically useful tool!
lervag··on XScreenSaver: On Toolkit Dialogs
Should be tagged (2004) in the title.
lervag··on SSH Keygen – RSA, DSA, Ecdsa, EdDSA
It should be "ssh-keygen", not "ssh".

    ssh-keygen -t ed25519
    ssh-keygen -t rsa -b 4096
lervag··on Scientist Tech Help
https://automeris.io/WebPlotDigitizer/
lervag··on Personal Wiki for Vim
This is a very relevant comment! I think it is very important to lower the barrier between a thought and a note. I personally do this by having a shortcut on my keyboard that immediately opens my index/"scratchpad", which means I'm always ~0.1 seconds from writing down a thought. If I know exactly in which context it belongs, I'll use an fzf backed shortcut to very quickly find the relevant note (e.g. for Python notes I add it to my WIKIPATH/python.wiki).

I actually recommend against putting everything in a diary, because I want my notes regarding a topic to be collected in the same place.

lervag··on Personal Wiki for Vim
I created wiki.vim after having used Vimwiki for some years. I wanted to clean up the code and make it less "bulky" - Vimwiki is a filetype plugin, a wiki linker plugin, a plugin for handling/managing todo lists, and much more. There are a lot of very good Vim plugins for e.g. Markdown filetypes and for todo lists. So, I decided I wanted to simplify and make wiki.vim with a primary focus on the wiki specific features: link and url handling and graph features. I've also included the diary/journal features.

It sort of started as a fork. And at the time, the Vimwiki maintenance was quite inactive and issues were not addressed. I tried to fix things, but the code was quite messy.

lervag··on Show HN: I made a site where students can create and share flashcards and notes
There is also my new toy project, apy [0]. It allows, among other things, to add and modify cards from cli.

[0]: https://github.com/lervag/apy

lervag··on Implementing Function Overloading in Python
Discussed 1 month ago: https://news.ycombinator.com/item?id=22340720
lervag··on Show HN: Timelite, a simple time tracking solution
Do you use Maconomy? If so, we're in the same boat (perhaps even company). Me and a friend wrote a Python script that can automate some of the Maconomy features such as submitting timesheets. I've personally integrated this with my own journal system within Vim. Let me know if you're interested in learning more about it (karl.yngve@lervag.net).
lervag··on Through the snow as if on rails
> First of all, the possibility of ice is obvious. No warning is needed. That is just silly.

Partly correct. Yes, the possibility may be in part obvious by conditions such as temperature. But I think most people who are used to driving on icy conditions can tell you that the ice may still come as a surprise. A system that could _reliably_ warn about slippery conditions would be good.

lervag··on Ask HN: How do you handle/maintain local Python environments?
I've used pew [0] a couple of times, which feels like it works quite well. It is a nice alternative to virtualenvwrapper.

However, my personal struggle with Python projects is when I work on projects that I also use my self on a daily basis. I have a tool that I wrote for automating some administrative stuff at work, and every so often I make some minor fixes and updates. So, I both use it and develop it at the same machine. I've never figured out how to properly do this with a virtualenv. I.e., I want the tool, say "mypytool", to be available and run the most recent version in any shell. At the same time, I would prefer not to install the requirements globally (or for that matter, at the user level). I would love to hear some suggestions on how to solve this use case.

[0]: https://github.com/berdario/pew

lervag··on Pure Bash Bible
I think the idea is that the `:` builtin allows expansion of arguments without actually doing anything else. However, the temporary variable $_ is filled with the content of the expression. That is, after the first

    : "${1#"${1%%[![:space:]]*}"}"
The $_ temporary variable contains the result of removing the leading spaces. In the next line, the spaces at the end are removed from the temporary variable with the "${_%..." syntax.

You can test this in your own shell by e.g. doing:

    : $PATH
    echo $_
lervag··on Unprotected database exposes sensitive data of over 20M Ecuadoreans
According to Wikipedia [0], the population of Ecuador is 16-17 million. Does this database include dear people as well?

[0]: https://en.m.wikipedia.org/wiki/Ecuador

lervag··on Hub: Use GitHub from the Command Line
Or, simpler:

    hub pr checkout 1234
lervag··on Danger: Beware Vlookup Defaults [in Microsoft Excel]
OP here: I'm curious, do anyone know if the VLookup defaults make sense in any kind of way? I was first shocked when I realized this behaviour of VLookup, but then I was thinking that there was perhaps a good (although unclear) reason for it?
lervag··on Simplify Gmail: Bringing the Simplicity of Google Inbox to Gmail
I basically just want a simple app to schedule reminders at given times. I need to add recurring reminders as well.

I liked the simplicity and UI of Todoist, but I had to pay to get the reminder feature. I don't mind paying, but I had no way of testing the feature first.

The main thing that I miss from Inbox (except having everything at the same place) is for the reminders to only show up on the specified time. Ticktick, as many todo apps (all that I've tested) will show me all reminders for a given day.

lervag··on Simplify Gmail: Bringing the Simplicity of Google Inbox to Gmail
I notice a lot of people comment on what they miss from Inbox, and I am very surprised to see that no one has mentioned the reminders. For me, this was the killer feature and the one feature I will miss from Inbox. Being able to combine my email and reminders in the same convenient interface was simply fantastic.

I've now settled on ticktick for handling my reminders, after testing the Google tasks stuff, Todoist, Any.do, and more. It works well, but does not feel nowhere near as smooth as Inbox.

lervag··on Debugging Lisp Part 1: Recompilation (2015)
Discussion from 2015: https://news.ycombinator.com/item?id=9849776
lervag··on Two Photographers Unknowingly Shot the Same Millisecond in Time
Google Chrome thinks this site is dangerous:

    Your connection is not private
    Attackers might be trying to steal your information
    from calculatedimages.blogspot.com (for example,
    passwords, messages, or credit cards). Learn more
    NET::ERR_CERT_AUTHORITY_INVALID
The message details continues to say that

> You cannot visit calculatedimages.blogspot.com right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later.

lervag··on Why I Still Use Vim
Last posted 133 days ago: https://news.ycombinator.com/item?id=15079857

The title should be same as the blog post title: "Why I still use Vim".

lervag··on Concertmaster – Classical music front-end for Spotify
Yes, 1.17.1214. I'm using dunst [0] for notifications. Perhaps dunst is too minimalistic to support the necessary features?

I'll send you an email to follow up on this issue.

[0]: https://github.com/dunst-project/dunst

lervag··on Concertmaster – Classical music front-end for Spotify
I've tried to install this on Arch Linux with the latest version, but I get stuck at the loading screen as others have reported. I would have sent you an email, but I was not able to find your email address. I would be happy to help figure out why it does not work.

I have written a simple PKGBUILD file for installing this on Arch, and I am happy to share that (or upload it to Arch AUR) when I get it to work.

lervag··on Will Democracy Survive Big Data and Artificial Intelligence?
Yes, it's a monarchy, but the king has no real power. Thus this is not a good argument as to why Norway is not a proper democracy.
lervag··on In Norway, everyone can know how much you earn [video]
I think it is important to note that you can only see the amount of tax payed, not the actual income. This obviously correlates with strongly with income, but there are a lot of factors that affect the amount of tax payed. Person A and B with the same income might pay a very different amount of taxes.

As others have also noted, if I wanted to learn the income of a fellow Norwegian, he would be notified that I had requested this info. This prevents a lot of snooping. I would suspect newspapers and magazines to be among those who request income information the most, and then typically they request information about the wealthiest and most powerful.

lervag··on Ask HN: What is the most useful script for your business or startup?
Funny, I do something similar. At my work, I'm supposed to submit a time sheet every week through a web based economy system. The system is both slow and tedious and annoying as things may be, so me and a collegue wrote a python script to submit our time sheets from the command line. I've now coupled this with a personal journal system I use in Vim, so that I can submit my timesheets from within Vim every Friday. Very neat!

The same economy system is also used for project management. I also have a script to download and parse the economy data for a project and present it to me in a meaningful manner, which means I pretty much never have to actually use our internal economy system.

lervag··on Five startups from Norway
> Leveraging the luxury of having a small startup scene — necessarily so, the whole country only has a population of 7m

Not quite: The population is closer to 5,215,000 [0].

[0]: https://en.wikipedia.org/wiki/Demographics_of_Norway

lervag··on Vim-vertical: Get around 2-dimensionally in vim
I find this better solved by vim-columnmove:

https://github.com/machakann/vim-columnmove

lervag··on Google Music removes explore functionality
There was a discussion earlier [0] regarding the new "free, ad-supported radio" [1]. I've used Google Music quite a bit, and I particularly enjoyed the Explore functionality and the ability to see new releases and similar on a sub-genre level.

[0]: https://news.ycombinator.com/item?id=9765841

[1]: http://officialandroid.blogspot.no/2015/06/play-music-ad-sup...

lervag··on An introduction to vimwiki
Link to git repository on github: https://github.com/vimwiki/vimwiki
lervag··on Student invents technology to produce world’s ‘cheapest’ power
If it sounds to good to be true...
← PreviousPage 2 of 2