Thursday, May 7, 2009

Floyd Mayweather Sr. is full of SHIT!

http://punch.freedomblogging.com/2009/04/29/roach-mayweather-conference-call-transcript/4327/


My commentary on this interview :)

Floyd Mayweather: Yeah, we are ready. We will be ready. We appreciate, we’re looking to win this fight and it will be like to make the fight go real fast. And I think that Freddie is too hyped over this thing about Manny knocking out Ricky in three rounds. If that’s going to happen, it’s going to be the other way around.
In your face sucker! Not 3 but 2 rounds you dolt!

Floyd Mayweather: I think he’s just what I said. Freddie “The Joke Coach” Roach. That’s what I think he is. He’s a joke of a coach.
Freddie's a joke? Have you looked at yourself lately in the mirror you gas bag old fool.

Floyd Mayweather: Of course that’s one of the things. I mean, defense wins fights. The name of the game is hit and don’t be hit. So, that’s what I’ve been playing with Ricky to do. I know Freddie Roach said on TV. Don’t let him hit your body; don’t let him hit your body. We’re going to hit that body. It’s just a matter of time.We’ve got 12 rounds in there to fight. You don’t go a round without your body being hit.
Your fighter didn't even make it pass the second round LOL, did you teach Hatton to use his face as a shield?! He would have probably had a better chance without this "joke coach"

Floyd Mayweather: I would say so. I said one thing before. Ricky probably could have won this fight without me. I said that, I did say that but I will say one thing, he’s definitely got a much better chance of winning it with me than without me.
He would have probably made it to the 6th round if you weren't his trainer.

Q: Do you also think it’s unusual that he’s able to still have this kind of power as he moves up in weight?

Freddie Roach: Yeah, usually guys when they move up in weight they lose their power, but Manny’s staying power is better than ever and we’re going to show it - we’ll show it in this fight, I’m sure.
The unstopable Manny "Pacman" Pacquiao just keeps getting better.

Trainer of the Year
Freddie Roach - 3
Floyd "the gas bag" Mayweather Sr - ZEEEEROOOOOOOOOOOOO

Freddie Roach: Three times. Three times.
Floyd Mayweather: Do I want to elaborate on that? Not really because, like I said, Freddie he’s talking all that garbage but then when this fight get up here we’re going to find out just what talent really is. There isn’t any sense in getting scared now. When you try to send me a present. When you try to give me a gift over there with the T-shirts trying to be my friend.
Talent? Don't even talk about talent cause you have none FMS!

Floyd Mayweather: We’re gonna win the fight and whatever’s needed that’s what we’re going to do. If he has to box, he can box. If we want to brawl, we are gonna brawl. Whatever he wants to do. Because whatever it is that we do we can do better than Manny anyway. We can box better than Manny. He can box better than Manny. He definitely is stronger than Manny on the aggressive tip. Ricky is definitely going to back him up. He can fight going backward. He ain’t no Muhammad Ali. So, it doesn’t make any difference. Anyway he come. I know what he’s gonna do though. Soon as Ricky touch him with one good shot, if he’s able to run, that’s what he’s gonna do the rest of the fight. So, he’ll run the rest of the fight. That’s what he’s going to do.

I think he can be a good fortune teller, but only in reverse, that is take the opposite of everything he says.

Floyd Mayweather: And he’s probably going to go crawl up in some hole somewhere.
Where did you crawl into after the fight Floyd? Up your mama's ass LOL!
This guy is a total ass, bet no one would ever hire him again after this, even his son wouldn't hire this idiot.

Thursday, April 16, 2009

Ubuntu 9.04: Installing Lighttpd 1.5 from source with PHP + mod_cache

To install PHP:
sudo apt-get install php5-cgi

Installing Lighttpd 1.5
The latest version I could find on their site:
http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModCache
http://opensu.se/~darix/lighttpd/
http://blog.lighttpd.net/articles/tag/1.5.0

wget http://www.lighttpd.net/download/lighttpd-1.5.0-r1992.tar.gz
wget http://www.linux.com.cn/modcache/lighttpd-1.5.0.r2294.modcache.v.1.6.1.tar.gz


This is the patched version of lighttpd with mod_cache, extract this to a folder

tar zxvf lighttpd-1.5.#######.gz
cd lighttpd-1.5.0.cache


We need to install some required libraries first

