Pixel picture of me Dan's Shorts
Valid XHTML 1.0 Valid CSS No tables fer you! Valid RSS
Steal This Button Macromedia Dreamweaver Macromedia Fireworks MX 2004 I Heart Music
Cartweaver
« May 2008 »
Su M T W Th F Sa Wk
27 28 29 30 1 2 3  
4 5 6 7 8 9 10  
11 12 13 14 15 16 17  
18 19 20 21 22 23 24  
25 26 27 28 29 30 31  

Thursday, November 01, 2007

5:39 PM

I'm a Godfather

My girlfriend's ex-husband's girlfriend had a brand spankin' new baby today at 6:31. Isabella Johanna Buraglia is 8 pounds, 5 ounces, and 19 1/2 inches long. I'll be booking our trip to The Springer Show soon :).

Posted by Dan | Comments (0) | Add Comment | Permalink

 

Tuesday, January 09, 2007

6:27 AM

THE BLINK TAG SURVIVES!!!

BOOYAH!

Posted by Dan | Comments (5) | Add Comment | Permalink

Comment from Eric Meyer on 1/9/2007
Okay, I give up. What the hell are you talking about?

<reply>
Your browser is obviously not of the same caliber if it can't display the <blink> tag... sheesh...
</reply>

Comment from Scott on 1/9/2007
Damn! And just when you thought it was safe to surf the web... ;-)

<reply>
:)
</reply>

Comment from andrew on 1/20/2007
pwn list
-----------
[X] Central Texas Regional Mobility Authority

<reply>
lol...
</reply>

Comment from R P on 1/22/2007
I am trying to mod a cdrom driver so it will make the the cd's red from the outside in. the file I need to mod is all in bin. at one point it's on all 108 positions in the string. any help decoding and recoding the file when I an finished would be appreachited.

<reply>
um, okay???
</reply>

Comment from Vhadakhan on 1/26/2007
ROFL

 

Thursday, January 04, 2007

1:40 PM

"Not of type numeric" when it damn well is....

I have a problem, and it's ColdFusion... We're working on some complex object interaction, and moving data in and out of our objects. Part of the "moving in" part involves building out a structure of arguments based on query columns, and then passing them all in via the ArgumentCollection. Unfortunately, ColdFusion doesn't love us here at lynda.com... It's pitching a fit and saying that our IDs aren't of type numeric, when I know damn well that they are (grumble grumble)...

To demonstrate my point I've come up with the following code example. This fails every time for me:


<!--- Get a query ---<>
<cfset rs = QueryNew("ID,FirstName", "integer,varchar") /<>
<cfset QueryAddRow(rs) /<>
<cfset QuerySetCell(rs, "ID", 3) /<>
<cfset QuerySetCell(rs, "FirstName", "Daniel") /<>

<cfset TestStruct = StructNew() /<>
<cfloop list="#rs.ColumnList#" index="col"<>
	<cfset TestStruct[col] = rs[col] /<>
</cfloop<>

<cfdump var="#TestStruct#" /<>

<!--- Pass the newly created struct into the object to run each setter ---<>
<cfset MyObject = CreateObject("component", "cfcs.test").init(ArgumentCollection = TestStruct) /<>

<cfdump var="#MyObject.getSnapShot()#" /<>

That generates the following error:

The argument ID passed to function init() is not of type numeric.

Has anyone else come across this same error? Is there some hotfix that fixes this? It's completely stymied our development... The only way around it is to set our arguments to accept type="any", which honestly is unacceptable...

Posted by Dan | Comments (7) | Add Comment | Permalink

Comment from charlie griefer on 1/4/2007


add the [1] inside the loop where you're converting the query to a struct.

otherwise, do some dumps on the rs[col] values. output the value of isSimpleValue(rs[col]) for each loop iteration. they're not simple values.

i'm not sure what they are...i thought omitting the [1] would default to the first row...but something more is going on.

in any event, specifying the record position in the query seems to resolve it.

hope that helps.

<reply>
Yup
</reply>

Comment from Danilo on 1/4/2007
Hey man, hope all is well!

My first thought was that the query cell value that is returned is actually some Java data type, not the integer you're telling it to be.

So I tried dumping:
IsNumeric(TestStruct["ID"])
and it output NO so CF wasn't seeing it as numeric. So I thought instead of using the default for pulling the query row value: rs[col] trying rs[col][1] to indicate pulling the first row and then IsNumeric(TestStruct["ID"]) did return YES.

As I don't have access to your CFC...or do I? :-) you'll have to try it to see how it'll work for your situation.

