HNHacker News
TopNewBestAskShowJobs

lvillani

816 karma · joined May 23, 2010

submissionscomments
lvillani··on Linux 3.11's feature set now confirmed
By the way, I recently discovered that you could use it in Ubuntu since 2012 (12.04).

Just `apt-get install zram-config` and reboot, voilá.

I'm using it both on my laptop and desktop at work with 4Gb physical RAM. I have PyCharm and lots of tabs open in Chrome and it has to reach around ~2gb of compressed swap before it hits the disk. It doesn't even seem to slow down the machine in any noticeable way.

A truly nice, little hidden gem.

lvillani··on Ubuntu 13.10 to ship with Mir instead of X
(Hopefully) they won't. They said that having either fglrx or nVidia's binary blob installed would cause the system to fall back to plain X.org.
lvillani··on Ubuntu 13.04: Getting Excited About Ubuntu Again
For exploration, I still play with the app.

Personally, I find the HUD useful in those situation where there is no keyboard shortcut associated with a particular menu item and one can't be configured either.

Plus I find it easier to just write a few characters than having my finger perform a meaningless dance involving multiple modifier keys..

lvillani··on An open MySQL bug receives a real Birthday cake

    > It's recently replaced mysql in redhat builds, so it's definitely on the up.
"Red Hat's Director of Product Marketing, Mark Coggin, told various media outlets that the company has not made any decision or made an announcement about which database technology will be in Red Hat Enterprise Linux 7."

-- "Red Hat Says No MariaDB/MySQL Decision Made." The H Online, 18 June 2013 (http://www.h-online.com/open/news/item/Red-Hat-says-no-Maria...)

lvillani··on iOS 7 As Defense
I guess it's because this is what a permalink really is: an URL meant to last forever (hence the infinity symbol).
lvillani··on Xorg-free Wayland Live CD that starts directly to Wayland
It's interesting to see how Canonical's announcement of Mir seemed to spur new interest around Wayland and an acceleration of its development, generating a new wave of announcements (i.e.: Gnome deciding to go "all wayland" by 3.12, etc).
lvillani··on Whatever happened to the Hurd? – The story of the GNU OS
> Not to mention that it's one unified OS rather than hundreds of GNU/Linux distros.

I admittedly haven't used any BSD enough to make a well informed opinion but I was under the impression that BSDs are fragmented at the OS level (i.e.: different kernels), while Linux is fragmented at the distribution level (i.e.: default collection of software, file-system layout, etc).

I imagine that, in addition to there being different kernel flavors there are also distribution level differences (e.g.: there are subtle differences between FreeBSD's rc.conf and NetBSD's) so I'm not sure which approach is better or worse, but I tend to lean on the "one kernel, several distributions" camp.

lvillani··on Dell releases powerful, well-supported Linux Ultrabook
For those using other distributions than Ubuntu on their XPS13s, I am collecting the necessary kernel patches to get both the trackpad and backlight keys working here: http://lorenzo.villani.me/dell-xps13/

(Unfortunately, information to get this hardware working on other distributions is spread out across several web sites, git repositories and bug reports, that's why I created the page).

lvillani··on 64-bit Firefox for Windows should be prioritized, not suspended
> You mean the Chrome which can't even be arsed to provide 64b builds on platforms where it's easy (Linux) [...]

  $ file /opt/google/chrome/chrome{,-sandbox}                                                                                 [10:47:39]
  /opt/google/chrome/chrome:         ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0x2df3f5f435cb5747ea72be922c428b9a0017cb50, stripped
  /opt/google/chrome/chrome-sandbox: setuid ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0xd02cf32515390b01af9aa5b1a53cd1dfb4fb7a35, stripped
lvillani··on Valve Linux Steam Client Beta Application
Steam runs well enough with recent releases of Wine (I also had remarkably good experiences running Source games on it, i.e.: Half Life 2).
lvillani··on What killed the Linux desktop
Starting with Honeycomb the storage partition is exposed through MTP (or PTP), this way it can be accessed concurrently by both Android and your computer. Before Honeycomb, said partition could be accessed as an USB mass-storage drive but that required it to be unmounted, thus making all data unavailable to Android while it was connected to a computer.

In my experience only Windows 7 has passable MTP support. On Linux I had mixed results with gvfs and mtpfs (slow and crashy). jmtpfs [1] is a nice replacement, though. Google also released an application for OS X [2] but I can't try it since I don't own an Apple computer.

My solution to the problem was to install a WebDAV server (such as [3]) on my device (Galaxy Nexus) and access it wirelessly.

  [1]: http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/
  [2]: http://www.android.com/filetransfer/
  [3]: https://play.google.com/store/apps/details?id=com.theolivetree.webdavserver
lvillani··on CouchDB ships 1.2.0, Windows packages, new website
> I think the new website is fantastic, as I now know all of this and more just from a quick glace. Great work.

I noticed that it is almost identical to Apache Cordova's [1]. Is there an ongoing effort to bring a consistent look to all Apache projects websites?

[1]: https://incubator.apache.org/cordova/

lvillani··on Ubuntu 12.04 LTS (Precise Pangolin) Beta 1 Released.
It doesn't trigger the HUD if you type a key sequence but it's quite easy to activate it nonetheless.

Anyway, the command below is all that's needed to disable it.

    gconftool-2 -s /apps/compiz-1/plugins/unityshell/screen0/options/show_hud -t string ''
You can also take the scenic route and use CCSM.
lvillani··on Windows 8 Consumer Preview released.
I think they should clearly separate tablet and desktop interfaces and switch between them based on context (like what Canonical is planning to do with their "Ubuntu for Android").

That is: you get only a classic desktop (+ windowed Metro apps) when your slate is attached to a docking station and you only get the tablet interface otherwise.

And then provide a switch within Control Panel to get the hybrid experience, as it is now.

lvillani··on Sublime Text 2 Build 2181
I consider freedom a paramount attribute I expect from software I use. However, I tend to use use proprietary software if its much more convenient than free options and either 1) I can easily switch to an alternative (preferably open), 2) It is being developed in an ethical way 3) It's a game.

