Showing posts with label Tehnical. Show all posts
Showing posts with label Tehnical. Show all posts

Tuesday, February 27, 2007

Short post.

Today I will be very short because I am extremly tired and I can't even see the what I am typing. So because of this probably my English will be even worse. And by the way I had to disable anonymous comments because I was to tired to read comments about my spelling. Sorry but I explained at least a 1000 times. I am to bored to reject the stupid comments like, that. And the worst thing is that all that stupid comments are not signed. Any wanted to write about that I finally made it to load a huge database on my new hosting account at GoDady. By default the import is limited to files less than 20 MB. And mine was 150 MB, and the zipped was just under 18, but it didn't work. So I had to upload it uncompressed via FTP and after that use a PHP to import it. (I am referring to BigDump utility , search for it on Google) . The only draw back is that you have to upload the uncompress file. It take about 1 hours. The funny part is that I lost a least 3 time that much tiring to import the compressed one in any way possible. Even splitting the SQL on multiple volume. What I really wanted to say is that sometime just go with the simple method even if it seems more time consuming because some time just tiring to find a easy way prove to be much harder, or :
If you have a difficile task to do , give it to a lazy person and he will find a easier way to do it.

Monday, February 26, 2007

Hosting

I get some web hosting from GoDaddy a few days ago. It is really great. I install Drupal and is grate. I am really thinking to move my blog to there. But for now I don't have a suitable domain. But that is not really a problem. The only think is that I really don't want to lose this blog. I really blogger. So probably I will just start another there and I will make a link from here or something like that.

Sunday, February 4, 2007

New toy

My friend get an account at VPSLinks so I had to have one.
VPS stand for Virtual Private Server and it mens that you get a "slice" of a computer from somewhere in internet. The advantage over the normal web hosting is that you have full access to install whatever software you wish but you have to configure yourself.
So I had a look and I found something interesting

  • HDD: 2GB
  • Bandwidth: 100GB
  • Ram: 64MB
  • Price: $7.95/month
So I have decided to give it a test. After I sing up I get my login informations next day. So I have started to play with it. I have installed the Debian image because I had use Debian on machines with even less RAM then that.
The first thing I had tried was to make a swap file....surprise.... seem that is not possible. So I had to limit to the 64 MB of ram.
So let's heck the memory

myhost:~# free
total used free shared buffers cached
Mem: 3756488 3716804 39684 0 130120 1945208
-/+ buffers/cache: 1641476 2115012
Swap: 8193108 437732 7755376


But this is not the real memory avail so I made a little script to show my memory:

#!/bin/bash
bean=`cat /proc/user_beancounters`
guar=`echo "$bean" | grep vmguar | awk '{ print $4;}'`
priv=`echo "$bean" | grep privvm | awk '{ print $2;}'`
let totl=guar/256
let used=priv/256
let free=$totl-$used
echo "VPS Memory:"
echo " total: $totl mb used: $used mb free: $free mb"


So it looks like this now.

myhost:~# /bin/Free
VPS Memory:
total: 58 mb used: 35 mb free: 23 mb


But for this I had to:
  • Replace the OpenSSH daemon with dropbear because OpenSSH use about 20 MB of RAM.
  • Use lighttpd instead of apache
  • Limit mysql memory to 1MB instead of 16M for buffer.
But I am still not happy because if I try to install anything I have to stop evrything or else I get a lot of errors.

myhost:~# apt-get install apache
...[snip]...
Setting up apache (1.3.34-4) ...
open2: fork failed: Cannot allocate memory at /usr/share/perl5/Debconf/ConfModule.pm line 58

So I started wondering if this is normal on a computer with 64 MB of RAM. So I fire up VMWare on my computer and I installed the same Debian in a virtual machine exactly as the one from VPSLink... and surprise,surprise it worked just fine with the same software running in the same conditions and same configurations. (also no swap space) So seems that the software the use is not so smart and have some serious problems.

Also something ugly that I had notice is that if I disconnect from the server and I leave the web server running after a few hours the first attempt to connect to the web server to check my page is fails and seems and i have to try at least 3-4 times before it starting working. And also seems that is comporting like is under heavy load but as soon as I start pushing it a bit is getting back to normal. So I guess it go to some kind of standby (lo priority)

So I am really not happy with it and now seems that my friend that mad fun of me that I am a cheap bastard because I get the cheapest one for only one month. But now he is regretting because he get the one with $14.95/mo for six month (total $82.26 because of the discount). So I have deciding to also get an account to SliceHost next month and see how it is. (I can use swap there )

Thursday, January 4, 2007

Spaming.




I have to switch to moderated comments because seems that are some guys that are paid to post comments with links to adult sites and so on. So I am sorry but you will have to wait to publish your comments. Don't worry I will check may blog at least twice per day.

Seems that in the last time the internet is only about money and page rank. Nobody what's to put god content. Look at all the blogs that has only one post and full of advertising. If we continue like that the internet will become just advertising and no content. I really hate it, some time ago when I was searching for some interesting stuff, I would find it without evicting all kind of tricky popup and banners. Now the interesting stuff is in a tiny coroner of the page and the rest is filled with lots of *****.

