« first day (1461 days earlier)      last day (3490 days later) » 

9:00 PM
about 550 mapper mappings so far
 
comment out half of the lines
and time it again
see if it takes half the time
 
Well, it occurs only once, during bootstrap
 
if not then there is not a linear progression and it would indicate it is hanging somewhere
 
I must sya, during runtime, it is freakishly fast
 
but on startup
 
9:00 PM
database can;t keep up with my sequential mappings
And it is a windows service
so should I care and worry
hmm
 
0
Q: Why does my LDAP redirect script fail with one user?

SkullomaniaHere is my login script I have two users 20002143, and 60000027 the first will authenticate and redirect as scripted the second will authenticate and stay on the same page. I cannot figure out why. I have inserted breakpoints all over this code and it tells me it authenticates but then why is the...

 
            Mapper.CreateMap<QUOTE_THIRD_PARTY, POLICY_THIRD_PARTY>()
                .ForMember(d=>d.POLICY_THIRD_PARTY_Column, o=>o.Ignore())
                //SBV
                .ForMember(d => d.POLICY, o => o.Ignore())
                .ForMember(d => d.POLICY_SECTION, o => o.Ignore())
                .ForMember(d => d.POLICY_PARTICIPATION, o => o.Ignore())
                .ForMember(d => d.ENDORSES, o => o.Ignore())
                //END SBV
                .ForMember(m => m.AUDIT_ID, a => a.ResolveUsing<UserNameResolver>())
LOVE, LOVE, LOVE the simplicity
 
this makes no sense. I feel like banging my head up against the wall
 
Automapper and LINQ2DB rock!
 
That is actually pretty cool.
I kind of don't want to know the amount of backend work going on here.
 
9:05 PM
SBV === Suggested By Validator :P
Me neither! @MrDoom
this saves me anywhere between 5-150 lines of code for each type
 
can anyone tell me why my user is not getting redirected?
 
Why does this sometimes not test true and throw an exception:

response == null when I specific response = null
 
Could not reproduce, more details plx
 
im going to see what happens in fiddler
 
I have an object called GatewayAuthentication, if it has a failed request response = null, except it doesn't response == null.
 
9:10 PM
i did not think of that
 
@Darek Well, at least until either your own DTO or the third party has some name changed by an unaware party which introduces some silent issues that may or not be directly apparent at run-time (yet could have been caught by the compiler without reflection magic) :-P
 
user862319
@Skullomania are you using the same browser/pc for the testing?
 
@Bob I had another user try it from a different browser
it authenticates...but it does not redirect
its the stupidest thing i ever seen
when did fiddler get purchased by telerik
 
Does that make sense?
 
@Skullomania your authenticate method will never return false
 
9:16 PM
it does
@NETscape when / if my username or password is wrong it does not allow me to log in
at all
 
@RoelvanUden In which scenario I only have to T4 and recompile
Then UnitTest
 
doesn't allow you to login, but it will still return true?
 
for just this one user
and it does log in...it just does not redirect
 
@Darek T4 can become part of your msbuild step as well.
 
are you typing it the correct id and password?
 
9:19 PM
I did not know that ...
 
There are a few caveats, such as having hostspecific=false as a requirement
 
according to documentation DirectoryEntry entry = new DirectoryEntry("LDAP://" + Domain, EmployeeID, Password); will never make entry == null, mean the authenticate method always returns true.
 
K, Thanks! @MrDoom
 
a case you wouldn't be redirected is, it returns true (and get inside first if statement), but you're not authenticated
 
fiddler tells me nothing
 
9:21 PM
you're not even persisting anything...
 
@OliverSalzburg You may or may not be interested in seeing my update for autocomplete in the dark: gist.github.com/kendfrey/8364879/revisions
 
everything is new'ed? wouldn't you want to use the directoryentry after you create it?
 
@NETscape please explain
 
your saying that my condition will always return true...but if that is the case why is this user not being redirected
 
9:26 PM
type in bad username and password, and it still returns true right?
then you try to redirect, but it can't, because you're not actually authenticated.
 
its because I am stupid
i am stupid and embarrased
 
soo..... what was it?
 
wow...it has nothing to do with the login script...im such a idiot...the argument on the second page is that if the user is authenticated and if his UserID matches the one of 6000 in the database...HIS NUMBER IS DIFFERENT IN THE DATABASE
im such a retard!
 
That, uh, that'd do it.
 
9:30 PM
4 hours on this crap...lol
@NETscape, and community im sorry man....please dont put me on your ignore list....i swear im not this numb...usually
 
