News for hackers. Stuff that matters.

vjoel

Re:Your best passive income? (2014) on Tuesday January 21, 2014 @01:54PM (#7097377)
Enjoyed playing with blocksim. Have you considered aiming for a different market than matlab/simulink? One thing that simulink cannot do well is dynamic, reconfigurable networks of components (for example, UAVs or autonomous vehicles, but also game sprites). For this purpose, some smart people (not me) at UC Berkeley developed a language called SHIFT and applied it to platoons of automated cars and trucks back in the mid 1990s. I rewrote it as a ruby DSL that generates C code: https://github.com/vjoel/redshift. It would be fun to have something like that in a browser, with animations.
> A programming news aggregator with better categorization than HN and less noise/navigation effort than the myriad subreddits would be a great tool.

lobste.rs has tags and high signal/noise; but it's very quiet.

Re:Evernote, the bug-ridden elephant on Saturday January 04, 2014 @09:29AM (#7011119)
Love zim wiki, use it every day, but: it still doesn't detect file change on disk. So after (1) edit on host A, (2) sync with git (or rsync or btsync...), (3) go to already open edit window on host B, you can end up editing a stale buffer, and then you have to merge manually.

Still better than the alternatives.

Re:Ask HN: A first (or early) upvote bonus? on Monday December 16, 2013 @03:31AM (#6913515)
What about a bonus for up-voting a story that eventually receives a high score? Or is that what you meant?
Re:Building a tiny ARM-based server on Sunday December 15, 2013 @08:03PM (#6911986)
Yup. Utilite: http://utilite-computer.com/web/utilite-specifications. Dual GbE, though one is limited to around 470Mbps because of a limitation of the board.

I have one. Great specs, but I am not totally happy with the ubuntu 12.04 that comes with it. GCC is broken, for one thing: http://www.utilite-computer.com/forum/viewtopic.php?f=64&t=1.... Hoping this gets fixed soon.

Where's Datomic? Maybe it's excluded because it relies on other databases as storage services?
Re:JavaScript particle simulator on Tuesday November 19, 2013 @07:00PM (#6765462)
Also, why is there a bias towards clockwise orbits in the first few seconds? Is there some asymmetry in the physics?
Re:JavaScript particle simulator on Tuesday November 19, 2013 @06:46PM (#6765384)
Took me a long time to notice that my cursor movements were injecting disturbances into the fluid. What physical laws govern these points, and how is the cursor perturbing them?
Re:"Like A Rolling Stone" – Interactive Video on Tuesday November 19, 2013 @06:28PM (#6765275)
Citation needed. The Rolling Stones started in '62. Dylan's "Like a Rolling Stone" is from '65.

Wikipedia attribute the band's name to the Muddy Waters song, "Rollin' Stone".

Re:HTML5 Canvas Fluid Simulation on Tuesday November 19, 2013 @05:42PM (#6765036)
Fascinating. Is it possible to reduce the cpu utilization when idle?
Re:PiCloud has joined Dropbox on Monday November 18, 2013 @12:24AM (#6752741)
Re:Julia 0.2 released on Sunday November 17, 2013 @03:14PM (#6750610)
Re:Two million Raspberry Pi sold on Sunday November 17, 2013 @02:46PM (#6750469)
Re:Two million Raspberry Pi sold on Sunday November 17, 2013 @02:36PM (#6750415)
Especially with an encrypted disk.
Re:Two million Raspberry Pi sold on Sunday November 17, 2013 @02:31PM (#6750402)
There are quite a few quad-core, single-board, fanless ARM computers: utilite, wandboard, odroid, udoo, radxa.

I have two odroid U2 that I use for testing distributed and multithreaded code. One odroid core (exynos 4412 @1.7GHz ) is more than 8x as fast as the pi, for some numerical simulation code (ODEs). Storage is eMMC, so should be faster than the class 10 SD card in a Pi. It was very easy to get Linaro set up on them (for headless use, as compute servers). Recommend highly.

I use my two RPi for file serving, backups via rsync and btsync, limited web (one is at a remote location).

There's a utilite pro on order as well, but they are a bit backlogged, as I understand it. I'm looking forward to the 2x Gb eth (odroid is 100Mb) and faster bus and disk speeds.

Re:Thoughts on a New Dylan Ecosystem on Tuesday November 12, 2013 @04:27PM (#6721272)
Also: generic functions. And hygienic macros. I miss those in ruby.
Re:Clone Dropbox with a Raspberry Pi and BTSync on Thursday October 31, 2013 @02:26PM (#6648715)
Also, with encrypted volumes, just reading files on the raspi is very slow. Consider replacing raspi with odroid, utilite, or other fast, fanless, cheap arm sbc.
Re:C++ has become a scripting language on Wednesday October 16, 2013 @04:17PM (#6561894)
Or:

   ruby -e 'puts ARGF.sort' file.txt
Also, this reads stdin if the argument is omitted.
Re:How RethinkDB Works – 7pm tonight at SF Data Engineering on Wednesday October 16, 2013 @04:08PM (#6561846)
According to http://www.rethinkdb.com/docs/architecture, you have a choice, for each read query, between C and A. The summary on meetup.com is apparently wrong.

I am going to the meetup (but am not otherwise associated with rethinkdb).

Re:The Ball-of-Mud Transition, or how software gets complex on Monday October 14, 2013 @01:36PM (#6548532)
Transitive closure and connected components are not expressible in first-order logic, but maybe you are thinking of Fagin's 0-1 law for finite relational models[1]:

For a given first-order sentence s, as n -> infinity, the fraction of models of cardinality n that satisfy s approaches either 0 or 1.

[1] http://researcher.watson.ibm.com/researcher/files/us-fagin/t...

Re:How to make homework more fun: Matlab to Ruby on Monday October 07, 2013 @07:59PM (#6512132)
I used to do a lot of scientific programming in ruby. I got around the slowness of the interpreter by generating C code on the fly. You don't have to give up Ruby as the DSL and utility language. It's the best of both worlds, if you can invest the time to set up the code generating machinery.

As I posted on the coderwall discussion: If you are working with continuous systems (ODEs) or hybrid systems (ODEs plus discrete state transitions and dynamic dataflow networks), then you might be interested in RedShift. For example, here's a simulation of a simple thermostat controller: https://github.com/vjoel/redshift/blob/master/examples/therm.... (I am the author of RedShift. You can find my RubyConf 2009 presentation on the confreaks site.)

Re:Cocktails for programmers on Thursday September 12, 2013 @03:08PM (#6376228)
In a big-endian glass.
Re:The $80 web development workstation on Sunday August 25, 2013 @01:50AM (#6271069)
In XFCE, you can move windows by pressing them against the side of the screen. Go to Settings, WindowManager, Advanced. Click "Wrap workspaces when dragging..." and choose your desired edge resistance.

However, I prefer to re-map CapsLock to <Hyper>, and define <SHIFT>-<HYPER>-Up to move window to workspace up, and so on.

Can't help with the stealing, sorry.