Entries from 2012-01-01 to 1 year

Mininetのセットアップ

スタンフォード大学で開発されているMininetというツールを使うとOpenFlowを気軽に試せるという事で、試しにセットアップした際のメモを以下に記載しておく。 使用環境 ホストOS: Mac OS X 10.8.2 仮想化ソフト: VirtualBox 4.2.6 Mininetのセットアップ 基…

How to stop "Listen has fallen back to polling" warning of Sass while watching for changes.

You would have a following warning message while you are trying to watch for changes with Sass. --------------------------------------------------------------------------- WARNING: Listen has fallen back to polling, learn more at https://g…

MacBook Proへの移行でやった事メモ

Mac

2008年の末にMacBookを買ってから約4年ほど使用して来たのだが、流石に動作が重くて厳しくなって来たので、つい先日MacBook Pro 15インチ Retinaディスプレイモデルを購入。 データの移行はMacの移行アシスタントとを使ったのであっさりと終わったのだが、一…

Codecademyのベータテストに参加する方法

最近オンラインでプログラミングを学べるサイトが沢山出てきたが、その中の一つCodecademyはJavaScriptとjQueryを中心に学ぶことが出来る。 しかし、このCodecademyのベータテストに参加すると、JavaScriptに加えてRubyやPythonも学ぶことが出来るようになる…

Keyboard shortcuts for HP WebOS running in VirtualBox on Mac OS.

fn + left --> Pushing Home button (Minimizes and maximizes the card) fn + right + right --> Showing lock screen fn + F6 + F9 --> Rotating device clockwise fn + F9 + F6 --> Rotating device counterclockwise left or right --> Switching the ap…

Google OAuth認証をローカル開発環境でテストした際のメモ

最近、ドットインストールで楽しくプログラミングの勉強をしているのだが、http://dotinstall.com/lessons/google_connect_phpで少し躓いた所があったのでメモしておく。 まず、Webサービスを開発する演習の場合、私はMac OS X上のVirtualBoxにCent OSをイン…

How to solve “Failed to validate oauth signature and token” error message on Twitter Oauth.

You would receive this error message from Twitter when you try to get request token. In this case, you can solve the error message if you make your system clock be accurate.

How to set up ntp on Cent OS.

1. Install ntp. # yum install ntp 2. Turn on service. # /sbin/chkconfig ntpd on 3. Synchronize the system clock. # /sbin/ntpdate pool.ntp.org 4. Start ntp. # /etc/init.d/ntpd start

How to turn on the Java applet plug-in for browsers.

If you saw a message that said "Inactive Plug-in" when you wanted to play a Java applet game or something, turn on the Java applet plug-in for browsers. It's vary easy. Launch "Java Preferences". You can find it by using Spotlight. Check "…

How to remove "event.layerX and event.layerY are broken and deprecated in WebKit..." warning message.

If you see the following warning message on your javaScript console of Google Chrome, you have to update jQuery to the latest version. --------------------------------------------------------------------------------------------------------…

言語別の乱数生成方法

0からnまでの整数の乱数を生成する方法を、言語別にメモしておく。 C #include <stdlib.h> srand(time(NULL)); rand() % (n + 1); C# Random r = new Random(); r.Next(n + 1);Java Math.floor(Math.random() * (n + 1)); JavaScript Math.floor(Math.random() * (n + </stdlib.h>…

MacPorts command note

Update all packages. $sudo port selfupdate $sudo port sync $sudo port upgrade outdated Uninstall old ports $sudo port uninstall inactive

How to remove "Warning: xcodebuild exists but failed to execute" warning message of MacPorts.

Run the following command. $ sudo xcode-select -switch /Applications/Xcode.app

Test post

DSCF0102.JPG Fort Collins, CO Freeskier Visits Tanner Hall In Park City

MySQL commands I learned today.

alter table [tablename] add [columnname] varchar (20); Add a new column to a table. alter table [tablename] drop [columnname]; Delete a column from a table. alter table [tablename] change [columnname] [newcolumnname] varchar (20); Change a…

MySQL commands I learned today.

mysql -u [username] -p; Login a sql server. show databases; List all databases on the sql server. create database [databasename]; Create a database on the sql server. drop database [databasename]; Delete a database on the sql server. grant…

How to set a root password for MySQL.

To setup root password for first time, use mysqladmin command at shell prompt as follows: $ mysqladmin -u root password NEWPASSWORD MySQL Change root Password

Test Post

This is a test post.