cross-platform

Cross-Platform Bonjour

Is it possible to write a program using Bonjour or a Bonjour-compatible library in a cross-platform language such as Java or Python? If so, where can I find the files needed for this? ...

Java <-> Python localhost stream, Java does not continue

Problem Summary I've got an application which combines both Java and Python, the two languages communicating across a localhost socket. (I cannot use Jython, I can't throw out Java for PyGame, and I can't throw out Python for pure Java.) The application opens the socket between Python and Java and a socket from Java to a central server...

Selenium, automated frontend testing on different OS

My complete working environment is Linux based (Ubuntu for desktop and server). I use Hudson and Selenium to execute tests on my EE6/ZK web application with any browser available for Ubuntu. But how would I test my application with IE (Windows) without setting up a Selenium server in Windows. Thought I could run Windows in a VMWare or V...

How to code ContactsContract so that it runs in 2.2 and doesn't crash 1.5?

I have the following piece of code in my Android application that looks up a contacts ID, I have just changed the target from 1.5 to 2.2 but with a min SDK of 3 (1.5) so that I can use the ContactsContract Uri in 2.2 and the People Uri in 1.5. However the code leads to the following error when run on 1.5 devices: 07-27 15:02:53.382: WA...

How to generate every possible combination of a string when given a list of values

Say I have a list of values, this list can be of any length: "100","200","300","400","500", ... And I have a template string that has a few tokens that need to be replaced: "@token1@-@token2@-@[email protected]@tokenN@" Using the list of values, how can I generate every possible combination of the values in the template? Values can be...

C++ what is worse abstracting away or converting?

Hi, I am in doubt: Or I abstract away my string-type and implicitly use the local stringtype or I use something like ICU and convert to the local type when needed. Let me give you an example the following: enum StringKind { ICU_STRING, STD_STRING, MSCORLIB_STRING, NSSTRING, ... /* You get the picture */ }; template<class E...

Can I develop for Android and iPhone with Adobe AIR if I don't care about the App Store?

As far as I understand, applications made with Adobe AIR have been blocked from the App Store. If I wanted to utilize AIR anyway to create a cross-platform app (for iPhone and Android) would it be possible to distribute the apps outside of the App Store? I have very little experience with the iPhone, but I know that in Android you can t...

C#/Java/Ruby - Hash Alogrthym for Passwords - Cross-Lang/Platform

What is a good password hashing algorithm to use from C#, if later on you may know that there are going to be Java and Ruby programs that may also need to 'login'/authenticate a user. Anything out of the box in .NET that translates well to other languages and is easy to use. ...

Can a executable behave differently when run on a Virtualized Server?

Let's say I have a piece of code that runs fine on an OS. Now, if I install that OS on a virtual machine (server virtualization), and run that code on that, is it possible that the code behaves differently? If so, what are the prerequisites for that? For example, does it have to be compiled machine code (in other words, are interprete...

How to create an application in .NET to be able to run on Linux or other Operating Systems

I have heard that applications created in .net can be run on linux and other operating system using mono framework. Up to what extent it is true. How it makes an application platform independent. How monoframework recognizes dll's of .net How can i host my site created in asp.net to be hosted on linux server. What all softwares do I n...

Has any one used CrossKylix for real Cross-platform development?

New version of CrossKylix as been updated two weeks ago. Even Kylix has discontinued long time ago, but it's seems still used by some of Delphi developers. Has any one used it successfully on cross-platform development for Windows and Linux? ...

Are many static variables in functions using up to much memory?

Hi, I want to write a cross-plattform wrapper for some OS specific (Linux/MacOSX/Windows) calls to get the number of cores of the CPU etc. My idea was to put all of them in single functions with static variables, so stuff like the number of cores that does not change will be processed only once. int getNumCPUCores() { static int nu...

Font-family selection for a web app

I have an existing web app, which has been coded and tested against Windows XP+, IE and Firefox. I am using the following font-family : Segoe UI, Verdana, Helvetica, Sans-Serif; Our customers like Segoe UI on Windows, but we find that the typefaces degrade poorly on MacOSX, and mobile devices, as well as if ClearType is not enabled. ...

Platform-native preferences dialog with Qt on Mac, Gnome, KDE, and Windows

On Mac and Gnome, native applications use an application preferences dialog that immediately applies the chosen settings as they are selected. On Windows and (I think) KDE, preferences are applied only when an "Apply" or "OK" button is pressed. Are there any built-in Qt goodies to do this for you, or do you have to include several #ifde...

How would you design & implement a Cross Platform synchronization mechanism ?

How would you design, architect and implement a Cross Platform synchronization mechanism ? Targeted Platforms : Windows, Windows Mobile 6.5 & 7, Iphone, MacOs X, Android It's for synchronizing a very simple desktop CRUD app. Please note that I've got nothing running in a cloud, that's why I'm wondering if I can't capitalize on an exis...

Same C code producing different results on Mac OS X than Windows and Linux

I'm working with an older version of OpenSSL, and I'm running into some behavior that has stumped me for days when trying to work with cross-platform code. I have code that calls OpenSSL to sign something. My code is modeled after the code in ASN1_sign, which is found in a_sign.c in OpenSSL, which exhibits the same issues when I use it....

What languages or libraries will I need in order to write a cross-platform game?

What languages or libraries will I need in order to write a cross-platform game? Can I just build one game that will work on all platforms, or must I recompile for each platform? ...

How to add boost to my project?

I work on a cross-platform (Windows, Linux, Solaris) project. I want to use Boost's shared_ptr in this project. How can I install it, and redistribute it with the project to the customers? I don't have root permissions on Linux/Solaris, so I probably have to add Boost' sources to my sources, and build it together. Also, our version of...

What can I do to avoid TCP Zero Window/ TCP Window Full on the receiver side?

Hi everyone, I have a small application which sends files over the network to an agent located on a Windows OS. When this application runs on Windows, everything works fine, the communication is OK and the files are all copied successfully. But, when this application runs on Linux (RedHat 5.3, the receiver is still Windows) - I see in...

What validation must a form include? Best practices

I am trying to put together a checklist things I need to keep in mind when creating forms. I know I need to filter input content. I already am filtering for errant html and scripts, escaping mysql, and limiting to data types(phone numbers are 10+ digits with training extension digits, email has to be email, strings cannot contain html ...