Calibre Plugin: Moly.hu 1.0.7

Some updates on the plugin:
Version 1.0.7 – 8 May 2018
Find switched family-first names as well
Update by otapi

Version 1.0.6 – 11 April 2018
The filter of relevant title and author by transliterate the extended Hungarian characters
Update by otapi

Version 1.0.5 – 29 March 2018
Search was too wide, now filters only to relevant title and author
Update by otapi

Calibre Plugin: Moly.hu 1.0.5

This Calibre plugin has been created to download metadata and cover image from Moly.hu.

Original post from https://www.mobileread.com/forums/showthread.php?t=193302 by Kloon: I must give credits to the original author, Daermond for making and publishing the initial plugin, but sadly he had abandoned it, so here I am taking over and fixing the errors that have popped up since.

Also, a big thumbs up for kiwidude, for sorting things out for me. And now an update by another author – fatsadt

Main features:

Can retrieve title, author, series, ISBN, comments, tags, publisher, year of publication, rating and a cover images Shows multiple results if possible (3 by default) Search based on ISBN if present, otherwise based on title and/or author Downloads multiple cover images if possible (5 by default)

Special Notes:

Requires Calibre 0.8 or later. Tested with 3.2.0.0

Installation Notes:

Download the latest zip file from the releases and install the plugin as described in the Introduction to plugins thread. Note that this is not a GUI plugin so it is not intended/cannot be added to context menus/toolbars etc.

Version 1.0.5 – 29 March 2018 Search was too wide, now filters only to relevant title and author

Calibre Plugin: Antikvarium_hu 2.0

This Calibre plugin has been created to download metadata and cover image from Antikvarium.hu. It was abandonded 6 years ago and Antikvarium.hu site changed a lot. I fixed and updated to get work now.

Original post from https://www.mobileread.com/forums/showthread.php?t=194094 by Kloon: I must give credits to the original author, Daermond for making and publishing the initial plugin, but sadly he had abandoned it, so here I am taking over and fixing the errors that have popped up since.

Also, a big thumbs up for kiwidude, for sorting things out for me.

Main features:

Can retrieve title, author, series, ISBN, comments, tags, publisher, year of publication, rating, language and a cover image Shows multiple results if possible (3 by default, can be 1-20) Search based on ISBN if present, otherwise based on title and/or author

Special Notes:

Requires Calibre 0.8 or later. Tested with 3.2.0.0

Installation Notes:

Download the latest zip file from the releases and install the plugin as described in the Introduction to plugins thread of Calibre forums. Note that this is not a GUI plugin so it is not intended/cannot be added to context menus/toolbars etc.

Version History:

Version 2.0.0 – 29 March 2018 Fix for Antikvarium.hu changes to html code Fix of error at opening options Better search url generation

 

See for more on the github page!

Add New Post, otapiGe, x C Secure https://otapigems.com/wp-admin/post-new.php OtapiGems o New • e Powered by Howdy, Otapi All Posts Add New Categories Media Pages Comments Content Views Appearance plugins Users Tools All-in-One WP Migration Settings SEO Insights Mammoth .docx converter Select docx file: Export OneN...s Postdocx Insert into editor Raw HTML Messages Export OneNote page to WordPress post Monday, January 1 5, 2018 2:16 PM I love OneNote: it gives freedom to take notes on several levels: available on both PC and Android, easy to create new page, easy to organize several pages on multiple level and comes with an excellent wyswyg editor with image and video embedding (well at least on Windows). So I often start the guides and tutorials as a OneNote page during the development. Then the only question, how to publish a OneNote page to WordPress without any difficult and manual overhead? Microsoft's Office apps are infamous ofthe bloattext of formatting - most cases its not so straightforward to strip down the documents to a clean html code.

Export OneNote Page to WordPress Post

Why is publishing WordPress post from OneNote is so difficult? No, it should not be difficult.

I love OneNote: it gives freedom to take notes on several levels: available on both PC and Android, easy to create new page, easy to organize several pages on multiple level and comes with an excellent wyswyg editor with image and video embedding (well at least on Windows).

So I often start the guides and tutorials as a OneNote page during the development. Then the only question, how to publish a OneNote page to WordPress without any difficult and manual overhead? Microsoft’s Office apps are infamous of the bloattext of formatting – most cases its not so straightforward to strip down the documents to get a clean html code.

I saw two solutions for OneNote->WordPress export before I found the most suitable for me. Both these have their problems, let me show them.

Microsoft’s WordPress Plugin: OneNote Publisher

As of now (2018) the OneNote Publisher plugin was not updated for 3 years – it very seems that MS released and forgot it completely. Even the title of the plugin page is simply just: ‘=== Plugin Name’ 🙂

