Wednesday, May 22, 2013

Syntax-Higlighted Code in Blogger - Alex Gorbatchev

This is a lot less tedious to use than manually converting and pasting into a blog post.

http://alexgorbatchev.com/SyntaxHighlighter/


Code to Syntax-Higlighted HTML

This seems to work reasonably well:

http://tohtml.com

It'll Auto-identify the language, or you can select it yourself.

You can choose from several colour-scheme styles.

More Ass-Kicking...

This guy isn't pulling punches (or throwing pumpkins)... But he's right.

"Fact: college is a waste, but we haven't yet hit that point in society where we can bypass it. So we have to pass through another generation of massive college debt. How to pull in the suckers in? Answer: these articles."

http://thelastpsychiatrist.com/2012/11/hipsters_on_food_stamps.html

Geek Mind-Over-Matter: Bush Coding (Sam McEwan)

This is classic - Well done, Sam! :-)
For those interested, here's (a class-ified version of) Sam's pain-fuelled Magnum Opus:

public class BushCoding {

    public static void main(String[] args) {
        System.out.println("This really hurts!");
    }

}

Tuesday, May 21, 2013

Updated GIT Talk on Vimeo by Randal Schwartz

Thanks to Randal himself, for pointing out that there is an updated version of his GIT talk on Vimeo at http://vimeo.com/35778382

Thursday, July 19, 2012

systemd

1. cgroups.txt http://www.kernel.org/doc/Documentation/cgroups/cgroups.txt
2. Original Design Document http://0pointer.de/blog/projects/systemd.html
3. Interface Stability Promise http://www.freedesktop.org/wiki/Software/systemd/InterfaceStabilityPromise 4. XDG Base Directory specification http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html 5. If run inside a Linux container these arguments may be passed as command line arguments to systemd itself, next to any of the command line options listed in the Options section above.
If run outside of Linux containers, these arguments are parsed from /proc/cmdline instead.

Wednesday, June 20, 2012

Slackware Linux links

More than just Slackware! ... Eclectic list of some useful Linux and other programming links... dunno how fresh or otherwise, YMMV. http://wiki.linuxquestions.org/wiki/Slackware-Links#.22.27.27.27Slackware_LQ_Suggestions_Links.21.27.27.27.22

Sunday, March 25, 2012

Re. "Can you afford to not know Git any longer?"

Re. http://www.bluetrainsoftware.com/2012/03/can-you-afford-to-not-know-git-any.html
Well said.
The videos (longish at an hour each or so, worthwhile IMO) of Google Talks by Linus Torvalds and Randal L. Schwartz are great for explaining the rationale behind GIT and its development.
They may even provide sufficient motivation for people to dive in. Pushed me over the edge ;-)

Friday, February 17, 2012

Wednesday, February 15, 2012

A couple of my Web Pet Peeves...

Grrr! ...

1) Sites that show precisely nothing until you unblock JavaScript - I'm looking at you, http://www.attitudeiseverything.com/ !

2) Links that when middle-clicked (Linux), hijack the current page rather than opening a new one. If I *wanted* to lose the current page, I would have left-clicked - Duhhh!

Anyone else annoyed by these behaviours? - Comments please!

10 Questions that create success -- Geoffrey James (inc.com)

These actually make you think...
http://www.inc.com/geoffrey-james/10-questions-that-create-success.html?nav=next

MIT launches free online 'fully automated' course

(Via BBC UK):
http://www.bbc.co.uk/news/education-17012968

Annoying Colleagues and How to Manage Them -- inc.com's Geoffrey James

See anyone you know in here? ... Or perhaps yourself? (I do :) )
http://www.inc.com/ss/geoffrey-james/annoying-colleagues-and-how-to-manage?slide=0

Saturday, February 11, 2012

Spookily Realistic Skin Rendering (SSS) -- Jorge Jimenez

SSS == Separable Subsurface Scattering
Jorge Jimenez
Needs lots of grunt to render quickly.
Stunning results though!
http://www.iryoku.com/separable-sss-released

