Saturday, July 31, 2010

Canon Digital Photo Professional Download - Install

I just recently took some photos with my 5DMII and created my first Lightroom 3 catalog.  As always the color profile for canon photos are just an approximation so the colors and everything is always off within lightroom.  Being disappointed I wanted to see how Canon Digital Photo Professional will render the images.  I tried to see if I had the software but unfortunately I couldn't find the CD.  I Googled around for the software but it doesn't exist.

For some reason Canon's software distribution policy only provide the full version of each software from the CD and updates are available online.  When installing the updater it will require to have the software listed like below:



There is a way to work around this issue since the updater contains the FULL software itself.  You can fool the install by updating your registry.  This registry update is a minimal risk.  Here are the task.

For 32Bit Windows (XP, Vista, and 7) - Copy the following exactly below:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Canon\EOS Utility]
[HKEY_LOCAL_MACHINE\SOFTWARE\Canon\DPP]
[HKEY_LOCAL_MACHINE\SOFTWARE\Canon\ZoomBrowser EX]
[HKEY_LOCAL_MACHINE\SOFTWARE\Canon\PhotoStitch
[HKEY_LOCAL_MACHINE\SOFTWARE\Canon\EOS Capture]
[HKEY_LOCAL_MACHINE\SOFTWARE\Canon\EOSViewerUtility]

For 64Bit Windows (Vista, and 7) - Copy the following exactly below:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\EOS Utility]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\DPP]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\ZoomBrowser EX]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\PhotoStitch
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\EOS Capture]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\EOSViewerUtility]

Copy and paste into NotePad.  Save the file as canonupdate.txt and then rename it to canonupdate.reg.  Then right click and select "Merge" on the context menu.



You'll probably get the following messages:



Success!!



This is what your registry should look like for 32Bit Windows:



This is what your registry should look like for 64Bit Windows:



Now when you run the updater you should get the install screen like below:



The source of where this information is at the following.  I've made my own updates to the instructions because it's not too clear on the website and provided my own version of the possible solution.

http://www.northlight-images.co.uk/article_pages/install_canon_software.html

If you run into any questions please email me and I will try to help but I hope the instructions here are complete and will work well for everyone.

Wednesday, July 28, 2010

iPhone - Cannot Connect to YouTube

For some reason I ran into this issue and I've spent the past couple of days trying to fix it. There are a couple of solutions and they all seem complicated and hopefully can I can help some ppl out. I know I'm a late technology adapter as I'm still using the original iPhone when the iPhone 4 has been out for a month now.  I"m a bit behind the times I supposes.  Running version 3.0 OS.

Please use the instructions I have below. The fix involves installing PushFix from Cydia.

Installing PushFix v1.0 - Steps
1. Load Cydia
2. On the main Cydia screen select "More Package Sources"
3. Select iPhoneModding
4. Select Install and Confirm
5. Go back to Cydia
6. Select the bottom Manage tab
7. Select Sources
8. Look for and select iPhoneModding
9. Look for and select Push Fix
10. Install Push Fix

One caveat that I've ran into for PushFix 1.0 that I believe is a scam is that this fix has one certificate for all users. For that reason I was receiving push notifications from other users on my FaceBook account even though I have all notifications turned off.

There are two solutions to the above, buy (~$4.99) and upgrade to PushFix 2.0 which creates a unique certificate for everyone (hence why I called it a scam).

The other option is try the following, which will require some work to remedy this situation.  You'll need to install OpenSSH, ToggleSSH, and MobileTerminal from Cydia.  You can use the search option to complete this task.

For the rest of the steps try the following PDF. Some of the steps might be repetitive but it should help resolve some of the issues.

http://www.vanravels.com/blockedyoutube/blocked%20youtube%20on%20%20iphone.pdf

or find it here below:

blocked youtube on iphone

I would like to give credit is due that is why I'm providing a link. Two notes though, the tutorial forgot to mentioned to install OpenSSH and ToggleSSH to allow WinSCP to connect with the iPhone. That was what was causing most of my problems. The default password is 'alpine' without quotes so it should work.