Based on the very few feedbacks, it doesn’t work with current WordPress sites since 1-2 years.
Nevertheless, the installation would require to setup client authorization which would make this simple task (export a OneNote page to WordPress post) very overcomplicated and a bit security risky.

Zapier’s zap Add WordPress posts from new notes on OneNote:

Zapier is a cool company and service: they offer to connect apps and automate workflows. There can be connected OneNote to WordPress as well.

Well, to do that they need to get access to your OneNote – which sits most cases on your OneDrive. Though, they don’t need the user name and password for that, Microsoft gives authentication token for their service. You need to logon on Microsoft’s side, you don’t give your MS password to Zapier. However, they still have access to your whole OneNote, not just tonthe page you intended to export

Then they asks the user name and password to your WordPress site. I reckon this as a security risk: saving any user name with password at a 3rd party company is not a good idea. Even if you would trust Zapier (they are here since 2011), but what if a hacker would compromised their database? Although, at least no need an Administrator role user on fhe WordPress site, it’s enough a user with Author role. If you choose them, I strongly recommend to create an Author user just for their service if you choose them.

Easy convert OneNote page to a WordPress post

I wanted a solution which is easy, no need to give away my WordPress or other account to 3rd party company and still gives a clean result. Important was to keep the inline pictures, screenshots at place without any extra hassle. This is what I found:

Prerequirests:

  • Desktop OneNote (the app on Android does not enough)
  • Install Mammoth .docx converter plugin to your WordPress site

Instructions:

  • Select one page in OneNote
  • File->Export (Word Document docx). Save it to a temp local directory

Expon OneNote page to WordPress post 2. Select Format: File Types - OneNote 2016 Open Share Export Send Account Feedback Optio nS Export 1. Export Current: page Notebook OneNote 2010-2016 Section (*.one) Word Document t_docx) Word 97-2003 Document (•_doc) PDF ('pdf) XPS (4 xps) Single File Web Page ('_mht) Export

  • Go to your WordPress site, Add a new Post->Mammoth .docx converter->Select docx file

  • Review and import the content
  • Set the title of the post

  • Don’t forget to publish the page! 🙂
Create New Project Create Android Project Application name RobotCar. Devel. Tracking Company domain otapiGems.net Project location oidP r ojects\RobotCar. Devel .Tracking package name net.otapigems.robotcar.devel.tracking • Include C++ support Next Cancel

Set up OpenCV SDK for Android Studio

I’m using Visual Studio for C# stuff, but I didn’t found a free proper solution to use the OpenCV SDK for Android development in VS (Xamarin). Also I preferred Android Studio over Eclipse for Android development just to follow Google’s plans. Unfortunatelly, I didn’t find any tutorial of OpenCV’s portal to set up it for Android Studio. So I had to make some investigation for a manual (and preferable a simple) install.

Prepare the OpenCV SDK for Android Studio 3

First of all I had to download and extract to a temporary folder the Android Pack of the latest release of OpenCV SDK from the https://opencv.org/releases.html.

Then:

  • Import module from the extracted SDK folder – select the sdk/java/ folder of extracted to OpenCV SDK
  • Set the Destination Directory (should be different from the extracted SDK folder):

Import Project from ADT (Eclipse Android) Importing a project creates a full copy of the project and does not alter the original Eclipse project. Import Destination Directory:

Machine generated alternative text: Import Project from ADT (Eclipse Android) The ADT project importer can identify some .jar files and even whole source copies of libraries, and replace them with Gradle dependencies. However, it cannot figure out which exact version of the library to use, so it will use the latest. If your project needs to be adjusted to compile with the latest library, you can either import the project again and disable the following options, or better yet, update your project. Replace jars with dependencies, when possible Replace library sources with dependencies, when possible Other Import Options: Create Gradle-style (camelCase) module names Previous Finish Cancel Help

 

  • the target versions had to be fixed on all places: changed everything to API version 23 (Android 6.0) in all graddle script

 

15 puzzle - - openCVSample15puzzle - Android Studio 3.0.1 tile Edit View Navigate Code Analyze Hetactor Nuild Run Tools VCS Window Help -f GODenCVSamDle15Duzzle• C L. Li ? 15•puzzle openCVSample15puzzle build.gradle import-summary-txt • 15-puzzle • alocal.properties CopenCVLibrary331 - openCVSample15puzzle x O Puzzlel SActivityjava DopenCVLibrary331 openCVSample15puzzle G Gradle Scripts build.gradle (Project: Is-puzzle) build.gradle (Module: openCVLibrary331) build_gradle (Module: openCVSampIeISpu771e) *gradle-wrapper.properties (Gradle Version) settings.gradle {Project Settings) locaLproperties (SDK Location) apply plugir.: compi es •com. . application e rsxon bail drools version default Config I applicationld . opencv. samples . puzzle15" targetSdkVersion _ buildTypes I release mini prog

