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
Musings

Google Voice… Invited but not available!

Just got a alert in Gmail “You’ve been invited to Google Voice” and I thought the policy had changed to allow registrations outside of US. Unfortunately scrolling down further stating its only available for sign up in the US.

If you haven’t already heard about it, Google Voice is a service that makes using your current phones much better!
Here’s what it offers:

  • A personal phone number that rings all of your existing phones when people call
  • All of your voicemail in one inbox with unlimited online storage and free voicemail transcripts sent to your phone and email
  • Low-priced international calling to over 200 countries and free SMS
  • Other powerful features like the first phone spam filter to protect you from unwanted callers, the ability to ListenInTM on your voicemail messages while they are being left, conference calling and more

Tried my luck anyway and got this :

Google Voice is not available in your country.
Thanks for visiting Google Voice. We’re not yet open for users outside the US, but are planning to expand our service to additional countries in the future.

I do wonder with e-mail, browsing habits and now voice (leading to Android platform), will Google hold too much information on a person’s habits?

Standard
Musings

Pre-ordered iPhone 3GS.. first Apple I’m going to own!

20090707 - Singtel iPhone Order by you.

I remember seeing my first Apple Macintosh at cousins house at a very young age and being amazed about the green glowing text on the screen. That sparked me off on the journey that has me fascinated with technology. For some reason, I’ve yet to own a Apple product in my life! So its rather prescient when a Facebook quiz which asked “Are you a Mac or are you a PC” results in a Mac! When Singtel sent the invite to pre-register I didn’t give it much hesitation since it looks to be a great platform for development and a capable smart phone (At last).

Counting down to welcoming Apple to the bunch of Windows machines in the home. 2 days to go!

Will also be saying good-bye to M1 on Friday. Have been with them since my first Nokia phone in 1998.

Standard
Development, Musings

How many languages do you know?

Sudden thought occurred to me that I’ve been learning programming since 1989 and how quickly its now 20 years.
Here’s a chronological order of the languages picked up so far.

I’m looking forward to doing more of PHP, Objective-C, Ruby and HTML 5! and who knows what else in the coming years. Might even re-visit Java since Android needs it.

For code editing, after a few years of using Visual Studio, I find myself using Dreamweaver and Eclipse more. Apatana and Netbeans have also taken residence so shall see which IDE takes over. Otherwise there’s always Notepad++.

Updated for 2010/2011:

  • Comfortable with: jQuery
  • Still Learning: Ruby (+Rails), Objective-C, jQuery Mobile, HTML5/CSS3
  • Trying best not to take up Java (with Android)
  • Development on new Macbook Air, getting to love console again 🙂
  • More Git, Less SVN. Loving Heroku

Technorati Tags: , ,

Standard
Musings

Rebooting

It‘s been 9 days since I got back to the corporate life. Why after so many years of avoiding it? Hard reality was that running the business while enjoyable for its freedom meant a rather tiring schedule. Keeping everything juggling in the air without good support meant that inevitably things came crashing down when I faltered.

So after taking a good LONG break from work and taking stock of what I could achieve, I interviewed for a job at ST701 doing something I love (actual development versus lots of sales calls/meetings). Most folks probably do it differently, joining a large corporation when they start their first jobs and some might leave to realise their dreams.

I started by freelancing, joining a small firm and eventually learning about management, interacting with large firms and developing solutions along the way. The opportunity throughout the years to gain experience in design patterns, architecture, infrastructure, communicating with customers and solutions has been invaluable. While I won’t get to apply this experience within the current job scope, I’m sure it’ll come in useful down the road. It’ll take some time to get used to life in a large corporate entity but at least it’ll be a fresh journey to learn from.

Standard
Musings

A year into the future

Had a pretty interesting casual meetup with a fellow business owner doing pretty much what I’ve been doing for the past few years. T is a year older than me and has been running his own firm with a small staff allowing him to do what he likes (programming and more programming!).

Interestingly, T observed during our meeting that programmer’s think alike and even dress alike! We had a good laugh and came to agreement that programmers (those who freelance only) these days are a rare breed.

  • Biege shirts – tucked out
  • Khaki Pants
  • Loafers w/o socks

Having a team really helps one focus on what needs to be done. For the past year, I’ve had trouble with that as being essentially a small outfit for so long meant juggling a lot on the plate while trying to achieve goals. I felt burnt-out and tired having to manage sales, development and maintenance. Moving forward, this partnership should free up more time to do what I love, essentially to program and reduce the day-to-day overhead of sales process.

Standard
Musings

Site upgrade completed

It’s been some time since updates were posted on the site. A new theme has been installed with a cleaner look and with it, WordPress has been upgraded to 2.5.1 to take advantage of a new dashboard and security.

I’m also taking the opportunity to write up more on our products that have been under development for the past year, O9BMS (Building Management Systems) for Enterprise Mobile Inspections and Broad-Cast.net, an EDM and Corporate E-Card Portal since these products will be  primary focus of the company this year.

Standard
Musings

Updates for 2007 … What’s up for 2008?

It’s been a pretty crazy work schedule the past few months as we juggled projects at IconnectE and K.C DAT since August.

In October, we finally launched Broad-Cast.net as a full service providing email marketing to the SME market. We had been offering the service for customers without a proper name to it so its a good start that we were also engaged by Avocent International Pte Ltd for their “Avocent Hero” EDM campaigns as well as VivoCity Pte Ltd to assist with their recent 1st year party invites. Also on the email marketing platform, we’ve been hard at work creating a corporate eCard portal for Mapletree Investments Pte Ltd that would allow them to personalize each greeting card that gets sent by the company staff.

In November, Max Cole and On9 Systems got our heads together to plan how we could grow our businesses and in doing so, we migrated our servers to a proper rack with Viewqwest (great support from Boon Hian, Nathan and Thames). Doing this got us nice 2 x Linksys SRW2024 24-Port 10/100/1000 Gigabit Switch. It has some great features like bandwidth monitoring and throttling (a very neat feature!). Mike Veltman and Robert Roach are serious dudes into security and I’m glad to be working with them on this as we get serious about hosting. By offering Virtualization as an option to SMEs, this creates a great platform for us to create some serious applications for companies.

With December creeping into its second week and 2008 looming, our pipeline is full till the first quarter where we’ll be doing a major project utilizing Drupal as well as another project for a B2B Art Rental Store coming up too. I’m glad we’re getting a good start into 2008!

Standard
Musings

Are you ready for word-of-mouth marketing?

Imagine an organization with a proven system for 24 years, over 100,000 members worldwide in more than 37 countries, who can assist you in growing your business and open new doors to global opportunities. Raffles Chapter would like to invite you to our Visitor’s Day on 21st Sept 2007. For more details, view the slideshow below or contact me today!

http://s3.amazonaws.com/slideshare/ssplayer.swf?id=111451&doc=raffles-visitor-day-friday-21st-sept-20071636

Standard