Trouble with rotating..

Everyone out there that is good at math.. I have a problem. I'm working on making a basic 3d engine, and I cant seem to get it to rotate about the Y axis. I need a formula like
Xprime=X*(sin alpha) - Y*(cos alpha)
something like that. It can obviously use Z as well as X and Y. I'm haveing extreme trouble with this.. Thanks in advance.

I made a quick search for "rotation matrix" and found this,
http://www.euclideanspace.com/maths/algebra/matrix/orthogonal/rotation/index.htm
The formula you're looking for is called: Rotation about z axis is: Rz

Similar Messages

  • Why is iphoto having trouble with rotating photos all of a sudden?

    i've been using iphoto for a few years. suddenly it un-rotated all of my auto-rotated photos (which screwed up all of my face tags) and now when i upload new photos, if they auto-rotate during the upload they appear in the preview of a whole event, but if i double-click to see a vertical photo, or try to do a slideshow, i get the triangle with an exclamation point in it, indicating that something's wrong with the file. is anyone else having this trouble? or have any idea what to do?
    thanks...

    I've never used the Flickr feature so don't know if that as any bearing on the problem.  if you're satisfied with the newly "fixed" library you can delete the copy of the original library that you made. 
    However, since you're having problems with rotated photos you might try this and see if the new library has the rotated photos displayed correctly:
    Start over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1.  Move the existing library folder to the desktop.
    2. Open the library package like this.
    Click to view full size
    3. Launch iPhoto and, when asked, select the option to create a new library.
    4. Drag the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the iPhoto Library on the desktop into the open iPhoto window.
    Click to view full size
    This will create a new library with the same Events as the original library but will not keep the metadata, albums, books slideshows and other projects.
    If the rotated photos display correctly in this new library then the problem lies with the orther libraries being damages somehow.  You may want to stay with the new library even though the projects, i.e. books, etc. and keywords are lost. 
    If you have a lot of keywords in your current library and want to move them to the new library you can by doing this:
    1 - open the old library and select one photo.
    2 - type Command+K to brinb up the keyword pane.
    3  - click on all of the keywords that are not blue so that all of the keywords are blue.
    4 - export that photo to the Desktop via the File ➙ Export ➙ File Export menu option. Select Kind=JPEG and check the two check boxes regarding keywords, locations, etc.
    5 - open the new library with iPhoto and import the exported photo from the Desktop.  That will bring in all of the keywords so that you don't have to recereate them one by one in the new library.

  • Trouble with rotation Portrait-mode vs. Landscape-mode

    Hi there, Maybe someone can give me advice on this, cause it's driving me a little nuts. When I take a picture with my iPhone 4S in portraitmode, when I store it on my computer, it's stored there in landscapemode. That is, the thumbnail shows the picture rotated counterclockwise in landscapemode, and so does every program (pictureviewer, photo gallery, internet explorer etc.) I use to open it. My Popcorn Hour C-200 -a mediaplayer- however is "smart enough" to show the picture in portraitmode. But here's the annoying part: when I correct this on my computer, turn the picture clockwise so it's in portraitmode, it shows correct on my computer, but now the image on my PCH C-200 is turned clockwise to landscapemode! How can I fix this? There is one picturefile from my iPhone that is correct in portraitmode, both on my computer and on my PCH C-200, but I don't know what I did differently with that one. But I now know it can be done...

    Unlock your screen orientation.   Double click home - swipe all the way to the left and unlock your orientation.

  • Having trouble with iphoto, will not print full image

    Having trouble with iphoto on my laptop and desk top computers.  On laptop will not let me print full image and having trouble getting correct rotation to print
    On desk top printing too dark and cannot get correct rotation there either, seems like the problem just started recently

    Ronleedek-
    What App are you using with the microphone?  I've used Skype, which has a "test call" feature to check your microphone.
    There is a good chance your microphone is defective, possibly disconnected inside the iPad.  If an Apple Store Genius can not fix it, you may get a new iPad on the spot.
    Fred

  • Trouble with image size

    Hello everyone, I'm having some trouble with image sizes.
    I created a 977x5000 px image at 72 PX/inch resolution with text for use on a weebly website.
    When created the image looks like a small vertical bar(maybe around 50x500px) with a massive left and right photoshop background(not the image background). so if I drag the bottom slider to the left or right the image will completely disappear.  I can CTR and + to get it to the correct size so I can actually read the text. I can still go very far left and right with bottom slider. The problem comes in when I save it to a PNG or other file it still shows up as a bar.
    Is there any way to fix this so it saves it as the correct viewing size? that way when I open the image it's an actual 977x5000 instead of looking like a 50x500
    I'm on Windows 7, my display settings are at 100% and I'm using Photoshop  CC 2014

    You do not understand what is going on at all. First an image file's PX/inch resolution setting is meaningless when it come to the Web and displays all that is meaningful is pixels.  For displays are run at one resolution usually their native manufactured Pixel resolution so your image will be displayed at 96DPI on Desktop Displays and a 300+DPI on Phones and around 250DPI on tablets.  Your image  height is also to large to fit on any display.  The Display I think that displays the most pixels is the IBM T221 22.2" LCD 16:10 aspect ratio 3840px by 2400px.  at 204DPI.  Rotating  that display to portrait it can display an image with a height of 3840px your image height is larger 5000.  Your image has an aspect ratio in the neighborhood of 1:5  an image 50x500 has an aspect ratio of 1:10 a far cry from 1:5 your image is much wider then 1:10.
    IBM T220/T221 LCD monitors - Wikipedia, the free encyclopedia
    Most common display resolutions in the first half of 2014
    Acronym
    Aspect ratio
    Width (px)
    Height (px)
    % of Steam users
    % of web users
    SVGA
    4:3
    800
    600
    00.08
    00.64
    WSVGA
    ~17:10
    1024
    600
    00.17
    01.59
    XGA
    4:3
    1024
    768
    02.85
    09.84
    XGA+
    4:3
    1152
    864
    00.34
    00.85
    WXGA
    16:9
    1280
    720
    00.93
    01.65
    WXGA
    5:3
    1280
    768
    00.52
    01.09
    WXGA
    16:10
    1280
    800
    02.44
    08.90
    SXGA– (UVGA)
    4:3
    1280
    960
    00.35
    00.48
    SXGA
    5:4
    1280
    1024
    07.05
    05.74
    HD
    ~16:9
    1360
    768
    03.00
    02.43
    HD
    ~16:9
    1366
    768
    24.53
    26.64
    SXGA+
    4:3
    1400
    1050
    00.10
    n/a
    WXGA+
    16:10
    1440
    900
    05.74
    05.95
    HD+
    16:9
    1600
    900
    07.76
    04.99
    UXGA
    4:3
    1600
    1200
    00.30
    n/a
    WSXGA+
    16:10
    1680
    1050
    06.27
    02.96
    FHD
    16:9
    1920
    1080
    32.91
    08.64
    WUXGA
    16:10
    1920
    1200
    02.11
    00.95
    QWXGA
    16:9
    2048
    1152
    00.08
    n/a
    WQHD
    16:9
    2560
    1440
    00.93
    00.58
    WQXGA
    16:10
    2560
    1600
    00.13
    n/a
    3:4
    768
    1024
    n/a
    05.31
    16:9
    1093
    614
    n/a
    00.64
    16:9
    1536
    864
    n/a
    00.70
    Other
    01.41
    09.42

  • Anyone having trouble with full screen shortcut key?

    For no reason, the shortcut keys for full screen window quit working. They started working after a reboot once but just quit again and restart did not correct this time. Quite annoying, any fix for this?

    Hello nashvegasdj,
    After reviewing your post, it sounds like you are having trouble with screen rotation. I would recommend that you read this article, it may be able to help the issue.
    If the screen doesn't rotate on your iPhone, iPad, or iPod touch - Apple Support
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Trouble with matrix

    Hi All,
    I have some troubles with matrix transformations.
    To test it I use a identity matrix as shown below:
    <?xml version="1.0" encoding="utf-8"?> 
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" 
                   creationComplete="init_app()"> 
        <fx:Script> 
                <![CDATA[ 
                    import flash.display.Bitmap; 
                    import flash.display.BitmapData; 
                    internal function init_app():void { 
                        larg_start.text = image.width.toString(); 
                        alt_start.text = image.height.toString(); 
                        var bd:Bitmap = Bitmap(image.content);                            
                        var m:Matrix = new Matrix(); 
                        m.identity(); 
                        //m.rotate(0); 
                        //m.scale(1,1); 
                        //m.tx = 0; 
                        //m.ty = 0; 
                        var bd2:BitmapData = new BitmapData(image.content.height, image.content.width);                    
                        bd2.draw(bd, m);                                    
                        var bitmap:Bitmap = new Bitmap(bd2); 
                        image2.source = bitmap; 
                        larg_stop.text = image2.width.toString(); 
                        alt_stop.text = image2.height.toString();                
                ]]> 
        </fx:Script> 
        <mx:Image id="image" x="56" y="105" source="file:/D:/Malletto/Sistema/Desktop/eolico1.jpg" width="217" height="290"/>    
        <s:Label x="60" y="492" text="Start W:"/> 
        <s:Label id="larg_start" x="173" y="492"/> 
        <s:Label x="60" y="526" text="Start H:"/> 
        <s:Label id="alt_start" x="173" y="526"/> 
        <s:Label x="411" y="492" text="Stop W:"/> 
        <s:Label id="larg_stop" x="540" y="492"/> 
        <s:Label x="411" y="526" text="Stop H:"/> 
        <s:Label id="alt_stop" x="540" y="526"/> 
        <mx:Image id="image2" x="411" y="96" width="217" height="310"/> 
    </s:Application> 
    Why doesn't work? :-( 
    Please help ... any help will be appreciated!

    var bd2:BitmapData = new BitmapData(image.content.width,
    image.content.height);                    

  • Trouble with spacing of divs vertically

    Hi all,
    I am having trouble with CSS and vertically stacking my divs, In the following code there are a number of identical divs and I want them to stack one upon the other like in a list. At the moment I need to hit returns after each div to get below the one above and it puts way too much room in between each div doing this. I am at a loss how to do set the amount of spcae between them and also to make one go directly below the other.
    Any and all help greatly appreciated
    Thanks  Rick
    <bodystyle="margin:0; padding:0;">
    <div class="logo">
      <p><img src="images/spinlogonewsml.jpg" alt="Spin City Logo" border="0" style="position: absolute; top: 10px; left: 500px; /></p>
      <p> </p>
      <p> </p>
    </div>
    <div class=main">
    <div class="imagebutton" id="left"><img src="images/img_16_n.png" width="40" height="40" alt="left button" /></div>
    <div class="help">Rotate the Object or Panorama left one increment.</div>
    <p> </p>
    <div class="imagebutton" id="right"><img src="images/img_17_n.png" width="40" height="40" alt="Right Button" /></div>
    <div class="help">Rotate the Object or Panorama right one increment.</div>
    <p> </p>
    <div class="imagebutton" id="Plus"><img src="images/img_18_n.png" width="40" height="40" alt="Plus Button" /></div>
    <div class="help">Zoom into the image a step at a time.</div>
    <p> </p>
    <div class="imagebutton" id="minus"><img src="images/img_19_n.png" width="40" height="40" alt="Minus Button" /></div>
    <div class="help">Zoom out of the image a step at a time.</div>
    <p> </p>
    <div class="imagebutton" id="AutoRotate"><img src="images/img_20_n.png" width="40" height="40" alt="Auto Rotate Button" /></div>
    <div class="help">Starts or stops auto rotation of the Object or Panorama.</div>
    <p> </p>
    <div class="imagebutton" id="DefaultView"><img src="images/img_23_n.png" width="40" height="40" alt="Default Vew Button" /></div>
    <div class="help">Resets the Object or Panorama to it's starting position.</div>
    <p> </p>
    <div class="imagebutton" id="RotateMode"><img src="images/img_25_n.png" width="40" height="40" alt="RotateMode" /></div>
    <div class="help">
      Sets the mouse interactive mode to 'Rotate' allows for rotating the Object when zoomed in, toggles with 'Move' button below.
    </div>
    <p> </p>
    <div class="imagebutton" id="MoveMode"><img src="images/img_24_n.png" width="40" height="40" alt="Move Mode Button" /></div>
    <div class="help">Sets the mouse interactive mode to 'Move' allows for dragging the Object when zoomed in, toggles with 'Rotate' button above.</div>
    <p> </p>
    <div class="imagebutton" id="SoundButton"><img src="images/img_28_n.png" width="40" height="40" alt="Sound Button" /></div>
    <div class="help">Use this button to mute the sounds played by the interactive presentation.</div>
    <p>  </p>
    </div>
    </body>
    </html>

    Way too many divisions.  All you need is one main division or possibly two.  The rest is easily contained inside <p> tags.
    Copy and paste this into a new HTML document.
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Vr help File</title>
    <style type="text/css">
    /**zero out browser default settings on everything**/
    * {margin:0; padding:0; line-height: 100%; font-size: 100%;}
    p {
    line-height: 1em;
    font-size: 16px;
    margin-bottom: 12px; /**space between paragraphs**/
    #logo {
    float:right;
    width: 35%;
    margin-right: 150px /**adjust as req'd**/
    </style>
    </head>
    <body>
    <div id="logo">
    <img src="http://www.spincityimaging.com/images/spinlogonewsml.jpg" width="74" height="53" class="logo" />
    <!--end logo --></div>
    <p><img src="http://www.spincityimaging.com/images/img_16_n.png" width="40" height="40" alt="left button" />Rotate the Object or Panorama left one increment.</p>
    <p><img src="http://www.spincityimaging.com/images/img_17_n.png" width="40" height="40" alt="Right Button" />Rotate the Object or Panorama right one increment.</p>
    <p><img src="http://www.spincityimaging.com/images/img_18_n.png" width="40" height="40" alt="Plus Button" />Zoom into the image a step at a time.</p>
    <p><img src="http://www.spincityimaging.com/images/img_19_n.png" width="40" height="40" alt="Minus Button" />Zoom out of the image a step at a time.</p>
    <p><img src="http://www.spincityimaging.com/images/img_20_n.png" width="40" height="40" alt="Auto Rotate Button" />Starts or stops auto rotation of the Object or Panorama.</p>
    <p><img src="http://www.spincityimaging.com/images/img_23_n.png" width="40" height="40" alt="Default Vew Button" />Resets the Object or Panorama to it's starting position.</p>
    </body>
    </html>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Troubles with launching Java GUI from C++

    Hi,
    I'm launching a Java program from my C++ program (in linux). For C++ I'm using the Xm library for the GUI. When I want to instantiate a new Java object, I get the following error:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x4015C475
    Function=XmRenderTableFree+0x15
    Library=/usr/X11R6/lib/libXm.so.2
    This is a backtrace (see #17):
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 19643)]
    0x4015c475 in XmRenderTableFree () from /usr/X11R6/lib/libXm.so.2
    (gdb) backtrace
    #0 0x4015c475 in XmRenderTableFree () from /usr/X11R6/lib/libXm.so.2
    #1 0x40153cd9 in XmFontListFree () from /usr/X11R6/lib/libXm.so.2
    #2 0x4c6ed4c4 in Java_sun_awt_motif_MComponentPeer_pSetFont () from
    /localhost/packages/java/j2sdk1.4.0/jre/lib/i386/libawt.so
    #3 0x423b6129 in ?? ()
    #4 0x423aef93 in ?? ()
    #5 0x423aef93 in ?? ()
    #6 0x423aef93 in ?? ()
    #7 0x423aef93 in ?? ()
    #8 0x423aeebc in ?? ()
    #9 0x423aef93 in ?? ()
    #10 0x423aef93 in ?? ()
    #11 0x423ac195 in ?? ()
    #12 0x404d6156 in JavaCalls::call_helper () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #13 0x40570ccd in os::os_exception_wrapper () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #14 0x404d62a4 in JavaCalls::call () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #15 0x404de12d in jni_invoke () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #16 0x404de94e in jni_NewObjectV () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #17 0x0804d27b in JNIEnv_::NewObject (this=0x819af2c, clazz=0x819b938,
    methodID=0x8293af8) at /localhost/packages/java/j2sdk1.4/include/jni.h:840
    #18 0x0804cb0a in AppletViewer::AppletViewer (this=0x81a5628,
    appletA=0x8193438) at AppletViewer.cc:227
    #19 0x0804e17b in Applet::move (this=0x8193438, drawX=18, drawY=25,
    drawWidth=376, drawHeight=77, scrollX=0, scrollY=0, dpi=86) at Applet.cc:329
    #20 0x0808b852 in PageAttrs::moveApplets (this=0x8192dd8, drawX=18,
    drawY=25, drawWidth=376, drawHeight=77, scrollX=0, scrollY=0, dpi=86) at
    Page.cc:321
    #21 0x080ae6ab in XPDFCore::moveApplets (this=0x81698d0) at Page.h:190
    #22 0x080ac87f in XPDFCore::displayPage (this=0x81698d0, pageA=2, zoomA=1,
    rotateA=0, scrollToTop=1, addToHist=1) at XPDFCore.cc:585
    #23 0x080acac3 in XPDFCore::gotoNextPage (this=0x81698d0, inc=1, top=1) at
    XPDFCore.cc:670
    #24 0x080b3901 in XPDFViewer::nextPageCbk (widget=0x8149ff0, ptr=0x81408e8,
    callData=0xbffff6d0) at XPDFViewer.cc:1229
    #25 0x401df59e in XtCallCallbackList () from /usr/X11R6/lib/libXt.so.6
    #26 0x400b5803 in ActivateCommon () from /usr/X11R6/lib/libXm.so.2
    #27 0x400b5689 in Activate () from /usr/X11R6/lib/libXm.so.2
    #28 0x4020c453 in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
    #29 0x4020cd3e in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
    #30 0x4020cdf4 in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.6
    #31 0x401ea462 in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
    #32 0x401ead7e in _XtOnGrabList () from /usr/X11R6/lib/libXt.so.6
    #33 0x401eafc8 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
    #34 0x401eb3d9 in XtAppMainLoop () from /usr/X11R6/lib/libXt.so.6
    #35 0x080ab04c in XPDFApp::run (this=0x81175b0) at XPDFApp.cc:299
    #36 0x080b8eef in main (argc=2, argv=0xbffffa84) at xpdf.cc:283
    Now here's the interesting thing: in the constructor of my Java class there's a call to pack() to initiate my Java GUI. When I remove that call everything works fine (but then I haven't got a GUI though). setVisible(true) in the Java code also gives that problem.
    Has C++ or the Xm library some troubles with the Java GUI? Or what the hell is going wrong?
    PS: On Solaris, the very same code works perfectly...

    I really need a solution.
    Is it possible it has something to do with threads?
    Do I have to do AttachCurrentThread or something like that? Is that necessary?
    Btw, I assigned 10 duke dollars to this topic.

  • I have been having a lot of trouble with the latest itunes update and my ipod classic 80Gb i.e. being unable to sync songs, but now i have no files at all on my ipod, it is completely blank when i view it from my computer. I need help, please, anybody.

    As it says above, i have been having a lot f trouble with my ipod classic and the latest itunes update, i was unable to sync songs or anything to it and have tried every conceivable 'fix' i could find. i have run an itunes diagnostic and the results are posted below. a major problem is that when i try and view my ipod through my computer it displays nothing at all on the ipod, no files or anything, this may be the problem but i have no idea how it has happened or how i could resolve it.
    This ipod holds huge sentimental value and i am loathe to buy a new one! If anybody can help it is greatly appreciated, than kyou in advanced.
    Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601)
    ASUSTeK Computer Inc. K50IJ
    iTunes 11.1.5.5
    QuickTime not available
    FairPlay 2.5.16
    Apple Application Support 3.0.1
    iPod Updater Library 11.1f5
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 7.1.1.3
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 0038B8600B98D1E0
    Current user is not an administrator.
    The current local date and time is 2014-03-21 16:52:39.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2fd81a1f13cf3ff25a8b4f0e8e725116
    **** Device Connectivity Tests ****
    iPodService 11.1.5.5 (x64) is currently running.
    iTunesHelper 11.1.5.5 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) ICH9 Family USB Universal Host Controller - 2934.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2935.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2936.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2937.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2938.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2939.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293C.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • Trouble with Toshiba built-in webcam: "unable to enumerate USB device"

    I am running archlinux on a Toshiba Satellite L70-B-12H laptop, and having troubles with the Webcam. *Once in a while*, everything goes well and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 004: ID 04f2:b448 Chicony Electronics Co., Ltd
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    # dmesg
    [ 3433.456115] usb 3-1.3: new high-speed USB device number 4 using ehci-pci
    [ 3433.781119] media: Linux media interface: v0.10
    [ 3433.809842] Linux video capture interface: v2.00
    [ 3433.826889] uvcvideo: Found UVC 1.00 device TOSHIBA Web Camera - HD (04f2:b448)
    [ 3433.835893] input: TOSHIBA Web Camera - HD as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input15
    [ 3433.835976] usbcore: registered new interface driver uvcvideo
    [ 3433.835977] USB Video Class driver (1.1.1)
    Unfortunately, *most of the time* the camera seems invisible to my system, and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    (note the missing "04f2:b448 Chicony Electronics Co., Ltd" device), and
    # dmesg
    [ 480.104252] usb 3-1.3: new full-speed USB device number 4 using ehci-pci
    [ 480.171097] usb 3-1.3: device descriptor read/64, error -32
    [ 480.341235] usb 3-1.3: device descriptor read/64, error -32
    [ 480.511375] usb 3-1.3: new full-speed USB device number 5 using ehci-pci
    [ 480.578007] usb 3-1.3: device descriptor read/64, error -32
    [ 480.748151] usb 3-1.3: device descriptor read/64, error -32
    [ 480.918282] usb 3-1.3: new full-speed USB device number 6 using ehci-pci
    [ 481.325196] usb 3-1.3: device not accepting address 6, error -32
    [ 481.392091] usb 3-1.3: new full-speed USB device number 7 using ehci-pci
    [ 481.798926] usb 3-1.3: device not accepting address 7, error -32
    [ 481.799166] hub 3-1:1.0: unable to enumerate USB device on port 3
    Searching on the web, most results I found lead to this page, where it is said that the problem is due to badly tuned overcurrent protection, and advocated that unplugging and switching off the computer for a little while gets things back into normal. This does not really work for me; the problem seems to occur more randomly, unfortunately with high probability (my camera is available after less than one boot out of ten).
    I tried to ensure that the ehci-hcd module is loaded at boot with the ignore-oc option (with a file in /etc/module-load.d/), to no avail.
    I also wrote a script which alternatively removes and reloads the ehci-pci driver until my device is found in lsusb. It is sometimes helpful, but usually not. And even when my device is found that way, it can only be used for a while before disappearing again.
    Anyway, such a hack is unacceptable... So, my questions are:
    is it indeed related to overcurrent protection ?
    is there anything else I can try ?
    should I file somewhere an other of the numerous bug reports about "unable to enumerate USB device" already existing ?
    If of any importance, I am running linux 3.15.7, because at the time I installed my system, I couldn't get the hybrid graphic card Intel/AMD working under 3.16.
    Last edited by $nake (2014-10-18 16:29:06)

    uname -a
    Linux libra 3.9.4-1-ARCH #1 SMP PREEMPT Sat May 25 16:14:55 CEST 2013 x86_64 GNU/Linux
    pacman -Qi linux
    Name : linux
    Version : 3.9.4-1
    Description : The linux kernel and modules
    Architecture : x86_64
    URL : http://www.kernel.org/
    Licences : GPL2
    Groups : base
    Provides : kernel26=3.9.4
    Depends On : coreutils linux-firmware kmod mkinitcpio>=0.7
    Optional Deps : crda: to set the correct wireless channels of your country
    Required By : nvidia
    Optional For : None
    Conflicts With : kernel26
    Replaces : kernel26
    Installed Size : 65562.00 KiB
    Packager : Tobias Powalowski <[email protected]>
    Build Date : Sat 25 May 2013 16:28:17 CEST
    Install Date : Sun 02 Jun 2013 15:30:35 CEST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature

  • Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hello Sue,
    I have an iPad 3, iPad Mini and iPhone 5S and they are all sluggish on capitalisation using shift keys. I hope that Apple will solve the problem because it is driving me crazy.
    I find using a Microsoft Surface and Windows 8 phone, which I also have, work as well as all the ios devices before the ios 7 upgrade.
    It has something to do with the length of time that you need to hold the shift key down. The shift key needs to be held longer than the letter key for the capitalisation to work. For some reason, this is a major change in the way we have learnt to touch type on computers. I am having to relearn how to type!
    Michael

  • Trouble with OR in where clause

    Hello,
    I'm having trouble with execution speed. The problem seems to be with using OR in my where clause.
    Here's the meat of the function where i_pledge_number is an input parm:
    BEGIN
    SELECT /*+ INDEX (pp) */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM
    primary_pledge pp
    WHERE
    -- Get total if multiple allocations
    pp.prim_pledge_number IN
    (SELECT pc.pledge_number
    FROM pledge_codes pc
    WHERE pc.pledge_code_type = 'M'
    AND pc.pledge_code = 'AC'
    AND lpad(pc.pledge_comment,10,'0') = i_pledge_number)
    -- Get total if single allocation
    OR pp.prim_pledge_number = i_pledge_number;
    RETURN return_amount;
    END;
    If I comment out either half of the OR statement (either the subquery or the pp.prim_pledge_number = i_pledge_number half) the function returns a value in .02 seconds. If I leave the OR in, it takes 2.764 seconds to execute?? Can someone please show me a better way (faster) to do this? I tried using nvl() around the subquery but couldn't get it to compile.
    Thanks

    These things are difficult to diagnose remotely, but here is something you can try....
    SELECT */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM   primary_pledge pp
    WHERE  pp.prim_pledge_number IN (SELECT pc.pledge_number
                                     FROM pledge_codes pc
                                     WHERE pc.pledge_code_type = 'M'
                                     AND pc.pledge_code = 'AC'
                                     AND lpad(pc.pledge_comment,10,'0') = i_pledge_number
    UNION ALL
    SELECT i_pledge_number FROM dual)
       RETURN return_amount;
    END;If that doesn't do anything (and it might well not) there are a large number of different ways we can recast this query. To save us further guessing please give us more details: execution plans, database version number, volumetrics.
    Cheers, APC

  • A trouble with "LIKE" in a select statement

    Hi!
    I'm having trouble with "LIKE" in a select statement...
    With Access I can make the following and everything works well:
    SELECT name, birthday
    FROM client
    WHERE birthday LIKE '*/02/*';
    but if try to do it in my application (it uses Access), it doesn't work - I just can't understand that!!!
    In my application the "month" is always the currently month taken from the "System". Look what I'm doing...
    String query1 = "SELECT name, birthday " +
              "FROM client " +
              "WHERE birthday " +
              "LIKE '*/" +
              pMonth +
              "/*' " +
              "ORDER BY birthday ASC ";
    ResultSet rs = statement1.executeQuery(consulta1);
    boolean moreRecords = rs.next();
    The variable "moreRecords" is always "false", the query returns nothing although the table "client" has records that attend the query.
    Please, anyone can help me?! It's a little bit urgent.
    Thanks,
    Katia.

    Hi Katia,
    I'll bet the problem lies with the characters you're using to escape the LIKE clause. You're using the ones that Access likes to see, but that's not necessarily what's built into the JDBC-ODBC driver class.
    You can find out what the correct escape wildcard characters are from the java.sql.DatabaseMetaData.getSearchStringEscape() method. It'll tell you what to use in the LIKE clause.
    I'm not 100% sure about your code. It doesn't use query1 anywhere. I'd do this:
    String query = "SELECT name, birthday FROM client WHERE birthday LIKE ? ORDER BY birthday ASC";
    PreparedStatement statement = connection.createStatement(query);
    String escape = connection.getMetaData().getSearchStringEscape();
    String test = escape + '/' + pMonth + '/' + escape;
    statement.setString(1, test);
    ResultSet rs = statement.executeQuery();
    while (rs.hasNext())
    // load your data into a data structure to pass back.
    rs.close();
    statement.close();Let me know if that works. - MOD

  • (Trouble printing) Trouble with connection between Macbook Pro and Hp Deskjet 1510.

    Trouble with connection between Macbook Pro and Hp Deskjet 1510. (Nothing Prints).
    I have a Macbook Pro and am having difficulty printing documents from ‘Pages' from my Hp Deskjet 1510. I have installed the necessary software for the printer and it is connected via USB. Every time I try to print the printer icon comes up as it should, 'printing' and then 'job completed' and then the icon disappears. (Nothing is printed.) I thought it might be something to do with Pages compatibility with the printer but exporting the document to Word or making it a PDF doesn’t change anything. I don’t have Microsoft Word on my computer. The scanner does work and when I printed a ‘Test Page’ that worked too.
    Let me know if you know why this is happening.

    With these settings the network now works flawlessly, however, when i have my ethernet cable plugged in, my internet access via my airport card(on the macbook pro) is no longer available. Hoping you can tell me why this would be with this info i've provided.
    Educated guess. The networking devices have priorities as to which are used. The standard order is that Ethernet has a higher priority than Airport.
    While your Ethernet is unplugged it is inactive and the Mac ignores it. Once you plug it in, the Mac sees that it is active and switches traffic to that interface.
    I actually take advantage of this feature at home, but configuring my Airport and Ethernet with identical fixed IP addresses. Normally I'll use Airport, but if I'm copying a huge file and I want faster performance, I'll just walk my MacBook (previously iBook, previously Powerbook) over to my Ethernet switch and plug in my MacBook. Magically, the Mac detects that the Ethernet is active and continues the file transfer uninterrupted over the faster 100baseT Ethernet connection. When the transfer is finished, or if I really need to move back to the Comfy Chair, I unplug the Ethernet cable, and all activity reverts back to the Airport, all without disrupting any existing networking connections.
    You on the other hand have totally different settings for your Ethernet and your Airport, so when you switch to Ethernet, you basically loose your Airport connections.
    Something you can try:
    System Preferences -> Network
    Gear icon on the bottom left, next to the [+] [-] icons.
    Select *Set Service Order...*
    Now Drag the network interfaces into the perfer priority order you want. In this case put Airport above Ethernet.
    NOTE: You may want to create a new Network Location for this, instead of messing with your normal home Location (which is most likely the default Automatic. That way you have your original you can always fall back to.

Maybe you are looking for

  • DB2 error in file db2nodes.cfg on HPUX cluster instalation

    I am installing ECC6 SR3 ABAP + DB2 V9.1 in cluster environment on HPUX IA64 + ServiceGuard. I am with the following problem, DB2 software does not function in second node. Overview: node1: host1 node2: host2 virtual host: vthostci virtual host: vtho

  • Can we compare file contents of two files in the Application server?

    Hi, A file is generated daily to the application server. and i need to compare the generated file to the file generated on the previous day and prepare a report. Can we compare file contents of two generated files present in the Application server? I

  • How to use TARGET in jsp:forward ???

    In a link I can use TARGET to display the page in another frame like this: <a href="http://localhost:8080/cars/Menu.jsp TARGET=FrameRight>Counties</A> Is it possible to do something similar when forwarding a page with the jsp:forward standard action?

  • How to set primary line...

    Hello, I'm currently using a PAP2T with the two lines enabled.  I would like to configure the adapter so that all incoming calls will only come to one of the lines.  Is this possible?  How do I do this? Thanks,

  • Motion Vectors in AfterEffects

    Hi, The plugin i am developing needs Motion vectors. Looking at the SDK documentation the only  reference I have found in the sdk docs for motion vectors are in relation to the PF_CHANNELSUITE1, PF_GetLayerChannelTypedRefAndDesc. Which I read to only