Sunday, May 30, 2010

Maui Fig



I may look exotic, maybe even a little scary but my scrumptious-ness might change your mind.  I was stolen from someone's yard.  Yeah I was just hanging around like I always do since I was developing on my parent's branch.  I grew vigorously and ripen, however just before I was going to drop to the ground and pecked to death by birds, I was stolen.  I guess I was saved in some way but in the end I was eaten and enjoyed in some sort of way.  What a life!

Monday, May 24, 2010

I'm still an ugly duck

I think my parents lied to me when they said I shall become a beautiful swan when I get older, even though I'm an ugly duckling now .  My sores and hideous facial features grew larger and changed to a rather attractive red.   Now that I'm older I'm over my physical attributes and more focusing on when and where my next meal will come from.  Have any extra rice, grain, corn, and feed to share?

Tuesday, May 18, 2010

On top

Like the previous post, if you can't get above the clouds in the plane, why not drive up and see the clouds at their level.  Hell it'll make a great view looking down at the valley below.  Not too many places on the US east coast that would allow you to travel up a mountain or a volcano for that matter like Haleakala in Maui.  It was a fun drive getting to the top and seeing everything below makes it look like we're flying above the clouds.  The family in the picture had the right idea, picnicking with a fantastic view.

Wednesday, May 12, 2010

In the sky, above the clouds



The amazing thing about flying when it's not a long flight and you actually have a view from the plane is the cloud formation.  When the clouds are all at the same elevation the formation soars up with multitude of variations and randomness.  It's so much better viewing the clouds while you're either just above them or in them, it changes your entire perspective.  Makes everyone wish that you could fly and hover in the clouds and absorb your surroundings.

Tuesday, May 11, 2010

Single Image Fade In - Fade Out

If  anyone has visited the Boston Globe website and seen their "The Big Picture" page you would be awe struck by the amazing photographs.  I always go there to see the amazing photos around the world and just makes me feel humble and pathetic about my photography skills.  I guess it gives me something to strive for.  For now I know that my photography knowledge might not be as skillful but at least I know how to extract code that I believe is quite effectively used.

If you visit the Earth Hour 2010 page from Boston Globe they have a great way of transitioning images from dark into light.  Great setup and I thought it was skillfully executed.  From a developer point of view I wanted to see the JavaScript involved in fading one image into the next that seems to work across IE and Firefox without any glitches so I started to dissect the code and here is what I found.

The main JavaScript use for fading is very small and simple:
<script>

var isFading = 0;

function setOpacity(obj, opacity){opacity = (opacity == 100)?99.999:opacity;obj.style.filter = "alpha(opacity:"+opacity+")";obj.style.KHTMLOpacity = opacity/100;obj.style.MozOpacity = opacity/100;obj.style.opacity = opacity/100;};

function fadIn(objId,opacity,sc){if(((sc==1)&&(isFading == 0))||(sc==0)){isFading = 1;if (document.getElementById) {obj = document.getElementById(objId);if (opacity >= 0){setOpacity(obj, opacity);opacity -= 10;window.setTimeout("fadIn('"+objId+"',"+opacity+",0)", 100)}else{obj.style.display="none";isFading = 0}}}};

function fadOut(objId,opacity,sc){if(((sc==1)&&(isFading == 0))||(sc==0)){isFading = 1;if (document.getElementById){obj = document.getElementById(objId);obj.style.display="";if (opacity <= 100){setOpacity(obj, opacity);opacity += 10;window.setTimeout("fadOut('"+objId+"',"+opacity+",0)", 100)}else{isFading = 0}}}}

</script>

I honestly don't care too much about understanding the code other than just knowing that it works. The next part was just calling the fadIn or fadOut functions.
<a href="#" onclick="this.blur();fadOut('imgA',0,1);return false">
<img src="img_off.jpg" style="height:658px;width:990px;border:0px;" /></a>
<br/>
<div style="margin-top:-658px;height:658px;width:990px;position:relative;" id="imgA">
<!-- the initial picture to display -->
<a target="_new" href="img_off.jpg" onclick="this.blur();fadIn('imgA',100,1);return false">
<img src="img_on.jpg" style="height:658px;width:990px;border:0px;" /></a>
</div>

