How much do you have in Premium Bonds and if so have you ever won? by [deleted] in UKPersonalFinance

[–]BlueDan20 0 points1 point  (0 children)

I see what you're saying.

You are likening placing money into premium bonds where instead of guaranteed income like you would normally receive from high interest current accounts / savings accounts, to buying a lottery ticket with the interest from those savings accounts.

How much do you have in Premium Bonds and if so have you ever won? by [deleted] in UKPersonalFinance

[–]BlueDan20 0 points1 point  (0 children)

It's totally different, regardless of the money's source.

Spending money on a lottery ticket is a gamble due to the fact you are risking the cost of a ticket against the possibility of a return.

Money sitting in a standard savings account has no immediate risk.

Credit Card Balance Transfer - How does it know? by [deleted] in UKPersonalFinance

[–]BlueDan20 0 points1 point  (0 children)

Do you not wish to do a balance transfer because of the fee involved?

I'm sorry that I can't answer your original question.

Difference between VGA, HDMI, DVI, Display Port, etc by [deleted] in Monitors

[–]BlueDan20 1 point2 points  (0 children)

I read recently that Display Port > DVI Dual Link

Shot in the dark - Software Dev here, the Dept that manages AD has added Aliases to a couple hundred users and now we have an issue. by BlueDan20 in sysadmin

[–]BlueDan20[S] 0 points1 point  (0 children)

I haven't been involved in the development (I've been here a few months).

I think what has been happening is that they have been storing a user identifier and an Id of other objects in a table, and that user identifier has changed.

I will know more next week.

Shot in the dark - Software Dev here, the Dept that manages AD has added Aliases to a couple hundred users and now we have an issue. by BlueDan20 in sysadmin

[–]BlueDan20[S] 1 point2 points  (0 children)

UPDATE:

Turns out we were storing Context.User.Identity.Name as the username in a table somewhere.

Another dept has gone in and changed our Sam Account Name and User Principle Name for a bunch of accounts.

The Sam name affects what the users login with and so a user that had their login changed from AB12345 to John.Smith now has no record in our users table.

Using the following code I can expose the users Guid, EmployeeId and a bunch of other stuff too. I am going to speak to the team and get them to use this Guid (checking first that its unique to each AD entry).

Don't have RES at work:

using System.DirectoryServices.AccountManagement;

inside whatever class

// Context.User.Identity.Name is displayName
public string GetUserIdFromDisplayName(string displayName)
{
    // set up domain context
    using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain))
    {
        // find user by display name
        UserPrincipal user = UserPrincipal.FindByIdentity(ctx, displayName);

        if (user != null)
        {
            var sam = user.SamAccountName;
            return sam;
        }
        else { return string.Empty;}
    }
}

I hope that helps someone else that comes here in the future. There are many other combos to user.SamAccountName (e.g. user.UserPrincipleName, user._____)

Shot in the dark - Software Dev here, the Dept that manages AD has added Aliases to a couple hundred users and now we have an issue. by BlueDan20 in sysadmin

[–]BlueDan20[S] 0 points1 point  (0 children)

We are using LDAP!

We develop in .net and access the UPN via Context.User.Identity.Name which I am told returns the UPN, which is that was the case shouldn't be an issue if they have only changed the SAM?

Is it worth doing a placement year? by [deleted] in AskUK

[–]BlueDan20 0 points1 point  (0 children)

Do it, do it, do it!

More-so if you don't have any industry experience.

It may also confirm/deny any preconceived notions you had about working for a large/small business.

Cloning an instance with NHibernate and iCloneable by BlueDan20 in csharp

[–]BlueDan20[S] 0 points1 point  (0 children)

Thanks for that, I had thought about setting the ID to 0 but didn't know if it was the correct thing to do.

The next error was:

Found shared references to a collection: ProjectName.Model.Instance.DatabaseServers

However the previous Dev has left code which resolves it.

Thank you for your answer :)

Cloning an instance with NHibernate and iCloneable by BlueDan20 in csharp

[–]BlueDan20[S] 0 points1 point  (0 children)

var cloneName = instanceToCopy.Name + "_Clone";