and Compile Sdk Version in all modules:

Project Structure properties Signing Flavors guild lypes Dependencies SDK Location Project Developer Se... Ads Authentication Notifications Modules opencvsa.- mopenCVLibr„. Compile Sdk Version guild Tools Version Library Repository API 23: Android 6.0 (Marshmallow) 26.02 Ignore Assets Pattern Incremental Dex Source Compatibility Target Compatibility 0K Cancel

  • Build the app with menu Build -> Rebuild Project
    • In case of error “Gradle sync failed: Minimum supported Gradle version is 4.1.” the following should be set: File -> Project Structure -> Project -> Gradle version to 4.1

Project Structure Gradie version SDK Location Android Plugin Version 301 Android Plugin Repository jcenter Developer Services Ads Authentication Notifications Modules hi, app Default Library Repository jcenter 0K Cancel

  • Close Project

Create a new OpenCVproject

File -> New -> New Project…

Create New Project Create Android Project Application name RobotCar. Devel. Tracking Company domain otapiGems.net Project location oidP r ojects\RobotCar. Devel .Tracking package name net.otapigems.robotcar.devel.tracking • Include C++ support Next Cancel

Choose the SDK version carefully:

Create New Project Target Android Devices Select the form factors and minimum SDK Some devices require additional SDKs. Low API levels target more devices, but offer fewer phone and Tablet API 23: Android (Marshmallow) By targeting API 23 and later. your app will run on approximately 39.3% of devil Include Android Instant App support Wear API 23: Android 60 (Marshmallow) TV API 21: Android (Lollipop) • Android Auto previous Next Cancel

Choose Empty Activity, switch off Backwards Compatibility (AppCompat):

Create New Project Configure Activity Cmt" a mpty "tivity Acuvtty Name j MainActivity Generate Layout File Layout Name activity_main Backwards Compatibility (AppCompat) If false, this activity base class will be Activity instead of AppCompatActivity previous Next Cancel Finish

File -> Project Structure -> app -> Properties: set Compile SDK version to the proper one (23 in my case):

Project Structure SDK Location Project Developer Services Ads Authentication Notifications Modules properties Signing Flavors Build Iypes Dependencies Compile Sdk Version API 23: Android 6.0 (Marshmallow) Build Tools Version Library Repository Ignore Assets Pattern Incremental Dex Source Compatibility Target Compatibility 0K Cancel

The target versions had to be fixed on all places: changed everything to API version 23 (Android 6.0) in all graddle script

15 puzzle - - openCVSample15puzzle - Android Studio 3.0.1 tile Edit View Navigate Code Analyze Hetactor Nuild Run Tools VCS Window Help -f GODenCVSamDle15Duzzle• C L. Li ? 15•puzzle openCVSample15puzzle build.gradle import-summary-txt • 15-puzzle • alocal.properties CopenCVLibrary331 - openCVSample15puzzle x O Puzzlel SActivityjava DopenCVLibrary331 openCVSample15puzzle G Gradle Scripts build.gradle (Project: Is-puzzle) build.gradle (Module: openCVLibrary331) build_gradle (Module: openCVSampIeISpu771e) *gradle-wrapper.properties (Gradle Version) settings.gradle {Project Settings) locaLproperties (SDK Location) apply plugir.: compi es •com. . application e rsxon bail drools version default Config I applicationld . opencv. samples . puzzle15" targetSdkVersion _ buildTypes I release mini prog

roundIcon doesn’t supported in API 23 (why Android Studio adds this then?), so this line should be removed from the AndroidManifest.xml:

android:roundIcon="@mipmap/ic_launcher_round"
  • Build -> Rebuild Project
  • Run -> Run ‘app’

The dummy sample should run properly

  • File -> New -> Import Module…

To use it in an app, add following line to the settings.gradle:

include':openCVLibrary331'

 

Add to build.gradle:

dependencies{

compileproject(':openCVLibrary331')

}

(change the version number 331 accordingly)

Error message on the phone during running an OpenCV app: “It seems that your device does not support camera”

After some days without any problems, suddenly I got this error message upon debugging an app via Android Studio. The solution is simple, but why didn’t asked this before?:

Settings -> Applications -> Permissions -> Permissions Control -> Camera -> find the app for debug and enable it

Just a side note: of course, the app should have the proper access requests in its AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA"/>

<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-feature android:name="android.hardware.camera.front"/>
<uses-feature android:name="android.hardware.camera.front.autofocus"/>

