Re: [Mono-list] help!!!

2009-03-28 Thread Michael Hutchinson
2009/3/27 Aric Holland :
> Hello,
>
> I am new to mono. I was trying to write an software project in C#, but my
> project is GUI based, so I have to rely on mono's gui designer. Well you see
> the problem is, the grid container control, which I add to my form does not
> allow me to precisely align my controls to the grid. I don't know what im
> doing wrong, but it's quite annoying. I'm basically looking for a grid
> system comparable to Visual Studio's.

GTK# has a fixed layut container, called Gtk.Fixed, that allows you to
align your controls on a grid, with pixel-exact sizes and positions.
However, MonoDevelop's GTK# designer doesn't support using this fixed
layout, because fixed layout is strongly discouraged in GTK.

The reason is simple -- GTK supports container layout, which is far
superior. It means that if the user resizes the window, the controls
will resize to use the available space. If the system font size
changes, making all text bigger, or if you translate your app and the
translated labels are a different length, the layout will adjust.

> Also, when I resize my forms in the GUI Designer, and run the compiled
> result. Guess what? The dimensions of what are set in the gui designer, DO
> NOT match the actual compiled result. Leaving me in complete fusturation.

Again, unless you're using "fixed" layout, expect GTK# to adjust
controls to make use of available space. Controls "request" the size
they want, but the container may give them more (or less) space if
it's available. (or not).

http://www.mono-project.com/GtkSharp:_Widget_Layout_and_Packing will
introduce you to GTK container-based layout.

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


Re: [Mono-list] help!!!

2009-03-28 Thread Bojan Rajkovic

Aric Holland wrote:

Hello,

I am new to mono. I was trying to write an software project in C#, but 
my project is GUI based, so I have to rely on mono's gui designer. 
Well you see the problem is, the grid container control, which I add 
to my form does not allow me to precisely align my controls to the 
grid. I don't know what im doing wrong, but it's quite annoying. I'm 
basically looking for a grid system comparable to Visual Studio's.
You're not really going to get this with GTK+ and GTK#. GTK's way of 
doing this is to use autosizing containers like tables, VBox/HBoxes, 
etc. in order to hold controls. These containers tell the controls how 
much space they're allowed, and the controls draw in it. This allows for 
easy autosizing of controls, but it does not make a grid system like 
Visual Studio's easy, or particularly useful.


There should be some GTK tutorials around that explain how to work with 
GTK's layout system. Glade tutorials may also be helpful, as Glade is 
the UI designer for GTK+/GTKmm (the original C library/C++ binding).


Good luck,
Bojan


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


[Mono-list] Mono EncryptPassword Problem

2009-03-28 Thread willisterman

I've been using mono with a project for a bit, and have had no problems
authenticating using the sqlmembershipprovider.  I've now switched to using
a custom xml membership provider, and I'm having trouble with
authentication.

Using the following code:

byte[] bytes = Encoding.Unicode.GetBytes(password);
byte[] src = Convert.FromBase64String(salt);
byte[] dst = new byte[src.Length + bytes.Length];
byte[] inArray = null;
Buffer.BlockCopy(src, 0, dst, 0, src.Length);
Buffer.BlockCopy(bytes, 0, dst, src.Length, bytes.Length);
inArray = this.EncryptPassword(dst);
ret = Convert.ToBase64String(inArray);

Gives me the following results in normal ASP.NET:

(TransformPassword)Password: 12001050107011701120106011901100
(TransformPassword)Salt: 1184884153191661711661781882392521610735171
(TransformPassword)First Copy:
1184884153191661711661781882392521610735171
(TransformPassword)Second Copy:
118488415319166171166178188239252161073517112001050107011701120106011901100
(TransformPassword)Finished Array:
15225313530214108742228777111255255134220102662012221342011997612219084011220619534135971957891087472141321191913016285135
(TransformPassword)Converted to Base64
mP2HHtZsSt5XTW//GTMi3GZCyd6GycdMer4IKHDOwyKHYcNOCWwHL9aEdxOColWH