I checked my email this morning. I had 237 email, just 3 email have been useful. 17 of them come from discussion list and 21 ware automatically generated rapports. So in the last 5 days I get 196 spam emails. I don't know from where they get my email, I didn't register to dubious site with it. The only place where is publish is on a PGP server, but how dumb a seamer can be, he didn't understand that someone that know what is a PGP key is , it is also able to make the difference between a spam email and a useful one.

I get a lot of Viagra advertising emails, but the funniest of all are the phishing email with the

"Your paypal account has been disabled ... please submit us your password" kind of stuff.

Is not really like that but is almost like that. The idea behind it is that they send a bunch of emails that try to fool the persons that something happened with their accounts and they have to log in to fix the problem. They always put a false to the login form but if you are look closer you will notice that it really redirect you tho a false site that just look like the original and prompt you for your user name and password. So take care. No serious site will send you that kind of emails. So if you don't really know what if that is a phishing emails instead of hurry up to give your password or bank account just think a bit. And if you still think that is the smallest chance to be true call the support or send them an email and ask them about it. Don't use the email address, phone or link from that email, look it up in the phone book on a older email that you see that is genuine. Usually all the sites that request you to sign up will send you a welcome message with all the details you need including the support email address, and sometimes the phone number, use teat one. In case this is not possible open a new browser windows manually and type the correct address and login from there.

Never click on links in emails especially when they tell you that something happening and is urgent

Also if you are a nice person and don't want to make a safer world, I highly recommend you to call/send them en email to the support of the attacked site/company and explain that somebody is sending false explains what happening and send them a copy of the message. Sometime you relay find that are some very dumb guys at support that don't really understand that is bad for there company image, so you have to explain that also. I am doing that all the time and usually the fake site is down in a matter of hours after explain the situation. It really make me fell proud that I make a better world.






Monday, December 25, 2006

Just brilliant.

I will marry the first girl that understand the following presentation:(very technical stuff only for geeks)




Long time ago when I owned a 286 computer I had a lot of study about computer architectures. When I have seen this video old memory's was binged back to life. Is just brilliant. I dreamed that some day my hours of study and my technical knowledge about computer architecture will become useful. I was so proud watching this video that I am one of the few people's that rely know what he is talking about. It knows how a PC boots up and about the memory warp around.

So I am serious about marrying the first girl that understand this presentation and has the same filings as me. I don't care how she looks, I don't care how old she is , I don't care anything except that she is able to understand this presentation.

Updated: Seems that nobody want to be my wife... probably this year I am not going to update anything because I will be in vacation. So take your time and watch the movie. If somebody has questions, feel free to ask me. I will explain everything you wish.

Wednesday, December 20, 2006

Standards

I been to a service and they told me that they can't order the v-belt I need because is to cheep.So i decided to change it myself in the parking lot.

I manage to convince my mother to go and buy a v-belt because when I will finish work all the stores will be closed.The spooky thing is that i find the belt in the part catalog and has the specification 9.5X643MM but the one from the reseller that has the same part number but a different size 9.5X650MM. How the hell the same part can has different specifications ? I was thinking that the part number is created specially to avoid this.
I will tell you tomorrow how was working.

Friday, December 15, 2006

Video cables for connecting my laptop to TV

The cables that I have are the following:

  • SCART converter (my TV only a SCART connection , this is usually fund in Europe). This is plugging directly in to the SCART connector on the TV (Big bulky plug). The converter has a switch used to select if the signal is to be inputted or outputted form the TV. The input/output for audio is to RCA (to RCA connections one red and one white for left and right audio signals). The video input/output has two options. One is a RCA (a yellow RCA connection) . And a S-Video connection like the one described in the prevision post.
  • RCA to audio Jack. This cable has to RCA connections (White and red) and on the other end a audio connector (identical with the one fund in headphone)
  • S-Video to S-Video cable.
  • S-Video to RCA cable.
The audio is kind of straight forward. But for video is to variants. I tested first with the S-Video to RCA cable and it seems fine (at least i had a color picture). But I tested with a picture slide show and the colors seems to be very accentuated. The pink looks like purple red, very annoying for pictures, but probably is acceptable with the movies. With the S-Video cable the picture is much sharp and the colors are much more real, but is still not crystal clear.

I didn't try with a movie because I don't have any at this moment but probably on the smaller resolution (like the one used for movies is much better then on my small display).

Doe's anybody can tell me some good movie ?

Video output

I finally manage to make my laptop output the image on my TV set. In this process I become a expert in cables, jack's and wires. My laptop has a S-Video output, this is a round plug with 4 or 7 pins (a lot like the mouse or keyboard plugs). The difrence betweens 4 pins plug and 7 pins plug is that the standard S-Video has 4 pins used for intensity (Luminance),golor (Chrominance) and tow of them are ground. The 7 pin connectors has a additional ground and composite video and this kid of connectors are usually find in laptops and other spooky devices, anyway the 7 pin version is not very standard anyway so is better to consider as a plain 4 pin plug.