WordPress Templates
WordPress is a great blogging software, which is both feature rich and simple to use. For most beginners, it will be enough to install it and start using it. For most advanced uses and to get more control, you’ll need to tweak with the templates.
Overview
A WordPress blog is composed of the following sections :
- header : this is the top of your page (usually a banner for your blog)
- footer : this is the bottom of your page (few links, statistics, …)
- page : this is where the main content goes (posts)
- sidebar : this is the sidebar (widgets, archives, recent posts, tags…)
Altering your template
Rather unsurprisingly, altering your template can be achieved by modifying the template files corresponding to the section you want to modify.
Those files are located in your theme directory (usually something like wordpress/wp-content/themes/YOUR_THEME) and their name is the section name with an extension of “.php”. So if you want to change the sidebar, then you’ll go and edit sidebar.php.
ITIL : What is a CMDB ?
The ITIL (IT Infrastructure Library) Methodology advocates the use of a Configuration Management DataBase or CMDB for short.
But what is a CMDB ?
Active Directory : PDC Emulator FSMO role
In an Active Directory Domain, there is a special Domain Controller which holds the FSMO Role “PDC Emulator”.
As its name suggests, it is there to ease migration from NT 4 domains to Active Directory 2000 and up domains by letting this PDC Emulator DC behave like a NT4 Primary Domain Controller. This allows to keep running NT4 BDC (Backup Domain Controllers) and NT4 Clients while you migrate core DCs to Windows 2000 and up.
Fun with google maps
I’ve written 2 sample applications to demonstrate how easy it is to use the API v2 of Google Maps.
I was honnestly surprised to see how easy it actually is… Have a look at the source of the pages and see for yourself 😉
Solaris 10: “logical-units” for network cards (NIC)
The “interface name” part of an ifconfig command can be a simple interface name, such as eri0, bge0 and such, or a logical unit such as eri0:1, eri0:2 and so on.
This makes it easy to setup more than 1 ip address on a network card, and hence to make virtual servers.
Solaris 10: managing services with SMF
In Solaris 10, services are managed by SMF. The scripts in /etc/rcX.d are only there for legacy (and so is inetd).
To manage the services, you mainly use 2 commands : svcadm and svcs. Below are the most useful commands.
disable services :
# svcadm disable network/finger
enable services :
# svcadm enable network/finger
list all enabled services :
# svcs
list all services:
#svcs -a
list error conditions for services:
#svcs -x
Solaris : Shared libraries search path
crle is the tool which lets you manage the way Solaris searches the shares libraries.
crle -l path1:path2:path3 will make Solaris lookup for shared libraries in path1, 2 and 3.
Beware that this replaces the previous settings !!! Easy to mess with your system…
Unix : transfering a filesystem or directory
to transfer a filesystem or directory while preserving permissions, special files and such, you can use the following :
# cd sourceDirectory
# tar cpf – . | (cd destinationDirectory && tar xpf – )
The first tar will archive the source directory and pipe it out to the second one which operates the extraction in the destination directory.
Using del.icio.us as a web based inventory
del.icio.us is a website where you can store your bookmarks, tag them to easily find them afterwards, and it is social bookmarking in the sense that your bookmarks can be searched, and so are others’ bookmarks, building a kind of giant directory of humanly maintained links to the world wide web.
But you can go beyond saving your bookmarks and searching others’…
OpenBSD : Creating a transparent bridge
This post will be short, because it is actually easier than I expected … Anyway, considering my memory, better blog out that for later reference 😉
A bridge is a network device used to connect two or more network segments. You can achieve this easily on OpenBSD with the following commands :
`# echo ‘up’ > /etc/hostname.if0
echo ‘up’ > /etc/hostname.if1
echo ‘add if0 add if1 up’ > /etc/bridgename.bridge0
`