Wednesday, September 21, 2011

Using rsync when scp keeps failing


Sometimes I'm trying to scp a file from a less-than-reliable server that drops my connection so that I can never get the whole thing.  Here is Kem's answer to that problem:


#!/usr/bin/env ruby while true do puts `rsync -av --progress --inplace --rsh='ssh' --bwlimit=100 #{ARGV[0]} #{ARGV[1]}` result = $? if (result.exitstatus == 0) puts "file copy done, exiting" break; end puts "retrying again -- result: #{result}" end

Tuesday, September 13, 2011

SSL installation checkers

Here are the two SSL checkers recommended by Kem & Makani:
  • http://www.digicert.com/help/
  • http://www.sslshopper.com/ssl-checker.html (because Makani says this one found a problem the other one missed)

Friday, August 19, 2011

Today's SLC Tech Breakfast



Dan: Where is virtual reality?

Video search
One big part is speech recognition Sphinx (CMU) http://cmusphinx.sourceforge.net/
Why store text?  There are good reasons (Josh and Matt are doing a project on all this)

Augmented reality
- SixthSense from MIT http://www.pranavmistry.com/projects/sixthsense/
- Dan recommends Robert Heinlein - Double Star

Phones seem to be changing how we do things, eg. calling rather than working independently

The G2X phone is fabulous - Matt

There are headphones that stick near the ear so you can feel vibrations (without bugging someone).

There's a higher ratio of female engineers in India vs America

Other events
- Utah Code Camp http://pcamputah.org/ (though it may just be more ads; not a good impression of Newmont by people)
- Product Camp Utah http://pcamputah.org/
- Roots Tech http://rootstech.familysearch.org/
- UTOS Project Day http://project-day.utos.org/

Chromebook is out, about $500
Google is offering it for about $28/chromebook/year for organizations ($20 for schools)

Google says Javascript is not the bottleneck any more
- Trent is using knockout.js (also looked at backbone.js)
- Matt uses GXT (GWT version of ext.js), though the rendered code can be confusing (with synchronous events)

Wednesday, August 17, 2011

concatenating lines in a pipe


I often have to munge multiple lines together, and I finally found a good way:

echo -e "1\n2" | awk '{ ORS="+"; print; }'

Note that this adds the separator on the end, so I have to  handle that:

echo -e "1\n2" | awk '{ ORS="+"; print; }' | awk '{ print $1 "0" }' | bc

Friday, July 15, 2011

Today's SLC Tech Breakfast

Bitcoin, the distributed currency

Technical pioneers that suddenly went dark:
- Satoshi Nakamoto (Bitcoin)
- why the lucky stiff (Ruby)

What motivates us?  Dan Pink says Autonomy, Mastery, Purpose: http://www.danpink.com/drive

New OSX features in Lion, such as versioned filesystem and saving to the cloud

The Obviousness of Anarchy: http://faculty.msb.edu/hasnasj/GTWebSite/Obvious.pdf

Friday, June 17, 2011

Today's SLC Tech Breakfast

From today's SLC Tech Breakfast:

Ruby fibers vs threads, and a web server Goliath that allows you to write in a more comfortable linear fashion.

Testing methodology and unit tests, and how we improve software and really engineer while handling business needs and reality.

Dan: can we train developers to schmooze with managers? See maker's schedule vs manager's schedule
(See the video on "the internet in a box".)

Developers get better with age.

Friday, May 20, 2011

Today's SLC Tech Breakfast

From today's SLC Tech Breakfast:

Staying secure with guns; Dan recommends TheBoxOTruth.com for gun education

passwords and sharing
- SpiderOak (Makani doesn't recommend for UI)
- LastPass.com (password sharing)
- locking password file: KeePassX, OnePassword, LastPass

For security, Dan wants a hand-held retina-scanner (not a hand-held-retina scanner)

Quantum entanglement, Dan will look up whether a recent experiment that supposedly allowed faster-than-light communication

Sharing code from different languages
- one way is to use JVM-based languages that can be compile-time checked (Josh)
- in C# shop, wants to use Java tool (Flying Saucer) to convert documents, used IKVM.net, also see JNBridge.com (Dan)
- make web-services the architectural organization (Josh)... that's how we organize in FLUX networking (Ryan)

Enterprise security: we share an encrypted DB (KeePassX), but if an employee leaves...?
The best solution is an OAuth-style, revokable auth

OAuth is recommended for phones, too... including web auth (Josh)

How good are your unit tests? (Dan)
- We have over 10% coverage with Sonar (Josh)
- Continuous build: Hudson, Cruise Control

How do we manage DB versioning? (Dan)
- custom system, which builds at any version (Makani)
- each DB change represented by create SQL and hopefully reverse SQL, table with version number in DB (Josh & Makani)
- potentially: make each change a non-breaking change with previous version, so code roll-back is easy, eg. rename is add followed by drop later (Makani)


"No fluff just stuff" conference downtown SLC (Josh)
Jsconf JavaScript conferences
Defrag conference in Denver (Trent)
Javascript libraries: Require, Promise interface, dojo for apps (Josh)