On Version 4.1.2: % vi /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf host allsides { hardware ethernet 00:0c:29:1e:93:11; # check HWaddr using ifconfig. fixed-address 192.168.39.101; } % vi /etc/hosts 192.168.39.101 dev Restart the guest OS (Ubuntu) and VMware itself. It seems when upgrades VMware it’ll be overwritten dhcpd.conf.
Author Archives: Nobu
Built a tiny website that shows iPhone apps featured in @TechCrunch
iPhone Apps Featured in @TechCrunch This website shows bunch of iPhone apps that are featured in TechCrunch. Top 25 apps on App Store is usually filled by games but those are not very attractive to me. TechCrunch writes about iPhone apps which were made by brand new startups, and I like to check them out. [...]
35 Live Flipped Classrooms
Here are 35 live examples of Flipped Classroom, and still counting. The order doesn’t mean anything. Table view Open with Google Spreadsheet Hope it saves educators’ research time. I’ve tried to find school/teacher name, location, grade, subject, tools and data/feedback for each example. Some cells are still blank. Please let me know if you’d like [...]
Upgrade MongoDB 1.8 to 2.0 on CentOS5.7
As 2.0 Release Notes mentions, it required to remove 1.8 first. % sudo yum remove mongo-stable-20110131-mongodb_1 % vi /etc/yum.repos.d/10gen.repo % cat /etc/yum.repos.d/10gen.repo [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 % sudo yum install mongo-10gen-server When I tried to yum update mongo-stable, got conflict error “Error: mongo18-10gen conflicts with mongo-10gen”. I also needed to rewrite yum repository since [...]
Watir + Cucumber environment
/Users/nobu/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.9.1/lib/selenium/webdriver/firefox/launcher.rb:77:in `connect_until_stable’: unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) (Selenium::WebDriver::Error::WebDriverError) I got this error with Firefox 8 (beta channel). With 7.0.1 which is the stable version, works well. On this article it uses Celerity, but it gets the below error: % HEADLESS=1 cucumber Celerity only works on JRuby at the moment. (RuntimeError) [...]
“–coverage-html” option doesn’t run on PHPUnit 3.6.0RC4
3.6RC4 has a bug in line 288 of TextUI/Command.php. –coverage-html option isn’t parsed correctly. Even I fixes the misspelling it causes another error, and also the latest source code on Github looks very different from RC4, so I just gave up to use RC4. Upgrade to 3.6RC4 from 3.5 took some time and downgrade as [...]
“TypeError: ‘undefined’ is not an object” in JavaScript on Safari
jquery-tmpl causes the below error when wrap is called like {{wrap () “#id”}} on Safari (5.1). It should be {{wrap “#id”}}. No parentheses. On Chrome, it works well either way. jquery-tmpl is no longer actively developed, so I should use jsrender or something else anyways. TypeError: ‘undefined’ is not an object (evaluating ‘call._’)
Jasmine install memo
Jasmine + Sinon.JS looks neat. I just tried to play around on Amazon AMI. yum install ruby-devel rubygems gem install rspec-expectations gem install rake cd working-directory cd tests jasmine init rake jasmine your-laptop:% ssh sandbox -L 10000:127.0.0.1:8888 Access http://127.0.0.1:10000/ from your browser.
A Chrome Extension: Keyboard Shortcuts for Facebook
The Chrome extension provides Gmail like keyboard shortcuts for Facebook. Currently it supports: j: down one item on your News Feed k: up u: jump to the top Download via Google Web Store Source code Thanks! keyboard icons
Slanted tabular menu with CSS3
Some of variables are hard coded. To make it flexible, you may want to use JavaScript. The demo is a vertical menu, but making a horizontal menu shouldn’t be difficult. <div style="margin-top:100px;" class="slant"> <div class="contents first">menu1</div> </div> <div class="slant second"> <div class="contents">menu2</div> </div> div.slant { width: 150px; height: 100px; -moz-transform: matrix(1, -0.2, 0, 1, 0, [...]