Learn Rails Quickly with the Flitter screencast

The Flitter screencast series by Eric Berry (Teach Me to Code) is perhaps one of the best screencasts for learning Ruby on Rails quickly. It is a 6 part series and goes through the entire process of creating a Twitter-like clone in Rails. Perhaps the best thing about the screencast is that it is largely unedited so you can see Eric’s thought process as he develops the application.

960 Grid System

The 960 grid system consists of a single CSS file together with templates for Fireworks, Inkscape, Illustrator, OmniGraffle, Photoshop & Visio as well as printable sketch paper. It was created by Nathan Smith to assist in web development projects.

Make sure you also check out the screencast A detailed look at 960 grid system from NetTuts+.

TrueCrypt

TrueCrypt is a free/open source disk encryption system for Windows. It creates encrypted volumes on a hard disk and allows users to mount these volumes as drives in Windows using a secure encryption algorithm, passkey and optionally keyfiles for two-pass authentication.

Mounting a volume using the command line

truecrypt.exe /v C:\VolumeName.example /lC /a /q

Note: use the parameters /l + drive letter e.g. C:\ = /lC

Dismounting a volume using the command line

truecrypt.exe /q /dC

Note: use the parameters /d + drive letter e.g. C:\ = /dC

Also see the TrueCrypt Documentation

The hosts File

The hosts file is text file is used by your TCP/IP connection on the Internet before DNS to map IP addresses to domain names. For really good discussion on what the hosts file is all about, check out the following Security Now Podcast (this is an MP3 file). The hosts file is used in Windows, Mac and Linux systems.

In windows, the hosts file can be found under: C:\Windows\System32\drivers\etc (presuming C:\Windows is your default Windows directory. Otherwise use %WinDir%\System32\drivers\etc.

You can download hosts files that block bad sites by mapping known, bad addresses to localhost (127.0.0.1) which is your own computer. So instead of going to the bad domain name, it just redirects your browser back to your own PC preventing it from loading a known ad, malware or otherwise bad site.

You can download a comprehensive hosts file from MVPS.org.

Note in addition to the hosts file, there is an lmhost file (Lan Manager hosts) used in Microsoft Windows for the Windows Internet Name Service (WINS) protocol.

An example file is provided in %WinDir%\System32\drivers\etc called lmhosts.sam.

This article explains how WINS resolves names and where the lmhosts file comes into play.

The lmhosts file has the same basic syntax as the hosts file with some additional options. After you add entries into it, re-register your dns cache using the following command through command prompt:

$ ipconfig /registerdns

Disabling ipv6 in Linux

Make the following modifications to disable ipv6 in CentOS (Redhat) Linux:

/etc/modprobe.conf

alias net-pf-10 off
alias ipv6 off

/etc/sysconfig/network

NETWORKING_IPV6=no

/etc/sysconfig/network-scripts/ifcfg-eth0

IPV6INIT=no

Also check the otherl ifcfg-eth0…n and wan0…n scripts.

Managing Linux Services

Linux services or daemons are used to automatically start software that provide services such as web servers, database servers, FTP, SSH, Samba. This article is about how to manage linux services and to set them to start automatically. Note that Linux distributions are based on System V which have run levels for system services (as opposed to BSD).

Note that the information provided here does vary between linux distributions. I’m using specific examples from CentOS (and therefore RedHat) linux distributions.

Manging Services

Services that will run can be found in /etc/init.d/.

For any one of these services, you can use the service to manage a service. For example, Samba is managed by the service smb. Use the command:

$ service smb status

This will tell you the status of the daemon programs associated with Samba (e.g. smbd and nmbd). To start or stop them you can issue commands like:

$ service smb start
$ service smb stop
$ service smb restart

Making Services Start Automatically

You can use chkconfig to add a service to a specified run level to make it start automatically.

Linux distributions have 6 run levels and these vary slightly between distributions. In CentOS and RedHat they are:

  • 1 – Single user mode
  • 2 – Multiuser, without NFS (The same as 3, if you do not have networking)
  • 3 – Full multiuser mode
  • 4 – unused
  • 5 – X11
  • 6 – reboot (Do NOT set initdefault to this)

A run level basically tells you what the mode the system is in. To find out what runlevel you are in:

$ runlevel

You can look at /etc/inittab to see how the system is configured to run processes at different run levels. This file maps the association between a run level (e.g. 3) and the services started in that run level which are typically stored in /etc/rc.d under the appropriate run level directory (e.g. /etc/rc.d/rc3.d/).

To make a service such as Samba smb start automatically, you need to add it to appropriate run levels (e.g. 3,4,5) using chkconfig:

$ chkconfig —level 345 smb on

You can then use chkconfig to see what run levels your service will be started at:

$ chkconfig —list smb

Which gives a result like this:

smb 0:off 1:off 2:off 3:on 4:on 5:on 6:off

Media Jukebox

Media Jukebox by J.River is perhaps the best music management/player out there for Microsoft Windows. First off, it has a great interface and doesn’t hog your PC like other media players *cough* Windows Media Player *cough*. It organises your music well, makes it easy to search, includes some nifty features including album coverart, visualisations, and it can even handle the more oppresive media formats (wma I’m looking at you). Its also skinable but I think it looks pretty good out of the box, and has support for some pretty nifty plug-ins.

Getting back a lost window

Ever had a program that appears on the task bar, but when open you can’t see it? Well this has happened to me when connecting to a computer with dual monitors. The solution is to use Windows {ALT+SPACE} to move the window to your current screen.

  1. Right-click on the task bar for the application that is misbehaving
  2. Press {ALT+SPACE}
  3. Select move from the menu and you should be able to drop a ghosted outline of the window into your current screen using your mouse
  4. You an also move the window manually using the keyboard arrow keys.

OpenDNS

OpenDNS is provides free domain name resolution (DNS) servers for you to use. These servers block a lot of bad content and are quite quick. The best way to get OpenDNS working is to configure your ADSL modem/router to use their nameserver IP addresses. Thes are:

  • 208.67.222.222
  • 208.67.220.220

You can also create a free account with them to further manage your network activity and content filtering. Note that OpenDNS provides a dynamic IP service so it will still work even if you go through a dynamic IP.

Another useful tool for managing DNS entries is zoneedit.

PeerBlock

PeerBlock is an alternative to the popular IP filter firewall, PeerGuardian (which has not been updated in some time). It uses lists to filter out unwanted IP addresses, such as those from advertising or spyware sites. It is also great for filtering out sites that are anti-p2p (file sharing). For full details, please see the FAQ.

Powered by WordPress with modified GimpStyle Theme originally designed by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.