I consider proprietary software to be developed in an "ethical" way when an entity makes an official statement regarding the destiny of the product itself should said entity disappear, go bankrupt or, in general, discontinue development.

For example: Trolltech (then acquired by Nokia), developers of the Qt framework, double-license their product under a free copyleft license (GPL/LGPL) and a "Commercial [proprietary] Developer License". In order to protect both the community and their customers they made an agreement with the "KDE Free Qt Foundation"¹ which says: "Should Nokia discontinue the development of the Qt Free Edition under these licenses, then the Foundation has the right to release Qt under a BSD-style license or under other open source licenses. The agreement stays valid in case of a buy-out, a merger or bankruptcy."

That's why I would like to hear from Jon what his plans are in case he decides (or he is forced) to discontinue development of SublimeText for any reason.

There are egregious examples of successful editors being developed, sold and then (mostly) discontinued. Enough broken promises to warrant strong assurances from Jon.

__________

¹ http://www.kde.org/community/whatiskde/kdefreeqtfoundation.p...

lvillani··on Sublime Text 2 Build 2181
For the first time I am seriously considering whether to replace Emacs as my primary text editor on Linux.

I've been compulsively using Emacs for the past 5 years. Thanks to Emacs I felt in love with (a dialect of) Lisp and experienced the freedom brought by a truly programmable text editor. An enlighting experience.

About a couple of weeks ago I began using Sublime Text 2 and... wow, it gets so many things right and out-of-the-box that I'm now fighting an inner battle to make a choice.

I am by no means an "hardcore" Emacs user but over the years I accumulated more than seven hundred lines of elisp code in my ~/.emacs.d/init.el. A large portion of that file glues together stuff like ido-mode, ido-ubiquitous, smex, AutoComplete, find-file-in-project, etc making my Emacs a lot Sublime-like.

I recently threw most of that stuff away and began working on sublime.el, which tries to emulate Sublime Text 2 as closely as possible.

However Emacs is showing a lot of warts: ido's fuzzy matching becomes painfully slow when dealing with lots of entries, I have yet to make find-file-in-project behave the way I want, provide most-recently-used heuristics to ido (for any use case not covered by smex), there's no consistent way to set a unique indentation level across major modes, long startup times (though the emacs-as-a-daemon/emacsclient pair mitigates the issue somewhat) and, in general, the UI is antiquated¹.

My only gripes with Sublime Text 2 are that there's nowhere near the amount of documentation Emacs has (for obvious reasons) and that it is a (mostly) proprietary piece of software. What if Jon is hit by a bus², looses interest in his project or finds it unprofitable and decides to stop all development? I would really, really hate to depend on a piece of software which is never going to get at least bug fixes. I honestly hope that Jon is considering open-sourcing it, should he go AWOL for any reason.

By switching to Sublime Text 2 I feel like I am betraying Emacs and all it represents in the name of convenience. Choice, how paradoxical thou art!

I am sorry if you find this disquisition boring but I had an urge to write it down somewhere. How liberating!

__________

¹ E.g. there's probably a way to get like find-file-in-project to show stuff as neatly as Sublime Text 2 does but as far as I know nobody has done it, yet.

² https://en.wikipedia.org/wiki/Bus_factor

lvillani··on How Not to write a "REST" API
I believe it's important to keep things honest. If an API is nowhere near the definition of being RESTful, then don't label it as such.

This company, along with others (e.g.: Flickr and their infamous "REST" API), are responsible for turning "REST" into yet another buzzword.

lvillani··on How Not to write a "REST" API
Looks like an RPC-style API with multiple endpoints + custom authentication scheme.
lvillani··on Ubuntu rips up drop-down menus
From the article: "although the old menu system will still be available for those who don’t want to use HUD or want to explore the available commands"

In addition, users upgrading from 10.04 LTS to 12.04 LTS are already getting Unity (which is already in itself a breaking change). I see no reason to delay the introduction of this menu system.

