While i am dealing with cronjobs inside a private project, i run into some trouble with parallelism of cronjobs.
A simple example would clear up this problem. Assume you have cronjob that generates cachefiles (like product descriptions or semi dynamic webcontent like cached rss feeds). You will end up by running a creation cronjob in an interval of x minutes.
The problem that could happen is that a cronjob is already running while the next one is ready to go. You can deal with that problem by setting a maximum execution time in you script but this can lead into strange data and side effects.
I want to solve this problem with two interfaces you can use.
The first interface, called "Lock", is solving the problem with parallelism. If a lock is aquired you are not able to aquire a second one, meaning one cronjob not more.
The second interface, called "Shutdown", is solving the problem with an early and controlled termination of a running cronjob. If the cronjob receives a shutdown, the cronjob can terminate itself i a good way.
Both interfaces have a file based implementation. Unittests and also examples can be found inside the projects.
The next idea I want to realize is an implementation of the Subject-Observer-Pattern. The general idea is that the first call of the cronjob is acting as a observer. The observer itself is chunking the work and split the work by calling (and observing) a number of cronjobs (of its own) as subjects.
introduction
There where more then 98 magento meeting this year.
Newsletter marketing with magento and inxmail by Katharinawho we arecvh-design.de
- based in ahrensburg/hamburg
- webdesign, online-marketing, logo-design, mailings, flyer ...
- implemented 10 magento shops in last three years
- since 2005 inxmail solution and hosting partner
- 10 employes
- started implementing of open source interface in 2010 - http://cvh-design.net/aktuelles/inxmail-erweiterung-fuer-magento.html
email marketing and all about
You can track clickareas in emails like hotspots on webpages.
Registration export with all, by law, needed informations. Double opt in ... (sorry an important call received me)
magento and inxmailmagento
- contains and manages user data
- process ordering
- "user cockpit"
- product informations
inxmail
- contains and manages subscriptions
- documents the process of subscription
- mailing quality
- bounce management
- reports of mailings
mag2inx and inx2magmag2inx
- open source
- interface to transfere data from magento to inxmail
example:
- user registers to or via newsletter (single-opt-in or confirmed opt-in)
- user changes data
inx2mag
- closed source
- interface to transfere data from inxmail to magento
example:
- user deletes his newsletter subscriptions
double opt-in
Double opt-in currently not needed by law.
process
- user registeres to newsletter
- magento adds user to subscriptionlist
- sends user in status "unapproved" to inxmail
- inxmail sends mail to user
- user subscrips
- inxmail status switched to "approved"
- inxmail transferes status "approved" to magento
- user doesn't subcrips
- nothing happens
future planing
- configureable fields available in magento (currently prename and suffname, emailaddress and title)
- selection of magento products via xml template
generate product informations with excel and import them into magento by mash2who we aremash2.com
- specialized to import/export mechanism to and from magento
- company exists since 2012
export available product informations
- since 1.5.x -> use new export but doesn't export data in a well way
- thats why mash2 still uses the dataflow
- in excel you choose "data->from text" and select utf8-unicode and comma separated
- excel remembers the import process based on filename, so future import is easy and faster than first one
polish product informations in excel
- excel is well known in management, merchant and consultant area
- use excel based concate to auto generate data (description/seo words) to fill up the excelsheet
import informations in magento
- save as unicode file
- use import, choose file and thats it
So after i moved my system to new hardware (and yes i love the hp microserver N40L allready), i run into some trouble with my fstab.
The system tries to boot but couldn't find the root partition since the devices had changed. The sda has changed to sdc.
But the friendly system switched into maintenance mode, so a quick search and replace solved the problem.
I thought the problem was solved but after i added a device via esata and tried to boot, the same problem occured.
The same error twice a day? Too bad, i have to migrate the fstab.
First you have to figure out the uuid's.
lsblk -f
After that you just have to edit your fstab file.
vim /etc/fstab
#change line like
/dev/sda1 / ext4
#to
UUID=artodeto-1234-5678-9012-bazzlineDnet
Ab dem 1. Januar eröffnet in Den Haag das Europäische Zentrum zur Bekämpfung der Cyberkriminalität. Unter dem Kürzel EC3 wird das Zentrum innerhalb der Abteilung Operations Department in Betrieb genommen. Leiter ("Product Manager") des neuen Zentrums ist der frühere dänische Geheimdienstchef und jetzige Krimi-Autor Troels Oerting. Zwar ist bislang nicht vorgesehen, dass das EC3 eigene Ermittlungen betreibt oder auf dem Hoheitsgebiet anderer Staaten tätig wird. Jedoch sollen die entsprechenden Strukturen und Maßnahmen der EU-Mitgliedstaaten unterstützt werden. Dies gilt sowohl in technischer, analytischer und forensischer Hinsicht.
[...]
Das digitale Herz von Europol sind weitgehende "Analysedateien" (AWF), die in umfangreichen Dossiers Informationen zu Personen, Sachen und Vorgängen speichern. Angaben zu "kriminellen im Internet operierenden Gruppen" werden in den AWF "Cyborg" und "Twins" gespeichert. Europol betreibt eine Stelle zur Meldung von Straftaten im Internet und hat einen "digitalen Untergrund" ausgemacht, der sich unter anderem durch "unerlaubtem Zugang zu Sabotagezwecken", "Verletzung der Rechte des geistigen Eigentums", dem Versenden von Spam oder Angriffen auf Informationssysteme unbeliebt macht.
[...]
Laut Europol soll das neue EC3 mit etlichen anderen Einrichtungen zusammenarbeiten, darunter auch der Industrie. Besonderes Augenmerk gilt den anderen EU-Agenturen CEPOL (EU-Polizeiakademie), Eurojust (als Vorläufer einer EU-Staatsanwaltschaft) und der EU-Agentur für Netz- und Informationssicherheit (ENISA). Auch Nicht-EU-Staaten, Interpol und andere internationale Organisationen, Internet-Regulierungsbehörden und Firmen "aus dem Finanzsektor" gehören zum Apparat des EC3. Eine besondere Rolle kommt den nationalen "Computer Emergency Response Teams" (CERTs) zu, die in allen 27 Mitgliedstaaten aufgebaut werden. Auch mit dem im September eröffneten CERT-EU arbeitet Europol zusammen. Im Arbeitsbericht für 2013 wird ausdrücklich auf die Zusammenarbeit mit den USA abgehoben.
[...]
Mitarbeiter von Europol sind regelmäßige Referenten bei behördlichen Internetausdruckern, die sich jedes Jahr in Berlin zur Verkaufsmesse "Europäischer Polizeikongress" verabreden. Der diesjährige Kongress am 19. und 20. Februar 2013 steht unter dem Titel "Schutz und Sicherheit im digitalen Raum" wieder unter Federführung eines Polizeiredakteurs der Monatszeitung "Behörden Spiegel". Unter anderem wird gegen "Hacker" gewettert, die bei Unternehmen "Geschäftsgeheimnisse" erbeuten würden. Auch Troels Oerting, der Leiter des neuen EC3 von Europol, ist als Referent des "Europäischen Polizeikongress" geladen.
[...]