local anesthetic is a helluva drug
 
@Skullomania exactly, you were typing in the wrong credentials and the function was returning true.
 
@NETscape as i said...i am an idiot. I have no other excuse....except obamacare
lol
 
@Skullomania So listen a little closer to what @NETscape is saying. It sounds like your auth function isn't correct.
 
Can anyone see any obvious problems with this:
    public class BufferedInput<T>
    {
        private Timer _timer;
        private volatile Queue<T> _items = new Queue<T>();

        public event EventHandler<BufferedEventArgs<T>> OnNext;

        public BufferedInput() : this(TimeSpan.FromSeconds(1))
        {
        }
        public BufferedInput(TimeSpan interval)
        {
            _timer = new Timer(OnTimerTick);
            _timer.Change(interval, interval);
        }

        public void Add(T item)
        {
            _items.Enqueue(item);
 
9:37 PM
no need for _items to be volatile, since you only write it once
oh wait you do, nvm
 
I am listening and looking at the documentation
 
for some reason when i'm creating the event args, I get a collection modified exception, which i only can assume is because im adding to this really fast
Testing app:
    class Program
    {
        static void Main(string[] args)
        {
            var stop = false;
            var bi = new BufferedInput<TestClass>();

            bi.OnNext += (sender, eventArgs) =>
            {
                Console.WriteLine(eventArgs.Items.Count + " " + DateTime.Now);
            };

            Task.Run(() =>
            {
                var id = 0;
                unchecked
                {
                    while (!stop)
                    {
                        bi.Add(new TestClass { Id = ++id });
I thought that making the collection field volatile and using Interlocked.Exchange would avoid this situation
The event args is defined as:
    public sealed class BufferedEventArgs<T> : EventArgs
    {
        private readonly ReadOnlyCollection<T> _items;
        public ReadOnlyCollection<T> Items { get { return _items; } }

        public BufferedEventArgs(IList<T> items)
        {
            _items = new ReadOnlyCollection<T>(items);
        }

        public BufferedEventArgs(IEnumerable<T> items) : this(items.ToList())
        {
        }
    }
 
thanks for the assistance @NETscape I marked yours the answer, i could'nt tell that you were cross at me at all...hahaha
 
I've never touched any LDAP/System.DirectoryServices stuff in my life. I knew the problem because I know fundamentals. I did one google search and knew what was wrong with two mouse clicks. i ain't mad, otherwise i wouldn't have said anything.
 
im just giving you a hard time man but i appreciate the help a ton! I am trying to make a conscious effort to move away from webforms alltogether
im tired of fighting with postbacks and pagestate
and more often then not stuff breaking for no reason
no to mention clean up and updates
 
9:52 PM
^ it'll be the best move you've made¬
MVC FTW!
 
i got that and node.js that I want to learn but .NET MVC first built in bootstrap...thats just sexy
seperation of concerns whole pages in the pint size of a function
madness
no more spaghetti...theres just soo many questions I have. I need a .NET MVC tutorial where someone is writing and extracting from a Database
honestly i need to go read my damn 40 dollar book...lol
that might help
/endrant
 
@KendallFrey link to the SO question if you want to track the answer: stackoverflow.com/questions/26414567
 
10:24 PM
Hello people
anyone alive to help me solve an easy problem
nope, ok
 
if its easy, you should be able to solve it
 
10:42 PM
anybody feel like a LINQ-SQL question? @ReedCopsey you might have the best answer.
 
doubtful ;)
 
I have a large number of rows (Orders) in my DB. I'm using LINQ-SQL to access them via a DataContext object. I have a list of Order objects I want to load in, but only after I determine that a matching ID is not in the DB. So I'm trying to filter down the list to only orders that don't have a matching ID currently in the DB.
(It's more LINQ than LINQ-SQL)
I can use Except, but I'm concerned that will be very inefficient, since I can have many thousands of rows in the Order table
 
it should be handled on the server,, though
and indexed cleanly - so it shouldnt' be too bad
check the SQL generated just in case if you're worried, though
 
hmm
well I'd need to load thousands of orders into my local environment to get a realistic execution plan
it's annoying that I need to create an IEqualityComparer... I wish I could just pass in a lambda
hm. something like this?
var ordersToLoad = orders.Where(o => ctx.Orders.Select(or => or.MarketplaceOrderID).Contains(o.MarketplaceOrderID));
 
11:08 PM
@NETscape so sassy lel
 

« first day (1461 days earlier)      last day (3490 days later) »