Re: ASP.Net, ADAM, Membership Providers and Role Providers

2010-02-25 Thread silky
On Thu, Feb 25, 2010 at 8:18 PM, Tony Wright ton...@tpg.com.au wrote:
 Hi all,

 I am currently trying to get ASP.Net working with ADAM (which is the
 lightweight Active Directory for Applications) on a Windows XP SP3 machine.
 I have configured ASP.Net membership and role providers in the web.config
 file. I have opened up the ASP.Net web administration tool. I can
 successfully create a user (using the wizard) and create roles. The roles
 are turning up in the Authorization Manager, and the users are turning up in
 ADAM, which I can see using ADSI Edit. But when the administration tool
 attempts to add a user to a role, it causes an exception.

 The reason for the exception, I believe, is that there appears to be no way
 for the user to be identified within the Authorization Manager, so the user
 can’t actually be added to the role there. I currently can’t go into the
 Authorization Manager and manually add a user, coming from the membership
 container, into the role in the AzMan container.

 I believe that I should be able to add a user from the membership container
 into the roles in Authorization Manager. Does anyone know how I can bridge
 this?

Sorry to be an idiot and ask the obvious, but can you send the
exception? I'll admit, I have absolutely no idea what you're talking
about, but perhaps it has some useful info.


 Regards,

 Tony

-- 
silky

  http://www.programmingbranch.com/


Re: [OT] Bill gates on our energy futures - some tech miracles needed

2010-02-25 Thread silky
On Thu, Feb 25, 2010 at 11:44 PM, David Connors da...@codify.com wrote:

 I wasn't trying to win an argument. My position remains flexible and
 nuanced.

Mm, I think I need to add this as a disclaimer to the end of all of my emails.


 --
 David Connors (da...@codify.com)
 Software Engineer
 Codify Pty Ltd - www.codify.com
 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

-- 
silky

  http://www.programmingbranch.com/


Re: [OT] Multiple questions in an email

2010-02-25 Thread silky
On Fri, Feb 26, 2010 at 8:41 AM, David Richards
ausdot...@davidsuniverse.com wrote:
 Greetings all,

 Has anyone else noticed people often don't answer more than one
 question in an email?  In fact, I'll generalise that and say people
 often don't read an entire email.  I had this today (already) but this
 happens to me all the time (it's probably more like 25% of the time
 but I think the exaggeration is justified).

I don't notice this really, but I tend to put all items people need to
respond to in a list:

 - like so,
 - and thus
 - etc

