Re: [Mono-dev] Oracle Managed Client

2012-10-04 Thread Bojan Rajkovic
Hi Ventsislav,

Try running it with mono --trace=E:all to see what the actual exception is.

—Bojan

On Oct 1, 2012, at 9:31 AM, Ventsislav Mladenov ventsislav.mlade...@gmail.com 
wrote:

 Hi,
   Yesterday the oracle has released beta version of ODP.NET which they claim 
 that is fully managed. I tried it on Linux/Mono - 2.11.4 but I'm getting an 
 exception on connection open.
 
 Invalid type Oracle.ManagedDataAccess.Client.OracleCommand for instance field 
 OracleInternal.ServiceObjects.OracleGlobalizationImpl:m_cmd
 
 Unhandled Exception:
 System.TypeLoadException: A type load exception has occurred.
  at Oracle.ManagedDataAccess.Client.OracleConnection.Open () [0x0] in 
 filename unknown:0
 Invalid type Oracle.ManagedDataAccess.Client.OracleCommand for instance field 
 Oracle.ManagedDataAccess.Client.OracleTransaction:m_command
 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load 
 exception has occurred.
  at Oracle.ManagedDataAccess.Client.OracleConnection.Open () [0x0] in 
 filename unknown:0
 
 I do not know Is it Mono related or Oracle related problem, It's more likely 
 it is mono related because the provider works well on Windows/.NET
 
 -- 
 
 Sincerely yours
   Ventsislav Mladenov
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



smime.p7s
Description: S/MIME cryptographic signature
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] trouble with mono's handling of unsafe struct pointers vs MS.NET...

2012-08-17 Thread Bojan Rajkovic
 

On 2012-08-17 6:27 pm, David Jeske wrote: 

 On Fri, Aug 17, 2012
at 1:40 PM, Rodrigo Kumpera kump...@gmail.com [1] wrote: 
 
 The
code that made this ilegal is from 2005 so, yeah, in some very very old
version of mono it did work. Anyway, we've reverted to allow any pointer
to structs on the upcoming 2.12 release. The change is
f8f2da07c9b0a609f07aa342b49e4dcb7f6bf6b4.
 
 Great. I'll try this out
when it available (or a daily build maybe) and see if it's back to
working. Thanks!

Hi David, 

Every commit is built by Mono's continuous
integration system, MonkeyWrench. You can check out the available
lanes/builds at https://wrench.mono-project.com/Wrench/ [2] and look for
the git commit that Rodrigo mentioned to be built for the appropriate
OS. If none of those fit, you can also look for source tarballs there in
the mono-dist lane. 

Cheers, 

Bojan 
 

Links:
--
[1]
mailto:kump...@gmail.com
[2] https://wrench.mono-project.com/Wrench/
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Using a mysql Set column with sqlmetal

2012-05-14 Thread Bojan Rajkovic
NHibernate works exceedingly well on Mono—I've been using it for years, since 
before version 2.0 of NHibernate. I've currently got both 2.x and 3.x apps in 
production, and even Fluent NHibernate and LINQ to NHibernate work flawlessly.  

Hope that helps,
Bojan

--  
Bojan Rajkovic
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Monday, May 14, 2012 at 11:33 AM, Adam Tauno Williams wrote:

 On Tue, 2012-05-08 at 14:05 -0400, Abe Gillespie wrote:  
  All I can say is GOOD LUCK! DbLinq has long atrophied and after
  spending many many hours trying to wrangle it myself, I ended just
  buying Devart. Trust me, it pays for itself over the hours (and hours
  and hours) of frustration it'll save. I would recommend Devart or an
  alternative method for accessing your data and to steer far clear of
  DbLinq.
   
  
  
 +1 on steering clear of DBLinq. DBLinq was the straw-on-the-camel that
 finally pushed me to give up on C#/.NET for server-side [without a real
 Open Source platform I don't want to build stuff on it].  
  
 Really sad, because without a really good way to interface with
 databases...
  
 But nHibernate might be an option worth looking at. Someone told me
 that they work on Mono these days [unverified].
  
  Don't get me wrong, though. It was a very ambitious project and the
  code is quite beautiful. But there are way too many edge cases that
  aren't covered and you'll undoubtedly eventually run into one or more
  of those issues.
   
  
  
 ___
 Mono-list maillist - Mono-list@lists.ximian.com 
 (mailto:Mono-list@lists.ximian.com)
 http://lists.ximian.com/mailman/listinfo/mono-list
  
  


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] C# predefined libraries source code reference?

2012-02-05 Thread Bojan Rajkovic
MonoDevelop has Vim bindings.

—Bojan

On Feb 4, 2012, at 1:59 PM, ctje wrote:

 Thanks for replying!
 I know about MonoDevelop and I think it is a good alternative to visual 
 studio.
 But it lacks the awesome vimbindings, without I just can't program 
 comfortable.
 
 
 On Sat, Feb 4, 2012 at 6:26 PM, Ian Norton 
 ian.norton-bad...@thales-esecurity.com wrote:
 Chiel92 ctj...@gmail.com wrote:
 
 Hi all,
 
 I am a C# programmer and I'm eager to set up a vim IDE in which I can
 program C# on linux :)
 I want to create a tags file containing all classes, methods,
 namespaces,
 etc that are included in mono, using ctags. Then I will be able to have
 auto
 completion in vim and more cool stuff. As far as I know I need the
 source
 code from all these libraries for creating such a tags file.
 Where can I get the source from these libraries (if available)?
 
 Thanks in advance for any reply!
 
 Chiel
 
 --
 View this message in context:
 http://mono.1490590.n4.nabble.com/C-predefined-libraries-source-code-reference-tp4357209p4357209.html
 Sent from the Mono - General mailing list archive at Nabble.com.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
 
 Ctags and vim do sort of with with c#, but monodevelop works about 100 times 
 better, plus you get a debugger.
 
 On the other hand, someone could write a simple program to create ctags 
 output from an assembly without source.
 
 Ian
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Test

2012-01-13 Thread Bojan Rajkovic
Doesn't look like you broke it.

—Bojan
On Jan 14, 2012, at 2:03 AM, Gonzalo Paniagua Javier wrote:

 This is a test.
 
 -Gonzalo
 ___
 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] Network file path URI

2011-12-15 Thread Bojan Rajkovic
On Dec 15, 2011, at 11:37 AM, Mike Murdock wrote:

 I am trying to point to a network file share and don’t know how to format the 
 URI
  
 I have tried \\server\share\path\test.jpg and it gives me a “Unreconized 
 escape sequence’ I tried switching the “/” put it does not load the file.
  
 Any Ideas?
  
  

Hi Michael,

Are you on Windows? Linux does not understand UNC share paths. You'll have to 
mount the file share via SMBFS or NFS or something, and use a standard 
Unix-style path.

—Bojan

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] need help getting started creating my own libraries

2011-12-09 Thread Bojan Rajkovic
On Dec 9, 2011, at 9:05 AM, Fulko Hew wrote:

 
 On Thu, Dec 8, 2011 at 4:15 PM, Charlie Poole char...@nunit.com wrote:
 On Thu, Dec 8, 2011 at 12:48 PM, Fulko Hew fulko@gmail.com wrote:
 
 ... snip ...
  
  Lets say my library ('mylib') consists of only two things right now:
  myTypeA and myTypeB (that belong to my company 'xyz'.
  And to use/test these library components I have a main app called 'tester'.
 
  So what I was expecting to do was to create the following directory
  structure:
 
  ./com.xyz.mylib/
  myTypeA.cs
  myTypeb.cs
  ./com.xyz.tester/tester.cs
 
  a) is this a valid structure?
 
 Sure, although the backwards naming of components something that is
 part of the Java culture and a little foreign to most C# folks. That's OK.
 
 Then what _is_ the recommended directory structure?

You'll find that a lot of folks use one the following, starting from the root 
of the project:

src/AssemblyName/Namespace/Namespace/Namespace/Class.cs — nested namespaces, 
rooted by assembly
src/AssemblyName/Namespace.Namespace.Namespace/Class.cs — top-level namespaces, 
rooted by assembly

Infinite combinations are possible, really—there's no canonical One True 
Directory Structure.

  
  b) what compiler directives do I use to build my libraries?
 
 ... snip ...
  
 gmcs -t:library -out:mylib.dll myTypeA.cs myTypeB.cs
 gmcs -t:exe -out:tester -r:mylib.dll tester.cs
 
 Thanks, your help has gotten me past my original hurdle, but,
 is this kind of stuff documented anywhere? or is it just
 something you have to figure out and/or ask about like I did?

I think 'man gmcs' may have some examples. It'll definitely have documentation 
of all the command line switches that you need/want to use.

 
 In a related question... how would I go about compiling the components
 separately and then 'link' them together into a library? (ie. the traditional
 'don't recompile unless the source file changed' approach.)

You don't (well…mostly. Netmodules exist, and I'll address them shortly). The 
C# compiler is plenty fast, so there's generally no need to do this. It's not 
like the C++ compiler, chewing through 450k of headers and source for Hello, 
world! That said, there is an intermediate format called a netmodule, but it's 
poorly documented because Microsoft has more or less dropped support for them. 
They can still be accessed via the compiler directly, but none of the IDE's 
support using them. I'm also not sure of the limitations—more likely than not, 
you can't go single .cs file to single .netmodule because you need to resolve 
all the referenced types at emit time.

 
 This would all be much easier if you were using MonoDevelop rather
 than working at the command line, but I suppose you're like me and
 want to do it the hard way first. :-)
 
 Your right.  I'm an engineer and not a 'mouse jockey', and I need to know 
 whats
 going on. Especially because I can't expect the 'next guy' to be using
 exactly the same tools (or platform) as I am.  Heck... I didn't even know
 that MonoDevelop existed!  None of the introductory docs _I_ read mentioned 
 it.
 
 Fulko
 

MonoDevelop was at one point referenced from 
http://go-mono.com/http://mono-project.com. A simple search for C# IDE Linux 
would have also probably gotten you there quickly. :)

Hope that helps,
Bojan

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Options of the project Mono for Net Framework 2.0

2011-12-01 Thread Bojan Rajkovic
Ubuntu 11.10 ships a Mono that only supports 4.0. The compiler, libraries, etc. 
are all 4.0 only in Ubuntu 11.10. If you need 2.0 support, you can try 
compiling manually and using csc /sdk:2, but I don't guarantee it will work.

—Bojan

On Dec 1, 2011, at 9:42 AM, Stifu wrote:

 I guess we need more info.
 Did you use MonoDevelop, or tried to compile through command lines?
 
 
 tumanovalex wrote
 
 In Ubuntu 11.10 has established Mono from repository, has transferred
 project Visual Studo 2008 for Net Framework 2.0 and has tried to compile
 it. I receive an error the compiler isn't found though the compiler for
 CLI 2 (mono-mcs) is established. Prompt how correctly to adjust, please,
 the project that it was compiled.
 
 
 
 --
 View this message in context: 
 http://mono.1490590.n4.nabble.com/Options-of-the-project-Mono-for-Net-Framework-2-0-tp4128665p4128705.html
 Sent from the Mono - General mailing list archive at Nabble.com.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Mono, Oracle and .NET after 4.0

2011-11-07 Thread Bojan Rajkovic
On Nov 7, 2011, at 10:06 AM, Daniel Morgan wrote:

 Mono's oracle provider is not completely dead.  I have been making bug fixes 
 to it, but since I do not have git commit access, I have no ways to put them 
 there.   I even started migrating Mono's oracle provider to based on ODP.NET. 
   I should create a fork of it on github.
 
 An alternative is to use ODBC.
 
 Late this year or early next year, Oracle will have a private beta for a thin 
 oracle ado.net provider.  If interested, go to the ODP.NET at oracle.  There 
 is an old message talking about that.  
 https://forums.oracle.com/forums/thread.jspa?threadID=2216233tstart=30
 
 Since it is thin, there is a good chance it will work on Mono on Linux.
 

Thanks for the information Daniel—I've been wanting a thin provider for a while 
now, because my company does a lot of work with Oracle. Hopefully this comes 
out soon!

—Bojan___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app

2011-11-03 Thread Bojan Rajkovic
On Nov 3, 2011, at 9:12 AM, H . wrote:

 Hi Robert,
 
 thanks for your hints.
 
 The link sent describes how environment variables can be set up in Ubuntu. Of 
 course, nobody would try to manually set up environment variables when trying 
 to configure proxies. This is done by using SystemSettingsNetwork Proxy. 
 After that, Ubuntu sets up the necessary environment variables. In case of 
 the no_proxy environment variable this can be tested by issuing echo 
 $no_proxy on the command line.
 
 My question is not about setting up environment variables. I need to retrieve 
 the content of $no_proxy via C# in an ASP.NET app.


In all likelihood, the ASP.NET user (probably www-data, the 
Apache/Nginx/Lighttpd user) doesn't even have NO_PROXY set in its environment, 
since it doesn't make sense to set it. If you want NO_PROXY to propagate to the 
web server's environment, you'll have to edit its startup scripts to do so.

Hope that helps.

—Bojan

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] substantial performance regression between 2.10 and 2.6 or impl diff?

2011-08-27 Thread Bojan Rajkovic

On Aug 27, 2011, at 2:30 PM, Jonathan Shore wrote:

 
 On Aug 27, 2011, at 2:20 PM, Bojan Rajkovic wrote:
 
 On Aug 27, 2011, at 2:15 PM, Jonathan Shore wrote:
 
 
 My machine is an old 2006 Mac Pro 1,1  2 x Xeon 5130 (64 bit) running OSX 
 lion.   Here are the respective versions of mono:
 
 Would 32 vs 64 really make that much of a difference?   I have used 32 bit C 
 applications without any noticable perf difference.
 
 I am worried that there may also be a problem with 2.10.x on other platforms. 
   It would put my mind at ease if this is just a OSX implementation issue.
 
 I don't know if I can reasonably install both 2.6.x and 2.10.x on linux 
 without hand compiling and doing some magic in config.Would be nice to 
 know that this benchmark performs the same or better from 2.6 to 2.10.
 
 Jonathan

Might make a difference with respect to performance if your struct can fit in 
the registers on 64-bit, but cannot on 32-bit. :-) If you could post your 
benchmark code, more people could test.

—Bojan

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] substantial performance regression between 2.10 and 2.6 or impl diff?

2011-08-27 Thread Bojan Rajkovic
Hi all,

Here's my results from 64-bit Mono master on OS X 10.7.1. The CPU is an Intel 
Core i7 @ 2.0 GHz, with 8 GB of RAM backing it:

struct sum: 589998356.48, time: 1.593511 secs
class sum: 589998356.48, time: 14.413891 secs

Classes are almost twice as slow, which is somewhat odd.

—Bojan

On Aug 27, 2011, at 3:36 PM, Jonathan Shore wrote:

 Ok.  When you have a chance can you indicate your marks  CPU?   I expect a 
 reasonably modern CPU to be 2 - 6x fast than my sluggish cpu.   Thanks.
 
 
 So for instance my mac X5130 rates at 12.7 CINT 2006  vs  28.6  
 
 On Aug 27, 2011, at 2:57 PM, Slide wrote:
 
 I just ran on ubuntu 64bit with mono 2.10.1 and got better numbers than your 
 2.6.7. I had to run somewhere quick but will publish the numbers when I get 
 back.
 
 On Aug 27, 2011 11:16 AM, Jonathan Shore jonathan.sh...@gmail.com wrote:
  
  My machine is an old 2006 Mac Pro 1,1 2 x Xeon 5130 (64 bit) running OSX 
  lion. Here are the respective versions of mono:
  
  Mono on OSX:
  
  Mono JIT compiler version 2.10.4 (tarball Mon Aug 8 22:03:39 EDT 2011)
  Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. 
  www.mono-project.com
  TLS: normal
  SIGSEGV: normal
  Notification: kqueue
  Architecture: x86
  Disabled: none
  Misc: debugger softdebug 
  LLVM: yes(2.9svn-mono)
  GC: Included Boehm (with typed GC)
  
  
  Mono on Ubuntu 11.04 (running in VMWare VM on same machine):
  
  Mono JIT compiler version 2.6.7 (Debian 2.6.7-5ubuntu3)
  Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
  TLS: __thread
  GC: Included Boehm (with typed GC and Parallel Mark)
  SIGSEGV: altstack
  Notifications: epoll
  Architecture: amd64
  Disabled: none
  
  
  Here is the Mac OSX mono 2.10.4 run:
  
  $ mono main.exe 
  Running benchmark
  struct sum: 589998356.48, time: 9.010549 secs
  class sum: 589998356.48, time: 30.67357 secs
  
  Here is the Ubuntu 11.04 mono 2.6.7 run:
  
  $ mono main.exe 
  Running benchmark
  struct sum: 589998356.48, time: 2.737732 secs
  class sum: 589998356.48, time: 7.83984 secs
  
  Note that the running time for mono 2.6.7 is ~4x faster than mono 2.10.4 
  on the same box (and the linux run has the disadvantage of running on a 
  VM). The struct test is most likely not exercising the GC and the later 
  is. I suspect given the consistent performance difference is *not* a GC 
  issue, rather a difference in the JIT code generation. 
  
  Let me know if there is other information I can provide. Thanks. 
  
  Jonathan
  
  On Aug 27, 2011, at 1:52 PM, Slide wrote:
  
  
  
  On Sat, Aug 27, 2011 at 10:27 AM, Jonathan Shore 
  jonathan.sh...@gmail.com wrote:
  Hi,
  
  I was doing some benchmarks of struct vs class based creation (I have an 
  application that will generate millions of small objects). I was doing 
  the tests in a ubuntu 11.4 VM on my mac pro and found the following:
  
  mono 2.6.7 was 4x faster on my linux VM than 2.10.4 running on OSX (same 
  machine)
  
  I don't know whether this may be because of one of the following:
  
  - performance in 2.10.4 regressed vs 2.6.7
  - mono JIT implementation for OSX has a completely different JiT codebase 
  and does not perform
  - difference in GC (only relevant for second part of the test)
  
  Note that I tried this with separate compilations with mcs -optimize+ on 
  both environments as well as running the same exe on both.
  
  I can live with slower performance on OSX, but want to make sure that 
  linux and windows versions of mono 2.10.x have the performance of 2.6.7 
  or better.
  
  Can someone clue me in? I've included the simple test code with this 
  posting.
  
  Thanks
  
  Jonathan
  
  
  
  Can you publish your benchmark numbers and for what machines you are 
  running on?
  
  slide
  
  -- 
  slide-o-blog
  http://slide-o-blog.blogspot.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] substantial performance regression between 2.10 and 2.6 or impl diff?

