Welcome to HTTP REQUESTS hell. Concatenate javascript files!

I often find myself looking through other websites sources, and find something like this :
Mereu mă uit prin sursa siturilor pe care intru și dau de așa ceva:
screen

That, my friends causes the webserver to answer 8 requests everytime you load a page. For static content, of course. Now you tell me why on earth don’t people concatenate those files into a single output to save the webserver the extra work to response 8 requests when it can only answer one.
This bugged me ever since we started having problems caused by the abundance of users at craiovaforum which was causing apache to crash because of too many requests. Why not save 7 requests by simply concatenating the js files together?
Ok you might ask : “But I want to modify them , why have a single file to work on?”
The answer is simple and I made a simple php script for you:

< ?php
  $dir = "./js";
  if(is_dir($dir)){
    foreach(scandir($dir) as $file) {
      if(substr($file,-3,3) === '.js') {
	echo file_get_contents(realpath($dir.'/'.$file));
      }
    }
  }
?>

This way you simply add a <script src=”http://yoursite.com/script.php” type=”text/javascript”></script> and voilá.
Please, save the webservers!

Music – My passion (New stuff)

For me, music has always been a passion. Not only to listen music, but also to create. Recently I bought a microphone (not for voice recording, don’t look too far) for instrument recording, specifically to record the sound of the guitar amplifier. The technique is call “amp micing” and it’s being used by about everyone who’s recording electric guitars and it’s as simple as it gets: you place a dynamic microphone very close to the speaker which serves the amplifier. The technique is explained thoroughly here.
I decided to buy a T.Bone MB75 after listening to some recordings on youtube and after reading some reviews. T.Bone MB75 is a Shure SM 57 copy (which , of course , has triple the price).
So far I’m happy with it, nothing to complain about, everything depends on how I use it though (soundcard, recording volume).
I did a little experiment today with a flanger effect from the guitar processor. You have to pump the volume a little, it’s quite silent because I recorded it at low volume.

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Opera 10: the future is very bright

It’s been quite a while since I’ve written a blog post, but nothing that impressed me this much hasn’t happend in the past year. Also I’m very active on Twitter you can follow me there.
Enough with the introduction , let’s cut tot the chase.

Since I don’t follow too many tech sites (mostly because I’m lazy and always forget to add them to the feedreader) I visit those websites from time to time. This morning I opened Engadget and suddenly I was like O_O . There were news about Opera 10, and as the title said: Opera Unite: a cloud-based promise to ‘reinvent the web,’ again
I was puzzled . I didn’t know what was that all about. Since I’m a diehard Opera fan and quite a curious person, I read the article, I watched the youtube video and fell in love with the concept: Opera Unite.
The next second I downloaded the beta, and began playing with the features. The more I advanced throughout the new features, the more enthusiastic I became.

So what is this all about. I will try to write my impression of it and what I think it is.

Opera Unite is a service that facilitates peer-to-peer sharing of files, media, photos, together with a chat hosted on your pc and a place where people can leave “post-its” on your “fridge” (which is also hosted on your pc). Opera Unite also has a simple web server , which runs exclusively on your pc. Opera unite just serves the links to the world, all the content being located on your pc. I think of Unite as a great sharing tool, which can make your work easier, you ability to enjoy sharing things with friends, all in one place, without having to use multiple services hosted in different places.
I already tested all the features of the great new version and I’m very impressed.
The first thing that came to my mind was the new power that is give to Linux users who are greatly dissadvantaged by out-of-date apps (eg. Skype, Yahoo! Messenger, etc.) because of the lack of company interest in this market. Opera has always been devoted to all operating systems, and the browser is the same everywhere. The new features will help a linux user share files easier than before (since file transfer on most protocol is slow or unsupported).
So the big features of Opera Unite are :

  • File sharing — secure, peer-to-peer file sharing , directly from your computer
  • Web server — a simple web server hosted on you pc
  • Media player — listen and share your music collection
  • Photo sharing — share your photos into a nice gallery with ease, directly from your pc
  • Lounge — an ajax chat hosted directly on your computer
  • Fridge — a fridge door where people can leave you notes

Along with Opera Unite, Opera 10 has some great new features that include:

  • HTML email composing
  • Visual tabs — a very nice feature with which you can see your tabs as thumbnails, and still use them as tabs
  • Opera Dragonfly — an improved version of dragonfly. (I personally think it’s VERY close to firebug. I’m ditching firefox soon, for good)
  • A new default theme — More shiny , not as dark as the last one, I personally like it better
  • Opera Turbo — For those unfortunate to have a slow internet connection, Opera Turbo saves bandwith and makes browsing faster
  • Automatic Updates
  • Inline spellchecker — I used this in emails, it’s PRETTY good, and it has a ton of dictionaries

Overall it’s a wonderfull piece of software (I wouldn’t have written this post if it wasn’t) with which I’m very impressed. Even though it’s beta, it seems pretty stable to me. But hey, we have automatic updates now, right?

Download Opera 10

Samson and I

..lost their hair. At least I hope in my case my strength was not within the hair. So, after more than three and half years, I had a haircut. I was necesarry, since I wouldn’t wanted to become like Kerry. Now is time for missione: “Mighty Dwarf Beard” :D

Getting old here , help! ;(

+1  :o ld:

Where are we heading?

coming soon…

Pentagram / Mezarkabul

If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get Flash Player from Adobe.

If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get Flash Player from Adobe.

If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get Flash Player from Adobe.

I’ll let the videos speak for themselves

FINALLY!

Peavey Rage 258

Peavey Rage 258

Farewell sweet vacation!

I’m back from my 1 week vacation in the mountains. I was in the Predeal resort , for 6 nights and 6 days (without counting the one spent traveling by trains, scheduled like shit because of a moronic teacher).

I already miss those places, it was marvelous. If I could, I’d buy a house there. It can’t get more quiet and peacefull than that. I’ll definetely go there next year, maybe in Buşteni this time, because the transport from Predeal to all the other places that we visited, raped my wallet.

If it wasn’t for the 2 days of rain, I could have visited the peak of Bucegi and the natural monuments there, but it wasn’t meant to happen.

Tomorrow starts a new week, and a new, very long period of HARD WORK. (that which I like :^o )

Recently bought stuff

1 Day before easter this year I bought an other guitar after selling the other one. So I bought a B.C. Rich Warlock , the Bronze edition. Actually the real name is B.C. Rich Metal Master Tribe Warlock, but it’s just a regular bronze edition warlock, with fixed bridge and Kerry King designed tribals.

Last month I bought the Behringer Ultra Metal UM300. It’s a very cheap stompbox/effects pedal, that I use with the guitar, to add a little more punch to the sound, as I lack an amp and I cannot get some decent sound without either pedal or amp. Pictures below

BC Rich Warlock Tribe

Behringer UM300