From <https://stackoverflow.com/questions/20666366/it-seems-that-your-device-does-not-support-cameraor-it-is-locked>

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 12860 (Thread-6)

During debug, this error can be fixed by manual install of OpenCV Manager instead of the Google Play one.

It seems that it is a problem of OpenCV Manager version distributed on Play Store (updated 21/09/15).

The version distributed with Android SDK works just fine (OpenCV-android-sdk/apk/OpenCV_3.1.0_Manager_3.10_{platform}.apk). You can download it from OpenCV website.

To install the apk from adb via command line:

adb install c:\AndroidProjects\temp\OpenCV-android-sdk\apk\OpenCV_3.3.1_Manager_3.31_arm64-v8a.apk

From <https://stackoverflow.com/questions/35843940/opencv-3-1-0-absdiff-does-not-work/39833284#39833284>

Install OpenCV Manager to Redmi 4X

OpenCV Manager is targeted to specific platforms and need to be installed on the phone the proper one. Unfortunatelly, it seems the OpenCV Manager available on the Google Play is outdated (2015) and crashes during running sample if the OpenCV. So I had to install the provided OpenCV Manager via the SDK.

Since I have Redmi 4X phone, I installed the OpenCV_3.3.1_Manager_3.31_arm64-v8a.apk.

see for more:

https://stackoverflow.com/questions/25610727/adding-external-library-in-android-studio

Alt-gr special key does not work in Android Studio

If you have a non-English keyboard with some extra characters available only via Alt-gr, you would need the following additional settings as well to reach all the characters on the keyboard.

Add this line:

actionSystem.force.alt.gr=true

to this file:

…\Android\android-studio\bin\idea.properties

From <https://stackoverflow.com/questions/19938618/strange-key-mapping-in-android-studio>

 

 

 

Set up Android Studio run via USB-ADB on MIUI 9

I have an affordable priced but good phone: a Xiaomi Redmi 4X. It has a customized Android by Xiaomi – the MIUI, which I love and hate in the same time. I love the simplicity of the launcher and the dense option of the settings and I hate that I need to change a lot of settings to able to receive push notifications for specific apps. Why that has to be so complicated, maybe because of security, I’m not sure…

Anyway, similar complicated setup needed to able to run and debug Android apps directly from Android Studio via USB. It was difficult to find out, but finally I got success, these were the steps how to achieve:

  • First have to enable the Developer options in the Android’s settings, like any other Android device.
  • Settings ->  Additional Settings -> Developer options -> Turn off Miui Optimizations -> Restart
  • Security -> Permissions -> Gear Icon at top right corner -> Turn On “Install via USB”
  • Settings ->  Additional Settings -> Developer options -> Turn On/Off “USB Debugging” -> Turn On “Install via USB”

Well, this is the tricky part. For some reason, the device allow to enable this only if has an added MI Account and have internet connection from China. Otherwise, it says ‘The device is temporarily restricted’. I assume Xiaomi wants to know who enable this setting, but they use a server which is behind the Great Firewall of China? Anyway, since I’m in Europe, I can workaround the second requirement via VPN very easily:

  • Install a free VPN app, e.g. PlexVPN from the Google Play
  • Signup for a free one day trial
  • Change the VPN server to China – Shanghai and connect the VPN
  • Turn On “Install via USB” should work now. You can even uninstall the PlexVPN after the enabling.
  • The result can be checked via the Select Deployment Target form: Run -> Profile ‘your app’. The phone should be on the list.

Most the steps I learned from the MIUI forum: http://en.miui.com/thread-544718-1-1.html

Check also the phone itself – it may ask permission to use USB debugging in a popup!

If still not work, check and fix the ADB driver like:

Install the Minimal ADB and Fastboot package from XDA developers (https://forum.xda-developers.com/sho….php?t=2317790 –> https://www.androidfilehost.com/?fid=745425885120698566)

Note, the “Stock” Google USB Driver didn’t worked for me for the Redmi4X. Which can be downloaded in the Android SDK manager and set up like this:

  • SDK Manager -> SDK Tools -> Install “Google USB Driver”
  • Go to Windows Device Manager, find “ADB Interface” -> update driver -> select manually -> select from list -> all devices -> select folder “C:\Users\Username\AppData\Local\Android\sdk\extra s\google\usb_driver” -> select “Android ADB Interface”
  • Windows will warn you that this driver might not work, install it anyway
  • Device manager will show “Android ADB Interface” in the category “SAMSUNG Android Phone”

For quicker run, you can disable the selector dialog by Run -> Edit Configuration -> General -> Deployment Target Options -> Target: change to USB Device

Good luck! 😉