2011-08-27 Thread Bojan Rajkovic
On Aug 27, 2011, at 2:15 PM, Jonathan Shore wrote:

 
 My machine is an old 2006 Mac Pro 1,1  2 x Xeon 5130 (64 bit) running OSX 
 lion.   Here are the respective versions of mono:
 
 Mono on OSX:
 
 Mono JIT compiler version 2.10.4 (tarball Mon Aug  8 22:03:39 EDT 2011)
 Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. 
 www.mono-project.com
   TLS: normal
   SIGSEGV:   normal
   Notification:   kqueue
   Architecture:  x86
   Disabled:none
   Misc:   debugger softdebug 
   LLVM:   yes(2.9svn-mono)
   GC:  Included Boehm (with typed GC)
 
 
 Mono on Ubuntu 11.04 (running in VMWare VM on same machine):
 
 Mono JIT compiler version 2.6.7 (Debian 2.6.7-5ubuntu3)
 Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
   TLS:   __thread
   GC:Included Boehm (with typed GC and Parallel Mark)
   SIGSEGV:   altstack
   Notifications: epoll
   Architecture:  amd64
   Disabled:  none
 
 
 Here is the  Mac OSX  mono 2.10.4 run:
 
   $ mono main.exe 
   Running benchmark
   struct sum: 589998356.48, time: 9.010549 secs
   class sum: 589998356.48, time: 30.67357 secs
 
 Here is the  Ubuntu 11.04  mono 2.6.7 run:
 
   $ mono main.exe 
   Running benchmark
   struct sum: 589998356.48, time: 2.737732 secs
   class sum: 589998356.48, time: 7.83984 secs
 
 Note that the running time for mono 2.6.7 is ~4x faster than mono 2.10.4 on 
 the same box (and the linux run has the disadvantage of running on a VM). 
 The struct test is most likely not exercising the GC and the later is.   I 
 suspect given the consistent performance difference is *not* a GC issue, 
 rather a difference in the JIT code generation.
 
 Let me know if there is other information I can provide.   Thanks.   
 
 Jonathan
 
 On Aug 27, 2011, at 1:52 PM, Slide wrote:
 
 
 
 On Sat, Aug 27, 2011 at 10:27 AM, Jonathan Shore jonathan.sh...@gmail.com 
 wrote:
 Hi,
 
 I was doing some benchmarks of struct vs class based creation (I have an 
 application that will generate millions of small objects).   I was doing the 
 tests in a ubuntu 11.4 VM on my mac pro and found the following:
 
  mono 2.6.7 was 4x faster on my linux VM than 2.10.4 running on OSX 
 (same machine)
 
 I don't know whether this may be because of one of the following:
 
 - performance in 2.10.4 regressed vs 2.6.7
 - mono JIT implementation for OSX has a completely different JiT codebase 
 and does not perform
 - difference in GC (only relevant for second part of the test)
 
 Note that I tried this with separate compilations with mcs -optimize+  on 
 both environments as well as running the same exe on both.
 
 I can live with slower performance on OSX, but want to make sure that linux 
 and windows versions of mono 2.10.x have the performance of 2.6.7 or better.
 
 Can someone clue me in?   I've included the simple test code with this 
 posting.
 
 Thanks
 
 Jonathan
 
 
 
 Can you publish your benchmark numbers and for what machines you are running 
 on?
 
 slide
 
 -- 
 slide-o-blog
 http://slide-o-blog.blogspot.com/

Hi Jonathan, Slide

I suspect this is a difference between x86 and amd64 codegen. Mono on OS X is 
distributed as 32-bit only for now, though there is (somewhat-experimental) 
amd64/Darwin support in master. You can build it following the instructions at 
http://www.mono-project.com/Compiling_Mono_on_OSX. Try benchmarking that.

—Bojan___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono and the LSB

2011-08-21 Thread Bojan Rajkovic
On Aug 21, 2011, at 10:58 PM, Joe Dluzen wrote:

 Hey all,
 
 anyone having luck, or interested in, mono compiling against the Linux
 Standard Base? After patching a few things I got it compiled by using
 the LSB compiler wrapper apps, though the app checker still fails on
 unknown symbols. Wondering if anyone has done this, or is even
 interested in it.
 
 Thanks,
 Joe

Hi Joe,

I don't know that anyone has done it (I haven't seen any chatter about it on 
the mailing lists or on IRC), but I don't see how it could hurt, providing that 
any required patches are not too invasive and don't break existing 
functionality. I'm willing to bet there's someone out there (a Linux ISV, 
perhaps) who would appreciate knowing that Mono can be compiled against the LSB.

Just my $0.02.

—Bojan

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] ironpython exe not found

2011-08-06 Thread Bojan Rajkovic
On Aug 6, 2011, at 8:31 AM, Nivaldo Fernandes wrote:

 Hi,
 
 After installing Mono Release in 2.10.3 in Snow Leopard 10.6.8 (Mac OS), and 
 typing ipy at the terminal, here is what i get:
 
 '/Library/Frameworks/Mono.framework/Versions/2.10.3/lib/ironruby/bin/ipy.exe':
  No such file or directory.
 
 So, it is looking for the IronPython exe in the IronRuby directory.
 
 Thanks for any help!
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

Hi Nivaldo,

I can replicate this as well—please file a bug at http://bugzilla.xamarin.com.

—Bojan
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] sdb-cli: Command Line Interface to the Soft Debugger

2011-06-13 Thread Bojan Rajkovic
On Jun 13, 2011, at 11:47 AM, Alex wrote:

 Hi,
 
 There are two reasons I chose to use Mono.Debugging:
 
 1) Expression evaluation.
 2) Nicer interface for VM events (all the socket stuff is abstracted away).
 
 I consider the first the most important, personally, and I don't think
 there's any other (efficient) way to feature expression evaluation.
 Expression evaluation is absolutely crucial, especially with a command
 line debugger (where you don't have pretty type visualizers), so it
 needs to be there in one form or another.
 
 I'm also currently looking into adding ICSharpCode.Decompiler as a
 dependency, which would undoubtedly add to the friction... The reason
 for this is to allow decompiling assemblies for which there is no
 source code, and (hopefully) support debugging (breakpoints, etc) in
 the future.
 
 Overall, it'll probably be hard to ship sdb-cli with Linux distros,
 but what about the Mac packages?
 
 Regards,
 Alex

There's no reason it would be hard to ship with Linux distros—you'll just need 
to pull in source for the assemblies you use and keep it up to date, rather 
than using binaries and keeping those up to date. A little more effort  for 
you, but the downstreams will love you for playing nicely with them.

—Bojan

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] ubuntu support

2011-05-16 Thread Bojan Rajkovic

On May 16, 2011, at 11:43 PM, Daniel Hughes wrote:

 Currently all my volunteer time is going into Wide Margin. And I foresee it 
 taking up all my time in the near future.
 
 However my suggestion is that the mono project drops open suse and instead 
 supports ubuntu. 

 This would require no extra effort. And would get the latest mono to a larger 
 user base.
 

This is where you're wrong—it would require extra effort. Not many of the Mono 
team members use Ubuntu (or any Debian-derivative, which means learning a 
whole new set of package management/building tools), and as Jon already pointed 
out, there are a very talented set of Debian packagers who do a much better job 
of making available proper packages for Debian and Debian derivatives than the 
Mono team ever could. There are better things for the newly-minted Xamarin team 
to focus on than duplicating work that is already done by two able and willing 
hands. If you want up-to-date Ubuntu packages, donate some cash or better yet, 
some time to either Mirco Bauer (meebey) or Jo Shields (directhex), who 
comprise the Mono packaging tag-team for Debian.

 On Tue, May 17, 2011 at 3:30 PM, Slide slide.o@gmail.com wrote:
 I'm sure no one would mind if you volunteered to help out.
 
 On May 16, 2011 7:36 PM, Daniel Hughes tramps...@gmail.com wrote:
  I looking for upto date packages,
  
  Im still waiting for 2.8 packages and 2.10 packages.
  
  So what I'm looking for is when a new version of mono is released on the
  same day the new Ubuntu packages are available. Not a year or two or three
  later.
  
  On Tue, May 17, 2011 at 2:29 PM, Jonathan Pobst mon...@jpobst.com wrote:
  
  On 5/16/2011 8:45 PM, Daniel Hughes wrote:
 
  Can we expect official ubuntu support going forward?
 
 
  How do you define official ubuntu support?
 
  The community has excellent Ubuntu packagers who know the best way to
  package Mono for Ubuntu, and submit these packages for inclusion in the
  official Ubuntu releases.
 
  So the short of it is: Mono is already packaged and included in Ubuntu.
 
  What more than that would you like to see?
 
  Jonathan
 

—Bojan___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] How are the recent layoffs at Novell going to impact Mono?

2011-05-02 Thread Bojan Rajkovic
On May 2, 2011, at 7:41 PM, Rod wrote:

 From several sources it looks like ~800 people have been laid off by Novell
 today, with most of those being in the Provo office.  My understanding that
 this could have been up to about 50% of the people in the Provo.
 
 I am wondering if this will impact the Mono project and if so how?
 
 Links to current details:
 http://www.deseretnews.com/article/705371845/Employees-say-hundreds-laid-off-at-Novells-Provo-office.html
 http://www.ksl.com/?nid=148sid=15382738

