cross-platform

Best practices for portable C#

I am looking to write some C# code for linux/windows/mac/any other platform, and am looking for best practices for portable code. Project mono has some great porting resources. What are the best practices for portable C#? ...

How to monitor the computer's cpu, memory, and disk usage in Java?

I would like to monitor the following system information in Java: current cpu usage** (percent) available memory* (free/total) available disk space (free/total) *note that I mean overall memory available to the whole system, not just the JVM I'm looking for a cross-platform solution (Linux, Mac, Windows) that doesn't rely on my own ...

Is there a way to embed a browser in Java?

Is there a way to embed a browser in Java? ...

How do you keep the machine awake?

I have a piece of server-ish software written in Java to run on Windows and OS X. (It is not running on a server, but just a normal user's PC - something like a torrent client.) I would like the software to signal to the OS to keep the machine awake (prevent it from going into sleep mode) while it is active. Of course I don't expect the...

Solid Config for webdev in emacs under linux AND windows ?

I have a windows laptop (thinkpad) and somewhat recently rediscovered emacs and the benefit that all those wacky shortcuts can be when the arrow keys are located somewhere near you right armpit. I was discouraged after php-mode, css-mode, etc, under mmm-mode was inconsistent, buggy, and refused to properly interpret some of my files. (I...

Cross platform .Net?

If you were to write an GUI application that runs locally and calls a webservice, to be cross platform, can you do it with .Net, what tools would you recommend? I was considering Java as it would be relatively easy to pick up due to its C# similarity and then I could use the JVM. ...

Where should cross-platform apps keep their data?

Hi there, I'm building an application that is targeting Windows, Mac and Linux soon. I was wondering where should I keep application data such as settings, etc. Application's installation folder is the easiest choice, but I think that might be a problem with new Vista security model. Besides, users might want different settings. Is it...

cross platform IPC

Hi, I'm looking for suggestions on possible IPC mechanisms that are: cross platform (WIN32 and Linux at least) Simple to implement in C++ as well as the most common scripting languages (perl, ruby python etc). Finally, simple to use from a programming point of view! What are my options? I'm programming under Linux, but I'd like what...

Is .NET/Mono or Java the better choice for cross-platform development?

How much less libraries are there for Mono than for Java? I lack the overview over both alternatives but I have pretty much freedom of choice for my next project. I'm looking for hard technical facts in the areas of performance (for example, I'm told Java is good for threading, and I hear the runtime code optimization has become very ...

Using GCC from within VS 2005(8) IDE

Is there a way to utilise the GCC compiler whilst still being able to develop via the Visual Studio IDE? Our project is cross-platform, and I quite frequently get into trouble from my colleague because I'm checking in code that's not standards compliant (this can be attributed to the VS compiler!). I'd still like to be able to compil...

Best tool for the job: cross-platform, open source, on- and off-line tool development.

The goal is to build tools and applications that have both web-based and standalone versions for multiple OS's (*nix, Mac, Win, etc.). I've got a general idea of how to architect software that is flexible enough to accomplish this, but ... Is there a language or framework that's designed for or uniquely suited to this task? EDIT: Tha...

What should a developer know before building a public web site?

What things should a programmer implementing the technical details of a web site address before making the site public? If Jeff Atwood can forget about HttpOnly cookies, sitemaps, and cross-site request forgeries all in the same site, what important thing could I be forgetting as well? I'm thinking about this from a web developer's per...

Making a C#/Winform application cross-platform - should I use AIR, Mono, or something else?

I have an app that I've written in C#/WinForms (my little app). To make it cross-platform, I'm thinking of redoing it in Adobe AIR. Are there any arguments in favor of WinForms as a cross-platform app? Is there a cross-platform future for Winforms (e.g., Mono, etc.)? Suggestions for cross-platform UI development? By cross-platform I mea...

Is there a platform independent way (Java?) to read an audio CD's TOC?

I would like to avoid using native libaries if at all possible. Surely there is a better way to solve this issue for Linux, Windows and Mac OS X. ...

Cross platform RTF control?

Does anyone know of an RTF control that can be used on Linux/Windows/Mac? It's unfortunate that I have to mention it, but it actually has to be able to save and open rtf files... unlike wxWidgets wxRichTextCtrl for instance. Edit: Thanks to HappySmileMan for his reply. Better still if it's more of a standalone and not a part of a large ...

Poppler programming

Poppler is a classic example of something without documentation that you would prefer be documented. This question is language agnostic, just asking about the general idea.. In short, how do you make a PDF viewer control with poppler? From what I can tell, you'd need to use poppler to render it to some surface, which sounds good up until...

Issues with using ruby (on rails) in 64-bit multiple platforms

Has anyone used ruby in 64-bit environments in various platforms (HP=UX, Solaris, AIX etc.) in a commercial production environment that heavily relies on database. Have you faced any issues / bugs during these times? I know that overall things look ok. Compilation, deployment etc. I would like to know if you encountered any 'gotcha's ...

How to best implement simple crash / error reporting?

What would be the best way to implement a simple crash / error reporting mechanism? Details: my app is cross-platform (mac/windows/linux) and written in Python, so I just need something that will send me a small amount of text, e.g. just a timestamp and a traceback (which I already generate and show in my error dialog). It would be f...

How do I use my own compiler with Nant?

Nant seems very compiler-centric - which is guess is because it's considered a .NET development system. But I know it can be done! I've seen it. The platform we're building on has its own compiler and doesn't use 'cl.exe' for c++. We're building a C++ app on a different platform and would like to override with our own compiler. Can anyo...

Easiest cross platform widget toolkit?

What is the easiest cross platform widget toolkit? that minimally covers Windows, osx, and Linux with a c or c++ interface? ...