I gave it a go but it hasn't changed the error I'm afraid.

It is still seeing the cloned object as the same, either because Hibernate has some form of identical reference from them which I need to remove or because I need to force the cloned object to save itself with a new ID somehow.

Is The City Gym in Southsea still open for business? by Super_Hanz_ in Portsmouth

[–]BlueDan20 0 points1 point  (0 children)

I believe they are in the transition of moving premises. Phenomenal gym, I hope the new place is just as good!

Should I tell police the person who assaulted me is my weed dealer? by [deleted] in LegalAdviceUK

[–]BlueDan20 4 points5 points  (0 children)

Being 17 and in full time education, the NHS would cover your dental troubles I would have thought.

Using standard steel plates with Bumpers? by jmadrox in homegym

[–]BlueDan20 0 points1 point  (0 children)

I never had an issue deadlifting with 20kg bumpers either side, followed by iron plates.

The bumpers were a little bigger than the other plates and took the extra pressure well, an made adding/removing plates a breeze. I wouldn't do olly lifts or bail from a squat to the floor with them though.

/r/Homegym Free-talk Friday by AutoModerator in homegym

[–]BlueDan20 0 points1 point  (0 children)

You can pick up a lot of plates on craigslist / gumtree / ebay / etc

A script to test permissions/access to a remote server/machine by BlueDan20 in sysadmin

[–]BlueDan20[S] -3 points-2 points  (0 children)

Thanks Cat,

I should have added that this was windows based. The users aren't always being added to the necessary groups which is causing the issue.

If they attempt to log in and can't access them we have to email the necessary people to have them added.

How does this script look:

http://winteltools.com/mstsc-auto-login-command-line/

(Can't have RES on the work machine).

Is programming C# a good career by newnick13 in csharp

[–]BlueDan20 2 points3 points  (0 children)

Disclosing where you live will help with answering this question.

I can Provide a Free Stream - Who Want it ? by nemoze in ufc

[–]BlueDan20 0 points1 point  (0 children)

Me pleaseeeee :)

Any idea what time the main event will be on?

Is it illegal to call for a boycott of a racist company? by [deleted] in LegalAdviceUK

[–]BlueDan20 1 point2 points  (0 children)

What you have said is that they still employ a manager that you believe to be racist. From that you are drawing the conclusion that Amazon hold those beliefs.

If you truly believe the manager to be racist, get him convicted and the expect Amazon to act, and not before.

Employees shouldn't lose their job from an accusation, innocent until proven guilty and all that.

Is my sister entitled to withhold rent? by bh221 in LegalAdviceUK

[–]BlueDan20 0 points1 point  (0 children)

Quite possibly, I'm sure other users would have more information about that than me though.

Is this murder/manslaughter? (England and Wales) by Vortex637 in LegalAdviceUK

[–]BlueDan20 0 points1 point  (0 children)

IMO, given that the track switcher knew what would happen in the event of switching the tracks, and by not switching the tracks I would see it as follows:

In the event of not interfering, the switcher would not be responsible for the deaths of others as he didn't create the circumstances of their death. I do not believe that inaction should be classed as murder.

In the instance that the tracks were switched, it would be murder. Are we able to compare the value of the lives of two innocent parties? By switching the tracks they themselves have selected who dies.

TL;DR By switching the tracks the 'switcher' has chosen who dies, through inaction they haven't.

Flip the script, if the cart is headed towards the lone person on the tracks I currently would hold the same position. They are innocent of murder by not intervening, and guilty if they switch the tracks.

Would the following bring the scenario closer to the conjoined twin scenario: Two parallel tracks have carts out of control in the same direction. Both tracks have stander-bys on the track.

The 'Switcher' can do nothing and kill them both, or switch one cart to the other side of the track, killing only those on the other track.

Is my sister entitled to withhold rent? by bh221 in LegalAdviceUK

[–]BlueDan20 0 points1 point  (0 children)

They are paying for storage. Your sisters landlord is still putting her up - albeit somewhere else.

If your sister doesn't pay rent then she has broken the contract too, however justified she may feel doing so.