Community Member Profile
- Profile: /members/930-David-Maggard.htm
- Comments: 20
- Points: 206
Recent Blog Comments By David Maggard
-
Explicitly Ending A ColdFusion Session
Posted on Feb 12, 2010 at 11:45 AM
My favorite way to kill a session is with the leadpipe in the study...jk, awesome post.... read more »
-
Clearing The Session Scope Does Not End Your ColdFusion Session
Posted on Feb 11, 2010 at 1:50 PM
If you look up the docs on the location http header(which cflocation is doing) it is specified, the php docs are more explicit about it as well as lots of varies rewrite engine docs. Its one of those things that most browsers are forgiving about so usually it doesn't matter, but it is something t... read more »
-
Clearing The Session Scope Does Not End Your ColdFusion Session
Posted on Feb 11, 2010 at 12:06 PM
BTW: Noticed you were using cflocation with a relative url instead of a absolute url. Although most popular browsers will work with relative urls, the standard is for a absolute url, and some older browsers and other protocol-strict http clients will fail with a relative url, just thought I woul... read more »
-
Embedding Secret Messages In An Image Using ColdFusion
Posted on Jan 13, 2010 at 11:43 PM
Speckly images, although some interesting patterns developed in the mp3 ones, may try on a small mpg or avi to see if it is the same.... read more »
-
Thoughts About Salaries And Raises As Motivated By Daniel Pink's Book, Drive
Posted on Jan 13, 2010 at 4:53 AM
1: In my experience raises that are given w/o asking are generally more appreciated, because on top of the raise it is an indication of appreciation and gratitude, they don't feel like they have to beg/demand what they are worth. 2: I think that anytime you can't deliver an expected raise/b... read more »
-
Embedding Secret Messages In An Image Using ColdFusion
Posted on Jan 13, 2010 at 3:08 AM
I modified the code to make 'pictures' from binary data then re-extract it, this was a learning experience because to rebuild the bytearray I had to extract the separate bytes and convert them to signed byte values to make java happy. It can be VERY memory intensive depending on what you use so b... read more »
-
Embedding Secret Messages In An Image Using ColdFusion
Posted on Jan 10, 2010 at 3:05 PM
20(10100) seems the most difficult to me, btw avoid 5(00101) or 640(1010000000) or even worse 645. Today is a binary date btw, 01/10/10, yes I am using a 2-digit year, sue me :)... read more »
-
Embedding Secret Messages In An Image Using ColdFusion
Posted on Jan 10, 2010 at 2:22 AM
I think I may have an affinity for other numbering systems, I have liked bit based operations for a while. If you want to see something trippy you can learn how to count to 1023 on your fingers using binary: http://en.wikipedia.... read more »
-
Embedding Secret Messages In An Image Using ColdFusion
Posted on Jan 9, 2010 at 9:04 PM
I could have commented it better, yours simply adds the the lowest bit which is presumable the lowest bit in the blue channel. I pluck out the bits out of the int/ascii by shifting it so the bit I want is the rightmost/lowest order then Bitwise anding it with 1(binary 00000001) so only the... read more »
-
Embedding Secret Messages In An Image Using ColdFusion
Posted on Jan 9, 2010 at 7:09 AM
Now for even more fun! I updated yet again to instead of embedding ASCII text embed another picture http://www.drm31415.com/embed2.txt http://www.d... read more »
-
Embedding Secret Messages In An Image Using ColdFusion
Posted on Jan 9, 2010 at 3:23 AM
I had to try it, so I modified your code to encode 1 bit per color channel(3 bits per pixel) and to encrypt the data before embedding. I am using bit shifting and XOR to embed and extract the data bits. I did have an error with your original code and the image I borrowed of you and La... read more »
-
Embedding Secret Messages In An Image Using ColdFusion
Posted on Jan 8, 2010 at 8:17 PM
Quite frankly you could encrypt the message with almost any encryption algorithm, then embed the encrypted data in the image(if the result isn't too large), which would give you the security of the encryption used with the inconspicuousness of an image. If the message data bit length is too long... read more »
-
My Fundamental Misunderstanding Of The jQuery Event Object
Posted on Dec 18, 2009 at 11:08 AM
Would this work as well? // Bind click with extra event data. $( "p" ).bind( "click", {which: "second"}, function( event ){ delayEvent( event, event.data); } ); var delayEvent = function( event, data){ // Output current even... read more »
-
Running UPDATE And DELETE SQL Statements Using ColdFusion Query Of Queries
Posted on Sep 18, 2009 at 6:39 PM
Dang it, sorry about double post.... read more »
-
Running UPDATE And DELETE SQL Statements Using ColdFusion Query Of Queries
Posted on Sep 18, 2009 at 6:38 PM
If you need to maintain order you could add a field to the query that is equivalent to the currentrow value like your "id__internal" field is, then use it in an order by clause with the union QueryAddColumn(Leads,"RowNum__","Integer",ArrayNew(1))] [cfloop index="RowNum" from="1" to="#L... read more »
-
Running UPDATE And DELETE SQL Statements Using ColdFusion Query Of Queries
Posted on Sep 15, 2009 at 10:22 AM
Maybe I am missing something but QofQs supports UNIONS so you can do a psuedo update like UPDATE MyQuery SET MyField='#DefaultValue#' WHERE MyField='' with a QofQ Query like: <cfquery name="MyQuery" dbtype="query"> SELECT ID,MyField FROM MyQue... read more »
-
Learning ColdFusion 9: Extending The Query.cfc Service Component
Posted on Aug 20, 2009 at 2:05 PM
Glad you both seem to like it, it just seemed to me that setting the params after assembling the query string is rife with potential difficulties and counter-intuitive, I like the <cfquery>/<cfqueryparam> method, and this seemed to me to closely replicate that style which I think woul... read more »
-
Learning ColdFusion 9: Extending The Query.cfc Service Component
Posted on Aug 17, 2009 at 8:11 AM
Or better yet instead of modifying addParam create a method called something like addQueryParam and have it wrap around addParam, that way you can avoid inconsistencies with addParam in the other service components. BTW: can you fix the word wrap with my previous post so it doesn't cut off... read more »
-
Learning ColdFusion 9: Extending The Query.cfc Service Component
Posted on Aug 17, 2009 at 7:18 AM
I would suggest a small change to the addParam method that coul,d make this easier to adopt to people used to cfqueryparam, have it return the parameter placeholder like this insertQuery.addParam(name="name",value="Tricia",cfsqltype="cf_sql_varchar") would return ":name", that way you could... read more »
-
Overriding ColdFusion's ArgumentCollection And An Extremely Weird Behavior!
Posted on Dec 6, 2008 at 8:39 PM
My perspective is the ArgumentCollection and AttributesCollection aren't really the same as a user defined argument in your tag, they are more like a short hand way to pass arguments/attributes that are predefined by the application without typing each in every place in the code that it is used,... read more »



