More recently than ever people have been approaching me for help with learning a programming language. More often than not I will refer them to PERL or PHP depending on their program requirements. Surprisingly the best technique, that I have found, to help someone learn a new language is through writing an IRC bot. This requires someone to learn about not only the PERL basics, such as setting variables and working with scopes, but also pushes them to dive into other stuff like working with sockets and regular expressions. I’ve found that with a short primer from the getting started section of PerlMonks` tutorials, and simply learning to understand the documentation for various libraries listed on CPAN, all of the people whom I’ve introduced PERL to have been able to pick it up rather easily.
When threading in PERL it is often useful to have a master process checking up on threaded processes to make sure they are doing their job correctly, or to gather data from the threaded process. At any rate the design pattern that I often find useful is called Boss & Worker. In this pattern we have one ( or more ) threads that act as a boss, and this (or these) thread(s) will spawn child threads which carry out a set task.First, as with any threaded program, we will need to pull in libraries such as threads, and strict:
In my last post, I showed you the basics to making your own WordPress theme, this time I would like to dive a little deeper into what makes a WordPress theme such as custom menus and widget areas.
I find it surprising that many themes still don’t support custom menus, however after this tutorial you will not only understand how to implement these into your own theme, but also how to modify other themes to also support custom menus.
I will be assuming that you have already read and followed the guidelines set out in my previous post, and that you have even gone ahead and tinkered around a bit on your own.
As usual, if you need any extra help feel free to leave a comment and myself or someone else may be able to assist you.
In this tutorial I will show you the basics of how to write your own WordPress themes. This guide assumes that you already have a fair amount of experience with HTML, CSS, and PHP. In case you do not, this guide won’t help you much, you should brush up on those things before moving on to this guide.
Earlier this month I wrote about how I took offensive security measures in order to shutdown the emerging NTP reflection / DRDoS threat. Today I am happy to announce that of the 2,917 reported NTP servers which were observed as being used in NTP reflection attacks, 1,956 (67.06%) of them have been either shutdown or patched to disallow monlist.
On January 20th Naoki Hiroshima discovered that his PayPal & GoDaddy accounts had been breached, and domains stolen.
The hacker had control over his email, websites, and online finances, while Naoki was powerless to protect himself. He was at the mercy of the attacker who stole his accounts.