Re: error converting docs using cfdocument and openoffice

2011-07-27 Thread Stefan Richter

I'm doing a lot of PPT/PPTX and DOC conversion in one of my apps. Usually I 
need to convert to image formats, but PDF would be similar: it sometimes simply 
fails. I think it's because some Office docs have too much gimmicky stuff 
packed into them.

In any case I use some of the Aspose libraries to do the conversion, maybe give 
that a try. Solutions which require Office or Openoffice on the server seemed 
slow and not very scalable to me. Aspose is not without its faults, and it 
isn't cheap, but it does not require any form of Office and it's pretty fast.

Regards,

Stefan




On 26 Jul 2011, at 18:24, David Moore wrote:

 
 I allow clients to convert MS office files to PDF documents within my content 
 management system. I was using easyPDF, but since upgrading to CF9, I am 
 attempting to use cfdocument and openoffice. In testing I am finding it works 
 sometimes and sometimes not. When it does not, I get a PDF document which is 
 bascially scambled text. 
 
 Has anyone else expereinced this or have some suggestions on how to better 
 use the techology.
 
 Thank you,
 
 David G. Moore, Jr.
 UpstateWeb, LLC 
 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346352
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Its ColdFusion's Fault

2011-07-27 Thread Matt Williams

 Specifically: One of the explicit design goals leading into HipHop
 was the ability to continue writing complex logic directly within
 PHP. - so they do 'work' in PHP, they do not write C++.

Interesting concept. Seems like somebody could do the same for Java -
maybe a tag based deal with some cool tie-ins to a database, email,
searching, web services, dhtml, reports ...

So full of good ideas I could pop,

- Matt

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346353
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Its ColdFusion's Fault

2011-07-27 Thread Russ Michaels

wow that is some Sarcasm :-)

On Wed, Jul 27, 2011 at 4:08 PM, Matt Williams mgw...@gmail.com wrote:


  Specifically: One of the explicit design goals leading into HipHop
  was the ability to continue writing complex logic directly within
  PHP. - so they do 'work' in PHP, they do not write C++.

 Interesting concept. Seems like somebody could do the same for Java -
 maybe a tag based deal with some cool tie-ins to a database, email,
 searching, web services, dhtml, reports ...

 So full of good ideas I could pop,

 - Matt

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346354
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Committing Line by Line Changes?

2011-07-27 Thread Shannon Rhodes

I've been charged with choosing versioning software for our team, and I'd like 
to recommend Subversion but there's a developer who wants a feature that I'm 
not sure Subversion (or other versioning tools) can accommodate:  partial 
commits.  For example, you may be working on a project where you've touched a 
lot of code that is not ready for check-in, but then a high priority change 
comes across your desk that requires you to make an unrelated change to one of 
these files and check it in.  He wants to be able to pick and choose which 
lines of a changed file get checked in.  Is that possible with any versioning 
tool?? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346355
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Casey Dougall

Hi,

Yeah Subversive SVN plugin for eclipse and ColdFusion builder does this, you
can commit a file, folder or when you click on the whole project folder
select ONLY certain files contained within the project that you want to
commit and leave the rest alone.



On Wed, Jul 27, 2011 at 12:16 PM, Shannon Rhodes shan...@rhodesedge.comwrote:


 I've been charged with choosing versioning software for our team, and I'd
 like to recommend Subversion but there's a developer who wants a feature
 that I'm not sure Subversion (or other versioning tools) can accommodate:
  partial commits.  For example, you may be working on a project where you've
 touched a lot of code that is not ready for check-in, but then a high
 priority change comes across your desk that requires you to make an
 unrelated change to one of these files and check it in.  He wants to be able
 to pick and choose which lines of a changed file get checked in.  Is that
 possible with any versioning tool??

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346356
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Dave Watts

 Yeah Subversive SVN plugin for eclipse and ColdFusion builder does this, you
 can commit a file, folder or when you click on the whole project folder
 select ONLY certain files contained within the project that you want to
 commit and leave the rest alone.

I don't think SVN supports committing specific lines of a file, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346357
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Emailing a file to an application

2011-07-27 Thread Shannon Rhodes

I was asked today if there's a way to use ColdFusion to basically email a 
document to an application rather than users having to save attachments to 
their systems and then upload to a CF application from there.

