mono

Block All Keyboard Input in a Linux Application (Using Qt or Mono)

Hi, I'm working on a online quiz client where we use a dedicated custom-made linux distro which contains only the quiz client software along with text editors and other utility software. When the user has started the quiz, I want to prevent him/her from minimizing the window/closing it/switching to the desktop or other windows. The quizz...

Language Interoperability in .NET (CLR) and Mono

Let's say I need to use Python and C++. I can call Python function from C++ with Python C API, and reverse is possible with SWIG or equivalent. How about .NET? I know there are IronPython and C# that finally produces .NET assembly. Is there any well-defined language interoperability mechanism in .NET so that one can use whatever functi...

How to configure oracle instantclient for mono?

Mono is really awesome. Some of our applications worked in linux out of the box even without recompiling the binary. However I am having tough time to configure oracle instantclient to use it with mono. I installed instantclient on a CentOS VM(by installing instantclient rpm) but however I did not find TNSNAMES.ORA anywhere. I searche...

I'm confused about some Reflection code, and looking for insight.

I'm developing for the iPhone using C# and Mono's Full AOT technology. According to their Limitations page (link text), unlike traditional Mono/.NET, code on the iPhone is statically compiled ahead of time instead of being compiled on demand by a JIT compiler. When running on the hardware, the following exception occurs: ExecutionEngin...

Mono : Is it possible to host a web/wcf service from console application?

I know with .NET we can host wcf service from a console application without the need of webservers like IIS or apache. Is it possible to do the same with Mono 2.6.1 on a RHEL 5 or CentOS? Any links to any documentation will be highly helpful. ...

mono : Is remote debugging possible with monodevelop?

mono : Is remote debugging possible with monodevelop? I want to remote debug a console application running on a remote RHEL server with monodevelop installed on CentOS development machine. Is this possible with monodevelop? ...

Quick top level server language question.

Right, so if you have to decide on a server-side language for a distributed Linux-based server backend, would you choose: PHP Mono ASP.net Java Python (I've just added this because Google use it) As a C++ programmer, I'm thinking Java+Tomcat, but I'd love to hear experienced thoughts here, especially relating to debugging and IDE (li...

Installing MonoTouch - ibtool not found error

[edit] Found the solution. Reinstall EVERYTHING - xcode, mono, monodevelop and monotouch. Now it works. yay. [/edit] I've had Xcode (3.2.1 - SnowLeopard, iphone 3.1.3) installed for a while, and I can run and build apps on it fine. I installed MonoTouch, as I want to leverage the 8+ years of .NET skills I have :) So I installed: M...

GTK:Button onHover effect different on Linux and Windows

Hi, I have a GTK button on my GUI app, however, the hover effects are different for both Linux and Windows: Heres Linux: http://imgur.com/DKAy6 Heres Windows: http://imgur.com/v0FFU I did not do anything fancy to the animations, in fact, the animation is default, how can I make it uniform? Thank you. ...

Monovation: Assembly Injection into Live Processes

I read this article by Miguel de Icaza on attaching an assembly into a live mono process. How is this any different to attaching a DLL to a running process? I do this already, but once the DLL is attached, it can't be unloaded without using an AppDomain (which I am trying to avoid). Miguel talks about "patch[ing] running programs", but...

Code won't work under mono, any ideas whats wrong?

Mono won't fire the following code: I get internal server error 500, error writing request error. Code works perfectly under normal .net.... any ideas why its broken and how to fix it? [WebServiceBinding] public class testService : System.Web.Services.Protocols.SoapHttpClientProtocol { private string DummySoapRequest = @"<...

How can I have a (semi) transparent background in GTK Sharp?

How can I have a (semi) transparent background in GTK Sharp? ...

GTKSharp, Pango, set font size quirkiness

Hi guys, I'm using GTK Sharp to work on some GUI for my app. Take a look at this chunk of code: Pango.FontDescription fontdesc = new Pango.FontDescription(); fontdesc.Family = "Sans"; //fontdesc.Size = 12; fontdesc.Weight = Pango.Weight.Semibold; SyncInfo.ModifyFont(fontdesc); Gdk.Color fontcolor = new Gdk.Color(255,255,255); SyncInf...

How do I create a multi-level TreeView using F#?

I would like to display a directory structure using Gtk# widgets through F#, but I'm having a hard time figuring out how to translate TreeViews into F#. Say I had a directory structure that looks like this: Directory1 SubDirectory1 SubDirectory2 SubSubDirectory1 SubDirectory3 Directory2 How would I show this tree structure w...

SSO using WIF on UNIX/Mono

We have implemented SSO in a .NET web application using Windows Identity Foundation (WIF). It works great. However, we have to run it on a UNIX system using Mono. Is that possible? ...

WCF without NET 3.0

Hello there, Does anyone tell me if it's possible to use WCF without .NET 3.0? Our company develops a 3-tier client-server end-user solution based on .Remoting. One of the limitation of our project is using .NET 2.0. Unfortunately .NET 3.0 framework is too large to be included in our installation package and I don't know if MS license ...

How to Serialize to XML containing attributes in .NET?

I have that code: ... request data = new request(); data.username = formNick; xml = data.Serialize(); ... [System.Serializable] public class request { public string username; public string password; static XmlSerializer serializer = new XmlSerializer(typeof(request)); public string Serialize() { Strin...

C# -Mono (platform independence)

I'm very newbie to Ubuntu OS and I have my solution developed in visual studio 2008. I want my application to run in both windows and Linux(ubuntu). I've few questions in my mind. Does mono support visual debugger . If I start development using mono.Is it possible to run same in .net framework (windows) ?? or do I need to write the...

Mono & DeflateStream

I have a simple code byte[] buffer = Encoding.UTF8.GetBytes("abracadabra"); MemoryStream ms = new MemoryStream(); DeflateStream ds = new DeflateStream(ms, CompressionMode.Compress, false); ms.Write(buffer, 0, buffer.Length); DeflateStream ds2 = new DeflateStream(ms, CompressionMode.Decompress, false); byte[] buffer2 = new byte[ms.Leng...

Marshalling a big-endian byte collection into a struct in order to pull out values

There is an insightful question about reading a C/C++ data structure in C# from a byte array, but I cannot get the code to work for my collection of big-endian (network byte order) bytes. (EDIT: Note that my real struct has more than just one field.) Is there a way to marshal the bytes into a big-endian version of the structure and then ...