After hours of frustration after a failed upgrade attempt, try restoring without the power plug. The usb alone should be enough to power your AppleTV 2, and for some odd reason, causes the restore to actually work.
So you’d like to start a Web Company, eh?
March 7, 2012 – 8:02 pm
“Men wanted for hazardous journey. Small wages. Bitter Cold. Long months of complete darkness. Constant danger. Safe return doubtful. Honour and recognition in case of success.”
This is the perhaps most accurate description of a job at an actual startup. If this sounds like something you’d be interested in, read on.
Remember, Most startups fail. Failing, however, is a crucial step towards not failing.
General advice: read as many of Paul Graham‘s essays as you possibly can. from the top down. Paul Graham has literally helped several hundred startups get off the ground. Some essays will not really be useful right now, but the ideas in there are generally very very good. Check out news.ycombinator.com on a fairly regular basis. Read the comments, lookup every word and acronym you don’t know. Watch these videos
Try to answer these questions as quickly and cheaply as possible:
- what is the addressable market size? meaning, in the world, right now, how many people would pay for this? How many people would be interested to the point of being regular visitors?
this is intended to give some sort of idea about how big the opportunity is.Use tools like quantcast.com to help evaluate how big the audience is that your product might reach. Imagine if you are making a management tool for independant contractors: How many people visit http://www.contractortalk.com/ on a monthly basis? that’s about your addressable market. - figure out the minimum viable product. Try to get your product down to one sentence. Perhaps even one or two pages. (not counting boilerplate, like “about us”, “FAQ” etc.)Don’t get caught up in vision of the final product. No plan ever survives first contact with the customer. Try to get to the very essence of what it is that your idea does. It should literally be one sentence, or possibly less than a sentence. The minimum viable product for google was literally a place to type in text, hit enter, and get search results from a database of websites.When people think of ideas, they go from version 0 to version infinity almost immediately. You should never stop thinking about version infinity, the absolute pinacle of what it is that your idea could be, but, you should laser focus on version 0.1, the absolute minimum of what it is that your idea does. Literally, the one thing, that without it, your idea doesn’t exist, it’s still an idea. It really should be one thing. sometimes you can get away with two. sometimes.Then, you make the one thing and you show it to as many people as possible. Maybe you don’t even make it, you tell people online that you are going to make it, you setup a website where people can give you their emails so that you can tell them when you make it, and then, when you have their emails, you ask them about it, you get them involved, you show them mockups, get them to beta test, ask them to pay you for it upfront. the works. Your customers are your partners.
- Fail often, fail fast, and fail cheaply.
failure is the process of stumbling towards success. This means relentlessly testing assumptions that you have as quickly as possible, with as little downside as possible. the difficulty is figuring out how to test accurately yet also as cheaply as possible. thus, use what is already there to try to invalidate your assumptions. Think of it like science: you’ve got strong hunches that you want to prove correct, but you can’t be sure of them, and aren’t going to bet the farm until you’ve got a sure thing. The only way to be sure is to test it and be honest with yourself about the results.
How are you going to fail as fast as possible? Remove as many people, steps, and processes as possible from getting your idea in front of someone who doesn’t care about you. (Your family and friends are useless in this regard, insofar as they will not tell you that your idea is a stinker)
Crucially, if your idea happens to be related to computer and software in any way shape or form, learn how to program your computer. There are a ton of awesome resources out there to learn how to write software and for starting a business, but it can be daunting to try to separate the wheat from the chaff.
The two best languages at the moment are, in my humble opinion: ruby and javascript. Ruby because it is easy and understandable, yet also powerful, javascript because it is ubiquitous, interesting, and easy to play with: if you’ve got a browser, you can mess around with javascript. I’d look through each one below and see what seems like it’s your thing. Also, remember: it’s not that hard and more importantly there is no speed limit.
Free ruby stuff:
- tryruby.org
- awesome interactive web tutorial
- Ruby and Ruby on Rails ( ruby on rails is a framework used to make web applications with the ruby programming language)
- Excellent, not actually all that hard: Learn Ruby the Hard Way
- Silly, alot less hard. Why’s Poignant Guide to Ruby
Free javascript
- play with javascript online easily: jsfiddle.net/ (truly excellent resource to learn)
- Google Code Edu (probably a good place to start if you want to do javascript, as it covers HTML and CSS too)
- the standard javascript: Mozilla Javascript Guide
- also excellent, but not interactive: eloquentjavascript.net
- very nerdy,but damn, it’s good: Opera’s Introduction to Web Standards
- Node.js, it’s really awesome, basically, the same language for both the server and browser? amazing. nodebeginner.org
- Now, in terms of paid classes, I’d suggest Lynda.com, as I’ve used it in the past and it’s excellent.
At this point, you should be ready to start failing. Go forth, claim your destiny.
Stay tuned for the next installment of this multi-part series.
The actual graylog2 installation instructions
February 18, 2012 – 1:01 am
***UPDATE***
New graylog2 is out. Probably means these instructions are waay out of date. YMMV.
Graylog2 rocks, however, the install instructions leave much to be desired, simply because they don’t mention any of the other required services and how those services should be setup.
I’m here to help.
This writeup is going to written for Ubuntu 10.04, however, if you’re installing graylog, I assume you know how to install packages on your linux distribution of choice.
First, we’re going to need all the prerequisite libraries and servers: mongo, elasticsearch, and the java jdk.
Here are some links that helped me:
mongodb ppa instructions for Ubuntu
Mongo user creation.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
wget https://github.com/downloads/Graylog2/graylog2-server/graylog2-server-0.9.6.tar.gz wget https://github.com/downloads/Graylog2/graylog2-web-interface/graylog2-web-interface-0.9.6.tar.gz tar -xzf graylog2-server-0.9.6.tar.gz tar -xzf graylog2-web-interface-0.9.6.tar.gz cd graylog2-server-0.9.6 cp graylog2.conf.example /etc/graylog2.conf cd .. mv graylog2-server-0.9.6 /opt/graylog2-server/ tar -xzf graylog2-web-interface-0.9.6.tar.gz mv graylog2-web-interface-0.9.6 /opt/graylog2-web-interface wget -o /etc/init/graylog2-server.conf https://raw.github.com/Graylog2/graylog2-server/master/misc/upstart/graylog2-server.conf # needed to compile ruby apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion libcurl4-openssl-dev # getting ruby for the web interface. bash -s stable < http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages # the default ubuntu mongodb is horribly broken apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list apt-get update && apt-get install mongodb-10gen -y # bind only on the localhost echo "bind_ip = 127.0.0.1" >> /etc/mongodb.conf /etc/init.d/mongodb restart # elasticsearch wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.0.deb dpkg -i ./elasticsearch-0.19.0.deb # only bind to localhost echo "network.bind_host: 127.0.0.1" >> /etc/elasticsearch/elasticsearch.yml #possibly necessay, if you start to get the "out of file descriptors" error in # /var/log/elasticsearch/elasticsearch.log echo "fs.file-max = 100000" >> /etc/sysctl.conf; sysctl -p |
Elastic search should be reasonably configured from the start for our purposes.
Setting up the mongodb user and database ( yes, I know, 123, but it’s the default, and mongodb should only be listening to localhost.)
|
1 2 3 4 5 6 |
$ ./mongo use admin db.addUser("theadmin", "anadminpassword") db.auth("theadmin","anadminpassword") use graylog2 db.addUser("grayloguser","123") |
you’ll also want to specify these values explicitly in the mongoid configuration file in the webserver. In /opt/graylog2-web-interface/config/mongoid.yml add these values, and delete the other production values.
|
1 2 3 4 5 6 7 |
# or specify values manually production: host: localhost port: 27017 username: grayloguser password: 123 database: graylog2 |
the nginx upstart script
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# nginx description "nginx http daemon" start on (filesystem and net-device-up IFACE=lo) stop on runlevel [!2345] env DAEMON=/opt/nginx/sbin/nginx env PID=/opt/nginx/logs/nginx.pid expect fork respawn pre-start script $DAEMON -t if [ $? -ne 0 ] then exit $? fi end script post-stop script start-stop-daemon --stop --pidfile $PID --name nginx --exec $DAEMON --signal TERM end script |
and this is what your /opt/nginx/conf/nginx.conf should look like:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; pid logs/nginx.pid; events { worker_connections 1024; } http { passenger_root /opt/graylog2-web-interface/vendor/ruby/1.9.1/gems/passenger-3.0.10; passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby; include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip on; server { listen 80; server_name graylog2.headliner.fm; root /opt/graylog2-web-interface/public; # |
I used this upstart scripts for the graylog2-server. if you copy and paste it into your /etc/init files (it’s late, if you need the exact commands, write a comment…)
now, for the magic:
|
1 2 3 4 |
/etc/init.d/mongodb start /etc/init.d/elasticsearch start service graylog2-server start service nginx start |
and you’re off.
Poetry! They should have sent a poet. So beautiful. So beautiful… I had no idea.
November 13, 2011 – 5:05 pm
[vimeo http://vimeo.com/32001208 width=700 height=393]
You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, “Look at that, you son of a bitch.
— Edgar Mitchell, Apollo 14 astronaut, People magazine, 8 April 1974.
The Intuitive Mind is a sacred gift.
October 24, 2011 – 2:30 pm
and the rational mind is a faithful servant.
[youtube http://www.youtube.com/watch?v=dFs9WO2B8uI&w=700]
Steve Jobs
October 5, 2011 – 7:42 pm
Remembering that I’ll be dead soon is the most important tool I’ve ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure – these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.
—Steve Jobs
2006 Stamford Commencement Address
This quote changed my life when I heard it two years ago. You will be missed, Steve, but damn, well done.
Oh When The Saint Go Marching In.
September 29, 2011 – 5:21 pm
[youtube http://www.youtube.com/watch?v=wyLjbMBpGDA&w=700]
Richard Feynman on doubt, uncertainty and religion
September 26, 2011 – 3:05 pm
Update: Feynman on Beauty
Pleasure in Intelligent Dissent
September 26, 2011 – 1:36 pm
Find more pleasure in intelligent dissent that in passive agreement, for, if you value intelligence as you should, the former implies a deeper agreement than the latter.
– Bertrand Russell
Print Your Own Gun At Home
September 20, 2011 – 2:14 pm
Anyone with a 3d printer, available from several different sources at prices close to or under $1,000, can now print out parts for an AR-15 assault rifle.
The AR-15 lower receiver and A 3d printable model for a 5 round magazine .
The Lower Receiver is the frame that holds together all the other pieces of the firearm. In the States, all the other pieces can be purchased without a permit – over the counter or through the post. The Lower Receiver is the only part which requires a background check or any other kind of paperwork before purchase.
Typically this part is made of aluminium. A rifle with a Lower Receiver made of plastic can be perfectly functional.
The revolution will be printed at home.
What Does It Feel Like to Fly Over Planet Earth?
September 19, 2011 – 5:36 pm
Photographs from ISS the stitched together into a fantastic short video.
This movie begins over the Pacific Ocean and continues over North and South America before entering daylight near Antarctica. Visible cities, countries and landmarks include (in order) Vancouver Island, Victoria, Vancouver, Seattle, Portland, San Fransisco, Los Angeles. Phoenix. Multiple cities in Texas, New Mexico and Mexico. Mexico City, the Gulf of Mexico, the Yucatan Peninsula, Lightning in the Pacific Ocean, Guatemala, Panama, Columbia, Ecuador, Peru, Chile, and the Amazon. Also visible is the earths ionosphere (thin yellow line) and the stars of our galaxy.
Moore’s Law vs. Processor Power Efficiency
September 16, 2011 – 5:23 pm
As CPU clock speeds start to level off, researchers have noticed that another power law has appeared in the electronics industry: power efficiency doubles every 18 months.
If you look at any human endeavor that enjoys the benefits of the application of tremendous amounts of determined brainpower, the metrics by which that endeavor is considered a success have a tendency to obey power laws. The periodicity of each, however, varies from field to field. See Kevin Kelly excellent research on the subject of Moore’s Law and air speed records. Processor power efficiency is the key now that portability is of the utmost importance and the rate of growth of battery storage capacity, while itself is also obeys a power law, the chemical nature of the endeavor leads to a much longer doubling time. This leads to all sorts of fun facts such as:
Imagine you’ve got a shiny computer that is identical to a Macbook Air, except that it has the energy efficiency of a machine from 20 years ago. That computer would use so much power that you’d get a mere 2.5 seconds of battery life out of the Air’s 50 watt-hour battery instead of the seven hours that the Air actually gets. That is to say, you’d need 10,000 Air batteries to run our hypothetical machine for seven hours.
You can hold yourself back from the sufferings of the world
September 16, 2011 – 5:12 pm
You can hold yourself back from the sufferings of the world, that is something you are free to do and it accords with your nature, but perhaps this very holding back is the one suffering you could avoid.
– Franz Kafka

Home