Sunday, February 05, 2012

Chuck Lorre Vanity Cards - Warning: May make you think!

Ever watched "Dharma and Greg" (where I first noticed these) or other Chuck Lorre productions (Two and a Half Men, Big Bang Theory,...) and got frustrated because the 2-second flashed message at the end was too short to read?
Ever thought "I'm going to record that and freeze-frame it so I can read it"?
Someone's saved you the trouble:
http://chucklorre.com/index.php?p=45
Enjoy!
And thanks, Chuck :)
Big, Big Bang fan :)

Sunday, December 18, 2011

The funniest thing I have seen all year

This guy could do standup... wait, he *is* :)

OK, this is now officially *the* funniest thing I have seen in the past year
Forget Friday, or even Matt Mulholland's Bohemified cover of it...
If you're a (computer) geek at all, this is *it* !

http://www.youtube.com/watch?v=-zRN7XLCRhc&feature=channel_video_title

LMAO ~34min and following

Enjoy... maybe visit the little room first though :)

Friday, December 02, 2011

Emacs Keybindings for Factor

http://stack-factor.blogspot.com/2011/11/emacs-keybindings.html

Gerald J Sussman -- 'We really don't know how to compute" lecture outlinks

Truth Maintenance Systems for Problem Solving:
http://dspace.mit.edu/handle/1721.1/6926

Building Problem Solvers (Artificial Intelligence) [Hardcover]:
http://goo.gl/kfBB6

Truth maintenance systems (Tutorial) [Unknown Binding]:
http://goo.gl/nRESM
Truth Maintenance Systems: Tutorial Program [Paperback]:
http://goo.gl/HSNcf

Thursday, November 03, 2011

Monday, October 10, 2011

DTrace review



Something interesting at ~4:30?

Saturday, July 16, 2011

You Need a System to Grow

Jessica at Luumin.com on order vs. chaos in everyday life:

http://blog.luumin.com/2011/07/04/need-a-system-to-grow-2/

Friday, July 15, 2011

ICEHOUSE

expensive
'shit website'
OK content
small company - next level
mentoring / monthly meeting
pay for it - $500 pmonth?

gen IP or exporting
no interest in NZ-focuses biz's

no web focus
in Auckland
shoestring/lean/free

all about them
not sold to
why sign up?
lucky to be chosen
push their partners / advisors
no hightech advisors
tech on own
biz advisors etc

what are they --
landlord? VC? hardass? govt? picking winners?
no transparency?
what's tie-up with Auck Uni?
with govt?
govt-funded VC?
$US150k y-combinator
VC more or less guaranteed
parking bad, furniture bad


what does tech community want?
next level
who can we talk to?

NZTE?
financial?
networking?
pitch deck?
sniffing glue? / work on this...
cofounders
biz ppl
tech ppl
somebody doing biz/tech intro in WN

WINZ do/dont hae a scheme
5k capital grant
need to be on dole and to get off it

practical education? what's wanted?
SPARK program 1.5 times?
biz school icehouse collaboration
day course?
paid - reasonable money value

NZCE program?

maths
Rob Coup?

presenter == ??

@barnaclebarnes, @amatix, @szechuan, @leancto

podcasts - how is it going?

startupTV

success stories - and failure stories
why? who?

database of skills

database of resource people

NDA's

disjoint networks
us
govt networks
big biz nwk
Fonterra

booster seats ? SFO 1 month
Annie?
who do you see?
(Y Combinator)

what networks are they talking about?

accts
lawyers
local and intl money
distrubution
marketing
adv
sales

ICEhouse gets lots of govt funding

filtering?
who is committed to real biz (not Social Media Experts :) )
lots of fake angels in NZ

Good guy network

Lance - he's a good guy

personal recommendations

see other people - ~50 ppl - dont curl up and die

different colored stickers - monthly meeting?

1st Wednesday of month
talk thru sales pitch of how they assist startups

3000 new companies in NZ over what period?
want 1000 companies responsible for


