Less than and greater than symbols in Latex
To include less than (<) and greater than (>) symbols in your Latex document enclose them in dollar signs:
This is the less than symbol $<$ and this is the greater than $>$ symbol.
Random thoughts
To include less than (<) and greater than (>) symbols in your Latex document enclose them in dollar signs:
This is the less than symbol $<$ and this is the greater than $>$ symbol.
Generally, Mac applications come with code for architectures you don’t need (e.g. PowerPC code) and with many languages you don’t use. Xslimmer removes these unneeded features, saving a great amount of disk space. In my case I’ve recovered 3GB, impressive huh?

To start the video streaming execute:
# vlc -v -I rc movie.avi --sout "#standard{access=http,mux=ogg,dst=npserver.labplan.southpark:8080)Since we’re using the remote control interface (-I rc), we don’t need a graphical environment. This feature is specially useful if we want to stream the video without starting an X Window session.
On the client side execute the following command to receive the stream:
# vlc http://npserver.labplan.southpark:8080
If the DNS server isn’t installed on your Linux box, install it with the following command:
yum groupinstall "DNS Name Server"
We need to configure two things. First we need to specify the domains we’re going to resolve in named.conf. We will resolve the labplan.southpark domain.
Our DNS server will support both direct (name->ip) and reverse (ip->name) resolution.
According to APNIC the use of ip6.int is deprecated in favor of ip6.arpa for
reverse resolutions. However, since many programs still use it, we’re going to define
the ip6.int version as well. We need to add the following lines to named.conf:
zone "labplan.southpark" IN {
type master;
file "labplan.southpark.zone";
};
//deprecated
zone "0.0.0.0.0.0.0.0.0.0.0.0.1.c.e.f.ip6.int" {
type master;
file"reverse-fec1_64i.IP6.INT";
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.1.c.e.f.ip6.arpa" {
type master;
file "reverse-fec1_64.IP6.ARPA";
};Next we have to fill the zone records. The information for direct resolutions is stored on labplan.southpark.zone:
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns6.labplan.southpark.
ns6 IN AAAA fec0::20c:29ff:fe8f:8f16
customer IN AAAA fec0::20c:29ff:feff:4b37
npserver IN AAAA fec0::20c:29ff:fe4a:fae0
an IN AAAA fec0::20c:29ff:feb4:bee2The PTR records used for reverse resolution are stored on reverse-fec1_64i.IP6.INT (deprecated ip6.int) and reverse-fec1_64.IP6.ARPA (recommended ip6.arpa). This is the ip6.arpa zone (to edit an ip6.int zone just replace arpa with int):
$TTL 3d ; Default TTL
@ IN SOA 0.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.ip6.arpa. root (
200906170 ; Serial number (YYYYMMdd)
24h ; Refresh time
30m ; Retry time
2d ; Expire time
3d ; Default TTL
)
IN NS ns6.labplan.southpark.
7.3.b.4.f.f.e.f.f.f.9.2.c.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.ip6.arpa. IN PTR costumer.labplan.southpark.
0.e.a.f.a.4.e.f.f.f.9.2.c.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.ip6.arpa. IN PTR npserver.labplan.southpark.
2.e.e.b.4.b.e.f.f.f.9.2.c.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.ip6.arpa. IN PTR an.labplan.southpark.
6.1.f.8.f.8.e.f.f.f.9.2.c.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.ip6.arpa. IN PTR gw.labplan.southpark.
6.1.f.8.f.8.e.f.f.f.9.2.c.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.ip6.arpa. IN PTR ns6.labplan.southpark.From this moment on everything should work fine. We can check the name resolution with dig:
# dig @::1 -t AAAA npserver.labplan.southpark ;; QUESTION SECTION: ;npserver.labplan.southpark. IN AAAA ;; ANSWER SECTION: npserver.labplan.southpark. 86400 IN AAAA fec0::20c:29ff:fe4a:fae0
To check reverse resolution use dig’s -x flag:
#dig @::1 -x fec0::20c:29ff:fe4a:fae0 ;; QUESTION SECTION: ;0.e.a.f.a.4.e.f.f.f.9.2.c.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.ip6.arpa.INPTR ;; ANSWER SECTION: 0.e.a.f.a.4.e.f.f.f.9.2.c.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.e.f.ip6.arpa. 259200 IN PTR npserver.labplan.southpark.
Windows (win’-doze) 3.0/3.1/95/98/2000/ME/XP/Vista/7 (n.): 32-bit extensions to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can’t stand 1 bit of competition.
IPv6 has three types of addresses, which can be categorized by type and scope:
IPv6 does not use broadcast messages.
Unicast and anycast addresses in IPv6 have the following scopes (for multicast addresses, the scope is built into the address structure):
In addition, IPv6 has special addresses such as the loopback address. The scope of a special address depends on the type of special address. Much of the IPv6 address space is unassigned.
One of the most interesting and potentially valuable addressing features imple- mented in IPv6 is a facility to allow devices on an IPv6 to actually configure themselves independently. In IPv4 hosts were originally configured manually. Later, host configuration protocols like DHCP enabled servers to allocate IP addresses to hosts that joined the network. IPv6 takes this a step further, by defining a method for some devices to automatically configure their IP address and other parameters without the need for a server. It also defines a method whereby the IP addresses on a network can be renumbered (changed en masse). These are the sorts of features that make TCP/IP network administrators drool.
The IPv6 autoconfiguration and renumbering feature is defined in RFC 2462, IPv6 Stateless Address Autoconfiguration. The word “stateless” contrasts this method to the server-based method using something like DHCPv6, which is called “stateful”. This method is called “stateless” because it begins from a “dead start” with no information (or “state”) at all for the host to work with, and has no need for a DHCP server.
Stateless autoconfiguration exploits several other new features in IPv6, including link-local addresses, multicasting, the Neighbor Discovery (ND) protocol, and the ability to generate the interface identifier of an address from the underlying data link layer address. The general idea is to have a device generate a temporary address until it can determine the characteristics of the network it is on, and then create a permanent address it can use based on that information. In the case of multi-homed devices, autoconfiguration is performed for each interface separately, as you would expect.
The following is a summary of the steps a device takes when using stateless autoconfiguration:
To enable IPv6 routing on your Linux box you can use the following command:
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
If you want to keep IPv6 routing enabled permanently, edit /etc/sysctl.conf and add the following line:
net.ipv6.conf.all.forwarding=1
Remember that IPv6 filtering rules are controlled via ip6tables.
Apple laptops have a slightly different keyboard layout. Obviously the keyboard works fine on Mac OSX but has some minor problems on Linux and Windows. In my case I have a Spanish layout and the Alt key doesn’t work by default. Hence I am unable to type some characters (@ # |). If you come across the same problem, one solution is to change the keyboard layout from Spanish to US international. This way those specials characters are accessible by pressing the Shift key. Besides programming with the US layout is faster (e.g. / and ; just need one keystroke).
To change the keyboard layout in Centos type:
# system-config-keyboard --text
… and choose US layout.
Backing up your data is very recommendable (if you don’t do it start now!) and can save you a few headaches. This posts explains how to backup your WordPress installation. You need to take care of 2 things:
For backing up the database I recommend the wp-db-backup plugin, which can be configured to send a daily backup of your database to your mail account.
If for any reason you lose your WordPress data, you can retrieve the backup from your mail and restore it with the following command:
mysql --default_character_set=utf8 -h hostname -u username -p database < mybackup.sql
You can obtain the host, username and database name from wp-config.php. The encoding is important. If you don’t specify it your restored posts can look pretty messy.
Following the previous steps your posts and configurations are protected and chances of losing them are very low. The next step is to backup the WordPress files (plugins, themes, config files, etc.). To perform this task I recommend rsync. This excellent tool is included on Unix-based systems (Linux, Mac, etc.). There are binaries for Windows also. Rsync performs folder synchronization (bot remotely and locally). One of its main advantages is that it does incremental backups (i.e. it only transfers the changed files). I use rsync to synchronize my remote WordPress installation with a local folder. This way, every time something changes in the server, these changes are transferred to my local computer. The rsync syntax is as follows:
rsync -avvb --delete --backup-dir=/Users/jorge/rsync/backup_$(date +%y%m%d%H%M) username@somebox.bluehost.com:/home4/username/public_html /Users/username/bluehostbackup/
It’s a good idea to schedule a cron job to run that command daily (or hourly if you change things quite often).
And that’s it. Making use of wp-db-backup and rsync you get an easy and fast backup solution that can save you a lot of trouble.