Welcome to pritaeas.net
This website was designed and developed purely for me. It was supposed to be a collection of useful code snippets I don't want to forget about. Some are created just for fun, others because I needed them elsewhere. Recently I've decided that I wanted to try and write about it, so I'm going to turn my examples into something more of a tutorial.
For now, the old jquery section is still accessible. I'll repost these examples in an article/tutorial style. The jQuery FAQ article is the first that has been rewritten and moved. Please note that the older articles are still using an old version of jQuery. It is recommended to always use the latest available version.
Note: if you copy (parts of) my pages, please remove my Google Analytics tracking code.
Recent articles
- 2012-12-07 Using PHP/SQLite3 with error checking
This example shows you basic usage of the SQLite extension in PHP, with error checking.
- 2012-12-07 Using PHP/SQLite2 with error checking
This example shows you basic usage of the SQLite extension in PHP, with error checking.
- 2012-10-20 Introduction to PHP's Object Orientation
In this introduction I will try to explain basic object orientation (focused on PHP). It is by no means meant to be a complete guide. There are a lot of concepts I am avoiding for simplicity's sake. I will try to give a theoretical explanation first, and later on provide some code examples.
- 2012-09-28 Using PHP/PDO with error checking
This example shows you basic usage of the PDO extension in PHP, with error checking.
- 2012-09-22 Using PHP/MySQLi with error checking
This example shows you basic usage of the MySQLi extension in PHP, with error checking.
- 2012-09-21 Using PHP/MySQL with error checking
This example shows you basic usage of the MySQL extension in PHP, with error checking.
- 2012-08-04 Using a PHP array for MySQL table definition
This PHP class shows you how you can use an array to define your MySQL table(s), and generate queries for it.
- 2012-06-16 Create HTML table
This PHP snippet will show how you can pass a data array to a function, and create a HTML table with X columns. The function will trigger a callback function for each row of data, to specify the exact layout of each cell.
- 2012-06-09 ReplaceStrings function
The ReplaceStrings function replaces all strings in APatterns found in ASubject with the value in AReplacement. As an example, I added the RemoveStrings function which replaces everthing with an empty string, thus deleting all strings found.
- 2012-01-18 Delphi operator overloading
Operator overloading is a feature of Delphi, introduced in version 7. It's use is restricted to records, unless you are using Delphi .NET (support for classes too). Not until recently I found a practical usage for them, namely to handle colour conversions.
- 2011-12-31 Google Analytics for mobile on PHP4
I was installing Google Analytics for mobile on several websites, when it occured to me that one was not tracking. After some source browsing followed by debugging, I saw that setrawcookie() failed. I forgot that this particular server was still running on PHP4.
- 2010-09-05 Portfolio with jQuery
Looking for a portfolio which rotates images, descriptions and links ? I have a demo right here.
- 2010-08-24 FAQ with jQuery
Do you have a static FAQ page on your website? You can use jQuery to add some animation and make it a bit more appealing to your visitors.
- 2010-08-22 MySQL order by hack
On a late afternoon I came to discuss an ordering issue on a legacy table. Not really a big issue, but I think the solution could be interesting. It is not the most recommended way of doing things, but interesting none the less.