Let me know.

PS: Not that I post here so much, but how about making the textarea a little wider and taller?


<reply>
Nail, meet hammer :)
</reply>

Comment from Adrian J. Moreno on 1/5/2007
I'd say the problem is that ArgumentCollection is an attribute of cfinvoke and (without seeing the code for test.cfc) not an argument of the init() method.

I imagine that init() has two arguments:

{cfargument name="ID" type="numeric" required="true" /}
{cfargument name="FirstName" type="string" required="true" /}

Since you're passing in a named argument called ArgumentCollection and no named argument called ID, the error is thrown as expected.

If you instead use

{cfset MyObject = CreateObject("component", "test").init(ID = TestStruct.ID, FirstName = TestStruct.FirstName) /}

the object will be created correctly.

HTH

<reply>
Actually the argumentcollection allows you to pass in an entire struct of arguments without having to name them all :). It came down to me not referencing the proper row of the recordset.
</reply>

Comment from TAmi on 1/6/2007
Hi Dan...
I have had the same issue before, but I am surprised you are able to CFDUMP an CFC object. I can never get my CFMX to play nice. I usually have to


then


My CFMX is persnickety about trying to evaluate complex structures that involve CFC calls....

Just a thought...
Tami

<reply>
Interesting issue... not sure what would be going on there...
</reply>

Comment from DAD on 1/6/2007
I think that if you turn your = sign over, then take a backward < sign and turn it around to make a >, then take and flip your [ right side up, then leave all the comma's where they are, it ought to work perfectly.
Hope this helps,
Dad

<reply>
Thanks dad, that worked perfectly :).
</reply>

Comment from Paul on 1/8/2007
You are using cfmx6 correct? If so this is a known bug and you may be able to get around it by using the javaCast function when setting the id. In general when you create or edit a query in cfmx6 you may have problems when checking the type of the data.

<reply>
Actually it turned out to be me not referencing the column correctly. I needed this:

<cfset TestStruct[col] = rs[col][1] />
</reply>

Comment from Bryan Ashcraft on 1/15/2007
Total shot in the dark here, but could be the way you are addressing the value? For instance: arguments.testStruct.id vs arguments.testStruct[1]

<reply>
Yep, you got it Bryan...
</reply>

 

Sunday, October 29, 2006

7:26 PM

Ant, Eclipse, and FTP

I'm having an absolute bear of a time getting Eclipse to play nicely with Subversion, Eclipse, and an Ant build file. One of the wonderful things about working with Dreamweaver is the great FTP integration. I can upload, download, all that wonderful stuff, with a single keyboard shortcut directly in the IDE. I'm not having any such luck with Eclipse.

I think the problem is that I'm not only needing FTP access, I also need Subversion/Subclipse integration. It's my understanding that I can "import" from an FTP site and I forever have a connection through the Team plugins. Unfortunately, I need to "import" from a Subversion repository in order to keep things up to date that way. This makes it damn impossible to use any sort of built in FTP integration inside Eclipse.

To try and get around this I've been playing with Ant (thanks Jared) and build.xml files. The hope is that I can create an Autobuild file that will upload a file any time it's created or changed (I'm not ambitious enough yet to tackle file deletions, bear with me here). Unfortunately, the only thing I've (that means Jared) been able to find is the "depends" attribute of the <target> tag. Unfortunately, this also doesn't seem to work worth a damn... It always uploads the entire project any time a single file changes. The depends attribute isn't checking to see whether anything is newer or not.

The most frustrating part of all of this is trying to find good documentation on complex processes. I've spent several hours on google digging through blog posts, forums, Ant documentation and trying to download jar files, write build scripts, and rebuild workspaces, and nothing seems to work as you'd expect. It seems you need to have a greybeard Java developer looking over your shoulder in order to use Ant, or make it do anything you really want it to.

Can someone prove me wrong, and help me figure out how I can make Eclipse just upload a file when I save it? Is that so much to ask? Please???

Posted by Dan | Comments (3) | Add Comment | Permalink

Comment from Keith Peters on 10/29/2006
Sounds like you are off base with depends. That means that one target depends on another target. So targetA is called. It depends on targetB. So targetB is run first. When B is dnoe, then A can run.

<reply>
Gotcha, in that case I got it all wrong :)
</reply>

Comment from Brooks Andrus on 10/29/2006
I believe you're trying to use the selector which is a selector of the core type "fileset". Here's what' the docs say about :

http://ant.apache.org/manual/CoreTypes/selectors.html#dependselect

