Category

Programming

You are now browsing the posts filled under Programming.

Custom URL for CakePHP Paginator helper

Well, I finally did it! After 3 hours of trial and error I finally got my custom URL’s for the Paginator Helper. Considering the amount of time it took me to achieve my desired URL format, I’ll share my solution with you. I don’t know if it’s the best solution out there (I didn’t find [...]

Alertpay integration with CakePHP

Recently I implemented a payment module using Alertpay. If you searched for this kind of code you already know what Alertpay is. For those of you who don’t, Alertpay is a payment processor similar to Paypal. To implement this type of payment you must register for an account and activate the IPN option from the [...]

How to paginate search results in CakePHP

Question: How do I paginate data from a model based on a keyword submitted by a user? I must say that it’s a little tricky because the Pagination component in CakePHP uses GET parameters to do it’s magic. That wouldn’t be a problem if I didn’t care about my URL structure but for SEO purposes [...]

How to switch between databases in CakePHP on the fly

Ever needed to connect to another database in your cake app but got stuck and came with another solution? There is a rather simple way to do this and I think it can be extended to other data sources too (not tested but let me know if you do ). Let’s get to it. First [...]

How to bake on Ubuntu using cakePHP

How to bake on Ubuntu using cakePHP

Today I started a new project that I’m developing for school and I thought I’d do it using cakePHP. I went ahead and downloaded xampp for linux and a fresh copy of the cakePHP framework, 1.3.0-RC3, and I extracted it to my webroot. After I created a virtual host for it, it was time to [...]

Using the ArrayList object in JAVA

I continue sharing with you bits of code from my JAVA project picking up the thread left in Running SQL queries in JAVA. I remind you that I must develop a library application for school project. So far I showed you how I connected to a database and how I manipulate data from that database. [...]

Running SQL queries in JAVA

In a previous post, Connecting to Access database in JAVA, I’ve shared a little snippet of code with you that showed how to connect to an Access DBMS. With the connection alone you can’t do much to the database excepting the connection. We need to manipulate the data found in the database we connected to. [...]

Connecting to Access database in JAVA

Hi there, I started a project for school that I must develop in JAVA. It’s a library system that uses Access databases for data and settings storage. I’m not going into any more details about the analysis of the problem but it’s obvious that I needed to setup a connection to the database. In this [...]

Improvements on the shoutbox script

After a while from launching the Shoutbox script, I decided to act on some feedback that I got from you guys (and girls!?). So I implemented the following features: emoticons – just type the character codes from y!messenger to display the emoticon (only 14 emoticons implemented); I tried to implement protection against javascript code being [...]

Some HTML markup

Some HTML markup

I love to do web stuff too but c’mon. Cool tatoo nontheless. More at Cmdshiftdesign.