[OT] Global Roaming data plans and WiFi hacking

2011-03-03 Thread Dylan Tusler
Got a colleague who is travelling to UK, Greece and Turkey, and she wants to be able to do some internet stuff (banking, email etc) via mobile handset while on the move. Better to look for a data plan? Or rely on WiFi? How would you do it? Also, we have a co-worker that recently had her

Re: [OT] Global Roaming data plans and WiFi hacking

2011-03-03 Thread mike smith
On Fri, Mar 4, 2011 at 11:36 AM, Dylan Tusler dylan.tus...@sunshinecoast.qld.gov.au wrote: Got a colleague who is travelling to UK, Greece and Turkey, and she wants to be able to do some internet stuff (banking, email etc) via mobile handset while on the move. Better to look for a data

RE: [OT] Global Roaming data plans and WiFi hacking

2011-03-03 Thread Dylan Tusler
Interesting. I had heard of Firesheep, but just looked at the details. How would you write an app that resists this kind of attack? Does an app that uses .NET Membership Provider have this kind of vulnerability (encrypted login, but unencrypted cookies.) Cheers, Dylan.

Linq Select from an array where element indexes satisfy a criteria

2011-03-03 Thread Arjang Assadi
Given an array, how can a subset of it be selected based on restriction on the elements index? e.g. given the array numbers [1,2,2,3,3,5,6]; from number in numbers where ( number is even indexed ) select number or from number in numbers where ( number index is greater than 2 ) select number

RE: Linq Select from an array where element indexes satisfy a criteria

2011-03-03 Thread James Chapman-Smith
Easy. var numbers = new [] { 1, 2, 2, 3, 3, 5, 6, }; var evens = numbers.Where((n, i) = i % 2 == 0); var igt2 = numbers.Where((n, i) = i 2); For this last one you could just go with `Skip(...)`. var igt2= numbers.Skip(3); Cheers. James. -Original Message-

Re: Linq Select from an array where element indexes satisfy a criteria

2011-03-03 Thread Arjang Assadi
James, are evens, even numbers or the numbers that their index is even? i.e. 1,2,3,6 Thank you Arjang On 4 March 2011 13:32, James Chapman-Smith ja...@enigmativity.com wrote: Easy. var numbers = new [] { 1, 2, 2, 3, 3, 5, 6, }; var evens = numbers.Where((n, i) = i % 2 == 0); var

Re: [OT] Global Roaming data plans and WiFi hacking

2011-03-03 Thread mike smith
VPN seemed to be one way, so I guess an app that did a similar setup. On Fri, Mar 4, 2011 at 11:53 AM, Dylan Tusler dylan.tus...@sunshinecoast.qld.gov.au wrote: Interesting. I had heard of Firesheep, but just looked at the details. How would you write an app that resists this kind of

Re: Linq Select from an array where element indexes satisfy a criteria

2011-03-03 Thread Nathan Schultz
They're the numbers where their index is even (not the number itself). Try James' example in LINQPad (or a console application). The results will be: evens: 1, 2, 3, 6 igt2: 3, 3, 5, 6 On Fri, Mar 4, 2011 at 11:21 AM, Arjang Assadi arjang.ass...@gmail.comwrote: James, are evens, even