As a user jumping between LTS versions I welcome both the introduction of Unity and the addition of keyboard-driven, menu searches.

I see your point though: maybe a better solution would be to have it in the LTS but disabled by default?

lvillani··on The Noun Project: Icons for everything
I found a couple of issues (Chrome 16.0.912.75 on Ubuntu 10.04)

- When previewing an icon I can't close the lightbox by pressing "Esc". I have to explicitly click outside the box to close it.

- I can't seem to be able to view an icon's details page when cookies/local storage are disabled. I.e.: from the home page, clicking on an icon doesn't load the details page unless I have cookies/local storage enabled. I can get there with a direct link though (e.g.: http://thenounproject.com/noun/fountain-pen/#icon-No1033)

Anyway, this is a great project, thanks!

lvillani··on I'm Pirating the Next Version of Windows
You can compare SHA1 hashes using this TechNet page for reference: http://technet.microsoft.com/subscriptions/downloads/default... (click "Details" to reveal the SHA1 hash).
lvillani··on Das Keyboard now pre-ordering Mac version of their mechanical keyboard
FWIW: The Microsoft Ergonomic Keyboard 4000 was causing me RSI (I found the spacebar too hard to hit and several keys started malfunctioning after nearly one year). Design-wise I found it good enough (especially for the palm rest and layout as a whole) but I think they should seriously reconsider the quality of their key switches.

I since then switched to a customized keyboard made by Unicomp and couldn't look back. The buckling springs may feel a little bit too hard at first, but over time I found them to soften.

lvillani··on Das Keyboard now pre-ordering Mac version of their mechanical keyboard
> The one pictured is hideously ugly, though.

You can order a customized version. I have a custom Unicomp EnduraPro with blank keycaps (like a Das Ultimate) and they also reprogrammed it (i.e.: I wanted to swap CapsLock with left Ctrl and Tilde/Backtick with Esc).

I can't recommend them highly enough.

lvillani··on Show HN: Scrollorama
This script seems to trigger a bug in Firefox or X11 which brings the whole session down.

It's 100% reproducible with my setup: Firefox 9.0.1 on Ubuntu 10.04 (x86_64) and Fglrx 8.920 (Catalyst 11.11, if I remember correctly). Load the page then scroll down a bit: the whole X session blows up.

Anyone else experiencing this?

lvillani··on Ask HN: Best book you read in 2011
- "Clean Code: A Handbook of Agile Software Craftsmanship" by Robert C. Martin

- "Physics for Future Presidents" by Richard Muller

Not really a book but I found the "MIT Guide to Lock Picking" an interesting read.

lvillani··on Anti Leonard Poettering petition: Stop writing useless linux programs.
Sure he could, but things like that happen all the time. Countless people start forks and new projects every day, while they could improve the existing ones (the world is full of examples).

I have this darwinian vision of the software world where it's extremely positive to experiment with new stuff. Only time will tell which things surpass the test of time.

Attacking someone publicly this way just because he doesn't contribute to your¹ favorite project is, in my opinion, a sick thing to do.

______

1: Not addressing you in particular.

lvillani··on Anti Leonard Poettering petition: Stop writing useless linux programs.
Honestly, I don't understand why move this personal attack against Lennart. From my point of view he just wrote pieces of software he deemed necessary. I would rather put the blame on distributions other than Fedora¹ for trying to integrate his stuff early and poorly (thus starting a chain-reaction which caused even more distributions to rush with integration attempts). I think he's getting a lot of flak for choices made by others.

_________

1: Fedora is known to ship with lots of experimental software/wide-scale changes. Its users expect breakage/major innovations from time to time.

lvillani··on Linux Mint: The new Ubuntu?
You might be affected by:

https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/763005

There is a series of known bugs where the window manager picks the wrong refresh rate resulting in choppy animations.

I noticed that this happens consistently with all compositing window managers (compiz, xfwm4, mutter) except kwin.

Disabling VBlank syncing may help. The bug report above has instructions to disable VBlank syncing with Compiz/Unity.

If you are using mutter (gnome-shell) you can put this line in /etc/environment, restarting your X session afterwards

  export CLUTTER_VBLANK=none
However, in my experience, Unity/compiz becomes sluggish again after a certain amount of clients are displayed on any (virtual) desktop.
lvillani··on A Disturbing Dialog About Ubuntu and Unity
It's not a whole separate distribution. It's akin to Fedora's "spins": an ISO with a different default set of packages. Nothing prevents you from installing Ubuntu proper and then "apt-get install xubuntu-desktop" on it.

I agree, though, that this distinction is not clear enough by reading Xubuntu (or Kubuntu, Edubuntu, etc) websites.

lvillani··on Android 4.0 SDK Now Available
Genuine question: did they announce when the source code for ICS will be released? AFAIK, http://android.git.kernel.org is still down, I can't seem to reach http://android4.git.kernel.org and http://source.android.com/ still lists Gingerbread as the latest source code drop available.
← PreviousPage 5 of 6Next →