tag:blogger.com,1999:blog-66526088979626008172024-03-12T23:54:23.838+01:00StormByte++This Blog is dedicated to computering, linux world and other things that keeps me busy everyday...StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-6652608897962600817.post-70887214120760839802024-03-04T17:17:00.001+01:002024-03-04T17:17:11.290+01:00New look, new return I had changed the look to this blog, edited all entries and made sure its appearance looks better with the hope that despite I was away a lot of time, I can return to post useful things about computer stuff. In all these years I was finishing my learning about programming and other things that made me more knowledgeable and now I am more active in my Github's StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-30656424748326339892014-12-15T17:58:00.002+01:002024-03-04T14:59:29.404+01:00Gentoo Stage Manager As I already talked in previous post about creating and maintaining a Gentoo Backup, now I've created a script to make it really easy to unpack, mount, umount, chroot and compress any gentoo stage for backup purposes (specially useful to test packages when you don't want to make a live system dirty if something fails)
It works in command line interface with StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-39395655552787985242013-01-28T08:47:00.005+01:002024-03-04T15:11:34.321+01:00Various compression algorithm comparison
Although there are already several pages comparing compression algorithms, they are based on multimedia data (already compressed), random data, or data which may not represent a real backup process, so most of them are not useful if compared with real scenarios like, for example, compressing an operating system image efectivelly. Also, they often measures the CPU user time StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-84246948013822665282012-07-06T17:47:00.004+02:002024-03-04T15:14:18.830+01:00Prevent DNS Cache DDoS
Note to lawyers, lobbies, music, film and entertainment companies, every ACTA, CISPA, SOPA and Intellectual Property defenders before freedom:
Every mention, accusation or potential offensive words direct or indirect have the word allegedly implied.
DDoS Attacks Against BIND DNS received
Introduction
First of all, a StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-38938375633214277862012-06-30T16:21:00.003+02:002024-03-04T15:15:34.481+01:00Programming with Database: Using Prepared Statements in whole program
I have blogged several times about the benefits of programming with prepared statements when using database connections (About prepared statements, MySQL's prepared statements made easy, About SQL Injection).
But this time, I will focus on development time, and another advantages that using prepared statements give to programmers rather than its security StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-84089232014149285182012-05-25T01:38:00.002+02:002024-03-04T15:27:45.127+01:00Count regexp matches on a table: Sorting result sets by relevance in PostgreSQL
The idea of counting the number of matches in a field that a regexp has, is a very intesting method to sort sets, for example, a web search result set, when you need the most relevant sources first (for example, containing the searched word more times).
I researched a bit and unfortunatelly, MySQL is far behind PostgreSQL, despite the fact that Oracle StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-46764734081171474002012-05-23T02:15:00.002+02:002024-03-04T15:17:52.699+01:00What can you do against SGAE, MPAA, RIAA, GEMA and those ones?
It is known for everybody what actions are those organizations doing world wide: declaring you are a criminal because you watch/download material, applying censorship to internet, adding fees to buy media in some countries just because you could use it for criminal purposes and those things.
Specially, I am referring to megaupload case: They closed StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-60718330312478764152012-04-04T23:40:00.004+02:002024-03-04T15:30:25.684+01:00Implementing Namespaces with Memcached and PHP Memcached is a tool (with PHP extensions) for storing key-value pairs of data in RAM and it is used for boost applications where persistent storage is needed and fetching data from datasource (file, database, internet...) is more expensive than fetching from RAM (from performance point of view).
Despite its advantages and the fact that by using it your StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-46349491793059171632012-04-04T18:05:00.003+02:002024-03-04T15:33:26.986+01:00Decreasing production server downtime with kexec
When managing a production server, one of the most important thing is the tradeoff between server downtime and keeping server's software updated.
While most of the updates can be applied from little to no downtime, a kernel update is always problematic since it requires typically a full reboot, and a significant downtime. To prevent that, many servers do StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-71726753706271122592012-03-16T04:43:00.001+01:002024-03-04T15:33:42.369+01:00Adobe against FOSS and talling people which software to use
This company have done always very bad things leaving their users alone whenever they wanted to. I'll try to explain it a little better for anyone who has never heard some
A very long ,long, long history of security vulnerabilities in its produts (flash) that made even Chrome to fall in such a serious issue like remote code execution. (Source: zdnet, Adobe )StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-57565496339832618792012-03-07T15:43:00.002+01:002024-03-05T04:35:20.868+01:00About Facebook Antiprivacy Policy
Facebook has always been very irresponsible in respecting people privacy and have done very bad things in the past in this matter.
Some time ago, according to Mark Zuckerberg (Facebook's CEO) declarations [1], I deleted my facebook account forever and I won't be back until it changes (thing I see very unlikely). Let's explain this and why facebook is evilStormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-20998512633849642962011-09-23T14:01:00.002+02:002024-03-04T15:35:13.650+01:00Internet Explorer and its disrespect to W3C standards
W3C has set since much time ago, several set of standards to rule rendering of webpages and to unify criteria among navigators.
This time, I am not refering to how IE treats margins in a completelly different way than all the others, but I am refering at how internet explorer does not seem to look at the provided charset of an X/HTML page.
 StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-32650728488484575042011-08-17T18:04:00.002+02:002024-03-04T15:44:11.843+01:00Farewell KMail2
I've been testing the new akonadi based KMail2 and I got dissapointed. My last version tested was from KDE 4.7.0 and now, I decided to change to another software for productivity reasons.
The main reason for this change is that KMail fails to mark messages as read and it fails to differentiate read messages from unread (for example, like previous KMail did,StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-18459894481232686962011-08-08T13:15:00.007+02:002024-03-04T15:54:55.143+01:00About SQL injection Despite this kind of attack is very old, it is still the primary source of database and website attacks so it really deserves a little speak here and everywhere. In an ideal world, maybe this will not worth a cent, but unfortunatelly we are not in an ideal world.
Many people say that this is due to malicious people and/or hackers fault, but the guilt comes StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-35862377436178255562011-07-26T04:03:00.005+02:002024-03-04T15:53:22.460+01:00Dropping ReiserFS (v3) As the time goes by, Reiser FS v3 is becoming outdated, but this is not the reason I will drop it in the near future in favour of ext4. Last night, I was renaming a couple of files (14GiB ones), and my laptop's battery went out.When I rebooted and after checking disk consistency with reiserfsck, one of those files became empty! (I must explain that that file StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-75618414107223919732011-05-04T17:57:00.005+02:002024-03-04T16:16:11.127+01:00PostgreSQL Inhertance and Constraints problem solved!
Warning: Using stored procedures and triggers in PostgreSQL is addictive!
I've been playing around with stored procedures using PLpgSQL language, just to try performance improvements and they are just addictive! For example, PostgreSQL has the ability to inherit all data from one or more tables to other table, but unfortunately, any constraint will be StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-81960624110020519542011-04-20T22:04:00.005+02:002024-03-04T16:16:33.520+01:00Microsoft and its unfair selling techniques Microsoft, did it again: left its users alone with new versions of its programs. I am referring for example to Internet Explorer 9, new Version of Windows Live Messenger, etc....Rather than make it compatible with its own older O.S., they just require you to upgrade (and BUY) another version of their O.S. This is TOTALLY UNFAIR! Specially StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-10178627825899588932011-04-20T19:49:00.004+02:002024-03-04T16:16:47.008+01:00Dropping MySQL, and adopting PostgreSQL Finally I had the time to dig a bit this issue, and finally, decided to drop all MySQL support in favor of PostgreSQL. Despite PostgreSQL is not as known nor as used as MySQL, it has MANY advantages:Referential Integrity: MySQL's default engine (MyIsam) does NOT support any kind of referential integrity, which could lead to corruption and inconsistencies in StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-63495303321939115282011-03-03T04:04:00.004+01:002024-03-04T16:17:12.479+01:00MySQL's Prepared Statements made really easy with PHP I've been programming a bit with php for first time, realizing that it is true what my friends told me: it is really close to C/C++. I managed to have an abstract class to handle and execute SQL's prepared statements, and a bit more that I want to share with world. But first, just an example of how I made prepared statements really easy to StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com5tag:blogger.com,1999:blog-6652608897962600817.post-12504535878765981122011-02-11T04:18:00.007+01:002024-03-04T16:18:31.966+01:00About Prepared Statements Well, I didn't know much about the benefit of having prepared statements as of today. But thanks to trinitycore I discovered a lot.
As well as trinitycore (which is a framework for a World of Warcraft server and they do it for learning purposes), I learnt too.
I saw they were moving to Prepared Statements almost all their queries, and StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-64846843912058301222010-06-25T02:15:00.003+02:002024-03-04T16:19:04.495+01:00Brightness adjustment on NVidia Cards Thanks to nvclock 0.8 which is currently in beta state, we have a great utility: smartdimmer This comes into account specially for people (like me) who has some laptop models which is not that easy to adjust screen brightness (in my case, a Sony Vaio which does not work with sonypi). With smartdimmer, you can easily increase or decrease StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-11863726801957983502009-04-06T18:45:00.004+02:002024-03-04T16:26:37.970+01:00Creation and Maintenance of a Gentoo Backup This guide will instruct you in create a tarball with a up to date Gentoo system which can be used to save much time when formatting and reinstalling.First of all, I will call those tarballs as follows (from here on):stage4→A complete bootable system with kernel, grub but without Xorg, Desktop environment nor anything Xorg related.stage5→It will contain all from stage4 and it StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-10931344436980797802009-04-01T23:34:00.002+02:002024-03-04T16:27:14.556+01:00ext4 data loss I've been trying out ext4 since a couple of months right now, specially since it was renamed from ext4dev to ext4, but nowadays I don't advise anyone to use it, at least until kernel 2.6.30 or so [1] under severe risk of massive data loss!! The problem I had comes from when I changed several kernel option wich made my system completely freeze on shutdown StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-88187926306928518832009-04-01T02:25:00.003+02:002024-03-04T16:27:36.002+01:00WoW Experience with SSD I recently bought a Sony Vaio (VGN-AW21Z) with a 64GB Solid State Drive and it is just amazing.For those who does not know what it is, it is a hard drive made with flash chips which improves read/write performance and battery durability. What I noted more are tarball extractions, system load, compile times and it is definitely worth, but there is a huge StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0tag:blogger.com,1999:blog-6652608897962600817.post-91296144102536149712009-03-25T10:56:00.003+01:002024-03-04T16:28:56.990+01:00Gentoo Easy Handling First of all a brief explanation of how gentoo works (a simplification of http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3 look for a more extensive explanation). Gentoo works with two kinds of software trees: the stable tree, and the unstable one; Gentoo's installer portage works with ebuilds which contains all installation data, and StormBytehttp://www.blogger.com/profile/06039040765422285766noreply@blogger.com0