I am using jmtp library and most of the code is working fine like device read , device file read and write. But when i used PortableDeviceToHostImpl32 for copy From Portable Device To Host show Cannot resolve "PortableDeviceToHostImpl32".
I have Download library from https://code.google.com/archive/p/jmtp/downloads. and successfully run the most of the things but stuck in copy From Portable Device to desktop and not known why this problem occurred.
OR what is the alternative of the issue?
This looks like a very old abandoned project, nevertheless, going through project's known issue it seems implementation for PortableDeviceToHostImpl32 was not done by the original developer and someone have provided "some sort" of solution so I would highly recommend to read through the issue and you might be able to use the code shared by commenter over there.
That being said it's never a good idea to use library that is not maintained, use alternatives such as:
usb4java
lib-javax-usb3
Related
I am trying to use svnjs to implement a client SVN on the web. However, the library is not finished, and doesn't work at all. So I've decided to fix it.
For example, when I add a file and commit it I get a 409 Conflict error when uploading the new file. I have found this documentation of WebDAV usage in SVN, although it seems unfinished.
The new file is created within the resulting working collection using a PUT request.
That's all it says. It tells anything about which headers I must include, etc.
So, I have two options/questions:
Where can I find more detailed documentation of WebDAV-SVN?
There are plenty of SVN clients on Windows/Linux. Is there a tool to inspect outgoing and incoming traffic from that specific app, in order to see working examples?
Many thanks in advance!
Thanks to #bahrep 's comment, i found some documentation about how WebDAV/DeltaV works. Here are the links, if anyone is interested:
WebDAV: http://www.webdav.org/specs/rfc4918.html
DeltaV: http://www.webdav.org/specs/rfc3253.html
In my case, I discovered that when receiving a 409 Conflict, the server had to tell me the reason. From there, I have been able to dig a little more into the errors, and finally solve it.
I haven't pushed the working svnjs yet (it was for another project), but I may at one time push it in https://github.com/royalmo/svnjs . If you come from the future and you're still interested, you may go check that repository.
I am trying to use tiddlywiki (version 5.1.10) together with QWebView in PyQt (version 4.10.2).
I am able to load the tiddlywiki page with QtCore.QUrl.fromLocalFile("C:\\path\\to\\tiddlywiki\\empty.html"), but unfourtunately my changes aren't saved.
I already tried to place TiddlySaver.jar in the same directory as tiddlywiki, but that doesn't change anything.
Does somebody know if it's possible to use tiddlywiki together with QWebView?
As nobody has answered here, I want to quickly respond with my "solution". After all, I couldn't get tiddlywiki to work in PyQt4...I researched it a little bit and it seems like that it isn't possible with QWebView (correct me, if I'm wrong).
Therefore, I looked for alternatives to tiddlywiki. My requirements were, that it shouldn't require any installation. That's why I decided to use tiddlywiki in the first place. After some googling, I found Dokuwiki on a stick. It's a pretty nice looking wiki, that doesn't require any installation. It is possible to download the wiki with or without a webserver (dokuwiki on a stick provides a microapache webserver, which is a really small apache webserver binary that doesn't need an installation). The cool thing is, that you can pack the microapache webserver to your PyQt application. When your application starts, you start the webserver locally (with QProcess or something similar) and can connect to the wiki.
I just learned about the Intel XDK at Indiecade today, and I couldn't wait to get home to try a port of one of my Construct 2 games. The game ended up working perfectly, aside from the fact that it has no sound when played on my Galaxy S5. The Intel XDK Emulator plays the game with sound, but for some reason it doesn't work on my phone. My volume is all the way up. Are there any tips when importing C2 games with the Intel kit to make sure the sound is preserved?
One thing I might add is when I run the app, it gives me an error message as though I am trying to run it locally in my computer. The actual message:
Alert: Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)
And then it auto-jumps to:
Application Error: The connection to the server was unsuccessful. (file:///android_asset/www/index.html)
... as a matter of fact it stopped working altogether after the two error messages while I was typing this question.
Edit: OK... so I exported it within the XDK as Crosswalk rather than simply Android, and the music now works. However, the first error message I mentioned before still shows up. I won't want this on all of my apps. Any way to get rid of it?
OK so this is what I did wrong: When I exported through Construct 2, I did what I always do and exported as a web app. What I should've done is export it as an Android app. I seriously don't know why I didn't try this first but after exporting as Android and then using the Intel XDK to port it with Crosswalk, everything is peachy.
I found my answer here: https://www.scirra.com/blog/133/introducing-crosswalk-the-new-way-to-publish-to-android
I'm glad you found the answer here; I knew there would be a way :)
Just wanted to chip in as a follow-up, there is a webinar tomorrow for a much more in-depth tour of the XDK and its features - including crosswalk - than I was able to provide at IndieCade. Let me know if it works out for you!
Thanks,
Brad
Webinar Link: http://l.intelswpartner.com/u.d?V4GjZxR-vxyrcx8RFF58HZ=33001
This happens if you export as a normal html5 and not as Cordova app.
I had the same problem. I'm calling other HTML offline and solved the problem with this post:
https://software.intel.com/en-us/xdk/docs/adding-third-party-plugins-to-your-xdk-cordova-app
How Do I Reference cordova.js Script from My Project index.html File
To enable the use of Cordova plugins in an HTML5+Cordova project type, reference the cordova.js script file exactly once in your index.html file:
If your project contains more than one HTML file (or page) that will use Cordova APIs, you must include a reference to the cordova.js script file in each of those HTML files. It is highly recommended that you limit yourself to building single-page apps (SPAs) when creating Cordova applications. See this Cordova Best Practices article for more details. Also, note that the cordova.js file is a "phantom" file; it is not present in your project directory, but is added by the Cordova build system when your application is built (it is customized for your app as part of the build process).
We have a website that we are planning to distribute in a device. It is basically a big web site with lots of pictures and information. The web site is already built using some flash and javascript. I am thinking on using ubuntu for this. My plan is to install ubuntu( server, maybe!) without a graphical enviroment( Gnome, KDE, etc...) and start a browser like firefox using X servers. I have already tried this using
Code:
xinit firefox
It works and loads firefox fine. I am also thinking to build a Simple UI that will be launched at start. This UI will have a button to start this website and maybe other programs.
I hope I made myself clear.
I would like to know what do you guys think about this? Does it sound like something feasible? Do you think its a good idea to do this way? Do you have any suggestions?
It terms of licensing I don't understand well. I know ubuntu is licensed mainly under GNU GPL and I know is open source. I know that you are required to have any modifications available. However I am not sure if that includes the source code for the web site or any other proprietary application that i create and include. My understanding is that you only need to have open source any changes made to the OS but not any configuration after it has been installed.
What about Qt which is liscenced GNU LGPL v. 2.1? Do i need to release the code for the UI i make or is it only the code for any changes made to Qt itself?
Thanks in advance to anyone that reads this. I have read a lot on this but I am not so sure i got it right. I would like to know if I am at least in the right path.
Any help will be appreciated.enter code here
Ubuntu is GPL - if you make any changes to the Ubuntu (or rather linux) kernel itself then you have to offer those changes to anyone you distribute Ubuntu to - that has nothing to do with any applications or data you use on the operating system.
Qt is LGPL - you can use Qt to make any application you want without releasing anything about your application. You only have to release any modifications you make to the Qt source code yourself - which you are unlikely to do.
You don't need Qt for any of this, you can have a browser run full screen at startup in Ubuntu (or any other linux), and you can have a simple start page which will also start other local apps with just html - this may be a lot easier.
There are also "kiosk modes" for most browsers which limit what features and tool bars are present so you can prevent users quitting the browser or loading/saving other data.
Finally check out xubuntu - it's a version of ubuntu with X but without Gnome or KDE
IANAL, but with LGPL you can dynamically link to Qt and not be required to license your own sources under LGPL.
The general rule of thumb is that your end user should be able to take code of LGPLed component, make modifications to it, and have your proprietary code work with it. This also means you can link statically to LGPLed code if you provide at least object files of your own code, so they can be relinked.
For linux I suspect the answer is yes as well, but I can't say anything specific.
I implemented a https downloader,
I am getting QSsl error, QSslError::CertificateNotYetValid on embedded device, if I call ignoreErrors() from there download is working fine, but Same downloader is working fine from my ubuntu 9.04 without any sslerror().
I guess is,
--> Qt for embedded linux is not configured with openssl support, does anybody knows how to check it?
In case you think my guess is not correct, please provide your own.
Incase you want to take a look at code, It is over here,
http://pastebin.com/ffMFXxeW
Thanks.
First check that the system date and time on the device are correct.