Some time ago I was able to remote debug a webview in Chrome to debug html-errors. But now, it isn't working anymore on my Android-phone, I'm not able to connect (In Chrome: More Tools > Developer Tools > Remote Devices ... where my remote devices says "connected".
The lines I added (in varying composition) to tiapp.xml:
< property name="appc-security-debugger-detect">false< /property>
< application android:debuggable="true" />
< disable_error_screen>true< /disable_error_screen>
Solved the problem.
In tiapp.xml, these two elements needs te be in this order:
<application android:theme="#style/Theme.AppCompat.NoTitleBar"/>
<application android:debuggable="true"/>
... instead of:
<application android:debuggable="true"/>
<application android:theme="#style/Theme.AppCompat.NoTitleBar"/>
... looks like a bug to me.
I built the Tizen sample application in wearable IDE 2.3.1 and 2.3.0. I was able to run it on the emulator. But the same application is not installing on my 2.3 wearable target device. While installing, it gives errors. I tried the procedures below for installing the application.
* sdb install app
* wrt-installer -i app (For installing web application)
These are the error messages I got:
E/WRT_INSTALLER( 513): pkgmgr_signal.cpp: setPkgname(164) >
[SECURE_LOG] name is empty
D/WRT_INSTALLER( 513): task_configuration.cpp: hasExtension(85) > [SECURE_LOG] Looking for extension .xml in
/opt/home/developer/WearableUI.wgt
D/WRT_INSTALLER( 513): widget_unzip.cpp: getDecryptedPackage(265) > [SECURE_LOG] Check DRM...
D/WRT_INSTALLER( 513): widget_unzip.cpp: isDRMPackage(171) > [SECURE_LOG] Enter : isDRMPackage()
E/WRT_INSTALLER( 513): widget_unzip.cpp: isDRMPackage(180) > [SECURE_LOG] Cannot open /usr/lib/libdrm-service-core-tizen.so!
I have one more concern: Is the libdrm-service-core-tizen.so library required for installing applications on Tizen? (For now we are using software rendering.)
Are there any command line tools for installing Tizen native/web apps?
This log is not enough to know the exact cause. WRT installer is to continue the installation regardless of the existence of the .so file. I think that will have more direct cause behind the log. Find and send more log.
Attempting to install my custom printer driver that I'm working on (a Unidrv minidriver-based one) fails with this error (Windows 8.1 Pro x64):
The LetterMaster.gpd file can be found here: https://github.com/TazeTSchnitzel/LetterMaster-Unidrv/blob/f9bcd4756bd095629d6a49115af17ce3bb16169c/LetterMaster.gpd (though I doubt it is the problem)
The INF file is known to be fine.
By "install" I mean going to Add printer -> blah -> Have Disk -> choosing the INF file -> clicking Next -> filling in the name of the printer -> Next. It'll then show UAC prompt, seem to go alright for a bit, but then the error above shows up.
EDIT: After using gpdcheck I was able to fix some syntactic errors in the LetterMaster.gpd file which I didn't know existed. Now I have a new error:
The LetterMaster.gpd content is now this: https://github.com/TazeTSchnitzel/LetterMaster-Unidrv/blob/10c4eed1c0b1592dbdd00466bc7a31a259223dbe/LetterMaster.gpd
I've built a complex Shiny interface that pulls from an internally networked ODBC table and allows a user to interact with the data through their browser. The company is on Windows 7 Enterprise and IT only supports IE 9. Some users have chrome installed in their user folders, some have firefox, some use IE 9. I followed a tutorial from R-Bloggers (here: http://www.r-bloggers.com/deploying-desktop-apps-with-r/) and it runs on my machine using a portable Chrome browser downloaded from PortableApps.com. Great. Unfortunately the interface has not started on ANYONE else's machine that has their own local Chrome browser installed.
Following the tutorial, I use the following vb script:
Rexe = "R-Portable\App\R-Portable\bin\Rscript.exe"
Ropts = "--no-save --no-environ --no-init-file --no-restore --no-Rconsole"
RScriptFile = "runShinyApp.R"
Outfile = "ShinyApp.log"
strCommand = Rexe & " " & Ropts & " " & RScriptFile & " 1> " & Outfile & " 2>&1"
intWindowStyle = 0 ' Hide the window and activate another window.'
bWaitOnReturn = False ' continue running script after launching R '
CreateObject("Wscript.Shell").Run strCommand, intWindowStyle, bWaitOnReturn
This script calls the following code in my R file:
message('library paths:\n', paste('... ', .libPaths(), sep='', collapse='\n'))
chrome.portable = file.path(getwd(),'GoogleChromePortable/App/Chrome-bin/chrome.exe')
launch.browser = function(appUrl, browser.path=chrome.portable) {
message('Browser path: ', browser.path)
shell(sprintf('"%s" --app=%s', browser.path, appUrl))
}
shiny::runApp('shiny', launch.browser=launch.browser)
It works on my computer just fine... I DO have chrome installed locally, but I'm calling the Portable Chrome executable. It worries me that the two are sharing prefs or something, e.g. I notice that a hash from the Preferences file in my installed version, specifically:
"chrome_url_overrides": {
"bookmarks": [ "chrome-extension://eemcgdkfndhakfknompkggombfjjjeno/main.html" ]
},
...matches the same json entry from the Portable Chrome installation:
"chrome_url_overrides": {
"bookmarks": [ "chrome-extension://eemcgdkfndhakfknompkggombfjjjeno/main.html" ]
}
Why do these long random strings match? Am I barking up the wrong tree for wondering about this? I don't know why these strings match if they are two separate installations of Chrome executables, one of which is supposed to run completely independently from anything on the machine.
Here's a set of errors from one machine:
.../Desktop/TestApp3/GoogleChromePortable/App/Chrome-bin/chrome.exe[9100:9408:0716/141934:ERROR:gpu_info_collector_win.cc(103)] Can't retrieve a valid WinSAT assessment.
[9100:9408:0716/141934:ERROR:component_loader.cc(138)] Failed to parse extension manifest.
[9100:1716:0716/141946:ERROR:get_updates_processor.cc(214)] PostClientToServerMessage() failed during GetUpdates
Here's a set of errors from a second machine:
.../Documents/TestApp3/GoogleChromePortable/App/Chrome-bin/chrome.exe
[5220:3384:0714/142128:ERROR:component_loader.cc(138)] Failed to parse extension manifest.
[5220:7600:0714/142130:ERROR:external_registry_loader_win.cc(136)] File C:\Program Files\Coupons.com CouponBar\chrome\Coupons.com.crx for key
Software\Google\Chrome\Extensions\cnpkmcjgpcihgfnkcjapiaabbbplkcmf does not exist or is not readable.
[5220:2120:0714/142140:ERROR:get_updates_processor.cc(214)] PostClientToServerMessage() failed during GetUpdates
[5220:3384:0714/142413:ERROR:CONSOLE(122)] "Could not find value for secondaryUser", source: chrome://resources/js/load_time_data.js (122)
[5220:3384:0714/142413:ERROR:CONSOLE(122)] "[undefined] (secondaryUser) is not a boolean", source: chrome://resources/js/load_time_data.js (122)
[5220:3384:0714/142425:ERROR:CONSOLE(122)] "Could not find value for secondaryUser", source: chrome://resources/js/load_time_data.js (122)
[5220:3384:0714/142425:ERROR:CONSOLE(122)] "[undefined] (secondaryUser) is not a boolean", source: chrome://resources/js/load_time_data.js (122)
[5220:3384:0714/142442:ERROR:navigation_entry_screenshot_manager.cc(167)] Invalid entry with unique id: 12
It seems like Chrome is doing different things on different computers and is not actually acting as a standalone browser... but likely interacting with the browser installed on their respective computers via the registry or some other "under the hood, active" communication. Maybe, since I installed the portable executable on my machine, a bunch of my local extensions or preferences were automatically updated to the portable's preferences, etc. and subsequently this is causing a conflict on every other machine??
Can I shutdown Chrome's extensions or extra functions like the calls to the updater? Is there a better standalone portable browser that functions well with Shiny for this type of "deployment" purpose? Can I fix this or is this a lost cause?? This should be obvious but I'll say it anyway: it is definitely not economically efficient to ask the non-technical types to install R, then RStudio, then confirm their working directory structure, then call the runApp() command via the Script window...
I started with those same articles, but developed the RInno package to solve this exact problem, i.e. when you want to share your desktop Shiny app with non-technical users who can't be expected to mess around with all those details.
To get started:
install.packages("RInno")
require(RInno)
RInno::install_inno()
Then you just need to call two functions to create an installation framework:
create_app(app_name = "myapp", app_dir = "path/to/myapp")
compile_iss()
This will create an installation wizard that runs like any other program, but installs your shiny app on a Windows desktop computer. If you would like to include R for your co-workers who don't have it installed, add include_R = TRUE to create_app:
create_app(app_name = "myapp", app_dir = "path/to/myapp", include_R = TRUE)
It defaults to include shiny, magrittr and jsonlite, so if you are using other packages like ggplot2 or plotly, just add them to the pkgs argument. You can also include GitHub packages to the remotes argument:
create_app(
app_name = "myapp",
app_dir = "path/to/myapp"
pkgs = c("shiny", "jsonlite", "magrittr", "plotly", "ggplot2"),
remotes = c("talgalili/installr", "daattali/shinyjs"))
If you are interested in other features, check out FI Labs - RInno
I don't know why but my Libraries shortcuts don't work anymore,
When I press on them nothing happens (nor from the start menu nor from Windows Explorer)
I think that this is something from the registry but I don't know what,
Please help me!
Sounds like something has gone wrong in your file associations, save the following as a .reg file and run it to restore .library-ms:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.library-ms]
[HKEY_CLASSES_ROOT\.library-ms]
#="LibraryFolder"
"Content Type"="application/windows-library+xml"
[HKEY_CLASSES_ROOT\.library-ms\ShellNew]
"Handler"="{c7ca6167-2f46-4c4c-98b2-c92591368971}"
"NullFile"=""
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,\
00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,\
2d,00,31,00,30,00,30,00,31,00,00,00
[HKEY_CLASSES_ROOT\.library-ms\ShellNew\Config]
"IsFolder"=""
"IsOptIn"=""
"NoEmptyFile"=""
[HKEY_CLASSES_ROOT\LibraryFolder]
#="Library Folder"
"NeverShowExt"=""
"NoOpenWith"=""
"IncludeShare"=""
"IncludeSync"=""
"CanRecursivelySearch"=""
"NoPreviousVersions"=""
"FriendlyTypeName"="#shell32.dll,-34560"
"EditFlags"=dword:00100000
"DefaultDropEffect"=dword:00000004
"TileInfo"="prop:System.ItemTypeText"
"ExtendedTileInfo"="prop:System.ItemTypeText"
"InfoTip"="prop:System.ItemTypeText;System.DateModified"
"PreviewDetails"="prop:System.DateModified;*System.SharedWith"
"FullDetails"="prop:System.ItemNameDisplay;System.ItemTypeText;System.DateModified;*System.SharedWith"
"NoJumpListPathTooltip"=""
[HKEY_CLASSES_ROOT\LibraryFolder\background]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shellex]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shellex\ContextMenuHandlers\New]
#="{D969A300-E7FF-11d0-A93B-00A0C90F2719}"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing]
#="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOT\LibraryFolder\DefaultIcon]
#="%SystemRoot%\\System32\\imageres.dll,-8"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex]
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\ContextMenuHandlers\LibraryFolder]
#="{0af96ede-aebf-41ed-a1c8-cf7a685505b6}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\IconHandler]
#="{14074e0b-7216-4862-96e6-53cada442a56}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\LibraryDescriptionHandler]
#="{fe5afcf2-e681-4ada-9703-ef39b8ecb9bf}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\PropertySheetHandlers\{66275315-bfa5-451b-88b6-e56ebc8d9b58}]
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\SharingHandler]
#="{fe5afcf2-e681-4ada-9703-ef39b8ecb9bf}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
#="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"
[HKEY_CLASSES_ROOT\LibraryFolder\shellex\{e357fccd-a995-4576-b01f-234630154e96}]
#="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"
[HKEY_CLASSES_ROOT\LibraryLocation]
[HKEY_CLASSES_ROOT\LibraryLocation\ShellEx]
[HKEY_CLASSES_ROOT\LibraryLocation\ShellEx\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\LibraryLocation\ShellEx\ContextMenuHandlers\OpenContainingFolderMenu]
#="{37ea3a21-7493-4208-a011-7f9ea79ce9f5}"
[-HKEY_CLASSES_ROOT\SystemFileAssociations\.library-ms]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.library-ms]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.library-ms]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.library-ms\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.library-ms\OpenWithProgids]
"LibraryFolder"=hex(0):
Just delete the non-working icons.
Then right click on library icon and press "Restore Original Icons".
so easy :p
Don't play with registry