Trouble with Ruby-Cocoa Tutorial (IKImageBrowserView)

Hello, I'm trying to learn some Mac programming using Ruby so I tried making the project in the Apple tutorial ( http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Articl es/BuildingRubyCocoaAppl.html#//apple_ref/doc/uid/TP40005425 )
Unfortunately it won't run. Every time the console shows this error:
"Unknown class IKImageBrowserView in Interface Builder file."
(it defaults to NSView and then more errors result when it gets to the app's code.)
The tutorial there says that even though IKImageBrowserView isn't in the Library, IB "knows about it" but I feel like something's missing. Although I had no problems changing the Custom Object's Class, and connecting it up. It's only once it tries to run that it fails.

orangekay wrote:
RubyCocoa is neither sanctioned nor supported by Apple
Au contraire: the primary maintainer for RubyCocoa is Laurent Sansonetti, the Apple engineer responsible for Ruby in OS X and also the author of MacRuby, and RubyCocoa is bundled in OS X 10.5 and later along with the Python-Cocoa bridge, PyObjC.
so any sub-contracted documentation they might supply is probably not going to be kept up to date. That particular tutorial is from last year and things have almost certainly changed since then; you should look for something more recent from the project's maintainers
Quite possibly; I believe that some of the PyObjC documentation on Apple's site also dates back to Tiger. File a bug on it; IIRC, there's a link at the bottom of each page for doing so.
Some other links of interest:
RubyCocoa homepage:
http://rubycocoa.sourceforge.net
RubyCocoa mailing list:
https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk

Similar Messages

  • Trouble with 2nd SOA tutorial

    Hey gang,
    Been grasping with the basics of this massive SOA suite that Oracle has put together. Everything is running fine. I just did the obligatory Hello World tutorial and it went smoothly. On the second tutorial that involves invoking a credit rating web service however I am having a bit of an issue.
    See, I deployed that web service into the AS that has the SOA running on it. And then when I am mapping the input and output values from the invoke activity in the BPEL designer, it reverts to the wsdl found on the hard drive instead of finding one on the server. Another problem is the crOutput variable...the xpath is not able to find the part for it. It does find it for the crInput variable though.
    Hope I am making sense. Any thoughts?

    The question is little bit confusing for me..
    As far my knowledge concern...whenever you deploy a webservice a wsdl file is been generated and that wsdl file I copy to my bpel workspace and invoke the wsdl file by creating partner link and selecting the wsdl from the "Project WSDL files".....it gives a message that no partner link is available for the current wsdl and it will make a reference.
    When I click OK it creates a wsdl and rest of the copy operation you do runs fine.

  • Trouble With Web Services Tutorial Examples

    I am having trouble getting the Web Services Tutorial examples to run.
    For example, when I compiled the hello1 example, and tried to run it, I got a directory listing. All the directory listing contained was the dukewaving.gif file.
    When I tried to run hello2, I got something similar. This time though, there were two jsp files in the listing. By clicking on the first one, I was able to run the application.
    Now I can't run the bookstore1 example. I went back a second time, to be sure that I was following the instructions exactly as written. I am gettng an HTTP Status 404 - Servlet BookStoreServlet is not available.
    I don't know why this is happening. There were no errors when I ran the Ant targets, and the WAR file did get copied to the webapps directory.
    I would be very grateful for any help. I am very new to Java and am finding this very frustrating.
    Thank You,
    Chrissy

    This is what's in my log file. Why is the servlet being marked as unavailable?
    2004-03-13 21:11:37 Manager: deploy: Deploying web application at '/bookstore1'
    2004-03-13 21:11:37 Manager: Uploading WAR file to C:\jwsdp-1.3\webapps\bookstore1.war
    2004-03-13 21:11:37 Manager: Extracting XML file to C:\jwsdp-1.3\conf\Catalina\localhost\bookstore1.xml
    2004-03-13 21:11:37 Manager: install: Installing context configuration at 'file:/C:/jwsdp-1.3/conf/Catalina/localhost/bookstore1.xml' from 'jar:file:/C:/jwsdp-1.3/webapps/bookstore1.war!/'
    2004-03-13 21:13:47 Marking servlet BookStoreServlet as unavailable

  • Trouble with bc4j/jsp tutorial

    I'm having difficulty running the bc4j/jsp tutorial in the doc pages. he ones on the oracle website, not through the help menu cos it's modal!
    After the second start from scratch I'm pretty certain I'm doing excatly as instructed but on starting the oc4j, I get the following error page in IE...
    Any ideas?
    Rick Lawson.
    Application Error
    Return
    Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
    Error Message: JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:372)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
         at CustomersView_Browse._jspService(CustomersView_Browse.jsp:10)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:237)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:192)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:348)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
         at CustomersView_Browse._jspService(CustomersView_Browse.jsp:10)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)

    1. At what step in the tutorial did you see this error?the link to the web page would be http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&file=jar%3Afile% (basically, at the end of autocreating the page and running oc4j (embedded) to see the JSP
    2. Are you running on a deployed environment?No. This was as the tutorial, in the embedded oc4j
    3. What version of JDev/ OC4J are you using?oracle IDE version is 9.0.2.829
    4. Did your BC4J project compile cleanly?yes (or at least it appeared to do!)
    5. Did you check the Deploy Password box when you created your database connection?yes.
    I shall be reading up on the bc4j.xcfg today...
    Thanks for the help
    Rick

  • Trouble with applet tutorial about servers

    I downloaded the sources of this (http://java.sun.com/docs/books/tutorial/deployment/applet/clientExample.html) example and am trying to make them work. However I'm having trouble with the server program.It compiles fine but when I run it I get NullPointerException in QuoteServerThread class on this line:
    packet = new DatagramPacket(buf, 256);buf is a byte array and it's set to null.
    I don't have any experience with networking in java so if the problem is something really simple you'll know why I didn't find it.
    Oh, and the code of the thread is here http://java.sun.com/docs/books/tutorial/deployment/applet/examples/QuoteServerThread.java

    Replace
    byte[] buf = null;with
    byte[] buf = new byte[ 256 ];Other problems may happen if this sample was not tested properly.
    The problem is that the DatagramPacket requires you to supply a non-null buffer, as per:
    DatagramPacket
    public DatagramPacket(byte[] buf, int length)
    Constructs a DatagramPacket for receiving packets of length length.
    The length argument must be less than or equal to buf.length.
    Parameters:
    buf - buffer for holding the incoming datagram.
    length - the number of bytes to read.
    Edited by: baftos on Jul 18, 2008 3:38 PM

  • Problem with Business Process tutorial

    I'm trying to run the Business Process Tutorial (http://e-docs.bea.com/workshop/docs81/doc/en/integration/tutorial/tutWLIProcessCreateApp.html?skipReload=true#1025634)
    in WebLogic Workshop 8.1 (Build 2003.0710.190003) and I'm having trouble with
    the part that says:
    In the New Application dialog box, select Tutorial in the left pane, and select
    Tutorial: Process Application in the right pane.
    In my setup, the New Application window has only "All" in the left pane. And it
    doesn't have anything "Tutorial" related in the right pane.
    Any suggestions?
    Thanks
    -TAB

    "Todd Bradfute" <[email protected]> wrote:
    >
    I'm trying to run the Business Process Tutorial (http://e-docs.bea.com/workshop/docs81/doc/en/integration/tutorial/tutWLIProcessCreateApp.html?skipReload=true#1025634)
    in WebLogic Workshop 8.1 (Build 2003.0710.190003) and I'm having trouble
    with
    the part that says:
    In the New Application dialog box, select Tutorial in the left pane,
    and select
    Tutorial: Process Application in the right pane.
    In my setup, the New Application window has only "All" in the left pane.
    And it
    doesn't have anything "Tutorial" related in the right pane.
    Any suggestions?
    Thanks
    -TAB
    Hi TAB--
    When you installed the platform, did you install the whole thing, or just part
    of it? If you chose not to install the examples, or if you chose not to install
    Integration, that would explain this behavior. If not, we'll try to go from there...
    Thanks,
    Mike

  • Trouble with first progråµ

    I'm having trouble with my simple calculator, which is similar to the calculator in "cocoa programming for dummies".
    http://public.me.com/schoolkid144
    its firstproject.zip
    The trouble is that when I get the value of the two text fields, it always returns 0 even when the value of both text fields is 1.

    Hi S-T Programmer, and welcome to the Dev Forums!
    The connections between the FuseBox outlets and the three text fields just need to be reversed in Interface Builder. An IBOutlet instance variable is associated with an Interface Builder object by Ctrl-Dragging from the object which owns the variable to the object the variable wants to reference. For example, to connect the FuseBox ivar named answerField to the text field which is to display the answer, Ctrl-Click on the FuseBox icon in the xib window then drag to the desired text field object. The text field object may either be found as an icon in the xib (Document) window, or as the full-scale drawing of the object in the IB Editor window (where you lay out the view). When you release the mouse at the end of the drag, a black list of all the FuseBox class outlets will pop up. Select the outlet you meant to connect (in this case answerField), and the connection will be made.
    The problem with giving IB instructions in the forum is that a picture is worth a thousand words, and this post is on the wrong side of that equation. So I'm hoping you'll be able to see enough of the picture from all these words. There are two other ways of making IB connections that are harder to use, but easier to explain:
    1) If you Ctrl-Click (without dragging) on any icon in the xib window, a floating, black panel will pop up showing every possible connection to that object. To make the same connection discussed above from the answerField outlet to the right-hand text field, Ctrl-Click on the FuseBox icon and find answerField in Outlet list. You can now drag directly from the connector symbol to the desired text field. This time there's no popup when you release the mouse because IB already knows which outlet is to be connected. After the connection is made, you can Ctrl-Click on the text field icon and see its connection panel. You'll know the connection is going in the right direction when the connection to the text field is listed under +Referencing Outlets+ and the connection back at the FuseBox object is listed under Outlets.
    The floating, black connection panels are especially useful for deleting connections. Since your project currently has three backwards connections, you can use these panels to delete those by clicking on the 'X' which is visible on each connection line.
    2) There's also a tab in the Inspector window for making connections. Select one of the objects you want to connect and select Tools>Connections Inspector from the top menu if you have trouble finding the tab. You can make connections in this window if you want, but you can also use the Connections Inspector to view the connections previously made by dragging.
    This topic is covered in more detail (including some screen shots! yay!!) under Creating and Managing Outlet and Action Connections in the +Interface Builder User Guide+.
    I think your connection between the Calculate button and the FuseBox was correct. This post has gotten so long I can't remember if I had to reverse that one too, but I don't think I did. Anyway you'll be able to check for yourself now that you know what to look for, right? The connection between an object's Sent Action and an IBAction method goes in the direction opposite to an IBOutlet connection. Thus to connect the Calculate button you need to drag from the button to the FuseBox.
    _Outlet from_ the FuseBox
    _Action to_ the FuseBox
    Hope that helps!
    \- Ray

  • Im having trouble installing Ruby on my Mavericks

    lakshmis-MacBook-Pro:~ lakshmishanthappa$ rvm install 2.0.0
    Searching for binary rubies, this might take some time.
    Found remote file https://rubies.travis-ci.org/osx/10.9/x86_64/ruby-2.0.0-p481.tar.bz2
    Checking requirements for osx.
    /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
    /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0
    ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
    Requirements installation failed with status: 1.
    lakshmis-MacBook-Pro:~ lakshmishanthappa$ rvm install 1.9.3
    Searching for binary rubies, this might take some time.
    No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p547.
    Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
    Checking requirements for osx.
    /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
    /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0
    ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
    Requirements installation failed with status:
    This is what I get always .

    Install homebrew. Then brew update followed by brew upgrade. Leave it alone. RVM will look for the presence of this package manager, and will use it to install any missing dependencies when installing RVM itself or new versions of Ruby that need to be compiled.
    Without system privileges, just perform the rvm curl install into your home directory. Everything gets stuffed into ~/.rvm hierarchy.
    In the Terminal, to see latest Rubies.
    rvm list | more
    Although OS X 10.9.3 updated MRI Ruby to 2.0.0p451, a 2.0.0p481 and 2.1.2 release are now available.
    rvm install 2.0.0p481
    rvm use 2.0.0p481 --default
    rvm list
    gem update
    Verify that your .bashrc file has this new Ruby path included.
    export PATH=$HOME/.rvm/gems/ruby-2.0.0/bin:.:/usr/local/bin:$PATH
    and at the end of the .bashrc file:
    export PATH=$PATH:$HOME/.rvm/bin
    [ -s $HOME/.rvm/scripts/rvm ] && source $HOME/.rvm/scripts/rvm
    It is a good idea to keep RVM current.
    rvm get stable
    Though unrelated to RVM, I would also do a softlink of the old Ruby-Cocoa v1.8.7 version.
    ln -s /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby ~/bin/ruby18
    Apple did not bake any Objective-C/Cocoa support into Ruby 2.0. It is in the older version above.

  • Trouble with connecting a gui to a database

    I have been trying to follow the connecting a GUI to a Java DB Database with Netbeans IDE tutorial. But when I try to download the GUI BD Exercise Initial (which it states is needed to complete the tutorial) it does not download it. I have looked in the Projects section but it does not appear but when I try to download it again and again it states that it there.
    Does anybody know of any other site that has a Tutorial that describes the same thing. Or does any body know the procedure needed at this stage onwards to connect the GUI to a database. I have completed all of the other Tutorials successfully and can get my database connected to netbeans and create tables etc. Just can't connect it to a GUI.
    I don't know if there could be a problem because the file is zipped it seems unlikely to me. In any case when I download it nothing shows in the projects section like it should do although I have been able to save it to other parts of my computer hard drive, but when I try to send it the netbeans Myprojects file it is unsuccessful.
    I have the URL of the Tutorial that I have had the trouble downloading the file from. http://www.netbeans.org/kb/55/gui-database.html
    I wonder if any body else has had trouble downloading this link?
    Any way I would really appreciate any feedback on this has anybody else had trouble on this tutorial?

    JDBC Database Access
    http://java.sun.com/docs/books/tutorial/

  • Cocoa tutorial documentation

    Hi,
    I'm trying to go thru the 10.5.1 cocoa tutorial
    to set up 'Currency Converter'. The tutorial
    came with 10.5.1 but doesn't conform to the
    xcode or interface builder software.
    As an example, I managed by hook and by crook
    to get the Currency Converter window built
    and working.
    But now I'm trying to create a new class for
    the Currency Converter.
    The tutorial says go to the Classes pane of the nib file window
    to define a class, and shows a picture of the
    MainMenu.nib (English) which has 5 panes -
    Instances, Classes, Images, Sounds, Nib.
    I can't get this window to appear.
    The Interface builder has different options under
    my Tools window item than are described in
    the tutorial as well.
    My Xcode and Interface Builder say they're version
    3.0. Obviously they're not designed for 10.5.1
    (I had the same problems with 10.5). So do I
    have to download new versions of Xcode and Interface
    Builder, or new versions of the tutorial?
    and doc?
    Thoroughly confused,
    ken

    old application tutorial doc. Hopefully that'll fix it.
    Thanks.
    Ken Quirici

  • 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

