noein

powershell,vba,javascript,c#,python,groovy,ruby,actionscript,php,javaとかが好き

JRuby Users JP :: Home Page
http://jruby-users.jp/

JRubyWebLogicとの連携(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);

' ノードが文字列かどうかを確認する
If dom.documentElement.FirstChild.nodeTypeString = "text" Then
Debug.Print dom.documentElement.FirstChild.nodeValue
End If

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 & ");"

すっごい、RubyとかGroovyに似てるから簡単。

& $args[0] $args[1]

って書いて、Test-Proc.ps1って名前で保存したとする。

PS C:\> Test-Proc {param($a); echo ($a + ":test")} "kkk"
kkk:test

て感じだね。

簡単だね

ファイルフォルダ
窓の杜 - 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

あんまなかった。。。


ホットワード リンク集 JRuby 更新 WebLogic
割引クーポンまとめ情報 - クー割