Turn up to our events
Icehouse outside of the icehouse

mentoring adv 2 hours a week at $50ph?

have a new fund for super-early stuff

cut deals for circumstances

Grow Wellington - not many good ones

better Twitter presence?

not interested in the mobile apps space

$2-5M -plus money

feeding the funnel ? (Godin?)

Andy ????

untrusted
lack of transparency

WN Grow Bright Ideas
free events
build trust

Gearman

Tim Uckun
http://tim.uckun.com/

enspiral
Linux + postgreSQL + Ruby + Rails + Gearman
application
"search internet every 10 minutes and predict the future"
goal achieved
1000 seasrches per minute
twitter and reddit digg facebook etc
url mentions
trendings - how fast?
likes videos etc
predict viral or not

painless parallelization
LCA conf Brisbane talk
Manager anagram
workers
massive dist fault tolerant fork mechanism
Joe Stump SimpleGeo
protocol - multiple implementations
diff languages
[scheme / CL / Clojure / FORTH / Factor?]
C and Perl serers
gearman::server CPAN

C: http://launchpad.net/gearman

Go client

Client API
commandline tools
user def SQL db functioins

MySQL etc

worker API
most common langs
usually in same pkgs as client API
cmdline tool


Why Gearman?
lotsa msg brokers
FOSS and not
unique in scope
vs. rapid rabbit?

OSS simple fast multi language
flexible app design
no SPOF

persistent Queues or not

default - jobs ponly stored in mem
various persistence opts
MySQL Drizzle
POstgreSQL
SQLite
Tokyo cabinet
...


Foreground or background
sync and async

large scale archs will work but can start off simple

how does it worek?

clients servers workers
every worker conn to every server
clients not conn to all servers
(no replication)
can get around it

use cases
scatter / gather
map-reduce
async queues
pipeline processing
Erlang says duh - but this is Ruby

scatter gather

# of tasks concurrently
speed up web apps
tasks dont need to be related
alloc dedicat resources for diff tasks
push logic down to where data exists
auto-balancing

DB query x 2 fulltext srch
location srch
...


map/reduce

similar to s/g but split one task

push logic to where data exists (map)
report aggregates or other sumery (reduce_
can be multitier
can be syns, async
aggregates/summary services

client, n tasks, can delegate to subtasks


Async queues
help to scale
not everything needs immed processing
email
tweets
log entries
notofications
insert and indexing

LCA 2011

pipeline processing

some tasks need series of xformations
chain workers to send data for next step


client -> worker -> worker -> worker -> server? DB

examples
ruby

more complex sync client
lambdas

event handlers

example - worker raises an exception
gearman server takes exceptions and raises exception in client library (?)

LAMP excel spreadsheet via COM
SQL Server without TTS / TDS?
cross-platform
ans cross-language


chnked data client

data, completion events

get state of the queue (query gearman itself)

serialized hash to see on screen
hash = Gearmam::srver.new(gearman_servers).status

Zabbix? monitoring tool

alarm on empty work queue

database UDFs

database trigger
start bkgnd jobs on db changes

PostgreQSQL, MySQL , drizzle

SELECT gmen_servers....


Opitonal ingredients

Databases
shared/dist file sys
other nwk protocols
http
email
domain specific libs
image manipulation
full-text indexing


timeouts

by default ops block forever
clients may want timeout on foregnd jobs

workers may need to periodically run oter code besides job callback

cluster-wide cron's

keepalive
over crashes
(job state is persistent?)

other jobs - may not be good thing - not done in an hour -> alarm (e.g.)



Shortcomings
clients must conn to all servers
no replication betw servers
can solve with mysql postgreSQL replication
slower than pure messaging servers
logging not all that great

steps must be taken to assure recovery of queued msgs if a server is completely destroyed
small community - development has slowed
(on which fronts?)

rapid/rabbbit enqueue

all-or-nothing logging level 2 vs 3 big step in volume - pretyt much sux

recently devt has picked up pace again
Brian Akers (MySQL and Drizzle guy)
several new versi0ons
bug - in PHP or other?

CLint ?? also working on it
OSS proj
in C
BSD license? GPL?

priority in queues? - yes but not the way you'd think

retries in X hours / submit job @ time
new feature

boost libs C++

http://gearman.org/

mailing list, docs, related projects

#gearman on irc.freenode.net

Xing using it


PHP people extension? libs

Questions?

Justin??
website lowtraffic
gearman in db server
occasional heavy lifting
queue certain size - fire up vm's til queue only has 3-4 entries in Q

startup time for VM non-critical

Tim - Linode instance 256K ? M? instance

global config file
Capistrano cap deploy

5 twitter and 6 youtube workers etc.

Social Productivity

Web company on K Road - making a social productivity app
social Productivity
social + productivity the perfect app
human traits - one size doesn't fit all
timesheeting
suite of tools - with flexibility
what does it mean ? prob nothing
does it make sense? not really )
is it just a buzzword? probably

