How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

November 24, 2011

install fileinfo with pecl problem on centos

Filed under: Linux — admin @ 11:29 am

Today I was trying to install fileinfo on a server and get this error.

checking for magic files in default path… not found
configure: error: Please reinstall the libmagic distribution
ERROR: `/tmp/pear/download/Fileinfo-1.0.4/configure’ failed

After i try to install yum install libmagic , libmagic-dev , libmagic-devel and see don’t work the panic was here. After a long search I discover that the solution was to install
yum install file-devel

So if you are on same situation hope this will help you .

Regards

September 30, 2011

Google Search shortcode

Filed under: Wordpress Plugin — admin @ 5:32 pm

Google search shortcode let you add a **”search with google”** form where you want.
You cand have a search on every post, sidebar where do you want.
It can be customize by templates, also is prepared to be translated.

It perfom following function in **real time** :

* search on google and display result on your post
* you may chose what language to be use when search

DOWNLOAD FROM HERE

August 25, 2011

What is the & Ampersand Preceding Variables – reference – php &$

Filed under: Php — admin @ 4:40 pm

You may see PHP code snippets that have an ampersand, ‘&’, preceding a variable like &$examplevar.

So, what does it do? It sets up a reference to the original variable instead of copying it’s value.

Exemple:

$orig = “something 1”;

$reference = &$orig;

echo $reference  // will output “something 1”

Now if we change the $orig with something else

$orig = “something 2”;

echo $reference // will output “something 2”

April 29, 2011

Download free fonts

Filed under: Scrambled — Tags: , , — admin @ 10:07 am

Well long time no post on my blog.

Today I have manage to launch my first site Download free fonts in php.  I try to make it fast. I hope I manage, because until now google webmaster say that is 96% faster that other sites.   I will work on it to improve it.

Hope will be a good resource for fonts.

October 25, 2010

mysql pc speaker beep

Filed under: Linux — Tags: , , — admin @ 11:12 pm

Well today I was trying some commands  on mysql and suddenly because my command was wrong speaker blow up my ear.  I know  that  it wasn’t the  sound card speaker and it was the system speaker, so the question remain.

How to disable system speaker for mysql ?

Well after a small search I find out that I have to add –no-beep or -b on mysql command.

So the solution is or to add –no-beep or -b or to make a sql.bat and enter in this file mysql –no-beep

My solution was to modify windows path variable to add path to my mysql directory, and after that I run sql from start>run>sql , and I have a client witch don’t beep me any more.

Hope to help u.

« Newer PostsOlder Posts »

Powered by WordPress