Get updates and news:
Want to get Lullabot article, videocast, and podcast announcements delivered right to your in-box? Let us know your email address (we won't share it) and we'll let you know when anything exciting happens.

Subscribe to our weekly audio podcast, our periodic videocasts, or both. Just choose your favorite podcast-listening application or service and click away!


Install Cygwin on Windows XP

Windows XP doesn't come with native tools for working with some common development tasks such as creating and applying patches. In the *nix world the tools diff and patch are standard in a dev toolbox. Cygwin will give Windows users a Linux-like command line and the ability to install a number of common Linux tools. This video will show you how to install the Cygwin base as well as diff, patch and CVS, which is the version control system that drupal.org uses for all of the core and contributed code.

The advantage to using the command line tools is that many online references for these tasks, including the drupal.org handbook, tend to use this rather than GUI instructions because they can depend on the command line being the same across systems, while various GUI tools will have many different ways to accomplish the same thing. Command line may seem scary to those that haven't used it but it really is as easy as typing in some words and watching magic happen.

Comments

Thanks!

Thanks, this is great! I hate using 'doze but have to use it at the moment to check out browser compatibility stuff - this makes my life sooo much easier!

How do you stream the video podcast?

I have a question about how you are streaming the podcast? I noticed that it started playing before the entire file "downloaded". Would you mind telling me what Drupal module does this?

Thanks also for another great podcast.

Rich

Video module

We are using the video module.

other options in windows

I like Bitvise Tunnelier for my ssh and all secure tunneling needs and Beyond Compare from Scooter Software for remote file compare via ftp (can produce diffs for patches in Windows, but does a smashing job at file comparison).

quicktime file

I somehow killed my Quicktime plugin. Although I have reinstalled, Firefox and IE7 both crash when trying to view the clip. I would really like to view this clip. Is there any other way to get a copy of this clip? Or perhaps can someone there blast me a copy view email? I would be utterly grateful. :)

Thank you

Thanks

Thanks for a great vidcast. Love your new site design. Keep up the good work. What tools do you use to produce the vidcast?

Prince Edward Island
Canada

On a Mac

I'm on a Mac so I am using iShowU for video capture and then iMovie to edit. I always record just the video first, clean it up and then lay the audio down using iMovie. I do some tricky behind the scenes shuffling of source files to get the capture into iMovie without losing quality due to import compression. I'm planning to do a video about how I make videos soon.

Video on how to make Videos

Hi,

Great video!

When could we expect this video?

We have a requirement coming up shortly that needs knowledge and expertise of how to capture screens, edit the movie, superimpose audio, sync'ing the audio, etc.

Please do let us know...

TIA

Thanks a million!!!

Thanks for this great video. It made my installation of Cygwin a lot smoother than it would have been with out it.

But having said that, would you go over some of the common commands, and how to use them, or maybe a seperate videocast on .patch files?
I've been trying to patch my installation to fix the problem with TinyMCE with regards to GZip and have never been able to patch those files properly.
Maybe what exactly a .patch file contains, where it should be located and how to run the patch command from Cygwin.. :)

A run down of that would be AWESOME.!!
Keep up the great work..

Applying patch video

Hi Puraz,

I do have a basic video showing how to apply a patch on d.o in the videocasts section. It specifically shows applying a patch to core but the same basic steps would be used for a contributed module as well. Unlike core patches, most contributed patches are made from within the module's directory so you should place the patch file in the same directory as the rest of the module files.

I'll use an example of having the TinyMCE module installed in my sites/all/modules folder.

  1. Place the .patch file in sites/all/modules/tinymce.
  2. At the command line in Cygwin go to that directory:
    cd /my/path/to/drupalroot/sites/all/modules/tinymce
  3. Execute the patch command (note no -p is needed from here, as would be if doing a patch from Drupal's root folder.):
    patch < mypatchfile.patch

That should do the trick if the patch is good.

Thank you for replying back..

Wow, Thank you Addi for writing back. You guys are awesome, I wasn't expecting a response...thus my delay in writing back :)

I tried your suggestion, and it didn't work. I kept getting and error saying:

$ patch < compressor_2.patch
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Index: INSTALL.txt
|===================================================================
|--- INSTALL.txt (revision 6666)
|+++ INSTALL.txt (working copy)
--------------------------
File to patch:

After that it waited for the prompt, and I have no idea what should go there.
I've looked inside the .patch file to try and see what it means, so that I can maunally patch the files, but I don't quite understand the 'language'.
Any other tips/trick I could try to get this to work?
I've tried 2 patches for TinyMCE, the compressor as well as the spellchecker, and for both I get the same error.

Thanks again.

Old patch

I was looking at the thread where that patch came from and it is from back in the spring and was added to the module in April. The latest version of TinyMCE (5.x-1.9) has the patch code already in it so I don't think you need to use this patch. If you are using an older version of TinyMCE you should update to the latest released version.

That said, to continue with the error that you got, it appears that the patch file and command was not run from inside the TinyMCE folder. You need to have the patch in the tinymce module folder like this:

tinymce (this is the module folder)
- plugins folder
- po folder
- INSTALL.txt
- LICENSE.txt
- plugin_reg.php
- README.TXT
- tinymce.info
- tinymce.install
- tinymce.module
- compressor_2.patch

And run the patch command from there. When I do that, it does try to apply the patch but as I said, it doesn't work and spits different errors since the code is already there and the patch is therefor useless.

Thanks really helped

Thanks so much, this really helped my with patching.

xxxxxxxxxxxxxxxx

xxxxxxxxxxxxxxxx

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h2> <h3>
  • Lines and paragraphs break automatically.
  • Use <!--pagebreak--> to create page breaks.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options