by FreeBSD.orgAn example master zone file for example.org(existing within /etc/namedb/master/example.org) is as follows:
$TTL 3600 ; 1 hour default TTL example.org. IN SOA ns1.example.org. admin.example.org. ( 2006051501 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 300 ; Negative Response TTL ) ; DNS Servers IN NS ns1.example.org. IN NS ns2.example.org. ; MX Records IN MX 10 mx.example.org. IN MX 20 mail.example.org. IN A 192.168.1.1 ; Machine Names localhost IN A 127.
To get your CentOS version type:
cat /etc/redhat-release To update all your CentOS packages at once:
yum update To install nslookup, dig and other network utilities:
yum install bind-utils -y
Show User ~/Library in OS X Lion Launch Terminal from Spotlight or Launchpad > Utilities, and enter the following command to show the directory:
``
chflags nohidden ~/Library/ The users Library folder will immediately become visible. Reverting this back to the standard Lion setting is simple too:
Hide User ~/Library in OS X Lion (default setting) This returns to the default setting of hiding the user Library directory:
``
Creating a simple gradient using two colors is very simple:
Rectangle rect = new Rectangle(0, 0, 100, 100); LinearGradientBrush lgb = new LinearGradientBrush(rect, Color.White, Color.Blue, 90); e.Graphics.FillRectangle(lgb, rect); This code will generate a gradient in the given rectangle that goes from white to blue in a vertical way (see last parameter in constructor). In this case, e, is any class that encapsulates the System.Drawing.Graphics class. Once the gradient is ready, well, you have to actually draw it by calling the FillRectangle function.
Believe me, it is easy. As with any class, before we can use any of the Classes, Events and Objects available to us in the .Net Framework we need to import the Namespaces we need. For this we need 3 namespaces. VB.Net users only required 2 because VB.Net assumes the System Namespace, whereas C# isn’t so kind:
System System.Drawing System.Drawing.Printing These 3 Namespaces contain everything we need for this class, so you will need to add the following lines to the top of your class file:
There is a simple way to know this. The following code takes white (#ffffff) divided it by two as our reference color. If the comparing color is lower than the reference color, then the given color is dark, otherwise it’s light color.
function isLightOrDark($hexcolor) { return (hexdec($hexcolor) > 0xffffff/2) ? 'light color' : 'dark color'; }
You can assign a printer and other settings by using the basic PrintDocument and PrintDialog controls properties. Look at the next example:
if (printDialog.ShowDialog() == DialogResult.OK) { printDocument.PrinterSettings.PrinterName = printDialog.PrinterSettings.PrinterName; printDocument.PrinterSettings.Copies = printDialog.PrinterSettings.Copies; }
Before trying the queries in this page, I recommend you to read this full article to learn more about the process.
To update WordPress options with the new blog location, use the following SQL command:
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field.
Papyrus is a UML designer plugin for the eclipse development environment. Installing it on the Indigo version is very easy:
Go to Help > Install New Software… Under Work with, select All Available Sites and look for Modeling on the tree view. Under Modeling, look for MDT Papyrus – SDK and press the Next button Press Next again Accept the Licence and press Finish You will be asked to restart Eclipse, so go ahead… Next time you create a project, you will see the Papyrus project listed.