Well after looking at how the fadIn and FadOut functions are called I saw what the trick or illusion is.  If you look at the div style attribute you will see the -658px value and that is where the trick lies.  Initially I thought the JS script was going to retrieve the next image and fade it in but this is even better, there won't be any delay of waiting for an image to download it would just work.

Here is how it works just to make it clear, HTML is rendered sequentially and the first image that is rendered is img_off.jpg and img_on is rendered right underneath.  Since the div has the top-margin style attribute of -658px (the height of the image)  for img_on.jpg it will overlay img_off.jpg.  In-essences they are stacked on top of one another.  The JavaScript is only changing the opacity to fade out one image and revealing the other.  I hope all that made sense if you even wanted to understand what's going on.  For the lazy people like me.   Here is the complete code that you can simply use to test it out.
<div>

<a href="#" onclick="this.blur();fadOut('imgA',0,1);return false">
<img src="img_off.jpg" style="height:658px;width:990px;border:0px;" /></a>
<br/>

<div style="margin-top:-658px;height:658px;width:990px;position:relative;" id="imgA">
<!-- the initial picture to display -->
<a target="_new" href="img_off.jpg" onclick="this.blur();fadIn('imgA',100,1);return false">
<img src="img_on.jpg" style="height:658px;width:990px;border:0px;" /></a>
</div>

<script>
var isFading = 0;

function setOpacity(obj, opacity){opacity = (opacity == 100)?99.999:opacity;obj.style.filter = "alpha(opacity:"+opacity+")";obj.style.KHTMLOpacity = opacity/100;obj.style.MozOpacity = opacity/100;obj.style.opacity = opacity/100;};

function fadIn(objId,opacity,sc){if(((sc==1)&&(isFading == 0))||(sc==0)){isFading = 1;if (document.getElementById) {obj = document.getElementById(objId);if (opacity >= 0){setOpacity(obj, opacity);opacity -= 10;window.setTimeout("fadIn('"+objId+"',"+opacity+",0)", 100)}else{obj.style.display="none";isFading = 0}}}};

function fadOut(objId,opacity,sc){if(((sc==1)&&(isFading == 0))||(sc==0)){isFading = 1;if (document.getElementById){obj = document.getElementById(objId);obj.style.display="";if (opacity <= 100){setOpacity(obj, opacity);opacity += 10;window.setTimeout("fadOut('"+objId+"',"+opacity+",0)", 100)}else{isFading = 0}}}}

</script>

</div>

**Note: The important thing is to set the correct height and width for your images so that they will overlay/stack on top of one another properly.  To ensure a seamless fade I had to adjust the "top-margin" value.  You'll have to play with the value until you think it looks correct.  A sample of this can be found on my photography blog.

Thursday, May 6, 2010

Molokai From Maui



Everyday is a nice day on this island.  The beautiful blue skies, blue water, and everything is so crisp and clear.  It makes a great vacation place that would make me want to go back to all the time.  For now I will only have the memories of my photos and the longing of returning.

Tuesday, April 13, 2010

Yummy Cinnabun

[caption id="attachment_93" align="aligncenter" width="610" caption="Looks good ha?"][/caption]




[caption id="attachment_94" align="aligncenter" width="610" caption="A whole tray of it"][/caption]

Sunday, April 11, 2010

Cherry Blossoms 2

[caption id="attachment_86" align="aligncenter" width="610" caption="Cherry Blossom"][/caption]

Info: Canon 5D Mark II - 1/400 at f5.0, ISO 400, EF 50mm f1.4

Friday, April 9, 2010

Snow Crocus 3

[caption id="attachment_68" align="aligncenter" width="610" caption="Snow Crocus"][/caption]

