JRuby Users JP :: Home Page
http://jruby-users.jp/
JRubyとWebLogicとの連携(EJB, JMS, UserTransaction) (hsato's weblog)
http://www.fourmeisters.com/blog/hsato/2007/08/jrubybea_weblogic_server.html
JRubyは前途有望であるが、成熟しているわけではない/GrizzlyでJRuby on Rails編 (recompile.net)
http://recompile.net/2007/05/jrubygrizzlyjruby_on_rails.html
JRubyチュートリアル:CodeZine
http://codezine.jp/article/detail/1647?p=2
Pythonの日本語処理ではまった。。。
BOM付きで保存しないとNG。
import os
import cgi
import wsgiref.handlers
from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext import db
class Greeting(db.Model):
author = db.UserProperty()
content = db.StringProperty(multiline=True)
date = db.DateTimeProperty(auto_now_add=True)
greeting = Greeting()
greeting.content = u'あ'
greeting.put()
greetings = Greeting.all()
print 'Content-Type: text/plain'
print greetings.count()
for item in greetings:
print item.content.encode('utf-8')
簡単なことだけど忘れがちなので。。。
CREATE TABLE book ( name VARCHAR(50), author VARCHAR(20), publish_date DATE ); ALTER TABLE book ADD PRIMARY KEY(name);
Excel操作するのも簡単だった。。。
$excel = New-Object -comobject Excel.Application
$excel.Visible = $True
# 新規に作成する場合
$workbook = $excel.workbooks.Add()
# 既存のものを開く場合
$workbook = $excel.workbooks.Open((Get-Location).Path + "\DB.xls");
$worksheets = $workbook.worksheets.Item(1)
$worksheets.Cells.Item(1,1).Text = "AAAA"
$workbook.SaveAs((Get-Location).Path + "ps.xls");
$excel.Quit();
wgetがないので。
param([string]$url, [string]$file)
$client = New-Object System.Net.WebClient
$client.DownloadFile($url,(Get-Location).Path + $file)
とっても簡単でした。が、もっと短く書きたいよ。。。
$from = New-Object System.Net.Mail.MailAddress("送り元アドレス","送信者名")
$to = New-Object System.Net.Mail.MailAddress("送り先アドレス","受信者名")
$mail = New-Object System.Net.Mail.MailMessage($from,$to)
$mail.Subject = "件名"
$mail.Body = "本文"
$mailer = New-Object System.Net.Mail.SmtpClient("smtp.gmail.com ",587)
$mailer.EnableSsl=$True
$mailer.Credentials= New-Object System.Net.NetworkCredential("ユーザ名","パスワード")
$mailer.send($mail)
テストデータを作るのにExcelを使うと楽だってことを、
最近まで知りませんでした。
たとえばこんな感じ。
="INSERT INTO " & A2 & " (" & B2 & ", " & D2 & ") VALUES ('" & C2 & "', " & E2 & ");"
■ファイル・フォルダ
窓の杜 - Fire File Copy
http://www.forest.impress.co.jp/lib/sys/file/syncbackup/firefilecopy.html
Synkron
http://synkron.sourceforge.net/
■デフラグ
Smart Defrag download and review - automatic disk defragmenter from SnapFiles
http://www.snapfiles.com/get/iobitsmartdefrag.html
あんまなかった。。。