Access Image Rotate Arbitrary Value

Hi scripters,
I just want to get the value of current document's Arbitrary value,
In the Menubar
Image>Rotate Canvas>Arbitrary
how can i do this via javascript indesign CS2
can any one tell me how can i get?
Thanks in advance
regards
a r u l

Thanks for all your attention.
The runtime error is rather strange:
>
javax.servlet.ServletException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'actions.DataManagementBean'.. class actions.DataManagementBean : java.lang.NullPointerException
The DataManagementBean is the class that accesses the property "dataTransferType" in the DataFile class. And the initial value of the "dataTransferType" is defined in the faces-config.xml file.
If I arbitrarily introduced a String value in the DataManagementBean:
String defaultSelectedDataTransferType = "importFile"and in the DataManagementBean's constructor, I use this statement:
this.recordItems = this.getRecordsList( defaultSelectedDataTransferType );Things worked as I had expected without problem. But, I think this is not an elegant way of coding it. Because there is a pre-defined value of dataTransferType in the faces-config.xml file, I should access it from there.
But, when I specify:
this.recordItems = this.getRecordsList( datafile.getDataTransferType() );The DataManagementBean cannot even be instantiated!
In my faces-config.xml file, I have:
<managed-bean>
  <managed-bean-name>dataManagementBean</managed-bean-name>
  <managed-bean-class>actions.DataManagementBean</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
  <managed-property>
   <property-name>datafile</property-name>
   <property-class>propertyBeans.DataFile</property-class>
   <value>#{dataFile}</value>
  </managed-property>
</managed-bean>
<managed-bean>
  <managed-bean-name>dataFile</managed-bean-name>
  <managed-bean-class>propertyBeans.DataFile</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
  <managed-property>
   <property-name>dataTransferType</property-name>
   <property-class>java.lang.String</property-class>
   <value>importFile</value>
  </managed-property>
</managed-bean>
......

