正常情况下,如果你在一个网络共享文件夹下面 checkout 一个 subversion 控制的项目。这个项目的文件夹并不会像在本地文件夹中一样,以各式各样的图标来表示文件状态。你需要做的是稍许改一下配置:
TortoiseSVN -> Settings -> Look and Feel -> Icon Overlays -> Network Drivers
选中 Network Drivers,就能看到文件状态图标了。
TortoiseSVN -> Settings -> Look and Feel -> Icon Overlays -> Network Drivers
http://www.tejiawang.com/
收录站点少(2),价格信息单一
http://www.uobuy.com/
收录站点多(4),但是没有 china-pub,价格信息单一、滞后
http://www.danawa.com.cn/
不知所云
http://www.souchang.com/
收录站点少(1)
http://sym.noticpan.org/
测试站点:
www.google.cn
www.baidu.com
搜索用例:
site:www.joyo.com Perl语言入门
#!/usr/bin/perl
use strict;
use warnings;
use Time::Piece qw//;
use Date::Simple qw//;
use POSIX qw//;
sub show_info {
my $msg = shift;
my $hour = (localtime)[2];
printf "tz=$ENV{TZ}, tzname=%s:%s, hour=%2d # $msg\n", POSIX::tzname, $hour;
}
$ENV{TZ} = 'JST-9';
print "Date::Simple version is $Date::Simple::VERSION\n";
show_info('start');
my $date = Date::Simple->new;
show_info('after new');
$date->strftime("%Y-%m-%d\n");
show_info('after strftime');
POSIX::tzset;
show_info('after tzset');
tz=JST-9, tzname=JST:JST, hour= 8 # start
tz=JST-9, tzname=JST:JST, hour= 8 # after new
tz=JST-9, tzname=UTC:UTC, hour=23 # after strftime
tz=JST-9, tzname=JST:JST, hour= 8 # after tzset
1. not exists $ENV{TZ} UTC+9
2.1 if ( $ENV{TZ} ) {...} UTC+0
2.2 else {...} UTC+9
$ diff -r Date-Simple-3.02.orig Date-Simple-3.02
diff -r Date-Simple-3.02.orig/lib/Date/Simple.pm Date-Simple-3.02/lib/Date/Simple.pm
158a159
>
160,161c161,174
< local $ENV{TZ} = 'UTC+0';
< return POSIX::strftime ($format, _gmtime ($self));
---
> my $exists_env_tz = exists $ENV{TZ};
> my $tz = $ENV{TZ} if $exists_env_tz;
>
> $ENV{TZ} = 'UTC+0';
> my $result = POSIX::strftime ($format, _gmtime ($self));
>
> if ( $exists_env_tz ) {
> $ENV{TZ} = $tz;
> } else {
> delete $ENV{TZ};
> }
> POSIX::tzset();
>
> return $result;
localtime(3) calls tzset(3), but localtime_r(3) not.
threaded perl localtime() calls localtime_r(3) instead of localtime(3)
sub format {
my ($self,$format)=@_;
$format= $fmts{refaddr($self)||''} || $fmts{ref($self)} || $Standard_Format
if @_==1;
return "$self" unless defined ($format);
require POSIX;
local $ENV{TZ} = 'UTC+0';
return POSIX::strftime ($format, _gmtime ($self));
}
thread1
thread2
tzset()
tzset()
localtime()
localtime()
C:\WINDOWS\AppPatch\AppLoc.tmp
$ mysql -u root test
$ mysql -u root -P 3307 test
$ mysql -u root -S /tmp/mysql_another.sock test
$ mysql -u root -h 192.168.0.1 -P 3307 test
Changes in release 5.0.25 (15 September 2006)
For the mysql client, typing Control-C causes mysql to attempt to kill the current statement. If this cannot be done, or Control-C is typed again before the statement is killed, mysql exits. Previously, Control-C caused mysql to exit in all cases. (Bug#17926; see also Bug#1989)
Bug#1989 was submitted at 1 Dec 2003 12:51
$ cat /etc/ha.d/resource.d/pound
#!/bin/sh
start() {
pound -f /etc/pound.cfg -p /var/run/pound.pid
}
stop() {
kill `cat /var/run/pound.pid`
rm -f /var/run/pound.pid
}
case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo $"Usage: $0 {start|stop}"
;;
esac
$ cat /etc/ha.d/haresources
master_node 192.168.1.100 pound
060929 12:14:36 mysqld started
060929 12:14:36 mysqld ended
Sep 29 11:51:46 localhost kernel: audit(1159498306.605:23): avc: denied { append } for pid=17579 comm="mysqld" name="mysql.err" dev=hda3 ino=4212878 scontext=root:system_r:mysqld_t tcontext=root:objec
t_r:var_lib_t tclass=file
Sep 29 11:51:46 localhost kernel: audit(1159498306.605:24): avc: denied { append } for pid=17579 comm="mysqld" name="mysql.err" dev=hda3 ino=4212878 scontext=root:system_r:mysqld_t tcontext=root:objec
t_r:var_lib_t tclass=file
Sep 29 11:51:46 localhost kernel: audit(1159498306.674:25): avc: denied { create } for pid=17579 comm="mysqld" name="mysql.sock" scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t tclass=sock
_file
L1: Crazy Domain Insane (20GB disk, 1TB bw, $9.95/month)
$49.95 set up fee
Code: NOTICPAN Plan Cost This Code's Discount L1 Monthly $59.90 $50.00 L1 Yearly $119.40 $97.00 L1 Two years $190.80 $97.00 L2 Monthly $69.90 $60.00 L2 Yearly $239.40 $97.00 L2 Two years $382.80 $97.00 L3 Monthly $89.90 $80.00 L3 Yearly $479.40 $97.00 L3 Two years $766.80 $97.00 L4 Monthly $129.90 $97.00 L4 Yearly $959.40 $97.00 L4 Two years $1534.80 $97.00 While L3 is at L2's price, L2's discount will be used for L3.
$c->res->redirect('/foo');
https://example.com/foo
$c->res->redirect( $c->uri_for('/foo') )
http://example.com/foo
my $uri = 'https://' . $c->req->header('host') . '/foo';
$c->res->redirect( $uri );
ListenHTTPS
AddHeader "secure: 1"
End
package Catalyst::Plugin::Secure;
use strict;
use warnings;
sub uri_for {
my ( $c, $path, @args ) = @_;
my $uri = $c->NEXT::uri_for($path, @args);
if ( $c->req->header('secure') ) {
my $str = $uri->as_string;
$str =~ s/^http/https/;
$uri = new URI( $str )->canonical;
}
return $uri;
}
1;
#!/usr/bin/perl
use strict;
use warnings;
use Benchmark qw(:all);
my $b = cmpthese( -1,
{
pa => qq("It's a fine day today." =~ /a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z/g),
pb => qq("It's a fine day today." =~ /[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/g ),
pc => qq("It's a fine day today." =~ /[a-zA-Z]/g ),
}
);
Rate pa pb pc
pa 848885/s -- -61% -65%
pb 2204237/s 160% -- -9%
pc 2427045/s 186% 10% --
<hash>
foo = bar
</hash>
array = 1
array = 2
---
hash:
foo: bar
array:
- 1
- 2
- Changes in DBI 1.43 (svn rev 377), 2nd July 2004
* Changed TraceLevel 1 to not show recursive/nested calls.
Berkeley DB error while opening environment for filesystem ...
DB_RUNRECOVERY: Fatal error, run database recovery
$ cat /usr/local/bin/svn
#!/bin/sh
umask 002
/usr/local/subversion/bin/svn "$@"