OT(ish) - Firesheep

2010-10-26 Thread silky
May be of interest to some: http://codebutler.com/firesheep When logging into a website you usually start by submitting your username and password. The server then checks to see if an account matching this information exists and if so, replies back to you with a cookie which is used by your

F# Help

2010-10-26 Thread Tom Gao
Hi guys, I need some help with F# I'm trying to convert the below C# into F# I have one function in Lib.cs public double lagrangeInterpolatingPolynomial(ListShareEntity share, int degree, int desiredPos) { double retVal = 0; for (int i =

Passing a Form as owner to System.Windows.MessageBox.Show()

2010-10-26 Thread Matt Siebert
Does anyone know if this is possible? In Windows Forms we have IWin32Window to help with this kind of thing. WPF has WindowInteropHelper which can be given a Window instance to allow you to set its parent window's handle, but MessageBox.Show() only takes a Window instance...

Re: F# Help

2010-10-26 Thread silky
On Wed, Oct 27, 2010 at 12:09 AM, Tom Gao t...@tomgao.com wrote: Hi guys, [...] At the moment the compiler is complaining that on the line let lagrangeInterpolatingPolynomial(share : ListShareEntity, degree, desiredPos) = in Lib.fs it isn’t able to find ShareEntity… Is the problem

RE: OT(ish) - Firesheep

2010-10-26 Thread Tiang Cheng
...wow, so a tool that lets you log in as someone else's facebook. Niceee -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of silky Sent: Tuesday, 26 October 2010 6:03 PM To: ozDotNet; m...@googlegroups.com Subject: OT(ish) -

OT: Rant

2010-10-26 Thread Ben.Robbins
Rant I just ran into the following text on the Westpac Altitude Rewards web site. I am amazed that in this day and age that the developers and/or designers for a banking-related web site have just *given up* and are forcing their customers to clean their data. Note that if your message does

Re: OT: Rant

2010-10-26 Thread David Connors
On 27 October 2010 11:21, ben.robb...@jlta.com.au wrote: Frequently Asked Questions about the Altitude Program and Altitude Rewards website are answered in the Altitude Rewards *Help Page*http://altituderewards.com.au/public/info.aspx?name=help . If you can't find an answer to your

strange ASP.net error

2010-10-26 Thread Greg Kennedy
Hi all, Has anyone ever seen an error like this before? Inner Exception : System.IO.FileNotFoundException: Could not load file or assembly 'App_global.asax.asfonage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File

Alternative way of using too many else if's when using if?

