Monthly Shaarli

All links of one month in a single page.

March, 2013

A Memory Comparison of Light Linux Desktops | l3net - a layer 3 networking blog

After I install a new version of Linux, I usually take a good look at the screen. Does it have a task bar? Can you find your window after it was minimized? Lately, some developers have been struck by some sort of amnesia brought on by the stress created by the mobile sector offerings.

Fortunately, in Linux we do have plenty of other choices. I will describe some of them in this article, and I’ll attempt to measure the RAM memory requirements. I use free command in an xterm before and after the graphic environment is started on a separate X server (Xephyr). The computer is an older 64-bit machine, running Ubuntu 12.04 with LXDE as desktop environment.

Note: the tool I use to set it all up is virtenv. I would say it is pretty much experimental at this moment, alpha stage maybe early beta. It sets up a Xephyr xserver running Joe’s Window Manager in a Linux kernel container (LXC). I only have to shut down JWM, apt-get install the new window manager, and run it. The beauty is the container works in a separate filesystem, and it will not overwrite the real filesystem on my computer.

PHP Caching to Speed up Dynamically Generated Sites

This entire site, like many, is built in PHP. PHP provides the power to simply 'pull' content from an external source, in the case of my site this is flat files but it could just as easily be an MySQL database or an XML file etc..

The downside to this is processing time, each request for one page can trigger multiple database queries, processing of the output, and formatting it for display... This can be quite slow on complex sites (or slower servers)

Ironically, these so-called 'dynamic' sites probably have very little changing content, this page will almost never be updated after the day it is written - yet each time someone requests it the scripts goes and fetches the content, applies various functions and filters to it, then outputs it to you...

gotAPI.com :: documentation search engine
10+ Data Visualization Tutorials [jQuery and HTML/CSS] | gonzoblog

Data is everywhere and well-designed data graphics can be both beautiful and meaningful. Data visualization is the study of the visual representation of data, meaning “information that has been abstracted in some schematic form, including attributes or variables for the units of information”.

"Can you get cp to give a progress bar like wget?" — lamby

< zed0> can you get cp to give a progress bar like wget?
Damn right you can.

Chart.js Documentation

First we need to include the Chart.js library on the page. The library occupies a global variable of Chart.

Structured Data Linter

Enter a URL below to see what structured data your page contains. You can alternatively upload a local file or paste some markup. Read more about the Structured Data linter.

Html5 drag’n drop file upload, shenanigans used only by developers? « Position Absolute

Uploading files has been done since the ice age of web development. In fact uploading a file using Html4 and an iFrame is pretty easy and does not even require a page refresh and about 0 line of code on the front-end, obviously you won’t get a progress bar but does it really matter?

Zpanel- A good opensource alternative to Cpanel | Unixmen

For every paid software, always you can find an opensource alternative, sometimes the alternative is better and complete like (Gimp vs Photoshop) sometimes not. Today we will see a good alternative to Cpanel, the well known paid hosting / server panel, it is zpanel.

ZPanel is a free to download and use Web hosting control panel written to work effortlessly with Microsoft Windows and POSIX (Linux, UNIX and MacOSX) based servers or computers. This solution can turn a home or professional server into a fully fledged, easy to use and manage web hosting server.

Zpanel is easy to install and to configure. In this tutorial i installed Zpanel in CentOS 6.3.

Znaczenie skrótów i obcych zwrotów, których nie wypada nie znać - Poradopedia.pl

Przedstawiamy listę popularnych skrótów i obcych zwrotów, które powinieneś znać. Dla ułatwienia posegregowaliśmy je w kolejności alfabetycznej.

Google Code Playground
Thinking about Code Review in Free Software | Make it better

Code review can be a bit of a recipe for drama. There was a large-ish amount of drama in a close project quite recently that stemmed from patch review, and it got me thinking about how we handle this in free software.

In free software code review, along with other practices that we call “agile practices” (such as continuous integration, unit testing, behavior driven design, test driven development) is a relatively new thing in some projects, especially those on the desktop stack.

Navigating through the git history like a boss | Web 0.2