As far as ftp goes, I'd go ahead and use the scp task (Ant docs tell you where to download the dependencies).

I've had no problems only uploading "changed" files using and scp.

...Hope this helps :)

Comment from Emmanuel Okyere on 10/30/2006
unless i don't really get you, i'll assume what you are looking for are:

svn update (up), svn add, svn commit (ci)

you normally don't want to automate your commits, as you shd normally add meaningful messages per commit

and a depends attribute simply means the listed targets should be executed before the target in context, so i'm not sure how that applies here.

cheers,
-- eokyere :)

<reply>
No, I don't want to automatically commit changes. I want to automatically upload them to a remote server while I'm developing, and then I'll manually Commit files when I'm done on the development server.

Dan
</reply>

 

Monday, June 26, 2006

9:18 AM

Book Signing

Yes, I signed them as well :)

I'm sure they'll be worth some moolah one of these days when I RULE THE WORLD!!! BWAHAHAHAHAHAHA

Posted by Dan | Comments (1) | Add Comment | Permalink

Comment from Lee on 6/28/2006
Just finished a second of your lynda.com dreamweaver courses. I have always been very enthusiastic about web design but never had the time to get passed the first stumbling blocks. I would like to commend you on these courses (ASP is no longer witchcraft to me) and would love to see more titles in there! Maybe on ASP.Net or more on ASP with SQL or MySQL. Either way this has been the best money I have ever spent on tutorials. Thanks so much.

<reply>
Thanks for the compliment Lee. It's great to here from satisfied "students" :).
</reply>

 

Tuesday, June 06, 2006

3:39 PM

Considering "the switch"

As part of my new job, I got myself a MacBook pro and have been running Bootcamp on it over the last few days. All in all the experience is good, but there are issues with Windows running on the MacBook that bother me (bad sound drivers, and the fact that the clock resets on each startup). However, before I installed BootCamp I spent quite a bit of time on the Mac and got over some of my "floating windows" phobias. To that end, I'm considering going all the way and switching to OSX. So to get to my point, is there anyone out there that's recently been through this that can give me some pointers on what I might miss?

My biggest concern is not finding a worthy replacement for Beyond Compare. I absolutely love the program, and haven't been able to find anything comparable on the Mac. I've seen other diff tools, but nothing with the feature set that Beyond Compare has (saved sessions, full folder tree synchronizations, folder tree comparison reports, exlucsions, rule sets, etc. etc.). Any suggestions in this area would be fantastic, because honestly, the lack of a good Mac file diff tool would keep me on the PC for good...

Posted by Dan | Comments (12) | Add Comment | Permalink

Comment from Chris Charlton on 6/6/2006
Ever think about SVN (SubVersion)?

<reply>
As a diff tool? Not really... the nice thing about Beyond Compare is that it can give you (in an extremely visual manner) every line by line difference. While subversion (which I use for Source code control) and do some diff pieces, it tain't purty (working on Texas accent again...).
</reply>

Comment from Scott Fegette on 6/6/2006
Have you checked out BBEdit? It has both graphical and CLI diff tools built in, and BBEdit rocks the house HARD on it's own merit. Now BC looks pretty deep for diffing, I'll admit- but I've been pretty happy with BBEdit's diff features- may want to give it a spin?

http://www.barebones.com/products/bbedit/

Comment from ericd on 6/6/2006
http://www.guiffy.com/shots.html

looks interesting...

Comment from tunaranch on 6/6/2006
Eclipse has some diffing ability, if you use it.

There's also a mac version of Kdiff3 (which I'm downloading now) :D

Comment from Abe Pazos on 6/7/2006
What about using Parallels? I'm also thinking of switching... next week :)

Comment from Scott Fegette on 6/7/2006
Hey- just heard of one more recommendation for x-platform diff, Dan - Guiffy:

http://www.guiffy.com/

Apparently it's getting raves, but I haven't had a chance to check it out yet.

Comment from John Wilker on 6/7/2006
I'have had no luck finding a good compare tool. I've been looking for something since Pages doesn't offer that and I swap docs with another writer.

Good luck on the search!

Comment from Danilo on 6/7/2006
I saw a post on FullAsAGoog today that mentioned a Mac comparison tool:
http://www.ericd.net/2006/06/os-x-diff-tool-guiffy.inc

HTH

Comment from demimonde on 6/7/2006
Saw this OS X diff tool on fullasagoog today:

http://www.ericd.net/2006/06/os-x-diff-tool-guiffy.inc

Comment from Jon on 6/7/2006
Actually, I'm in the same boat as you with - Macbook Pro, bootcamp, etc.