witrh harry ferguson @nzharry
and Jess(ica) Desmond @fromaquasar

procrastination
really believe will do better next time
denial!!
tomorrow i will....
crime and punishment / Ulysses - siberia / morocco
task threshold - how to get motivated
motivation is about the 1st 100 pages of the book
techniques - just 5 mins
e.g. tidy house for 5 mins
tend to continue once momentum starts

energizer bunny - inferior feeling :)
accountability
someone to prevent you from telling little lies to self
fear of failure
(effect on mood?)
contrary research re. sharing publically vs actually doing it?
[ask them about it]

personal / work time split
move toward integration

case studies
Facebook - workspace as well as personal lives
didn't happen! FAIL
some aspects too open for enterprise uptake
Moscovitz - peeled off another company - Asana

piles of cash

differences in how people react
overwhelm - too much info demands
Lumen - inhouse (dogfood) - beta soon?

Google+
Facebook / Asana alliance?

list
bundles projects binders
contextual communication
task-based discussions
online todo list
[Wave?]
metadata
status
all in framework of list
privacy settings
communicate re what i am working on and whats happening in life
[is there an assumption / templates re. hierarchy of groupps etc.? - else there is large setup burden

picked busiest area for applications
email / task mgmt fully converged?
e.g. Google+ / gmail / task / calendar
starting small
around the individual
lots of existing apps from ppl who worked in teams
[training?]
James and John engineers
Harry and Jess guinea pigs
[?need more guinea pigs?]

john - support to help stop procrastinating - platform on top of S/W
support network ,accountability
not trying to write another Tony Robbins self-help guru book :)
not hardwiring in particular way of doing things
GTD / other methodologies can be used with it

Jive - collab comms
mostly visible-everything model?

August beta?
individual with mentor support
[will limited scope limit its success?]
All tasks into the aplication - not on paper
the bucket a la GTD
grouping works well
not tagging or categorization
tasks can be on multiple lists
day list
rollover to next day
inbox zero
mentor can view state of the world for individual
take time out to update system before doing anything else

Google Wave - fave product ever (James?)
too complex?
designed email as if it was new thing
alt: integrate existing - lean - 37signals BaseCamp model
product attachment theory (invented and discovered had already existed)
alt: start with list and expand from there
not oversimplisctic
no barriers
not overwhelm

what's in it for mentor?
burden
personal life? Mum might be interested
people like to be in a respected position
find right person
some not interested ; some obsessive - will help with everything and overwhelm
project / subject-specific
passionate people as mentors


[luumin.com]

procrastination in a positive way
unstructured / not burdensome
can check up in a break from work

life coaches / biz coaches

Web app productivity #bca5

@snikchnz
Mal Curtis - Web app productivity
learnable
sitepoint.com
online education marketplace
web biz education freelancing etc
mal.co.nz
HTML
CSS
js
Ruby
php
Rails
Amazon EC2 deployment
macvim?
scc git + github
SASS stylesheet mgmt
RSpec simpletest
cucumber
cont integration

github
paid non-opensource