Similar Messages

  • Help please: Action for arbitrary image rotation: 300 different files, each at a different angle

    Hi everyone,
    I have some 300 images, all handheld shots done in an on-location studio set. They all need varying amounts of image rotation since they're handheld. There's a beaded curtain in the background, so manually I use the ruler tool, draw a line along a strand of beads, and then image/rotate/arbitrary.
    I need to create an action that will (1) do the arbitrary rotation and then (2) save and close the file.
    However, when I record this, the value of the rotation of the sample file I'm working is what gets recorded (not surprising). In other words, if image A needs 0.28 degrees of rotation, that's not what I want for image B which might need -0.15 degrees instead.  The action recorded 0.28.
    Is there a way to create an action that will simply rotate according to the ruler once I've drawn it?
    Thanks!
    Jerry

    True - and I am a keyboard shortcut dude.  But got it working (I was impressed that using the mouse to unclick the last step in the history worked...), and things are doing what I needed.
    And I'm hoping that my suggestion of the last-step undo will make CS5 on par with CS6 in this one small aspect, and perhaps help someone else...
    Many thanks to you!!! 
    BTW - all in the FWIW - you can see what our work as photographers looks like here:
    http://www.jerryandloisphotography.com.
    If you are at all into music/rock 'n roll, you'll probably have fun on our music/stage gallery.  Groups like YES, Heart, Thomas Dolby, etc. use a bit of our work - just a bit of fun...
    Again - thanks and best wishes,
    Jerry

  • How to set canvas extension color for arbitrary image rotation?

    I'm using Photoshop CS4 v 11.0 with Windows XP.  When adjusting canvas size there's a menu for chosing the canvas extension color.  Where is the menu for chosing canvas extension color for arbitrary image rotation?
    Thanks.

    This will be the background colour selected in your toolbox.

  • Image rotation working in template, but nowhere else

    Hi,
    I'm relatively new to Dreamweaver.
    I have a page with some rotating images, created following a Communitymx recommendation (http://www.communitymx.com/content/article.cfm?cid=651FF).
    The website template (http://www.johnaverill.com/templates/main_template.dwt) seems to rotate images perfectly; however, image rotation on index.html and the others will not work.
    Any help or recommendations would be greatly appreciated.  Thanks, Paul

    osgood_
    ah, you are correct.  sorry, I didn't catch that I was i am just posting the same old apparent bad code (index.html).
    I did create index_2.html and rename it to index.html per your instructions of Mar 5 (i've actually done it twice now). Pictures not rotating with the index_2 or the new index.html either.  
    Also noticed recreating the index continues to get me the extra:
    function randomImages(){
    if(counter == (imgs.length)){
    counter = 0;
    the template seems to be putting this in there new index for some reason.
    New index here:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main_template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>John Averill - Welcome</title>
    <!-- InstanceEndEditable -->
    <style type="text/css">
    <!--
    body {
    background: #000;
    margin: 0;
    padding: 0;
    color: #000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 100%;
    font-weight: normal;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
    padding: 0;
    margin: 0;
    h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;  /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
    padding-right: 15px;
    padding-left: 15px;
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
    border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
    color: #000;
    text-decoration: none; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
    color: #000;
    text-decoration: none;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
    text-decoration: underline;
    /* ~~ this fixed width container surrounds the other divs ~~ */
    .container {
    width: 960px;
    background: #FFF;
    margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
    /* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
    .header {
    background: #000;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
    font-size: 100%;
    /* ~~ The footer ~~ */
    .footer {
    padding: 10px 0;
    background: #FFF;
    margin: 20px;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    #maincontent {
    width:915px;
    height:auto;
    z-index:1;
    left: 114px;
    top: 351px;
    margin: 20px auto 0px;
    .container .footer table tr td h6 {
    color: #FFF;
    </style>
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    /* pw - removed old code
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    // Comma separated list of images to rotate
    var imgs = new
    Array('_images/1.jpg','_images/2.jpg','_images/3.jpg','_images/4.jpg');
    // delay in milliseconds between image swaps 1000 = 1 second
    var delay = 3000;
    var counter = 0;
    function preloadImgs(){
       for(var i=0;i<imgs.length;i++){
         MM_preloadImages(imgs[i]);
    function randomImages(){
       if(counter == (imgs.length)){
         counter = 0;
       MM_swapImage('rotator', '', imgs[counter++]imgs[i]);
    function randomImages(){
       if(counter == (imgs.length)){
         counter = 0;
       MM_swapImage('rotator', '', imgs[counter++]);
       setTimeout('randomImages()', delay);
    </script>
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    <body onload="preloadImgs();randomImages();">
    <div class="container">
      <div class="header">
        <div align="center"><!-- InstanceBeginEditable name="header_image" -->
    <img src="_images/1.jpg" name="rotator" width="960" height="300" id="rotator" /><!-- InstanceEndEditable -->
          <ul id="MenuBar1" class="MenuBarHorizontal">
            <li><a href="index.html">Home</a></li>
            <li><a href="about.html">About</a></li>
    <li><a href="partners.html">Our Underwriters</a></li>
      <li><a href="claims.html">Claims</a></li>
    <li><a href="markets.html">Industry Focus</a></li>
      <li><a href="assignments.html">Assignments</a></li>
      <li><a href="_clienttestimonials/testimonials.html">Client Testimonials</a></li>
      <li><a href="resources.html">Resources</a></li>
          </ul>
        </div>
        <!-- end .header -->
      </div>
      <div class="content">
    <h1> </h1>
    <!-- InstanceBeginEditable name="main_content" -->
    <div id="maincontent">
      <p><img src="_images/john_averill_bw.jpg" alt="" width="98" height="122" align="right" /></p>
      <p> </p>
      <h1><img src="_images/johncaverill.jpg" alt="" width="313" height="80" id="Image3" /></h1>
      <h3>Insurance  and Risk Management for Aircraft/Aerospace and Defense Companies</h3>
      <p align="justify">Welcome, this is an online bio for John C. Averill.  This site also has a description of my capabilities, services offered and successes</p>
      <p align="justify">FIDUCIARY ROLE</p>
      <p align="justify">My team and I take our  fiduciary role as insurance brokers and risk consultants seriously. I am held  accountable to a select group of risk management professionals who have an  enormous amount of wisdom and knowledge about the property and casualty insurance  world, providing my team and me consistent guiding principles. Due to our  fiduciary role, we do not publicize our clients list but we do have several letters  from clients on file as part of this site, see Client Testimonials.</p>
      <p align="justify">CONFIDENCE IN THE PROCESS</p>
      <p align="justify">The process of  designing a risk management strategy and purchasing insurance should be  comprehensive. The focus should be on pre-engineering claims payments. You should have  total confidence in your broker and insurance company. After a claim has  occurred is not the time to second guess the dollars you spent on insurance  premiums and the commissions or fees you paid a broker. </p>
      <p align="justify">PHILOSOPHY</p>
      <p align="justify">Our philosophy and  goal is to never have a client have an uncovered claim that he / she failed to insure. We have developed   processes and procedures to determine exposures, forecast claims and efficiently  purchase the needed insurance coverage.</p>
      <p align="justify"><strong>SERVICES OF AEROSPACE AND DEFENSE DIVISION</strong></p>
      <p>Insurance Brokerage</p>
      <p>Risk Analysis  (Internal Risk Resource Data Base)</p>
      <p>Travel Risk Management  analysis</p>
      <p>Global Travelers Group </p>
      <p>Submission Preparation</p>
      <p>Benchmarking Analysis</p>
      <p>Contractual Review</p>
      <p>Loss Control</p>
      <p>Direct Access to all  major insurance companies</p>
      <p>Internal claims  adjustors</p>
      <p>Quarterly Newsletter </p>
      <h1> </h1>
    </div>
    <!-- InstanceEndEditable -->
    <h1> </h1>
      </div>
      <div class="footer">
        <table border="0" align="center">
          <tr>
            <td width="906" height="5" bgcolor="#004C90"><h6>Aviation News</h6></td>
            <td width="906" height="5" bgcolor="#004C90"><h6>News on John</h6></td>
            <td width="906" height="5" bgcolor="#004C90"><h6>Quick Help</h6></td>
          </tr>
          <tr>
            <td width="906" height="25" valign="top"><h5 align="left">
              <script language="JavaScript" src="http://feed2js.org//feed2js.php?src=http%3A%2F%2Fwww.aero-news.net%2Fnews%2Frssfeed.xml&am p;num=3&amp;utf=y"  charset="UTF-8" type="text/javascript"></script>
              <noscript>
              <a href="View" _mce_href="http://feed2js.org//feed2js.php?src=http%3A%2F%2Fwww.aero-news.net%2Fnews%2Frs sfeed.xml&amp;num=3&amp;utf=y&amp;html=y">View">http://feed2js.org//feed2js.php?src=http%3 A%2F%2Fwww.aero-news.net%2Fnews%2Frssfeed.xml&amp;num=3&amp;utf=y&amp;html=y">View RSS feed</a>
              </noscript>
            </h5>
            <p align="left">  </p></td>
            <td width="906" height="25" valign="top"><h5>Averill speaks at 2011 Risk and Insurance Management  Society annual conference in Vancouver on Aviation Loss Control.  </h5>
            <h5>Averill appointed to National Business Aviation  Association Insurance Committee. </h5></td>
            <td width="906" height="25" valign="top"><!-- InstanceBeginEditable name="quick_help" -->
              <h5 align="left"><a href="claims.html">Claims Information</a></h5>
    <h5 align="left"><a href="contacts.html">Contact Me</a></h5>
            <!-- InstanceEndEditable --></td>
          </tr>
        </table>
        <p><img src="_images/ioa_aerospace_logo.jpg" width="150" height="70" alt="ioa_logo" /></p>
    </div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    <!-- InstanceEnd --></html>

  • Pixel-slop in Photoshop image rotation

    See three small bitmaps attached: <<original.bmp>>; <<45cw.bmp>>; <<45ccw.bmp>>.
    The original is a simple 21x21 pixel test pattern, black except for white pixels in the center and corners.  It's appearance should be the same whether rotated 45 deg clockwise or counterclockwise, and the appearance should keep the symmetry of the original.
    I used "Bilinear Interpolation".  I used a gamma = 1 profile, and to be extra-safe set Edit>Assign Profile>Don't Color Manage ...
    I set the background color to black in the toolbox.  Thank you John Joslin.
    Then I rotated the original image 45 deg clockwise and counterclockwise to make the other two files.  Why to the resulting images look so different?  Why are they lacking in symmetry?  With the other interpolation methods too, clockwise and counterclockwise rotations give quite unlike images.  A partial explanation could be that Photoshop rotates about a point not in the image center, but this doesn't explain enough. I tried 20x20 patterns which showed similar problems.
    I'm mostly interested in bilinear interpolation because this is supposed to conserve the total pixel value.  Each white pixel in the original has value 255, so the blob resulting from this pixel should have total value 255.  Look at <<45cw.bmp>>.The blob on the left has total value 69+94+13+5+18+1=200.  The blob on the right is an almost perfect antipode with total value 1+18+6+13+95+68=201.  The blob at the bottom doesn't resemble the side blobs and has total value 42+56+40+3+55=196.  The blob at the top has total value 40+41+56=137.  Clearly Photoshop has lost the top of the top blob.  (It also does this with 45 deg counterclockwise rotation, and also with 135 deg rotation.)  The blob in the center has total value 49+49+48+47=193.  All of the blobs fall far short of 255.  Photoshop might be excused for messing up edge pixels, but not a central pixel.
    Photoshop messes up rotation at the single pixel level.  I made a test pattern with clusters of 4 white pixels and the rotation of this did conserve the total value for the central four.  Edge pixels still showed problems.  Photoshop image rotation appears to be based on sloppy code.

    Then how do you account for my post 11? How to you account for X2 detecting a extra hidden row on the left and top side of of the image? There is no hidden row on the bottom or rightside.
    Adobe digimarc did not detect anything.
    Paint Shiop Pro X2 digimarc did.
    I have posted the proof. It is not my fault that Adobe digimarc addon cannot detect the watermark.
    The watermark is there.
    dcouzin wrote:
    Fantasy watermark.  First of all a black pixel isn't a watermark.  It can't "hide" a watermark.  Hiding has no meaning in this context.  If the file header has a digital ID that's fine, but it's not "hidden" in the image, not under a black pixel.
    All of your reported O=255 data is not in the image either.  There aren't enough bytes in the file to specify opacity at each pixel.  This is a 24-bit RGB image not a 32-bit RGBO image.  Maybe O=255 is specified globally somewhere in the header, but I don't see "FF" anywhere in the header.  More likely full opacity is presumed for a RGB image.
    THERE IS NO WATERMARK.
    I suggest you download BinViewer 2.0 and BinEditor 2.0 which are freeware. Look at the file <<original.bmp>>.  You will count 114 zeros between the first "FF FF FF" and the next "FF FF FF".  114 divided by 3 equals 38 so "00 00 00" appears 19 times between the "FF FF FF"s.  Hey, that's the 19 black pixels between two of the corner white pixels.  Now you can use BinEditor 2.0 to change some of the "0"s or "F"s to anything you want.  You can write "dec9" in there.  Save and open in Photoshop to see what you've painted.  It's great fun creating colors and shapes by poking numbers into a file.  It's the opposite of Photoshop's glistening gliding paintbrushes, and it has a powerful truth. 
    This is why I want to know what Photoshop does when, for example, it rotates an image.

  • ADF BC how to access session backing bean value in servlet

    Hi everyone,
    How do I access session backing bean value in a servlet?

    Frank, thanks for your reply.
    I'm not sure how I can incorporate this example into my situation. Let me explain more detail about my problem.
    "servlet" in my post here actually means a custom servlet I wrote for rendering an image that is stored in db as ordimage. In this servlet, I get hold of my appmodule by using Configuation.createRootApplicationModule(). By doing so (If I'm not wrong) a new database session/connection is created. What I'm going to achieve is set application context for this new session/connection in db with the data stored in a session backing bean in the view layer.
    I can pass the required data to the servlet thru url parameter, but I don't want to do it this way for the reason that the data may contains sensitive information.
    I hope I have explained myself well.
    Message was edited by:
    bsmt

  • Fast image rotation and contrast adaptation

    First: I'm new in vision processing.
    I'm using LabView 8.0 with the IMAQ Vision development module. The aim is to control the angle and the contrast of a precalculated image (a greyscale wedge) in a fast loop with a framerate of 60 or 100Hz. Currently I use the time-consuming IMAQ rotate and IMAQ BCG functions. All these function works very fine but a litle bit to slow for my application. I have measure: IMAQ rotate with 40ms and IMAQ BCG with 15ms for an image with 1024 x 768 pixels (8-bit greyscale) on a new PC. I know that an arbitrary rotation is a processor intensive task.
    Please correct me, but i assume that with IMAQ rotate the image rotation will be carried out in the PC RAM. Afterwards the recalculated image will be written in the grafic memory. In a final step the image will be displayed on the monitor by mean of the grafic processor.
    I can imagine there exist a solution or some ideas in the LabView community to use the high end 3D very fast grafic card processor for the rotation and contrast tasks. I hope the approach will accelerate the time of calculation.
    Thanks for your help.
    Best regards
    Ivo Buske

    And of course, the rambling about IMAQ image pointers isn't relevant. (Skip all IMAQ.)
    You might as well send the image once (each time it changes), and rotate it with opengl.
    "Wiebe@CARYA" <[email protected]> wrote in message news:[email protected]...
    Hi,
    If I understand correctly, you just want a gradient screen to rotate, and to be able to adjust it's contrast.
    This can be done a lot easier without an image. If you use OpenGL, you can just draw two triangles with there color set correctly. (You'd be able to make nice rainbow pictures as a bonus.)
    An C/C++ application, or dll, could be made in a few hours by someone experienced with opengl and c++. You could even create an opengl window, and control it with LabVIEW. In other opengl applications there are some practical problems, but some might not matter to your application. Biggest problem is getting feedback (mouse clicks, close, move, resize window etc.) from the OpenGL window to LabVIEW.
    Opening a opengl window, rotating a few polygons, adjusting color, closing window certainly doable.
    Regards,
    Wiebe.
    "ibstein74" <[email protected]> wrote in message news:[email protected]...
    Hi Wiebe, I have a fixed image, created before with array functions, that contain a pure linear greyscale gradient (left side: white / right side: black). I used this image to control a "spatial light modulator". This device is connected to the second DVI graphic card output. The main task of the "spatial light modulator" is to shift the local phase of the reflective light. It works as an spatial resolved "adaptive mirror".&nbsp; The local phase shift correspondes directly to the applied grey level of the image. To change the direction in both dimensions of the reflective light I need to rotate this image (= rotate the phase wedge) Thereby the contrast can adjust the absolute angle of reflection.After I had calculated my greyscale gradient image and applied it to the second DVI output, I want only control the contrast and rotation. I think the graphic card function are very fast. But I have to control the graphic card directly per DLL or C-function node. It must be possible because I can tune the contrast and adjust the rotation manually with the nvidea driver in the windows system manager. I'm&nbsp; waiting for a couple of weeks of an answer from nvidea but it seems that contrast and rotation of an 2D-image is not a real problem for these 3-D guys. :-(I hope of an answer or new ideas.Ivo Buske

  • Camera Automounts But I Can't Access Images

    I've been plugging away at Arch Linux for a bit now in an attempt to get to know Linux better.  I've ran into a problem that I can't seem to figure out.  Current configuration is Openbox with Thunar as my volume manager. 
    I've gotten automount to work and it detects USB sticks just fine.  I can plug in my Nikon camera and it autodetects.
    I'm using a small photo management program called Mirage for the time being till I get things sorted out.  I can set Thunar to access Mirage whenever a camera is plugged in.  Whenever I plug the Nikon in, Mirage pops up, but then I get a root access error ("could not access the contents of root, Access Denied") when I try to access images. 
    I've followed the wiki here.  https://wiki.archlinux.org/index.php/Digital_Cameras with no luck.
    Here's my lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
    Bus 001 Device 003: ID 04b0:0181 Nikon Corp.
    Here's the output of ls -lR /dev/bus/usb
    /dev/bus/usb:
    total 0
    drwxr-xr-x 2 root root 80 Dec 6 14:49 001
    drwxr-xr-x 2 root root 80 Dec 6 08:35 002
    drwxr-xr-x 2 root root 60 Dec 6 08:35 003
    drwxr-xr-x 2 root root 60 Dec 6 08:35 004
    drwxr-xr-x 2 root root 60 Dec 6 08:35 005
    /dev/bus/usb/001:
    total 0
    crw-rw-r-- 1 root root 189, 0 Dec 6 14:35 001
    crw-rw----+ 1 root camera 189, 2 Dec 6 14:49 003
    /dev/bus/usb/002:
    total 0
    crw-rw-r-- 1 root root 189, 128 Dec 6 14:35 001
    crw-rw-r-- 1 root root 189, 129 Dec 6 14:35 002
    /dev/bus/usb/003:
    total 0
    crw-rw-r-- 1 root root 189, 256 Dec 6 14:35 001
    /dev/bus/usb/004:
    total 0
    crw-rw-r-- 1 root root 189, 384 Dec 6 14:35 001
    /dev/bus/usb/005:
    total 0
    crw-rw-r-- 1 root root 189, 512 Dec 6 14:35 001
    [slacker@slacker ~]$
    Ultimately it looks like my user is not authorized for the camera group, or the camera is not setting up under the camera group.  I'm missing something somewhere.  I know I added the user to the camera group.
    Last edited by minivanman (2011-12-06 20:57:47)

    [root@slacker slacker]# dmesg | tail -20
    [ 183.739068] sdc: sdc1
    [ 183.741902] sd 5:0:0:0: [sdc] Adjusting the sector count from its reported value: 15859713
    [ 183.743787] sd 5:0:0:0: [sdc] No Caching mode page present
    [ 183.743795] sd 5:0:0:0: [sdc] Assuming drive cache: write through
    [ 183.743801] sd 5:0:0:0: [sdc] Attached SCSI removable disk
    [ 251.254813] sdc: detected capacity change from 8120172544 to 0
    [ 253.970568] usb 1-2: USB disconnect, device number 4
    [ 253.972394] scsi: killing requests for dead queue
    [ 264.646713] usb 1-2: new high speed USB device number 5 using ehci_hcd
    [ 303.445583] NET: Registered protocol family 10
    [ 314.216667] eth0: no IPv6 routers present
    [ 422.445259] usb 1-2: USB disconnect, device number 5
    [ 538.806655] usb 1-2: new high speed USB device number 6 using ehci_hcd
    [ 1098.335312] usb 1-2: USB disconnect, device number 6
    [ 1106.956604] usb 1-2: new high speed USB device number 7 using ehci_hcd
    [ 1410.921433] sdb: detected capacity change from 8103395328 to 0
    [ 1414.695827] usb 1-4: USB disconnect, device number 3
    [ 1414.698245] scsi: killing requests for dead queue
    [ 1416.365454] usb 1-2: USB disconnect, device number 7
    [ 1439.339918] usb 1-2: new high speed USB device number 8 using ehci_hcd
    [root@slacker slacker]#
    Here's my .xinitrc file
    nitrogen --restore &
    tint2 &
    exec dbus-launch openbox-session
    I tried using console kit but that killed any attempt at mounting drives period.  The last post I made was with console kit placed prior to my dbus-launch in .xinitrc.  So, that's fixed.  I can actually read my Pentax camera.  I can't read the Nikon.  So it's definitely Nikon specific.
    Last edited by minivanman (2011-12-07 06:12:56)

  • JW Image Rotator

    So i am trying to add the JW Image rotator to my page(JW Image Rotator | LongTail Video | Home of the JW Player), i fallowed the guide and added the embed code
    Code:
    <div id="apDiv1">
    <embed
    src="imagerotator.swf"
    width="470"
    height="160"
    allowscriptaccess="always"
    allowfullscreen="true"
    flashvars="file=imagerotator.xml&transition=blocks  "
    />
    </div>
    but i keep getting plugin missing in Dreamweaver. so i tried to drag and drop it in design mode and this is how my code looks
    Code:
    <div id="apDiv1">
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="507" height="189" id="FlashID" title="ImageRotator">
    <param name="movie" value="../imagerotator/imagerotator.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="8.0.35.0" />
    <!-- This param tag prompts users with Flash Player 6.0 r65  and higher to download the latest version of Flash Player. Delete it if  you don’t want users to see the prompt. -->
    <param name="expressinstall" value="../Scripts/expressInstall.swf" />
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="../imagerotator/imagerotator.swf" width="507" height="189">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="8.0.35.0" />
    <param name="expressinstall" value="../Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
    <p><a  href="http://www.adobe.com/go/getflashplayer"><img  src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"  alt="Get Adobe Flash player" width="112" height="33"  /></a></p>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    when i preview i see it working but no images , any idea whats going on ?

    Try posting your question at the JW Image Rotator forums
    http://www.longtailvideo.com/support/forums/jw-player

  • ANN: Image Rotator Magic Released

    The Image Rotator Magic system is a powerful, feature-rich Dreamweaver Extension that enables you to instantly create and manage one or more image/banner rotators on your page with the efficiency of standards-based CSS and markup and without the overhead of Flash or the difficulties of open source script libraries. Images are loaded on demand with a special pre-loader so you can add as many images as you want with absolutely no impact on your page's load time.
    As are all PVII tools, IRM is a tool for professionals and is not free. It comes with unlimited technical support via email, telephone, or newsgroup.
    http://www.projectseven.com/products/galleries/irm/
    Al Sparber - PVII
    http://www.projectseven.com
    Dreamweaver Menus | Galleries | Widgets

    Al
    The product looks great, however you might want to redo the
    sound on the
    video. Even with mu speakers and its setting cranked up it
    was difficult to
    hear.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Al Sparber- PVII" <[email protected]> wrote in message
    news:e78nid$1g$[email protected]..
    >
    http://www.projectseven.com/products/tools/tabpanel/demo/
    >
    > Tab Panel Magic automates the process of building tabbed
    user interfaces
    > (UIs) - web page elements that allow you to display
    multiple panels of
    > content with access to each panel controlled by
    CSS-styled tabs. Tab
    > Panels can be inserted into CSS layouts or table
    layouts. Panels can be
    > tucked snugly into sidebars or can span an entire page.
    >
    > $60
    >
    > --
    > Al Sparber - PVII
    >
    http://www.projectseven.com
    > Popup Menus | Image Galleries | CSS Tutorials &
    Templates
    >
    > Newsgroup: news://forums.projectseven.com/pviiwebdev/
    > CSS Newsgroup: news://forums.projectseven.com/css/
    > DW Newsgroup:
    news://forums.projectseven.com/dreamweaver/
    >
    >
    >
    >
    >
    >

  • Loss of sharpness upon image rotation: Aperture vs. other software

    I have carefully studied the resulting loss of sharpness upon rotation/straightening of images. This topic does not apply to 90/180 degree rotations.
    When any image is rotated (be it JPEG or uncompressed), there will be a slight loss of quality (seen as a loss of sharpness) due to interpolation. The method of interpolation applied will affect the degree of quality degradation.
    Simply put, professional applications such as Adobe Photoshop and even Adobe Lightroom use superior interpolation methods when performing rotations (and who knows, perhaps for other transformations/scalings also?!). Apple Aperture, on the other hand, uses an interpolation method that renders a loss of image sharpness on par with inferior consumer-level software such as Google Picasa or iView Media Pro. Yes, folks, here's a clear reason to select Adobe Lightroom over Apple Aperture.
    Please take a close look at the comparison yourself:
    http://web.mac.com/rishisanyal/iWeb/Homepage/Sharpness.jpg
    Make sure you are viewing the image I have posted at 100%, not scaled, in order to clearly see the inferior quality of images rotated with Aperture & Picasa.
    Apple needs to address this problem by implementing a better interpolation algorithm with its straighten tool. It is sad that we are using and paying for a 'Professional' application that yields results on par with FREE software such as Google Picasa.
    As much as I like Aperture for its other features/integration into Mac OS X, I am switching to Lightroom as of now. Straightening/rotating images is an absolute must, used by every photographer on a daily basis. The loss of image quality, therefore, is unacceptable.
    Please post to this thread if you have experienced the same problem or are simply concerned over this. The more people that show concern, hopefully, the more likely Apple is willing to do something about this ASAP.

    Surely any rotation (apart from the 90/180/270 ones) is by-definition a smoothing operation ? You have to take the values from adjacent pixels and combine them based on the rotation, then average (or use a point-spread function) them to rescale the values back into range.
    Looks to me as though the Adobe products are just applying a sharpen operation immediately after the rotation, whereas Aperture isn't. Or Aperture could be using a simple average of the values, where Adobe is doing a gaussian summation-of-components or something similar.
    My guess would be that they "do a quick sharpen", otherwise it would take longer to do the rotate. The only way you'll ever know is if the developers tell you though...
    -=C=-

  • How to access images in my localmachine without deploying them

    Hi
    I am trying to access images in my localmachine from an ADF Application (11.1.2.4). If the source of the images is an url address it works fine. However, if they are in my local machine I don't know how to make it work. I don't want to deploy them with the application. I want them to be referenced like:
    file:///C:/images/bla/bla.jpg
    I might be failing is something really silly. Apologies in advance.
    Regards

    You can only address images inside your web root directly. The application can't just reference your file system.
    You can archive this using a servlet which you call via an url with parameters (e.g. the filename) and send the image from there (where you have access to the file system).
    Timo

  • Using an index to access the last n values of a certain combination

    I have a large table of the following form:
    Name Typ
    ID NUMBER
    M_DATE DATE
    M_LOC NUMBER
    M_ARTICLE VARCHAR2(30)
    M_TYPE VARCHAR2(30)
    M_MEASURE VARCHAR2(50)
    VALUE NUMBER
    In this table there is only a small number of different locations, articles, types and maesures but a large number of m_date values.
    I want to access the last 10 values for a certain combination of locations, articles, types and measures.
    I have an index
    create index i_res_2 on results (m_loc, m_article, m_type, m_measure, m_date);
    In my opinion it should be possible to access the last 10 values directly by this index, but
    when I do my select in the following way it seems to me that first all datasets with the same
    locations, articles, types and maesures are selected, then sorted by date and then the last 10
    dates are selected. As those datasets are spread over the whole table it needs a higher number
    of physical reads. Is there a way to have an index on m_date and an other form of this query
    that selects the requested values with less phyical reads? (Database version is 10.2)
    SQL> select
    2 id,
    3 m_date,
    4 value
    5 from (
    6 select
    7 id,
    8 m_date,
    9 value,
    10 rank() over (order by m_date desc) r
    11 from results
    12 where m_loc = '14001'
    13 and m_article = '11211-00-00'
    14 and m_type = '0002'
    15 and m_measure = '032')
    16 where r <= 10
    17 order by m_date asc;
    ID M_DATE Value
    3931958 05.03.10 69.00
    3931960 05.03.10 69.00
    3905712 10.03.10 68.60
    3999535 10.03.10 69.70
    3985125 11.03.10 69.40
    3957851 11.03.10 69.60
    3949799 21.03.10 68.70
    4017369 21.03.10 69.00
    3951981 22.03.10 68.80
    3983554 22.03.10 68.80
    Abgelaufen: 00:00:03.00
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 48 | 6 (34)| 00:00:01 |
    | 1 | SORT ORDER BY | | 1 | 48 | 6 (34)| 00:00:01 |
    |* 2 | VIEW | | 1 | 48 | 5 (20)| 00:00:01 |
    |* 3 | WINDOW SORT PUSHED RANK | | 1 | 39 | 5 (20)| 00:00:01 |
    | 4 | TABLE ACCESS BY INDEX ROWID| RESULTS | 1 | 39 | 4 (0)| 00:00:01 |
    |* 5 | INDEX RANGE SCAN | I_RES_2 | 1 | | 3 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - filter("R"<=10)
    3 - filter(RANK() OVER ( ORDER BY INTERNAL_FUNCTION("M_DATE") DESC )<=10)
    5 - access("M_LOC"=14001 AND "M_ARTICLE"='11211-00-00' AND "M_TYPE"='0002' AND
    "M_MEASURE"='032')
    Statistiken
    1 recursive calls
    0 db block gets
    547 consistent gets
    474 physical reads
    0 redo size
    766 bytes sent via SQL*Net to client
    380 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    2 sorts (memory)
    0 sorts (disk)
    10 rows processed

    I found a solution, which is much better in terms of physical reads and consistent gets even if the optimizer calculates higher costs. But I still think, that there should be an easier way to do this:
    SQL> select
    2 id, m_date, value from results
    3 where
    4 (m_loc, m_article, m_type, m_measure, m_date)
    5 in
    6 (select m_loc, m_article, m_type, m_measure, m_date
    7 from (
    8 select /*+ first_rows(10) */ m_loc, m_article, m_type, m_measure, m_date
    9 from results
    10 where m_loc = '14001'
    11 and m_article = '11370-00-00'
    12 and m_type = '0002'
    13 and m_measure = '032'
    14 order by m_loc,m_article,m_type,m_measure,m_date desc
    15 ) where rownum < 10);
    ID M_DATE VALUE
    2495995 01.02.09 70,4
    2457657 19.01.09 66,9
    2556262 13.02.09 67,4
    2496232 01.02.09 67,6
    2465051 20.01.09 67
    2454994 19.01.09 67,4
    2545951 13.02.09 67,4
    2502216 01.02.09 67,5
    2497533 01.02.09 67,2
    9 Zeilen ausgewählt.
    Ausführungsplan
    Plan hash value: 3924867000
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 122 | 8 (25)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| RESULTS | 1 | 39 | 3 (0)| 00:00:01 |
    | 2 | NESTED LOOPS | | 1 | 122 | 8 (25)| 00:00:01 |
    | 3 | VIEW | VW_NSO_1 | 1 | 83 | 4 (25)| 00:00:01 |
    | 4 | HASH UNIQUE | | 1 | 31 | | |
    |* 5 | COUNT STOPKEY | | | | | |
    | 6 | VIEW | | 1 | 31 | 4 (25)| 00:00:01 |
    |* 7 | SORT ORDER BY STOPKEY| | 1 | 31 | 4 (25)| 00:00:01 |
    |* 8 | INDEX RANGE SCAN | I_RES_2 | 1 | 31 | 3 (0)| 00:00:01 |
    |* 9 | INDEX RANGE SCAN | I_RES_2 | 1 | | 2 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    5 - filter(ROWNUM<10)
    7 - filter(ROWNUM<10)
    8 - access("M_LOC"=14001 AND "M_ARTICLE"='11370-00-00' AND "M_TYPE"='0002'
    AND "M_MEASURE"='032')
    9 - access("M_LOC"="$nso_col_1" AND "M_ARTICLE"="$nso_col_2" AND
    "M_TYPE"="$nso_col_3" AND "M_MEASURE"="$nso_col_4" AND "M_DATE"="$nso_col_5")
    Statistiken
    1 recursive calls
    0 db block gets
    36 consistent gets
    14 physical reads
    0 redo size
    748 bytes sent via SQL*Net to client
    381 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    1 sorts (memory)
    0 sorts (disk)
    9 rows processed

  • Image rotation with fade effect

    I am new to the spry framework and have just started going
    through the examples to see if I could create an image rotator that
    fades the images into each other when changing. I have taken
    snippets from different places to do this and think I have the
    answer but really wanted some feedback to sanity check and let me
    know if this is the best way of doing it. If it is, then I hope
    others will find it useful.
    Here is the url to the example:
    Image
    rotation example
    And here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>Sample Image Rotation</title>
    <meta http-equiv="content-type" content="text/html;
    charset=iso-8859-1" />
    <meta http-equiv="X-UA-Compatible"
    content="IE=7;FF=3;OtherUA=4" />
    <meta name="author" content="www.baytree-cs.com - Peter
    Barkway"/>
    <meta name="copyright" content="(C)2006 Baytree Computer
    Services, All right reserved."/>
    <meta name="abstract" content="ISM Homepage" />
    <meta name="description" content="ISM Homepage" />
    <meta name="keywords" content="ISM Homepage"/>
    <meta name="robots" content="all,index,follow"/>
    <meta name="distribution" content="global"/>
    <meta name="mssmarttagspreventparsing"
    content="true"/>
    <meta name="rating" content="general"/>
    <style type="text/css">
    .element{
    float:left;
    position: relative;
    width: 350px;
    text-align: center;
    #display{
    opacity: 0;
    filter: alpha(opacity=0);
    #animate{
    left: -350px;
    opacity: 1;
    filter: alpha(opacity=100);
    </style>
    </head>
    <body>
    <noscript><h1>This page requires JavaScript.
    Please enable JavaScript in your browser and reload this
    page.</h1></noscript>
    <div id="container">
    <div id="display" class="element"
    spry:detailregion="dsImg"><img src="<?php echo
    $rootDir.$baseDir;?>/{@base}{@path}"/></div>
    <div id="animate" class="element"
    spry:detailregion="dsImg2"><img src="<?php echo
    $rootDir.$baseDir;?>/{@base}{@path}"/></div>
    <p class="clear"></p>
    </div>
    <script type="text/javascript"
    src="js/xpath.js"></script>
    <script type="text/javascript"
    src="js/SpryData.js"></script>
    <script type="text/javascript"
    src="js/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsGalleries = new Spry.Data.XMLDataSet("spry.php",
    "galleries/gallery", { method: "POST", postData:
    "c=1&d=<?php echo $baseDir;?>", headers: {
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
    var dsImg = new Spry.Data.XMLDataSet("spry.php",
    "gallery/photos/photo", { method: "POST", postData:
    "c=2&d=<?php echo
    $baseDir;?>/{dsGalleries::@base}&s={dsGalleries::sitename}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    var dsImg2 = new Spry.Data.XMLDataSet("spry.php",
    "gallery/photos/photo", { method: "POST", postData:
    "c=2&d=<?php echo
    $baseDir;?>/{dsGalleries::@base}&s={dsGalleries::sitename}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    var imageInterval = 8000; // 8 seconds
    var imageFadeInterval = 4000; // 4 seconds
    var image2Loaded = null;
    var effect = new Spry.Effect.Fade('animate', {from: 100, to:
    0, toggle: true, duration: imageFadeInterval});
    // Prepare an observer that will change the opacity of the
    initially
    // hidden element in oposition with the initially visible
    element
    var obs1 = new Object;
    // On each effect step we calculate the complementary
    opacity for the other image container.
    obs1.onStep = function(ef){
    if (typeof otherEl == 'undefined')
    otherEl = document.getElementById('display');
    var opacity = 0;
    if(/MSIE/.test(navigator.userAgent)){
    opacity = Spry.Effect.getStyleProp(ef.element,
    'filter').replace(/alpha\(opacity([0-9]{1,3})\)/, '$1');
    otherEl.style.filter = "alpha(opacity=" + parseInt(100 * (1
    - opacity), 10) + ")";
    }else{
    opacity = Spry.Effect.getStyleProp(ef.element, 'opacity');
    otherEl.style.opacity = (1 - opacity);
    // Attach the observer to the Fade effect
    effect.addObserver(obs1);
    function fadeInContent() {
    // 1st time in so set the current rows so that the 'animate'
    set is 1 ahead of the 'display' set
    if(image2Loaded == null) {
    dsImg.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    dsImg2.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 2)
    % dsImg.getData().length);
    image2Loaded = 0;
    } else {
    if(image2Loaded) {
    dsImg.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    image2Loaded = 0;
    } else {
    dsImg2.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    image2Loaded = 1;
    effect.start();
    var obs2 = {
    onPostLoad: function() {
    setInterval("fadeInContent()", imageInterval);
    dsImg.addObserver(obs2);
    </script>
    </body>
    </html>

    I think that I might have got this going now. Here is the
    code if anyone wants to use it.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>Sample Image Rotation</title>
    <meta http-equiv="content-type" content="text/html;
    charset=iso-8859-1" />
    <meta http-equiv="X-UA-Compatible"
    content="IE=7;FF=3;OtherUA=4" />
    <meta name="author" content="www.baytree-cs.com - Peter
    Barkway"/>
    <meta name="copyright" content="(C)2006 Baytree Computer
    Services, All right reserved."/>
    <meta name="abstract" content="ISM Homepage" />
    <meta name="description" content="ISM Homepage" />
    <meta name="keywords" content="ISM Homepage"/>
    <meta name="robots" content="all,index,follow"/>
    <meta name="distribution" content="global"/>
    <meta name="mssmarttagspreventparsing"
    content="true"/>
    <meta name="rating" content="general"/>
    <style type="text/css">
    .element{
    float:left;
    position: relative;
    width: 350px;
    text-align: center;
    #display{
    opacity: 0;
    filter: alpha(opacity=0);
    #animate{
    left: -350px;
    opacity: 1;
    filter: alpha(opacity=100);
    </style>
    </head>
    <body>
    <noscript><h1>This page requires JavaScript.
    Please enable JavaScript in your browser and reload this
    page.</h1></noscript>
    <div id="container">
    <div id="display" class="element"
    spry:detailregion="dsImg"><img src="<?php echo
    $rootDir.$baseDir;?>/{@path}"/></div>
    <div id="animate" class="element"
    spry:detailregion="dsImg2"><img src="<?php echo
    $rootDir.$baseDir;?>/{@path}"/></div>
    <p class="clear"></p>
    </div>
    <script type="text/javascript"
    src="js/xpath.js"></script>
    <script type="text/javascript"
    src="js/SpryData.js"></script>
    <script type="text/javascript"
    src="js/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsGalleries = new Spry.Data.XMLDataSet("spry.php",
    "galleries/gallery", { method: "POST", postData:
    "c=1&d=<?php echo $baseDir;?>", headers: {
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
    var dsImg = new Spry.Data.XMLDataSet("spry.php",
    "gallery/photos/photo", { method: "POST", postData:
    "c=2&d=<?php echo
    $baseDir;?>/{dsGalleries::@base}&s={dsGalleries::sitename}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    var dsImg2 = new Spry.Data.XMLDataSet("spry.php",
    "gallery/photos/photo", { method: "POST", postData:
    "c=2&d=<?php echo
    $baseDir;?>/{dsGalleries::@base}&s={dsGalleries::sitename}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    var imageInterval = 4000; // 8 seconds
    var imageFadeInterval = 2000; // 4 seconds
    var effect = new Spry.Effect.Fade('animate', {from: 100, to:
    0, toggle: true, duration: imageFadeInterval});
    // Prepare an observer that will change the opacity of the
    initially
    // hidden element in oposition with the initially visible
    element
    var obs1 = new Object;
    // On each effect step we calculate the complementary
    opacity for the other image container.
    obs1.onStep = function(ef){
    if (typeof otherEl == 'undefined')
    otherEl = document.getElementById('display');
    var opacity = 0;
    if(/MSIE/.test(navigator.userAgent)){
    opacity = Spry.Effect.getStyleProp(ef.element,
    'filter').replace(/alpha\(opacity([0-9]{1,3})\)/, '$1');
    otherEl.style.filter = "alpha(opacity=" + parseInt(100 * (1
    - opacity), 10) + ")";
    }else{
    opacity = Spry.Effect.getStyleProp(ef.element, 'opacity');
    otherEl.style.opacity = (1 - opacity);
    // Attach the observer to the Fade effect
    effect.addObserver(obs1);
    function fadeInContent() {
    // 1st time in so set the current rows so that the 'animate'
    set is 1 ahead of the 'display' set
    //use this flag to avoid the effect running on load
    if (typeof image2Loaded == 'undefined') {
    dsImg.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    dsImg2.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 2)
    % dsImg.getData().length);
    var curRow = dsImg.getCurrentRow();
    image2Loaded = 0;
    } else {
    if(image2Loaded) {
    var img = document.getElementById('display');
    dsImg.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    var curRow = dsImg.getCurrentRow();
    image2Loaded = 0;
    } else {
    var img = document.getElementById('animate');
    dsImg2.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    var curRow = dsImg2.getCurrentRow();
    image2Loaded = 1;
    var imgPath = '<?php echo $rootDir.$baseDir;?>/' +
    curRow["@path"];
    var gImageLoader = new Image();
    gImageLoader.onload = function()
    effect.start();
    gImageLoader.src = imgPath;
    var obs2 = {
    onPostLoad: function() {
    setInterval("fadeInContent()", imageInterval);
    dsImg2.addObserver(obs2);
    </script>
    </body>
    </html>

  • Access image size and color profile

    Hi all,
    Is it possible to access image size and color profile ? If not, will it be possible in CS6 ?
    Thanks.

    Load the external XMP library and get it from that?

Maybe you are looking for

  • Few questions about alsa and vlc

    how to set sound via spdif in vlc ? how to set default sound output as spdif ? (ESI Juli@) how to disable dmix and set sampling to 192khz ?

  • What is the Debugger and how do you turn it off?

    Hi folks, I'm updating a site for a client and when I open the home page http://www.imcnewcastle.com I get this annoying pop up from Adobe flash player 10 asking if my debugger is on this machine or host application and it locks up if I try to connec

  • "where can I download an Acrobat Pro Users Manual?"

    I know duh,.....I have always used Acrobat for basic  PDFs and I now want to know how I can create more robust PDFs with multiple pages and reduced size,.........need a manual........

  • Working with random numbers

    is there a way of creating a series of 6 random numbers from 1-9 without repeating a single number? i have currently developed the following method which so far generates a random number excluding zero, but ive no idea of how to ensure that i get dif

  • Invalid Credentials gmail on mac "IMAP

    How do I fix this?