Category: Software

The Gimp is better than Photoshop when it comes to Arabic or other Right to Left typefaces.

Recently we had to do some work in Arabic for a client of ours. We had never used Arabic in Adobe Photoshop or Adobe Illustrator before. So when the client asked “you can do Arabic” the response was “oh yeah of course” without giving it a second thought. Windows supports Arabic, so in turn Adobe will right?

Wrong.

Adobe does not support Right to left languages like Hebrew or Arabic. Instead you must purchase the separate “Middle Eastern” version of Creative Suite, Photoshop or Illustrator. There are also a couple plugins available that we found that claim to enable Right to Left typefaces in Photoshop. When we actually found them, it turns out that most are for Mac, or just dont’ work past Photoshop 7. We use CS3, so we were out of luck.

So, after much searching, trying, etc. What did we end up doing? What we should have done in the first place.

We downloaded The Gimp for Windows, created a new artwork, typed our arabic text in, and used a proper Arabic font. Then we saved the item as a 600 DPI psd file and imported it into photoshop. It’s not editable like real text, but, it’s good enough for us.

Might save someone else some hours of frustration. Good luck.

How to add a “Go To Nagios” button to nagios administrator

It’s easy, once you have nagiosadministrator installed, you’ll probably notice there’s no easy way to actually reach nagios. To add a quick button to the toolbar to do this, follow these steps:

 

1. SSH to server running nagios/nagiosadministrator

2. Go to your nagios administrator directory, ours is /var/www/nagiosadmin

3. Now, edit the menu file

# nano apps/backend/lib/topMenu.class.php

4. Now, change the first class topMenu from this

class topMenu
{
protected static $items = array(
‘contact’ => ‘Contacts’,
‘contactgroup’ => ‘Contact Groups’,
‘os’ => ‘Operating Systems’,
‘service’ => ‘Services’,
‘hostgroup’ => ‘Host Groups’,
‘host’ => ‘Hosts’,
‘command’ => ‘Commands’,
‘template’ => ‘Templates’,
‘generator’ => ‘Generator’
);

to this

class topMenu
{
protected static $items = array(
‘contact’ => ‘Contacts’,
‘contactgroup’ => ‘Contact Groups’,
‘os’ => ‘Operating Systems’,
‘service’ => ‘Services’,
‘hostgroup’ => ‘Host Groups’,
‘host’ => ‘Hosts’,
‘command’ => ‘Commands’,
‘template’ => ‘Templates’,
‘generator’ => ‘Generator’,
‘nagios’ => ‘Go To Nagios’
);

5. Refresh the Nagios Administrator web interface, and you’ll see a fancy new button you can click on to take you right to nagios.

Enjoy!

Setting up Split-Split DNS with Windows SBS 2003 DNS Services, easily.

Have you ever wondered how you could access your external hostnames, internal to your network connected via wifi, mobile devices or just plain old desktops? Today we found out we needed to. Our mobile devices require the use of external hostnames to sync data against. And it’s nice being able to use our external hostname for Outlook Web Access, and debugging internally.

For example:

  • Billy wants to visit http://www.mycompanyname.com
  • Billy can’t because that particular site is hosted off the external IP of the network he’s on. Gosh, what to do?
  • Billy Reads the Howto Setup SPLIT-SPLIT DNS with SBS 2003 DNS Server below
  • Billy can now visit http://www.mycompanyname.com because it’s mapped to the internal ip of 192.168.1.1 or whatever your networking scheme is.
  • Billy is now happy.

Off we went to Google, to try and find out what we needed; DNS Redirection? No, IP Port Redirection? No, Redirect External IP to Local IP, No. Tiresom it was, searching for this.

Then we decided to try and jump right in to figuring it out. First, we tried doing it at the router level, but none of us are IOS guru’s so this quickly became out of the question. Next we tried running a secondary DNS server on the SBS2K3 Server, and transferring the domain from our live server at the Datacenter in Seattle. This also didn’t work because once the domain was transferred into our secondary DNS on the Windows 2003 Server we weren’t able to edit any of the records. Pitty.

So, on we were to IRC. Ahhh, IRC. Not too many people use it anymore, but usually really cool people are available to help out. After asking in a couple channels we figured out that what we needed to do was set up something called Split-Split DNS. Basically all this is, is the method of running two DNS Servers. One inside your network, and one external to your network. Here’s a Microsoft Article on the subject of Enterprise DNS Design which involves Split-Split DNS. This allows for internal hosts behind NAT networks to see external hostnames as if they are on the internal network.

With a bit more searching we came across this excellent post by Ginger Lime. Using their instructions we have created a simple howto for doing the same thing on your internal domain.

With our little howto, you’ll be able to get this done quickly and easily on your internal windows sbs 2003 domain name server. Please readon for the howto.

First, we’ll have to open the DNS control panel. This is in the main server management console, under the computer management box. Here’s a screenshot. Make sure you enter into the Forward Lookup Zones box.

dns1

Now, right click on “Forward Lookup Zones” and click on “Add New Zone“. Like This.

dns2

Now you’ll be presented with the New Zone Wizard window. Click Next.

3

Now, Select a primary Zone for this tutorial.

4

Disable the storage of the information in Active Directory. Click Next.

5

Now type in your domain name that you want to resolve internally. Some common ones might be dev.yourdomain.com or www.yourdomain.com or similar. Click Next.

6

This window will be automatically filled out for you. Just click Next.

7

Now, make sure you don’t allow dynamic updates. This record is something you should be manually updating only. Click Next.

8

Your new zone is complete. Click Finish.

9

Now, Right Click your new zone (external.hostname.com), and select to “New Host (A)”. Let go of your mouse button now. 🙂

dns3

Now, add your internal IP address to the host, but leave the Name blank. Like this. Also leave the PTR record one un-checked since we don’t need it. Click Add Host.

last

You should see a message like this pop up.

11

Click on the Done button to leave this window.

12

Now you should see a blank host, with the internal IP address you specified during the last section of this tutorial.

13

Now you’re finished setting up a SPLIT-SPLIT DNS server using SBS2k3.

Go over to a different computer on your network that uses the Windows 2003 SBS Server as it’s DNS Controller, and try a nslookup or ping against the external hostname you’ve just added. If you get ping returns you’re good to go.