PX : code by Marcus

TitleSectionRating Views Last Modified    
1 - PHP MySQL Web Interface databases : MySQL-specific -- 9735 2006-06-20 07:29:14 [ link ] [ show ]
Having written a ga-zillian scripts, to query dbs, decided it would be much simpler to call just one function multiple times, duh! :) Then fulfilling business request after request - with web pages (PHP) calling the function - decided to progressing this further!! ;) By removing the script - hitting the function directly. Let it handle the query, via variable parameters passed in on the HTTP GET. This posed a bit of problem, pushing complexity on the inquirer. So then decided to write a web (interface) form to drive the function - which subsequently made the query. :) - click the link.
1 - PHP MySQL Web Interface 1.0 databases : abstraction layers -- 2526 2006-06-30 06:34:16 [ link ] [ show ]
Having written a ga-zillian scripts, to query dbs, decided it would be much simpler to call just one function multiple times, duh! :)
6 lines of code - web site counter HTTP : counters & statistics -- 5528 2006-04-29 11:38:49 [ link ] [ show ]
In just 6 lines of code, you can have a web site counter. No db required. Just echo "1" into the file and ensure web user can write to it.
all chinese linux man pages 1.0 other languages -- 2397 2007-01-20 08:43:46 [ link ] [ show ]
Here are all the linux man pages in chinese
all deutsche linux man pages other languages -- 2477 2007-01-20 08:57:11 [ link ] [ show ]
See all deutsche linux man pages
all french linux man pages other languages -- 2264 2007-01-20 08:55:12 [ link ] [ show ]
see all french linux man pages
all italian linux man pages other languages -- 2321 2007-01-20 08:50:35 [ link ] [ show ]
See all italian linux man pages
all japanese linux man pages other languages -- 2256 2007-01-20 08:42:58 [ link ] [ show ]
see all japanese linux man pages
all nederlands linux man pages other languages -- 2661 2007-01-20 08:51:44 [ link ] [ show ]
see all nederlands linux man pages
all russian linux man pages other languages -- 2596 2007-01-20 09:00:37 [ link ] [ show ]
see all russian linux man pages
all spanish linux man pages other languages -- 2367 2007-01-20 08:49:16 [ link ] [ show ]
See all spanish linux man pages
Base64 URLEncode and more data transformation 1.0 algorithms : encryption -- 3340 2006-05-17 10:54:47 [ link ]
Data transformation tool for Base64 encode or decode; URL encode or decode; htmlentities; addslashes - plus an 'all' option, which is good for comparing.
Comparing two JVM cacert files 1.0 algorithms : encryption -- 3559 2006-06-30 06:40:58 [ link ]
This can come in very handy, if you need to compare 2 different projects or envs. For example Development server against prod, to ensure they both have same certs stored in cacerts (sampled by java among others). Code to generate list of certs, along with there alias, entry, owner and valid dates is supplied at the URL.
Free Online Graphing Tool 1.0 graphics : charts & graphs -- 3971 2006-06-30 05:57:03 [ link ]
Graphs are dynamically generated on the fly, based on the parameters you specify. The URL takes the user to a web interface (HTML form). Simply fill out your values and submit the form, a graph will appear. Additionally a URL will be displayed, which can be copied into remote web pages and have techie-blogs generate the graph on your site.
Perl Storable Module 1.0 databases : other -- 3247 2006-06-30 05:59:08 [ link ]
Came across the following challenge this week, how do I easily persist data between two independent UNIX sessions. Usually Iíd store data in a db or maybe ldap, but I only want to keep maybe a days worth and on multiple servers. In this article, I show two scripts - one which writes using the Perl Storage module and the other that reads. Each call to write, adds to a data file. Which is then extracted from by the read script. I include possible uses, for example recording restarts of a given service. In this instance I did n't want services restarting multiple times, where manual recovery of data would be needed. Also generating multiple alerts and notifications, but again looking to throttle them to a given number of iterations over 24 hours.
PHP and AJAX tool to transform text 1.0 algorithms : encryption -- 2963 2006-06-30 06:43:53 [ link ]
Just wrote this tool, to allow instant transformation of data into following formats: base64 encode decode, urlencode decode, md5 and sha1 hashing, rot13, addslashes and htmlentities. Really cool to select 'all', then compare these encodings side by side. This tool can be used to decode URLs, encode base64 for tricky characters or decode for checking mail (mime) content. Also for performing md5s, sha1 hashing, etc.
Smallest AJAX example in the world? 1.0 HTML : templating -- 3047 2006-06-30 06:36:24 [ link ]
Can a smaller working AJAX example be produced? Always a believer in keeping it simple & find it easier to learn something complex, by making it as small as possible. Visit the URL for a very small AJAX online demo. You can just cut and paste the example into a javascript function, then call it through an onclick or onchange javascript event handler.
step by step howto display a warning 1.0 HTTP : redirection -- 2029 2006-06-30 06:28:27 [ link ]
Sometimes there is an audit requirement, to let customers know a link is off your site and therefore you take no further responsibility for it. Iíve used some simple javascript code, which is triggered by the click (onclick event).
Superimpose text over blank image 1.0 graphics : charts & graphs -- 3016 2006-06-30 06:47:33 [ link ] [ show ]
Wrote this online little tool so anyone can create a blank image with a background color of your chosing (defaults to black) directly from my site. With your choice of color text super-imposed over the blank image (defaults to white). See the url. The image can then be saved for use on web sites, or in emails, etc. Or reference directly from your web page. Using AJAX with PHP to perform the submission. The code is available at the download url.
Translate characters to web safe codes 1.0 algorithms : strings -- 3922 2006-06-30 06:03:43 [ link ] [ show ]
Free online tool, converts entered characters into the equivalent ASCII codes, as usable with HTML. The output can be used directly on web pages, so useful where special characters are required.
UNIX Chat Script 1.0 networking : other -- 2411 2006-06-30 05:55:14 [ link ]
As most UNIX bods know, with fairly recent audit lock downs - talkd has been disabled. Now where is the fun in that! :) Donít know about you, but quite often Iíve needed to talk to other people remotely and donít want to hold a phone or use hands free. Here is a quick and dirty solution, that works with bash and zsh too.
Using openssl s_client to show cert expiry 1.0 algorithms : encryption -- 3263 2006-06-30 06:16:31 [ link ]
This can then be automated into a database, using some of my PHP or Perl Scripts (also on this blog), which can also be used to then report on sites about to expire. Run the code like this: ./openssl_cert_expiry_check www.example.com:443

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.