Readit News logoReadit News
groks commented on GNU Units   gnu.org/software/units/... · Posted by u/tosh
wscott · 5 years ago
My hp48 calculator had unit conversions built-in. You could add units to any number and then conversions are done automatically when you do math: (1_ft + 1_in) / 20_s + 5_mi/h

if the units don't match then the operation was an error: 1_ft + 1_gal => error

As other people have mentioned I really wish spreadsheets had this built-in where units are like formats for a cell. Ii controls about how you want things displayed and will prevent you from making conversion mistakes or doing illegal operations.

groks · 5 years ago
Emacs has org-mode, and org-mode has tables with formulas which can invoke calc-mode. calc-mode also has units:

https://www.gnu.org/software/emacs/manual/html_node/calc/Uni...

groks commented on Use YouTube to improve your English pronunciation   youglish.com/... · Posted by u/interweb
sandworm101 · 7 years ago
If you want to learn to speak english well, watch those programs that use English properly. Blackadder. Archer. Sherlock. Even some of the marvel movies (GOTG) are very careful in how they pronounce and articulate words. Then watch every Brian Cox and Attenborough documentary. You might come out with a bit of a British accent but that is far far better than any youtube-derived accent. Better you sound like Stirling Archer than [insert random youtube person].
groks · 7 years ago
A bit of Fry and Laurie, on language:

https://www.youtube.com/watch?v=3MWpHQQ-wQg

groks commented on Buying into the Emacs Platform (2018)   two-wrongs.com/why-you-sh... · Posted by u/_pvxk
michaericalribo · 7 years ago
My solution is eyebrowse-mode, which lets you switch quickly between window setups...I never need to recreate an exact layout in the long term, so it’s more than enough to save and switch on the fly
groks · 7 years ago
With the built-in winner-mode you can go back to the previous window layout with C-c left.
groks commented on Command Line, Console and UI Based Open Source Plain Text Accounting   hledger.org... · Posted by u/golanggeek
jdemler · 8 years ago
Probably you should read up or watch some youtube videos on accounting. (H)Ledger is a great tool which allows you to find your solutions to your problems.

If you want an example for standardized structures of accounts take a look at the german "Kontenrahmen" https://de.wikipedia.org/wiki/Kontenrahmen.

Cash can be dealt with in many ways. Some only track the ATM transactions.

Interests are just transactions, too.

HBCI/FinTS is a great way to keep track with your actual bank account.

Usually tax reports only need a few numbers. Write up some script that prints these numbers for your ledger account.

(H)Ledger does not support recurring transactions. But there are a lot of unix tools that do recurring things (cron, systemd-timers).

I would keep ledger files for private and businesspurposes seperate.

Keep in mind, that (H)Ledger is plaintext. Automation is simple. If you want to track expenses on the go, my advise would be to write a Telegram bot.

groks · 8 years ago
> (H)Ledger does not support recurring transactions.

https://www.ledger-cli.org/3.0/doc/ledger3.html#Periodic-Tra...

groks commented on 'Using Emacs' Series   cestlaz.github.io/stories... · Posted by u/rafiei
mycat · 9 years ago
What is the best way to reduce pain from using ctrl with pinky finger? (emacs pinky?)
groks · 9 years ago
Use your thumb.
groks commented on Microsoft’s Surface Pro 5 Said to Move to Intel Kaby Lake Processors   techcrunch.com/2017/04/07... · Posted by u/artsandsci
bratsche · 9 years ago
(Disclaimer: I work for Microsoft)

I have a Surface Book that work gave me. It's quite nice, but I don't really use it all that much because most of my work is on Mac. But I like it quite a lot. If I didn't need a Mac to build iOS apps then I would absolutely consider getting one for personal use. Hardware-wise the only thing that bugs me, personally, is that it can't drive my Dell 5k display. I know, cry a river with my first world problems right? Otherwise I'm happy with the Surface Book hardware.

Ironically, outside of work I've started using my Windows desktop machine more since the Linux subsystem has landed in Windows 10. I've been messing around with some Erlang/Elixir stuff on the side and it's nice on Windows now using Linux subsystem. For a long time now I've been using GNOME and Ubuntu and OSX. I'm still not comfortable using Windows 10 like this yet, but I think it'll get there if I give it some time.

