This shop will be powered by Are you the store owner? Log in here
This shop will be powered by Are you the store owner? Log in here
John Nunemaker, top ruby blogger of 2008, just posted about RailsTips.org’s awesomely expanded footer. If you click through to the full post, you’ll see his custom plugin pulling the most popular articles from his Mint stats. Mephisto is officially back! The 0.8.1 release features 157 patches since the start of the month, and several major improvements, including: Support for Rails 2.2. Unit tests
Rails製CMS “mephisto” 2007年 3月 7(水曜日) ちょっとしたブログ的なモノを作る事になった。 もちろんSerendipityでなんら問題は無いんですが せっかくだから俺はこのRails製CMSを選ぶぜ。 Rails製Blogツールと言えばtypoが有名でございます。 CMSと言えばRadiantでしょうか。 typoとRadiantの中間くらいに位置するのがmephisto(なんかダウンしてますが)。 wollzelleのtypestorming、fluxiom blogやprototypejs.orgで使われています。 CuttingEdgeじゃないですか。なかなか香ばしい。 Railsのバージョンは1.2系を想定しているので、リポジトリから開発版をチェックアウト。 tzinfoを必要とするようなのでgemで入れる。 gem install tzi
Typo is a modern, lightweight, comprehensive, full featured Weblog engine using Ruby on Rails. It’s been around since 2004 and probably the oldest open source project based on Ruby on Rails. It has now been replaced by Publify (recommend by Blog Starter), and this site is simply an archive of the past content. Typo provides you with everything you need to easily publish content on the Web. Multi
最近オープンしたエミナルクリニックの徳島院がめっちゃ気になるなぁ。 医療脱毛なのにすごい安くていい評判も聞くけど、ほんとに痛くないのかな? 通っている人の口コミをみてみたいなぁー。 なんて気になったので、エミナルクリニックの徳島院についてSNSやネットで調べてみました。 そう思ってSNSを中心に調べてみたら、、、口コミや評判も良いじゃない♪ ちなみに、似たようなサービスや商品があるかも?なので、今回調べてみたのはこちらになります。 オープンしました! エミナルクリニックの徳島院ですが、すでにオープンしています!(2021年4月9日オープン済) もちろんですが、オープンしたてなんでめっちゃ予約が取りやすいです。 ただし!!人気のある医療脱毛院なので早めの予約が良いかも?!
仕訳帳や総勘定元帳などを紙に印刷するために ruby から PDF を出力することにしました。ruby から PDF を扱えるライブラリはけっこうあるようですが、日本語を使えて pure ruby な pdf-writer を利用することにします。 pdf-writer を使うには下記のものが必要です。 pdf-writer 1.1.3 http://raa.ruby-lang.org/project/pdf-writer/ trans-simple 1.3.0 http://raa.ruby-lang.org/project/trans-simple/ color-tools 1.3.0 http://raa.ruby-lang.org/project/color-tools/ pdf-writer日本語フォントパッチ http://www2s.biglobe.ne.jp/~Nori/r
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
open("./data.jpg","w") do |fh| fh.binmode fh.write formData['imgData'][0].read end ファイルをアップロードするにはcgiライブラリを利用しファイルのデータを読み込みサーバー側にファイルとして書き込みます。ここではあらかじめ書き込むファイル名を決めてありdata.jpgという名前にしてあります。このdata.jpgは第三者も書き込みができるようなパーミッション(666)になっている必要があります。 #!/usr/bin/ruby require "cgi" formData = CGI.new print "Content-type: text/html\n\n" print "Now Uploading...<br>" open("./data.jpg","w") do |fh| fh.binmode fh.
Rubyで以下のようなファイルアップロードスクリプトを書いてみたのですが、うまく動きませんでしたので、質問させていただきます。 いくらアップロードしようとしても保存されないのです。 ご指導の程をよろしくお願いします。 up.cgi #!/usr/local/bin/ruby print "Content-type: text/html\n\n" require "cgi" lock = Lock.new lock.locking { form = CGI.new file_name = "/virtual/User/public_html/files/" + form['ffile'].original_filename.split(/(\\|\/)/)[-1] print form['ffile'].original_filename op
Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at mysql4-m. This could mean your host's database server is down. Are you sure you have the correct username and password? Are you sure that you have typed the correct hostname? Are you sure that the database server is
String#stripは文字列前後の空白を削除します。 " Hello, world! ".strip #=> "Hello, world!" String#strip!は文字列前後の空白を削除します(破壊的メソッド)。 >> " Hello, world! ".strip => "Hello, world!" >> "\t\t\tHello, world!\n\n\n".strip => "Hello, world!" >> s = " Hello, world! " => " Hello, world! " >> s => " Hello, world! " >> s.strip => "Hello, world!" >> s => " Hello, world! " # String#strip は非破壊的 >> s.strip! => "Hello, world!" >> s =
2006年06月17日21:30 カテゴリLLの夏Lightweight Languages LLR2006 - 1,000,000(番目|まで)の素数 キミならどう書く 2.0 - ROUND 1 - ? Lightweight Language Ringお題は「100までの整数から素数を列挙せよ」です. に対して mputの日記。 - キミならどう書く 2.0 - ROUND 1 - 100までではちょっと上が小さすぎる。「最初の1,000,000個」とかに変更すべき。ここまで大きければHaskellでも素朴なsieveでは表示できなくなる*1ので、腕の見せ所となる。 というツッコミが来たので、Haskell記事がunder constructionということもあってやってみた。 Javascriptを追記。 ただし、他との整合性から、「最初の1,000,000個」ではなく、「1,00
Got 15 minutes? Give Ruby a shot right now! Ruby is a programming language from Japan (available at ruby-lang.org) which is revolutionizing the web. The beauty of Ruby is found in its balance between simplicity and power. Try out Ruby code in the prompt above. In addition to Ruby's builtin methods, the following commands are available: help Start the 15 minute interactive tutorial. Trust
Last modified:2013/09/30 13:37:46 Keyword(s):[Always <a href="http://qoquvmcvwvt.com">reiserhfng</a> to hear a rational answer.] References: Put the key search terms you want in the <title> tags of the page. Don't bethor putting keywords elsewhere.Make sure that you don't have broken links on the page, keep content up-to-date, have good content, and try to get respectable sites to link to you. ~ M
いえ、何か新機軸があるわけではありません。 def fib_gen() a, b = 1, 1 while yield(a) a, b = b, a + b end end fib_gen() do |x| print x, " " x < 5000 end #=> 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765単に練習しているだけです。 class Fib def initialize @a, @b = 0, 1 end def next @a, @b = @b, @a + @b @a end end fib = Fib.new 20.times { print fib.next(), " " } #=> 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 15
おとといのフィボナッチ数列の続きです。id:sumimさんが、call/cc を使ったコルーチンもどきでフィボナッチ数列という楽しいプログラムを書いていらしたので、便乗させていただきました。 違うところは、callccで保存する環境を直接ローカル変数にしたのと、あちこちリネームしたのと、元のresumeというprocをインライン展開したのと、unlessを修飾子にした点です。 fib_loopのほうはフィボナッチ数列を作り出す無限ループになっていて、fib_nextを呼び出す20.timesのループと協調しながら(コルーチン的)動いています。 # Based on http://d.hatena.ne.jp/sumim/20060417/p1 continue = output = nil fib_loop = proc {|a, b| loop { callcc {|continue|
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く