Apple's XCode tool File Merge (http://www.adobe.com/devnet/dreamweaver/articles/compare_utilities_05.html) works well with dreamweaver, but I wish it was incorporated into the system shell like Beyond Compare. It also doesn't have the ability to copy lines and blocks of code between files as easily as BC. There really is nothing like it for the mac.

I did see this today, though so I'll have to check it out.

Comment from max on 9/17/2006
dan do ou know about codeweavers and CrossOver Mac? i am trying to get beyond compare to work for dreamweaver at the moment. maybe this software would solve your problem, if you haven't a solution already.

<reply>
Thanks, I do believe that just might work :). So far so good.
</reply>

Comment from Jeff Borisch on 9/21/2006
beyond compare can also diff images. It will highlight mismatched pixels. Obviously if you have an image that the byte counts don't match thy are different, but with the image compare you can see exactly where. It's handy for finding images that have been slightly retouched for example. I'm mainly a mac person but own BC on my windows computer. It's indispensable. guiffy looks like it comes close.

<reply>
I had no idear :). Time for me to start playing with BC some more :).

Thanks!
</reply>

 

Monday, June 05, 2006

8:58 PM

I've been outed

Angela has outted me... I do indeed now work at lynda.com. My official position is Web Application Architect. So what do I do?

In no particular order (and certainly not exhaustive):

  • Maintain existing ASP-driven site
  • Fix issues (we don't have any y'know, our site is PERFECT!)
  • Develop new applications for the site
  • Infiltrate the company with ColdFusion (they will all be assimilated)

I've been working at the LDC (sounds fancier that way) for about 2 months, and I'm enjoying being constantly engaged with new things to work on.

So I'm sorry if my posts have been few and far between. Not only do I have a new job, but I'm getting ready to move cross-country again. I'm heading back to the homeland, Texas... We're due to move in July, and I can't wait :). Here's a sneak peek...

Photo of Dan and Angela's home under construction.

Posted by Dan | Comments (5) | Add Comment | Permalink

Comment from Bryan Ashcraft on 6/6/2006
Congrats!!! The job sounded great on the phone. Of course it was a little too late. :(

;^)

The house is looking great!

If you guys decide to visit Beale Street, now that you are closer, be sure to let me know.

<reply>
Sure, just let me know where Beale Street is :)
</reply>

Comment from Shay on 6/6/2006
So does this mean online training library subscribers will see new CF-related training videos in the near future? (hint hint)

<reply>
I can't say for certain :). There's one by Joey Lott available already (how do you like that one?) and then my latest Dynamic Development title is all CF... I don't know how much time I'll have to record stuff, but I certainly wouldn't mind doing a intermediate to advanced CF title...
</reply>

Comment from Dave McFarland on 6/6/2006
Congratulations Dan!

<reply>
Thanks Dave :)
</reply>

Comment from Bryan Ashcraft on 6/7/2006
Hmm... Don't know where Beale street is. And here I thought you were into music. ;^)

I'm not sure what to think when you don't know where the "Home of the blues" (not technically true)is; shame, shame. ;^)

Comment from Dave in UK on 6/26/2006
Hey Dan, love the Lynda.com tutorials. Im a flash developer but i'm finding your Dreamweaver Dynamic Development tutorial mucho fun! you rule! oh and nice house:D - Dave

<reply>
Thanks :)
</reply>

 
All images, programming and all that other jazz are Copyright © Daniel Short 2002-2008, unless otherwise noted in the source code.

Dan's generally a slacker, but when he's not, he works at Web Shorts Site Design and deals with feature creep at DWfaq.com.
Now Playing

The last ten songs played in iTunes. If the list is empty, then the tunes aren't on (how sad).

My Morning Jacket

Okonokos

Lay Low
CD Cover

Eagles

Hell Freezes Over

Desperado - live
CD Cover

Marvin Gaye

Sexual Healing (remix with Shaggy)
CD Cover

Bob Dylan

The Essential Bob Dylan

Tangled Up In Blue
CD Cover

Vicki Sue Robinson

Pure Disco 2

Turn The Beat Around
CD Cover

Zucchero

Zucchero & Co.

Hey Man - Sing a Song
CD Cover

John Mayer Trio

TRY!

Vultures
CD Cover

Rihanna & J - Status

Music of the Sun

There's a Thug In My Life
CD Cover

Savage Garden

Savage Garden

Break Me Shake Me
CD Cover

Daniel Bedingfield

Gotta Get Thru This

I Can't Read You
CD Cover

Now Playing

Listed on BlogShares