I'm not a Novell employee, but here are my thoughts:

1) In my humble opinion, this question is fairly inappropriate for this list.
2) It's unlikely that it will impact the Mono team, because I don't think 
anyone working on Mono is located at the Provo, Utah office.

Cheers,
Bojan
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Unhandled Exception: System.DllNotFoundException: libclntsh.so

2011-03-20 Thread Bojan Rajkovic
On Mar 20, 2011, at 11:06 PM, wildabdat wrote:

 hi, i'm new on mono develop, trying to make application to connect to oracle
 DB, i found basic program examples on 
 http://www.mono-project.com/Oracle#Examples
 http://www.mono-project.com/Oracle#Examples  , and when i run it get
 following error message
 
 Unhandled Exception: System.DllNotFoundException: libclntsh.so
  at (wrapper managed-to-native)
 System.Data.OracleClient.Oci.OciCalls/OciNativeCalls:OCIEnvCreate
 (intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
  at System.Data.OracleClient.Oci.OciCalls.OCIEnvCreate (System.IntPtr
 envhpp, OciEnvironmentMode mode, IntPtr ctxp, IntPtr malocfp, IntPtr
 ralocfp, IntPtr mfreep, Int32 xtramem_sz, IntPtr usrmempp) [0x0] in :0 
  at System.Data.OracleClient.Oci.OciEnvironmentHandle..ctor
 (OciEnvironmentMode mode) [0x0] in :0 
  at System.Data.OracleClient.Oci.OciGlue.CreateConnection
 (OracleConnectionInfo conInfo) [0x0] in :0 
  at System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection
 (OracleConnectionInfo info) [0x0] in :0 
  at System.Data.OracleClient.OracleConnectionPool.CreateConnection ()
 [0x0] in :0 
  at System.Data.OracleClient.OracleConnectionPool.GetConnection ()
 [0x0] in :0 
  at System.Data.OracleClient.OracleConnection.Open () [0x0] in :0 
  at (wrapper remoting-invoke-with-check)
 System.Data.OracleClient.OracleConnection:Open ()
  at con.MainClass.Main (System.String[] args) [0xf] in
 /home/wildabdat/Projects/con/con/Main.cs:16
 
 here is my environment
 
 ubuntu maverick 10.10 64 bit
 Oracle 10g Express Edition (on the same machine with mono)
 
 can anyone solve this problem? because i dont wanna back to Windows just to
 develop .Net Application
 
 thanks...
 
 --
 @wildabdat

Set your LD_LIBRARY_PATH to point to the ./lib/ folder under $ORACLE_HOME, 
where libclntsh.so is located.

—Bojan
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] AppActivate and System.Windows.Forms.SendKeys on Ubuntu 10.10

2011-03-16 Thread Bojan Rajkovic
On Mar 16, 2011, at 8:37 AM, Quandary wrote:

 Hi,
 
 Question: 
 Is System.Windows.Forms.SendKeys implemented and working on Ubuntu Linux ?
 
 I try to control JD-GUI with it, but the keys don't arrive, neither do they 
 arrive in gedit.
 They do arrive in Notepad on Windows using the same program, and they work 
 with JD-GUI on Windows, using the same program. 
 
 Or does it need any library installed, such as XTest/XFakeEvent ?
 
 
 And BTW, Microsoft.VisualBasic.Interaction.AppActivate(Window Title) throws 
 not implemented...
 
 You can use the functions:
  static Window FindWindow(Window top, char *name)
  static void GetFocusedWindow(void)
 From xvkbd - in file xvkbd.c
 Basically, all you need to do is save the mouse position, find the target 
 window position  rectangle, and press the left mousebutton somewhere on it 
 with mousedown  mouseup via xsendevent, then restore the mouse position.
 
 I can supply left + right mousedown + mouseup,
 I have appended cMouse.cs and the dependencies: XorgAPI + XorgStructs.
 
 And when I loop through all processes, as shown below, I don't get a 
 WindowTitle anywhere...
 (using mono 2.10.1 on Ubuntu)
 
 
 public void GetProcesses()
 { 
 System.Diagnostics.Process[] processlist = 
 System.Diagnostics.Process.GetProcesses();
 
 string str = ;
 foreach(System.Diagnostics.Process theprocess in processlist)
 {
 Console.WriteLine(Process: {0} ID: {1} WindowTitle: {2}, 
 theprocess.ProcessName, theprocess.Id, theprocess.MainWindowTitle);
 str += string.Format(Process: {0} ID: {1} WindowTitle: {2}, 
 theprocess.ProcessName, theprocess.Id, theprocess.MainWindowTitle);
 str += Environment.NewLine;
 }
 MessageBox.Show(str);
 }
 
 
 
 cMouse.cscXorgAPI.csStructs.cs___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

Erm, I don't think SendKeys for WinForms is going to work against !WinForms 
apps on Linux. gEdit is GTK+, so the mainloops don't match at all, and gEdit 
likely isn't expecting any keys from Mono.

—Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] CSharp interpreter feedback, and a gift

2011-01-27 Thread Bojan Rajkovic

On Jan 27, 2011, at 9:52:35PM, Doug Blank wrote:

 It would be great to be able to have C# as one of the languages to use
 in this educational environment, but until it can address functions
 and classes, it will be a second-class citizen. Although, it will be a
 nice step for students to be able to take to see a fully-typed,
 explicit language---even as it is interpreted.
 
 If any one has suggestions about using C# in the educational
 environment, please let me know.
 
 -Doug

If you're willing to fake it, you can define functions as lambdas. It'll be ~= 
to defining them in a real sense.

Try something like this:

ActionT printMe = t = Console.WriteLine (t);

or in the more complex case (retrieving some content from a webserver that 
always returns GZip [yes, I did run into this while exploring some services via 
the REPL]):

Funcstring, string doRequestWithPayload = payload = {
var wc = new WebClient ();
var data = wc.UploadData (http://url:port/service;, POST, 
Encoding.UTF8.GetBytes (payload));
return new StreamReader (new GZipStream (new MemoryStream 
(data), CompressionMode.Decompress)).ReadToEnd ();
}

It works perfectly well in the interpreter. It's not quite a real function 
definition, but it's close enough for most purposes. Classes on the other hand 
are a no-go.

—Bojan

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Too many heap sections

2010-12-12 Thread Bojan Rajkovic
On Dec 12, 2010, at 9:00:56AM, Yury Serdyuk wrote:

 Rodrigo Kumpera wrote:
 
 This is a known limitation of Boehm. Try using sgen instead.
 
 I have configured Mono as
 
 ./configure --with-gc=none --with-large-heap=yes --with-sgen=yes
 
 mcs source:mcs
olive source:
 
   Engine:
GC:sgen and included Boehm
GLIB:  embedded
TLS:   __thread
SIGALTSTACK:   yes
Engine:Building and using the JIT
oprofile:  no
BigArrays: no
DTrace:no
Parallel Mark: yes
LLVM Back End: no (dynamically loaded: no)
 
