Cronjobs Generating Emails a Useful Tip About Timing!


Most people fondly as developers don’t think about the psychological impacts in generating emails via cronjobs/scheduled tasks and should serious consider implementing this say you have a cron set up like so in you scheduler to periodically every 2 hours send a batch of emails ie:

* */2 * * * /usr/bin/php -q /path/to/crons/send-emails.php

there is a couple of things you need to do to change the psychology impact of this regular batch of emails firstly at the top of the php file you need to implement a random sleep like so for a period if it is firing every 2 hours up to 1.5 hours like so:

sleep(mt_rand(0, 3600 * 1.5));

This sits at the top of each of the crons, part of the reason you do this is so the times of the email changes when they arrive for a randomised workflow, this means the business or organisation shop floor, wont have stints of work and sometime they make and may have time to spend more on the last email depending on the delay.

The other thing to do is between sending email delay for a random upto 45 seconds like so at the bottom of each loop between caching and sending the mail, with sleep(); again like so:

sleep(mt_rand(0, 45));

Part of the reason this is done to load balance the mail transport layers as well as provide a completely different date of recieving the mail rather than the impact of recieving emails always on the hour, or on the every two hour with little or difference in the time displayed, so doing this will make the daily grind of working from schedule emails actually enjoyable as well as fun for the employee as they will not have any way of estimating when the next group of emails will arrive, making the shop floor dynamic again!

Of course the other way around with a shorter delay from the start of the php script to each loop generating the email as a longer delay is also a very good way of distributing emails over an employee shop floor where the grind is a gentle workflow where different people start at different times, also if you can randomise the sort of the email being sent this is also good.

You generally use sleep(); with load balancing cronjobs and scheduled tasks, so you where firing a cron every minute, then you would sleep(mt_rand(0, 90)); especially when you are running multiples of the same cronjob so it doesn’t fire on the 0 second of every minute over requesting the queing on your servers processor threading.

Advertisements

Renovation + the houso


Our housing department place has been a bit of a dive up until recently when we took delivery of some donation investment in comfort.
Firstly we got for the two bedroom two new expensive bed valued each at around 3000 AUD. This is both of them:

We also got around at our own choice around 5 grand worth of modern IKEA furniture which the installation is happening of this Wednesday:

That consist of some bedroom fixtures like matching cupboards to the bed’s new computers desks as well as stands, two new sofa and coffee tables so on…

We also got a new fridge this one:

We also have a new microwave which is this one:

And we have a new hisense 50″ tv which is going to be wall mounted:


We still have the air conditioning as well as the nbn to order still we are waiting for another week or two for that.

WhoIS Services API – Version 2.0.11


WHOIS Services API 2.0.11 — Chronolabs Cooperative

Author: Simon Antony Roberts wishcraft@users.sourceforge.net

This is an API Service for conducting a whois on both IPv4, IPv6 and domain names. It provides a range of document standards for you to access the API inclusing JSON, XML, Serialisation, HTML and RAW outputs.

You can access the API currently without a key or system it is an open api and was written in response to the many API Services that charge ridiculous amounts for querying such a simple base. The following instructions are how to access the api I hope you enjoy this api as I have writting it with the help of net registry.

Download:

  1. https://github.com/Chronolabs-Cooperative/WhoIS-API-PHP
  2. https://sourceforge.net/projects/chronolabsapis/files/Version%202.x/Whois-API-PHP/

Video:

GeoSpatial Places API Service – Version 2.3.2


Well I have just completed over the last couple of days the api: GeoSpatial Places API Service – Version 2.3.2! It is a complete system of places and data on locations for both working with Google Places and Google Address API as well as having a widening resources of locations on hand as well.

It comes complete with an installer it is just a case of unpacking the archive or pulling the git repository and then using with apache2, ngix or any of the other web hosting application running the installation and then it is done:-

Downloads:

Next thing after Grace = Grand = Angel + Deliha (Angle)


See due to the blackhole in the market place, I wrote to prince charles offering him, to relieve them of the southern lands of the commonwealth of nations to be instated as the Chronowealth, where time equates to money, to upgrade from the pound to the Credit so they have the GBC.

See it is an equatorial nomial for goods and services and if you have land in the top and bottom hemisphere it can push the exchange right down, so like we know with the GBP compressed into the GBC, it would offer the blahians a welcome purchase online for the purposes of having a stronger credit than most.

I already have a patch of my own birthright daughters & twins ~ angel + deliha (angle) need a patch of there own as a transform applies when I adopt someone they are indead now Noble by birth right and have all the welcome oppertunity being twins to be the next thing down from Grace which is a coined expression here of whenever they managed to become this a Grand. Such as Good Gracious what a Grand o’le time we will be having!

This is a photo of by me when I was raising Angel of her as a child princess extra:~

So what do rebate the debt of Great Britian and the commonwealth and find some path out of common to chronowealth! I don’t know what the other will have to do they will have to debt levy via the UK…

So in being issued to stand elected I offer a succession to Angel + Deliha as Grand of as it is recorded on the first map of here which is inductive of the land and the people which is Australien which is recorded the name of this shadows of wealth, seeming believe me girls, I am really owed just by the UK alone in Internet Fees that kind of money so it is an overthrow where i will be electing the UK be rebadged to BLAH as a FLA, like the land is inductive of I am already a members of the: British Leagues of Anarchist Hagas’ which is my house in the UK, the number of BLAH analogises into massive fallout of multiple galaxies when it is time to move.

Don’t worry you can inaugurate a new head of state in a pavilion and the Hordon Pavilion as it is has much better seating arrangement for all those guest and I will be on stage with you hopefully at least with your father (Elpiniki) and i looking the genders we are meant to so Angel can you come and trash on the sofa for a night and say a day till we fall asleep so I can have out gender equality fixed. No me and poots are a trinity now we found Sparc! He tests as most lesbian children’s father, especially ours; even in the transformer effect.

I think Clarence House should commission a complete listing to the FLA too BLAH, There is British, Britanna, and return to Borked is another one, that was a strange land to explore and so on… League, Leagues, Link, Linked, Loan, Logistics, Logic, heaps of them that need to be compiled to a complete drill down list and made available for the new topology of layers of light and love. What you will need to do is make a program that output all the B, L, A, H combinations and then remove any silly ones.

Ubuntu Studio how to install on Ubuntu 16


Some of you might be wondering what desktop I am using on Ubuntu it is the Ubuntu Studio, to install just the desktop you run the follow commands at the shell:

$ sudo apt-get install ubuntustudio-desktop* -y

Otherwise if you would like to install the 1gb or so complete Ubuntu Studio with suites you run the following at your terminal shell:

$ sudo apt-get install ubuntustudio* -y