2010-10-26 Thread Arjang Assadi
I need to do something similar to do this : if (e.Value is Book) { e.Value = (e.Value as X).Title; } else if (e.Value is Customer) { e.Value = (e.Value as Customer).FullName; } else { e.Value = Unknown;

Re: OT: Rant

2010-10-26 Thread Stephen Price
I have to use chrome to use the westpac website. IE crashes (not responding) if I go to online banking. Has done so on a number of my machines. Not sure what causes it, and not spent the time trying to figure it out. On Wed, Oct 27, 2010 at 9:27 AM, David Connors da...@codify.com wrote: On 27

RE: OT: Rant

2010-10-26 Thread Nagi, Sunny
Their website is one of the main reason I closed my account with them.. someone please give them book on designing better UX. Please consider the environment before printing this email -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On

Re: Alternative way of using too many else if's when using if?

2010-10-26 Thread Arjang Assadi
Yes and With extreme prejudice ! but didn't think it can be used inplace of is. :) I'll try it now. Thank you On 27 October 2010 13:06, George Zafir george.za...@gmail.com wrote: Have you considered using a switch statement? On Wed, Oct 27, 2010 at 11:59 AM, Arjang Assadi

Re: Alternative way of using too many else if's when using if?

2010-10-26 Thread Arjang Assadi
Hmm, no joy e.Value is cant not be happy as a expression for switch statement ( compiler says so ). would have been nice though. back to hideousity. Regards Arjang On 27 October 2010 13:09, Arjang Assadi arjang.ass...@gmail.com wrote: Yes and With extreme prejudice ! but didn't think it can

Re: Alternative way of using too many else if's when using if?

2010-10-26 Thread George Zafir
Sorry, my bad, I didn't read the code properly before posting! The way you have done it does not look too ugly to me if it makes you feel any better. On Wed, Oct 27, 2010 at 12:19 PM, Arjang Assadi arjang.ass...@gmail.comwrote: Hmm, no joy e.Value is cant not be happy as a expression for

Re: Alternative way of using too many else if's when using if?

2010-10-26 Thread Michael Minutillo
Do you have control over the Book and Customer classes? if so you can add an interface to them and then get each class to implement it differently: interface IHaveDisplayName { string DisplayName { get; } } then you get: if(e.Value is IHaveDisplayName) e.Value =

Re: Alternative way of using too many else if's when using if?

2010-10-26 Thread Arjang Assadi
Hi Michael, Do you have control over the Book and Customer classes? I guess sort of, they are POCO generated entites from Entity FrameWork. Their code might get overridden. Never tried implementing an interface in a partial class, but extending the classes with Implementing an IDisplayInterface

RE: Alternative way of using too many else if's when using if?

2010-10-26 Thread Nathan Stayte
Stackoverflow has an example of how to do what you want http://stackoverflow.com/questions/298976/c-is-there-a-better-alternative-than-this-to-switch-on-type Nathan. I need to do something similar to do this : if (e.Value is Book) { e.Value = (e.Value as X).Title;

RE: Rant

2010-10-26 Thread Ken Schaefer
Hi, Just because a UI is now in neat HTML doesn’t mean that every backend system, and every other system used to access this data, can cope. I worked on Westpac’s IB upgrade project (the monitoring part) and it’s a huge amount of work just to upgrade one small part of it. Cheers Ken From:

Re: Rant

2010-10-26 Thread Stephen Price
It's very easy to jump up and down about this sort of stuff when it doesn't work. Your email has made me pause and think about it, and let's be honest, this coding stuff we do is complicated. So many variable (pardon the pun), so much can go wrong. It doesn't always work as intended. If it was

Re: Rant

2010-10-26 Thread Paul Gaske
Oh; I dunno. I'm thinking you're right to jump up and down. Especially if you've got an apostrophe in your name or a hyphenated last name. Congratulations, you're now a security risk! Seems like a bit of a fail to me. I'm sure banking systems, no matter how long ago written, would be able to

Re: Rant

2010-10-26 Thread David Connors
On 27 October 2010 14:25, Stephen Price step...@littlevoices.com wrote: Is there a feedback section that would allow you to let them know so they can add it to their to be fixed backlog? If you don't let them know (and no one else does) then you get what you put up with. I often send emails

RE: Alternative way of using too many else if's when using if?

2010-10-26 Thread Grant Molloy
Easiset way may be to create 2 new classes which implement the interface, ie BookA and CustomerA. Each of these classes would then inherit their original classes, ie. Class BookA Implements IDisplayInterface and Inherits Book. This way you get all the props of original Book class without

Re: Alternative way of using too many else if's when using if?

2010-10-26 Thread Arjang Assadi
Thank you Nathan, But extending the types and implementing an interface over them is more appealing than switching on type (anyone remember this in OOP history books?). But when the types are not mine then switching like the stack over flow article is way better than if else if approach. Kind

RE: Rant

2010-10-26 Thread Ken Schaefer
I’m sure systems can cope – but there are a number of challenges: a) System boundaries: what one system finds acceptable may not be acceptable to another (apostrophes I’m sure we’re all well aware of) b) Unicode is probably something that older systems can’t cope with c) It

Re: Alternative way of using too many else if's when using if?

2010-10-26 Thread Arjang Assadi
Not only the easiest but also clearest way too! Since I be working through interfaces, the underlying classe become irrelevent, + domain of definition and usage is kept to minimum. I like this method the best, I derive and implement the new classes and interfaces only in the required layer. IFTW

Re: Rant

2010-10-26 Thread Paul Gaske
a/ Original error message specifically included hypens, and apostrophes, and for that matter / used in many addresses. So I think you're extending the argument here to some notion of an extended set of system boundaries which could be anything. Of course, with such a wide scope I'm sure you