Monday, June 29, 2015

Meshed up

Here's an interesting article about the development of low-power wide area networks for monitoring water conservation and facilitating irrigation management. I just hope they don't directly feed it back to the grid controllers, since if someone or something hacks it, it could literally unleash a flood - not to mention wasting valuable water on a grand scale.

Net fragged!

I've invented a new term, "Net fragged".

There's a site for this, and a site for that. And now, there's a site for that, too! I can't even remember where I bookmarked that site I was doing something on last month?! Sheesh. Net fragged!
 
You heard it here, first :-)


Tuesday, March 24, 2015

New Programming Paradigms

Functional Programming and Reactive Programming are new paradigms that are taking the software community by storm. The use of functional programming languages such as Scala have moved well beyond "research only" circles within the academic community to growing adoption for special tasks in industry.  Functional programming techniques and languages are sort of like "a new wave" following Object Oriented Programming (although the two paradigms are complementary, not competitive).

Friday, March 6, 2015

Use rsync on Linux/Mac to move data fast

Here's how to use rsync(1) on a Mac or Linux to move data fast:

rsync –achv[n] {local-dir} {remote-hostname}:{remote-dir}

This will sync the contents of {local-dir} to remote-hostname, {remote-dir}. If you supply the –n option (noted in the square brackets above), it will do a *dry-run only* showing you what will be done – but not yet doing it (very handy to confirm you will be copying the desired stuff to the desired remote location first).

Works for git clones, and any other directories, too. If you want to delete files that exist on {remote-dir} but not {local-dir}, add the delete-after parameter (with two leading dashes), like this:

rsync –achv[n] —delete-after {local-dir} {remote-hostname}:{remote-dir}

Transfers are generally done over ssh, so you’ll have to supply your password when prompted for it.

Rsync can pull as well as push, meaning you can reverse the positions of {local-dir} and {remote-hostname}:{remote-dir}, too. You can even use it to copy files to a different location on the local host if desired, too. Plus it’s very efficient at moving data quickly :-)