Put your message here! Contact me for more information
 
 







 

Archive for August, 2006


 

if($p) {adsense_deluxe_ads(”);}Opening files with different custom extensions in DreamWeaver is pretty annoying: it’ll ask you for the external edit after shouting out the complain. And yes, after you configure Dreamweaver to open the file (through **Edit > Preference > File Type/ Editors**), you only get a plain Code view of the file. **Where the @#$@#$ is the Design View?** And you are working on the next killer template for a site but the template just happens to be of extension ***.thml**. In this case, I’m talking about **CakePHP**. Its default template extension is ***.THTML**. But don’t worry, be happy. Here is the solution to enable DreamWeaver Design View for any custom filetypes, and ***.THML** in particular.

**Now take a deep breath, I know you’ve been waiting for this answer. I know I have.**

- Go to **[Your_Drive_Here]:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\**
- Open the file **Extensions.txt** and add your custom extensions to the list. Remeber, in **Extensions.txt**, it’s got to be all CAPS. For **CakePhp**, add **THML** to the first line (the one ends with :All Documents) and the **16th** line of the PHP group. Here is the code for the Extensions.txt fileHTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF,LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,PHP5,TPL,LASSO,JSP,JSF,VB,VBS,VTM,VTML,INC,JAVA,EDML,WML,THTML,INC:All Documents
HTM,HTML,HTA,HTC,XHTML:HTML Documents
SHTM,SHTML,STM,SSI,INC:Server-Side Includes
JS:JavaScript Documents
XML,DTD,XSD,XSL,XSLT,RSS,RDF:XML Files
LBI:Library Files
DWT:Template Files
CSS:Style Sheets
ASP,ASA:Active Server Pages
ASPX,ASCX,ASMX,CS,VB,CONFIG:Active Server Plus Pages
CFM,CFML,CFC:ColdFusion Templates
AS:ActionScript Files
ASC:ActionScript Communication Files
ASR:ActionScript Remote Files
TXT:Text Files
PHP,PHP3,PHP4,PHP5,TPL,INC,THTML:PHP Files
LASSO:Lasso Files
JSP,JST:Java Server Pages
JSF:Fireworks Script
TLD:Tag Library Descriptor Files
JAVA:Java Files
WML:WML Files
EDML:EDML Files
VBS:VBScript Files
VTM,VTML:VTML Files
As this first step is just for Dreamweaver to recognize the new file extensions, we have to further edit another config file.
- Go to the **DocumentTypes** folder (still in the same path), edit the file **MMDocumentTypes.xml**\\ (fullpath: [Your_Drive_Here]:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\**DocumentTypes\MMDocumentTypes.xml**) with a Text Editor (i.e. Notepad or Notepad++). It’s not advisible to edit this particular xml file with Dreamweaver as the software may go crazy as it’s being used to edit itself.
- Go to l**ine 67**, add the THTML extesion to the **winfileextension** and **macfileextensionlist** attributes. Here is the code exerpt

<br /> <MMString:loadString id="mmdocumenttypes_14" /><br />





- Restart DreamWeaver, then open the .thml of CakePHP. Voila! It’s working! Yay! No more blind-coding.

=== Final Remarks ===

I hope you enjoy the tip. To consult the original documentations, please visit [[http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410|Dreamweaver Technote: Changing and adding file extensions recognized by Dreamweaver MX]]. if($p)adsense_deluxe_ads(’MediumRectangleLeft’);My final take on this: Dreamweaver is an excellent tool, but the engineers did short of this very important features. Why is it not easier to assign a file extension to be opened with the Design View? Frontpage’s been doing it for years! I don’t know what is the problem with the Dreamweaver team but this is just plain dumb. Sorry, it’s pretty dumb - and it actually managed to be looked over during the user testing. Amazing. But how hard is it to include the new assignment in the GUI? Not that hard at all. -1 for you Dreamweaver!

Anyway, now with the THTML file is through, good luck with CakePHP. Please design the next killer websites to take back the glory for PHP from the RoR crowd.

view comments
 

Hello guys,

I haven’t been posted anything for the past few days as I was working on some random ideas of mine. Well, I’ve managed to finish LastProxy.com, a dual-head proxy site. It’s an experience I have to admit. I got much inspiration from the Sitepoint forum. The SP forum is excellent. I love the selling forum, where I can see what people are buying. It gave me a great motivation to sit down and produce something, then monetize it. And I love it. That was how LastProxy.com was born.

Working on LastProxy.com was really fun. I love the textbox on the arrow, I think it’s great. The layout can be alot cleaner but the ads cluttered it. I don’t mind too much though. The exciting part of the proxy game is to see the traffic from everywhere in the world pouring in. I’m amazed. LastProxy was released on July 29 but I started some advertising on Proxy.org. After that, traffic has been reall strong. I had about 2700 unique visitors in 3 days! That’s almost 900 unique/ day. And I haven’t done any MySpace advertising YET.

At first I had been quite skeptical about having a proxy site, but after lastproxy, I was convinced that people still need a good, decent proxy. I don’t say that lastproxy is a good proxy, as it’s been heavily modifications for advertisment, but it’s not bad either. I don’t have ads all over the place or try to trick people to click on it. Plus I throw in a RSS feed too! The proxied pages are filled with adbrite and adversal pop-unders. I feel bad about it as I’m doing what I abhor: having pop-up in my site! Nah, in the end, it’s all good for now as I don’t see any good reason to remove the pop-under ads either.

The revenue from Adsense is actually not too bad, for now it’s roughly a buck a day but I would say it’s going North. So the revenue from LastProxy is basically free money in exchange for a few days of my opportunity cost during the making of the site (which I reall had some fun.) After the month ends, I’ll donate a portion of the revenue to the Red Cross. I’m lucky to be here in the States, and I’m grateful for that. There are less fortunated people in the world. While I’m getting money from Adsense, why don’t I redistribute the wealth to make the world a better place to live? My money donated to the Red Cross will go a long way to help the suffering and the poor. Maybe it’s not much, but $3 or $5 bucks can save someone’s life. You just never know.

Yeah, talking about advertisment, I’m sorry about putting up ads in here, alexle.net, and messing up all the layout. I never want to have any ads in here, my homepage. However, after working on lastproxy, I do believe that I can get something out of my personal blog. Maybe a couple bucks a month but it helps pay for the hosting, you know. I don’t plan to put much ads on the frontpage, but on each individual pages, I will be blending some in. That’s fair. I know that I do write on a variety of topics so Adsense would work really well on individual pages.

The first thing I’m doing is to modify the plaintxt wordpress theme I’m currently using. I love the simplicity and the cleaness of the theme. However, it’s time to add some “alexle-ness” to it. Some stripes, anyone?

Until then, please keep surfing anonymously at http://www.lastproxy.com and support the Red Cross.

(By the way: here are some keywords to help SEO for LastProxy.com. If you are human, you can skip the rest of this post. Otherwise, proceed!
myspace proxy, access myspace, unblock myspace,firewalled myspace, censor, censorship, cgi-proxy,php-proxy,proxy toplists)

view comments