Blog Posts
- Home /
- Blog Posts
Track your Alexa Rank History
January 14, 2015
The Alexa Rank is a way of determining a website’s popularity.
Read More
SSL Encryption – Update
January 14, 2015
We have just rolled out SSL encrytion on Statvoo which means:
Read More
Why Website Analytics Is So Important These Days
January 14, 2015
The web has come a long way since Tim Berners-Lee, a British scientist at CERN, “invented” the World Wide Web (WWW) in 1989.
Read More
Create daterange array of missing dates
February 20, 2014
<?php //fromDate 2014 - 01 - 22 //toDate 2014 - 02 - 20 //$arr Array( [0] = & gt; Array( [ISO_DATE] = & gt; 2014 - 02 - 18[DAY_SUM_AMOUNT] = & gt; 3000[DAY_SUM_VOLUME] = & gt; 2[CONVERSION_PCT] = & gt; 100 ) [1] = & gt; Array( [ISO_DATE] = & gt; 2014 - 02 - 19[DAY_SUM_AMOUNT] = & gt; 4000[DAY_SUM_VOLUME] = & gt; 1[CONVERSION_PCT] = & gt; 100 ) ) //codetime function createDateRangeArray($strDateFrom, $strDateTo) { $aryRange = array(); $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2) , substr($strDateFrom, 8, 2) , substr($strDateFrom, 0, 4)); $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2) , substr($strDateTo, 8, 2) , substr($strDateTo, 0, 4)); if ($iDateTo & gt; = $iDateFrom) { array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry while ($iDateFrom & lt; $iDateTo) { $iDateFrom += 86400; // add 24 hours array_push($aryRange,date('Y-m-d',$iDateFrom)); } } return $aryRange; } function recursive_array_search($needle,$haystack) { foreach($haystack as $key=>$value) { $current_key = $key; if ($needle === $value or (is_array($value) & amp; & amp; recursive_array_search($needle, $value) !
Read More
Speedtest on Ubuntu Server (commandline)
February 19, 2014
Using the speedtest-cli is easy and very useful. You run it as follows:
Read More
URL GET vars to PHP Array
May 14, 2013
Sometimes you will need to retrieve the GET variables passed into the current page URI or you will have a URL string to work from which contains certain GET variables, the below method helps a lot to convert them into an array which you can easily manipulate later.
Read More
python "AttributeError: ZipFile instance has no attribute ‘__exit__"
May 8, 2013
This is actually a very easy error to fix, eventhough off the bat it seems a lot more involved.
Read More
Remove specific HTML tags using PHP
March 21, 2013
There are times when you want to remove a specific HTML tag from an HTML block of text.
Read More
Keep Google Map v3 centered when browser is resized
March 8, 2013
Using Google Maps V3 Javascript API you can keep the map centered to the browser’s window by using the following trick when resizing the window.
Read More
Buy a Google Nexus 10 in the UK!
December 29, 2012
If you are looking to get a Google Nexus 10 inch tablet and are based in the UK you are in for a shocker!
Read More
Let Joomla and MySQL interact!
December 21, 2012
I often need a quick and easy few lines to retrieve some data from MySQL using Joomla without all the MVC nonsense that usually goes about this topic.
Read More
Perform a Mysql Query using Joomla!
November 23, 2012
This is really actually meant for future reference for myself as lately I’ve been doing quite a lot of Joomla!
Read More
Refresh User Data in Joomla
October 21, 2012
I was busy with a custom component in Joomla, and it stored it’s own user_details based off of the main users table, but if the details were changed then I needed the system to update the session to reflect the changes.
Read More
Extract email addresses from a string – PHP
October 9, 2012
Sometimes you need to extract multiple email addresses from a string and the following function will make all your dreams come true.
Read More
How to drive traffic to your website!
September 28, 2012
This is a very hot topic indeed. Definitely one that everyone with a website should know all about.
Read More
jQuery limit fields to alphanumeric characters only
September 26, 2012
I was trying to restrict a form’s field from only allowing the user to enter alphanumeric characters into it.
Read More
Make a dynamic year dropdown using PHP
September 18, 2012
Ever wanted to have a dropdown that automatically showed the current year and the few years before it?
Read More
Pad a string with zeros using PHP
September 17, 2012
Recently I had to create a code/username maker to fit into a certain type of pattern so that all “broker codes” (as they were called) followed the same path.
Read More
ImportError: No module named MySQLdb (Python)
July 23, 2012
Trying to use MySQL with Python and getting an ImportError?
Read More
Search for “arabic” is url request and change codepage – ASP
July 12, 2012
If you are using Classic ASP (yuck) to create an arabic section of a website you can search for the arabic string in your Request URI and then change the session’s codepage as follows:
Read More
Tags
- Actionscript
- Advertising
- Agile
- AI
- Android
- Angular
- Ansible
- API
- Automation
- AWS
- Bash
- Big Data
- Biometrics
- C
- C++
- CDK
- Chef
- CICD
- CLI
- Cloud
- CloudFormation
- Containers
- CSS
- Data Structures
- Databases
- DevOps
- Distributed
- Docker
- Domains
- EKS
- Envoy
- Excel
- Firebase
- Forensics
- General
- Git
- Go
- Graal
- Hosting
- HTML
- IaC
- IDE
- Interview
- Istio
- Java
- Javascript
- Jenkins
- Kotlin
- Kubernetes
- Linux
- Mac
- MariaDB
- Maths
- Maven
- Microservices
- Misc
- ML
- MySQL
- Networking
- Nexus
- Node
- NPM
- Pandas
- PHP
- PIP
- Platform
- PowerShell
- Puppet
- Python
- React
- Ruby
- Rust
- S3
- Security
- SEO
- Software
- Spring
- SQL
- SRE
- SSH
- SSL
- Startup
- Terraform
- Typescript
- Ubuntu
- Web3
- Windows
- WSL