Skip to main content

Posts

jQuery webcam plugin

The jQuery webcam plugin is a transparent layer to communicate with a camera directly in JavaScript. Overview This plugin provides three different modes to access a webcam through a small API directly with JavaScript - or more precisely jQuery. Thus, it is possible to bring the image on a Canvas (callback mode), to store the image on the server (save mode) and to stream the live image of the Flash element on a Canvas (stream mode). If you just want to download the plugin, click here: Download the jQuery webcam plugin jQuery webcam example jQuery Take a picture after 3 seconds | Take a picture instantly Available Cameras HP Webcam [2 MP Fixed] (V4L2) If you activate the filter with the button on the right side of the picture, methods of my already published jQuery plugin xcolor will be used to distort the colors of the Canvas. General information about the interface The following snippet describes the interface of the webcam API: $ ( ...

Very useful HTML5 APIs

Element.classList The classList API provides the basic CSS controls our JavaScript libraries have been giving us for years: // Add a class to an element myElement. classList . add ( "newClass" ) ; // Remove a class to an element myElement. classList . remove ( "existingClass" ) ; // Check for existence myElement. classList . contains ( "oneClass" ) ; // Toggle a class myElement. classList . toggle ( "anotherClass" ) ; The epitome of a great API addition: simple and intelligent. ContextMenu API The new ContextMenu API is excellent:  instead of overriding the browser context menu, the new ContextMenu API allows you to simply add items to the browser's context menu: contextmenu = "mymenu" > type = "context" id = "mymenu" > label = "Refresh Post" onclick = "window.location.reload();" icon = "/images/refresh-icon.png" > label = ...

Read PDF and Word DOC Files Using PHP

Reading PDF Files To read PDF files, you will need to install the XPDF package , which includes "pdftotext." Once you have XPDF/pdftotext installed, you run the following PHP statement to get the PDF text: $content = shell_exec ( '/usr/local/bin/pdftotext ' . $filename . ' -' ) ; //dash at the end to output content Reading DOC Files Like the PDF example above, you'll need to download another package. This package is called Antiword . Here's the code to grab the Word DOC content: $content = shell_exec ( '/usr/local/bin/antiword ' . $filename ) ; The above code does NOT read DOCX files and does not (and purposely so) preserve formatting. There are other libraries that will preserve formatting but in our case, we just want to get at the text.

How to Install SQLite3 from Source on Linux (With a Sample Database)

SQLite3 is an extremely lightweight SQL database engine that is self-contained and serverless. There is absolutely no configuration that you need to do to get it working. All you need to do is–install it, and start using it. Since this is serverless, it is used in lot of the famous software that you are using, and you probably didn’t even know those software were using it. View  this list  to see all the big name companies who are using SQLite. PHP programming language has SQLite database built in. If you’ve never used SQLite, follow the steps mentioned in this article to install it on Linux, and create a sample database. Download SQLite3 Source Go to the  SQLite Download page , and click on “sqlite-autoconf-3070603.tar.gz” (Under Source Code section), and download it to your system. Or, use the wget to directly download it to your server as shown below. wget http://www.sqlite.org/sqlite-autoconf-3070603.tar.gz Install SQLite3 from Source Uncompress the ...

Open source software requirement and user documentation tool - MediaWiki

You probably know Wikipedia , the free encyclopedia, and may possibly be a little bit confused by similar, but different, words such as Wiki, Wikimedia or MediaWiki . To avoid a possible confusion between the words you may first want to read the article about the names where the differences are explained. MediaWiki is free server-based software which is licensed under the GNU General Public License (GPL). It's designed to be run on a large server farm for a website that gets millions of hits per day. MediaWiki is an extremely powerful, scalable software and a feature-rich wiki implementation, that uses PHP to process and display data stored in a database, such as MySQL . Pages use MediaWiki's wikitext format , so that users without knowledge of XHTML or CSS can edit them easily. When a user submits an edit to a page, MediaWiki writes it to the database, but without deleting the previous versions of the page, thus allowing easy reverts in case of vandalism or...

Building Applications on the Zend Developer Cloud

Zend Studio and the Zend Developer Cloud support an integration platform with GitHub projects. This allows you to use the features of GitHub, Zend Studio, and the Zend Developer Cloud for the same application. You can now use the cloud to deploy, debug and modify your GitHub project from Zend Studio. In this Tutorial you will Learn To create GitHub and Zend Developer Cloud accounts. You will need these accounts to maintain a project in GitHub and deploy on Zend's cloud platform. To create a new container in the Zend Developer Cloud. The container holds your application in the cloud. To create a new project from GitHub. You will be using an existing GitHub project to create a new project in Zend Studio. To launch the application on the Zend Developer Cloud and debugging it in Zend Studio. Prerequisites An installed Zend Studio 9.0 or above. To install Zend Studio go to  http://www.zend.com/en/products/studio/downloads . Step 1: Creating an Account for Git...