Showing posts with label example. Show all posts
Showing posts with label example. Show all posts

Wednesday, March 28, 2012

subtracting 2 times in string format

Hi,

I have 2 strings in "HH:mm" format, for example "03:55" or "22:09"

Is there any easy to way subtract 2 strings in this format ??

such that if string1 ="22:10"

and string2 = "01:30"

then answer should be string1 - string2

"20:40"

Thanks,

Split the strings into arrays, then do the math on the arrays.

string[] astrMySTring = DateString.Split(":");

then cast them as integers.

however, you might want to use the Date functions to do date Calculations... base 60 is a pain... crazy Babylonians.

Saturday, March 24, 2012

suggestions for smart card or biometric web authentication?

Anyone have suggestions for biometric or smart card or key fob or [whatever
else] authentication of a future public facing website? For example, a
customer could do something to authenticate themselves and the computer
passes some data in the background of their browser session so a user can be
authenticated better than the typical "username/password" fields? We'd use
ASP.NET 2.0 on the server side. I see a few miscellaneous tools in a google
search but nothing is jumping out at me. For example, one is not really
..NET compatible but you could work around that. Not great. We also need
something affordable. Considering that online banking sites are exploring
better options to prevent spyware from grabbing usernames/passwords, I was
hoping someone in this group might have done some research into this already
and have some concrete thoughts or suggestions.

User Group Etiquette: Please don't be the first to reply to this post
unless you have something truly helpful to add, else others will think I've
already been helped and not read the post.HK:

You can have a look at our opensource two-factor authentication
solution:

http://www.wikidsystems.net (or
https://sourceforge.net/projects/wikid-twofactor/) and our commercial
site: http://www.wikidsystems.com.

We currently have a COM object for windows apps, but we're also working
on an ISAPI plugin.

In addition, the PC clients for mac, linux and windows can do mutual
authentication - i.e. host & user auth, which prevents MITM attacks. It
can run on a usb device. The commercial version supports wireless
devices - Blackberry, cell phones, Palm, WindowsMobile.

Suggestions for the arquitecture of the site

Hi,

I'm looking into putting together a site that would model a book where each user would be able to subscribe to the chapters. For example, a user could subscribe to chapters 1 and 5 and another user could subscribe to chapters 2 and 3.

Any suggestions on how to implement the security? Any sites out there with examples, tutorials, etc?

Any help is appreciated.

Thanks.Hi,

some information to start with:Authentication and Authorization.

I don't know about examples for what you're asking right now but I would suggest that you first model your database and then try to visualize things in a neat way.

Grz, Kris.
I'm familiar with the basics on authorization. Specifically forms authorization...

I'm looking for something more targeted at the fact of having several chapters... I know how to configure the application so that users have to sign-up and login in order to read the whole "book" - just haven't figured out how to do it by chapter...

Thanks for the reply.
You could use roles. I assume you have what users are authorized to view what chapters in a database...just assign these to whatever implementation of IPrincipal you're using when they log in and then check on the page (or use the web.config) for something like if(User.IsInRole("Chapter4")) ...

suggestions for smart card or biometric web authentication?

Anyone have suggestions for biometric or smart card or key fob or [whatever
else] authentication of a future public facing website? For example, a
customer could do something to authenticate themselves and the computer
passes some data in the background of their browser session so a user can be
authenticated better than the typical "username/password" fields? We'd use
ASP.NET 2.0 on the server side. I see a few miscellaneous tools in a google
search but nothing is jumping out at me. For example, one is not really
.NET compatible but you could work around that. Not great. We also need
something affordable. Considering that online banking sites are exploring
better options to prevent spyware from grabbing usernames/passwords, I was
hoping someone in this group might have done some research into this already
and have some concrete thoughts or suggestions.
User Group Etiquette: Please don't be the first to reply to this post
unless you have something truly helpful to add, else others will think I've
already been helped and not read the post."HK" <replywithingroup@.notreal.com> wrote in
news:ZHhtf.6970$pE4.4961@.tornado.socal.rr.com:

> Anyone have suggestions for biometric or smart card or key fob or
> [whatever else] authentication of a future public facing website?
Biometrics is still in its infancy - at least for the web.
As for keyfobs, take a look at RSA Security's SecureID authentication.
Also Entrust provides secure identity solutions.
SecurID needs a bit of fudging to work with ASP.NET:
http://sourceforge.net/projects/securid4dotnet/
A cheaper solution maybe to use client-side certificates. You send a
certificate to each user:
http://support.microsoft.com/defaul...b;EN-US;Q315588
So to authentication, a user will need a password + certificate.
But I guess a bigger question is - are you going to provide all your
customers keyfobs or biometric readers? This stuff doesn't come cheap.
Also, are you willing to deal with all the support issues? Perhaps you
should consider building better logging/monitoring tools - and force
users to reset there passwords often?

> User Group Etiquette: Please don't be the first to reply to this post
> unless you have something truly helpful to add, else others will think
> I've already been helped and not read the post.
Newsgroup (usenet)... not user group!
Anyhow, I don't think there is such an "etiquette" rule. What one
considers junk maybe gold for another? : ) You can always repost if you
don't like the answers!
Stan Kee (spamhoneypot@.rogers.com)
HK:
You can have a look at our opensource two-factor authentication
solution:
http://www.wikidsystems.net (or
https://sourceforge.net/projects/wikid-twofactor/) and our commercial
site: http://www.wikidsystems.com.
We currently have a COM object for windows apps, but we're also working
on an ISAPI plugin.
In addition, the PC clients for mac, linux and windows can do mutual
authentication - i.e. host & user auth, which prevents MITM attacks. It
can run on a usb device. The commercial version supports wireless
devices - Blackberry, cell phones, Palm, WindowsMobile.

Tuesday, March 13, 2012

Survey Example Code

Just thought I'd ask so I won't be reinventing the wheel so to speak:

I wanted to know if any of you have some example code or a good link to a survey?

Many thanks in advance...I've got an entire survey web app that I've created. I will be posting soon, although, e-mail me offline at jgaylord@.aspalliance.com and I might be able to help you sooner.

Jason
Thank you for your expeditious response! I will certainly contact you!