Tags
Abstract Android Apache apt-get Art bash C++ calendar CentOS circuit CSS electronics emulator Excel ffmpeg FTP HTC http ImageMagick images ip javascript jquery LED linux math memory mvc MySQL nodejs PHP phpize PHP RAD Sharpy plaintext PostgreSQL Python resize root rotate security socketio ubuntu ui Windows yumCategories
Meta
Category Archives: PHP
Installing php-ffmpeg on CentOS 5.x
This can be a pain due to a bug in the ffpmeg_frame.c file … here are the commands to get up and going yum -y install ffmpeg ffmpeg-devel wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download tar jxvf ffmpeg-php-0.6.0.tbz2 sed -i ‘s/PIX_FMT_RGBA32/PIX_FMT_RGBA/g’ ffmpeg-php-0.6.0/ffmpeg_frame.c cd ffmpeg-php-0.6.0 && … Continue reading
Sharpy Lite PHP RAD Framework
So here is part of the Sharpy framework I have been developing with. Once I get things more mature, I will release the whole php rapid application development framework. Download sharpy-lite. Published under the MIT License. Basically just upload the … Continue reading
jQuery wdCalendar Plugin: Adding double click action
You can add a double click by altering the event DIV in jquery.calendar.js i.e. var __SCOLLEVENTTEMP = "<DIV style=\"WIDTH:${width};top:${top};left:${left};\" title=\"${title}\" class=\"chip chip${i} ${drag}\"><div class=\"dhdV\" style=\"display:none\">${data}</div><DIV style=\"BORDER-BOTTOM-COLOR:${bdcolor}\" class=ct> </DIV><DL ondblclick=\"alert(1);\" style=\"BORDER-BOTTOM-COLOR:${bdcolor}; BACKGROUND-COLOR:${bgcolor1}; BORDER-TOP-COLOR: ${bdcolor}; HEIGHT: ${height}px; BORDER-RIGHT-COLOR:${bdcolor}; BORDER-LEFT-COLOR:${bdcolor}\"><DT style=\"BACKGROUND-COLOR:${bgcolor2}\">${starttime} – ${endtime} ${icon}</DT><DD><SPAN>${content}</SPAN></DD><DIV … Continue reading
Posted in JavaScript, PHP
2 Comments
jQuery wdCalendar Plugin: Expected ajax return
This plugin isn’t documented very well, so I figured I would post the bits and pieces I had issues with and hopefully help someone out. First thing I needed to do was move all the functions into a class and … Continue reading
Even More Sharpy
I am adding a basic Blog app to the base of Sharpy to exemplify how to code using Sharpy … of course, it is just an example. I fixed a few bugs in DataMapper and made one to one and … Continue reading
Posted in Internet, Patterns, PHP
Leave a comment
More Sharpy
Since the last post I’ve added basic database support for MySQL and PostgreSQL. In addition is a basic ACL and a DataMapper class to build models from. I just finished up adding in the ability to execute methods before and … Continue reading
Posted in Internet, Patterns, PHP
Leave a comment
Sharpy
So I decided to start working on a rapid application development (RAD) framework for PHP the other day after a brief stint with Ruby on Rails. I’ve decided to call the framework Sharpy. The code is hosted by Google Code … Continue reading
Posted in Internet, Patterns, PHP
Leave a comment
Generate and validate UUID / GUID with PHP
function UUID(){ return sprintf(‘%04x%04x-%04x-%04x-%04x-%04x%04x%04x’, mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0×4000, mt_rand(0, 0x3fff) | 0×8000, mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)); } function validUUID($uuid){ return preg_match(“#^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$#”, $uuid); } Bookmark on Delicious Digg this post Recommend on Facebook … Continue reading
Posted in PHP
Leave a comment
phpize not found
This error is typically generated when you don’t have the PHP development libraries installed. Installing the libraries via repository is the easiest and quickest fix. For Fedora/Red Hat: yum install php5-dev For Ubuntu/Debian: apt-get install php5-dev Bookmark on Delicious Digg … Continue reading
Python MySQL Associative Array
By default, the MySQLdb module to access a MySQL database returns the data as an integer indexed array. Sometimes this is not desirable and an associative array is preferred, such as the mysql_fetch_assoc function in PHP. In addition, we will … Continue reading