Which generally gets the appropriate result. But I do think if the
question was phrased how you've shown below, I may accidentally ignore
'C' while answering 'A'. Maybe.


 This is particularly annoying when the main question isn't the first
 one (such as today's incident).  eg, Please tell me A and B but I
 really want to know about C will usually just get me the answer to A.

 I don't want to have to twitterize my emails into single sentences
 of a few small words.

Sometimes, when (professional) emails I send get too long, I'll write
a little Summary area at the bottom. It works well, because bored
people just read the summary, and then decide if the entire thing is
of interest.


 I wonder how many people on this list didn't get past the first sentence :)

 David

 If we can hit that bullseye, the rest of the dominoes
  will fall like a house of cards... checkmate!
  -Zapp Brannigan, Futurama

-- 
silky

  http://www.programmingbranch.com/


Re: Intresting Stuff in (.net) world? [OT-TGIF]

2010-02-25 Thread silky
On Fri, Feb 26, 2010 at 9:56 AM, Arjang Assadi arjang.ass...@gmail.com wrote:
 Hi everyone,
 I remember a post on this forum about framework for ditributed stuff
 ( aka intresting stuff ).

Distributed how?

You mean Parallel Linq? And other such things? http://blogs.msdn.com/pfxteam/

Or do you mean from a DB point of view? Like CouchDB or have you read
about Hadoop? And friends?


 Any new/non-run of the mill projects/framework anyone has found
 intresting lately? (Not neccerilyly .net)

The most interesting one I've found recently would be Gendarme. Aside
from that, I don't know. I'd say dashy, but that needs a new release
before I really feel comfortable with it.


 Regards

-- 
silky

  http://www.programmingbranch.com/


Re: unit testing in visual studio

2010-02-25 Thread silky
Well, I believe you can read the current random port that it wants
to use from the config (so if you desired, you could do that).

However, you should be able to simply change the project properties so
that instead of using the inbuilt asp.net webservice, it uses your
local IIS one. Infact, you can just set the port in the same
properties area (right click the web project, select Properties go
to the Web tab).




On Fri, Feb 26, 2010 at 12:27 PM, Geoff Appleby geoff.appl...@gmail.com wrote:
 I've got a weird situation going on. Hopefully someone knows which
 (probably simple) button to click to do to get it working the way i
 want it.

 I've got a largish solution full of different projects. also part of
 the solution is a set of testing projects. one of the projects in the
 solution is a web service (simple boring web service, not wcf or
 anything). the web service project is set to, when debugging etc, use
 the asp net file system based development web server, and is set to
 always start listening on the same port (say, ). and that works
 fine and when just running in the debugger everything is good and the
 web service gets called on port .

 When i run unit tests, however, it somehow knows there's a web
 service involved - and it starts the web service, but starts it on a
 random port. All well and good, except that all my code that in the
 other projects that call the web wervice pull the url to use from the
 app.config file that specifies the port of . End result - all the
 calls to the web service fail because its been started on some other
 port.

 Interestingly, i've noticed two strange behaviours:
 1) if i manually start a new debugging instance of the web service, it
 will start on . If i leave it running and then start the unit
 tests, it ALSO starts teh web service on a random port, but the tests
 i have that call code that invokes web service succeed because it can
 connect on .
 2) one of my tests, so far, test a function that lives INSIDE the web
 service and relies on a the HttpContext object. Iv'e decorated this
 unit test saying HostType(ASP.NET),
 AspNetDevelopmentServerHost(file system path to the web service) and
 UrlToTest(http://localhost:/WebForm1.aspx;) ... and it happily
 runs the test inside the file system web server...on the RANDOM port,
 not port  - which means the test always succeeds, regardless of
 point 1) above.

 I've read up on the webtesthelper.redirecturl (or words to that
 effect) helper class, but that's no good because it works on a web
 service reference object - and in my case the web service reference
 object is buried deep within a class library - my test is calling a
 public method on the class library that internally instantiates teh
 web service object and invokes it, all based on config file values.


 so in short - anyone know how to stop the test engine starting the web
 service on a random port, but to start it on a fixed port instead?


 --
 Geoff Appleby
 Blog: http://blogs.crankygoblin.com/blogs/geoff.appleby/




-- 
silky

  http://www.programmingbranch.com/


Re: Business Rules , what are the Tools/Methodologies to categorise/Implement them in .net?

2010-02-25 Thread silky
On Fri, Feb 26, 2010 at 12:44 PM, Greg Harris harris.gre...@gmail.com wrote:
 Silky,

 I have to disagree with you...

Be my guest.


 C#/VB is not the cure to all problems; there are other languages out there!

I never said otherwise.


 I have not used a business rules language as such, but I can see real value
 in a language where you can show an end user the source code of a set of
 business rules like...


 TotalClaims = Sum ( ClaimItems )

 If TotalClaims  ClaimLimit Then ClaimLimitExceeded

You really show your end users/clients, code? Instead of outlining all
of what has been tested (i.e. scenarios)? I don't think showing real
people code like the above is particularly useful (or even good).

[...]


 If the business rules code can be read and understood by a client user and
 compiled into executable code by a business rules engine, then I see real
 value for it.

 You say...

  you need to:
 
  1. Understand them
  2. Know how to program them
  3. Test them

 I would say that you need to:

 1.    Review the rules
 2.    Document the rules
 3.    Understand the rules
 4.    Program the rules in a machine executable format
 5.    Test the rules

 Your 12 are effectively my 1-4.

 All of the steps would greatly helped or effectively eliminated by having
 some form of rules engine.

I disagree. I think you've just moved your code into a new
language. So you can program in a new language, so what. Do it or
don't do it, what do I care. It's just a different language. Present
your information to clients/managers however is best for them. If they
understand the statements of a basic programming language, good.
Probably, they don't, because it may be hard to convey edge cases, or
context, or they will assume various things that aren't true.

Whatever works, really. I took issue with the idea there is some
magical modelling process you can do to make your code suddenly
correct. The process is called programming and it can take place in
whatever language is appropriate. Maybe two languages, if it's
relevant (one to generate an implementation in other). This is fine,
if it works. I don't have any strong opinions about it.


 So, I see real value in the question “what are the Tools/Methodologies to
 categorise/Implement business rules in .net?”

 Interesting to note that a quick search of Google gives 24M results for the
 search “dot net business rules engine”.

I've never based my opinion on what the majority of people do, or even
what some sort of subset of people do; I base it only on what I think
via the opinions formed from experience and research. Wrong or right,
it's the way I operate. So I really don't care that there may be
demand for it.


 Regards

 Greg Harris

-- 
silky

  http://www.programmingbranch.com/


Re: [OT] Multiple questions in an email

2010-02-25 Thread silky
On Fri, Feb 26, 2010 at 12:00 PM, Jonathan Parker
jonathanparkerem...@gmail.com wrote:
 What is needed is a replacement of email. A format that allows editing and
 versioning built into the email client.
 Then you can say. Ahh. Jim changed this line of the email on this date and
 then Jane changed it again a week later.
 It will save millions of dollars in bandwidth costs too.

To a significant degree I think there is no replacement for people
having to learn how to communicate.

It's not that hard.

-- 
silky

  http://www.programmingbranch.com/


Re: Business Rules , what are the Tools/Methodologies to categorise/Implement them in .net?

2010-02-25 Thread silky
On Fri, Feb 26, 2010 at 12:05 PM, Arjang Assadi arjang.ass...@gmail.com wrote:
 I wish I could agree with that, but how does what we as software
 engineers do differs from the building or bridge engineers, surely
 they don't build bridges or building on what they perceive to be the
 right way.

 Surely there must be some sort of canonical form to implementation,
 otherwise we are not software makers and just duct taping hodge podge
 together. Every (software) system will gravitate towards maximum
 entropy and minimum order and the programmer's job is to stablised it
 by imposing order and decreasing the entropy.  Having a structure for
 defining how a system should be implemented would reduce the number of
 possible permutation and hence decrease the entropy.

 I believe a systematic approach to defining and implementation is
 necessary other wise we are just adding to total sum of junk in the
 world.

Careful, if there is a systematic way to doing such things, you will
soon find yourself replaced with a system :P


 Regards

 Arjang

-- 
silky

  http://www.programmingbranch.com/


Re: unit testing in visual studio

2010-02-25 Thread silky
On Fri, Feb 26, 2010 at 2:50 PM, Geoff Appleby geoff.appl...@gmail.com wrote:
 But you're pretty fool.

...

So, what system are you using to run the unit tests though? Test Driven.NET?

I'm now slightly intrigued as to why it's randomly changing the port on you.

-- 
silky

  http://www.programmingbranch.com/


Re: unit testing in visual studio

2010-02-25 Thread silky
On Fri, Feb 26, 2010 at 2:55 PM, Geoff Appleby geoff.appl...@gmail.com wrote:
 Just the built in test projects that are part of 2008 team developer.

ohhh, I see. Well, I've never used that.

Have you looked at things like this?
http://msdn.microsoft.com/en-us/library/ms404693(VS.80).aspx

-- 
silky

  http://www.programmingbranch.com/


Re: Connors makes Slashdot : The Rick Roll

2010-02-18 Thread silky
On Thu, Feb 18, 2010 at 8:57 PM, Les Hughes l...@datarev.com.au wrote:
 silky wrote:
  Poor guys were probably just trying to download some _interesting_
  presentations ...
 
  Lets analyse the data and see who's presentation coincides with the
  most bit-torrenting ...
 

 I was also trolling reddit a while back, and there was a photo thread... was
 clicking on them, and who should pop up about 15 pics down!?

