cross-platform

Is there a cross-platform way to open a file browser in Python?

倾然丶 夕夏残阳落幕 提交于 2019-12-09 14:51:17
问题 I'm thinking something along the lines of the webbrowser module, but for file browsers. In Windows I'd like to open explorer, in GNOME on Linux I want to open nautilus, Konqueror on KDE, etc. I'd prefer not to kludge it up if I can avoid it. ;-) 回答1: I'd prefer not to kludge it up if I can avoid it. Weeell I think you are going to need a little bit of platform-sniffing kludge, but hopefully not as much as the ghastly command-sniffing webbrowser module. Here's a first stab at it: if sys

Is it possible to stream video p2p (or other technology) between iOS, Android, Browser

淺唱寂寞╮ 提交于 2019-12-09 13:20:54
问题 I'm just learingn mobile web development and thinking about task: Is there a way to make a videostream betwen iOS, Android and Browser. What architecture and technology it should use. I already read this quetion on SO Peer-to-Peer video from iOS to Android? but there is nothing about browsers. If it can't be p2p and crossplatfom at the same time. I thought i shoud use Red5 server or etc. or Xmpp So I'm asking your advice and opinion here. Any information would be valuable 回答1: Yes, You can !!

Qt Program deploy to multi platform, how?

时光毁灭记忆、已成空白 提交于 2019-12-09 12:28:25
问题 Am new in Qt Programming and i would like to develop a program which i want to run in Windows, Linux(ubuntu), and Mac. I heard that Qt support mutli-platform application development, but my Question is that, would any Qt library need to run these appilication in Ubuntu after i deployed or compiled? 回答1: If you deploy on Ubuntu, and therefore use a .deb package, then your job is easy since you just have to require qt as a dependency and apt will automatically install it as needed. Windows and

Is there an environment-agnostic way to detect Javascript Host Objects?

拈花ヽ惹草 提交于 2019-12-09 10:10:23
问题 I'm writing a Javascript stacktrace library. The library needs to detect wether a particular object or function was created by the programmer or was there as part of the environment (including built-in objects). Host objects are becoming a bit problematic due to their unpredictable behaviour, so I'm after an environment-agnostic way to determine if a particular object in Javascript is a host object (see ECMAScript 3 - 4.3.8). However, distinguishing host objects from native objects and

How can I check (peek) STDIN for piped data in Perl without using select?

冷暖自知 提交于 2019-12-09 09:14:11
问题 I'm trying to handle the possibility that no arguments and no piped data is passed to a Perl script. I'm assuming that if there are no arguments then input is being piped via STDIN. However if the user provides no arguments and does not pipe anything to the script, it will try to get keyboard input. My objective is to provide an error message instead. Unfortunately, select() is not portable to some non-POSIX systems. Is there another way to do this with maximum portability? 回答1: Perl comes

Good language & framework for cross platform (windows & mac) desktop application [closed]

♀尐吖头ヾ 提交于 2019-12-09 07:16:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . The last cross platform desktop development I did was Java/Swing. What about flex? 回答1: Don't do it. If you need to go cross-platform, write the main guts of your application in a business logic layer that doesn't depend on any GUI framework and then use the native platform API to finish each app. Your users

Method in Java to create a file at a location, creating directories if necessary?

99封情书 提交于 2019-12-09 06:05:39
问题 I am attempting to write a file using java.io, where I am trying to create it at the location "some/path/to/somewhere/then-my-file" . When the file is being created, any of the directories on the path may or may not exist. Rather than throw an IOException because there are no such directories, I would like the directories to be created transparently, as and when required. Is there a method that will create any directories required on the way to writing a file? I am looking for something

Create application for web & desktop

南楼画角 提交于 2019-12-09 04:23:18
问题 I want to create one application and it should work on both desktop (without internet connection) and in the web. The applications should be the same (I mean UI and code) and work on both web and desktop (or maybe with a little difference) As server side and desktop application programming language I decided to use Python. As UI I want to use HTML5 + Javascript (JQuery) + CSS So, can you help me what tools should I use? I mean maybe some frameworks for my task. What framework should I use in

Using snprintf in a cross-platform application

元气小坏坏 提交于 2019-12-09 02:51:24
问题 I am writing a C program that is expected to be compiled with all major compilers. Currently I am developing on GCC on a linux machine and will compile on MSVC before committing the code. To make the cross-compiling easy, I am compiling with -ansi and -pedantic flags. This worked well until I started using snprintf which is not available in C89 standard. GCC can compile this without the -ansi switch but MSVC will fail always as it doesn't have C99 support. So I did something like, #ifdef

Is Ruby any good for GUI development? [closed]

半腔热情 提交于 2019-12-09 02:28:00
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am considering creating a GUI-based tool that I want to be cross-platform. I've dismissed Java, as I personally do not like Swing. I'm currently considering C# and using Mono to make it cross-platform. However I'm wondering whether new-fangled cross-platform languages like