mysql

Reasons why MySQL table crashed

:) A few days ago, I was trying to update a record in my database and encountered an error message in the form of “Incorrect key file for table xxx.MYI”. Since the update was not really that important, I decided to ignore that warning but this was a very big mistake that I would regret later. I went out for the day and when I came back at night, I found that my traffic has plummetted and when I investigated, I found that the table that was having problems earlier has crashed. So I decided to find reasons why MySql tables would crash and they are as follows:

html5

HTML5 Website Flash-Killing Demos

The HTML5′s canvas element is the deciding factor for HTML5 to replace certain Flash animation. It allows you to build dynamic, scriptable rendering of 2D shapes and bitmap images with Javascript, which by other mean is, controllable animation.

Continue Reading →

Why Javascript parseInt(’08′) returns 0 ?

I found something really confused me?

Writing a simple Javascript function to create a Date object from a ‘yyyy-mm-dd’ string I found a small, but important, issue with the parseInt function, used to transform strings to integers.

Both parseInt(’08′) and parseInt(’09′) return zero because the function tries to determine the correct base for the numerical system used. In Javascript numbers starting with zero are considered octal and there’s no 08 or 09 in octal, hence the problem.

To fix this just add the second parameter for parseInt, the base to be used for the conversion. The correct calls should be parseInt(’08′, 10) and parseInt(’09′, 10).

encrypt-files-vista

AES (Advanced Encryption Standard) PHP version

This version directly mirrors the JavaScript version; it differs in that PHP has Base64 encoding and UTF-8 encoding built-in, and has no unsigned-right-shift operator(!), but is otherwise a straightforward port, with syntactic differences and differently-named libray functions. It is quite simple to compare the two versions side-by-side.

See below for the source code of the PHP implementation. §ection numbers relate the code back to sections in the standard.
Example Code:
php_aes_encryption

sugarcrm_logo

SugarCRM Advantages and Disadvantages

SugarCRM -

I think this one is the best CRM that I used to work on.  Easy to use and y customers like it. If you would like to modify SUGAR CRM you think “hayaak.com

Sugar OS is an open source CRM application bringing a feature-rich set of business processes that enhance marketing effectiveness, drive sales performance, improve customer satisfaction and provide executive insight into business performance. It is a preferable choice for customers of all sizes across a broad range of industries because of its collaboration and administration capabilities to adapt how their company operates.

zero-clipboard

Easy way to copy text to the clipboard using an invisible Adobe Flash movie, and a JavaScript interface.

Finally! I found the way to copy my textarea.

The Zero Clipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie, and a JavaScript interface. The “Zero” signifies that the library is invisible and the user interface is left entirely up to you.

This library is fully compatible with Flash Player 10, which requires that the clipboard copy operation be initiated by a user click event inside the Flash movie. This is achieved by automatically floating the invisible movie on top of a DOM element of your choice. Standard mouse events are even propagated out to your DOM element, so you can still have rollover and mouse down effects.

อีสานกันเอง

Latest hayaak cusotmer e-sarn restaurant “E-sarn-Kan-Eang”

Here we go!  Finally we finished our new customer website called “e-sarn kan eang”.

P Ton, the project owner called me a little boy.  Thank you for your trust and your supports.

www.อีสานกันเอง.com

 

 

cakephp-and-facebook

Step by step : Facebook Integration with CakePHP

What do you need? If you guys would like to integrate Facebook with CakePHP.

Lest’s check this out. Do it in 10 minutes!

FEATURE LIST

 

  • Full featured authentication via Facebook Connect. Facebook Authentication will work with or without a user login system already in place on your site. Works seamlessly with your already built in user authentication system via AuthComponent -OR- Facebook Connect can work as your primary authentication system.
    • Setup is as easy as dropping Facebook.Connect into your components array.
    • Retrieve Detailed User Information and gain access to protected data via extended permissions (user prompted to allowed)
QTRANSLATE

Multi-Languages Your Website

Hi there!. This morning, I’ve found a good wordpress plugins called

QTRANSLATE

I spent only 20 minutes to set m1y customer’s website to be 3 languages website.

Lets check it out.

qTranslate makes creation of multilingual content as easy as working with a single language. Check out some of the features:

  • One-Click-Switching between the languages – Change the language as easy as switching between Visual and HTML
  • Professional human or automated machine translation – Reach more visitors and show that you care about them by showing your entries in their native language
firebu-php

FirePHP a Firebug Extension for AJAX Development

FirePHP enables you to log to your Firebug Console using a simple PHP method call.
All data is sent via response headers and will not interfere with the content on your page.
FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required.

Object Oriented API

Use the object oriented API when you want to keep the logging statements in your application. It will provide more flexibility and future-proof your code.

Logging is enabled by default. You can disable it with setEnabled(false). Use this method to disable logging on your live site for everyone except authorized users.