Tag Archives: linux

An introduction to libvirt’s LXC (LinuX Container) support

This is a short^H^H^H^H^H long mail to introduce / walk-through some recent developments in libvirt to support native Linux hosted container virtualization using the kernel capabilities the people on this list have been adding in recent releases. We’ve been working on this for a few months now, but not really publicised it before now, and [...]

  • Share/Bookmark

Simple string manipulation in C++

The code bellow is a simple example, howto pass string to a function. #include #include using namespace std; void display(string a, string b, string comp){ cout

  • Share/Bookmark

Setting up to compile C++ on Linux

Firts, check if you have g++ instaled. Run this on console: g++ -v If show version, g++ installed. Now, create a simple shell script to compile you cpp file #/bin/bash # gpp compiller g++ -pedantic-errors -ansi -Wall -o $1 $1.cpp Now, to compile the str.cpp use this: gpp str

  • Share/Bookmark

Using in memory caching on PHP. The easy way.

With memcached you can store array and other data in server memory. For example, you can use memcache to store data from a mysql_query in memory to expire some time in future. Using memcache you connect to database or other resource only when needed. I’m using memcache to store mysql querys to reduce connection on [...]

  • Share/Bookmark