cross-platform

Best Way to Use Business Logic Across Multiple Platforms (Cloud Functions?)

拥有回忆 提交于 2021-02-20 03:50:42
问题 I am in the process of creating a mobile and web version of an app using ReactJS and iOS respectively. Both of these platforms will pull data down from a Firestore database to use but I am wondering what is the best way to only write business logic once in order to do operations on the database? For instance, on both apps you will click a button that updates a field in the Firestore database, instead of writing the logic to do this in Javascript and then Swift, is there a best practice to

Reducing WAV sound file size, without losing quality

*爱你&永不变心* 提交于 2021-02-19 05:32:59
问题 My application needs to play sound files. The only cross-platform file format I can use is WAVE (I'm using QSound of the Qt framework). The file sizes of these sounds are quite large and I'd like to know if there is a way to reduce it, without losing (too much) quality. I need the file to be stereo. 回答1: You can zip them (using zlib or similar), then uncompress them on demand. If you've got many minutes of continuous wav it may be worth looking into audio-specific lossless compression

Reducing WAV sound file size, without losing quality

耗尽温柔 提交于 2021-02-19 05:32:44
问题 My application needs to play sound files. The only cross-platform file format I can use is WAVE (I'm using QSound of the Qt framework). The file sizes of these sounds are quite large and I'd like to know if there is a way to reduce it, without losing (too much) quality. I need the file to be stereo. 回答1: You can zip them (using zlib or similar), then uncompress them on demand. If you've got many minutes of continuous wav it may be worth looking into audio-specific lossless compression

Obtaining cross-platform path for config file (C/C++)

一世执手 提交于 2021-02-18 11:33:51
问题 I would like to store my application's settings in a configuration file. Under Linux (and Mac?) this (might) be /home/user/.config/app.conf while under Windows it (might) be "C:\Documents and Settings\username\Application Data\app.conf". It can of course be stored elsewhere, so the only way to get the correct location is to use a platform-specific function. Suffice it to say I don't wish to risk coding this myself and getting it wrong (because I lack access to some of these platforms for

Cross-platform build under Windows targeting Linux using CMake

淺唱寂寞╮ 提交于 2021-02-18 10:50:29
问题 I am developing a software in C++ on windows 32-bit (using MSVC++), but since I want to be able to use my software on every platform, I have decided to use CMake as my build generator. Therefore, I am still just a beginner in CMake. From the CMake tutorials, I understand that in order to cross compile codes, first a toolchain simulating the target platform should be installed on the host platform. Then using the appropriate target-platform C and C++ compilers provided by this toolchain, CMake

Electron app notification states the app sending notification is electron.app.<App Name> even after packaging

一个人想着一个人 提交于 2021-02-11 14:11:35
问题 After making a basic CPU Monitor app (https://drive.google.com/drive/folders/1f5yGQc4LFGj2baEjyHl5TT_LD5kM09uZ?usp=sharing) which sends notification when the cpu utilization goes over a certain percentage, I packaged the project. But the notification states that the app creating the notification is electron.app.CPU Monitor in place of CPU Monitor . How to exclude the unnecessary electron.app part? 回答1: This appears to have been answered recently: how can you overwrite or remove the signature

Install and compile irrlicht on windows (CLION)

你离开我真会死。 提交于 2021-02-11 12:31:58
问题 I'm a student developer and I've always dev on Linux. This is the first project I have to do crossplateform. So I installed Git Bash, Visual Studio Pro and CLion on Windows. Usually I compile with GCC and Makefiles. So on Linux I installed the lib run the examples of the lib and it work. But when I want to compile it on Windows, it gets complicated. I use the example files given by Irrlicht to make sure it doesn't come from the sources. Here is my CMakeLists.txt cmake_minimum_required(VERSION

How to manage separate GUI processes in a Qt application?

心不动则不痛 提交于 2021-02-11 12:23:38
问题 How would a Qt GUI application start separate GUI applications in different processes and managed their windows? Let's say I have a Qt application call myApp. The user is able to launch external application available on the OS from within myApp that run in their own separate process. I know about QProcess, but the difficult part that I haven't been able to figure out is managing the windows. myApp will need to have it's own title bars for windows and also be cross platform. If I launch an

How to manage separate GUI processes in a Qt application?

邮差的信 提交于 2021-02-11 12:18:10
问题 How would a Qt GUI application start separate GUI applications in different processes and managed their windows? Let's say I have a Qt application call myApp. The user is able to launch external application available on the OS from within myApp that run in their own separate process. I know about QProcess, but the difficult part that I haven't been able to figure out is managing the windows. myApp will need to have it's own title bars for windows and also be cross platform. If I launch an

Flutter: How to open PDF document with specific page range

回眸只為那壹抹淺笑 提交于 2021-02-10 23:15:57
问题 I want to open a PDF document with specific page ranges. Like if a PDF have 10 pages. then i want to open from Page 3 to Page 7. I have tried multiple packages which are available online. which are not providing this functionality. For example: flutter_full_pdf_viewer 1.0.6 flutter_plugin_pdf_viewer 1.0.7 - This provides the options, but this has a lot of dependency issues, Therefore i don't want to use this. pdf_viewer_plugin 1.0.0+2 Therefore please recommend me some library, or if somebody