Archive for December, 2008

Subversion: Useful SVN Commands

Friday, December 26th, 2008

Checkout

svn checkout url [outputfolder]
svn co url [outputfolder]

Update
Update specific files

svn update [filename1] [filename2] … [filenameN]

Update from current directory

svn update

Commit

svn commit – m “message” [filename]

Add

svn add [filename]
svn commit -m “message” [filename]
Related Links

Subversion: Create Repository

Thursday, December 25th, 2008

Create the repository on the server side.

$ cd /path/svnreposroot
$ svnadmin create repos

Linux: RPM query installed packages

Thursday, December 25th, 2008

Query all installed packages:

rpm -qa

Query one package:

rpm -q subversion

Linux: Using Yum

Thursday, December 25th, 2008

List (all subversion related packages)

$ yum list | grep subversion

Search

$ yum search subversion

Install

$ yum install subversion

Info about a package

$ yum info subversion

Yum repos directory

$ cd /etc/yum.repost.d

Source Control System – SVN (subversion), Git, Mercurial

Thursday, December 25th, 2008

Subversion (centralized source repository):

Git (distributed):

Mercurial (distributed):

Java: Get Element Type From A Typed Array

Sunday, December 21st, 2008
  System.out.println("" +  Long[].class.getComponentType() == Long.class);
  //will print "true"

Video: Workaround for Adobe Premiere CS4 ImporterProcessClient.cpp Starting Error

Saturday, December 20th, 2008

If you have done a live Vista update lately you might get the following error when starting your Adobe Premiere CS4 application:

“Premiere Pro has encountered an error.
[....SrcImporterProcessClient.cpp-127]”
with one button “continue”.

Once you press the “continue” button nothing happen (and the Adobe Crash Report shows up).

Adobe will probably (and hopefully) solve this problem, but in the meantime here are 2 workarounds:

  1. Start Adobe Premiere Pro as Administrator (right click on the .exe file and select “Run as administrator“.
  2. Or Turn Off User Account Control

Hope this help.

I think the problem is that Adobe Premiere Pro CS4 does not support very well the Vista User Control Account system. I usually have it turned off, but my last Vista update turn it back on automatically.

Here is the forum link for this issue: I get an error when I open Premiere Pro (CS4)

Here is my crash report.

jQuery: draggable / droppable – Cancel the revert effect on drop

Friday, December 19th, 2008

If you want to have the “revert” effect only on some condition when performing the drop, here is how to do it:
This example is based on http://docs.jquery.com/UI/Droppable

$(".block").draggable({
    helper: 'clone',
    revert: true
});

$(".drop").droppable({
  accept: ".block",
  drop: function(ev, ui) {
    //... logic to accept the drop ...
    var dropOk = true; //harcoded for simplicity
    if (dropOk){
      //to cancel the revert effect, just remove the helper
      ui.helper.fadeOut();
      //... any logic ...
   }else{
     alert("dropped failed");
     //revert effect will be executed (as planned)
   }
}
});
2009-05-05: Actually, should use the revert=’invalid’ to accomplish the same effect. This method is still interesting to have more control on the ui helper.

web2.0: Craigslist API – Getting RSS for a specific query

Thursday, December 18th, 2008

Just found out that if you add “&format=rss” to any Craigslist URL, you get the RSS format.

This was probably a known API, but somehow it took me some time to find it out (clicking on the URL bar RSS Icon does not always give the RSS content of the current query)

Example:

Web page: http://sfbay.craigslist.org/search/sss?query=prius

RSS page: http://sfbay.craigslist.org/search/sss?query=prius&format=rss

Who said craigslist was a closed service!

Video: Adobe CS4 Premiere AVCHD Playback Trick

Sunday, December 7th, 2008

Adobe CS4 Premiere is not very well optimized for AVCHD editing/playback. Adobe points at the format, and users tend to point at Adobe. Personally, I think that the software is a little heavy, but I think that Adobe could make an effort to optimize it (other AVCHD players, such as the ImageMixer coming with the Canon HF11, are playing the .m2ts or .mts files just fine). See Adobe Forum on the AVCHD Playback.

However, I did find an [obvious] trick (on Windows) that makes the experience much better.

Just upgrade the priority for the process “ImporterProcessServer.exe” from “normal” to “high” in the Windows Task Manager. Simple, but it does make a nice difference (at least for me).

I still hope that Adobe will optimize their AVCHD playback/editing in a future CS4 update (it would show that they are listening).