Updates from March, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • Pablo 9:47 AM on 31 March 2011 Permalink | Reply  


    Just finished a the new re-code of the “journals” section of my new site. Now it’s mostly loaded using AJAX for speed and everything is updated in sight without reloads.


    Now i will start making the new editor so i can finally release the v2. Some others things i left behind atm include: a better design for the about section, the forgot password, an internal message system and a suscription system.

    I want this site to be an usefull tool for everyone to use.

  • Pablo 9:06 AM on 22 March 2011 Permalink | Reply  

    Installing SVN on WindowsXP 

    This one is really easy, i decided to start using SVN on my own computer to keep everything in order.

    Just go to: http://www.visualsvn.com/server/download/ That’s the SVN server, that’s the program you will use to create your repositories.

    Then, download this: http://tortoisesvn.tigris.org/ That’s Shell Extension for Subversion. It adds options to the “right click” submenu on any folder.

    After you install thouse 2 things, you will have to open VisualSVN and go to the “Users” folder,  right click > create User. Set the new user name and password.

    After that it’s all about right clicking the “Repositories” folder and adding new repositories, after you create one you can now start using your repository!!

  • Pablo 8:39 PM on 21 March 2011 Permalink | Reply  

    JQuery Template Variable Scope… quirk? 

    If you define this template:
    [preserved_text f980c4a0be2d6186ef01c890fbe50d47 /]
    The word "funny" gets rendered on the span tag. 
    Not something one would espect... funny.
  • Pablo 7:28 PM on 19 March 2011 Permalink | Reply  

    Making Dreamweaver CS5 read SCSS as CSS 

    I’m using SASS to edit my CSSs and Dreamweaver read scss as plain text, so for enabling css syntax you must follow this steps:

    C:/Documents and Settings/ ... etc ... /Adobe/Dreamweaver CS5/ %lang% /Configuration/Extensions.txt
    C:/Program Files/Adobe/Adobe Dreamweaver CS5/configuration/Extensions.txt

    Open thouse 2 files and change “CSS:Style Sheets” to “CSS,SCSS:Style Sheets”.

    Then go here:

    C:/Program Files/Adobe/Adobe Dreamweaver CS5/configuration/DocumentTypes/MMDocumentTypes.xml

    Search for “css” and add this, winfileextension=”css,scss:

    	<documenttype id="CSS" internaltype="Text" winfileextension="css,scss" macfileextension="css,scss" file="Default.css" writebyteordermark="false" mimetype="text/css" >
    			<MMString:loadString id="mmdocumenttypes_30" />
    			<MMString:loadString id="mmdocumenttypes_31" />
    • Raymundo 1:28 PM on 19 August 2011 Permalink | Reply

      I’ve been tried doing your DreamWeaver configuration changes to read my SCSS files. DreamWeaver still does not display either code hinting or code formatting views. Any additional suggestions

      • Pablo Bandin 2:08 PM on 21 August 2011 Permalink | Reply

        try to do a search of ALL the Extensions.txt on your computer, sometimes this files might exist in more than one location, especially if you have Dreamweaver installed in more than one language.
        In my case, i found 4 files in diferent locations, i just changed them all.

    • anything 8:05 AM on 3 February 2012 Permalink | Reply

      i tried it on visita and it seems working well 😀

      for the C:/Documents and Settings/ … etc … /Adobe/Dreamweaver CS5/ %lang% /Configuration/Extensions.txt

      on visita it is :

      C:\Users\[UserName]\AppData\Roaming\Adobe\Dreamweaver CS5.5\en_US\Configuration

    • Nicole Bauer 3:32 AM on 6 July 2012 Permalink | Reply

      Thank you, Pablo! Worked perfectly. That’s so much better. 🙂

    • Mark 12:45 PM on 5 November 2013 Permalink | Reply

      I’m have a problem. I changed my “<documenttype id="CSS" line code to winfileextension="css,scss,less" went to save it and got a message window stating "Access denied"! I did this in an external text editor. Any suggestion?

      • Pablo 9:01 AM on 6 November 2013 Permalink | Reply

        try opening the file as administrator (mabe you are logged in a guest account) Or open the file security privileges and give access to your user.

        That error is happening because you are not “the owner” of the file, that is solved by granting yourself access or doing the editing as an adminsitrator…

  • Pablo 9:52 PM on 17 March 2011 Permalink | Reply  

    HTML5 Boilerplate ANT build 

    God bless you Paul Irish!!


  • Pablo 2:38 PM on 17 March 2011 Permalink | Reply  


    If you dont know about it, this is the link: http://html5boilerplate.com/

    One word: AWESOME!!!!!!!!!!!!!!!!!!!!!

  • Pablo 12:01 PM on 17 March 2011 Permalink | Reply  

    Charset encoding: UTF-8 vs ISO Latin1 

    After reading this: http://www.joelonsoftware.com/articles/Unicode.html and making some tests:

    I would say that UTF-8 is the way to go  – or even UTF-16 – , it has all the same things that Latin1 can offer + a lot more charsets.

    Latin1 is more orientated to the Latin Alphabeth (which is fine if you only aim to that)

    UTF8 can represent ANY Unicode charset, not just Wester European countries, but also Eastern europeans.

    So for SQL fields i would say utf8_unicode_ci should be the collation of choise.

    Conclusion: chose UTF-8!

    Note: Because UTF-8 has variable byte length it makes the string comparition operations a little slower than a fixed byte length charset like UTF16 for example.  And it might take more space to store ideographic charsets.

  • Pablo 11:29 PM on 16 March 2011 Permalink | Reply  

    YUI Compressor + Apache ANT Workflow 

    Things you will need:

    Apache ANT: http://ant.apache.org/

    Java SDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html

    YUI Compressor: http://developer.yahoo.com/yui/compressor/

    Set windows enviroment variables: JAVA_HOME pointing to the Java SDK, ANT_HOME pointing to the ant folder and include thouse paths in the PATH variable.

    Read this post:



    What i do after i setup my ant build is to create a build.bat ( i use windows ) file with the following command:

    CALL ant



    The workflow

    My ant build (made acording to your project needs, there’s no standard or copy & paste solution) minifies and compress all JS and CSS and move them into a new folder called “publish-js” and “publish-css” after that i select all the files on thouse folders and move them to the server. That way i can work with the originals in my enviroment and then when i’m done, i execute the build.bat and i’m ready to upload.

    Cool stuff, today i spend almost all day learning how to use the Apache ANT tool, i was afraid of it, but once you understand it, it’s only a good thing that will only make your life happier.

    If you dont know anything about ANT or Compressing js files, read this links, your head will hurt but it will be worth it.


    Anyway, just wanted to spread the word.

  • Pablo 10:19 PM on 15 March 2011 Permalink | Reply  

    My new site: Weightxreps 


    It’s a new site aimed to host training journals (weight training, powerlifting, etc)

    It gives user feedback about their training as well as saving and storing the data to future reviews and analysis.

    I’m currently working in optimizing the code in that site and adding more features that were left behind in the first release.

    More to come in the near future.

    PS: all the news and updates about the site are being posted in this twitter account: http://twitter.com/weightxreps


  • Pablo 7:19 AM on 8 March 2011 Permalink | Reply  

    Jquery ui-effects-wrapper residual 

    Well today i got a weird problem with jquery creating lots and lots of div.ui-effects-wrapper all over the place, after a google search i found the solution within a few minutes BUT i will post the solution here to increase the posibilities to other users to find an answer on a google search.

    I was applying an effect to some divs BEFORE i change them from one container to another, so the “residual” div was being created in the first container and then affter the effect was done jquery couldn’t find the div in the new container, leaving the residual div.

    the solution was simple, apply the effect AFTER moving the div to it’s final container.

    ABSTRACT: this issue appears to happen when some effect ends and the div was changed from his original container div.  Jquery must do something like  affecteddiv.parent().find(‘.ui-effects-wrapper’).remove()

    • marstone 5:23 AM on 26 April 2011 Permalink | Reply

      thanks, $(‘.ui-effects-wrapper’).remove() works for me.

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc