cross-platform

Downsides of using Appcelerator Titanium (or equivalent)?

。_饼干妹妹 提交于 2019-12-21 02:27:18
问题 At our company there is a huge push for cross-platform (iOS and Android) development. Appcelerator Titanium is being considered (and seems to be the only thing that's being considered) to achieve multi-platform development without extra development time. Everyone here can think of reasons to use Titanium. For reasons against using Titanium I guess the performance of the resulting "native" app from Titanium may not be as good as an app written in Objective-C for iOS. How significant would the

Know of any cross platform socket library (windows & Linux) in C?

筅森魡賤 提交于 2019-12-20 18:00:18
问题 I am looking to do socket communications (listen, accept, connect, recv, send, disconnect) in both linux and windows. My project is in C, so unless someone can think of a way for me to integrate C++ libraries into a C project the library will have to be in C as well. Ultimately, I would like the library to have ipv6 support and non-blocking mode, however, these things are not essential. Does anyone know of any libraries/cross-platform example code? Even just large code snippets would help. So

C++ cross platform build automation

冷暖自知 提交于 2019-12-20 17:33:05
问题 I have a cross platform C++ project that targets and successfully compiles on Linux, OSX and Windows. I'm using GNU Make to handle the building on all platforms, gcc for compiling under Linux & OSX and cl.exe to compile under Cygwin on windows. My current workflow consists of coding under OSX and then building on each individual platform to test code portability. This process is somewhat time consuming and I was wondering if it is possible to automatically build on all platforms in one step?

Is it safe to use sys.platform=='win32' check on 64-bit Python?

情到浓时终转凉″ 提交于 2019-12-20 15:45:27
问题 The usual check to differentiate between running Python-application on Windows and on other OSes (Linux typically) is to use conditional: if sys.platform == 'win32': ... But I wonder is it safe to use today when 64-bit Python is more widely used in last years? Does 32 really means 32-bit, or basically it refers to Win32 API? If there is possibility to have one day sys.platform as 'win64' maybe such condition would be more universal? if sys.platform.startswith('win'): ... There is also another

List of differences between SQL databases

匆匆过客 提交于 2019-12-20 11:03:44
问题 Most SQL databases follow the ANSI SQL standards to a degree, but The standard is ambiguous, leaving some areas open to interpretation (eg: how different operations with NULLs should be handled is ambiguous) Some vendors contradict the standard outright or just lack functionality defined by the standard (eg: MySQL has a list of differences between the standard and their implementation) Some databases will behave differently depending on how they are configured, but configuration can be

Cross-platform alternative to COM

旧巷老猫 提交于 2019-12-20 10:43:47
问题 I've been enamoured with component based programming (be it with COM, another system, or just using the paradigm in plain C++). It requires a bit of getting used to, if one is usually used to the "traditional" OOP model, but it's definetely worth it. It's made my code more maintainable and easier to extend. The project I'm currently working on is using the paradigm, but no set system. However, I'd really like to find some sort of system I could use with the following requirements. Switching

Xcode5: Failed to register "/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle

ぐ巨炮叔叔 提交于 2019-12-20 10:28:44
问题 My library has some type converters. I'm registering some OSX and iOS type converters, like so: When I compile for iOS, I'm getting some errors related to not being able to find UIKit. Here's how I compile for iOS: xcodebuild -destination OS=${module.sdk.version},name=iPhone -workspace ${workspace} -scheme '${library.ios.scheme}' The ${} tokens are patched in by my build system. When building I get: __build.library.ios.simulator: [exec] Details: Failed to register "/System/Library

Is there something like Perl's Win32::FileNotify for Linux or OS X?

柔情痞子 提交于 2019-12-20 03:20:00
问题 I've been using Win32::FileNotify on Windows, and I was curious to know if there were something similar for Linux and OS X. I haven't been able to find such a module using Google. Does anyone here know of such a thing? 回答1: File::ChangeNotify sounds like a cross-platform way to do this. 回答2: For systems where famd can run (Irix, Linux, BSDs, most Unices) there is SGI::FAM and Sys::Gamin, both of which do not build straight out of CPAN or tarball, but do work well once you get them working.

subprocess.Popen: 'OSError: [Errno 13] Permission denied' only on Linux

隐身守侯 提交于 2019-12-20 02:57:04
问题 Code and logs have changed a lot (due to a major rewrite) since the question was asked. When my code (given below) executes on Windows (both my laptop and AppVeyor CI), it does what it's supposed to do. But on Linux (VM on TravisCI), it throws me a permission denied error. Error: $ sudo python3 test.py Testing espeak4py Testing wait4prev Traceback (most recent call last): File "test.py", line 10, in <module> mySpeaker.say('Hello, World!') File "/home/travis/build/sayak-brm/espeak4py/espeak4py

Create a mobile app that listens to incoming phone call events

﹥>﹥吖頭↗ 提交于 2019-12-20 02:55:24
问题 As the title suggests, I would like to create a mobile app that runs in the background and catches "incoming call" events. Moreover I would like to use a Cross-Platform Development Tool to do this. I looked at three tools: PhoneGap, Rhomobile and Appcelerator. But I couldn't find any documentation or examples that suggest they support such events. It seems like the iPhone (correct me if I'm wrong) does not support this but Android and Blackberry do. Did I miss something when I looked at the