cross-platform

include udf in python ?

i've a small user defined function in python, say fib(n), how do i use that in other programs or modules? def fib(n): should i use import or is there any other feature? Also i'm learning python in eclipse IDE, it wont support print "any string" but i'm forced to use like, print("string") in python manual online, its given its cr...

Cross-platform end-user-help authoring tools

What are some good authoring tools for creating cross-platform help files for end-users? (Our application is using the Qt framework, if that makes any difference.) Note: I'm not interested in internal API documentation--we're using doxygen for that. Ideally, a solution would: Allow us to manage all help content (text, table of conten...

Cross Platform Tips, Tricks & Gotchas

If you've worked on a cross platform development project what advice do you have for someone (like myself) considering starting one? Examples: What worked? What didn't? What problems did you run into and how did you solve them? Did you aim for consistent appearance and functionality across all platforms or try to take advantage of each...

Would there be a market for this idea (cross platform VM for iPhone OS)

Note: The VM mentioned in here is not like in VMWare or VirtualBox, it is more like Java Virtual Machine (JVM), (as well as Python and Ruby). That is, the fact that objective c is an interpreted language, should make it easier. For a long time I wondered if the following idea worth a nickel or just a waste of time and energy. I am wi...

Is there any crossplatform C/C++ lib for files searching? (on hard drive)

Is there any crossplatform C\C++ lib for files searching? (on hard drive) What I need is simple - be able to find all images on users computer in all folders and subfolders with sise >= 200kb. How to do such thing? Can any one help me? Please. ...

Simple cross-platform code benchmarking

I'm aware of tools in the Xcode utilities for monitoring and benchmarking applications, but I'd like to test a few different (low level) implementations of library components, preferably across osx/linux/windows. Is there any framework for code benchmarking, similar to say unit tests? I'd just like some convenient api functions to accura...

Should I use an interface or factory (and interface) for a cross-platform implementation?

Example A: // pseudo code interface IFoo { void bar(); } class FooPlatformA : IFoo { void bar() { /* ... */ } } class FooPlatformB : IFoo { void bar() { /* ... */ } } class Foo : IFoo { IFoo m_foo; public Foo() { if (detectPlatformA()} { m_foo = new FooPlatformA(); } else { ...

cmakeable version of protocol buffers.

Hello, StackOverflow community! I want to embed protocol buffers into some project that supports cmake. As I undrestood, google doesn't provide this Any suggestions? Who tried to create cmakeable protocol buffers library? Are there lots of not cross-platform places at the source or there is no at all. Where can I take it if it exists?...

Cross-platform build UNC share (Windows->Linux) - possible to be case-sensitive on CIFS share?

To optimize builds between Windows and Linux (Ubuntu 10.04), I've got a UNC share of the source tree that is shared between systems, and all build output goes to local disk on each system. This mostly works great, as source updates and changes can quickly be tested on both systems, but there's one annoying limitation I can't find a way ...

how to make a python or perl script portable to both linux and windows?

I was wondering how to make a python script portable to both linux and windows? One problem I see is shebang. How to write the shebang so that the script can be run on both windows and linux? Are there other problems besides shebang that I should know? Is the solution same for perl script? Thanks and regards! ...

How to identify/handle text file newlines in Java?

Hi Everyone! I get files in different formats coming from different systems that I need to import into our database. Part of the import process it to check the line length to make sure the format is correct. We seem to be having issues with files coming from UNIX systems where one character is added. I suspect this is due to the return ...

Android-iPhone single codebase cross development

Is there a way, apart from using HTML and JavaScript on a web control, to have an (almost) single codebase for an application that should run on iOS and Android? The big issue is of course that they use a different language (Java for Android, Objective-C for iOS) for application development. It would be nice to have some sort of meta-la...

How to create a cross-plataform application, doing the interface modules (Mac/Qt/GTK+) in a totally independent manner? (Like Transmission)

I'm amazed at Transmission, a BT client. It has a Mac, a GTK+, a QT, a Web Client and a CLI interface to it. I tried reading some of it's source to understand how he creates all these interfaces, but no luck. Does the developer creates them using a single ide? Or does he create the interface logic in each specific environment (speciall...

Setting the default stack size on Linux globally for the program

So I've noticed that the default stack size for threads on linux is 8MB (if I'm wrong, PLEASE correct me), and, incidentally, 1MB on Windows. This is quite bad for my application, as on a 4-core processor that means 64 MB is space is used JUST for threads! The worst part is, I'm never using more than 100kb of stack per thread (I abuse th...

Upgrading a win32 VCL application to cross platform

Delphi 2011 will allow to compile applications that will run also on Mac OS. (Note: I wrote this sentence before Delphi-XE preview was out, and at that time everybody was speaking of ProjectX). Is it realistic to think that it will be possible to "migrate to cross platform" a win32 application? Will 3rd party component vendors make the...

Cross-platform general purpose C++ RPC library

Here's the task: Imagine, we have an applications and a plug-in for it (dynamic library). Interface between the application and the plug-in is completely defined. Now I need to run the application and the plug-in on different computers. I wrote a stub for the plug-in on a computer where the real applications is running. And the applicat...

Cross-platform GUI toolkits with WPF-style composition capabilities

A huge advantage of WPF over, say, WinForms is its composability. To quote Programming WPF: One level up, WPF provides its “content model,” which allows any control to host any group of other controls. You don’t have to build special BitmapButton or IconComboBox classes; you put as many images, shapes, videos, 3D models, or whate...

Transferring files from disk (Linux on virtual machine) to Windows shared folder?

Hi, I'm using RedHat on a Hyper-V virtual machine. I need to copy files from the CD (captured to the Redhat VM) into a Windows shared network folder. After copying some files, the windows side pops up an "Invalid MS-DOS function" message, although everything looks fine from the Linux side. What could be the reason for that? Do I need t...

Develop for OpenGL ES on the desktop

I'm developing a desktop OpenGL application, and I want to make sure it'll be compatible to OpenGL ES, so that it'll be easier to port it to mobile platforms later. What's the best way to make sure I'm using only the OpenGL ES specifications in my software? ...

How can one bake custom data into an Adobe AIR distribution?

I would like to have an AIR application available for web download, but have some data customized per-user-download. Think CD-key, or in this case an encryption key and user name, so that the downloaded version can connect to a website and know who it is that downloaded it. As a fail-back if this is not possible, I could require the user...