海派开源潮流社区

一起参与开源.共同打造海派开源潮流社区(Kernel/Fedora/CentOS/Perl/Drupal)

blackjack's blog

自制500GB容量的PS3

in

 

经过研究大量网上经验,终于摸索出正确的方法。

PS3 Linux 720p LCD TV

in

将安装了Ubuntu 8.10的PS3 连接了34寸LCD电视。

特地从Taobao上购买了DVD色差线,这下终于支持720p和1080i高清显示。

效果果然不错。1080i对于34寸显得字体太小了。720p正好。

可惜,研究了2天,发现现在的Ubuntu还不支持Flash 9的视频,看不了Youtube的网络视频。

PS3-Ubuntu8.10

PS3 + Ubuntu 8.10 + cordless keyboard & mouse

近日购买了Sony PS3游戏机,尝试安装Linux。

先在网上查寻了不少资料,过程也比较顺利。

也调试好了无线键盘和鼠标,

就是家中原来的电视没有HDMI接口,导致分辨率太低,还不实用。

 

闪亮情人节

in

拍摄于金融危机中的2009年2月14日情人节

地点:上海 淮海路

招计算机系实习生

我们是一家上海刚成立的软件公司,

Mojolicious+Template-toolkit+sqlite 例子

in

这是在一个日本的例子上修改的,主要是改用Template-Toolkit 2 .

1)bbs.pm
package BBS;

use strict;
use warnings;

use base 'Mojolicious';

use MojoX::Renderer::TT;
use Template::Stash ;

# This method will run for each request
sub dispatch {
my ($self, $c) = @_;

# Try to find a static file
my $done = $self->static->dispatch($c);

# Use routes if we don't have a response code yet
$done = $self->routes->dispatch($c) unless $done;

# Nothing found, serve static file "public/404.html"
unless ($done) {
$self->static->serve($c, '/404.html');
$c->res->code(404);
}
}

# This method will run once at server start
sub startup {
my $self = shift;

# Use our own context class
# $self->ctx_class('BBS::Context');

my $tt = MojoX::Renderer::TT->build(
mojo => $self,
template_options => {
POST_CHOMP => 1,
PRE_CHOMP => 1,
STASH => Template::Stash->new,
INCLUDE_PATH => [ $self->home->rel_dir('templates')],
}
);
$self->renderer->add_handler(html => $tt);

# Routes
my $r = $self->routes;

# Default route

在Mojolicious中使用Template::Toolkit

in
package Vagina;

use strict;
use warnings;

use base 'Mojolicious';

use MojoX::Renderer::TT;

sub dispatch {
    (ry
}

sub startup {
    my $self = shift;

    # Use our own context class
    $self->ctx_class('Vagina::Context');

    $self->renderer->add_handler( tt => MojoX::Renderer::TT->new( mojo => $self ) );

Using Mojolicious with Plain CGI (no mod_perl)

in

难得关于Mojolicious的好文章,赶紧收藏。

 

From : http://www.simplicate.ca/blog/2008/12/using-mojolicious-with-plain-cgi-no-mod-perl.html

My previous article talked about how to get Mojolicious running on your server using mod_perl. This time I'm going to walk you through the steps and suggestions on how to setup your server to work with your Mojolicious application if you aren't using mod_perl.

This should be especially beneficial for people that are in a shared hosting environment and don't have access to mod_perl or people that don't want to introduce mod_perl into an existing server environment.

Mojolicious 入门

in

参照了一篇日文,自己测试一下。

在Fedora 9 和Windows XP 下都成功了。

1) #cpanp -i Mojolicious

Microsoft partners with Strawberry Perl to improve the CPAN

in

It would appear I have finally I achieved my long-time goal of slashdotting pudge's private Slashdot beta testing site :)

For the last 2 years, starting with the Vertical Metre of Beer competition, I've been working to make Win32 a truly first class citizen of the Perl platform world.

The goal, as I keep repeating on the Strawbery Perl website, is Complete Platform Equality. Not different, or "better", just equal and identical. When writing Perl code, your platform should ideally be irrelevant.

I feel that Strawberry Perl has managed to achieve this for the Perl core.

In the year since it was released, the community has used it to help fix many of the largest and most important CPAN modules as well. Modules that have improved their release process and are now reliably problem-free on Windows include Bundle::CPAN, the DateTime family, Template Toolkit, POE, Wx, and a number of XML modules.

<!--Ad Bard Text link ads, up to 26 characters, begin --> <!--Ad Bard, end-->
Syndicate content

Reserved by www.17LAMP.net