News for hackers. Stuff that matters.

groks

Re:GNU Units on Wednesday January 06, 2021 @12:52PM (#25660227)
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...

Re:Use YouTube to improve your English pronunciation on Wednesday June 19, 2019 @07:23PM (#20228339)
A bit of Fry and Laurie, on language:

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

Re:Buying into the Emacs Platform (2018) on Friday June 14, 2019 @02:25PM (#20185373)
With the built-in winner-mode you can go back to the previous window layout with C-c left.
> (H)Ledger does not support recurring transactions.

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

Re:'Using Emacs' Series on Saturday July 29, 2017 @05:33AM (#14880385)
Use your thumb.
> 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.

Re:What makes us Red Hat on Wednesday April 05, 2017 @04:22PM (#14045276)

  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
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.
Re:Grappling with Go on Wednesday February 08, 2017 @02:10PM (#13601069)
> 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.

Re:25% of CEOs’ Time Is Spent on Tasks Machines Could Do on Tuesday February 07, 2017 @07:23PM (#13594433)
We've already got virtual pop stars. Why not a virtual CEO?

https://arstechnica.com/the-multiverse/2016/04/waving-glow-s...

RIM had a par of co-CEOs. Why not buy one CEO from IBM, and hire another to play golf?

Re:The Many, the Humble, the Ubuntu Users on Friday January 20, 2017 @11:19AM (#13444824)
> it lacks several packages that I use (Kodi comes to mind

    $ dnf search kodi
    kodi.x86_64 : Media center
    ...
> They also changed the package manager from Yum, so a lot of new things to learn since I last used 17

    $ yum search kodi
    Redirecting to '/usr/bin/dnf search kodi' (see 'man yum2dnf')

    kodi.x86_64 : Media center
    ...
Re:YouTube no longer supports 4K video playback in Safari on Sunday January 15, 2017 @11:04AM (#13404553)

    $ youtube-dl --list-formats https://www.youtube.com/watch?v=DeJLzyxZqbk | grep '[0-9]x[0-9]'
    278          webm       256x144    DASH video   93k , webm container, vp9, 24fps, video only, 1.09MiB
    242          webm       426x240    DASH video  110k , vp9, 24fps, video only, 1.00MiB
    160          mp4        256x144    DASH video  113k , avc1.4d400c, 24fps, video only, 1.41MiB
    243          webm       640x360    DASH video  196k , vp9, 24fps, video only, 1.83MiB
    133          mp4        426x240    DASH video  247k , avc1.4d4015, 24fps, video only, 3.08MiB
    134          mp4        640x360    DASH video  263k , avc1.4d401e, 24fps, video only, 2.95MiB
    244          webm       854x480    DASH video  322k , vp9, 24fps, video only, 3.11MiB
    135          mp4        854x480    DASH video  554k , avc1.4d401e, 24fps, video only, 6.30MiB
    247          webm       1280x720   DASH video  714k , vp9, 24fps, video only, 7.48MiB
    136          mp4        1280x720   DASH video 1127k , avc1.4d401f, 24fps, video only, 12.92MiB
    248          webm       1920x1080  DASH video 1579k , vp9, 24fps, video only, 17.86MiB
    137          mp4        1920x1080  DASH video 2304k , avc1.640028, 24fps, video only, 27.09MiB
    17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
    36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
    18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
    43           webm       640x360    medium , vp8.0,  vorbis@128k
    22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)
Re:How (Not?) to Use Python’s List Comprehensions on Sunday January 01, 2017 @08:10PM (#13298422)
You might enjoy Peter Norvig teaching you this technique which he uses to solve the Zebra Puzzle in lesson 2 of CS212:

https://classroom.udacity.com/courses/cs212/lessons/48632874...

Re:Darktable 2.2.0 released on Tuesday December 27, 2016 @08:28AM (#13262993)
As a quick guide to trying it for yourself (it's cross-platform, free software) have a look at these videos:

https://www.youtube.com/user/harrydurgin/videos

He has the topics and modules covered in each video cross-referenced over at his website:

http://weeklyedit.com/

You're bound to find something useful.

They're available under the OFA license. They're already shipped with Linux, eg. here:

https://admin.fedoraproject.org/pkgdb/package/rpms/fontaweso...

Re:Show HN: Storing your bookmarks under revision control on Sunday November 27, 2016 @02:37PM (#13050970)
Use a bookmarklet and org-protocol to trigger an org-capture template:

https://stackoverflow.com/questions/7464951/how-to-make-org-...

You can make the bookmarklet pass along extra info on certain pages, eg. gmail and have a capture template match it - handy for TODOs with deadlines that link back to emails.

Use emacsclient on the server to trigger emacs on your desktop to edit your mail message:

  https://andy.wordpress.com/2013/01/03/automatic-emacsclient/
Re:Org mode 9.0 released on Thursday November 03, 2016 @12:38PM (#12865519)
Re:Soylent Coffee: Nootropics, fat, carbs, protein on Tuesday August 09, 2016 @04:03PM (#12257342)
Stew.
Re:Bubblewrap: Unprivileged sandboxing tool on Tuesday August 09, 2016 @02:32PM (#12256769)
I agree, the tool is (currently) poorly documented. I would have appreciated something like this:

    bwrap --ro-bind / / id

    bwrap --ro-bind /usr /usr \
          --ro-bind /lib64 /lib64 \
          id

    bwrap --ro-bind /usr/bin/ps /usr/bin/ps \
          --ro-bind /lib64 /lib64 \
          --proc /proc \
          ps -x

    bwrap --ro-bind /usr/bin/ps /usr/bin/ps \
          --ro-bind /lib64 /lib64 \
          --proc /proc \
          --unshare-pid \
          ps -x

    bwrap --ro-bind /usr/bin/echo /usr/bin/echo \
          --ro-bind /lib64 /lib64 \
          echo "to a file outside the container" > /tmp/a-file

    bwrap --ro-bind /usr/bin/sh /usr/bin/sh \
          --ro-bind /lib64 /lib64 \
          --bind /tmp/a-file /tmp/a-file \
          sh -c 'echo "editing inside, available outside" > /tmp/a-file'
But it's never going to be easy. For example:

- The above works on my 64bit, combined /usr system, but maybe not yours. The more complicated the example, the more likely differences between systems are to show up.

- You may want to run a program with different privileges in different scenarios, so it is hard to guess what the right thing to do is in the general case.

Both bubblewrap and firejail need to be setuid. People commented on the firejail thread that it has a lot of code to be audited. Bubblewrap addresses that by stripping down to the essentials. It's going to have to compensate for that with great documentation and error messages.

Re:Firejail – security sandbox on Sunday August 07, 2016 @09:03AM (#12241966)
Bubblewrap is a similar tool which carefully handles it's setuid responsibilities:

https://github.com/projectatomic/bubblewrap#related-project-...

Appengine's whack pricing says: we'd like to kick you off appengine onto GCE but that would scare away all the enterprise users from GCE. If we announce regular Moore's Law following price cuts for GCE and nothing for appengine, well hey, we can't stop you leaving. We're totally not twisting you're arm! (aside: we are)

"A commitment to Moore's Law: https://cloud.google.com/pricing/philosophy/ "

Re:Org Mode for Emacs – Your Life in Plain Text on Wednesday March 30, 2016 @02:15PM (#11391623)
org-mode has the concept of attachments which you can use for pdfs, images etc.

http://orgmode.org/manual/Attachments.html

A carbon fibre car performing well in a crash test:

  https://www.youtube.com/watch?v=guOq9cdFbJA

Older »