I love reading git logs! First, because it reveals the people and processes behind software. Software is not just a bunch of code that works (or more commonly, doesn't work...) - it's also a bunch of people crafting something together for a long time. Not only adding features and fixing bugs, but they also refactor, do dirty tasks and ugly workarounds, explaining their motives in the commit messages.

A second, more concrete reason - quick access to git history helps me make better software. It helps me find out when and how exactly a bug was introduced, learn whom to talk to about a certain change or code, or simply find a desired code snippet in a huge repository - even if it was already deleted. Am I stating the obvious here? I guess so! but I do believe that sometimes this tool is underestimated and underused.

Of course, the better we know git's secrets, the more effective use of git history we could make. I'll try to share here some useful tricks I've collected in the recent years... I bet you know some; I believe you may still find some of them useful.

Understanding Awk in the UNIX Shell

So what is awk, and what does it have to do with UNIX? Plenty, as you'll soon learn. It is a tool that helps you get certain tasks done in the UNIX shell. But it's no mere tool; it's so developed that it's a programming language in its own right. Keep reading to learn how to make the most of awk.
The core idea in the creation of any programming/scripting language is to make it as natural and as simple as possible. Still, it should allow the construction of advanced expressions for solving complex problems. The creators of the UNIX Shell script language did not forgot these two simple principles. For the sake of simplicity some parts are broken down into multiple sub-parts. Sometimes these sub-parts evolve and grow to form their own programming language.

A prime example for this is Awk. The name "awk" comes from the starting letters of the names of the three creators: Aho - Weinberg - Kernighan. These people defined it as "awk, a pattern scanning and processing language." Besides setting a concrete purpose for the tool, this also underlines the fact that awk has its own syntax and rules. With this, it becomes a programming language on its own.

Awk was designed to scan and process files like the .cvs, where data are organized into columns and rows. However, doing the same with any other source of organized data in this structure is a valid option (as in the case of the command ls -l). The principle behind awk is to divide an input stream into rows and records and make the changes on this.

Last time I presented the stream editor, which accomplished the row splitting. However, compared to the sed, awk is a much more complex, powerful and more capable language. The record extraction allows us to throw away the unnecessary and process only the useful information from a file/UNIX tool.

Awk is a scripting language, and is best for solving small everyday problems. Its three creators do not recommend it for use in big, complex problem solving. However, there are long lists of problems that can be solved with it. It also has a couple of other advantages when compared to other tools, like the sed. For instance, it can work with real numbers and follow a very C-like syntax.

In this and a future article I will try to present it as concisely as I can without leaving out any crucial parts of awk. Remember that this article is only designed to introduce to you this language on a basic level. I do not intend to show you every corner of the scripting language. Nevertheless, this will be enough for you to use it in the everyday problems you may come across in the future.

Testing Like a Boss in Laravel: Models | Nettuts+

If you’re hoping to learn why tests are beneficial, this is not the article for you. Over the course of this tutorial, I will assume that you already understand the advantages, and are hoping to learn how best to write and organize your tests in Laravel 4.
Version 4 of Laravel offers serious improvements in relation to testing, when compared to its previous release. This is the first article of a series that will cover how to write tests for Laravel 4 applications. We’ll begin the series by discussing model testing.

Converting a running physical machine to a KVM virtual machine » The Log Book of Manuel Kiessling

Let’s assume you have a physical machine running a Linux system, and you would like to convert this system into a virtual KVM/QEMU machine, keeping everything as close to the original as possible. What follows is my approach.

The first thing we need is a raw image file which mirrors the exact layout of the physical hard drive in our physical server.

In our example scenario, the physical box has one hard drive at /dev/sda with a /boot Partition on /dev/sda2 and a physical LVM volume on /dev/sda3. This LVM volume houses a volume group with two logical volumes, one of them housing the root partition /, and the other one being unused. Also, /dev/sda1 is unused. Grub is installed into the Master Boot Record.

Dynamic jQuery Image Avatar Cropping Effect - Treehouse Blog

I can still remember the old digg.com user profiles with dynamic avatar cropping via JavaScript. Their user interface was clean, easy to use, displayed a sample before you cropped, and would auto-update as you changed the selection box. I have always admired this design and have been on the lookout for a great jQuery plugin which can offer similar features with less custom code.

After toying with Jcrop I have come to really support this plugin. The codes are very small and do not require a whole lot of setup (although there are plenty of optional settings). My demo example will include dynamic avatar updating in real-time, along with a PHP rendering script. I think the amount of new social networks and websites offering user profiles should definitely take this UX technique into consideration.

Stream Editor in the UNIX Shell

Making a change sometimes takes a great effort coupled with a great sacrifice. At other times, though, it simply calls for a little adjustment of what we already have. The stream editor does just this. Since inside the UNIX shell, the universal language spoken is the text stream, with the help of this tool you can make some easy and fast modifications to the shell. If you are interested in what you can change and how you can change it with the stream editor, you will have to read this article.
This article is part of my series related to shell programming in UNIX. Therefore, I will build on the fact that you can already write a script and run it inside a terminal. In addition, you should also know how to handle the control mechanism of the UNIX shell. All of these things are explained in my previous articles, so if by chance you missed them just search them up and embrace their knowledge.

Detect Mobile Browsers - Open source mobile phone detection
Ubezpieczenia Komunikacyjne PZU
Generator potwierdzenia nadania przesylki poleconej - Kashub [~]o - © 2013
Icons DB - free custom icons

iconsDB.com currently has 3202 icons in the database that you can customize and download in any color and any size you want ! 3,447,879 icon downloads and counting ! All icons can be used freely in both personal and commercial projects with no attribution required, but always appreciated. All logos and trademarks presented in some icons are copyright of their respective trademark owners

ZPanel | The free web hosting panel

Welcome to the official ZPanel website. ZPanel is a free and complete web hosting control panel for Microsoft® Windows™ and POSIX (Linux, UNIX and MacOSX) based servers. ZPanel is written in PHP and uses several open-source (or freely available) software packages to provide a secure, web hosting system. Learn more…

The ZPanel project consists of team members from all over the world as well as a growing amount of users from the community that have designed and developed both third-party modules, themes and translations for ZPanel.

Documentation

Laravel Philosophy

Laravel is a web application framework with expressive, elegant syntax. We believe development should be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by implementing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.

Laravel aims to make the development process a pleasing one for the developer without sacrificing application functionality. Happy developers make the best code.

Learning Laravel

One of the best ways to learn Laravel is to read through the entirety of its documentation. This guide details all aspects of the framework and how to apply them to your application.

In addition to this guide, you may wish to check out some of the Laravel books that are available on the books page. These books serve as a good supplemental resource for learning the framework.