Better HN
topnewbestaskshowjobs
Log inSign up

sciurus

16,460 karma · joined Jan 19, 2011 (15y ago) · 3,459 submissions

I'm a principal engineer at Docusign based in Atlanta, GA. My personal website is https://www.polibyte.com
Submissions

comment 14y ago · link · parent

Previous discussion: http://news.ycombinator.com/item?id=1645291

comment 14y ago · link · parent

From the FAQ:

How is mypy different from Cython?

Cython is a variant of Python that supports compilation to efficient C modules. Mypy differs in the following aspects, among others:

Mypy will have a powerful type system that can detect many type errors while supporting a very Python-like programming model. Cython has simpler types that primarily serve to speed up code.

Mypy will be able to speed up most programs, even programs that heavily use object-oriented features. Cython is primarily focused on speeding up numerical code and tight loops.

Mypy will have new virtual machine that allows speeding up all parts of the VM, including standard libraries and the garbage collector. Cython uses the normal Python VM.

Cython supports accessing C functions directly and many features are defined in terms of translating them to C. Mypy is not bound to any particular target language and can support both C and Java backends, for example. However, accessing C library functionality in mypy will not be as easy as in Cython.

comment 14y ago · link · parent

Mypy itself may be vaporware at the moment, but it's the successor to an existing language which has been in development for several years- http://www.alorelang.org/

2494.

Proceedings of the 2012 X.Org Developer's Conference(wiki.x.org ↗)

5 points · by sciurus · 14y ago · discuss

comment 14y ago · link · parent

http://pygments.org/docs/cmdline/

comment 14y ago · link · parent

I'm curious how the author managed to learn the pygments library without learning it already provided a command. This script can be replaced by

alias pjson='pygmentize -l json'

If you're passing it the file name, pygmentize will figure out the lexer to use, e.g.

pygmentize foo.json

pygmentize bar.rb

It's only when you have it read from stdin that you need to specify, e.g.

pygmentize -l json < foo.json

comment 14y ago · link · parent

This seems only tangentially related. The point of something like sh.py is to ease the use of external commands you need to use. The functions that shelljs partially implements (cd, pwd, ls, find, cp, rm, mv, mkdir, test, cat, sed, grep, which, echo, exit, env) are already trivially accomplished in Python.

comment 14y ago · link · parent

I don't believe so; the "free" in the URL seems a bit cheeky. The trial is scheduled for February 4, 2013.

comment 14y ago · link · parent

Do you think his actions [0] merit 13 felony charges and the decades in prison they could lead to? I don't, so I donated.

[0] http://www.guardian.co.uk/technology/2011/jul/21/aaron-swart...

comment 14y ago · link · parent

http://www.guardian.co.uk/technology/2011/jul/21/aaron-swart...

comment 14y ago · link · parent

Consider this an expression of extreme interest on my part.

comment 14y ago · link · parent

To be pedantic, > and < aren't pipes, only | is. A pipeline means that stdout of the first program is stdin for the next program. > and < set stdout or stdin to a file, not another program.

http://en.wikipedia.org/wiki/Pipeline_%28Unix%29

http://en.wikipedia.org/wiki/Redirection_%28computing%29

comment 14y ago · link · parent

But you should have submitted this source instead.

From http://ycombinator.com/newsguidelines.html

"Please submit the original source. If a blog post reports on something they found on another site, submit the latter. "

comment 14y ago · link · parent

Wow, my old hometown makes HN. Both of my parents have taught public school in Bibb County, so I've followed this with some interest. You can read the entire "Macon Miracle' plan at http://bibb.k12.ga.us/stplan2.html

comment 14y ago · link · parent

There's so much great, cheap hardware based on the Allwinner A10 out there right now!

I just ordered a Mk802 II for $65. It has a 1GHz Cortex-A8 single core processor, Mali 400 graphics, 1GB of RAM, 4GB of storage, a microSDHC card slot, 802.11b/g/n WiFi, 1 full-sized USB port (usable for power), 2 micro USB ports, and a full-sized HDMI connector so you cna just plug it in to your TV.

It ships with Android 4.0 on the internal storage (with access to the Google Play Store) or you can run the linx dustro of your choise from a microsd card.

http://liliputing.com/2012/08/mk802-ii-android-4-0-mini-pc-n... http://www.rikomagic.co.uk/forum/viewtopic.php?f=2&t=305

comment 14y ago · link · parent

Speaking of monokai, I recently switched to molokai and am enjoying it.

vim = https://github.com/tomasr/molokai

Xresources (e.g. xterm) = http://delicious.com/redirect?url=https%3A//gist.github.com/...

iTerm2 = https://github.com/larssmit/iterm2-getafe

comment 14y ago · link · parent

This looks more elegant than the hacked-together system I'm using for my passwords, but I don't see a way to store any metadata about the passwords other than the name.

If you're looking for a command-line interface to a cross-platform password database, there's kpcli for keepassx.

http://kpcli.sourceforge.net/

http://www.keepassx.org/

http://search.cpan.org/~rhandom/File-KeePass-0.03/lib/File/K...

comment 14y ago · link · parent

Thanks for linking to the previous discussions. It would have ben better if you hadn't tried to derail this discussion with the prediction of how the post would fare and "cult of mac" comment.

comment 14y ago · link · parent

It's random; there's some misogynistic jokes as well.

comment 14y ago · link · parent

This is essentially a duplicate of https://news.ycombinator.com/item?id=4467653 from one day before.

comment 14y ago · link · parent

That's some impressive marketing for a MicroSD to SD adapter, something that comes for free with almost every MicroSD card.

comment 14y ago · link · parent

You can run atop without root, it just won't use process accounting so you may miss some processes (but so would htop and glances).

I'm not sure what being on a VM has to do with anything.

It would be nice if there was a way (e.g. a command-line argument or atoprc setting) to disable the ability to kill processes from within atop; then it would be safer for an admin to make it executable as root by regular users.

comment 14y ago · link · parent

Nethogs (http://nethogs.sourceforge.net/) does what you want, but it's linux-only.

comment 14y ago · link · parent

Try atop. There's an overview at https://lwn.net/Articles/387202/

It's available through the EPEL yum repository http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/atop....

comment 14y ago · link · parent

I will definitely try this out! Just from browsing the webpage it looks nice.

The psutil library doesn't use process accounting, does it? Without it, Glances will miss processes whose lifetime is within a single check interval.

As always when this topic comes up, I have to give a recommendation for atop. This LWN article goes into why it is awesome- https://lwn.net/Articles/387202/ . The logging and interactive examination of historical process-level metrics is the killer feature for me. Here are some screenshots- http://atoptool.nl/screenshots.php

2516.

Ubuntu GNOME Remix Will Be Available This October(muktware.com ↗)

3 points · by sciurus · 14y ago · discuss

comment 14y ago · link · parent

LWN wrote a good article on GNOME OS at https://lwn.net/Articles/512783/

Submitted to HN at http://news.ycombinator.com/item?id=4455028

comment 14y ago · link · parent

Compare the amount of GNOME developers discussing GNOME development at http://planet.gnome.org/ to the number of MATE developers discussing MATE development at http://planet.mate-desktop.org/

comment 14y ago · link · parent

CentOS 6 uses Upstart.
1
838485
116