Very Good AI Clip about Naturally Evolving Artificial Intelligence
In: Artifical Intelligence, Video · Tagged with: AI, evoled virtual creatures, evolution, karl sims
Error with passenger-install-nginx-module – Could not find RubyGem passenger (>= 0) (Gem::LoadError)
If you are troubled with
Then try
Obviously change the location of your passenger-install-nginx-module binary.
In: Ruby on Rails, Server Config · Tagged with: nginx, phusion passenger, ruby 1.9.2
Gem Install Error – no such file to load — zlib
If you are troubled with the below
ERROR: Loading command: install (LoadError)
no such file to load — zlib
ERROR: While executing gem … (NameError)
uninitialized constant Gem::Commands::InstallCommand
Then you have installed ruby without the nessacary libraries available.
Remove the ruby install (hopefully just rvm remove 1.9.2)
Then install zlib1g-dev libssl-dev libreadline5-dev as detailed at the start of this post on installing ruby on rails on Ubuntu
Now install ruby again and try again!
Hope this helps
In: Ruby on Rails, Server Config · Tagged with: Ubuntu Lucid Lynx 10.04
Arduino controlling LED Bar – Patterns and Bouncing
So it finally arrived! After only 20 hours, thanks to www.nicegear.co.nz for the awesome quick ship.
I made a video of my Arduino Mega 2560 in action and will post the code below.
Arduino source code after the break Read the rest of this post »
In: Arduino, How To, Video · Tagged with: arduino source code, led
Arduino
Time to get into the exploding world of arduino.
I have just ordered my kit from www.nicegear.co.nz. Haven’t dealt with these guys before but have emailed back and forth and they are very responsive and interested. Good start!
I intend to convert my incapable T-Rex 450 Pro (only because I the pilot am incapable) into a mission ready UAV. They guys over at DIYDrones are busy at work getting their open source UAV projects flying high. Some amazing progress going on over there with QuadCopters and Hexacopters, even some Octocopters.
None of which are aimed at the Collective Pitch standard RC heli. Well there is ArduCopter_TradHeli running ArduCopterNG code which is due for release very soon!
Until then I am going to play around with some Arduino projects, a little breathalyzer and a range finder, separate projects… of course. Should have some fun, aka frustration getting the LCD screen cranking. I have looked at the source code, wow. That is going to keep me up late.
There is also the RAD project, Ruby Arduino Development, which lets you write Ruby code then compile it onto the Arduino platform. Sounds like fun but I might learn a little Arduino code first, so that I can get my head into it and debug it a little. Has been a while since I learnt a new language, though it is very similar to Processing, which is similar to ActionScript
In: Arduino, Artifical Intelligence · Tagged with: arduino
Compiling Firefox with jssh Support on Ubuntu
sudo apt-get build-dep firefox
sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev libglu1-mesa-dev
hg clone http://hg.mozilla.org/releases/mozilla-1.9.2/ 192src
#wait 10 minutes
cd mozilla-central
gedit .mozconfig
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options [email protected]@/firefox-jssh
ac_add_options –enable-extensions=default,jssh
ac_add_options –enable-webservices
ac_add_options –enable-application=browser
autoconf2.13
cd js/src
autoconf2.13
cd ../..
make -f client.mk build
[sudo apt-get install yasm]
[possible errors]
/mozilla-central/config/rules.mk:1877: *** .js component without matching .manifest
make[4]: *** [jssh_export] Error 2
make[4]: Leaving directory `/home/jordan/Documents/hg/mozilla-central/firefox-jssh/extensions’
make[3]: *** [export_tier_app] Error 2
make[3]: Leaving directory `/home/jordan/Documents/hg/mozilla-central/firefox-jssh’
make[2]: *** [tier_app] Error 2
make[2]: Leaving directory `/home/jordan/Documents/hg/mozilla-central/firefox-jssh’
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/jordan/Documents/hg/mozilla-central/firefox-jssh’
make: *** [build] Error 2
I got around those errors by using “hg clone http://hg.mozilla.org/releases/mozilla-1.9.2/ 192src” and not mozilla-central.
[/]
./firefox-jssh/dist/bin/firefox -jssh
telnet localhost:9997
In: Ubuntu Tricks, Uncategorized · Tagged with: fire watir, Firefox, jssh
Rails or Ruby Memcached Gem on Ubuntu and Linux
Get the following error when trying to install memcached ruby gem on your Ubuntu or Linux box?
rlibmemcached_wrap.c:12413: error: ‘sasl_callback_t’ undeclared (first use in this function)
rlibmemcached_wrap.c:12413: error: ‘result’ undeclared (first use in this function)
rlibmemcached_wrap.c:12424: error: expected expression before ‘)’ token
rlibmemcached_wrap.c: In function ‘Init_rlibmemcached’:
rlibmemcached_wrap.c:13694: error: ‘SASL_OK’ undeclared (first use in this function)
make: *** [rlibmemcached_wrap.o] Error 1
Gem files will remain installed in /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-1 for inspection.
Results logged to /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-1/ext/gem_make.out
Quick fix
Then delete the gem folder with the current memcached stuff in it, for me that is
THEN
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: Memcached, Ruby, rubygems
Fun HTML5 & Javascript Game – Infection
http://www.mattpelham.com/infection/ Is an entertaining HTML5 game, nice work! Now make it multi-player
In: Gaming, Web Development · Tagged with: HTML5