-
Search
Categories
-
Linux, PHP, LAMP, The Web in a blog- Android – how to develop directly on a phone
- Android drawable default icons – they are free to use
- Android how to read and write files
- Uncompress on the fly when copying a file from a remove location with scp
- Setting up an encrypted volume on an external hard drive on CentOS
- Linux bash – tar tricks
- Implement Selenium tests
- Using a downloaded package without IDE in Java
- CSS selectors optimisation
- Ubuntu Linux on Acer Aspire AO751h
Tag Cloud
alarm array backup begin button character commercial constants coppermine CSV DVD eclipse ecommerce email email server expect firefox font foreach formatting fstab ftp GMail gnome keyboard Lucene marketing memcached mount plugin profiling protect regexp scp Selenium SEO sftp split svn tar utf utf8 Vbulletin Virtual Server Web Dev Security
Category Archives: Web Development
Installing Memcached and PHP Memcache on CentOS and Ubuntu
On CentOS: Install Memcached _ yum install memcached _ /sbin/chkconfig memcached on _ /etc/init.d/memcached start _ vim /etc/sysconfig/memcached, and edit: OPTIONS=”-l 127.0.0.1″ Install PHP extension for Memcache: _ yum install zlib-devel This will prevent this error from occurring: configure: error: … Continue reading
Minify CSS and Javascript Files With YUI Compressor From Linux Command Line
You can download YUICompressor from here: http://yuilibrary.com/downloads/#yuicompressor Extract the package You need Java to execute it (on Ubuntu): sudo apt-get install sun-java6-jre To use it, you can execute this on the command line: cat jquery-*.min.js library.js common.js lists.js tasks.js contexts-mgmt.js … Continue reading
Posted in Web Design
Leave a comment
Symfony – Creating a New Plugin
You need this just once: _ sudo apt-get install php-pear _ sudo pear channel-discover plugins.symfony-project.com For every package: _ Create the file package.xml and put it on the root of the plugin _ launch: pear package To update the repository, … Continue reading
Posted in Symfony
Leave a comment
MySQL: Deactivate Referential Integrity
If you database has InnoDB tables, you will need to deactivate referential integrity while restoring data. Unfortunately, this can’t be done using the mysqldump utility. To do so, backup your database as you would normally. When done, open the SQL … Continue reading
Posted in MySQL
Leave a comment
Free Icons
http://www.pinvoke.com/ http://www.famfamfam.com/lab/icons/silk/
Posted in Web Design
Leave a comment
POST Request with PHP and with HTTP Authorization
function POSTReqeustWithHTTPRequest($message, $username, $password) { $context = stream_context_create(array( ‘http’ => array( ‘method’ => ‘POST’, ‘header’ => sprintf(“Authorization: Basic %s\r\n”, base64_encode($username.’:’.$password)). “Content-type: application/x-www-form-urlencoded\r\n”, ‘content’ => http_build_query(array(‘status’ => $message)), ‘timeout’ => 5, ), )); $ret = file_get_contents(‘http://example.com/update.xml’, false, $context); return $ret; }
Posted in PHP
Leave a comment
Very Easy SVN Server for Local Development
This is a very easy installation that lacks in security. That means do it on your personal laptop, no other users but you. Install the subversion package (i.e. apt-get install subversion) sudo mkdir -p /home/svn/ sudo svnadmin create /home/svn/project_name sudo … Continue reading
Sympony – Propel – Get Connection Details
/** * Returns an associative array with the details of the database connection * * @param string $application the name of a valid application (i.e.: frontend) – used to get a Propel connection * @param string $environment the environment we … Continue reading
Posted in Symfony
Leave a comment
Symfony – Hydrated Criteria
public static function getHydratedCriteria() { $criteria = new Criteria(); $criteria->addSelectColumn(‘*’); $criteria->setPrimaryTableName(self::TABLE_NAME); $criteria->addJoin(self::COMPANY_ID, CompanyPeer::ID, Criteria::INNER_JOIN); $criteria->addJoin(self::CITY_ID, CityPeer::ID, Criteria::INNER_JOIN); $criteria->addJoin(self::REGION_ID, RegionPeer::ID, Criteria::INNER_JOIN); return $criteria; }
Posted in Symfony
Leave a comment
