This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mx:Script> | |
<![CDATA[ | |
// 使うクラスをimportする。どんなクラスがあるのかは Flex Builderのヘルプ→ヘルプ目次で | |
// ヘルプを開き、Adobe Flex3ヘルプ→Adobe Flex3 リファレンスガイドあたりをたぐって調べる。 | |
// 名前が分かっている場合は検索する。 | |
import mx.controls.Alert; | |
// 変数定義などをここに書く | |
[Bindable] private var baseURI:String = "https://{server.name}/"; | |
]]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apacheのバーチャルホストを SSL用にする最低限の設定 | |
SSLEngine on | |
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL | |
SSLCertificateFile /etc/apache2/ssl/server.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/server.key | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tc = connectionFactory.createTopicConnection | |
s = tc.createTopicSession(false,Java::javax.jms.TopicSession::AUTO_ACKNOWLEDGE) | |
tc.start | |
t=s.createTopic("*********Topic") | |
sub=s.createSubscriber(t) | |
10000.times { | |
@msg = sub.receive(1000) | |
break if @msg != nil | |
p "No message..." | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// iso-2022-jp(JIS)でメールを送るサンプル | |
// from=送信元 to=送信先 subject=題名 body=本文 | |
// mailSenderは org.springframework.mail.javamail.JavaMailSenderImplのインスタンス | |
final String ENCODING = "iso-2022-jp"; | |
MimeMessage mm = mailSender.createMimeMessage(); | |
MimeMailMessage mmm = new MimeMailMessage(mm); | |
mmm.setFrom(from); | |
mmm.setTo(to); | |
mm.setSubject(subject, ENCODING); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Springを使ってテンプレートファイルをロードし、Velocityで変数の埋め込み処理をするサンプル | |
Resource template = applicationContext.getResource("WEB-INF/mail/mail01.vm"); | |
VelocityContext ctx = new VelocityContext(); | |
// 変数の中身をセットする。例えば下記のようにすると、テンプレートファイル内での $foo という | |
// 表記が ふう に置換される。 | |
ctx.put("foo", "ふう"); | |
ctx.put("bar", "ばー"); | |
StringWriter writer = new StringWriter(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="myComponent" class="my.Class"> | |
<property name="jdbcTemplate" ref="jdbcTemplate"/> | |
<property name="sessionData" ref="sessionData"/> | |
<property name="mailSender" ref="mailSender"/> | |
</bean> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Results 65.95 | |
System Info | |
Xbench Version 1.3 | |
System Version 10.5.6 (9G55) | |
Physical RAM 2048 MB | |
Model MacBookPro1,1 | |
Drive Type OCZ CORE_SSD | |
Disk Test 65.95 | |
Sequential 76.77 | |
Uncached Write 107.38 65.93 MB/sec [4K blocks] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# カレントディレクトリに置いてあるCA証明書とCA秘密鍵だけでテキトーに | |
# CA業務をするための openssl.conf | |
# ca.crt : CA証明書 | |
# ca.key : CA秘密鍵 | |
# index.txt : 空のファイル | |
# serial : 01 とでも書いておく | |
[ ca ] | |
default_ca = CA_default | |
[ CA_default ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><body> | |
<?php if (!$_FILES) {?> | |
<h1>STBBS.NET, LLC ファイルアップロード</h1> | |
<form enctype="multipart/form-data" method="POST"> | |
<!-- MAX_FILE_SIZE must precede the file input field --> | |
<input type="hidden" name="MAX_FILE_SIZE" value="3000000" /> | |
<!-- Name of input element determines name in $_FILES array --> | |
送信するファイル: <input name="userfile" type="file" /><br/> | |
<input type="submit" value="送信する" /> | |
</form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debootstrapで Ubuntu 8.04の日本語環境を作る | |
debootstrap --arch amd64 hardy /mnt/floppy http://jp.archive.ubuntu.com/ubuntu/ | |
mount -t proc proc /mnt/floppy/proc | |
chroot /mnt/floppy | |
apt-get install wget | |
wget -q http://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | apt-key add - | |
wget http://www.ubuntulinux.jp/sources.list.d/hardy.list -O /etc/apt/sources.list.d/ubuntu-ja.list | |
apt-get update | |
apt-get upgrade |