sudo apt-get install libssl-dev zlib1g-dev libbz2-dev libattr1-dev libpcre3-dev libmysqlclient15-dev libfam-dev libldap2-dev libfcgi-dev libgdbm-dev libmemcache-dev liblua5.1-0-dev pkg-config uuid-dev libsqlite3-dev libxml2-dev libkrb5-dev libglib2.0-dev libaio-dev libfam0 memcached


type ./configure --help to see configuration options

This is what I used
./configure --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-openssl --with-memcache --with-gdbm

make

sudo make install


after installing you should be able to type
lighttpd -V

and see some nice output from lighttpd

you can also type spawn-fcgi to make sure that installed as well

type sudo su

copy the sample config file
mkdir /etc/lighttpd
cp doc/lighttpd.conf /etc/lighttpd/

log folder
mkdir /var/log/lighttpd

we need to create a startup file in the /etc/init.d folder
Go here to download the startup script http://redmine.lighttpd.net/projects/lighttpd/wiki/ScriptsUbuntu
create a file called lighttpd in the /etc/init.d/ folder and then
chmod a+x /etc/init.d/lighttpd

Create a user to run lighttpd: if you have installed lighttpd 1.4 from apt or apache you can just use the www-data user again
adduser -m -d /var/www -s /sbin/nologin lighttpd

Modify the lighttpd file from /etc/init.d/ to match the user you want to run it as

chown www-data:www-data /var/log/lighttpd

then type
update-rc.d lighttpd defaults


Edit the lighttpd.conf file to enable php fastcgi

Make sure following modules are loaded:
server.modules += ( "mod_cache" "mod_proxy_core", "mod_proxy_backend_fastcgi" )

You can also enable other modules that you need, mod_cache has to be enable first!
cache.bases = ("/var/cache/lighttpd")
cache.enable = "enable"
cache.support-queries = "enable"
cache.debug = "enable"
cache.dynamic-mode = "enable"
Change
server.document-root = "/var/www/"
server.errorlog = "/var/log/lighttpd/error.log"
server.event-handler = "linux-sysepoll"
server.network-backend = "gthread-aio"
accesslog.filename = "/var/log/lighttpd/access.log"
compress.cache-dir = "/tmp/lighttpd/cache/compress/"
compress.filetype = ("text/plain", "text/html")
#### status module
status.status-url = "/server-status"
status.statistics-url = "/server-statistics"

cache.bases = ("/var/cache/lighttpd")
cache.enable = "enable"
cache.support-queries = "enable"
cache.debug = "enable"
cache.dynamic-mode = "enable"
cache.refresh-pattern = (
"/$" => "5 update-on-refresh no-expire-header", # update homepage every 5 minutes and on refresh requests without setting expire headers
"\.(?i)(flv)$" => "0 fetchall-for-range-request flv-streaming", # to work with mod_flv_streaming for flv files
"\.(?i)(js|css|xml)$" => "240", # update js/css/xml every 4 hours and on refresh requests
"\.(?i)(htm|html|shtml)$" => "30", # update html/htm/shtml every 30 minutes and on refresh requests
"\.(?i)(jpg|bmp|jpeg|gif|png)$" => "2880", # update graphics files every 2 days
"\.(?i)(rar|zip|wmv|avi|mp3|ape|rm|mpeg|mpg|wma|asf|rmvb|flv)$" => "0 fetchall-for-range-request", # cache media file forever
".(?i)php$" => "5", # update php request every 5 minutes
"." => "30 update-on-refresh" # default to update every 30 minutes and on refresh requests
)


Make sure /var/cache/lighttpd is writeable by lighttpd and it exists.

Configure fastcgi PGP module by appending following configuration directives:

$HTTP["url"] =~ "\.php$" {
proxy-core.balancer = "round-robin"
proxy-core.allow-x-sendfile = "enable"
# proxy-core.check-local = "enable"
proxy-core.protocol = "fastcgi"
proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" )
proxy-core.max-pool-size = 16
proxy-core.worked-with-modcache = "enable"
}


Make sure to leave the # in front of proxy-core.check-local = "enable" otherwise lighttpd won't start, don't know why.

Also don't forget to add proxy-core.worked-with-modcache = "enable" otherwise mod_cache won't do anything.

Save the config file and start lighttpd

sudo /etc/init.d/lighttpd start

If everything goes well you should see something like this
* Starting lighttpd [ OK ]
* Starting spawn-fcgi spawn-fcgi.c.206: child spawned successfully: PID: 15245
[ OK ]