Maybe it's just because I'm a former Ubuntu user (and further disclaimer, I used to work at Canonical).. but I far prefer Ubuntu (or any Linux distro) commandline compared to OSX commandline (hello GNU utilities like sed!), and I far prefer apt-get over homebrew.

The things that I don't feel as comfortable with are basically UI things and application launching. I love Cmd-space to launch stuff on OSX, and hitting the Windows key to search for stuff to launch just feels sluggish in comparison. It's great having bash on Windows, but of course the default Windows terminal application still sucks. There are alternatives like ConEmu, I still need to spend some time trying out some alternatives.

groks · 9 years ago
> The things that I don't feel as comfortable with are basically UI things and application launching. I love Cmd-space to launch stuff on OSX, and hitting the Windows key to search for stuff to launch just feels sluggish in comparison.

In Gnome, Hit the Windows key and start typing 'shortcut' to run the keyboard shortcut editor.

Start typing 'application' to search-ahead-find the 'Show all applications' shortcut and click it.

Press Cmd-space.

groks commented on What makes us Red Hat   redhat.com/en/about/blog/... · Posted by u/swonderl
curt15 · 9 years ago
>The only things I don't like on an out-of-the-box Fedora installation are the stupid, touchscreen sized title bars in GNOME 3 and SELinux - which is fortunately easily disabled.

What does one do to fix the title bars?

groks · 9 years ago

  cat << EOF > ~/.config/gtk-3.0/gtk.css

  /* Make window title bars more compact.
   *
   * From: https://unix.stackexchange.com/questions/276951
   */

  headerbar entry,
  headerbar spinbutton,
  headerbar button,
  headerbar separator {
      margin-top: 2px; /* same as headerbar side padding for nicer proportions */
      margin-bottom: 2px;
  }

  EOF

groks commented on Growing Ubuntu for Cloud and IoT, Rather Than Phone and Convergence   insights.ubuntu.com/2017/... · Posted by u/popey
steveklabnik · 9 years ago
> I wonder what this means for Mir vs Wayland as well.

In my understanding, GNOME Shell doesn't support Mir, only X11 and Wayland, so.

groks commented on My Text Editor Journey: Vim, Spacemacs, Atom and Sublime Text   thume.ca/2017/03/04/my-te... · Posted by u/kot-behemoth
hollerith · 9 years ago
Emacs will respond to a file's being dropped onto its dock icon (and the response can be whatever Lisp code you want) but of course there has to be an Emacs icon in the Dock, which means the Emacs cannot be running "inside" a terminal.
groks · 9 years ago
If you enable server-mode you can run gui emacs to get the icon in the doc and pop up a gui window when you drop something on it, while also connecting in a terminal.
groks commented on Grappling with Go   blog.ntpsec.org/2017/02/0... · Posted by u/dcu
tptacek · 9 years ago
They started with Mills ntpd, so there have been downloads available since t0. There's a significant amount of code you can lose from a large C project just by getting rid of ifdefs that nobody uses, so the +/- line count isn't a great metric either.

The true metric for success for something like ntpsec is the number of meaningful security problems ntpd has been vulnerable to since ntpsec's inception that ntpsec hasn't been.

At the point where they rewrite in a new language, they're embarking on a fundamentally different project with a different value proposition, which sort of moots the progress they've made (or not made) on hardening ntpd.

(Fair warning: I am both an ESR skeptic and an ntpsec skeptic; I genuinely do not like the idea behind the ntpsec project).

groks · 9 years ago
> The true metric for success for something like ntpsec is the number of meaningful security problems ntpd has been vulnerable to since ntpsec's inception that ntpsec hasn't been.

They talk about 3 areas where bugs have been removed, including:

  Much of ntpd’s most convoluted code lives in ntp_proto.c, which
  implements the state machine central to the protocol. Of the 29
  vulnerabilities that have received CVEs so far in 2016, a couple
  of multi-KLOC functions in ntp_proto.c are responsible for 15 of
  them — just over half. Of course, "just rip it out" wouldn’t
  suffice in this case: this is core business logic, not junk code.
  So we rewrote those functions from scratch, cutting line count
  considerably and yielding a far more readable result.
https://blog.ntpsec.org/2016/12/13/fantastic-bugs-and-where-...

The other two areas are guaranteed bug-free because they removed the code.

u/groks

KarmaCake day269May 28, 2010View Original