Posts

Qt: Load resources from static or shared library

Image
Usually Qt resource file (.qrc) is embedded inside the main executable file for automatic access without any additional operation. Just compile and you have access to the resources from any point of the code by using the special path prefix required for the resource virtual file system. However, if required, is also possible to load resources from static or shared libraries with a minimal efforts.

QML: Change Android screen orientation programmatically

Image
In case your Android app require to dynamically set screen orientation for some particular interface is possible to directly call the system API allowing to choose one of the two standard orientations LANDSCAPE or PORTRAIT.


Visual Studio 2015 required executable runtime libraries

Image
Once finished to develop your software final step is start to release the installation package. Executable generated by Visual Studio compiler require some additional libraries called runtimes allowing to software to run correctly. You have to provide these libraries in your installation package for allow your software to run in each machine without problems.


Android: adb push and read-only file system error

Image
If you want to copy a file from your PC to the connected android device the fasten way is to use adb tool with push command. This command get as params the path of the local file and the remote path to copy in the device. Sometimes, especially if you use adb from Windows or MacOS, and error about read-only file system show up and you can not copy any file.

Java and https invalid certification error

Image
In case you are working under a restricted network with some particular proxy who have its own secure certificate system is possible you experiment some problem when Java runtime try to download something from an https address. Developing with Android Studio can show the problem cause try to download gradle package at first compilation.

Make Android/iOS resized icons package online

Image
Major mobile systems require you provide a set of image of same icon resized to support different DPI screens. This is a very boring step in develop your app but fortunately it exist some tool able to automatically make the job for us. 


Access PCI device registry from Linux user space

Image
In case you need to modify registry of some PCI devices from Linux user space you can easily do by access to the /proc/bus/pci path where all PCI devices found on the system are listed.