I HAVE ABSOLUTELY NO IDEA.

*backs away from the internet*


 :)
 --
 Les Hughes
 l...@datarev.com.au

-- 
silky (looking for part-time/contract work; .net programmer for 8
years; contact me if interested)

  http://www.mirios.com.au/
  http://island.mirios.com.au/t/rigby+random+20


Re: Connors makes Slashdot : The Rick Roll

2010-02-18 Thread silky
On Thu, Feb 18, 2010 at 9:00 PM, David Connors da...@codify.com wrote:
 Can we talk about VB.NET vs C#, politics, religion and global warming now?
 I have a TE meeting all day tomorrow. My timing is impeccable.

I can't believe you guys refuse to accept that the Internet Filtering
project is all part of the government plan to cover up the global
warming threat.

It's all so obvious.

-- 
silky (looking for part-time/contract work; .net programmer for 8
years; contact me if interested)

  http://www.mirios.com.au/
  http://island.mirios.com.au/t/rigby+random+20


Re: Connors makes Slashdot : The Rick Roll

2010-02-18 Thread silky
On Thu, Feb 18, 2010 at 9:10 PM, Les Hughes l...@datarev.com.au wrote:
 David Connors wrote:
 
  Can we talk about VB.NET http://VB.NET vs C#, politics, religion and
  global warming now?

 VB/C# and global warming *are* both somewhat religion and politics... but
 anyway, here goes something:

 VB.NET is an inefficient language consuming greater CPU power resulting in
 higher carbon emissions, but backed by the right wing as it's corporatist
 agenda enjoys the greater energy profits while the religious agenda dislikes
 C# due to references in Leviticus which equate it with the devils work.

 Rebuttal?

The government refused to fund monkeynet with the 4bn for the NBN;
thus we have the problem. Monkeynet does not cause global warming; it
causes global bananas.


 --
 Les Hughes
 l...@datarev.com.au

-- 
silky (looking for part-time/contract work; .net programmer for 8
years; contact me if interested)

  http://www.mirios.com.au/
  http://island.mirios.com.au/t/rigby+random+20


Re: F11 via Javascript

2010-02-15 Thread silky
On Tue, Feb 16, 2010 at 1:35 PM, Stephen Price step...@littlevoices.com wrote:
 Yeah, I've seen lots of posts like this where it opens a new window in full
 screen. (Not tested if that works or not) but I need to toggle the current
 browser window (preferably as if the user pressed F11). I'll be calling the
 Javascript from a Silverlight app via HTML Bridge.

 I don't think what I want is possible for security reasons.

One of the posters on Jonathan's link says that it's specifically
disabled, under firefox, unless you have the right permissions.

Without researching, I'd generally consider it not possible as well
(and also in poor taste, as, at least I, never want an existing window
deciding what is best for me, but it may not be relevant if it's for
an internal app, etc).

-- 
silky
  http://www.mirios.com.au/
  http://island.mirios.com.au/t/rigby+random+20

liquid venture = earache! Lesser abbreviation conspectus pinyon
strengthener? Broody TAPIR? S...


Re: [OT] Facebook data mining

2010-02-14 Thread silky
On Mon, Feb 15, 2010 at 11:42 AM, David Connors da...@codify.com wrote:

 On 15 February 2010 11:33, silky michaelsli...@gmail.com wrote:

 I actually do think you can somehow permanently delete it; mine is
  currently deactivated.


 My understanding is that you have to delete all of your user content
 yourself. Manually. Seriously. That is every photo, comment made on a photo,
 status update, message sent/received. *Only then* can you contact facebook
 and ask them to delete your account (as opposed to deactivate it).

 That is not going to be tedious at all.


Yeah, I haven't actually gone that far, and I certainly wouldn't go around
re-activating the account just to delete everything. It can have what is has
on me; it's not much, and it's from several years ago. I realised ages ago
that Facebook was just a massive waste of time for me, I still haven't quite
made that realisation about email yet :P


OT - wondering; c# direction

2010-02-11 Thread silky
I wonder if I am alone, out here, in thinking that C# is (possibly)
going in a strange and bad direction. We can notice that it is tending
to more of a dynamic/scripting-like language, with less compile-time
checks (or worded another way, more freedom) with features that you
could argue are generally harmful, and only sometimes useful
(Extension Methods being the primary example, anonymous classes being
another).

I just wonder if anyone else is legitimately concerned by this? Or is
mostly the feeling that it's about time the language got some cool
features and damn the people that use them irresponsibly!

Not all the features are bad, to be sure, and mostly I'm just
interested in thoughts (I have no real strong feelings on the matter,
despite how it may seem); but it seems to me that we should go down
the Spec# world of further restrictions to prevent various things even
*becoming* code.

Is the general thing that programmers care about now flexibility, as
opposed to correctness? Or is it both? Are they exclusive? I don't
think so. Anyway, this is probably too much off topic rambling to even
warrant and OT tag; I just can't help but wonder if anyone else is
legitimately concerned that it will lead to less maintainable systems
in general. It seems (to me, just an outsider) that not much thought
is given, specifically, to how the features could be used badly; only
to how they could be used ideally (and we all know that few, if any,
programmers are consistently programming ideally).

Probably I should do a significant amount of work in 4.0 before
commenting further.

-- 
silky
  http://www.mirios.com.au/
  http://island.mirios.com.au/t/rigby+random+20


Re: OT - wondering; c# direction

2010-02-11 Thread silky
On Fri, Feb 12, 2010 at 2:28 PM, Jonathan Parker
jonathanparkerem...@gmail.com wrote:
 Ahem it's a podcast not a video. I listen to podcasts while doing
 other boring yet necessary things such as driving or exercise.

Oh.

Man.

I may as well give up now. I'm an old man not even familiar with
technology terms anymore. That's disturbing.

-- 
silky
  http://www.mirios.com.au/
  http://island.mirios.com.au/t/rigby+random+20

GINGHAM AERODYNAMICALLY likewise: neutralize graphology. Pivotal TRIG: endow...


Re: Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)Issue?

2010-02-06 Thread silky
On Sun, Feb 7, 2010 at 2:05 PM, Anthony asale...@tpg.com.au wrote:

 Writing to a config file and sql compact database..so where should i place 
 data  for all users?

Environment.SpecialFolder.CommonApplicationData

--
silky
 http://www.mirios.com.au/
 http://island.mirios.com.au/t/rigby+random+20

deliriousness apologize? Database: zeppelin-counterpoise.


Re: [OT] Versioning

2010-02-04 Thread silky
On Fri, Feb 5, 2010 at 1:33 PM, Bec Carter bec.usern...@gmail.com wrote:
 TGIF!

 What assembly versioning convention do people here follow? I assume
 theres a Microsoft standard that I havent found yet.

I'm yet to get fully into this (but I'm getting close). What I've
implemented at home (on dashy) is

 major.minor.build.revision

So the download file generated is in the form of:

 filename-0.0.463.1263.zip

Thus it hasn't made it to a first version yet, but has had quite a few
builds and significant commits against the repo.

 Of course, it's all auto-generated (which is the point, and awesome, and fun).

 CruiseControl.NET can easily push through the build number, and I
assume Hudson can as well (I'm moving to that at for my CI server
now), but it should go without saying that this structure will imply a
significantly different build number if you switch build servers
mid-project (i.e. you may need to set a 'base' build number once,
after doing the switch, just to make sure it all matches up).

 That said, with this version I haven't put it to the test of using
it for any decision-making in-code. But nevertheless, it's what I use,
and I quite like it.


 Cheers
 Bec

-- 
silky
  http://www.mirios.com.au/
  http://island.mirios.com.au/t/rigby+random+20

paean-KLEPTOMANIAC mousiness heckle.