Business, Hardware, Web Hosting

After 8 years, servers are moving on

After a good long 8 years (Sept 2006 to Sept 2014), have finally moved servers out of Viewqwest and stopped hosting services.

The 3 servers (Dell Poweredge 850 and 860 x 2) have been inactive for better part of 2 years now. Only the 850 has been humming along for close to all 8 years with 3-4 reboots. CentOS (Linux) FTW!

2006 to 2014 - Dell Servers

Standard
Development

Quick way to create patch files based on modified date with xcopy

Recent projects and deployment method made it difficult to simply publish changes to a web server. Had been doing it manually (check for modified files, copy and transfer) and thought it was wasting too much time each day when change requests occur. After some quick research, I realized that the simplest method would just be to use the good old “xcopy” command in windows. (this is why command prompt tools should be taught in schools). For a quick refresher on batch commands, read http://www.computerhope.com/batch.htm.

I realize that a proper source control (like Git or Subversion) would be nicer but in my case, a simple batch file is just easier to work with.

Copy and paste the following code in your deployment folder that will create a patch folder based on last modified dates of working files.

[START EVENT.BAT]

@echo off
REM – http://www.computerhope.com/batch.htm
ECHO Usage : events [patch-num] [m-d-y]

SET SRC=c:xampphtdocsevents
SET DEST=c:deploymentevents

IF (%1)==() GOTO END
IF (%2)==() GOTO TODAYDATE

ECHO Copying files modified on %2
xcopy %SRC% %DEST%%1 /D:%2 /S /C /I /Y
GOTO END

:TODAYDATE
FOR /F “tokens=1-5 delims=/ ” %%a in (“%date%”) DO SET year=%%c
FOR /F “tokens=1-5 delims=/ ” %%a in (“%date%”) DO SET month=%%b
FOR /F “tokens=1-5 delims=/ ” %%a in (“%date%”) DO SET day=%%a

SET TODAY=%month%-%day%-%year%
ECHO Copying files modified on %TODAY%

xcopy %SRC% %DEST%%1 /D:%TODAY% /S /C /I /Y

:END
@echo on

[END EVENT.BAT]

Standard
Musings

Getting Dreamweaver CS4 to code highlight .phtml files

I’m currently working on a Magento project which requires some custom template work and with Dreamweaver, it doesn’t color code the syntax for .phtml files even though they are just php files in disguise. A simple solution would have been to allow different extensions to be specified in the preferences but of course, hiding it away in a obscure config file is more fun.

The file to look for : (check your installation path)

C:Program FilesAdobeAdobe Dreamweaver CS4configurationDocumentTypesMMDocumentTypes.xml

Search for this code snippet :

<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5″ macfileextension=”php,php3,php4,php5″ file=”Default.php” writebyteordermark=”false”>

and change it to :

<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5,phtml” macfileextension=”php,php3,php4,php5,phtml” file=”Default.php” writebyteordermark=”false”>

Restart Dreamweaver and say goodbye to the wall of black text! This will also work for any other syntax that needs to be highlighted and isn’t represented by the usual file extension, you’ll just need to find the correct documenttype id.

Standard
Uncategorized

Getting Beta Island launched for IconnectE

Client: IconnectE Pte Ltd
Business Type: Business Networking
Project: IconnectE Web Consultant
Website: www.iconnecte.com

On9 Systems was first approached in early August to help revamp IconnectE. By applying a methodology of systematic planning and requirements gathering process, we are proud to launch Beta Island for IconnectE.

Working with Jeshua Ting and the tireless IconnectE Team, we are proud to take part in this exciting online business network focused on helping businesses succeed in networking.

Standard
Uncategorized

Web Hosting and Electronic Direct Mail Design for Avocent International Pte Ltd

Client: Avocent International Pte Ltd
Business Type: Network Centralized Management Solutions
Project: Web Hosting and Electronic Direct Mail Design
Website: www.avocent-asia.com

Avocent International was looking for a reliable host for their Asia Pacific marketing portal and appointed On9 Systems to maintain and serve their website avocent-asia.com. We were also engaged to assist in creating the Electronic Direct Mailers for use in their marketing campaigns.

Standard
Uncategorized

Web Hosting and Website Design with Blog for 字 Concepts

Client: 字 Concepts
Business Type: Copyrighting, Editing, Proofreading and Translation Services
Project: Web Hosting and Website Design with Blog
Website: www.ziconcepts.com

字 Concepts believes that a good presentation is essential in business. No matter in the English or Chinese language, their aim is to help clients better their presentation, be it an advertisement, a brochure or websites.

On9 Systems helped provide the logo design and web blog setup for 字 Concepts to manage their online presence easily with WordPress.

Standard