Archive for the ‘Tips & Tricks’ Category
Advanced object selection using Mootools
Mootools’ “Selectors” utility has some really strong feature. It really saves a lot of time and sweat. Using this property, one can select a tag (any one can!), tag with specific name, id or any other attribute (huh!) and most amazingly part of a property value matching to some string…
Say you want to select all the div tags which has ID starting with ‘my’. How can you do that? Read the rest of this entry »
File upload/download on MySQL database
Well… It is already a well discussed topic. But when I was first trying to find out how to do this, I really got stuck. Actully it took me a lot of time to find out the key code segment for the purpose.
So, here is what I’ve learned:
The table:
Suppose the structure of the MySQL table (say ‘file_table‘) is like this:
It has three fileds:
id : the primary key, integer type with auto increment feature.content: the content of file, blob type.type: varchar type, the type of the file (e.g. doc, pdf etc.).
Upload:
I think you can create a HTML form with a input with file type. Its pretty simple. Just use this code to make a input field be able to upload file:
<input id="file_upload" name="file_upload" type="file" />
Now the backend coding. I’m using PHP for this. Read the rest of this entry »
Monitor’s ICC Profile
Well… I’m not an expert on this section, but just solved my problem regarding this. So thought, I’d share.
I used to see the white as yellow on my Photoshop!! My monitor is Samsung SyncMaster 920NW. This problem occurred both in Windows XP and Vista!! Explored different forum but didn’t get the perfect solution. Then I started to check out different settings in my Vista control panel.
Here is what I’ve changed:
Go to Control Panel > Hardware and Sound > Color Management.
I’ve first selected the display device from combo box and then checked ‘Use my setting for this device’. Then removed the active ICC profile and added Adobe RGB (1998) as default profile.
That’s it! Well it worked for me. You are on your own risk…










