Re: [Mono-dev] libapache2-mod-mono available from mono-project.com ?
Hello Timotheus, Yes, looks like there hasn't been updates to the mod_mono project for a long time :(. There are definitely some very critical bugs that just restart the module all of a sudden, lets it hang and use up 100% cpu time or render random portions of the configuration in a bad condition making random parts of the application to stop working. I tried to trace these problems from inside my app with reflection but had no luck... Hopefully now that Xamarin are using it more actively there will be update on that project. - Vladimir On 20.8.2014 г. 16:22 ч., Timotheus Pokorra wrote: Hello Vladimir, I had in mind this one: http://download.mono-project.com/repo/debian/ this looks good, I did not notice before that it exists! Yes, would be good if mod_mono will make it into that repo as well! Hmm looks like the mod mono version there is the old one (2.10) :( In my repository, I am using a git checkout from July 2013: https://build.opensuse.org/package/view_file/home:tpokorra:mono/mod_mono/_service?expand=1 https://github.com/mono/mod_mono/commit/6b73e850920865b8f6a16f232e555c71ec1cd26a There is no newer official release of mod_mono than 2.10: https://github.com/mono/mod_mono/releases Timotheus ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] libapache2-mod-mono available from mono-project.com ?
On 20.8.2014 г. 16:58 ч., Timotheus Pokorra wrote: Hello Vladimir, Yes, looks like there hasn't been updates to the mod_mono project for a long time :(. There are definitely some very critical bugs that just restart the module all of a sudden, lets it hang and use up 100% cpu time or render random portions of the configuration in a bad condition making random parts of the application to stop working. I am personally using mono-xsp-opt, with fastcgi-mono-server4 and lighttpd, that works alright. On production with high load? Timotheus ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] libapache2-mod-mono available from mono-project.com ?
Are there any plans on adding the libapache2-mod-mono package in the repository hosted by the mono-project website? The last working version shipped in Ubuntu is 2.10 which is pretty old and buggy and the new Ubuntu 14.4 cannot even install that package. So having that package available directly from the mono project would be great if possible. - Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] libapache2-mod-mono available from mono-project.com ?
Hello Timotheus, I had in mind this one: http://download.mono-project.com/repo/debian/ I also try not to build myself something from code for production use as I have no guarantee of a stability nor I trust that I will be doing the build correctly. Instead I believe that there are package builders that are much better at his than me and they know what they are doing and what source to use. Unfortunately Ubuntu does a pretty poor job in maintaining their own repository and as you can see (https://bugs.launchpad.net/ubuntu/+source/mod-mono/+bug/1308047) I sent them a bug report even before Ubuntu 14.4 was released in April and they still have not decided how important that bug is or when they will fix it. On the other hand I like the packages naming they use as it is pretty consistent during the years, widely used in other distributions and broken down into many parts so you can install only what you really need from mono. But I will give that repository a try. I hope that one day http://download.mono-project.com will include this too as I see now that xamarin.com moved from IIS to Apache (Ubuntu) + Mono :). - Vladimir On 19.8.2014 г. 17:50 ч., Timotheus Pokorra wrote: Hello Vladimir, the OBS repository that you are mentioning is linked by the mono-project website, but it is a community project. You are probably looking for the package called modmono-opt see also http://download.opensuse.org/repositories/home:/tpokorra:/mono/xUbuntu_14.04/amd64/ for the available packages. hope this helps, Timotheus On 19 August 2014 14:15, Vladimir Dimitrov vlad.dimit...@gmail.com wrote: Are there any plans on adding the libapache2-mod-mono package in the repository hosted by the mono-project website? The last working version shipped in Ubuntu is 2.10 which is pretty old and buggy and the new Ubuntu 14.4 cannot even install that package. So having that package available directly from the mono project would be great if possible. - Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] libapache2-mod-mono available from mono-project.com ?
Hmm looks like the mod mono version there is the old one (2.10) :( On 19.8.2014 г. 19:36 ч., Vladimir Dimitrov wrote: Hello Timotheus, I had in mind this one: http://download.mono-project.com/repo/debian/ I also try not to build myself something from code for production use as I have no guarantee of a stability nor I trust that I will be doing the build correctly. Instead I believe that there are package builders that are much better at his than me and they know what they are doing and what source to use. Unfortunately Ubuntu does a pretty poor job in maintaining their own repository and as you can see (https://bugs.launchpad.net/ubuntu/+source/mod-mono/+bug/1308047) I sent them a bug report even before Ubuntu 14.4 was released in April and they still have not decided how important that bug is or when they will fix it. On the other hand I like the packages naming they use as it is pretty consistent during the years, widely used in other distributions and broken down into many parts so you can install only what you really need from mono. But I will give that repository a try. I hope that one day http://download.mono-project.com will include this too as I see now that xamarin.com moved from IIS to Apache (Ubuntu) + Mono :). - Vladimir On 19.8.2014 г. 17:50 ч., Timotheus Pokorra wrote: Hello Vladimir, the OBS repository that you are mentioning is linked by the mono-project website, but it is a community project. You are probably looking for the package called modmono-opt see also http://download.opensuse.org/repositories/home:/tpokorra:/mono/xUbuntu_14.04/amd64/ for the available packages. hope this helps, Timotheus On 19 August 2014 14:15, Vladimir Dimitrov vlad.dimit...@gmail.com wrote: Are there any plans on adding the libapache2-mod-mono package in the repository hosted by the mono-project website? The last working version shipped in Ubuntu is 2.10 which is pretty old and buggy and the new Ubuntu 14.4 cannot even install that package. So having that package available directly from the mono project would be great if possible. - Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mutex Bug
I guess I will be having the same problem as you. So why not just use a file in the temp folder with a unique name somehow connected with the locked resource (like company_name-product_name.lck) and just try to open it with no sharing? This together with poling should be enough. Why do you need all that cryptography? - Vlad On 3.7.2014 г. 06:32 ч., Edward Ned Harvey (mono) wrote: From: Brandon Perry [mailto:bperry.volat...@gmail.com] Do you *have* to write to the same file? Yes. Here is the situation: https://tinhatrandom.org An open source, MIT licensed class library aimed at improving crypto random available to the application developer... One of the things we need to do is this: Assuming we have collected a lot of good entropy from various entropy sources, save a good strong random seed file on disk. Later, any number of applications may be launched, potentially at the same time, which need to read write the file, mutually exclusively. The reason it needs to be one file, is because that's the whole point - If the user has already entered random keyboard input, random mouse input, and we gathered entropy from the internet, and RNGCryptoServiceProvider, and other sources, then every application launch shouldn't need to repeat that. First one does it; everyone later benefits from it. Right now, I believe, if I use FileMode.Open, FileAccess.ReadWrite, and FileShare.None, that should work cross-platform to ensure only a single process may access the file at a time. The process/thread that has the file lock can read the seed, write a new seed, and flush and close. It will work reliably, I believe, for the first process that gets there, and to prevent any subsequent processes from accessing the same seed file before it is reseeded. Any subsequent processes that fail to open the file (because another process already has it open) I think, will simply have to Sleep(1) and retry opening the file. It's a little ghetto, but it should work AFAIK. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Random mono apache errors
Almost the same thing just happened again. I got this error when calling a web service on the apache/mono server: System.Exception: INTERNAL configuration error: failed to get configuration 'system.diagnostics' at System.Diagnostics.DiagnosticsConfiguration.get_Settings () [0x0] in filename unknown:0 at System.Diagnostics.TraceImpl.InitOnce () [0x0] in filename unknown:0 at System.Diagnostics.TraceImpl.get_Listeners () [0x0] in filename unknown:0 at System.Diagnostics.TraceImpl.get_ListenersSyncRoot () [0x0] in filename unknown:0 at System.Diagnostics.TraceImpl.WriteLine (System.String message) [0x0] in filename unknown:0 at System.Diagnostics.Debug.WriteLine (System.String format, System.Object[] args) [0x0] in filename unknown:0 at Warehouse.Data.Str.WriteDebugMessage (System.String message, System.Object[] args) [0x0] in filename unknown:0 at Warehouse.Portal.Sync.Api.SyncPoll.GetCommand (System.Byte[] encIV, System.Byte[] encKey, System.Byte[] encParams) [0x0] in filename unknown:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0] in filename unknown:0 after sudo service apache2 restart everything continued to work properly. Something causes the configuration to become messed up in (what looks like) random or heavy load situations and this makes everything go south. Unfortunately it looks like this part of mono is not in the primary (or maybe in no) focus for the Xamarin team so my best bet here is to: 1. Use the open source way, find and fix it myself and hope that we will have this change in the official mono one day. 2. Move to a Windows server with IIS which I know is not a secondary focus for MS. - Vladimir On 21.8.2013 г. 16:16 ч., Vladimir Dimitrov wrote: I got to this point in the sources too, but I have no idea what I can do or why didn't many other people got the same problem? On 21.8.2013 г. 15:20 ч., Rafael Teixeira wrote: From sources (https://github.com/mono/mono/blob/master/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs): if (key == wsdl || key == schema || key == code || key == disco) return; #if NET_2_0 string help = WebServicesSection.Current.WsdlHelpGenerator.Href; string path = Path.GetDirectoryName (ConfigurationManager.OpenMachineConfiguration().FilePath); #else string help = WSConfig.Instance.WsdlHelpPage; string path = Path.GetDirectoryName (WSConfig.Instance.ConfigFilePath); #endif *...* string physPath = Path.Combine (path, help); So probably WebServicesSection.Current.WsdlHelpGenerator.Href is returning null or ConfigurationManager.OpenMachineConfiguration().FilePath is returning null. For the first case, as this is read from current configuration which can be reread from time to time as any part of the configuration chain changes it is possible that either some of those MonoTodos in https://github.com/mono/mono/blob/master/mcs/class/System.Web.Services/System.Web.Services.Configuration/WsdlHelpGeneratorElement.cs?source=cc are making things flaky: [MonoTODO (probably verifies the Href property here, after deserializing?)] protected override void DeserializeElement (XmlReader reader, bool serializeCollectionKey) { base.DeserializeElement (reader, serializeCollectionKey); } [MonoTODO] protected override void Reset (ConfigurationElement parentElement) { base.Reset (parentElement); } or some locking is missing to avoid reading an incomplete current configuration instance... As for the second case after much navigating through sources it comes down to calling an internal call 'string get_machine_config_path ()' which I don't have time now to try to explore... Hope it helps, Rafael Teixeira O..:.) On Wed, Aug 21, 2013 at 8:05 AM, Vladimir Dimitrov vlad.dimit...@gmail.com mailto:vlad.dimit...@gmail.com wrote: Hey guys, I have worked with mono for almost 7 years but I recently got involved in a project that used mono web services and apache together on Linux. The problem is that as the load on the service started to rise we started getting different errors which appear in random intervals. One of the errors is described here: https://bugzilla.novell.com/show_bug.cgi?id=522631 (not by me). And attempting to fix it I added some configuration that caused another error to appear once: http://img577.imageshack.us/img577/4473/44in.png The only common spot between the errors seem to be the configuration. Looks like at some point it becomes invalid. This sometimes happens after the service gets restarted, but sometimes
[Mono-dev] Random mono apache errors
Hey guys, I have worked with mono for almost 7 years but I recently got involved in a project that used mono web services and apache together on Linux. The problem is that as the load on the service started to rise we started getting different errors which appear in random intervals. One of the errors is described here: https://bugzilla.novell.com/show_bug.cgi?id=522631 (not by me). And attempting to fix it I added some configuration that caused another error to appear once: http://img577.imageshack.us/img577/4473/44in.png The only common spot between the errors seem to be the configuration. Looks like at some point it becomes invalid. This sometimes happens after the service gets restarted, but sometimes it happens while the service is running normally. A restart of apache usually fixes the problem. Does anybody else encountered something similar or have an idea what can be the problem? Thanks, Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Random mono apache errors
I got to this point in the sources too, but I have no idea what I can do or why didn't many other people got the same problem? On 21.8.2013 г. 15:20 ч., Rafael Teixeira wrote: From sources (https://github.com/mono/mono/blob/master/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs): if (key == wsdl || key == schema || key == code || key == disco) return; #if NET_2_0 string help = WebServicesSection.Current.WsdlHelpGenerator.Href; string path = Path.GetDirectoryName (ConfigurationManager.OpenMachineConfiguration().FilePath); #else string help = WSConfig.Instance.WsdlHelpPage; string path = Path.GetDirectoryName (WSConfig.Instance.ConfigFilePath); #endif *...* string physPath = Path.Combine (path, help); So probably WebServicesSection.Current.WsdlHelpGenerator.Href is returning null or ConfigurationManager.OpenMachineConfiguration().FilePath is returning null. For the first case, as this is read from current configuration which can be reread from time to time as any part of the configuration chain changes it is possible that either some of those MonoTodos in https://github.com/mono/mono/blob/master/mcs/class/System.Web.Services/System.Web.Services.Configuration/WsdlHelpGeneratorElement.cs?source=cc are making things flaky: [MonoTODO (probably verifies the Href property here, after deserializing?)] protected override void DeserializeElement (XmlReader reader, bool serializeCollectionKey) { base.DeserializeElement (reader, serializeCollectionKey); } [MonoTODO] protected override void Reset (ConfigurationElement parentElement) { base.Reset (parentElement); } or some locking is missing to avoid reading an incomplete current configuration instance... As for the second case after much navigating through sources it comes down to calling an internal call 'string get_machine_config_path ()' which I don't have time now to try to explore... Hope it helps, Rafael Teixeira O..:.) On Wed, Aug 21, 2013 at 8:05 AM, Vladimir Dimitrov vlad.dimit...@gmail.com mailto:vlad.dimit...@gmail.com wrote: Hey guys, I have worked with mono for almost 7 years but I recently got involved in a project that used mono web services and apache together on Linux. The problem is that as the load on the service started to rise we started getting different errors which appear in random intervals. One of the errors is described here: https://bugzilla.novell.com/show_bug.cgi?id=522631 (not by me). And attempting to fix it I added some configuration that caused another error to appear once: http://img577.imageshack.us/img577/4473/44in.png The only common spot between the errors seem to be the configuration. Looks like at some point it becomes invalid. This sometimes happens after the service gets restarted, but sometimes it happens while the service is running normally. A restart of apache usually fixes the problem. Does anybody else encountered something similar or have an idea what can be the problem? Thanks, Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com mailto:Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Stackoverflow exception while processing a linq query
The problem is I cannot reproduce this any more. I ran the same code on a Windows machine and it changed the information stored in the database which was causing the problematic situation. But even if I don't see such a bug report causing big attention I will add it. Should I file it here: https://bugzilla.xamarin.com/ ? On 5.3.2013 ?. 16:04 ?., Rodrigo Kumpera wrote: Could you please file a bug report? On Sat, Mar 2, 2013 at 2:37 PM, Vladimir Dimitrov vlad.dimit...@gmail.com mailto:vlad.dimit...@gmail.com wrote: Recently I received a strange error on one of our servers which run mono 2.10.8.1 on Ubuntu 12.4: System.AggregateException: One or more errors occured --- System.StackOverflowException: The requested operation caused a stack overflow. at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].GetParent (UInt32 v) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 This continued in the logs for several megabytes. Looking at the code (https://github.com/mosa/Mono-Class-Libraries/blob/master/mcs/class/corlib/System.Collections.Concurrent/SplitOrderedList.cs) it looks perfectly normal to happen. Looks like if InitializeBucket receives 0 then GetParrent will return 0. GetBucket can return null too if list it checks in is empty and then the whole thing gets into infinite recursion... Any idea on how this situation happens/can be avoided and if anybody else encountered a similar problem? Thanks, Vladimir Dimitrov ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com mailto:Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Stackoverflow exception while processing a linq query
Filed: https://bugzilla.xamarin.com/show_bug.cgi?id=10911 On 5.3.2013 ?. 17:00 ?., Vladimir Dimitrov wrote: The problem is I cannot reproduce this any more. I ran the same code on a Windows machine and it changed the information stored in the database which was causing the problematic situation. But even if I don't see such a bug report causing big attention I will add it. Should I file it here: https://bugzilla.xamarin.com/ ? On 5.3.2013 ?. 16:04 ?., Rodrigo Kumpera wrote: Could you please file a bug report? On Sat, Mar 2, 2013 at 2:37 PM, Vladimir Dimitrov vlad.dimit...@gmail.com mailto:vlad.dimit...@gmail.com wrote: Recently I received a strange error on one of our servers which run mono 2.10.8.1 on Ubuntu 12.4: System.AggregateException: One or more errors occured --- System.StackOverflowException: The requested operation caused a stack overflow. at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].GetParent (UInt32 v) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 This continued in the logs for several megabytes. Looking at the code (https://github.com/mosa/Mono-Class-Libraries/blob/master/mcs/class/corlib/System.Collections.Concurrent/SplitOrderedList.cs) it looks perfectly normal to happen. Looks like if InitializeBucket receives 0 then GetParrent will return 0. GetBucket can return null too if list it checks in is empty and then the whole thing gets into infinite recursion... Any idea on how this situation happens/can be avoided and if anybody else encountered a similar problem? Thanks, Vladimir Dimitrov ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com mailto:Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Stackoverflow exception while processing a linq query
Recently I received a strange error on one of our servers which run mono 2.10.8.1 on Ubuntu 12.4: System.AggregateException: One or more errors occured --- System.StackOverflowException: The requested operation caused a stack overflow. at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].GetParent (UInt32 v) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 at System.Collections.Concurrent.SplitOrderedList`2[System.String,System.Collections.Generic.KeyValuePair`2[System.String,System.Collections.Generic.IEnumerable`1[Warehouse.Sync.Common.ChangeItem]]].InitializeBucket (UInt32 b) [0x0] in filename unknown:0 This continued in the logs for several megabytes. Looking at the code (https://github.com/mosa/Mono-Class-Libraries/blob/master/mcs/class/corlib/System.Collections.Concurrent/SplitOrderedList.cs) it looks perfectly normal to happen. Looks like if InitializeBucket receives 0 then GetParrent will return 0. GetBucket can return null too if list it checks in is empty and then the whole thing gets into infinite recursion... Any idea on how this situation happens/can be avoided and if anybody else encountered a similar problem? Thanks, Vladimir Dimitrov ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Open source CMS running on mono?
Manos looks cool if you want to rebuild everything from scratch. But I will need to use some web services and I may hit a wall there with it. - Vladimir From: Rafael Teixeira [mailto:mono...@gmail.com] Sent: Wednesday, June 20, 2012 2:51 PM To: Vladimir Dimitrov Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Open source CMS running on mono? Xamarin site seems not to be done with a CMS but custom built with Rails or, perhaps, with something like Jackson Harper's Manos de Mono (less probable). Rafael Monoman Teixeira --- The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' (I found it!) but 'That's funny ...' Isaac Asimov US science fiction novelist scholar (1920 - 1992) On Tue, Jun 19, 2012 at 11:18 AM, Vladimir Dimitrov vlad.dimit...@gmail.com wrote: Hi everyone, Did someone had any luck with running and using some of the ASP.NET based open source CMS systems out there? It turns out that many require some parts of mono or are too platform dependent to work on mono/linux. My findings so far are: 1. Umbraco – my closest match for the needs. Very clean, MIT licensed, almost any structure can be done with it. Works with MySQL and can scale on multiple machine in the future (not absolutely needed at the moment). All the attempts to run it so far looks failing as it requires MVC3 and other parts that are missing (http://our.umbraco.org/m?mode=topic http://our.umbraco.org/m?mode=topicid=21337 id=21337) 2. mojoPortal – it is a little different than a pure CMS (more portal oriented) and at first glance it will not allow directly putting a page created by a designer to be placed directly, but rather adapted to the design style of this system (panel layouts, etc.) 3. kooboo – looks promising. Did not take a very deep look, but it looks to be storing all the configuration locally in xml files which kind of sucks if we try to run the site on a cluster at some later point. They state that mono is supported. 4. Cuyahoga – they say they support mono, but the project looks dead as the latest news on the site are from February 2011. 5. Sunset – seems professionally built and used by big companies + supports mono, but non-free… Does someone have tested any of these or have success/fail stories about them? I wonder what the Xamarin web site uses and if it is on Linux J Best regards, Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Open source CMS running on mono?
Hi everyone, Did someone had any luck with running and using some of the ASP.NET based open source CMS systems out there? It turns out that many require some parts of mono or are too platform dependent to work on mono/linux. My findings so far are: 1. Umbraco - my closest match for the needs. Very clean, MIT licensed, almost any structure can be done with it. Works with MySQL and can scale on multiple machine in the future (not absolutely needed at the moment). All the attempts to run it so far looks failing as it requires MVC3 and other parts that are missing (http://our.umbraco.org/m?mode=topic http://our.umbraco.org/m?mode=topicid=21337 id=21337) 2. mojoPortal - it is a little different than a pure CMS (more portal oriented) and at first glance it will not allow directly putting a page created by a designer to be placed directly, but rather adapted to the design style of this system (panel layouts, etc.) 3. kooboo - looks promising. Did not take a very deep look, but it looks to be storing all the configuration locally in xml files which kind of sucks if we try to run the site on a cluster at some later point. They state that mono is supported. 4. Cuyahoga - they say they support mono, but the project looks dead as the latest news on the site are from February 2011. 5. Sunset - seems professionally built and used by big companies + supports mono, but non-free. Does someone have tested any of these or have success/fail stories about them? I wonder what the Xamarin web site uses and if it is on Linux J Best regards, Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Problem printing on Mac OS X
Hello, We are trying to use the printing capabilities of System.Drawing on Mac OS X. The functionality works fine on Linux and Windows but fails on Mac. Looks like the library libcups is not found by mono on Mac. Any suggestions? There is a bug report filed by my colleague here: https://bugzilla.novell.com/show_bug.cgi?id=649994 https://bugzilla.novell.com/show_bug.cgi?id=649994cid=1288339323723-370 cid=1288339323723-370. Thanks, Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Request to include a patch for Gregoraian localization in mono
Thanks Miguel. Atsushi, please ask if you need any information on the patch. -Original Message- From: Miguel de Icaza [mailto:mig...@novell.com] Sent: Wednesday, December 16, 2009 2:42 AM To: Vladimir Dimitrov; Atsushi Enomoto Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Request to include a patch for Gregoraian localization in mono Hello Vladimir, Atsushi, I do not have a problem with most of the patch, but Atsushi should really review this patch as he wrote that code. Hey guys my colleague worked on some improvements in mono in order to allow support for Gregorian localization. That was needed as we have some potential clients in Georgia and our application works ok under Windows and .net but it turned out that the Georgian localization support was not complete under for mono. This post includes a patch that adds the required changes to add support for Gregorian. http://go-mono.com/forums/#nabble-p26766782 Can you please tell me if you can include that in the mono tree. Thanks, Vladimir Dimitrov ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Request to include a patch for Gregoraian localization in mono
Hey guys my colleague worked on some improvements in mono in order to allow support for Gregorian localization. That was needed as we have some potential clients in Georgia and our application works ok under Windows and .net but it turned out that the Georgian localization support was not complete under for mono. This post includes a patch that adds the required changes to add support for Gregorian. http://go-mono.com/forums/#nabble-p26766782 Can you please tell me if you can include that in the mono tree. Thanks, Vladimir Dimitrov ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Gtk# print preview example.
No problem. Hope it helps. -Original Message- From: cesar avila [mailto:cesar2...@yahoo.com] Sent: Monday, October 26, 2009 6:53 PM To: Vladimir Dimitrov Subject: RE: [Mono-dev] Gtk# print preview example. Thank you very much. I'm downloading the sources to get a look at it. --- On Mon, 10/26/09, Vladimir Dimitrov vlad.dimit...@gmail.com wrote: From: Vladimir Dimitrov vlad.dimit...@gmail.com Subject: RE: [Mono-dev] Gtk# print preview example. To: 'cesar avila' cesar2...@yahoo.com Date: Monday, October 26, 2009, 10:41 AM Hi, I have implemented one for the Warehouse Open project. You can download the product and the sources from here: http://www.microinvest.net/en/?LoadPage=warehouseopen.php - Vladimir -Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of cesar avila Sent: Monday, October 26, 2009 4:58 PM To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] Gtk# print preview example. Hi. Does somebody has an example to do print preview with GTK#?. Any link or doc will be appreciated too. Thanks. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Gtk depends on Winforms ¿?
Hi, Or you can use something like this: try { // This is needed in order for GTK# 2.12.8 to get the proper theming Assembly winForms = Assembly.Load (System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089); Type appType = winForms.GetType (System.Windows.Forms.Application); MethodInfo method = appType.GetMethod (EnableVisualStyles, BindingFlags.Static | BindingFlags.Public); method.Invoke (null, null); method = appType.GetMethod (DoEvents, BindingFlags.Static | BindingFlags.Public); method.Invoke (null, null); } catch { } I used that block before when the bug with the visual styles was not fixed, to evade using references to SWF. - Vlad -Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Christian Hoff Sent: Saturday, September 05, 2009 10:16 AM To: Andoni Morales Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Gtk depends on Winforms ¿? Andoni Morales wrote: Hi, I have recently tried to upgrade from Mono 2.4 to 2.4.2.2 in Windows XP, which comes with gtk-sharp-2.12.9 In Windows I use 'mkbundle' [1] to generate from my c# app an executable file that can be launched on a computer that doesn't not have mono installed. mkbundle builds a new executable that embeds all the assemblies needed by the c# executable to run.(I attach the output) My aplication does not depends on Winforms and using Mono 2.4 I can launch it without any problems. But when I use Mono 2.4.2.2 I run into this exception: Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Gtk.Application --- System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Does that means that with gtk-sharp-2.12.9 I need System.Windows.Forms to run a Gtk app? Why does Gtk.Application has a runtime dependency on System.Windows.Forms and why mkbundle is not even aware of this dependency and does not include this assembly in the bundle? It also happens with 2.4.2.3 so I believe it's a gtk-sharp issue You're right. gtk-sharp has a Winforms dependency on the Windows platform to enable visual styles by calling System.Windows.Forms.Application.DoEvents via reflection. Nobody has ever found out why this works or how we could implement such functionality without loading winforms. We should probably put that code in a try-block. What do you think, Mike? Christian ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Off topic: Reflection and Licensing question
AFAIK GPL permits deriving of GPL work from non-GPL code. Meaning that you should not be able to use it in almost any means if you are not GPL. Also MySQL connector is licensed under GPL but there is a FOSS exception (http://www.mysql.com/about/legal/licensing/foss-exception/) to the license meaning that you can use it for free if you have your code licensed under some other open source license. -Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Ernesto Sent: Wednesday, April 29, 2009 9:52 PM To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] Off topic: Reflection and Licensing question Hi. Sorry about this, but I think it's slightly on-topic because it has to do with Reflection and non-GPLd code. I've been googling for information about reflection and licenses like the GPL, that prohibit linking from code with a different license and found nothing. Is reflection considered linking? Or is it considered a form of abstract communication such as permitted by the GPL? What would be the legality of using a GPLd module through reflection in a closed source or BSD application? I'm not trying to circumvent the GPL. Not that I can, either. I just want my app to be able to dinamically load a standard set of libraries, and call a generic set of methods. One of this libraries (MySQL Connector/NET) happens to be GPLd. Regards, Ernesto ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.12.7/2085 - Release Date: 04/28/09 18:02:00 ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono.Addins suppress console window showing
Thanks Brad, Yes that worked and I don't see any problems with the line that I talked about being added so if the developer of this library is somewhere around he could add the change to the main source so everybody can get the fix. - Vlad -Original Message- From: Brad Taylor [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 5:31 AM To: Vladimir Dimitrov Cc: Mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Mono.Addins suppress console window showing Hey Vlad, Recently I started using Mono.Addins in my application and it looks very good. But as the application is primary used under windows (should be working fine under Linux too) I get an annoying console window showing when I run: snip You can also compile Mono.Addins as a winexe target to suppress the console. You'll probably have to rename it to a .dll afterwards if you compile under Windows. Hope this helps, -Brad No virus found in this incoming message. Checked by AVG. Version: 8.0.134 / Virus Database: 270.4.4/1531 - Release Date: 02.7.2008 г. 19:02 ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Mono.Addins suppress console window showing
Hello guys, Recently I started using Mono.Addins in my application and it looks very good. But as the application is primary used under windows (should be working fine under Linux too) I get an annoying console window showing when I run: AddinManager.Initialize (); And then another one when I run: AddinManager.Registry.Rebuild (null); I noticed in the code that at some point the .dll executes itself in a separate process ??!?! So if we add the following line: process.StartInfo.CreateNoWindow = true; to the file Mono.Addins/Mono.Addins/Database/SetupProcess.cs this would suppress the window to show under Window and should not cause any other complications. Please let me know what you think. Best regards, Vladimir Dimitrov P.S. I tried compiling my own copy with the change but it didn't worked because when the process was trying to execute the .dll I compiled an exception was throws saying this is not a valid windows app. Maybe I need to compile it to .exe and just rename it? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Gtk# 2.8.4 runtime for windows?
Hey guys I have been running In some deadlock lately using the different versions of GTK# that are available around here. In GTK 2.10 there is cool feature (Glib.ExceptionManager.UnhandledException) that enables you to subscribe to that event and handle any unhandled exceptions your application can encounter. Before that feature was available I used just a try {} catch block around Application.Run and was able to catch the thrown exception and log it. But now that this feature is available Application.Run is not throwing any exceptions but instead you get a message in the Console saying: Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. So the only way to get the exception now is to use that event which is fine. The problem comes when you want to use the minimal version possible to get this feature so people with older installations of mono/gtk# don't get cutoff. The new Ubuntu 8.4 that is almost ready has a version of gtk# in its repository (and Debian using backports) which has assemblies with version 2.8.0.0 that has this event. Somehow I never got the connection between GTK+ and GTK# versions since this feature is supposed to be in 2.10. Now the question is there a place where I can get the 2.8.4 runtimes for windows since this is my build and developing environment? 2.8.3-x packages are available around (from Medisphere) but they don't contain that feature. And I have seen the code for 2.8.4 that has this implemented. And if I build against a newer version of GTK# (say 2.10) I will have to write HOWTO's and explain people how to install the latest mono for the next 6 months until Ubuntu and the rest of the most used distros gets it in their repository. Thanks, Vladimir Dimitrov ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Gtk# 2.8.4 runtime for windows?
Wow I just wrote that piece of code and started testing :). Thanks guys. -Original Message- From: Michael Hutchinson [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 1:53 AM To: Alan McGovern Cc: Vladimir Dimitrov; Mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Gtk# 2.8.4 runtime for windows? On Wed, Apr 16, 2008 at 5:39 PM, Alan McGovern [EMAIL PROTECTED] wrote: Hi, You can work around it by using reflection to test whether that event exists, and if it does you can then register a handler to it. That way you can use the new feature without having to lose compatibility with 2.8. E.g. http://anonsvn.mono-project.com/viewcvs/trunk/monodevelop/main/src/core/Mono Develop.Core.Gui/MonoDevelop.Core.Gui/GLibLogging.cs?view=markup (that also has some other cool GTK.GDK/GLib logging stuff for generating managed traces when they emit warnings and criticals) -- Michael Hutchinson http://mjhutchinson.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Mono.Unix.Catalog.Init where does it get the locale from?
Hi guys, On windows when I set Thread.CurrentThread.CurrentCulture = new CultureInfo (config.Localization) I can change the localization of the current thread and if I call Catalog.Init after that the localization is properly initialized, and Catalog.GetString gives me correct string from the localization setup I have for my application. But if use the same code on Linux Catalog.GetString does not respect the changes I made and does not return the messages for the localization I set. If I use LANG=cs_CZ.utf8 mono MyApp.exe Then everything is fine and the localization works. Is there something I am doing wrong or is this a bug in Mono.Unix? Thanks, Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono.Unix.Catalog.Init where does it get the locale from?
Thanks for the quick answer I tried your suggestion and set the variable using this code: CultureInfo culture = new CultureInfo (config.Localization); Thread.CurrentThread.CurrentCulture = culture; Thread.CurrentThread.CurrentUICulture = culture; Environment.SetEnvironmentVariable (LANG, config.Localization.Replace (-, _)); Right before calling Catalog.Init but still no luck. If I set the environment variable before running the application it works. My guess is that the environment is read before that, but I am not sure how as I don't call anything from the Catalog class before the initialization and so no static constructors would have possibly read it. P.S. I really don't want to set and use the localization per thread but this is the only way I know of setting it. Thanks, Vladimir -Original Message- From: Jonathan Pryor [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 6:30 PM To: Vladimir Dimitrov Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Mono.Unix.Catalog.Init where does it get the locale from? On Thu, 2008-03-13 at 15:49 +0200, Vladimir Dimitrov wrote: On windows when I set Thread.CurrentThread.CurrentCulture = new CultureInfo (config.Localization) I can change the localization of the current thread and if I call Catalog.Init after that the localization is properly initialized, and Catalog.GetString gives me correct string from the localization setup I have for my application. But if use the same code on Linux Catalog.GetString does not respect the changes I made and does not return the messages for the localization I set. If I use LANG=cs_CZ.utf8 mono MyApp.exe Then everything is fine and the localization works. Is there something I am doing wrong or is this a bug in Mono.Unix? This isn't a bug in Mono.Unix, as Mono.Unix is a very thin wrapper over libc/libintl, and these will use the appropriate environment variables for initialization. What it sounds like is happening is one of two things: 1. INTL.DLL on Windows doesn't use the environment variable, but instead uses the thread's current Win32 locale to do the lookup (which would explain why setting Thread.CurrentCulture would impact the behavior of INTL.DLL); or 2. Win32's SetThreadLocale() sets the environment variable that INTL.DLL uses during initialization. I'd bet that (1) is what's happening, implying that INTL.DLL behaves differently from libc/libintl on Linux (but consistent with other Win32 libraries). If this is the case, the real bug is that Mono's Thread.CurrentCulture property should also set the LANG/etc. environment variables, as appropriate, so that libc/libintl will pickup on this change... ...which also isn't quite appropriate, as Thread.CurrentCulture is a per-thread property, while environments are per-process. So the short version is that Mono.Unix.Catalog is behaving sensibly, and INTL.DLL/libc/libintl are (presumably) behaving sensibly, but the interaction between them isn't consistent across all platforms. I'm not sure what the correct answer is, but I'm quite sure that Mono.Unix.Catalog should NOT change the LANG environment variable automatically... Short term, I'd suggest modifying your app to set LANG when you also set Thread.CurrentCulture, and realize that Mono.Unix.Catalog is a per-process translation mechanism, not per-thread. - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono.Unix.Catalog.Init where does it get the locale from?
Great I tested it and this works for me too :). Do you think we should probably post this as a bug in bugzilla? And if yes then how do we define it? If you think this is not a bug but a practice that should be used then we should probably post it on the Mono.Posix page so people would know this next time. Thanks, Vladimir -Original Message- From: Jonathan Pryor [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 7:48 PM To: Vladimir Dimitrov Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Mono.Unix.Catalog.Init where does it get the locale from? On Thu, 2008-03-13 at 19:16 +0200, Vladimir Dimitrov wrote: Thanks for the quick answer I tried your suggestion and set the variable using this code: CultureInfo culture = new CultureInfo (config.Localization); Thread.CurrentThread.CurrentCulture = culture; Thread.CurrentThread.CurrentUICulture = culture; Environment.SetEnvironmentVariable (LANG, config.Localization.Replace (-, _)); What I've found is that setting LANG is not enough; in my own tests with Catalog: LANG=es mono foo.exe is ignored, but LANGUAGE=es mono foo.exe works as desired (using the `es' message catalog). I don't know why this is the case. Consequently, I would suggest setting the LANGUAGE environment variable and see if that works; it did for my test app. - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Mono.Unix.Catalog.Init where does it get the locale from?
Hi guys, On windows when I set Thread.CurrentThread.CurrentCulture = new CultureInfo (config.Localization) I can change the localization of the current thread and if I call Catalog.Init after that the localization is properly initialized, and Catalog.GetString gives me correct string from the localization setup I have for my application. But if use the same code on Linux Catalog.GetString does not respect the changes I made and does not return the messages for the localization I set. If I use LANG=cs_CZ.utf8 mono MyApp.exe Then everything is fine and the localization works. Is there something I am doing wrong or is this a bug in Mono.Unix? Thanks, Vladimir ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] How to install mono monodevelop on Debian Etch 4.0
Hi all just wanted to make sure meebey knows about that issue with MySQL connector and the new backport of mono. http://bugs.mysql.com/bug.php?id=33938 I am not certain if this is a bug and I am not sure who can confirm it. Thanks Vladimir Dimitrov (flipm0de) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mirco Bauer Sent: Tuesday, February 19, 2008 3:57 PM To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] How to install mono monodevelop on Debian Etch 4.0 [my reply didn't show up on the mailing list, thus I am re-sending it, sorry if it's a duplicate] On Sat, 2008-02-09 at 16:35 -0200, Edson - PMSS wrote: I would like to know how to install mono and monodevelop on Debian Etch 4.0. I have mono installed, but I don't know how to install monodevelop. I can edit and compile my files by command line and I don't have any idea on how to install monodevelop. I thank in advance by any solution. Thanks! I updated the Download page for Debian on mono-project.com, check this: http://www.mono-project.com/Other_Downloads#Debian -- Regards, Mirco 'meebey' Bauer PGP-Key ID: 0xEEF946C8 FOSS Developer[EMAIL PROTECTED] http://www.meebey.net/ PEAR Developer[EMAIL PROTECTED] http://pear.php.net/ Debian Developer [EMAIL PROTECTED] http://www.debian.org/ ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Announcing Gtk# release 2.10.3 and Gnome# release 2.16.1
Hello, Sorry about the stupid question but why would I use Gtk# 2.8.5 when there is Gtk# 2.10.3??? Is there any other reason than that I cannot reference and build apps against older versions of Gtk# if I don't have them installed (policies didn't work for me with VS 2005) Thanks, Vladimir Dimtirov -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Kestner Sent: Wednesday, February 13, 2008 8:10 PM To: gtk-sharp-list; mono-devel-list@lists.ximian.com Subject: [Mono-dev] Announcing Gtk# release 2.10.3 and Gnome# release 2.16.1 We are pleased to announce version 2.10.3 of Gtk# and version 2.16.1 of Gnome# . Packages are available for supported platforms at: http://mono-project.com/Downloads Source tarballs have been uploaded to ftp.gnome.org. I'm also happy to announce a coordinated release of Gtk# for the MS runtime produced by the folks at Medsphere. It is available for download at: http://sourceforge.net/project/showfiles.php?group_id=74626package_id=223067 This is a bugfix release with limited new API additions. Users of the impending mono 1.9 release should upgrade their 2.10/2.16 installs to this release to avoid a potential problem in glade-sharp resulting from recent System.Reflection changes. What is Gtk#: Gtk# and Gnome# are a set of .Net/mono language bindings to assorted Gtk + and GNOME libraries. Supported libraries include pango, atk, gtk+, libglade, libgnome, libgnomeui, libgnomecanvas, libgnomeprint, libgnomeprintui, libpanelapplet, librsvg, libvte, libgtkhtml, and gconf. What's new in version 2.10.3: - Performance, memory management, and object finalization improvements. - GLib.ExceptionManager to support exception handling in signal callbacks. - GLib.IOChannel and GLib.Spawn classes for process spawning. - Numerous bugfixes Thanks to the contributors to this release: Wade Berrier, Eskil Bylund, Sebastian Dröge, Michael Hutchinson, Peter Johanson, Lluis Sanchez Gaul, and myself. Discussion of Gtk# occurs on [EMAIL PROTECTED] and defects can be reported to bugzilla.novell.com, module gtk#. -- Mike Kestner [EMAIL PROTECTED] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] install problem in ubuntu
This is not a critical error as you can see. Mono is running fine even without it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ravesoul Sent: Monday, December 17, 2007 11:03 PM To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] install problem in ubuntu Hi, Validimir I tried install this package, and reinstalling mono-dev... but persist this error, Missing libraries: libgailutil.so.17 Now, I found this: https://www.linux-foundation.org/dbadmin/browse/lib_single.php?cmd=list-by-n ameLname=libgailutil https://www.linux-foundation.org/dbadmin/browse/lib_single.php?cmd=list-by-n ameLname=libgailutil and there tells me that the libgailutil.so.17 isn't available for ubuntu 7.10 (On Presence in Distributions Title) but Ubuntu 6.06 have. --- This appears when i run monodevelop: [EMAIL PROTECTED]:~/mono-1.2.6$ monodevelop 2007-12-17 15:50:19,062 [-1211021616] WARN MonoDevelop.Core.ILoggingService [(null)] - Inotify watch limit is too low (8192). MonoDevelop will switch to managed file watching. See http://www.monodevelop.com/Inotify_Watches_Limit for more info. /home/javier/mono-1.2.6/bin/mono: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64 Vladimir Dimitrov wrote: I use this: sudo apt-get install libgail-dev libgail-gnome-dev libglitz1-dev libnspr4-dev BEFORE I install mono. And it works ok for me. The only problem I haven't time to resolve is how to change the environment so a desktop launcher can use the new mono installation. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ravesoul Sent: Thursday, December 13, 2007 7:00 PM To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] install problem in ubuntu i have the same problem too, please need help thanks Sharique uddin Ahmed Farooqui-2 wrote: Hi,I have installed Mono 1.2.6 preview 2 on Ubuntu 7.10 32-bit/kubuntu 64 bit , It got following error at the end of installation. Missing libraries: libgailutil.so.17 libglitz.so.1 libnspr4.so libplc4.so libplds4.so It appears your system may be unable to run graphical apps included in this installer. Please fix unresolved symbols by installing the necessary packages for your system. What package I should install to resolve this? -- Sharique uddin Ahmed Farooqui (C++/C# Developer, IT Consultant) A revolution is about to begin. A world is about to change. And you and me are the initiator. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- View this message in context: http://www.nabble.com/install-problem-in-ubuntu-tp14152998p14319923.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- View this message in context: http://www.nabble.com/install-problem-in-ubuntu-tp14152998p14372549.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] install problem in ubuntu
I use this: sudo apt-get install libgail-dev libgail-gnome-dev libglitz1-dev libnspr4-dev BEFORE I install mono. And it works ok for me. The only problem I haven't time to resolve is how to change the environment so a desktop launcher can use the new mono installation. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ravesoul Sent: Thursday, December 13, 2007 7:00 PM To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] install problem in ubuntu i have the same problem too, please need help thanks Sharique uddin Ahmed Farooqui-2 wrote: Hi,I have installed Mono 1.2.6 preview 2 on Ubuntu 7.10 32-bit/kubuntu 64 bit , It got following error at the end of installation. Missing libraries: libgailutil.so.17 libglitz.so.1 libnspr4.so libplc4.so libplds4.so It appears your system may be unable to run graphical apps included in this installer. Please fix unresolved symbols by installing the necessary packages for your system. What package I should install to resolve this? -- Sharique uddin Ahmed Farooqui (C++/C# Developer, IT Consultant) A revolution is about to begin. A world is about to change. And you and me are the initiator. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- View this message in context: http://www.nabble.com/install-problem-in-ubuntu-tp14152998p14319923.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] System.DllNotFoundException gtksharpglue-2 in mono 1.2.6
Yes I have two mono installations but the paths are setup to use the new installation. The problem is that 'gtksharpglue-2' is only present in the old installation that comes with Ubuntu and when the paths start to point at the new location there is no such library. _ From: Onur Gumus [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 2:33 PM To: Vladimir Dimitrov; monodevlist Subject: Re: [Mono-dev] System.DllNotFoundException gtksharpglue-2 in mono 1.2.6 Follow this guide step by step and you will be fine. For ubuntu you must have two mono's This is inescapable. You have to use them in parallel http://www.mono-project.com/Parallel_Mono_Environments On Dec 4, 2007 3:18 AM, Vladimir Dimitrov [EMAIL PROTECTED] wrote: Hi folks, is there something that I am missing here? I have a GTK# based application and I am trying to use the latest mono version (1.2.6.1) from the generic installer. I searched in Google about that issue but all I get are very old problems that should not be the case now. I see that on the mono page it is stated that the Gtk-sharp package is an optional package, but as far as I remember it used to be included in the generic installer and so it is right now. Can somebody point me to what I am missing and what is the easiest way to install the newest mono on a clean Linux machine (for example Ubuntu 7.10) with GTK# support. Thanks Vladimir Dimitrov ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] System.DllNotFoundException gtksharpglue-2 in mono 1.2.6
Hi folks, is there something that I am missing here? I have a GTK# based application and I am trying to use the latest mono version (1.2.6.1) from the generic installer. I searched in Google about that issue but all I get are very old problems that should not be the case now. I see that on the mono page it is stated that the Gtk-sharp package is an optional package, but as far as I remember it used to be included in the generic installer and so it is right now. Can somebody point me to what I am missing and what is the easiest way to install the newest mono on a clean Linux machine (for example Ubuntu 7.10) with GTK# support. Thanks Vladimir Dimitrov ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Double multiplication
Today was one of the strangest days that I had recently. I woke up today to discover another way of thinking about numbers ::-) To cut the long story short let me ask a simple question. Do you know the result that the following code will produce as a console output: using System; namespace MultTest { class Program { static void Main (string [] args) { double d1 = 127.2; double d2 = 128.2; double hundred = 100; Console.WriteLine ({0} * {1} = {2}, d1, hundred, Math.Floor (d1 * 100)); Console.WriteLine ({0} * {1} = {2}, d2, hundred, Math.Floor (d2 * 100)); Console.ReadKey (); } } } Well what I get from it is: 127.2 * 100 = 12720 128.2 * 100 = 12819 Am I the only one that thinks this is wrong? The things are even worse because I noticed the problem on MS.NET first, and then on Mono and since Microsoft is very unlikely to care about what I have to say, I decided that you guys can be a lot more helpful. Thanks Vladimir Dimitrov P.S. I tried it on different machines Core 2 Duo (T7200) and Pentium 4. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Double multiplication
The problem is that in my case I cast to int and then I get this result. It is the same as: Console.WriteLine ({0} * {1} = {2}, d1, hundred, (int) (d1 * 100)); plus I am not using anything very special. How can 127.2 give a right result, and 128.2 not. This is multiplication with a whole number, after all, so the precision should decrease not increase. Plus 128.1 will give the right number too ... -Original Message- From: Michał Ziemski [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 3:10 PM To: Vladimir Dimitrov Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Double multiplication Hi! Floating point operations have finite precision. Thus 128.2 * 100 might yield 12819...., which in turn yields 12819 after applying Floor. I beleve you would get an analogous result from a C program. Maybe you should try rounding rather than Floor? Beast regards, Michał Ziemski Vladimir Dimitrov pisze: Today was one of the strangest days that I had recently. I woke up today to discover another way of thinking about numbers .J To cut the long story short let me ask a simple question. Do you know the result that the following code will produce as a console output: using System; namespace MultTest { class Program { static void Main (string [] args) { double d1 = 127.2; double d2 = 128.2; double hundred = 100; Console.WriteLine ({0} * {1} = {2}, d1, hundred, Math.Floor (d1 * 100)); Console.WriteLine ({0} * {1} = {2}, d2, hundred, Math.Floor (d2 * 100)); Console.ReadKey (); } } } Well what I get from it is: 127.2 * 100 = 12720 128.2 * 100 = 12819 Am I the only one that thinks this is wrong? The things are even worse because I noticed the problem on MS.NET first, and then on Mono and since Microsoft is very unlikely to care about what I have to say, I decided that you guys can be a lot more helpful. Thanks Vladimir Dimitrov P.S. I tried it on different machines Core 2 Duo (T7200) and Pentium 4. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Any ideas about the crash in Glade# under windows (GTK# 2.10)
Does anybody know if here is a fix or a workaround bug #323607? I had to upgrade to a newer version of GTK# (2.10 included with mono) under windows in order to avoid another bug that is fixed now, but I get an exception on Autoconnect of the Glade.XML. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [Gtk#] How to print on win32 and Unix
I use System.Drawind.Printing and it works fine. It works on both Linux and Windows too :). Saebastien fixed a lot of stuff there so the System.Drawing interface works fine for printing. You can find many many examples on the internet. Hopefully Miguel will give him some time to implement Metafiles so the printing will become really smooth :). On 9/20/07, Markus Kilås [EMAIL PROTECTED] wrote: I use gtk for printing, it works on Linux, but I have not tried it on windows yet. Sample code is below if it can be to any help: http://wordtrainer.googlecode.com/svn/trunk/wordtrainer /Wordtrainer/GtkPrinting.cs David Arnaud-Goddet skrev: Hi all, I develop a GUI in csharp which have to work and windows and Unix. I would like to add in my Gtk.Windows a button to print document. I find, in the mono doc the class : Gtk.PrintUnixDialog I read that : This class implements a Print dialog for platforms which don't provide a native printing dialog What does native printing dialog mean? Which platforms already have a native printing dialog and how can I use it ? Moreover if somebody has a sample code to a print dialog it will be fine! Thanks. -- David ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Markus Kilås +46(0)70 424 94 85 [EMAIL PROTECTED] [EMAIL PROTECTED] www.markuspage.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] System.Drawing.Printing bugfixes
The first one in PreviewPrintController.cs references bug #80765.http://bugzilla.ximian.com/show_bug.cgi?id=80765 The second one is due to loss of precision in integer division. Index: PrintingServicesUnix.cs === --- PrintingServicesUnix.cs (revision 77797) +++ PrintingServicesUnix.cs (working copy) @@ -780,10 +780,10 @@ } GdipGetPostScriptGraphicsContext (name, -width / 100 * 72, -height / 100 * 72, -// Harcoded dpy's -300, 300, ref graphics); +width * 72 / 100, +height * 72 / 100, +default_page_settings.PrinterResolution.X, +default_page_settings.PrinterResolution.Y, ref graphics); DOCINFO doc = new DOCINFO (); doc.filename = name.ToString(); Index: PreviewPrintController.cs === --- PreviewPrintController.cs (revision 77797) +++ PreviewPrintController.cs (working copy) @@ -78,8 +78,7 @@ [MonoTODO] public override Graphics OnStartPage(PrintDocument document, PrintPageEventArgs e) { - Image image = new Bitmap (e.PageSettings.PaperSize.Width * e.PageSettings.PrinterResolution.X / 100, - e.PageSettings.PaperSize.Height * e.PageSettings.PrinterResolution.Y / 100); + Image image = new Bitmap (e.PageSettings.PaperSize.Width, e.PageSettings.PaperSize.Height); PreviewPageInfo info = new PreviewPageInfo (image, new Size (e.PageSettings.PaperSize.Width, e.PageSettings.PaperSize.Height)); @@ -89,8 +88,6 @@ Graphics g = Graphics.FromImage (info.Image); g.FillRectangle (new SolidBrush (Color.White), new Rectangle (new Point (0,0), new Size (image.Width, image.Height))); - g.ScaleTransform (e.PageSettings.PrinterResolution.X / 100.0f, e.PageSettings.PrinterResolution.Y / 100.0f); - return g; } ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] System.Drawing.Printing bugfixes
I'm not sure if my first e-mail made it to the list. If it already did then sorry about the spam. These are two small bugfixes to the printing namespace in SD. The first one in PreviewPrintController.cs references bug #80765.http://bugzilla.ximian.com/show_bug.cgi?id=80765 The second one is due to loss of precision in integer division. Index: PrintingServicesUnix.cs === --- PrintingServicesUnix.cs (revision 77797) +++ PrintingServicesUnix.cs (working copy) @@ -780,10 +780,10 @@ } GdipGetPostScriptGraphicsContext (name, -width / 100 * 72, -height / 100 * 72, -// Harcoded dpy's -300, 300, ref graphics); +width * 72 / 100, +height * 72 / 100, +default_page_settings.PrinterResolution.X, +default_page_settings.PrinterResolution.Y, ref graphics); DOCINFO doc = new DOCINFO (); doc.filename = name.ToString(); Index: PreviewPrintController.cs === --- PreviewPrintController.cs (revision 77797) +++ PreviewPrintController.cs (working copy) @@ -78,8 +78,7 @@ [MonoTODO] public override Graphics OnStartPage(PrintDocument document, PrintPageEventArgs e) { - Image image = new Bitmap (e.PageSettings.PaperSize.Width * e.PageSettings.PrinterResolution.X / 100, - e.PageSettings.PaperSize.Height * e.PageSettings.PrinterResolution.Y / 100); + Image image = new Bitmap (e.PageSettings.PaperSize.Width, e.PageSettings.PaperSize.Height); PreviewPageInfo info = new PreviewPageInfo (image, new Size (e.PageSettings.PaperSize.Width, e.PageSettings.PaperSize.Height)); @@ -89,8 +88,6 @@ Graphics g = Graphics.FromImage (info.Image); g.FillRectangle (new SolidBrush (Color.White), new Rectangle (new Point (0,0), new Size (image.Width, image.Height))); - g.ScaleTransform (e.PageSettings.PrinterResolution.X / 100.0f, e.PageSettings.PrinterResolution.Y / 100.0f); - return g; } ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list