Maybe you are looking for

  • Pro*C: Getting array of structs from a PL/SQL procedure

    I am trying to create a stored procedure that will take the results of a select query, put them into an array of structures and send the entire array of structs back to the calling function in the C program. I currently do a select into a cursor and

  • Source2wsdd: ServiceGen does not contain a start method - help!

    Hello all Weblogic Users! I would greatly appreciate any help with this problem. I am getting this error when I do my build on Linux. [source2wsdd] source2wsdd: Doclet class weblogic.webservice.tools.ddgen.ServiceGen does not contain a start method.

  • Displaying a group of  data in different colums

    I have a problem with displaying a group of data in different colums. I want to display a group of data like this: Column 1 --- Column2 ----- Column3 data1 data6 data11 data2 data7 data12 data3 data8 data13 data4 data9 data14 data5 data10 data15 That

  • Unexplainable pixilating of the screen HELP

    We've had an iMac since 2008/2009 and yesterday the screen started to pixelate. We've got no explanation for why. My mum used it about an hour before it happened and it was running as normal, an hour later my brother went to use it and the screen was

  • Difference between AQ$WF_BPEL_QTAB and WF_BPEL_QTAB

    Our BPEL process is listening to Business event from Oracle ebiz. Noticed the following BE raised -> Message available in wf_deferred -> Message available in wf_bpel_qtab -> BPEL instance invoked. After the above process ,noticed that the record stat