Oct312008

Better regular expression for URLs

Published by guillermo at 4:00 PM under Development | Process & Methodology

Via Jeff Attwood's post, in summary (because his posts tend to be very, hmm, thorough):

  • The primary improvement here is that we're only accepting a whitelist of known good URL characters. Allowing arbitrary random characters in URLs is setting yourself up for XSS exploits, and I can tell you that from personal experience. Don't do it!
  • We only allow certain characters to "end" the URL. Ending a URL in common punctuation marks like period, exclamation point, semicolon, etc means those characters will be considered end-of-hyperlink characters and not included in the URL.
  • Parens, if present, are allowed in the URL -- and we absorb the leading paren, if it is there, too.
  • The regular expression is:

    \(?\bhttp://[-A-Za-z0-9+&@#/%?=~_()|!:,.;]*[-A-Za-z0-9+&@#/%=~_()|]



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags: ,

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

    Oct302008

    The perfect code comment

    Published by guillermo at 10:00 PM under Development

    Via a dear friend of mine, this gem was made available for my enjoyment in all coincidence written the day of my birthday, and since being selfish is not in my nature I decided to share it with the five of you (literally).

    codeComments



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags: ,

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

    Oct262008

    Framework 3.5 Enhancements (SP1) Training Kit

    Published by guillermo at 10:18 PM under Technology | Development | Process & Methodology

    I love these as a quick, hands on way (my favorite) to get up to speed with skills and technology you may otherwise miss or take longer to catch up to.

    Here is the training kit from the horse’s mouth:

    The .NET Framework 3.5 Enhancements Training Kit includes presentations, hands-on labs, demos, and event materials. This content is designed to help you learn how to utilize the .NET 3.5 Enhancement features including: ASP.NET MVC, ASP.NET Dynamic Data, ASP.NET AJAX History, ASP.NET Routing, ADO.NET Data Services, ADO.NET Entity Framework, WCF 3.5 SP1, and the .NET Framework Client Profile.

    Download the kit from here.



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags: , , , , , ,

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

    Oct262008

    Adopting a new base

    Published by guillermo at 10:12 PM under Random Thoughts | Off Topic

    for my age… and it will be officially the Hexadecimal base to define my age. 

    So today, I am 0x26!, yes 26 (hex).



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags:

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 1 Responses

    Sep232008

    Local companies recognized by innovative use of technology

    Published by guillermo at 9:37 PM under Technology | Reviews

    The September 15th issue of InformationWeek (perpetually mistakenly delivered to me for 3 years), features their 20th annual ranking of companies they deem “The Top Innovators In Business Technology”. 

    The listing has a regional breakout, and so I thought It would be easy to just go through it and identify & extract all of those companies with headquarters in our state of Wisconsin.  It is in a way a means to show my regional pride.

    Here’s the list of companies in alphabetical order, containing the company name, city and the company’s highest ranking IT executive & title:



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags: ,

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

    Sep232008

    Free Source Code Analysis from Microsoft.

    Published by guillermo at 9:14 PM under Development | Tools

    I recently came across Microsoft StyleCop, that analyzes the code, within the IDE for style.  This includes things like naming conventions, formatting and other matters of visual appeal.  It differs from FxCop in that it doesn’t check for use patterns, it simply checks style. 

    I’ve been looking at this tool in order to implement it at work, where we have a pretty consistent and adhered to coding standard, who’s style enforcement could be done by a tool and save some people some time.

    In any case, I am sure most of you are familiar with it but I deemed it worth noting, writing about and referencing.

    The team’s blog is a great resource for help, release announcements, and general information about the tool.

    The tool itself is available here in its latest 4.3 release



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags: , , , ,

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

    Sep182008

    Introducing SQL Server 2008 Free eBook

    Published by guillermo at 10:00 PM under Development | Technology

    Me and my addiction to books, especially FREE books.  Sorry.

    Go to the Microsoft SQL Server 2008 Learning Portal, click on Special offers (or scroll down a bit), and follow the link.

    Via the author's blog post.



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags: ,

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

    Sep112008

    Acronym hell

    Published by guillermo at 12:00 PM under Gadgetry, Media | Technology



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags: ,

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

    Sep072008

    the impact of words

    Published by Guillermo at 9:33 AM under Off Topic | Opinion

    I am not one to get into any political discussions, I reserve my opinions and understand it when others passionately get into it and make it their main content.  This however is not the latter, but a very interesting and unbiased way to present content in a visual way.

    Below is a wordie of both candidates acceptance speeches at their respective national conventions.  McCain’s on top, Obama’s  the bottom one.

     

    work by Thomas Hawk



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags:

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

    Sep032008

    Free Data Structures and Algorithms Book

    Published by guillermo at 12:15 PM under Development

    Draft version, PDF delivered, Free.  I don't need to "sell it" to you do I?

    DSA Book



    [KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    Tags: ,

    E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses