Re: HTML vs Silverlight - comparative effort?

2011-03-28 Thread David Burela
My general rule of thumb is:
*Public facing* - technology choice defaults to ASP.Net MVC
*Internal Line of Business app* - depends on how interactive you want it to
be. I usually default to Silverlight because of the ease of doing
animations, visual bling, etc.

-David Burela

On 29 March 2011 13:47, David Connors  wrote:

> On Tue, Mar 29, 2011 at 12:48 PM, James Chapman-Smith <
> ja...@chapman-smith.com> wrote:
>
>> Good point, I didn't mention the target market. We're doing a corporate
>> app. It'll be deployed on a server within the companies. We're only
>> expecting PC & possible Mac clients.
>>
>
> If you're doing a corporate app and you control the clients - then you have
> the luxury of choosing whichever platform is going to deliver the best app
> experience.
>
> --
> *David Connors* | da...@codify.com | www.codify.com
> Software Engineer
> Codify Pty Ltd
> Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417
> 189 363
> V-Card: https://www.codify.com/cards/davidconnors
> Address Info: https://www.codify.com/contact
>
>


Re: HTML vs Silverlight - comparative effort?

2011-03-28 Thread David Connors
On Tue, Mar 29, 2011 at 12:48 PM, James Chapman-Smith <
ja...@chapman-smith.com> wrote:

> Good point, I didn't mention the target market. We're doing a corporate
> app. It'll be deployed on a server within the companies. We're only
> expecting PC & possible Mac clients.
>

If you're doing a corporate app and you control the clients - then you have
the luxury of choosing whichever platform is going to deliver the best app
experience.

-- 
*David Connors* | da...@codify.com | www.codify.com
Software Engineer
Codify Pty Ltd
Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417
189 363
V-Card: https://www.codify.com/cards/davidconnors
Address Info: https://www.codify.com/contact


RE: HTML vs Silverlight - comparative effort?

2011-03-28 Thread James Chapman-Smith
Hi David,

Good point, I didn't mention the target market. We're doing a corporate app. 
It'll be deployed on a server within the companies. We're only expecting PC & 
possible Mac clients.

Cheers.

James.

From: David Connors [mailto:da...@codify.com]
Sent: Tuesday, 29 March 2011 13:03
To: ozDotNet
Cc: James Chapman-Smith
Subject: Re: HTML vs Silverlight - comparative effort?

On Tue, Mar 29, 2011 at 12:31 PM, James Chapman-Smith 
mailto:ja...@chapman-smith.com>> wrote:
If I'm going to develop a new "web-based" application in HTML or Silverlight, 
what would the comparative effort be like? And really, what kind of pros & cons 
are worth evaluating?

By HTML I am thinking ASP.NET MVC, but it could be something 
else ".NET"-ish.

What is the target audience? If it is something that you're targeting at a mass 
market, using SL is suicide IMO.

http://www.statowl.com/silverlight.php

40% of users either don't/can't/won't have SL installed. Wave goodbye to their 
money.

--
David Connors | da...@codify.com | 
www.codify.com
Software Engineer
Codify Pty Ltd
Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417 189 
363
V-Card: https://www.codify.com/cards/davidconnors
Address Info: https://www.codify.com/contact


Re: HTML vs Silverlight - comparative effort?

2011-03-28 Thread DotNet Dude
On Tue, Mar 29, 2011 at 1:32 PM, David Connors  wrote:
> On Tue, Mar 29, 2011 at 12:31 PM, James Chapman-Smith
>  wrote:
>>
>> If I'm going to develop a new "web-based" application in HTML or
>> Silverlight, what would the comparative effort be like? And really, what
>> kind of pros & cons are worth evaluating?
>>
>>
>>
>> By HTML I am thinking ASP.NET MVC, but it could be something else
>> ".NET"-ish.
>
> What is the target audience? If it is something that you're targeting at a
> mass market, using SL is suicide IMO.
> http://www.statowl.com/silverlight.php
> 40% of users either don't/can't/won't have SL installed. Wave goodbye to
> their money.
>

Yeh it's sad that plugins like SL and Flash have these issues since
alternatives need to be cross browser compatible which is still very
annoying.

> --
> David Connors | da...@codify.com | www.codify.com
> Software Engineer
> Codify Pty Ltd
> Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417
> 189 363
> V-Card: https://www.codify.com/cards/davidconnors
> Address Info: https://www.codify.com/contact
>
>


Re: HTML vs Silverlight - comparative effort?

2011-03-28 Thread Craig van Nieuwkerk
>
>
>
> I got asked a question today that I don't really have the experience to
> answer and was hoping someone here could help.
>
>
>
>
>
I have started to develop a new web based application (shameless plug
www.youreontime.com) in Silverlight. But shortly after starting I redid it
all as a HTML web application. I am sure glad I did now. Many of our
potential customers started buying iPads to use the app on and with
Silverlight we would have been dead in the water. With a web app it works
really nicely on the iPad needing just a few tweaks to make the UI a bit
more finger aware.

Craig.


RE: HTML vs Silverlight - comparative effort?

2011-03-28 Thread Dylan Tusler
Heh heh. When I clicked that link, I got a "Please wait while Windows 
configures QuickTime" dialog that is still sitting there.




From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of David Connors
Sent: Tuesday, 29 March 2011 12:33 PM
To: ozDotNet
Subject: Re: HTML vs Silverlight - comparative effort?

On Tue, Mar 29, 2011 at 12:31 PM, James Chapman-Smith 
mailto:ja...@chapman-smith.com>> wrote:
If I'm going to develop a new "web-based" application in HTML or Silverlight, 
what would the comparative effort be like? And really, what kind of pros & cons 
are worth evaluating?

By HTML I am thinking ASP.NET MVC, but it could be something 
else ".NET"-ish.

What is the target audience? If it is something that you're targeting at a mass 
market, using SL is suicide IMO.

http://www.statowl.com/silverlight.php

40% of users either don't/can't/won't 
have SL installed. Wave goodbye to their money.

--
David Connors | da...@codify.com | 
www.codify.com
Software Engineer
Codify Pty Ltd
Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417 189 
363
V-Card: https://www.codify.com/cards/davidconnors
Address Info: https://www.codify.com/contact


-
To find out more about the Sunshine Coast Regional Council, visit your local 
office at Caloundra, Maroochydore, Nambour or Tewantin or visit us online at 
www.sunshinecoast.qld.gov.au.  If correspondence includes personal information, 
please refer to Council's Privacy Policy at http://www.sunshinecoast.qld.gov.au 
.

This email and any attachments are confidential and only for the use of the 
addressee.  If you have received this email in error you are requested to 
notify the sender by return email or contact council on 1300 00 7272 and are 
prohibited from forwarding, printing, copying or using it in anyway, in whole 
or part. Please note that some council staff utilise Blackberry devices, which 
results in information being transmitted overseas prior to delivery of any 
communication to the device.  In sending an email to Council you are agreeing 
that the content of your email may be transmitted overseas. Any views expressed 
in this email are the author's, except where the email makes it clear 
otherwise. The unauthorised publication of an email and any attachments 
generated for the official functions of council is strictly prohibited. Please 
note that council is subject to the Right to Information Act 2009 (Qld) and 
Information Privacy Act 2009 (Qld).


Re: HTML vs Silverlight - comparative effort?

2011-03-28 Thread David Connors
On Tue, Mar 29, 2011 at 12:31 PM, James Chapman-Smith <
ja...@chapman-smith.com> wrote:

> If I'm going to develop a new "web-based" application in HTML or
> Silverlight, what would the comparative effort be like? And really, what
> kind of pros & cons are worth evaluating?
>
>
>
> By HTML I am thinking ASP.NET MVC, but it could be something else
> ".NET"-ish.
>
>
What is the target audience? If it is something that you're targeting at a
mass market, using SL is suicide IMO.

http://www.statowl.com/silverlight.php

40% of users either
don't/can't/won't have SL installed. Wave goodbye to their money.

-- 
*David Connors* | da...@codify.com | www.codify.com
Software Engineer
Codify Pty Ltd
Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417
189 363
V-Card: https://www.codify.com/cards/davidconnors
Address Info: https://www.codify.com/contact


HTML vs Silverlight - comparative effort?

2011-03-28 Thread James Chapman-Smith
Hi folks,

I got asked a question today that I don't really have the experience to answer 
and was hoping someone here could help.

If I'm going to develop a new "web-based" application in HTML or Silverlight, 
what would the comparative effort be like? And really, what kind of pros & cons 
are worth evaluating?

By HTML I am thinking ASP.NET MVC, but it could be something else ".NET"-ish.

Cheers.

James.


Re: Databases for Local apps

2011-03-28 Thread Joseph Cooney
My vote would be for sqlite. Iirr it supports EF, is quite fast and rock solid.

On 27/03/2011, at 12:20 PM, Stephen Price  wrote:

> Hey all,
>  
> Was thinking about a small app and it's not big enough to need an SQL 
> database. I want it to be a single user deal and i'm just thinking ahead 
> should it become commercial. I don't want a consumer (ie consumer targetted 
> app, not enterprise) to have to have SQL or SQL Express installed to use it.
>  
> I've heard of SQLite but not sure if there are other alternatives. I'd like 
> .Net support and Linq and single file based if possible. What have other 
> people used for such an app?
>  
> cheers,
> Stephen
>  
>  


Re: Propagate Database changes to application

2011-03-28 Thread Joseph Cooney
Re: client type - I was more wondering is it a web app? Windows app? 
Silverlight? Windows intranet app could do udp broadcast of changes from the 
server or something like that.

Sent from my iPhone

On 29/03/2011, at 8:18 AM, Grant Molloy  wrote:

> Thanks everyone for feedback..
> 
> Joseph,
> SQL Server, yes, version either 2008 or 2008 R2.. More than likely R2, but 
> not nailed down yet.
> Client type is a DAL DLL.. I want the DAL to know when the data changes, and 
> the client will subscribe to DAL events, and then DAL can fire off event when 
> data is changed, and App can decide what to do about it.  Kind of like a 
> publisher / subscriber model implementation.
> 
> I'm not 100% sure I'm going about it the right way or have the events in the 
> right place (ie in the DAL)..
> 
> 
> On Tue, Mar 29, 2011 at 1:55 AM, Joseph Cooney  
> wrote:
> What type of client is it? Do you control the means by which data is written 
> to the table? Are clients deployed to the internet or intranet? What kind of 
> database are we talking about here (I assume you mean SQL Server, since you 
> mention SqlDependency) but which version?
> 
> Joseph
> 
> 
> On Mon, Mar 28, 2011 at 8:33 AM, Grant Molloy  wrote:
> Hi list,
> 
> I'm looking to have an application automagically update it's view of the data 
> when the data in the connected database table changes.
> I've seen two main ways to do this so far.
> 1. Poll the database every n seconds
> 2. Use the System.Web.Caching.SqlDependancy object.
> 
> 
> 
> 
> Does anyone else know of any other better or smarter way of doing this ?
> 
> 
> 
> 
> thanks
> Grant
> 
> 
> 
> -- 
> 
> w: http://jcooney.net
> t: @josephcooney
> 
> 


Re: Propagate Database changes to application

2011-03-28 Thread Grant Molloy
Thanks everyone for feedback..

Joseph,
SQL Server, yes, version either 2008 or 2008 R2.. More than likely R2, but
not nailed down yet.
Client type is a DAL DLL.. I want the DAL to know when the data changes, and
the client will subscribe to DAL events, and then DAL can fire off event
when data is changed, and App can decide what to do about it.  Kind of like
a publisher / subscriber model implementation.

I'm not 100% sure I'm going about it the right way or have the events in the
right place (ie in the DAL)..


On Tue, Mar 29, 2011 at 1:55 AM, Joseph Cooney wrote:

> What type of client is it? Do you control the means by which data is
> written to the table? Are clients deployed to the internet or intranet? What
> kind of database are we talking about here (I assume you mean SQL Server,
> since you mention SqlDependency) but which version?
>
> Joseph
>
>
> On Mon, Mar 28, 2011 at 8:33 AM, Grant Molloy  wrote:
>
>> Hi list,
>>
>> I'm looking to have an application automagically update it's view of the
>> data when the data in the connected database table changes.
>> I've seen two main ways to do this so far.
>> 1. Poll the database every n seconds
>> 2. Use the System.Web.Caching.SqlDependancy object.
>>
>> Does anyone else know of any other better or smarter way of doing this ?
>>
>> thanks
>> Grant
>>
>
>
>
> --
>
> w: http://jcooney.net
> t: @josephcooney
>
>


RE: [OT] SQL Server Windows Authentication

2011-03-28 Thread Greg Keogh
Sorry folks, I emailed Greg L (too many Greg's?!) a few days ago to tell him
I found a solution to my problem where I can't connect with Windows
Authentication.

Greg W's suggestion is almost what I did: I created a domain Group called
'SQL Administrators', put myself in it and then added that group to Instance
> Security > Logins and gave it the sysadmin role.

I thought I'd have to tick all of the User Mappings or add the group to each
database, but that wasn't necessary. Simply creating the sysadmin Login gave
me implicit control over all databases. I'm not sure why I didn't have any
problems on my old domain, but it's destroyed and I can't look back to see
why.

Greg K



RE: Databases for Local apps

2011-03-28 Thread Greg Keogh
I've been waiting for someone to use -

http://simonwillison.net/static/2010/redis-tutorial/

Let us know how it goes.

 

I can't see any managed code library to use Redis. It says it's scalable,
but then it says it stores everything in memory. It claims to be basically a
key-value store (I use Managed Esent PersistentDictionary class for that)).
I would also be curious to hear if anyone has used it and thinks it has
anything to offer over the other more famous and popular non-big-name DBs
like Raven, SQLLite, etc.

 

Greg (K)



Re: Propagate Database changes to application

2011-03-28 Thread Joseph Cooney
What type of client is it? Do you control the means by which data is written
to the table? Are clients deployed to the internet or intranet? What kind of
database are we talking about here (I assume you mean SQL Server, since you
mention SqlDependency) but which version?

Joseph

On Mon, Mar 28, 2011 at 8:33 AM, Grant Molloy  wrote:

> Hi list,
>
> I'm looking to have an application automagically update it's view of the
> data when the data in the connected database table changes.
> I've seen two main ways to do this so far.
> 1. Poll the database every n seconds
> 2. Use the System.Web.Caching.SqlDependancy object.
>
> Does anyone else know of any other better or smarter way of doing this ?
>
> thanks
> Grant
>



-- 

w: http://jcooney.net
t: @josephcooney


Re: Propagate Database changes to application

2011-03-28 Thread Greg Wood
I presume SQL Server 2008, so a data driven subscription is probably
your choice.

You will see that MS dropped Notification Services, as no one used it.

Good luck!


Greg Wood
g...@woodgreg.com
0417044439



On Mon, Mar 28, 2011 at 5:06 PM, Stephen Liedig  wrote:
> Grant,
> Another way to do it would be to "push" changes to your application based on
> an "update event" occurring in your system. Whenever data changes, publish a
> "my data has just been updated event" and notify your clients of the update.
> This would negate the need to do unnecessary polling and remove the
> dependency on any caching mechanisms (which is not to say you can't use
> caching to store your data).
> - Steve
>
> On 27 March 2011 23:33, Grant Molloy  wrote:
>>
>> Hi list,
>> I'm looking to have an application automagically update it's view of the
>> data when the data in the connected database table changes.
>> I've seen two main ways to do this so far.
>> 1. Poll the database every n seconds
>> 2. Use the System.Web.Caching.SqlDependancy object.
>> Does anyone else know of any other better or smarter way of doing this ?
>> thanks
>> Grant
>


Re: Databases for Local apps

2011-03-28 Thread Greg Wood
I've been waiting for someone to use -

http://simonwillison.net/static/2010/redis-tutorial/

Let us know how it goes.



Greg Wood
g...@woodgreg.com
0417044439



On Mon, Mar 28, 2011 at 11:16 AM, Greg Keogh  wrote:
> ESENT looks... interesting. Sounds similar to Isolated storage. (the key'd
> value part of it anyhow)
>
> No, quite different. Isolated Storage is just a piece of the file system.
> ESENT is a complete ISAM database. The C API is quite low-level and fiddly.
> The ManagedEsent project puts a managed wrapper around the API.
>
> Greg


Tracking PostBack in a usercontrol?

2011-03-28 Thread Anthony
Anyone have a technique they use to detect IsPostback on a asp.net custom
user control?   You suggestion would be appreciated..i have searched the net
and seen many techniques.but I know some are incorrect.

 

 

Eg  You cannot use page.ispostback in a user control!

 

 

regards

Anthony (*12QWERNB*)

 

 



Re: [OT] SQL Server Windows Authentication

2011-03-28 Thread Greg Wood
Hi Greg K,

I see you can only use sa. If you make a new sql login user on the SQL
Server and give it sysadmin does it see the databases just like sa?

Greg


Greg Wood
g...@woodgreg.com
0417044439



On Thu, Mar 24, 2011 at 1:58 PM, Greg Keogh  wrote:
> Hi Greg L and others,
>
>
>
> I’ve spent many hours over the last couple of days trying to get SQL Server
> 2008 R2 Windows Authentication working over the LAN, with absolutely no
> success. I’m not experienced in this area, but I’ve tried every sensible
> trick I can think and nothing makes any difference. The worst thing is that
> I don’t know who to blame: the domain, SQL Server, user/group settings,
> what?
>
>
>
> I have now found that just one of the thirteen databases CAN be accessed and
> twelve can’t. I tried carefully comparing the attributes of a working and
> non-working DB, but the one that works comes from outside my office and is a
> mess, making it a useless apples and oranges comparison.
>
>
>
> Grant: I don’t see any strange schemas that are candidates for deletion.
>
>
>
> My only workaround for now is to use ‘sa’ in all connection strings.
>
>
>
> Greg K


Re: EF gurus

2011-03-28 Thread Stephen Price
Well.

Looks like I've narrowed it down to a workaround. Firstly, the issue has
nothing to do with EF. Embarrassingly, it was client side, and I totally
blame my learning two technologies simultaneously, in combination with the
irresponsible usage of the word/classname 'Entity' by RIA Services, for my
confusion. ;)

The problem seems to be when using [Composition] with RIA Services with the
RadGridView. When I press escape to undo the creation of a new row, it
throws the exception I've been getting when it tries to remove the entity
from the SourceSet. The problem was not happening where composition was not
being used. I made some changes to remove the usage of composition on this
particular page and now pressing escape to undo a new row insert works.
I've cross posted this to the OzSilverlight in case someone there is
interested. Surely I can't be the only person to want to undo an insert on a
composition service call?
Also, a search for this error in combination with RIA Services, rather than
EF actually turned up this post ->
http://forums.silverlight.net/forums/p/215248/511408.aspx
Amazing what you get when you actually search for the right thing, hey?
*blush*

As temped I was to not post this, someone else might actualy benefit so meh,
I'll take it as a learning exercise.

cheers,
Stephen

p.s. I'm just happy to be here.

On Mon, Mar 28, 2011 at 1:08 PM, Arjang Assadi wrote:

> In that case, I suggest to create a temp layer that translates from EF
> to datatable, use the grid, and trnanslate back to EF, assuming
> DataTable would not have the same issue.
>
> In above statement substitute X in place of DataTable where X could be
> Linq Objects, BindingList of Business Object etc.
>
> Hope that helps to side step the issue.
>
> Regards
>
> Arjang
>
> On 28 March 2011 15:05, Stephen Price  wrote:
> > Yep, totally understand.
> >
> > Not using EF isn't an option for this project as it's already being used.
> > That leaves finding a work around as the best option. Sort of like
> jumping
> > off the cliff then having to deal with the fall on the way down. maybe
> not
> > the best analogy. The sudden stop at the bottom has a similar amount of
> pain
> > associated with it at times, so perhaps it is a good analogy. :)
> >
> > On Mon, Mar 28, 2011 at 11:43 AM, Arjang Assadi  >
> > wrote:
> >>
> >> Stephen,
> >>
> >> After having burned many hours with EF trying to understand "why"s, I
> >> have come to the conclusion to find  ( EF or non-EF )  workarounds
> >> instead.
> >>
> >> I have even seen the champion of EF, Julie Lerman post to MS
> >> newsgroups questioning the rational behind the very same behavior I
> >> was trying to understand ( it was about using EF in an N-Tier
> >> disconnected way).
> >>
> >> I guess the question one ends up asking themselves boils down to
> >> whether they are trying to use EF to accomplish some task or doing EF
> >> to understand EF itself.
> >>
> >> Having said that, EF does solve many problems but at the price of
> >> introducing a different types of problems. Question is which problem
> >> set one wishes rather be solving.
> >>
> >> Regards
> >>
> >> Arjang
> >>
> >>
> >>
> >> On 28 March 2011 14:24, Stephen Price  wrote:
> >> > Hey there,
> >> >
> >> > Are there any EF gurus about?
> >> > This is a further email about the issue I posted recently where
> pressing
> >> > escape to undo a new row on a RadGridView is throwing an exception on
> >> > some
> >> > entities but not others.
> >> >
> >> > I've tracked down a difference but can't seem to find anything about
> >> > SourceSets.
> >> >
> >> >
> >> >
> >> >   public void Remove(object value)
> >> >   {
> >> > T entity = value as T;
> >> > if (entity != null)
> >> > {
> >> >   this.Source.Remove(entity);
> >> >   if (this._addedEntities.Contains(entity))
> >> >   {
> >> > this._addedEntities.Remove(entity);
> >> > this.Source.SourceSet.Remove(entity);
> >> >   }
> >> > }
> >> >   }
> >> >
> >> >
> >> > This is the code i've decompiled to see what's happening...
> >> >
> >> > the line with the sourceset.remove is throwing an exception because
> the
> >> > sourceset is null. I guess you could say that's a bug? I mean it's
> >> > checking
> >> > if _addedEntities contains the entity before it removes it, but does
> not
> >> > check if the SourceSet contains the entity before trying to remove it.
> I
> >> > don't know enough about the EntityFramework to know what a SourceSet
> >> > is...
> >> > may just be an internal only structure or something else?
> >> >
> >> >
> >> >   int index = -1;
> >> >   if (entity.EntitySet == this)
> >> >   {
> >> > index = this._list.IndexOf(entity);
> >> >   }
> >> >   if (index == -1)
> >> >   {
> >> >
> >> >
> throw new 
> InvalidOperationException(Resource.EntitySet_EntityNotInSet);
> >> >   }
> >> >
> >> >
> >> > Inside the remove (second code snip