share team members

mkdir bca
cd bca
git init
git status
touch README.md
git add README.md
staged - now green (on Mac?)
commit -m "Added readme"
git status

Github stores and provides interface to GIT commmands
Githug - create new repo
existing git repo?
can add remote
push - can pull too??
git push -u origin master


SASS
syntactically Awesome Stylesheets
style with attitude
makes CSS fun again
vars
nesting
mixins
selector inheritance
[alt: stylist? stylus?]
DSL
color assignments
.scss file
bca.scss app style sheet
include in other sheets
incl without .scss extn
apple-K clears screen :) in Mac
public/stylesheets - deployed from here?
#sass --watch -c app/stylesheets:public/blah.scss
SASS is a Ruby gem
gem install sass ?

debugging with firebug ? line #'s - CSS file linenums - xref tpo .scss line # ?
break up into page etc stylesheets, buttons etc.
compression support for production?
Rails 3.1? nope - 3.09?

Unit testing? RSpec for Ruby devt
Behaviour-driven
for PHP: Simpletest
PHPUnit
learnable
define biz logic as test cases
regression alarms / reporting - unrelated coade not breaking something?
testr.dev
courses.mal.vm/dev/tests
# of passes, fails, exceptions
assertations?
assertions?


Dropbox should have done test :) -- issue from a few weeks ago?
simpletest
Cucumber
S/w dev teams describe how s/w should behave in plain text
Scenarios - outline and steps
WebRat - automate browser testing - selenium?
heavy AJAX/JS stuff needs Selenium for testing
press button -> correct page?
github andrewk behaviour
course_steps.rb
'Given' precondition
'When'
'Then'
'And I should see'
can give to nondev's to specify what should happen
coverage reports?
bundle exec cucumber featuresw/sales_page.feature
DEPRECATION_WARNING
sets up database? truncates tables
CI server push if all tests pass
(is this == production?)
diff drivers for langs
Capistrano deploy
Jenkins CI server / push

Sponno Mac apps

Payment Charles
bugs etc... real Apple guys - no contact with cust unless bad bugs
XCode
document - based app ? MDI equiv
incognito wraparound safari - doc based
winmail extractor - one window (not doc-based)
equiv dialog-based in Windoze lingo?
clockLock app - what does it do? :)
where do u start?
differnet paradigm for iPhone devt
.nib files
visual prototype - menu and window
controls
app delegate AppDelegate
new file
obj C class
locker.h header
mfile
class lock app delegate
button drop
xib
butler symbol
create control
obj on left
make instance of class locker
NSLog("hello")
wire action to button?
1-2k on winmailextractor
exchange attachment windat files blacch
=> made winmail dat viewer
not greatly lucrative yet on Mac - may improve?
vs. iPhone
incognito made $100 ?
kioskMonster $5-600
long tail - 3 years without update sorry :)
can have multiple windows etc - cf. iPhone stuck to one i/f
stickies for presentation :)
NSTaskth
fullscreen lockin Kiosk app Kioskmonster
mirror with wget
flash, js not so well for spidering
htttrack:
-free mirroring etc
rewrites link refs internal
htttrack writing to some files it shoudn't
beware 64-bit apps - old Mac intel solo 32-bit - won't work
LIPO - 64 and 32-bit packaged together
icons
screenshot
icns file
icon composer in XCode
make mult sizes
github sponno - photo file conv to multiple sizes
FS -interesting
stuck to few places to save files
/users/documents/
Textmate?
test on Guest account - permissions-minimal test
binaries include
what is an ap pon the mac?
appviz.app - directory in a zipfile
can pull other ppls apps apart easily
(how is it deployed though?)
bundles ~=
potentially difficult to profit
no kiwis making mac apps and making money
can make standalone - github etc - don't *have* to go thru App store
rush to the bottom in iOS market has reversed - up 18% yoy
lingon startup prefs
$5
coder html5 uploader CODA $99
omnigraph in mac app store
iOS games call of duty $10 on iPhone
productivity apps are top category on iPhone
(!)
namemangler $10 on appstore
juice king color mixing - iPhone sounds crazy etc
loss-leader and cross-market
focus groups? no!
think talking to 10yo kid about what u make
how to sound cool when describing it (elevator pitch)
15 - 20 yo - exciting?
check apps store
TNEF binary free winmail files
winzip extractor is one of top apps (iPhone?)
time looking what is hot
me-too
create 5 more apps the same
don't spam
- but can put up different flavours
spot holes to fill?
google search for apps?
appcharts.com
popularity
rolling heads
coins down platforms
#1 in games?
top 50 in global charts?
did the idea stick?
sucky design - redo redesign similar concept
ppl to build apps for you
online jobs
rentacoder
odesk (big)
10 pl quoting
$0.50 ph
incredible CV is cheap on ODesk too
:)
can rip off ideas - unprotected
can't do rush jobs - local advantage
risky - no trust
amazing code from ODesk - Zen :)
go, make Mac apps - free coffee for life! :)