inside the /var/www folder create index.php file and add something to it

test by browsing http://localhost/index.php
You should see php configuration options here


How to uninstall
go back to the lighttpd source
sudo make uninstall


References:
http://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource
http://www.cyberciti.biz/tips/rhel-lighttpd-15-installation-configuration-howto.html
http://www.cyberciti.biz/tips/howto-increase-lighttpd-performance-with-linux-aio.html
http://www.cyberciti.biz/tips/freebsd-linux-lighttpd-1-5-fastcgi-configuration.html
http://www.linux.com.cn/modcache/
http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModCache#Installation

Saturday, April 11, 2009

Traffic Shaping with Lighttpd + PHP

Here's how I manage traffic on my web site that's served over a basic cable connection. The site has a forum and an area for register members to download stuff from. Having a very limited upload capacity I have to make sure members don't suck everything and make the forum unresponsive.

So here's how my lighttpd.conf file is setup:

# this limits the amount of connection a user can make to the server
evasive.max-conns-per-ip = 10

# then on my site configuration I use a combination of connection.kbytes-per-secon and evasive.max-conns-per-ip to throttle user connections to the download script
$HTTP["host"] =~ "sitegeisha\.dyndns\.dk" {
connection.kbytes-per-second = 64
$HTTP["url"] =~ "dl\.php" {
connection.kbytes-per-second = 32
evasive.max-conns-per-ip = 3
}
}

This configuration allows me to limit the number of simultaneous downloads they can make, if they go over 3 they get a 403 error message.

Thursday, December 25, 2008

PulseAudio : Hate and Hate (pathetic audio)

Why the fuck does ubuntu need pulseaudio, everything seemed to work so well "WITHOUT" it!!! After removing the damn thing it seems xbmc worked much better on my system, before I had to kill it before launching xbmc. Had some troubles with boxee too, but after removing PA it works much better now.

All I can say is PulseAudio = Pathetic Audio

No one wants you PulseAudio so scram!!!

killall pulseaudio
sudo apt-get remove pulseaudio

Saturday, December 6, 2008

Tuesday, December 2, 2008

Firefox 3.2 Alpha now out!


Firefox 3.2 Alpha release is now available! Not sure yet what is new with this release but I'm sure to give it a try, might break a lot of extensions though.

http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

Tuesday, November 18, 2008

Dyndns not forwarding

This is odd is seems dyndns has stopped forwarding sitegeisha.dyndns.dk to my server, however I tried using SSH using sitegeisha.dyndns.dk and it work, also tried ftp and it worked, tried accessing using other ports and it also worked.

I also checked to see if port 80 was accessible from the outside and it was okay. http://www.canyouseeme.org/

WTF is going on???!!!

Tuesday, November 11, 2008

Youtube Cache with Squid + Lighttpd on Ubuntu

This summary is not available. Please click here to view the post.

Wednesday, October 29, 2008

Fastest browser on earth!

I do hope you've already switched to Firefox or something a lot better than IE. However there is something else faster than Firefox at the moment and I JUST can't wait for it to get out of alpha/beta!!! It's Firefox Minefield Smiley

http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

They got the fastest javascript engine in the planet at the moment, if you go give it a try enable JIT by typing about:config in the url bar and then search for jit. Then set:

javascript.options.jit.chrome;true
javascript.options.jit.content;true

And there you have it, you'll be surfing faster than Google Chrome, but if you want to test your extensions make sure you try and install the nightly addon to override the compatibility settings.


Sunspider Javascript benchmark result

FF3.1b2
Total: 1270.6ms +/- 2.0%

Google Chrome
Total: 1970.0ms +/- 0.6%

FF3.0.3
Total: 2710.0ms +/- 1.1%

IE8 B2
Total: 7600.6ms +/- 0.3%

Tuesday, October 14, 2008

Lighttpd - light and fast web server

I've used IIS, then Apache on windows, then switched to LAMP and now I'm on LLMP and couldn't be much happier! Lighttpd lives up to its name, it is fast and easy on server resources. Learning it wasn't so bad, I actually found plenty of resources on the web and the configuration is actually much simpler than apache, also I didn't have to rely on webmin to configure it now.

Here's how I configured Lighttpd to run on Ubuntu 8.10 Intrepid Ibex with xcache, memcache and mysql.