Info: Canon 5D Mark II - 1/640 at f2.8, ISO 100, EF 50mm f1.4


Wednesday, April 7, 2010

Cherry Blossoms

[caption id="attachment_80" align="aligncenter" width="610" caption="Cherry Blossom"][/caption]

Info: Canon 5D Mark II - 1/400 at f5.0, ISO 400, EF 50mm f1.4, with extension tube.

Tuesday, April 6, 2010

Snow Crocus 2

[caption id="attachment_70" align="aligncenter" width="610" caption="Snow Crocus"][/caption]

Info: Canon 5D Mark II - 1/640 at f2.8, ISO 100, EF 50mm f1.4


Sunday, April 4, 2010

Snow Crocus

[caption id="attachment_69" align="aligncenter" width="410" caption="Snow Crocus"][/caption]

Info: Canon 5D Mark II - 1/640 at f2.8, ISO 100, EF 50mm f1.4

Friday, April 2, 2010

Photoshop - Content Aware

There has been alot of hype lately with so much talk about the new Photoshop 5 content aware fill features.  See below:



I've seen this concept before and I thought it was amazing and brought me back to my Computer Science background. It made me wonder how they would visualize the image to be able to understand the content around it to make the fill. This this video showed up on a site that made it clearer:



It discusses Seam carving or Content-Aware Image Resizing (CAIR) at a technical level and more importantly the features of which I've been trying to do with some of my photographs. All of this new revelation blew my mind. I think what made it even more amazing was after looking it up on wikipedia, Photoshop has acquired this technology and it some of it's feature currently exist in Photoshop 4!!!!

Now if you do a some googling around you'll find sites like this Digital Photography School which provides a pretty good tutorial of how to do.  I think this is going to keep me busy for a while!

This is the video that blew my mind when it first came out. This was before the sneak peek from Photoshop 5.

Wednesday, March 24, 2010

Spring is Coming

[caption id="attachment_56" align="aligncenter" width="610" caption="Early Cherry Blossoms"][/caption]

Info: Info: Canon 5D Mark II - 1/3200 at f2.8, ISO 100, EF 50mm f1.4, with Lightroom adjustment exposure +1.4.

Similar to the previous photo with the same exposure issue but with the help of lightroom the problem was easily corrected.  Curiously enough this was taken at a garden center nearby and with the few plants that they had this cherry blossom bloomed way before the daffodils and any other plant that was within the center.

Monday, March 22, 2010

Early Spring

[caption id="attachment_52" align="aligncenter" width="410" caption="Early Cherry Blossoms"][/caption]

Info: Canon 5D Mark II - 1/3200 at f2.8, ISO 100, EF 50mm f1.4, with Lightroom adjustment exposure +1.


I spent much of my weekend driving around the area to enjoy the beautiful weather and checking out what spring has in store for me.  With the above image, I was wearing my shades and the sun light was much brighter than I was used to hence my exposure was one stop darker.  I took many more spring photos that I will post one at time as the weather gets warmer and warmer.

Thursday, March 18, 2010

Winter 2009 Snow

[caption id="attachment_44" align="aligncenter" width="610" caption="winter 2009 snow"][/caption]


I took this photo during the first snow storm in Dec 2009.  I was walking down braddock road and was just amazed at how everything have been covered in snow.  I wasn't able to catch much of what I saw but this is a relatively close approximation of it.

Info: Canon 5D Mark II. 1/200 sec at f8.0 ISO 100, 24mm (EF24-70mm)

Monday, March 15, 2010

Displaying HTML Source Code in Blog Post

From the previous post I had a hard time displaying the HTML code that I was using.  Of course initially I thought I could easily just do a plug and code but I made two mistakes.

First mistake was that it would be easier if I plug the code into the WordPress text editor and it would convert the code for me and not interpret the code.  The other is that display was ugly.

To resolve this situation use the following HTML tags:
<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks
</pre>


<code>
This will not preserve spacing or formatting and display text as is.
</code>


W3School is great for all of this HTML code and CSS reference.