Big Data storage etc

Peace S/W utilities - 100 row inserts per power bill in CO

RIAC
Cassandra
PostgreSQL9 has more unstructured data features
NoSQL
MongoDB
up-front schema design important
Robert O'Brien
ACID, BASE -- eventual consistency -- concensus problem
can't do shared nothing with bank balance e.g.
oops - Guy left!
hybrid solutions - relational plus noSQL -- by hand
Hadoop
Guy's back! :)
FOO - NYC? show us your stack
gone off MongoDB
(why?)
if mySQL solves problem, use it
PostgreSQL h-store engine? new
high-write vs high-read/query reqs
operationl considerations
#machines
how to develop
deployment, evolution
SQL not relational (?) - R O'B
Glen Barnes
flume central server
OLTP + analytical - conflicting needs
solution: replicate (denormalize)?
robot filter
geocode
...
other anomalies
Guy : what about huge records (but not many of them necessarily?
MongoDB grid file system
e.g. Radio Telescope etc.
CFD struct mech
scientific
hard to nail down rigid schema for metadata
Petabyte databases
conference MySQL
1P records
(link from Mark Derricutt to Guy)
TB per record
medical scans
x-ray @ cellular level 30GB per record / blob
Provenance - algorithm version etc. - where data came from and how processed
Guy involved with EU grid provenance project til 2006
use cases organ transplant privacy
Aircraft design
German Aerospace
flight simulation
airflow / CFD/ CAD meshes - pressure on surface - FEM mech deformation
100 CPU hours per run - don't want to rerun when forgot little thing like algo version
Rob O'B no longer complete self-contained record in one place - use queues more
Gear-man - Tim ?? session
graph database - transactions, actor state
neo4j ?
REDIS
CouchDB
memcachedb
greenplum?
STB amazon
XML db's Termino? (e)Xist? Berkeley (db) ?
VoltDB
Stonebraker - destroying his reputation / selling soul?
all redundancy in H/W - everything in RAM
high-freq trading
Mark D Spring data - hibernate
Tokyo? Kyoto? Sky were using Tokyo?
Hadoop / RIACK / Cassandra
Mongo most popular by far ?
promoted self by speed claims (but will lose data sometimes)
Guy teaching in Honors paper
PIG query based langs
map-reduce
couch targeting mobile
non-robust links
big data can be quite small
Data Science - O'Reilly - Data Size?
u4j New4j? scientific data (who?) neo4j
not transactional use case
=> graphs analysis
millions of nodes - look for patterns
perturbations - see whether nwk evolves
graphviz
neo4j GPL cut down - AfferoGPL license for full ACID-compliant version
designed to work around 'the cloud hole'
AGPL - must make code available even if not distributing modified project
infinitegraph
torquebase? (Tim ?)
gremlin? query language on top of Neo4J
HF trading = FPGA GPU etc coming in - big $ for sub-ms ping times in same datacentre as market servers
need to be first
Bitcoin
Oracle license $1M US - Peace
2days on paper - call centre