Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Remove browse button from input type=file

In Web 2.0 era, many websites will ask the user to upload their avatar when creating their profile. In HTML, the input control we should use is input="file". This is a file control provided by the browser vendor and it should be ran in a sandbox for security consideration. Browsers don't provide ways to choose file from local and upload to the remote server without the input="file" control. There is one annoying part about the input="file", which is a default button named "Choose File" or "Browser" will always appear when this control is created. Sometimes, to keep consistent and provide ...

46,816 3       HTML FILE BROWSE REMOVE BROWSE BUTTON


  A possible way to recover deleted files on Linux

Last week I was generating a MD5 sum for an virtual machine image on one OpenNebula server:# ls -l test.img-rw-r--r-- 1 root root 10486808576 Oct 12 02:21 test.img# md5sum test.imgAt the same time I was clearing the files on the server on another terminal and deleted the above image file mistakenly with :# rm test.imgSince this image file is 10GB, it took some time to remove this file from the server, so I used the Ctrl+Z command to suspend the remove command.[1]+ Stopped md5sum test.imgBy doing this, we can recover the deleted image file later. The rationale here is if other ...

55,301 0       LINUX FILE RECOVERY


  Introducing JavaScript native file management

TL;DRThe Mozilla Platform keeps improving: JavaScript native file management is an undergoing work to provide a high-performance JavaScript-friendly API to manipulate the file system.The Mozilla Platform, JavaScript and FilesThe Mozilla Platform is the application development framework behind Firefox, Thunderbird, Instantbird, Camino, Songbird and a number of other applications.While the performance-critical components of the Mozilla Platform are developed in C/C++, an increasing number of components and add-ons are implemented in pure JavaScript. While JavaScript cannot hope to match the spee...

1,589 0       JAVASCRIPT FILE LOCAL FILE FIRFOX MOZILLA