If you're not using WordPress and just want to display HTML code without it being interpreted you will need something to recode those special characters and symbols. I found this neat site that will convert it for you.

Lazy Load for Images

For those of you who have gone to through some photo blogs and wondered how they got the images to load as you scroll.  At first I thought it was some ajax event where it would fetch the photo as you scroll but it's even easier than that.  Lazy Load event with the use of JQuery plug-in.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>

<script src="/javascripts/jquery.lazyload.js" type="text/javascript"></script>

<script type="text/javascript" charset="utf-8">

$(function() {

$("img").lazyload({placeholder : "/img/grey.gif"});

});

</script>

Here is what you need to do step by step with the help of WordPress or text editor.

  1. In WordPress to go Appearance, and click on the Editor link

  2. On the theme file listing on the right of screen select Header (header.php)

  3. Copy the above code and paste it into the header file within the <header> </header> tag, e.g. paste it below the <link rel="stylesheet" src="..." /> tag is what I did for mine.

  4. Download the JQuery.Lazyload.js file from here or here. Upload it to your website.

  5. Change the src of where your JQuery.Lazyload.js is located above. this is what mine looks like
    <script src="http://blog.tnguyen.com/wp-content/plugins/jquery-image-lazy-loading/javascripts/jquery.lazyload.js" type="text/javascript"></script>


  6. That should be it when you are done this is what it should look like in your header.php file
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>

    <script src="http://blog.tnguyen.com/wp-content/plugins/jquery-image-lazy-loading/javascripts/jquery.lazyload.js" type="text/javascript"></script>

    <script type="text/javascript" charset="utf-8">

    $(function() {

    $("img").lazyload({placeholder : "http://blog.tnguyen.com/wp-content/plugins/jquery-image-lazy-loading/img/grey.gif"});

    });

    </script>
    </head>


  7. Hit the "Update File" button and check out your website to see if Lazy Load is not working

  8. If nothing works comment below.


The reason why I'm blogging about this is that it took me a few days to figure this out.  With so many people using this lazy load method very few website showed how to get it work properly.  I had a WordPress Plug-in that does this but it did not work for me.  There were so many reasons but I surmise it had something to do with the JQuery file itself.  This is one method that I've found to work for me.

To give credit where credit is due the main source of all of this came from Mika Tuupola.

Saturday, March 13, 2010

Wordpress Aligncenter

I've been trying to update my other blog  - Through the Eye Piece - and for a while I've been running into issues aligning my images to center them.  I was using an old theme that I've tweaked to layout the way I wanted but with so many CSS changes I never got around to fixing my image alignment until now.  With the help of Firefox plugin called Firebug, I was able to track down the align class that wordpress assigned to the image and then checked my CSS to see if it's there.  Firebug with it's grace and awesome functionality showed me that I had no aligncenter CSS associated with this image.  I googled search and found the following CSS post on Wordpress Codex that resolved the problem.  Since this was an old wordpress theme some CSS was missing but luckily it was an easy fix.  It also incidentally resolved another quirk I was running into, the caption for the images was not showing up.

To make it easier for everyone you can just past the following into your stylesheet and it should resolve your alignment issue along with your caption issue too.
.aligncenter,
div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}

.alignleft {
float: left;
}

.alignright {
float: right;
}

.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
/* optional rounded corners for browsers that support it */
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}

.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}

.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
padding: 0 4px 5px;
margin: 0;
}

Now the next problem to battle, lazy load my long image posts.

Friday, March 12, 2010

Hello world!

It's good to be back online again!!!

It's been a couple of years since I've last blog anything about my daily life but I will continue it once more.  However, before I begin this will be unlike my previous blog where I will rant about nonsense, I would like this blog to be more purposeful, so that it can be considered a resource for things that I'm interested in.  If I learn something new that I think would be of interest I will share it with everyone.  I'll try to be as detailed as possible and make it as easy to understand.  Another thing that I shall try to do is blog more often and share some of the my photos.

That's it for today!