{ Pattern }

Pattern Ref —自分用覚書

BookMark

4 月 12th, 2009
Posted by yref
未分類

Social Bookmark

continue reading this post...

PowerShellスクリプトの基本

4 月 8th, 2009
Posted by yref
未分類

PowerShellスクリプトの基本

ls が使えたりする♪

Windows PowerShell
Copyright (C) 2006 Microsoft Corporation. All rights res [...]

continue reading this post...

ファイルの文字コードを変換する《 WSH ・ PowerShell 》

4 月 8th, 2009
Posted by yref
windows

《 WSH 版》
■ ファイルの文字コードを変換する( WSH )
・・・windows の nkf ? iconv ?

・@IT
http://www.atmarkit.co.jp/fwin2k/win2ktips [...]

continue reading this post...

TT で UTF8 [perl]

4 月 4th, 2009
Posted by yref
module

Template::Toolkitとutf8

 #!usr/bin/perl
 use strict;
 use warnings;
 use utf8;
 use Template;
 use Encode;
 
 my $tt = Template->new(
                 UNICODE  => 1,      #これでテンプレファイルが
                 ENCODING => ‘utf-8′, #utf-8フラグ付きとなる。
                       );
 my %hash = (
         param => [...]

continue reading this post...

limixライブラリ

4 月 1st, 2009
Posted by yref
未分類

#!/usr/bin/perl

#### Limixdb 使用方法 ####
#### /usr/lib/perl5/site_perl/Limixdb.pm ####

##— Limixdbをuseする —##
use Limixdb;
use DBI;
use CGI::Carp qw(fatalsToBrowser);

print "Content-type: text/html; charaset=UTF-8\n\n";

##########################
#### package Limixdb ####

##— Limixdbオブジェクトを生成 —##
my $ddhh = new Limixdb;

##— setMethod関数で、データベース情報を送信 —##
#### 必須※ 引数(1) DBドライバ[mysql || Pg] ####
#### 必須※ 引数(2) データベース名 ####
#### 省略可※ 引数(3) ユーザ名 ####
#### 省略可※ 引数(4) パスワード ####
#### (3)(4)のデフォルトは、MYSQL→root、Postgres→ootomo ####

# $ddhh->setMethod(’mysql’, ‘DB名’);
$ddhh->setMethod(’Pg’, ‘DB名’);

##— sqlCon関数で、コネクト —##
my $dbh = $ddhh->sqlCon;

my $sth = $dbh->prepare("SELECT * FROM limix");
$sth->execute;
while(@lis = $sth->fetchrow_array){
print $lis[0], "\n";
print $lis[1], "\n\n";
}

#########################
#### [...]

continue reading this post...

Your Own Photos Or Artwork

This is just a sample.....260 X 100

  • sample1
  • sample1
  • sample1
ホットワード 自分 備忘録 分類 PowerShell
割引クーポンまとめ情報 - クー割