I’m working on optimization of computing and I need a fast real time message packer for storing data in Redis at light speed. So I have try several serializer, like JSON, Sereal and Data::MessagePack. And I would like to share the result. First of all, a tiny word about the different serializer. JSON is a … Continue reading Perl Benchmark Serializer: JSON vs Sereal vs Data::MessagePack vs CBOR→
Hi, I have decide to move sck.to to sck.pm. Well the main reason is the cost and I like the pm extension for perl package 🙂 So update your bookmarks ! http://sck.pm Celogeek
Jedi::Plugin::Auth is an authentication plugin for Jedi. It handle the authentication for you, saving using info in his database, and returning the full profile in a session when the user identify himself properly. The plugin provide : jedi_auth_signin jedi_auth_signout jedi_auth_login jedi_auth_logout jedi_auth_update jedi_auth_users_with_role jedi_auth_users_count jedi_auth_users So you can add an user, remote it, log the … Continue reading Perl Jedi Plugin Auth→
I’m dealing with Cache at work, and I need a high performance in memory cache system. I’m actually using CHI with Memory Backend, and I have notice that the result setting is really slow comparing to the over. So I have decide to benchmark all the module I can found on metacpan about cache and … Continue reading Perl Benchmark Cache with Expires and Max Size→
Jedi::Plugin::Session is an extension for Perl Jedi to give your the possibility to store session for your user. The plugin will automatically generate and save an UUID for the visiting user, and extend the Jedi::Request to add the methods : session_get and session_set. You have not limit (except your memory) on how many data you … Continue reading Perl Jedi Plugin Session→
The common misunderstanding in Perl is the difference between : A list : (1, 2, 3) An array : @my_array containing (1, 2, 3) The unary operation coma ‘,’: $operation1, $operation2, $operation3 Perl use the context to act practically over logically. That lead to unexpected behavior if you mislead each of this concept. The 3 … Continue reading Perl – Understand List, Unary operation and Array in scalar context→
Perl Jedi, is a web app framework, with no DSL. That mean the framework doesn’t create new magic keywords. The good point is that it avoid conflict with any kind of packages. Also Perl Jedi do the minimum to dispatch your request to your methods, and return a PSGI compatible response. You can install your … Continue reading Perl Jedi, Hello World !→
Hi, I work on Mac and well most of the tools we have was developed for Linux platform. When we want to check the memory usage of a process, we often use a module that directly read in “/proc”, opening a file there… That doesn’t work on any other platform than the one with procfs. … Continue reading Perl – Universal way to get memory usage of a process→
For everyone who doesn’t know it yet, you have to take care where you use “Moo::Role” (or Mouse::Role or Moose::Role). Moo::Role will export all methods that is declared after his declaration. Let me show an example : If you do :
I’m dealing with TC and shorewall. And based ovh kernel lack of some builtin modules. So to be short :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
sudo su-
cd/usr/src
# Pickup latest kernel from
#Unpack it :
xz-dc linux-3.*.tar.xz|tarx
# Get the latest config kernel you want to start with from :
# ftp://ftp.ovh.net/made-in-ovh/bzImage/
# Copy this config into the kernel directory and name it ".config"
make menuconfig
# Go to General and custom the "Local version" (you need to end the string with -64)
# Add more builtin module you need
# Save and exit
make-j8
cp arch/x86/boot/bzImage/boot/bzImage-CUSTOMIZE# (pickup the local you have set)
cp System.map/boot/System.map-CUSTOMIZE
update-grub
reboot
Don’t forget to cross your fingers. If anything goes wrong, just reboot in rescue, and fix the kernel. Source : http://fr.wikitwist.com/ovh-compiler-kernel-personnalise/#axzz2eJVwnpqG Enjoy ! Celogeek