To be continued...

Friday, October 10, 2008

sitegeisha.servebbs.org BLOCKED again!!!

:( as of 6:00 am this morning Site Geisha was blocked from dyndns.org, this really makes me furious!!!! Does anyone here know of a DNS registration service that does not block adult forums? Please email at sitegeisha at gmail dat com.

I do apologize for this inconvenience I hope to get SG back up and running soon. Just remembered the original url got blocked when I started using OpenDNS service and now the new one is blocked again.

Free Image Hosting at www.ImageShack.us

QuickPost Quickpost this image to Myspace, Digg, Facebook, and others!

Monday, September 29, 2008

Best recovery tool for Linux is on Windows

hamasaki@Ayumi:~$ sudo reiserfsck --check /dev/sdd
reiserfsck 3.6.19 (2003 www.namesys.com)

************************************************** ***********
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list@namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
************************************************** ***********

Will read-only check consistency of the filesystem on /dev/sdd
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Sun Sep 28 22:12:00 2008
###########
Replaying journal..
No transactions found
Checking internal tree..

Bad root block 0. (--rebuild-tree did not complete)

Aborted (core dumped)


WTF does that mean? Well for one it means I can no longer access about 80 gb of data, HANS REISER just murdered my data!!! LOL.... hmmm well back to my data, is it gone now?

Tried to mount the drive... dmesg output when I tried to mount the drive

[12159.408846] ReiserFS: sdd: found reiserfs format "3.6" with standard journal
[12159.408901] ReiserFS: sdd: using ordered data mode
[12159.414282] ReiserFS: sdd: journal params: device sdd, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
[12159.415307] ReiserFS: sdd: checking transaction log (sdd)
[12159.998070] ReiserFS: warning: is_tree_node: node level 47354 does not match to the expected one -1
[12159.998089] ReiserFS: sdd: warning: vs-5150: search_by_key: invalid format found in block 0. Fsck?
[12159.998100] ReiserFS: sdd: warning: vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of [1 2 0x0 SD]
[12159.998117] ReiserFS: sdd: Using r5 hash to sort names
[12159.998136] ReiserFS: sdd: warning: xattrs/ACLs enabled and couldn't find/create .reiserfs_priv. Failing mount.
[12202.777292] ReiserFS: sdd: found reiserfs format "3.6" with standard journal
[12202.779625] ReiserFS: sdd: using ordered data mode
[12202.785827] ReiserFS: sdd: journal params: device sdd, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
[12202.791682] ReiserFS: sdd: checking transaction log (sdd)
[12203.382859] ReiserFS: warning: is_tree_node: node level 47354 does not match to the expected one -1
[12203.382883] ReiserFS: sdd: warning: vs-5150: search_by_key: invalid format found in block 0. Fsck?
[12203.382895] ReiserFS: sdd: warning: vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of [1 2 0x0 SD]
[12203.382919] ReiserFS: sdd: Using r5 hash to sort names
[12203.392484] ReiserFS: sdd: warning: xattrs/ACLs enabled and couldn't find/create .reiserfs_priv. Failing mount.


It's amazing, the best tool for recovering reiserfs is made for windows!


http://www.ufsexplorer.com/

UFS Explorer just saved me, I was able to make an image of the failed drive, on my other pc with windows xp, I installed UFS Explorer. Then opened the image file that was shared on ubuntu over the network.

UFS Explorer scanned for the superblock and displayed all the folders I needed with the filenames intact and everything on that drive.I was then able to right click on each of them and copy it to a spare drive on the windows pc. It was so easy I now regret wasting so much time on those command line tools where you have to read several man pages just to get started.

I even asked for help on ubuntuforums, no luck. http://ubuntuforums.org/showthread.php?t=932922

Free Image Hosting at www.ImageShack.us

QuickPost Quickpost this image to Myspace, Digg, Facebook, and others!

Thursday, September 25, 2008

Arrghhhh no power again!!!

Went home for lunch and just as I was about to microwave my MRE the power went kapootz :(

Site is down until power is restored, sorry guys, its back to my grill for me.

EDIT: Comcast just finished repairing cable connections in our area, but without power what am I supposed to do?!

Friday, September 19, 2008

After Ike...

Well I'm back home, the servers are okay, me and my family made it through just fine. No damage to our place whatsoever. It took about a week for power to get back, we had running water which was good, but the heat made it almost impossible for people to sleep.

Electricity came back last night, we were all jumping for joy, finally I can get a hot shower! After that I began setting up the servers again, unluckily I guess our cable got knocked off or something, we got no TV and no Internet.

Already called Comcast, I don't know how long it will take for them to get our services back up and running again.

Some damage we saw coming back home...
Free Image Hosting at www.ImageShack.us

QuickPost Quickpost this image to Myspace, Digg, Facebook, and others!

We got some MRE's from FEMA pods, they were okay but taste bland or too salty sometimes, the first one we tried was mexican corns and beans!
Free Image Hosting at www.ImageShack.us

QuickPost Quickpost this image to Myspace, Digg, Facebook, and others!

Friday, September 12, 2008

Leaving Houston now...

Server will be offline until this bad weather has passed... please stand by!!! And hope that the server stays dry!

I made backups of the database and all server files, saved them on my dropbox and I'm hoping nothing gets damage at home.

Thursday, September 11, 2008

Hurricane Ike

http://www.click2houston.com/hurricanetracker/index.html

SG will most likely be down during the storm, I just hope the server stays dry.

Wednesday, September 3, 2008

Tuesday, September 2, 2008

Google Chrome

So Google Chrome is out! It is no doubt fast, hopefully it will be compatible with Firefox plugins soon. Can't wait to run adblock on it and web developer extension. So far only the Windows version is available, hopefully they will release one for Ubuntu, but until I get adblock its probably just gonna sit on my desktop gathering digital dust.



SG is being hijacked!

No-ip.com says I violated their Terms of Service, but they did not say what or which part of their service, nor did I get a warning after using their service for so many years!!!

WTF, I signed up for a different account but they won't let me use sitegeisha.no-ip.org anymore!

damn this sucks... anyone care to donate a domain name?

Tuesday, August 12, 2008

Network-wide Adblock on Ubuntu + OpenDNS adblocking

Based on the article found here: http://notes.ozmonet.com/index.php?title=Network-Wide_Adblock

This method will work for both Internet Explorer and Google Chrome.
You must have lighttpd or apache installed to serve up replacement images or pages.

Install squid: sudo apt-get install squid

Configure: /etc/squid/squid.conf

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
access_log /var/log/squid/access.log squid
log_ip_on_direct off
url_rewrite_children 5
url_rewrite_concurrency 0
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl our_networks src 192.168.219.0/24
cache deny all
http_access allow our_networks
http_reply_access allow all
icp_access allow all
visible_hostname SERVERNAME
coredump_dir /var/spool/squid
Install squidguard: sudo apt-get install squidguard

Download and configure adblock for use with squidguard

wget http://easylist.adblockplus.org/adblock_rick752.txt
create a sefile with this inside it:

/@@.*/d;
/^!.*/d;
/^\[.*\]$/d;
s#http://##g;
s,[.?=&/|],\\&,g;
s#*#.*#g;
s,\$.*$,, g;

Create the expression list: cat adblock_rick752.txt | sed -f sedfile > expressions

In your squidguard folder /var/lib/squidguard/db, create a folder for adblock and copy the expressions file inside it.

sudo chmod proxy.proxy -R adblock

Edit your /etc/squid/squid.conf, add this at the end
redirect_program /usr/bin/squidGuard -d -c /etc/squid/squidGuard.conf

Edit your /etc/squid/squidGuard.conf file
dbhome /var/lib/squidguard/db
logdir /var/log/squid

src my_network {
ip 192.168.219.0/24
}

dest adblock {
expressionlist adblock/expressions
redirect http://localhost/lol.jpg
}
acl {
my_network {
pass !adblock any
}
default {
pass none
redirect http://localhost/lol.jpg
}
}
Restart Squid and then configure your browsers to use the ip address of the server running squid, mine was http://192.168.219.111:3128, fire up your browser and surf ad riddled sites to test it.

Sign-up for OpenDNS, not only do they provide you with speedy DNS queries they also feature ad blocking. The good thing about OpenDNS is that you only have to configure your router and it enables all the features on every computer on your network.

Their DNS servers are down below:
208.67.222.222
208.67.220.220

If you need help configuring your computer or router please check their site.
https://www.opendns.com/homenetwork/start/

Once you are done setting up your router login to their dashboard and go to settings \ Content Filtering. I enabled filtering for adware, parked domains and phishing.

Well that about covers it, enjoy add free surfing!