HNHacker News
TopNewBestAskShowJobs

nviennot

388 karma · joined April 23, 2011

http://velvetpulse.com/about_me
submissionscomments
nviennot··on Building a Spreadsheet in 20 Minutes with Angular.js
Often, Hacker News saddens me.

This article provides some good insights on the Angular framework and a nice way to follow the code iteratively and understand the thought process. It gives a refreshing angle (no pun indented) to introduce the framework.

Why does this article only has 22 points when I see some articles like "How to get user feedback by giving away free coffee at Starbucks" or "What really happened at Company X while they farted some money" getting x10 points.

Oh well...

nviennot··on "j" for switching directories - hacking "cd" with python
I find these very useful: https://github.com/nviennot/zsh-config/blob/master/lib/key-b...

ctrl+f is similar to "forward" in your browser. ctrl+b is similar to "back" in your browser.

nviennot··on Workflow in tmux
Use the Alt key to navigate around: https://github.com/nviennot/tmux-config
nviennot··on A simple Motion Blur demo using WebGL
So if the screen is really dense, say 20000px wide, you would need a 10kHz refresh rate. That contradict the contrast experiment.
nviennot··on Introducing Apk2Gold, an easy and comprehensive Android APK decompiler
[deleted]

edit: removed, some people might get offended.

nviennot··on Introducing Apk2Gold, an easy and comprehensive Android APK decompiler
I can't wait to be able to release the sources of this bad boy:

http://viennot.biz/google-play-crawler-dashboard.png

http://viennot.biz/google-play-search.png

Expect it in April :)

EDIT: Notice in the search screenshot how I'm missing the R references. This problem is addressed by lxdvs in Apk2Gold.

nviennot··on Introducing Apk2Gold, an easy and comprehensive Android APK decompiler
Haha... I like this :)

So for you guys that are using this to decompile, say 450,000 android apps in a row, I highly recommend to use:

    ulimit -m $((1024*1024))
These tools sometimes flip out, both dex2jar, and jd-core.
nviennot··on Screenshot-proof images via temporal dithering
This is quite awesome.
nviennot··on The Unix Philosophy and a Fear of Pixels
Meh... For my coding workflow, vim is the best tool out there. Eclipse/VStudio is completely useless in my world.

Side Note: pixels are not easy to parse, text is.

nviennot··on MongoDB writes to be safe/verified by default
That reminds me of https://github.com/mongoid/moped/pull/92
nviennot··on User Motivation Determines the Best Color Scheme for Your Website
One must take in consideration the environment of their users.

Try to look at a white screen while being in dark place. It hurts.

nviennot··on Why I love everything you hate about Java
In Ruby, we often use the middleware pattern (the rack stack, sidekiq or faraday to name a few).

In the article, replace "Factory" with "Middleware" and "apply" with "call" and it's just like what we do in the ruby community.

nviennot··on Run SQL on MongoDB
Migrating data can be automatic: https://github.com/crowdtap/promiscuous/

We use this tool to replicate data across our main MongoDB database, and a PostgreSQL one (eventually consistent).

We haven't wrote a comprehensive readme yet. The only documentation we have so far are slides: http://viennot.biz/promiscuous

Stay tuned :)

nviennot··on Run SQL on MongoDB
This abstraction will definitely leak (or performance will be horrible, pick your poison):

* A big benefit for SQL are transactions, I have a hard time seeing anything done efficiently with MongoDB.

* Additionally, joins cannot be consistent with the MongoDB model (shards, reading from secondaries, ...).

While this idea is charming, I don't see this reaching any serious production environment.

But it's cool, Citus implemented a somewhat working prototype which is useful for some use cases. Kudos ! :)

nviennot··on Git over FTP
2 Years ago, I contributed to a project that would do the same thing: https://github.com/ezyang/git-ftp Anybody knows the difference ?
nviennot··on Linux TCP/IP Tuning
For the nginx to node connection, it's a unix socket. No issue.
nviennot··on Monner - Monitor CPU, memory and network whilst running a program
I personally prefer strace's options:

    -f -- follow forks, -ff -- with output into separate files
    -o file -- send trace output to FILE instead of stderr
nviennot··on GIT is the new FTP
Once, I had to maintain a website on godaddy, where I only had ftp access. I hated it. We would have interns working on it, and giving them the ftp password sucked. Having git as a proxy, hooked to sync master on ~/www and staging on ~/www/staging was awesome. If you want it: https://github.com/ezyang/git-ftp
nviennot··on I Don't Need Backups, I Use Raid1
A backup has not much value when stored in the same physical location with the original data. Any fire/flood/robbery will destroy all the data.
nviennot··on The default state of a startup is failure
6. Computers. a value that a program or operating system assumes, or a course of action that a program or operating system will take, when the user or programmer specifies no overriding value or action.
nviennot··on Hello Heroku World - Autobenching Heroku
I had to read it 5 times to understand the meaning...

From what I understand: the more dyno you have, the less each dyno can do. Which is funny when you think about it, becuause your Heroku bill increases linearly with the number of dyno.

nviennot··on ShowHN: An objective-c method call tracer
It's an early version of it, but support iOS (arm), and MacOS (x86_x64, no i368).

I'd be happy to hear your comments :)

Nico.

nviennot··on Hack your way through Stripe's Capture the Flag
Same here, I guess we are done. Not my fault ;)
nviennot··on FTP Must Die
There is something pretty cool that one can do with the FTP protocol: FXP transfers to perform an inter-server file transfer: https://en.wikipedia.org/wiki/File_eXchange_Protocol
nviennot··on Make your STDERR red
You are right, and there are other issues: - I don't return the proper return value (should not return the number of bytes from the color strings) - I don't handle the case where writev() returns a number of bytes between 0 and count (e.g. You are writing 10Mb of data, a signal arrives, and you only wrote 5Mb -- the color thing will get all confused)
nviennot··on Make your STDERR red
Indeed: https://github.com/sickill/stderred/pull/1
nviennot··on PR firm pushing anti-Google message for undisclosed client
Ho... now it makes sense.. http://techcrunch.com/2011/05/12/swallowing-puke/
nviennot··on First platform to sell ruby gems?
gem should be free.. I hate this idea. What if I want to fork the code ? And I don't want to put licenses all around the place when it comes to deployments.
nviennot··on Why you should use talloc for your next C project
I lost my previous account password that I haven't used in a very long time...
nviennot··on Why you should use talloc for your next C project
1) freeing memory automatically for you. That's under the table :)

2) Absolutely

3) No. it's just that memory management related issues are really nasty. On the other hand, adding a new printf() function won't do much harm.

← PreviousPage 2 of 3Next →