Codes and Snippets
   Flash AS3
   HTML special char
   JavaScript
   PHP codes
   Vb codes
   Windows Script
Electronics
   Circuits and Schematics
   Electronics tutorial page
Multimedia
   DJ Software
   Online Radio
Portfolio
   Speech Lab
   System Created
Research
   All about TCP/IP
   Face Recognition
   Laplink Cable
Resources links
   3D Max Resources
   Payment Gateways
   Visual Basic Site Links
Something Funny
   Computer Gender
   Joke about mouse balls
   SMS Jokes
Tips And Tricks
   phone tricks
   Windows Tweaks
Embed your own font to your website using CSS3
If you are running a modern CSS 3 compliant web browser, or Internet Explorer, you should see your custom font embedded in the paragraph below:

The quick brown fox jump over the lazy dog near the bank of the river

How to do this?

  • Convert your font (ttf) to eot (web embedable font) using WEFT from Microsoft or ttf2eot online coverter and upload your fonts together with the eot file to your website.
  • Place a CSS3 code on the head section of your site like the sample below

    <style type="text/css">
    @font-face {
    font-family: MyCustomFont;
    src: url("myfont.eot") /* EOT file for IE */
    }
    @font-face {
    font-family: MyCustomFont;
    src: url("myfont.ttf") /* TTF file for CSS3 browsers */
    }
    </style>

  • And on your web content do the normal css thing

    <span style="font-family:MyCustomFont, Arial, Tahoma">The quick brown fox jump over the lazy dog near the bank of the river</span>

    Note that MyCustomFont can be in any name you like, the Arial and Tahoma is just a safe font just in case your browser does not support CSS3

  • Saving UTF8 Character (Arabic) in MySQL database with PHP

    Ever wanted to save arabic text on your mysql database with PHP? here are some few tips you need to do to get rid of ??? character

    Make sure that you are using UTF8 everywhere!
  • The browser:
    ("Content-type: text/html; charset=utf-8"); ?>
    

    You can also use a meta tag that is redundant in theory:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    

    Also, note that the the
    element has an 'accept-charset' attribute which should also be set:
    <form accept-charset="utf-8" ...>
    
  • Mysql:
    Make sure that your table's collation is utf8_general_ci and that all string fields within the table also have the utf8_general_ci collation. And here's the really important bit: make sure your client connection is also using UTF-8:
    For mysql:
    mysql_set_charset('utf8');
    or execute the SQL immediately after connection:
    SET NAMES UTF8;
  • Remote MySQL of Wamp server using SQLyog

    I sometimes forgot how to configure my SQLyog program to remote the MySQL database so I decided to put it here on my site just for reference

    As default the MySQL database can be access locally on the same pc but how about you are going to access it from other pc on your network, a very simple steps are the following:

  • On the SQLyog running on local pc where mysql database are running create a new user and configure all permissions, the user host will be % to allow access from any computer.
  • Open the firewall configuration of the same pc and add an exemption port and add the following port address 3306, TCP and UDP.
  • Now try accessing your mysql database from other pc and supply the user login information that you have newly created on the MySQL server
  • SETUP new user and GRANT previleges
    GRANT ALL ON *.* TO 'user2'@'localhost' IDENTIFIED BY 'pass1';
    
    3D Max Scripts
    Below are some script use in 3D Max to automate the task, some of these are very useful and cannot be found on the menus or user interface function, I will update this information soon
  • 1. $.mat = null - remove the material from the selected objects.
  • Run multiple ym on one pc
    For some reason you need not to get offline when your friend use your pc to chat, heres how:
  • 1. Start
  • 2. Run
  • 3. Type Regedit
  • 4. Go to HKCU\Software\Yahoo\Pager\Test
  • 5. Add a new string value to test, name it plural
  • 6. Change plural's value to 0.
  •