無料と有料もまとめました。スペックは各サイトに入って確認してください。
AWS
AppHarbor
Cloud Foundry
Force.com
Heroku/SalesForce
Rackspace
VMware vCloud
Windows Azure
2013年3月24日日曜日
2013年3月13日水曜日
Ruby ri Problem In Windows (Solved)
I tried ri in windows 8
Console> ri String#upcase
It returned error message about not having such function.
Solution is found on Stack Overflow
SOLUTION
gem install rdoc-data
# Regenerate system docs
rdoc-data --install
# Regenerate all gem docs
gem rdoc --all --overwrite
# Regenerate specific gem doc with specific version
gem rdoc gemname -v 1.2.3 --overwrite
Console> ri String#upcase
It returned error message about not having such function.
Solution is found on Stack Overflow
SOLUTION
gem install rdoc-data
# Regenerate system docs
rdoc-data --install
# Regenerate all gem docs
gem rdoc --all --overwrite
# Regenerate specific gem doc with specific version
gem rdoc gemname -v 1.2.3 --overwrite
2013年1月30日水曜日
Rubyを始めました。
Ruby
Gem
DevKit
Rails
を順番にインストールしてから、
ここのチュートリアルを見ながら、やってみたら、
http://guides.rubyonrails.org/getting_started.html
いきなり、こんなエラーが出てきました。
ExecJS::RuntimeError in Home#index
いろいろ調べたら、
node.jsをインストールしたら解決できそうですが、
こんなわけないだろうと思って・・・
http://www.jamiestarke.com/2012/01/28/fixed-execjs-runtimeerror-and-fatal-error-v8contextnew-when-deploying-rails-to-shared-hosting/
書いた方法通り、pipelineをfalseにした後、
無事に出来ました!3939!
Gem
DevKit
Rails
を順番にインストールしてから、
ここのチュートリアルを見ながら、やってみたら、
http://guides.rubyonrails.org/getting_started.html
いきなり、こんなエラーが出てきました。
ExecJS::RuntimeError in Home#index
Showing C:/TestGround/RubyTest/blog/app/views/layouts/application.html.erb where line #6 raised:
(in C:/TestGround/RubyTest/blog/app/assets/javascripts/home.js.coffee)
Extracted source (around line #6):
3: <head>
4: <title>Blog</title>
5: <%= stylesheet_link_tag "application", :media => "all" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8: </head>
9: <body>
Rails.root: C:/TestGround/RubyTest/blog
Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___30976759_29317332'
いろいろ調べたら、
node.jsをインストールしたら解決できそうですが、
こんなわけないだろうと思って・・・
http://www.jamiestarke.com/2012/01/28/fixed-execjs-runtimeerror-and-fatal-error-v8contextnew-when-deploying-rails-to-shared-hosting/
書いた方法通り、pipelineをfalseにした後、
無事に出来ました!3939!
2013年1月24日木曜日
HaskellでGlossライブラリーを試してみました。
いっぱいサンプルがありますが、もっと簡単の作りたいですから、
まる一個だけ作りました。
まる一個だけ作りました。
import Graphics.Gloss import Graphics.Gloss.Interface.Pure.Simulate data Cir = Cir Float Float deriving (Show) render::Cir->Picture render (Cir x y) = ThickCircle x y start:: Cir start = Cir 100.0 10.0 trans::ViewPort -> Float -> Cir -> Cir trans _ _ (Cir x y) = Cir x y main::IO() main = simulate (InWindow "NATZ" (800,600) (10,10)) (makeColor 0.5 1.0 0.5 1.0) 0 start render trans
WindowsにHaskell gnuplotとdarcsのインストール
普通に
cabal install gnuplot
はできなかった。
エラーメッセージを見たら、ずっとdependencyのcolourをダウンロードできなかったと・・・
そこで、直接ソースからインストールしようと思って、
これってやってみよう!
darcs get http://code.haskell.org/gnuplot/
じゃ、darcsは必要じゃん。
cabal install darcs
はだめだった。
darcsのホームページをみたら、
正解はこれだ。
cabal install darcs -f-curl
cabal install gnuplot
はできなかった。
エラーメッセージを見たら、ずっとdependencyのcolourをダウンロードできなかったと・・・
そこで、直接ソースからインストールしようと思って、
これってやってみよう!
darcs get http://code.haskell.org/gnuplot/
じゃ、darcsは必要じゃん。
cabal install darcs
はだめだった。
darcsのホームページをみたら、
正解はこれだ。
cabal install darcs -f-curl
2013年1月23日水曜日
HaskellとGTKでHello World
helloworld.hs
ghc --make -optl-mwindows helloworld.hs
import Graphics.UI.Gtk main = do initGUI window <- windowNew button <- buttonNew set window [ containerBorderWidth := 10, containerChild := button ] set button [ buttonLabel := "Hello World" ] onClicked button (putStrLn "Hello World") onDestroy window mainQuit widgetShowAll window mainGUICompile時は
ghc --make -optl-mwindows helloworld.hs
WindowsにHaskell HDBC-sqlite3のインストール
普通に
cabal install HDBC-sqlite3
を実行するだけじゃ、こんなエラーが出てきます。
setup: Missing dependency on a foreign library: * Missing C library: sqlite3
cabal install HDBC-sqlite3
を実行するだけじゃ、こんなエラーが出てきます。
setup: Missing dependency on a foreign library: * Missing C library: sqlite3
This problem can usually be solved by installing the system package
that provides this library (you may need the "-dev" version).
If the library is already installed but in a non-standard location
then you can use the flags --extra-include-dirs= and --extra-lib-dirs=
to specify where it is.
問題の解決は
1.このサイトSQLiteから、
sqlite-dll-win32-x86-3071502.zip
をダウンロードして解凍してから、
中の.dllファイルを環境変数%PATH%中にあるDirectoryに入れる。
たとえば、system32とか・・・C:\Foo\とか
2.同じサイトから
sqlite-amalgamation-3071502.zip
をダウンロードして解凍してから、
中の.hファイルを同じフォルダに入れる。
3.再びコンソールでインストール
cabal install HDBC-sqlite3 \
--extra-lib-dirs="C:\Foo" --extra-include-dirs="C:\Foo"
sqlite-dll-win32-x86-3071502.zip
をダウンロードして解凍してから、
中の.dllファイルを環境変数%PATH%中にあるDirectoryに入れる。
たとえば、system32とか・・・C:\Foo\とか
2.同じサイトから
sqlite-amalgamation-3071502.zip
をダウンロードして解凍してから、
中の.hファイルを同じフォルダに入れる。
3.再びコンソールでインストール
cabal install HDBC-sqlite3 \
--extra-lib-dirs="C:\Foo" --extra-include-dirs="C:\Foo"
登録:
投稿 (Atom)