This returns the correct password.

In Mono, I get this:

(TransformPassword)Password: 12001050107011701120106011901100
(TransformPassword)Salt: 1184884153191661711661781882392521610735171
(TransformPassword)First Copy:
1184884153191661711661781882392521610735171
(TransformPassword)Second Copy:
118488415319166171166178188239252161073517112001050107011701120106011901100
(TransformPassword)Finished Array:
24514491551022031206418074205155410321211820814129631521861711952523298352164105242148195192791991428211725114921029197137168
74
(TransformPassword)Converted to Base64
9Q4xm2bLeEC0Ss2bBGfUdtCNHT+YuqvDGehiAzSkafKUw8BPx45SdfuV0h3FiahK

Everything is the same until "this.EncryptPassword" is called, where a
different response is returned.

This is currently breaking authentication.  Does anyone know a way to fix
this?

Any help would be great.
-- 
View this message in context: 
http://www.nabble.com/Mono-EncryptPassword-Problem-tp22761303p22761303.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


Re: [Mono-list] Microsoft Oslo

2009-03-28 Thread Atsushi Eno
In general Mono team hackers as team members are all busy and
we can only share our off-work hacking hours. For team directions,
Miguel will answer the question if he finds it significantly matters.

CTP versions are however very much subject to change, and that
means there will be extra cost to keep up with those betas.
Thus in general we don't like paying such extra cost.

Atsushi Eno

Mono Trober wrote:
> ah, yes.  I have this, too.
> I'm curious if there's anyone talking about a Mono project to support Oslo.
> Oslo is CTP now, and the grammar et. al. is not hard to do in ANTLR et. al.
> Might be nice to follow along w/ Oslo's progression as it unfolds.
> I expect there will be massive pre-built frameworks, dynamic templates, 
> etc. hitting the market before too long.  Having Mono capability is a 
> good thing.
> 
> 
> - Original Message - From: "Atsushi Eno" 
> 
> To: "Mono Trober" 
> Cc: 
> Sent: Friday, March 27, 2009 11:19 PM
> Subject: Re: [Mono-list] Microsoft Oslo
> 
> 
>> I may write some code, but it is not related to mono work. I haven't
>> even tried Oslo. I just got interested in a new form of parser
>> generator, and may lose interest depending on my need.
>> http://github.com/atsushieno/mmm/tree/master
>>
>> Atsushi Eno
>>
>>
>> Mono Trober wrote:
>>> Anyone doing/planning Mono work related to Microsoft Oslo?
>>> I see some chatter on various forums, months old, though.
>>> Regards,
>>> Trober
>>>
>>>
>>> 
>>>
>>> ___
>>> 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] Microsoft Oslo

2009-03-28 Thread Mono Trober
ah, yes.  I have this, too.
I'm curious if there's anyone talking about a Mono project to support Oslo.
Oslo is CTP now, and the grammar et. al. is not hard to do in ANTLR et. al.
Might be nice to follow along w/ Oslo's progression as it unfolds.
I expect there will be massive pre-built frameworks, dynamic templates, etc. 
hitting the market before too long.  Having Mono capability is a good thing.


- Original Message - 
From: "Atsushi Eno" 
To: "Mono Trober" 
Cc: 
Sent: Friday, March 27, 2009 11:19 PM
Subject: Re: [Mono-list] Microsoft Oslo


>I may write some code, but it is not related to mono work. I haven't
> even tried Oslo. I just got interested in a new form of parser
> generator, and may lose interest depending on my need.
> http://github.com/atsushieno/mmm/tree/master
>
> Atsushi Eno
>
>
> Mono Trober wrote:
>> Anyone doing/planning Mono work related to Microsoft Oslo?
>> I see some chatter on various forums, months old, though.
>> Regards,
>> Trober
>>
>>
>> 
>>
>> ___
>> 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