Libraries:
Moon Profile:  no
MonoTouch: no
JNI support:   IKVM Native
libgdiplus:assumed to be installed
zlib:  system zlib
 
 but got on the make step:
 
 CClibmonosgen_2_0_la-mini-posix.lo
 LDlibmonosgen-2.0.la
 ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-sgen-gc.o):
  
 In function `mono_gc_make_descr_for_string':
 /home/s/mono-2.8.1/mono/metadata/sgen-gc.c:870: multiple definition of 
 `mono_gc_make_descr_for_string'
 ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-null-gc.o):/home/s/mono-2.8.1/mono/metadata/null-gc.c:127:
  
 first defined here
 /usr/bin/ld: Warning: size of symbol `mono_gc_make_descr_for_string' 
 changed from 3 in 
 ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-null-gc.o)
  
 to 6 in 
 ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-sgen-gc.o)
 ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-sgen-gc.o):
  
 In function `mono_gc_max_generation':
 /home/serdyuk/mono-2.8.1/mono/metadata/sgen-gc.c:6072: multiple 
 definition of `mono_gc_max_generation'
 ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-null-gc.o):/home/s/mono-2.8.1/mono/metadata/null-gc.c:29:
  
 first defined here
 
 I have tried to build Mono 2.8.1.
 
 Again, any suggestions, please ?
 
 Regards,
Yury

Try removing --with-gc=none, you shouldn't need it.

Cheers,
Bojan

 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] JSON.NET / Mono question (Deserialization Hangs)

2010-12-06 Thread Bojan Rajkovic
On Dec 6, 2010, at 8:53:21AM, Adam Tauno Williams wrote:

 On Mon, 2010-12-06 at 00:19 -0500, Bojan Rajkovic wrote: 
 On Dec 4, 2010, at 9:43:17AM, Adam Tauno Williams wrote:
 mono-core-2.6.4-2.13.x86_64
 Json.NET 3.5 Release 8
 I call the deserializer and it works - I can see the objects created
 (deserialized) but then the deserializer never exits/returns.
 ListListEntry listed_entries =
  JsonConvert.DeserializeObjectListListEntry(payload);
 Console.WriteLine(Deserialization complete);
 ListEntry objects are created, then the program 'hangs'.
 Deserialization complete never appears.
 Are any of your object creations throwing exceptions? I had an issue
 like this a /while/ ago where exceptions were being thrown by the
 object constructors, but JSON.NET was swallowing them silently.
 If you're not sure if you're getting exceptions, try running mono
 --trace=E:all your_app.exe to trace exception throws throughout the
 runtime of the process.
 
 This was exactly the issue; deserialization was failing with assigning a
 null to an int but no exception was raised.
 
 http://stackoverflow.com/questions/4354108/json-net-deserialization-hangs-mono

Bingo, this is exactly what I was seeing. The weird thing is, I never was able 
to figure out why it was causing the hangs. I've long since disinherited that 
code, but maybe filing a bug with the trace might help in at least 
acknowledging and tracking the issue.

—Bojan

 
 -- 
 Adam Tauno Williams awill...@whitemice.org LPIC-1, Novell CLA
 http://www.whitemiceconsulting.com
 OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] JSON.NET / Mono question (Deserialization Hangs)

2010-12-05 Thread Bojan Rajkovic
On Dec 4, 2010, at 9:43:17AM, Adam Tauno Williams wrote:

 mono-core-2.6.4-2.13.x86_64
 Json.NET 3.5 Release 8
 
 I call the deserializer and it works - I can see the objects created
 (deserialized) but then the deserializer never exits/returns.
 
 ListListEntry listed_entries =
   JsonConvert.DeserializeObjectListListEntry(payload);
 Console.WriteLine(Deserialization complete);
 
 ListEntry objects are created, then the program 'hangs'.
 Deserialization complete never appears.
 

Are any of your object creations throwing exceptions? I had an issue like this 
a /while/ ago where exceptions were being thrown by the object constructors, 
but JSON.NET was swallowing them silently.
If you're not sure if you're getting exceptions, try running mono --trace=E:all 
your_app.exe to trace exception throws throughout the runtime of the process.

Hope this helps,
Bojan

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Generic Constraints Regression in 2.8

2010-11-15 Thread Bojan Rajkovic
On Nov 15, 2010, at 12:39 AM, dan witt wrote:

 Except that Y is constrained to be of type Z and so is guaranteed to be a 
 reference type.

Good catch, I misread. That's what I get for responding late at night.

—Bojan

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Unspecific error: System.Exception: Generic Error [GDI+ status: GenericError]

2010-10-29 Thread Bojan Rajkovic

On Oct 29, 2010, at 2:07 PM, Yves Goergen wrote:

 On 29.10.2010 19:34 CE(S)T, Stifu wrote:
 The problem might be more subtle than anticipated, like a x64-only bug?
 *shrugs*
 
 No, it's happening on both 32 and 64 bit systems. Across systems,
 distributions and Mono versions. Today I only played with 32 bit.
 
 Currently I must assume that it is a persisting bug in Mono that hasn't
 been fixed up to now. Maybe I should better get one of those bug-filing
 accounts...

I'm not able to repro this bug on OS X...if you can't get somebody else to 
reproduce the bug, it's not a bug.

 
 -- 
 Yves Goergen LonelyPixel nospam.l...@unclassified.de
 Visit my web laboratory at http://beta.unclassified.de
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

—Bojan

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Where should I install my pkg-config files on OS X?

2010-10-18 Thread Bojan Rajkovic
On Oct 18, 2010, at 10:58 AM, Jackson Harper wrote:

 
 For libev-sharp I'm trying to follow the developer guidelines for
 unstable API.  Basically I create install my dll in
 prefix/lib/libev-sharp/
 
 Then to use libev-sharp projects should do:
 
 cp `pkg-config --variable=Libraries Thing` build/.
 
 The problem is on OS X I have no idea where libev-sharp should install
 the libev-sharp.pc file. Using 
 
 pkg-config --variable=pc_path pkg-config |  awk -F: '{print $1}'
 
 doesn't really help, I get a garbage directory like /tmp/pkg-config 
 
 Should I just hardcode it to
 '/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/'
 
 Or is there something better I can do?
 
 
 Jackson

IIRC, pkg-config is hard-coded to look into /usr/lib/pkgconfig and 
/usr/local/lib/pkgconfig—I don't know if this holds true on OS X or if it's 
appropriate for libev-sharp, but it may be worth a shot.

—Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Commercial redistribution/license question

2010-10-13 Thread Bojan Rajkovic
On Oct 13, 2010, at 1:39 PM, Mark Gollin wrote:

 Hi,
 
 We've got a product that we're experimenting with Mono for in order to share 
 critical code between our Windows and Mac versions. The actual Mono use is 
 quite straightforward: we're simply compiling command line executables that 
 use regular-expression portions of the .NET 2.0 framework. We've been able to 
 use the OS X installation binary package directly, with no need to recompile 
 or modify any Mono source. The primary application does not use Mono at all, 
 it simply invokes these cmd-line executables to perform certain processing.
 
 Our problem is that our product exceeds the terms of the commercial license 
 available through purchase of the Mono Tools Ultimate package. 100K volume 
 would be okay, but we have revenues in excess of $2M annually. And my reading 
 of LGPLv2 makes it a non-starter: the C# code in question is extremely 
 valuable patent-protected intellectual property.
 
 We've sent mail (multiple times) via the web form on the FAQ for licensing 
 questions, but have received no reply. Is there anyone on the list that can 
 put us in contact with the right people to negotiate a license? Or can 
 clarify any way we can use/redistribute Mono runtimes legally without 
 revealing our source?
 
 --Mark A. Gollin
 
 VP Development
 The Neat Company
 www.neatco.com

Hi Mark,

Mono is LGPLv2 licensed, but you don't have to license your code LGPLv2 if 
you're just using Mono to run the executables via the standard installed 
framework and not recompiling or modifying Mono source.
As long as users can install an updated Mono (ie. you're not locking them down 
to a certain Mono and not providing the necessary object code to use a newer 
Mono), you're not violating the LGPL license terms.

Best,
Bojan

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Mono Winforms on Mac (Carbon) fixes - all my source code changes attached

2010-10-07 Thread Bojan Rajkovic
Hi Ralph,

This sounds really cool, but my bet is that the WinForms maintainer is going to 
want to see it as smaller patch chunks, and preferably without 
whitespace/formatting changes (which it sounds like you have if you used Visual 
Studio's Format Document feature). 

You may want to also fork Mono on Github and apply these patches to your fork 
(make the patch applications atomic, commit often, and document the commits 
appropriately), then send a pull request. In my experience, pull requests make 
it easier for the team to review what's changed and decide whether it's good to 
apply.

Of course, my opinions are not those of the WinForms maintainer, who may be 
happy to take your code as is—definitely wait for them before doing anything 
drastic.

Regards,
Bojan

On Oct 7, 2010, at 12:56 PM, Ralph Leckett wrote:

 Hi All,
 
 Attached is a zip file of 54 classes that I modified to get Mono
 Winforms on Mac Carbon working with my .net application from hell. My
 apologies for using MS Visual Studio's Format Document on all of
 them.
 
 Ralph Leckett
 MonoLibs-Diff.zip___
 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# move propertygrid to Gtk-sharp

2010-09-28 Thread Bojan Rajkovic
This really belongs on MonoDevelop's own list: monodevelop-l...@lists.ximian.com

--Bojan

On Sep 28, 2010, at 2:42 AM, Tomasz Kubacki wrote:

 hi all,
 
 I've always considered propertygrid in winforms as one of the most
 useful controls.
 
 There is already this kind of control in Monodevelop, but it has strong
 dependencies on other Monodevelop components. Why not make it first
 class gtk# citizen and move it to gtk-sharp? This kind of component
 really speeds up gui development. Would it be hard to do ? What do you
 think ?
 
 best regards,
 
 Tomasz Kubacki
 
 ___
 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] Mono on the command line

2010-08-25 Thread Bojan Rajkovic
  On 08/17/2010 05:47 AM, KAD wrote:
 Hi all

 Does anybody know how to run an aspx page from the command line similar to
 how you can run a php file by just typing php somepage.php? I'm guessing
 it's something like MONO somepage.aspx but have had no luck so far.


You can't do so at all--.aspx pages require the ASP.NET infrastructure 
behind them, they're not just interpreted by the runtime. You can 
however fire up xsp in the directory and navigate to 
http://localhost:8080/somepage.aspx and test that way.

Cheers,
Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Desktop Silverlight applicaition for Linux

2010-08-11 Thread Bojan Rajkovic
Multipoint would need support from the X server. I don't know if it exists
or not.

On Aug 11, 2010 11:48 AM, optimus_prime author.blog...@gmail.com wrote:


Hi,

Well, I am planning to develop a desktop application using Silverlight and
want the same app to be available for Linux too.

I intend to use Microsoft's Multi Point technology where we can connect more
than one mouse with our machine and different pointers are available for
each one of the mice.

Previously, I got a suggestion
--
Sure, Silverlight isn't intended for the desktop, but there's no reason
why you can't embed a silverlight engine in your application. It's been done
before such as for the Mac NY Times Reader. You'll have better luck working
with Moonlight, which targets the Silverlight API, which is a subset of full
WPF
I am new to Linux but have some experience in Windows apps and
I wanted to know if Multi Point could be implemented in Linux?
--
*fingers crossed* After all, there's nothing impossible in programming!!!
--
View this message in context:
http://mono.1490590.n4.nabble.com/Desktop-Silverlight-applicaition-for-Linux-tp2321439p2321439.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Réponse automatique d'absence du bur eau : Desktop Silverlight applicaition for Linux

2010-08-11 Thread Bojan Rajkovic
No need to be rudely xenophobic. It's clearly a misconfigured out of office
response.

On Aug 11, 2010 10:28 PM, Newbie2910 speedu...@comcast.net wrote:


French dude, do you just send the same parley-vow-franshe reply to every
post?  Get a lift dude.
--
View this message in context:
http://mono.1490590.n4.nabble.com/Desktop-Silverlight-applicaition-for-Linux-tp2321439p2322112.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Ubuntu

2010-08-10 Thread Bojan Rajkovic

 On 08/10/2010 10:03 AM, Christopher Monroe wrote:


I'll second the complaint about the forum constantly refreshing the 
browser. It's useless in Opera. I'm forced to use Firefox. It's 
completely baffling as to why they display it the way the do.



The developers should consider looking at Launchpad, as used by the 
Ubuntu forums, as a top-notch support site.


I think the only reason Nabble is used is because it mirrors the mailing 
list effectively, but I don't know.


--Bojan
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Ubuntu

2010-08-10 Thread Bojan Rajkovic
Does GNOME maintain PPA's like this? Does any project?

On Aug 10, 2010 6:35 PM, Daniel Hughes tramps...@gmail.com wrote:

No one expects mono to be pushed out as a automatic update on ubuntu.
We do however expect a PPA which is on even footing with windows, mac
etc. I.E same day support to the same quality. And supported by the
mono team.

That is all.

On Wed, Aug 11, 2010 at 2:18 AM, Bojan Rajkovic severedcr...@gmail.com
wrote:

 
  On 08/10/2010 10:03 AM, Christopher Monroe wrote:
 
  I'll second the complaint about the foru...

  ___
  Mono-list maillist  -  mono-l...@lists.ximian.co...



___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Ubuntu

2010-08-09 Thread Bojan Rajkovic
On Mon, Aug 9, 2010 at 12:48 PM, green bruno.gr...@gmail.com wrote:


 why newer versions of mono cant be installed on ubuntu?
 if a framework is done well(not modifying interfaces, existing functions,
 etc), new releases would'nt break old applications.


Novell doesn't support Ubuntu, likely due to cost reasons--they'd pretty
much need to hire at least one more, maybe two more people to do
Debian-style packaging for Debian and Ubuntu. RPM-based distros like Red
Hat, etc. are easy, because they can modify SuSE .spec files as necessary.

This is not to say that updates to Mono can't be installed on Ubuntu. The
community packagers for Debbuntu do a good job of getting Mono releases out
shortly after the official release drops. You can find fairly up-to-date
releases for Ubuntu at http://badgerports.com, and Debian has up-to-date
releases in the experimental distribution. The reason that the official
Ubuntu repositories don't update faster is that Mono is a core framework,
and as such, requires extensive testing before it can be upgraded--due to
Ubuntu's policies, it's not likely that you'll ever see an updated Mono come
in through {distribution}-backports or any of the other update repos,
barring major security fixes, etc.



 another question, why the forum keeps refreshing all the time, also during
 posting? its annoying.


Nabble bug? Using the mailing list directly is much more convenient.



 --
 View this message in context:
 http://mono.1490590.n4.nabble.com/Ubuntu-tp2318791p2318791.html
 Sent from the Mono - General mailing list archive at Nabble.com.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Migration to GitHub completed!

2010-07-28 Thread Bojan Rajkovic
2010/7/28 pablosantosl...@terra.es pablosantosl...@terra.es

 Excellent!

 On 28/07/2010 11:32, Jérémie Laval wrote:
  Yes you are but if you aren't interested in contributing with this
  repository (no pushing or pulling from) you can pass the --depth
  1 switch to git clone which will only fetch one revision (that is HEAD).
  You will still be able to pull from github but that's pretty much it.
 
  --
  Jérémie Laval
  jeremie.la...@gmail.com mailto:jeremie.la...@gmail.com
  http://neteril.org
 
 
  On Wed, Jul 28, 2010 at 11:26 AM, pablosantosl...@terra.es
  mailto:pablosantosl...@terra.es pablosantosl...@terra.es
  mailto:pablosantosl...@terra.es wrote:
 
  Hi Alan,
 
  But, now I'm downloading the entire history of mono instead of a
 single
  copy of 'master', right?
 
  pablo


For what it's worth, a git clone of the full depth took less time on my
machine than an svn co of anonsvn trunk--almost 10 seconds less. Git is very
good at compressing history.

--Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] String comparisons slow

2010-07-21 Thread Bojan Rajkovic
Hi Alexander,

My understanding based on the documentation is that StringComparison.Ordinal
is essentially a C strcmp (in fact, it may be implemented as such under the
hood, via an icall to the C runtime code), and StringComparison.Invariant is
aware of surrogate pairs and composed characters, and is a linguistic
comparison (ie. this *letter* comes before the other, not this character
code).

--Bojan

2010/7/22 Alexander M. Batishchev abatishc...@godfather.net.ru

 Michael, could you please clarify the difference between Ordinal and
 Invariant string comparison?

 -Original Message-
 From: mono-list-boun...@lists.ximian.com
 [mailto:mono-list-boun...@lists.ximian.com] On Behalf Of Michael
 Hutchinson
 Sent: Thursday, July 22, 2010 12:29 AM
 To: David S
 Cc: mono-list@lists.ximian.com; wtftc
 Subject: Re: [Mono-list] String comparisons slow

 On Wed, Jul 21, 2010 at 3:30 PM, David S butt...@gmail.com wrote:
  Ok. Now I'm confused. How come CurrentCulture for US/ENG doesn't just
 run
  the Ordinal??? Perhaps there are some weird alphabetizing things I just
  don't understand. BTW, Thanks for tell us about the StringComparer class.
 I
  never knew that existed.

 Note also that some string methods have overloads for taking specific
 cultures, or the StringComparison enum. Both StringComparison.Ordinal
 and StringComparison.OrdinalIgnoreCase (as well as StringComparer) can
 be very useful to improve performance when culture-dependent behaviour
 is not needed or desirable.

 Culture-dependent string comparisons are a very complex topic. There's
 also an invariant culture for doing things in a culture-independent
 way.

 --
 Michael Hutchinson
 http://mjhutchinson.com
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Why GIT?

2010-06-30 Thread Bojan Rajkovic
On Wed, Jun 30, 2010 at 7:56 PM, Amir Ebrahimi a...@unity3d.com wrote:

 Hi Miguel,

 I was wondering if you can elaborate on why/how you chose GIT for future
 source control of Mono? With a lot of options out there, I'm just wanting a
 peek at some of your or the Mono team's thoughts when evaluating other VCS.
 Maybe a post on your blog is due :)

 Thanks,
 Amir


Hi Amir,

My guess is that Git was chosen because of its wide acceptance in the FOSS
community, and because of Mono developers' familiarity with the system. I'm
willing to bet that there are technical reasons too, but I can't speak to
those.

Regards,
Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Sending mail with smtp.gmail.com

2009-08-19 Thread Bojan Rajkovic

- Petit Eric surfz...@gmail.com wrote:

 workaround :
 line 102 and 197
 http://monoosc.svn.sourceforge.net/viewvc/monoosc/MonoOSC/MonoOBSFramework/Class/VarGlobal.cs?revision=273view=markup
 

You really shouldn't be doing this sort of workaround though. It's good for 
quick and dirty testing, but for real apps that you plan on releasing, please 
read http://www.mono-project.com/FAQ:_Security and 
http://www.mono-project.com/UsingTrustedRootsRespectfully for information on 
how to properly handle certificate errors.

Regards,
Bojan
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Code Contracts from Microsoft DevLabs

2009-06-09 Thread Bojan Rajkovic
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Tom Opgenorth wrote:
 Just curious, has anybody given Code Contracts for .NET
 (http://msdn.microsoft.com/en-us/devlabs/dd491992.aspx) a try under
 Mono to see if/how well they work?

I think someone just volunteered themselves.

- --
Bojan Rajkovic boj...@brandeis.edu
Biochemistry '10, Brandeis University
PGP Signature Key ID: 0x8783D016
PGP Encryption Key ID: 0x2497B8B2
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBCAAGBQJKLsb1AAoJEO4IwQyHg9AW3zEQAMRkmpAyUZqucNwJMAZjo5s1
zEx1m1KYcdG80iFAbIjZEe4MEvW47rnE5Q29JLDb4gQPzj+yMz9WIjwLkjAe9Ll2
mkqdFkhtohO5dPTjIi6+7UG6fiemDSDMdyESz9xVqU/2DpvUZfHuxOp9nmGOy/QO
o7O8PUGbNlGiV5O6dsFRVzgEbCtNcvMjbuJnUeve96AvYI7ScgoD3ch8KvfevUBm
m++/S2Yz4wfDju7McNyn8LWjRXdCKeeGDoPUtHq/QIC8xe0lPHlk+oposSGCS/qJ
T5B74HtXzPNG2YPJNt7gRYXJt7yw7BPWughiemFH0b1szFmpu8P0NDD3VsCqV+hM
Tqv34RRU00GirQ++3EwoY3jUkk1mLetVfMFztSyhdVn4Rz6hKC9Rvjx7x+y6MuT9
TLBPqxzgQF7bxs/Ql/7WTlN4wIm3/bYQI3D+Sg837Kh8RCr6q8T5s6yPCE/eVD+Y
v2ehkrIM3xgct2Zako/D47mhkogQVIF1lkk4em9QkWbV848kHqpa3wroL8oPpH4x
Plptupo6TNpWDqWKIADkrL9HqHCiR2fID/m6dfm6kyqP3X8GUmpY8plJYBkt3suw
/RPm0KDO8QsFgntrePHWw17pEX5vrBfHJ6D6u4TQ/4SNb6H6pqNx2rgegbEdVHZk
rg+6ZwdvmRAyzOOCXJ4U
=Mg4r
-END PGP SIGNATURE-

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] DLL Created in Visual Basic 6.0 can run on cross platform

2009-05-19 Thread Bojan Rajkovic
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Sergio A. Hernandez wrote:
 VB 6.0 is not .net nor asp so you can't use the GAC because this dll
 is not a .NET assembly.
 However you can try to use a pinvoke
 you must include System.Runtime.InteropServices
 //pinvoke
 using System.Runtime.InteropServices
 [DllImport(Library)]
 private extern static /datatype/ /name/(x,...)
 ...
 public /function/(x, ...)

 It is the only thing I can suggest you.
 But, honestly dont think will work.

It won't work because Mono doesn't know how to load Windows DLL's, and
even if it did, there's no VB runtime, and a whole host of other
things that the Visual Basic 6 Windows code needs are missing on
Linux, and Mono doesn't emulate them. Try the Wine project, it can run
a good chunk of native Windows applications.

Regards,
Bojan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iQIcBAEBAgAGBQJKE1zgAAoJEO4IwQyHg9AWPv8QALAGW3+fTxi9VQgZzUBAXhqK
pb9qWGPiLZuar2x1V82Jd9E+46j6Q4jLvBlyvAwr0HwifHE8TLDrFYx3066mslMP
h38SzmVVGDfwwLB0sIT1OCxo8x4RPFy0/x4PUXh0V7gIEz7Cd9TFhS6rt6LMJHh8
mRBO7YO1BqHLM/W2k8louaTC4swiR0125N3YGlQw5mho9SXH/8gA2esjZTvscOhG
+YAaPMa5nXgcPHnQ3jm7QLKpAzdivqKY8citYU4+0xP6lM+6/PRXLJiBJ3C2Dj+Z
eNOU2AYdplXYH27b1PxtkMw5xJFOI0Zwe5sk/XbrCB88pOj6XXrThIY8nRen92MW
UaJ/bonXA+pR6L1rWUtMRhkUQqisY/NQr/aJTgGBGItEY7rMNyMqMBL1D2ZfwdXR
JYXUTAU0uAhtWKoIXB/GC+Gm2Dh0ypifRZjmfiX/CWN4A4eoMfV4ouFrWahyCiIA
nQdR5+BFStPx5ycOD2pDMWDMaEzet6hiofUcaYJcz+zAGITbhxpL1Cs+uM9LPqeN
G4AvbGGL7kcCAMFaeFEeE5FNmVJsxtbxysX+YxEgWe+7BeG26TnR5FudPm1T/BSQ
djFMIuBJRcS1botfXSzDMRJt8hTYNywhW1LV0VQzlX882Msj2Tpr8KlrjUOxUVRa
5C2ia23YrVrTl/bDpIqe
=SYEJ
-END PGP SIGNATURE-

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Developing an Gnome-Panel Addon with mono?

2009-03-09 Thread Bojan Rajkovic
On 3/9/2009 13:28, goto wrote:
 How can I develop an Gnome-Panel addon with mono?
 Isn't it possible?
 For example I just want to develope a simple clock, but i don't know how to
 start.
 I found nothing by google and this page.
 Can anyone help me?

Hi,

You can read Tomboy's source code to find out how they develop their 
GNOME Panel Applet. That'll probably be the best way to get started.

--Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] DistCC and cross-compiling Mono

2009-03-08 Thread Bojan Rajkovic

Robert Jordan wrote:

Since jay is only used on the host, compiling it for the target is
simply wrong. Imagine you're cross compiling for ARM: what is
an arm-jay good for other than breaking the build on the host?

Robert

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
So I take it that there's not really a solution here--it'd be nice to be 
able
to compile all parts of Mono in a distributed manner, but it sounds like 
it'd
just break jay when cross-compiling. Is there a potential solution to 
the problem
then, other than interrupting the build process, building jay without 
distcc,
and then continuing the build (I believe jay is the last piece of C code 
to be

compiled, so distcc doesn't even matter afterwards)?

--Bojan


smime.p7s
Description: S/MIME Cryptographic Signature
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] DistCC and cross-compiling Mono

2009-03-08 Thread Bojan Rajkovic

Andreas Färber wrote:
There is, you should configure with --disable-mcs-build when 
cross-compiling. Just copy over mcs and libraries from a standard 
build on your host. Jay is a build tool, it's not needed at runtime on 
the target system.


Andreas
Passing --disable-mcs-build would pretty much accomplish what I 
described in my last post--I'd have to do the build in two phases 
anyway, remembering to pass CC=gcc and not CC=distcc when doing the mcs 
build. I'll just do things that way from now on--I didn't know about 
that flag (I must've missed it when I was perusing configure.in).


--Bojan



smime.p7s
Description: S/MIME Cryptographic Signature
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Making your own programming language for mono

2009-02-22 Thread Bojan Rajkovic
As long as you can emit IL in a PE-format executable (basically, if you can
emit an executable like gmcs/csc/etc.), Mono can run it.

--Bojan

-Original Message-
From: mono-devel-list-boun...@lists.ximian.com
[mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of xiul
Sent: Sunday, February 22, 2009 9:52 AM
To: mono-devel-list@lists.ximian.com
Subject: [Mono-dev] Making your own programming language for mono


Hi everyone, I just want to know if it's possible to create your own
language
(a very simple one and probably not object oriented) for mono (for academy
purpose of a course at university), and if this task is possible, I want to
know just what steps probably I should follow to do this task, like: create
lexer in this way, create parser that generate this kind of AST, then pass
the AST to this function to generate code or something like that.

Thanks for any help.
-- 
View this message in context:
http://www.nabble.com/Making-your-own-programming-language-for-mono-tp221475
66p22147566.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] correction for Compiling Mono on WIndows' page.

2009-02-14 Thread Bojan Rajkovic
 In this case, I believe the 'source' command is wrong because the commands
in the mentioned
 file are /bin/bash or /bin/sh commands.

Using the source command works in Bourne shells as well.

 

--Bojan

 

 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] IBM.Data.DB2 on ubuntu

2009-02-10 Thread Bojan Rajkovic
You're forgetting to add a reference to IBM.Data.DB2.dll on the gmcs command
line.

You should be compiling your code as follows: gmcs
-r:/usr/lib/mono/1.0/IBM.Data.DB2.dll helloDB2.cs.
If your Mono libs are installed somewhere different (if you compiled from
source, they may be in /usr/local/lib/mono), you'll need to change that part
of the path.

--Bojan

-Original Message-
From: mono-list-boun...@lists.ximian.com
[mailto:mono-list-boun...@lists.ximian.com] On Behalf Of Bartolomeo
Nicolotti
Sent: Tuesday, February 10, 2009 12:20 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] IBM.Data.DB2 on ubuntu


Hi,

I've installed mono, and xsp (not yet mod_mono) following the instruction
here:

http://ubuntuforums.org/showthread.php?t=803743

in view of using mod_mono together with php on ubuntu server 8.04.

This is to migrate a web service that access a db2 database.

I've also installed db2exc from ubuntu repository as said here:

http://www.ubuntu.com/partners/ibm/db2

and as said here:

http://www.mail-archive.com/mono-devel-l...@lists.ximian.com/msg02323.html

I've added the library path with the command:

sudo /sbin/ldconfig /opt/ibm/db2exc/V9.5/lib32

But if I try to compile a file that makes use of the namespace IBM.Data.DB2
I got:

s...@lxpc54:~/src/test$ gmcs helloDB2.cs 
helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does not
exist in the namespace `System'. Are you missing an assembly reference?
helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could not
be found. Are you missing a using directive or an assembly reference?
Compilation failed: 2 error(s), 0 warnings


could someone help me?

Many thanks 

Best regards
-- 
View this message in context:
http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21937603.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] IBM.Data.DB2 on ubuntu

2009-02-10 Thread Bojan Rajkovic
Bartolomeo Nicolotti wrote:
 s...@lxpc54:~/src/test$ gmcs -r:/usr/lib/mono/1.0/IBM.Data.DB2.dll
 helloDB2.cs 
 helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does
not
 exist in the namespace `System'. Are you missing an assembly reference?
 Compilation failed: 1 error(s), 0 warnings

Woops. Forgot to mention the -r:System.Data, just like Sandy said.

--Bojan

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Online Documentation Broken

2009-01-26 Thread Bojan Rajkovic
Miguel De Icaza wrote:
 Hello,

 This happens when we upgrade the system live without restarting 
 HTTPd.   Can you retry?

Works now, thanks much!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Online Documentation Broken

2009-01-21 Thread Bojan Rajkovic
Hi y'all,

Is the online documentation broken? I keep getting this error for every 
page:

/Cannot be negative.
Parameter name: length/

*Description: *HTTP 500. Error processing request.

*Stack Trace: *

System.ArgumentOutOfRangeException: Cannot be negative.
Parameter name: length
  at System.String.Substring (Int32 startIndex, Int32 length) [0x0] 
  at Monodoc.EcmaHelpSource.GetUrlForType (System.String prefix, System.String 
ns, System.String type, System.String member, Monodoc.Node match_node) 
[0x0] 
  at Monodoc.EcmaHelpSource.GetTextFromUrl (System.String url) [0x0] 
  at Monodoc.EcmaHelpSource.GetText (System.String url, Monodoc.Node 
match_node) [0x0] 
  at Mono.Website.Handlers.MonodocHandler.HandleTreeLink 
(System.Web.HttpContext context, System.String link) [0x0] 
  at 
Mono.Website.Handlers.MonodocHandler.System.Web.IHttpHandler.ProcessRequest 
(System.Web.HttpContext context) [0x0] 
  at System.Web.HttpApplication+Pipelinec__Iterator2.MoveNext () [0x0] 
  at System.Web.HttpApplication.Tick () [0x0] 

 
--Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Text based linux supporting mono and C# console apps

2009-01-15 Thread Bojan Rajkovic
Kevin Heeney wrote:
Does anyone know of a minimalist distro of linux that is only 
 text based, does not have a window manager, and supports (or could 
 support) mono console apps?
Hi Kevin,

Any distro that can run a text console--I would recommend Gentoo or 
Slackware. You can compile Mono from source easily on either system.

--Bojan
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Patch for winforms (packaging issue)

2008-12-05 Thread Bojan Rajkovic
Paul wrote:
 Hi,

 An issue we've found with mono-winforms under fedora is that to get
 winforms to work, libgdiplus-devel is required. Below is a small patch
 which fixes this by allowing winforms to link to the standard
 libgdiplus.so.0 file

 --- mono-2.2/data/config.in   2008-11-30 19:34:24.0 +
 +++ mono-2.2/data/config-new.in   2008-12-02 23:57:51.0 +
 @@ -15,6 +15,7 @@
   dllmap dll=i:msvcrt.dll target=@LIBC@ os=!windows/
   dllmap dll=sqlite target=@SQLITE@ os=!windows/
   dllmap dll=sqlite3 target=@SQLITE3@ os=!windows/
 + dllmap dll=gdiplus.dll target=libgdiplus.so.0 so=!windows/
   dllmap dll=libX11 target=@X11@ os=!windows /
   dllmap dll=libcairo-2.dll target=libcairo.so.2 os=!windows/
   dllmap dll=i:kernel32.dll

 TTFN

 Paul
   
 

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
   
Hi Paul,

Your patch has a small typo, you've got so=!windows rather than 
os=!windows.

Thanks,
Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] MDBTools installation failed

2008-11-28 Thread Bojan Rajkovic
NatuGadu wrote:

 Bojan Rajkovic wrote:
   
 NatuGadu wrote:
 
 Hi, I am using openSUSE 11.0 VMWare image which includes Mono 2.0.1. I
 want
 port an application using MS-Access as a database.  For that MDBTools
 need
 to be installed. (  http://www.mono-project.com/ODBC
 http://www.mono-project.com/ODBC )

 I downloaded and tryied to install MDBtools ( 
 http://mdbtools.sourceforge.net/ http://mdbtools.sourceforge.net/  ).

 ./configure is working properly.  But make is giving me error.

 linux:/home/linux/Desktop/mdbtools-0.6pre1 # make
 cd .  \
   automake-1.7 --gnu  Makefile
 /bin/sh: line 1: automake-1.7: command not found
 make: *** [Makefile.in] Error 127
 linux:/home/linux/Desktop/mdbtools-0.6pre1 # 

 Any ideas

 --
 Rajesh A

   
   
 Hi Rajesh,

 You need to install automake. I believe the package is called just 
 automake on SuSE.
 You can install it with su -c zypper install automake.

 Good luck,
 Bojan
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list


 

 Hi Bojan,
 still it is giving same error. Is there any difference between automae and
 automake-1.7?
 :-((
   
Hi Rajesh,

I didn't think there was, but their scripts may specifically ask for 
automake-1.7. That version should also be available from
the SuSE repos, but I don't know what the package name is, I haven't 
used SuSE in a while. Hope you can find it!

Good luck,
Bojan
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-dev] Mono's JIT and SSE instructions

2008-10-10 Thread Bojan Rajkovic
Hi all,

How does Mono deal with SSE-capable processors (or Altivec capable
processors)? That is, does the JIT emit any SSE calls when there's a
chance to use them, or are they totally unused in Mono?

Thanks,
Bojan Rajkovic


smime.p7s
Description: S/MIME cryptographic signature
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Compiling mono from the repository

2008-10-09 Thread Bojan Rajkovic
Did you make sure to checkout mcs too?

On Oct 9, 2008, at 11:49 AM, Bas Smit [EMAIL PROTECTED] wrote:


 Hi guys,

 First off, im new to mono and ubuntu so I might be missing something
 obvious. Im trying to compile mono from the repository, on ubuntu.  
 I've
 followed the instructions on http://www.mono-project.com/Compiling_Mono 
  but
 when I autogen I get the following error:

 ...
 ...
 checking for ieeefp.h... no
 checking for isinf... yes
 checking for void *... yes
 checking size of void *... 4
 checking for -Wdeclaration-after-statement option to gcc... yes
 checking integrity of package... configure: error: Your mono  
 distribution is
 incomplete;  if unpacking from a tar file, make sure you use GNU  
 tar;  see
 http://www.mono-project.com/IncompletePackage for more details

 Ive tried creating a new checkout, but the package really seems  
 incomplete.
 Im 99% sure I've got mono, mcs, glib and pkg-config installed  
 correctly.
 Could someone point out what I could be doing wrong?

 Many thanks, Bas
 -- 
 View this message in context: 
 http://www.nabble.com/Compiling-mono-from-the-repository-tp19901757p19901757.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


[Mono-dev] Question about JIT performance

2008-08-13 Thread Bojan Rajkovic
I've been doing some playing around and have written some code for
mathematical operations. Among those operations is something called a
box approximation for the integral  of a function
( http://en.wikipedia.org/wiki/Rectangle_Rule ). 

At the behest of mhutch in #mono, I tried a few things to improve the
speed of the method. The original speed was approximately 385 ms for
10,000,000 iterations of the midpoint box approximation over the
function x^3. This included 4 multiplies, 3 adds, and 1 function call
for each run of the loop, plus a one-time cost of a divide.

The things attempted to improve speed were: inlining the function, and
removing a switch() that determined if the approximation was to be
midpoint, left, or right.

Here are the results from those tests:

Iteration 1
Integral of x^3 over [0, 5]: 156.25006254
Box approximation, no inline, w/ branch: 469
Integral of x^3 over [0, 5]: 156.25006254
Box approximation, inlined, w/ branch: 132
Integral of x^3 over [0, 5]: 156.25006254
Box approximation, no inline, no branch: 235
Integral of x^3 over [0, 5]: 156.25006254
Box approximation, inlined, no branch: 250
(Much of the same here)
Iteration 10
Integral of x^3 over [0, 5]: 156.25006254
Box approximation, no inline, w/ branch: 456
Integral of x^3 over [0, 5]: 156.25006254
Box approximation, inlined, w/ branch: 130
Integral of x^3 over [0, 5]: 156.25006254
Box approximation, no inline, no branch: 228
Integral of x^3 over [0, 5]: 156.25006254
Box approximation, inlined, no branch: 245

The thing that immediately struck me as odd was: how is the inlined
BoxApproximation that HAS a switch() call to check whether it's doing
left, right or midpoint faster than everything else. It's not just a
little faster, it's a lot faster. The machine running all of these tests
is running Mono trunk as of a few days ago, x86 processor with a 2.0 GHz
clock speed and 512 MB of RAM (it's a VMware server virtual machine).
Running the same thing on Mono 1.9.1 outside of VMware yields similar
results.

My question is--why is that method the fastest? Attached are compileable
versions of the Main() method and the class that holds the function
definitions.

Thanks,
Bojan Rajkovic
// Functions.cs
//
// Copyright (c) 2008 Bojan Rajkovic
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the Software), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

using System;

namespace MathPlay
{
	public enum ApproximationType
	{
		Left,
		Right,
		Midpoint
	}
	
	static class Function
	{
		public static double Limit(double accuracy, long step, Funclong, double f)
		{
			double lastResult, nextResult;
			long n = 0;
			lastResult = f(n);
			if (double.IsNaN(lastResult)) lastResult = 0;
			else if (double.IsInfinity(lastResult)) lastResult = 0;
			long iterations = 0;
			while (true) {
n += step;
nextResult = f(n);
double differential = Math.Abs(nextResult - lastResult);
if (differential = accuracy) {
	return nextResult;
} else {
	lastResult = nextResult;
	iterations++;
}
			}
		}
	
		public static class Derivative
		{
			public static double Numeric(double startingApproximation, double minimumApproximation, double x, Funcdouble, double f)
			{
if (startingApproximation = minimumApproximation)
	return f(x);
double approximation = startingApproximation;
double value = f(x);
while (approximation  minimumApproximation) {
	value = (f(x + approximation) - f(x - approximation))/(2*approximation);
	approximation /= 2;
}
return value;
			}
		}
		
		public static class Integral
		{
			public static double BoxApproximation(double start, double end, long steps, Funcdouble, double f, ApproximationType type)
			{
double delta = (end - start)/steps;
double approximationFactor = 0;
double result = 0;
		
switch (type) {
	case ApproximationType.Left