~ overflow ~

Archive for April, 2009

Experts-Exchange.com SEO Scam

by z3n on Apr.30, 2009, under Tips & Hints

Problem:

Experts-exchange.com is showing every where on your searches, however the site acts nasty and don’t show the answers when you’re inside it.

Solution – Scamming the scammers:

This site is scamming google, although it has good answers, it’s acting nasty!!

If you access it with a google.com referal (meaning you searched at google and found a result from them and clicked that result) you will get the answers, this happens because they can get spidered and get all SE traffic.

Now what you have to do is set google to search only on experts-exchange.com domain OR you can tweak your browser’s referal to be http://www.google.com, so:

For example:

If you open this page you will not get any answers, that’s because your referal will be overflow.biz, now, if you search for “Can’t open hotmail” and click on experts-exchange link at google, you will get the answers (on the footer), you can benefit from google’s cache, like this.

Leave a Comment :, , more...

Testing email server with telnet

by z3n on Apr.28, 2009, under Tips & Hints

I keep forgeting about this so i decided to write a post.

Problem:

An easy way to test a pop3 email server.

Solution:

telnet mail.server.com 110

user username

pass yourpassword

list to list messages

stat to show status of your mailbox

retr # to show the message

dele # to delete a message

Source:

Mike Tech

Leave a Comment :, , , , more...

CanoScan N640P on Linux

by z3n on Apr.28, 2009, under Linux Happyness

Problem:

Configuring my old school CanoScan N640P on linux.

Solution:

Install sane pack.

Edit /etc/sane.d/dll.conf, comment everything but canon_pp

Edit /etc/sane.d/canon_pp.conf, uncomment force-nibble

use xsane or scanimage (CLI) to scan your stuff!

Full Story:

There’s 2 options, with SANE or using this old project.

With sane it’s easier, you just need to make sure you uncomment the canon_pp from your /etc/sane.d/dll.conf

the documentation is a bit obscure and errors as well, specially when you’re doing this on CLI.

After uncommenting the dll.conf (canon_pp) you can open xsane, and then it will detect the scanner correctly.

For me, xsane worked better than the sane-find-scanner, wich, even with the -p switch never detected anything.

There’s another way to detect it on the command line, by scanimage -L, wich will list the detected scanners using a different method, you can also do the whole scan process using scanimage, not good as xscan but an alternate.

xsane was able to calibrate my scanner, however, when i tried to scan i got a kernel fail, not sure if this scanner is too old or it’s something with the LPT buffer, after the kernel crash scanner stopped working correctly, it only scans a part of the image, apparently until the LPT buffer is full, but data never reaches the computer, scanner gets stuck in the middle of it’s job waiting for the machine return (apparently :P). Scanimage has an option to change the LPT buffer, i tried it out by scanimage -T -B -p -v, but nothing it still getting stuck in the middle.

After some more research i figured out that uncomenting force-nibble at canon_pp.conf did the work.

Sources:

Ubuntu Forums

Linux Certif

derkeiler.com

Leave a Comment :, , , , , , more...

Bluetooth audio on Fedora 10

by z3n on Apr.28, 2009, under Unsolved

Problem:

Link my HT-820 headphones with my bluetooth device using fedora.

I’ve searched many places, but nothing worked, I’m able to pair the headphone with hcitool, however there’s no option anywhere to output the audio using the bluetooth.

I also tried to configure sound with ALSA and nothing.

Using a this usefull bluetooth script, i was able to go a little further on the issue, with the error:

Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Apparently this seemed for me as a SELinux issue, it would be blocking something, but even with SELinux disabled the error persists.

Gnome’s bluetooth applet works good on detecting and pairing the device, however, there’s no place where i can list the services or even connect with them, it only allows me to send or receive files from it. I also tried KDE bluetooth applet, slightly better, but yet, no other pairing options.

Leave a Comment :, , , , , more...

A Decent PHP Resizer with auto cropping

by z3n on Apr.27, 2009, under Coding, Tips & Hints

Problem:

Resize an image to any size without having black areas, even if the resized image ratio is no match with the original image.

Solution:

When the resized image ratio is no match we will crop the proportional middle area of the original then resize it using the right ratio.

Source Here.

More Information:

PHP Manual page for ImageCopyResampled.

* ratio = width / height

Leave a Comment :, , , more...

Installing RAR Support for PHP on Fedora/Linux

by z3n on Apr.25, 2009, under Linux Happyness

Problem:

php has no support to rar on fedora, there’s no yum pack for easy install.

Solution:

packs you will need:

php-devel gcc-c++

one line install: (version might differ!)

wget http://pecl.php.net/get/rar;mv rar rar.tgz;tar -xzvf rar.tgz;cd rar-1.0.0;phpize;./configure && make && make install;

don’t forget to add:

extension=rar.so

on your php.ini

1 Comment :, , more...

Running VNC on Local Display (X:0)

by z3n on Apr.24, 2009, under Linux Happyness

Problem:

Running a VNC server on a virtual display is easy but when it comes to emulate a logged session it’s a hell. I’ve been looking around and couldn’t find anything about “how to run vnc on local display” , “running vncserver on :0″ etc etc google has let me down.

Solution:

I’m using vnc-server 4.1.3-1.fc10 on my machine, however, this solution has been implemented a long time ago (apparently), but it’s obscure:

x0vncserver

Note that it will not have a good performance, at least not on my crappy machine, but it works…

Leave a Comment :, , , , more...

Fedora 10 Network issues

by z3n on Apr.24, 2009, under Linux Happyness

Problem:

After instaling a language pack on the system some services apparently restarted and then network stopped working. I was able to ping and IP but couldn’t resolve anything. Even with the resolv.conf filled with DNS.

Solution:

The issue wasn’t on the resolv.conf, looks like that NetworkManager was conflicting with something, when i logged at gnome it was stating that i was “disconnected”, but i had 2 wired connections on that machine, so something was very wrong.

I decided to shutdown NetworkManager and manually configure the ips and gateways, this is the config i made:

ifconfig eth0 192.168.1.5 netmask 255.255.255.0
ifconfig eth1 1.0.0.1 netmask 255.255.255.0
route add default gateway 192.168.1.253
route add 1.0.0.0 gateway 1.0.0.1

my router is on 192.168.1.253 and i have a internal network with the 1.0.0.* on the secondary NIC. route commands are the most importaint, they were avoiding me to resolve the addresses. Also when you disable the networkmanager NICs will not have ips unless you define them manually.

So, it’s just add this to /etc/rc.d/rc.local and everytime you boot you will have your network working just fine without networkmanager crappyness. Obviously that you don’t need to reboot to make this work.

Leave a Comment :, , , , , more...

Disabling Fedora 10 Color Boot

by z3n on Apr.23, 2009, under Linux Happyness

Problem:

This new fedora don’t show the boot process by default, by boot process i mean the loading of the services and other stuff that could be usefull if you fall on a error.

Solution:

vi /etc/sysconfig/init

change:

BOOTUP=color

to

BOOTUP=verbose

Leave a Comment :, , more...

Disabling Fedora 10 Graphical boot

by z3n on Apr.23, 2009, under Linux Happyness

Problem:

Fedora’s graphical login is not good when you don’t have a mouse to click the buttons.

Solution:

vi /etc/inittab
change id:5:initdefault:
to id:3:initdefault:

Source:

fedoraforum

Leave a Comment :, , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!