So you'd email a file from, say, Outlook, with an identifying number in the 
subject line, and then automatically upload the attachment and otherwise run 
business logic to associate the file to the correct ID in the application 
(authenticating based on user's email address).  It's easy enough to use CF to 
upload a file and run business logic, but I'm stuck on the idea of how it's 
going to parse out this information in the first place.  I'm guessing you'd set 
up an email account to receive such files, then run a task to periodically comb 
through this account's inbox and somehow read the subject lines, from 
addresses, point to the attachment for upload, then archive the message.  
Anyone done anything like this or have any idea how you'd approach it?  Thanks. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346358
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Dave Watts

 I've been charged with choosing versioning software for our team, and I'd 
 like to recommend Subversion but there's a developer who wants a feature
 that I'm not sure Subversion (or other versioning tools) can accommodate:  
 partial commits.  For example, you may be working on a project where
 you've touched a lot of code that is not ready for check-in, but then a high 
 priority change comes across your desk that requires you to make an
 unrelated change to one of these files and check it in.  He wants to be able 
 to pick and choose which lines of a changed file get checked in.  Is that
 possible with any versioning tool??

I don't think it is. All the tools I've seen treat files as atomic for
checkin purposes.

That said, this is why we have diff tools. Use the diff tool with your
local copy, build a new copy with the lines you want and check that
in. Beyond Compare is a great diff tool if you're on Windows.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or ons

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346359
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Shannon Rhodes

Yeah, what Dave said...I'm talking about committing part of a file, not part of 
a project. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346360
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Emailing a file to an application

2011-07-27 Thread Phillip Vector

Right. Lookup cfpop. It makes a query of your inbox. Then, you perform
whatever action that you want based on the subject.

On Wed, Jul 27, 2011 at 9:27 AM, Shannon Rhodes shan...@rhodesedge.com wrote:

 I was asked today if there's a way to use ColdFusion to basically email a 
 document to an application rather than users having to save attachments to 
 their systems and then upload to a CF application from there.

 So you'd email a file from, say, Outlook, with an identifying number in the 
 subject line, and then automatically upload the attachment and otherwise run 
 business logic to associate the file to the correct ID in the application 
 (authenticating based on user's email address).  It's easy enough to use CF 
 to upload a file and run business logic, but I'm stuck on the idea of how 
 it's going to parse out this information in the first place.  I'm guessing 
 you'd set up an email account to receive such files, then run a task to 
 periodically comb through this account's inbox and somehow read the subject 
 lines, from addresses, point to the attachment for upload, then archive the 
 message.  Anyone done anything like this or have any idea how you'd approach 
 it?  Thanks.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346361
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Emailing a file to an application

2011-07-27 Thread Wil Genovese

That is the exact process.

CFPOP is the tool to use to check the email box. It will let you do most things 
any normal email client would do such as get headers only, save attachments, 
delete emails etc.  Have a schedule task run the code once every n minutes. 



Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Jul 27, 2011, at 11:27 AM, Shannon Rhodes wrote:

 
 I was asked today if there's a way to use ColdFusion to basically email a 
 document to an application rather than users having to save attachments to 
 their systems and then upload to a CF application from there.
 
 So you'd email a file from, say, Outlook, with an identifying number in the 
 subject line, and then automatically upload the attachment and otherwise run 
 business logic to associate the file to the correct ID in the application 
 (authenticating based on user's email address).  It's easy enough to use CF 
 to upload a file and run business logic, but I'm stuck on the idea of how 
 it's going to parse out this information in the first place.  I'm guessing 
 you'd set up an email account to receive such files, then run a task to 
 periodically comb through this account's inbox and somehow read the subject 
 lines, from addresses, point to the attachment for upload, then archive the 
 message.  Anyone done anything like this or have any idea how you'd approach 
 it?  Thanks. 
 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346362
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Emailing a file to an application

2011-07-27 Thread Gerald Guido

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_08.html#2965096


On Wed, Jul 27, 2011 at 12:31 PM, Wil Genovese jugg...@trunkful.com wrote:


 That is the exact process.

 CFPOP is the tool to use to check the email box. It will let you do most
 things any normal email client would do such as get headers only, save
 attachments, delete emails etc.  Have a schedule task run the code once
 every n minutes.



 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com

 wilg...@trunkful.com
 www.trunkful.com

 On Jul 27, 2011, at 11:27 AM, Shannon Rhodes wrote:

 
  I was asked today if there's a way to use ColdFusion to basically email a
 document to an application rather than users having to save attachments to
 their systems and then upload to a CF application from there.
 
  So you'd email a file from, say, Outlook, with an identifying number in
 the subject line, and then automatically upload the attachment and otherwise
 run business logic to associate the file to the correct ID in the
 application (authenticating based on user's email address).  It's easy
 enough to use CF to upload a file and run business logic, but I'm stuck on
 the idea of how it's going to parse out this information in the first place.
  I'm guessing you'd set up an email account to receive such files, then run
 a task to periodically comb through this account's inbox and somehow read
 the subject lines, from addresses, point to the attachment for upload, then
 archive the message.  Anyone done anything like this or have any idea how
 you'd approach it?  Thanks.
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346363
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Judah McAuley

With Git and Mercurial, you can shelve changes. So if you are part
way through a big change and something important comes in, you can
tell the source control system to stash the current changes out of the
way, go back to your version prior to the current changes, make the
new important changes and commit them, then pull the uncommitted stuff
you were working on back into your working branch and go on your merry
way.

Judah

On Wed, Jul 27, 2011 at 9:28 AM, Shannon Rhodes shan...@rhodesedge.com wrote:

 Yeah, what Dave said...I'm talking about committing part of a file, not part 
 of a project.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346364
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Mike Chabot

Shannon,
You can accomplish this goal indirectly with Subversion. You could check out
the committed version of the file to a different location, check out an
older copy of the entire site, or use the branching feature, make the change
to that other copy of the file/site, then commit that other file without
impacting the current development directory. I've done this sort of thing
many times. An alternative is that the developer can comment out the code
that is not ready to commit, then uncomment the code when development on it
restarts. Another alternative is to move the current development copy of the
file to a different directory outside of the site, download the version from
source control to modify it, then when that modification is complete and
checked in, use a diff tool to merge the two files.

I am not aware of any source control tool that lets you directly pick
individual lines of code to commit.

-Mike Chabot
On Wed, Jul 27, 2011 at 12:16 PM, Shannon Rhodes shan...@rhodesedge.comwrote:


 I've been charged with choosing versioning software for our team, and I'd
 like to recommend Subversion but there's a developer who wants a feature
 that I'm not sure Subversion (or other versioning tools) can accommodate:
  partial commits.  For example, you may be working on a project where you've
 touched a lot of code that is not ready for check-in, but then a high
 priority change comes across your desk that requires you to make an
 unrelated change to one of these files and check it in.  He wants to be able
 to pick and choose which lines of a changed file get checked in.  Is that
 possible with any versioning tool??

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346365
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Shannon Rhodes

Great info, thanks for the fast replies! 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346366
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Emailing a file to an application

2011-07-27 Thread Shannon Rhodes

Fantastic, thanks! 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346367
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Emailing a file to an application

2011-07-27 Thread Russ Michaels

I would however strongly suggest that you only use this for SMALL
attachments, if people are going to start sending big attachments then you
are going to start having major problems from the users PC/Outlook, the
ISP's SMTP server, the receiving mail server.
Here are just some of the problems you can have.

1. Outlook cannot send the email, and will keep trying, the email will get
stuck in the outbox and keep sending over and over again or not at all. So
the user is often unaware of this, so will have no idea that their email
never sent or that you are getting hundreds of copies of it per day.
2. the senders ISP will not allow large attachments and the email will
simply be rejected or the attachment removed.
3. The receiving mail server will not accept emails with big attachments and
will either reject it or bounce it including the attachment back to the
recipient.
4. The senders mail server will not accept large attachments, so will reject
the bounce back, or bounce it back to the previous mail server causing a
loop (called backscatter)

Unless of course you are the ISP and have full control of all the mail
servers in the loop and can configure all the users email clients to avoid
these issues.

A much better solution would be a document/file sharing or management
system. There are plenty out here ranging from FREE to expensive,

Russ
On Wed, Jul 27, 2011 at 5:33 PM, Gerald Guido gerald.gu...@gmail.comwrote:



 http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_08.html#2965096


 On Wed, Jul 27, 2011 at 12:31 PM, Wil Genovese jugg...@trunkful.com
 wrote:

 
  That is the exact process.
 
  CFPOP is the tool to use to check the email box. It will let you do most
  things any normal email client would do such as get headers only, save
  attachments, delete emails etc.  Have a schedule task run the code once
  every n minutes.
 
 
 
  Wil Genovese
  Sr. Web Application Developer/
  Systems Administrator
  CF Webtools
  www.cfwebtools.com
 
  wilg...@trunkful.com
  www.trunkful.com
 
  On Jul 27, 2011, at 11:27 AM, Shannon Rhodes wrote:
 
  
   I was asked today if there's a way to use ColdFusion to basically email
 a
  document to an application rather than users having to save attachments
 to
  their systems and then upload to a CF application from there.
  
   So you'd email a file from, say, Outlook, with an identifying number in
  the subject line, and then automatically upload the attachment and
 otherwise
  run business logic to associate the file to the correct ID in the
  application (authenticating based on user's email address).  It's easy
  enough to use CF to upload a file and run business logic, but I'm stuck
 on
  the idea of how it's going to parse out this information in the first
 place.
   I'm guessing you'd set up an email account to receive such files, then
 run
  a task to periodically comb through this account's inbox and somehow
 read
  the subject lines, from addresses, point to the attachment for upload,
 then
  archive the message.  Anyone done anything like this or have any idea how
  you'd approach it?  Thanks.
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346368
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Dave Watts

 With Git and Mercurial, you can shelve changes. So if you are part
 way through a big change and something important comes in, you can
 tell the source control system to stash the current changes out of the
 way, go back to your version prior to the current changes, make the
 new important changes and commit them, then pull the uncommitted stuff
 you were working on back into your working branch and go on your merry
 way.

But you're still going to have to be able to incorporate the changes
that were made since your last checkout line-by-line, right? For
example, if you check out somefile.cfm and change lines 50-75, then
the important change affects lines 20-30, you're going to have to go
back and diff the files before you can commit the changes you made
before you shelved the file.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346369
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Judah McAuley

On Wed, Jul 27, 2011 at 10:08 AM, Dave Watts dwa...@figleaf.com wrote:

 With Git and Mercurial, you can shelve changes. So if you are part
 way through a big change and something important comes in, you can
 tell the source control system to stash the current changes out of the
 way, go back to your version prior to the current changes, make the
 new important changes and commit them, then pull the uncommitted stuff
 you were working on back into your working branch and go on your merry
 way.

 But you're still going to have to be able to incorporate the changes
 that were made since your last checkout line-by-line, right? For
 example, if you check out somefile.cfm and change lines 50-75, then
 the important change affects lines 20-30, you're going to have to go
 back and diff the files before you can commit the changes you made
 before you shelved the file.

Of course, but if you are going to be changing the same line in each
of the commits you want to put out, you're going to have to do a merge
no matter what, even if you commit line by line.  The way I
interpreted the question is that the poster is looking for an easy way
to stop part way through some changes, switch over to do something
else in the same code area, then come back to finish up and
incorporate the changes they made during the digression.

In Git or Mercurial, I actually wouldn't probably use changeset
shelving either, though it is certainly possible. I'd create a new
branch from the last common point, switch to the new branch, make
changes and push/build/whatever, then merge that branch back to your
main development branch. If the changes were in a different section of
code, even in the same file, Git or Mercurial should be able to do the
merge automatically for you. If you changed the same line in both
change sets, you'll need to resolve the merge conflict with the
merge/diff tool of your choice.

Judah

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346370
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Larry Lyons

If I remember correctly, you can also cherry pick your final commits in git. So 
effectively that's a line by line commit.

 With Git and Mercurial, you can shelve changes. So if you are part
 way through a big change and something important comes in, you can
 tell the source control system to stash the current changes out of 
 the
 way, go back to your version prior to the current changes, make the
 new important changes and commit them, then pull the uncommitted 
 stuff
 you were working on back into your working branch and go on your 
 merry
 way.
 
 Judah
 
 On Wed, Jul 27, 2011 at 9:28 AM, Shannon Rhodes Shannon@rhodesedge.
 com wrote:
 
  Yeah, what Dave said...I'm talking about committing part of a file, 
 not part of a project.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346371
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Russ Michaels

I use Beyonf Compare for stuff like this and I have to say I probably
couldn't live without this tool now, it is s useful.
You can compare files locally, or even an FTP connection and deploy changes
to your live site this way.
you can merge line by line of course.

Seriously, try it out, the trial version never expires either.

http://www.scootersoftware.com/

Russ

On Wed, Jul 27, 2011 at 6:22 PM, Larry Lyons larrycly...@gmail.com wrote:


 If I remember correctly, you can also cherry pick your final commits in
 git. So effectively that's a line by line commit.

  With Git and Mercurial, you can shelve changes. So if you are part
  way through a big change and something important comes in, you can
  tell the source control system to stash the current changes out of
  the
  way, go back to your version prior to the current changes, make the
  new important changes and commit them, then pull the uncommitted
  stuff
  you were working on back into your working branch and go on your
  merry
  way.
 
  Judah
 
  On Wed, Jul 27, 2011 at 9:28 AM, Shannon Rhodes Shannon@rhodesedge.
  com wrote:
  
   Yeah, what Dave said...I'm talking about committing part of a file,
  not part of a project.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346372
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread .jonah

Yes, in Git you can stage individual lines, commit only those and 
you'll have the rest of your changes uncommitted in your workspace.

Like Judah said, you should be working on your new feature or release or 
whatever in its own branch and committing often - even if it's not 
complete or working, since you're committing locally anyway, it's not 
affecting anyone else. (Here's a nice branching model we've adopted: 
http://nvie.com/posts/a-successful-git-branching-model/)

So, to make a quick change, commit your work in progress, checkout the 
hotfix branch, make the change, commit it, push that branch to 
release/production, then re-check out the feature branch you were 
working on.

Git makes this all really easy and you want to do it this way since a 
big part of using version control is to have clear tracking of what 
changes mean what.

.jonah

On 7/27/11 10:22 AM, Larry Lyons wrote:
 If I remember correctly, you can also cherry pick your final commits in git. 
 So effectively that's a line by line commit.

 With Git and Mercurial, you can shelve changes. So if you are part
 way through a big change and something important comes in, you can
 tell the source control system to stash the current changes out of
 the
 way, go back to your version prior to the current changes, make the
 new important changes and commit them, then pull the uncommitted
 stuff
 you were working on back into your working branch and go on your
 merry
 way.

 Judah

 On Wed, Jul 27, 2011 at 9:28 AM, Shannon RhodesShannon@rhodesedge.
 com  wrote:
 Yeah, what Dave said...I'm talking about committing part of a file,
 not part of a project.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346373
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Larry Lyons

Another good diff tool is WinMerge (http://www.winmerge.org) its a free diff 
and merge tool.

I use Beyonf Compare for stuff like this and I have to say I probably
couldn't live without this tool now, it is s useful.
You can compare files locally, or even an FTP connection and deploy changes
to your live site this way.
you can merge line by line of course.

Seriously, try it out, the trial version never expires either.

http://www.scootersoftware.com/

Russ



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346374
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread .jonah

The one I'm liking the most so far is P4merge. It's part of the Perforce 
system, but is free, cross platform, and works great with other SCMs 
like Git.

http://www.perforce.com/product/components/perforce_visual_merge_and_diff_tools
http://www.perforce.com/downloads/complete_list

On 7/27/11 12:04 PM, Larry Lyons wrote:
 Another good diff tool is WinMerge (http://www.winmerge.org) its a free diff 
 and merge tool.

 I use Beyonf Compare for stuff like this and I have to say I probably
 couldn't live without this tool now, it is s useful.
 You can compare files locally, or even an FTP connection and deploy changes
 to your live site this way.
 you can merge line by line of course.

 Seriously, try it out, the trial version never expires either.

 http://www.scootersoftware.com/

 Russ

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346375
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Sean Corfield

On Wed, Jul 27, 2011 at 9:16 AM, Shannon Rhodes shan...@rhodesedge.com wrote:
 I've been charged with choosing versioning software for our team, and I'd 
 like to recommend Subversion but there's a developer who wants a feature that 
 I'm not sure Subversion (or other versioning tools) can accommodate:  partial 
 commits.

As others have noted, Git supports this although, as Dave implied,
picking just a line or two to commit can be nigh on impossible if
you've already got changes in that area uncommitted.

However, Git offers a number of benefits over SVN for the sort of
workflow you're talking about. First off, you can simply stash
uncommitted changes, work on the emergency fix, commit  push that,
then unstash (pop) your changes and the emergency fix will be
auto-merged back in if possible (otherwise manually fix the merge and
drop the stash entry). Second, in Git, branches are very cheap so you
tend to use them for any non-trivial changes. You branch _locally_,
work on your big feature, switching back and forth between your local
branch and the stable branch if needed to fix issues (and then merging
them into your branch - again, a mostly automated task in Git), and
when your done on your feature, commit and merge it back to the stable
branch.

Git also allows offline commits (since the repo is local) which can be
very useful if team members travel a lot. It lets me work on trains
and airplanes easily. When I get to a wifi spot, I just pull updates
and push my commits.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346376
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Its ColdFusion's Fault

2011-07-27 Thread Sean Corfield

On Wed, Jul 27, 2011 at 8:08 AM, Matt Williams mgw...@gmail.com wrote:
 Interesting concept. Seems like somebody could do the same for Java -
 maybe a tag based deal with some cool tie-ins to a database, email,
 searching, web services, dhtml, reports ...

LOL!

I think it's interesting that they chose C++ as their assembler.
There is Caucho which implements PHP on top of the JVM but I don't
know how well it works (I highlighted as part of my Scripting for
ColdFusion project some years back, as a way of embedding PHP
fragments in CFML pages and running them).

On a sort of related note, given that many languages compile to Java
bytecode these days, the Clojure project team (a modern Lisp on the
JVM) has just released ClojureScript which is effectively a version of
Clojure that compiles to JavaScript and can use the Google Closure
Compiler / Library to create very small, highly optimized JS for use
in the browser or on Node.js. You might not have consider JS as
assembler either, unless you follow Scott Hanselman's blog:

http://www.hanselman.com/blog/JavaScriptIsAssemblyLanguageForTheWebSematicMarkupIsDeadCleanVsMachinecodedHTML.aspx
http://www.hanselman.com/blog/JavaScriptIsAssemblyLanguageForTheWebPart2MadnessOrJustInsanity.aspx

The net result is the ability to write all of your web application
code in a dialect of Clojure, on the server and on the client - and
even give yourself the choice of Node.js or the JVM as the backend
platform. There are even libraries for generating both CSS and HTML
from pure Clojure if you feel inclined.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346377
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Committing Line by Line Changes?

2011-07-27 Thread Peter Boughton

As has been said, Git was built knowing that branching is an important task - 
and so creating and using branches is easy, fast, and flexible.

(I used to work on a large project that used SVN, and I had half a dozen 
checked-out copies because I often worked on multiple things and switching 
branches with SVN was so slow.)

I very much recommend the branching strategy Jonah linked to ( 
http://nvie.com/posts/a-successful-git-branching-model/ ), it might seem like 
overkill, but it really does make sense.


I'm also going to repeat a couple of things that have already been said, 
because I think it's beneficial to say them in a different way. :)


Git allows you to move all uncommitted changes to a temporary branch, and to 
retrieve again later, using git stash command.
Also, if you want to, you can convert stashes into real branches (with a single 
command).

See http://www.kernel.org/pub/software/scm/git/docs/git-stash.html for info.


Git allows changes to be staged in parts with git add --patch filename - 
this will step you through a list of changes in that file, and allows you to 
indicate if each change should be staged or not, as well as splitting each one 
into smaller changes.

I do this all the time, when I've got multiple unrelated changed that each 
deserve independent commit messages.
Once you understand what's happening, it's not hard to handle. (Unless the 
changes are not unrelated, but that's a different problem.)

Details at http://kernel.org/pub/software/scm/git/docs/git-add.html


Also worth pointing out, aside from those man pages, there's a number of good 
documentation sources for git:

http://www.kernel.org/pub/software/scm/git/docs/user-manual.html
http://progit.org/book (also available as a physical book)
http://book.git-scm.com 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346378
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: reading AIF metadata?

2011-07-27 Thread Leigh

Steve - A guy on stackoverflow also mentioned this .net library which can read 
ID3 info from AIFF files (in version 2.0.3.4+ )

http://download.banshee.fm/taglib-sharp/


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346379
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm