Blog

Blog Archives - 54 Record(s)

Remove Filter Year: '2010'

Regex Negative Lookahead, so powerful!

Posted by Luis Majano
May 11, 2010 12:21:39 UTC

I am a big fan of regular expressions.  They are so mysterious and elegant, I love them and hate them, cherish them and despise them.  In other words they are both beautiful and nasty, but they can really get the job done.  I was intrigued today when a colleague of mine was asking how to match a string but if it started with a specific sequence then do not match.  In my regex coolness I said “Sure, that’s easy man!”, whipped out QuickREx in Eclipse, wrote down a quick jolt of brilliance and BAMM!! I hit the brick wall at 90! Nothing I was trying would work, characters where matched not the word:

   1: ^([^search].*)dev\.domain

Basically match any incoming domain that ends with dev.domain but it should not be preceded by the word search.  I really thought I nailed it with that regex, but NOOO, it matches character classes not full words.  So I had to revert my humble ego and go back to the books and voila: Positive and Negative LookAhead!

Granted, some regex engines do not support look behinds, but thankfully java does.  Here is a cool definition:

(?!regex)


Zero-width negative lookahead. Identical to positive lookahead, except that the overall match will only succeed if the regex inside the lookahead fails to match.

And finally and AHA!! moment.  I can use the lookahead:

   1: ^(?!search|training).*dev\.domain

AND BUYAAA!!!  I think this can help somebody out there. It helped me!

Live Writer is Cool!

Posted by Luis Majano
May 05, 2010 22:23:00 UTC

Since I got my new netbook, I decided to dual boot windows 7 and ubuntu 10.4.  I have been a long time Mac user, but I can finally say that windows 7 is so much better than its predecessors.  It doesn’t mean to say that it has its inevitable quirks and weird's things an operating system of these days should not have anymore, like when I want to be an admin, I WANT TO BE AN ADMIN!!! LET ME DO WHAT I WANT!!!

Anyways, I found that permissions in windows 7 are absolute nonsense and just plain stupid.  Apart from that, I have been trying out the suite of live apps, like, live writer, live photo gallery and live mail.  I can totally say I really like them, they are simple, intuitive and easy to setup.  So maybe the OS is still crappy, but the apps are really good.

Anyways, that is my rant of the night, as I type this up in live writer and really liking it.

Training headed to the East Coast

Posted by Luis Majano
May 03, 2010 23:27:56 UTC
Finally after several months of getting this training prepared, we are heading to the DC area and holding our first 2 day ColdBox intensive training in July, 2 days before CFUnited.  So head on over to the ColdBox blog and find out about it. Hope to see you there!

Checking if one array is a subset of another

Posted by Luis Majano
Apr 28, 2010 11:13:27 UTC
This is more of a reminder than anything else.  A co-worker needed to figure out if one array was contained as a subset of another and of course we go back to our good 'ol friend java for this and the collections interface:

isSubset = arrayA.containsAll( arrayB )

Simple and easy!  Here are the Java API Docs just in case you want to read some more!

Installing JoliCloud VirtualBox additions

Posted by Luis Majano
Apr 23, 2010 21:52:12 UTC
This is more of a memo for me than anything else.  I just recently downloaded JoliCloud to give it a spin before I decided what OS to run on my new netbook.  I am very impressed with JoliCloud and love its look and feel.  Here are the instructions I have found in order to make VirtualBox additions work:

Jolicloud doesn't come with everything you need to build the extra kernel extensions, so you'll need to install a couple of things. First you need to mount the Guest Additions ISO (click the Devices menu, the Install Guest Additions). Once you have it mounted open up a new Terminal window and type the following:

sudo apt-get update

sudo apt-get install make linux-headers-$(uname -r)

cd /media/cdrom0

sudo ./VBoxLinuxAdditions-x86.run

Hope this helps out

Curt and his Padawans

Posted by Luis Majano
Apr 23, 2010 20:51:17 UTC

Curt and his Padawans

Originally uploaded by lmajano

We had today several awesome presentations at CFObjective and our awesome jedi Curt, presented on MockBox in less than 6 minutes. We also had fun being his padawans. Awesome job Curt!

CFObjective 2010 slidedeck and code

Posted by Luis Majano
Apr 23, 2010 12:10:54 UTC
If you where not able to attend my ColdBox 3.0.0 presentation at CFObjective (Shame on you!), now you can at least see the presso and the source code we used.  Just head out to our wiki and download it now.

To those who attended, thank you very much!

[vimeo]http://vimeo.com/11172436[/vimeo]

ColdFusion job available

Posted by Luis Majano
Apr 22, 2010 14:38:07 UTC
Just wanted to post an available ColdFusion/ColdBox job I got a request for. You can find much more information about this opportunity here: http://meridian.maxhire.net/cp/?E8546F361D43717B7E571D2877551B6F012C3348 or they can contact [email protected] or call Kit at 800-755-1038.

Location/City : OREGON - Salem

Meridian Technology Group is looking for a Senior "Expert" Cold Fusion Web Developer with Cold Box

The upfront workload and timeline for this project is intense due to the need to complete the work within the 2010 timeframe. The overall design has been completed and the software components and interfaces have been defined. Such that the person in this position MUST HAVE EXPERT KNOWLEDGE OF COLD FUSION AND COLD BOX, along with substantial experience participating in the development of large cross-platform applications, to focus on the job of generating the code to the specified timelines. In this role, you will be expected to participate in a full functional project team to meet the tight deadlines with the use of Unit Testing and code reviews to ensure that the interfaces are held to specifications.



Get your coldbox extension update

Posted by Luis Majano
Apr 18, 2010 23:13:28 UTC
New coldbox platform utilities extension update with integrated help, live API, doc search and orm event handler creations: http://coldbox.org/forgebox/view/ColdBox-Platform-Utilities

Scotch on the Rocks here I come!

Posted by Luis Majano
Apr 11, 2010 00:00:00 UTC
I am super pleased to announce that I will be presenting at scotch on the rocks this May in London, UK.  My session will be on the magical ColdBox Platform.  If you have not seen the scotch on the rocks website, please do as it is really awesome.  This will be my first Scotch, so I am pretty excited.

Not only will I speak, but I will be holding a 3 day training session for CBOX-101 and a 1 day of full hands on development using ColdBox.  There are still seats available, so go over to our discount site and get registered with a hefty hefty discount.

Site Updates

Archives

Entries Search