Posts Tagged Simple
Ruby on rails and the WEBrick Daemon are great for testing however there are times when you start a WEBrick server in daemon mode and later find you need to stop this without restarting the box. This can sometimes be troublesome, especially if you accidently kill a live server. In this tutorial I’ll go through ensuring you kill the correct process. Read the rest of this entry »
Ruby Rails is a Web application framework created in 2004 intended as a rapid development web framework. It was intended to emphasize Convention over Configuration (CoC) meaning the developer only needs to specify unconventional aspects of the application. For example, if there is a class Sale in the model, the corresponding table in the database is called sales by default. It is only if one deviates from this convention, such as calling the table “products sold”, that the developer needs to write code regarding these names. It has also been designed around the “Don’t repeat yourself” principle. Both of these ways of thinking allow you, with Ruby Rails, to create excellent, dynamic websites very quickly. So to get started we need to setup a Ruby Rails development server on Ubuntu (Ubuntu 11.04, Ubuntu 11.10) Read the rest of this entry »
An Intrusion Detection system is like a burglar alarm for your computer. It monitors you network and system activities for malicious activities or policy violations and reports to some kind of management station. This is great as it lets you know who were when & how people are trying to break into your network and knowing this is half the battle. You may be thinking that this isn’t enough and you want to block all hacks from happening, well most IDS systems include some “Network Intrusion Prevention” features. However the main concern should be closing up vulnerabilities rather than blocking someone already trying to hack your systems, after all it’s a bit late if they are already in your system, and this way you may accedently block innocent users.
Read the rest of this entry »
I searched the Internet, for quit a while, and I couldn’t find the source for a simple IRC bot in C plus plus, so I decided to write one using a TCP Stream Socket in C++. It works by setting up a simple TCP Socket to a IRC server on port 6667. The IRC Bot then assigns a NICK to the connection and connects to a IRC Channel. From here you can code you own commands and replies. I originally developed this to monitor IRC channels, however I came across a problem, PING. IRC servers periodically ping all clients to see if they are connected, so I added some more code to reply to these ping’s so that the bot stays connected. Read the rest of this entry »
So I’ve been working on this project that heavily uses Sockets in C++, for the base of this project I’ve created a TCP Socket class so I concentrate on the protocol I’m using rather than worrying about the socket itself and I thought I would share this class with your. Read the rest of this entry »
Nagios is the Industry Standard Network Monitoring Engine. OK great so what’s that mean, well Nagios is a server that monitors your hosts and services and will inform you if something goes wrong and when it is fixed again. It can monitor network services, host resources and even network probes such as temperature and moisture.
These features as well as many more make Nagios, by far, the most complete open-source Network Monitoring tool on the market, however with all these features comes complexity and Nagios has obviously been designed with the experienced Network Administrator in mind. But don’t worry too much, its not that difficult to learn as long as you take it one step at a time, and in today’s tutorial we’re going to look at the first step, actually getting it installed Read the rest of this entry »
RackTables is a great robust solution for datacentre and server room asset management. It helps document hardware assets, network addresses, space in racks, networks configuration and much much more! Read the rest of this entry »
Everyone has the need to import and export data from a CSV into their MySQL database at some point or another. A quick search of Google reviles there are many different ways of doing this, and in my expectance some are far better than others. In this tutorial I’m going to show you my favourite way to import CSV data into MySQL using the “LOAD LOCAL DATA FILE” command. Read the rest of this entry »
In this tutorial I am going to discuss how to backup your Gmail emails to your own computer. Now personally I trust Google and keep allot of data on their services, but when it comes to emails I like to be doubly sure. It’s extremely rare but on occasion even Gmail has some problems, for example read this news article about some data loss at Gmail. When I read this I thought, “dam what would I do if I lost my emails“, well that scared the hell out of me, I’m always going back though old emails to find information (password, email addr’s, phone numbers, etc..) and this important information is only stored in my emails. So following the rule that “data only exists if its stored in three places” I thought I would add my own step to Google’s backup solution, just to be safe, and this is how I did it. Read the rest of this entry »
Nagios is the Industry Standard Network Monitoring Engine, however it can be a pain to set up and configure. We’ll it doesn’t always need to be that way there are a few other systems you could use that are much easier to setup and configure so much so you might even be able to get your end-users to manage their own monitoring configuration. So here is my Top 5 easy Nagios setup solutions Read the rest of this entry »