« first day (1154 days earlier)      last day (3811 days later) » 

8:00 PM
So continuing my previous question it does look like it is NHibernate related. I ran a program memory analysis on the custom test launcher and the biggest function is System.Reflection.CustomAttribute.GetCustomAttribustes(...) and the biggest type is System.Reflection.CustomAttributeRecord[].
Both of the callers of these are NHibernate Related (The first is NHibernate.Mapping.Attributes.HbmWriter.GetSortedAttributes(...). I am thinking that these might be getting stored in one of the second level caches, but I am not sure. Any ideas on where to go from here?
My older question:
So I'm running a suite of tests. When running them both in visual studio and a custom launcher they bloat (starting at .5gb in VS ending at 4.5GB, starting at 100MB in custom ending at 1.1GB). We are using NHibernate as our ORM, and I'm having it clear the level 1 cache every so often, that changed nothing. Any other ideas on what this could be?
extra note, the application itself while running doesn't bloat.
 
@Recursor When you say L1 cache are you referring to the various GC states?
Just going for clarity.
 
8:16 PM
@Breems I'd focus on listing tech that you're familiar with, and your work history - fresh out of school, 5+ years/etc is going to be suspect (even if its true)
I always question resumes I get from students like that ;)
 
Thanks for the advice!
I suppose I'll list the language and some technologies within it that I'm familiar with. Leave the explanations to the interview.
 
8:40 PM
You can always put the resume up on careers.stackoverflow, and have people here give you advice on it, too ;)
 
somebody just gave me an ugly sweater to wear
it's glorious... hold on and I'll get a picture
 
@JeroldHaas When using C# Microsoft.Web.Management.dll
 
@greg Strange, I don't have that in my GAC. Is it included somewhere special?
 
@JeroldHaas Yeah, the System folder, under inetsrv.
C:\Windows\System32\inetsrv to be exact.
 
@JeroldHaas Its part of IIS install, not the BCL
 
8:53 PM
Howdy peoples.
 
Surprised I've not touched it since I started using this workstation.
 
@JeroldHaas no I'm talking about the versions of NHibernate cache
They are related to scope
 
behold:
 
Your ugly Christmas sweater?
 
yes.
well... the girl in IT lent it to me...
:)
 
9:04 PM
Glorious... Or gory-ous?
 
why not both?
 
9:23 PM
Hey, why not?
 
9:37 PM
I'm so burnt out on these stupid bug fixes...
 
I'm trying to figure out how I can determine what folder this darn iis site is pointing to; but it isn't easy as the .dll isn't clear about the ideal way to do it.
@Pheonixblade9 Pretty comical: youtube.com/watch?v=ruMO9SXto0Q
 
9:54 PM
grrr
me </3 TFS
 
10:06 PM
so question for everyone
I brought my problem to my boss and he wants me to redo my testing infrastructure
he wants me to bypass all of the NHibernate and use moq classes
any suggestions?
 
start moq'ing?
a good design helps with that - if you don't have a decent api for interfacing to your data layer, it's going to be a bit of a pain
 
that is what I am wondering. What kind of api should I be looking for? I'm going to need dependency injections as well. I've never done this and I'm just looking for a place to start.
 
I actually gave up with a unit test a few minutes ago... our system is just so badly designed from a testing standpoint
 
10:38 PM
@Pheonixblade9 You think I should ask a question about this whole IIS thing? It isn't bad to clear the bindings; but I can't seem to determine / query the Site Path they are pointing to.
The closest I could find is this,
// If IIS7
// Add reference to Microsoft.Web.Administration in
// C:\windows\system32\inetsrv

using Microsoft.Web.Administration;
...

int iisNumber = 2;

using(ServerManager serverManager = new ServerManager())
{
  var site = serverManager.Sites.Where(s => s.Id == iisNumber).Single();
  var applicationRoot =
           site.Applications.Where(a => a.Path == "/").Single();
  var virtualRoot =
           applicationRoot.VirtualDirectories.Where(v => v.Path == "/").Single();
  Console.WriteLine(virtualRoot.PhysicalPath);
Which seems a tad bit painful, as it constantly queries their Id's rather than Host Headers.
 
nice. Our CEO just mailed out, we get the whole week of christmas off :)
@Greg I'd ask. I don't really know much about IIS, just the very basics
 
@Pheonixblade9 Lucky dude!
 
@Greg :D
 
@Pheonixblade9 Yeah, I hear you. That code above, doesn't that seem painfully redundant?
Query a Site Id for their number, then query the Application Path, then get the Virtual Root (Physical Path). Three queries to obtain one piece of information.
 
hn
hm
you probably shouldn't use Single, as it throws exceptions if there's more than one. Unless that's your intention
 
10:48 PM
@Pheonixblade9 That isn't, that is the only example I've found to point me in the right direction.
 
yeah. FirstOrDefault is probably better.
 
I know people don't agree with this, they say "Just program it, figure it out." I find that isn't a nice approach, without concrete understanding or a fundamental understanding the implementation becomes lackluster, poorly written, poorly maintained, and dreadful to work with. So I'm trying to ensure a nice approach to avoid those pitfalls.
 
@Greg prototyping is good, but if you don't know what you're trying to do, it's useless.
 
@Pheonixblade9 I wish I could find a way to match the Host name, to the valid Host Header. That would save so much time.
@Pheonixblade9 That is quite true.
 
@Greg coffee break. I'll see if I can think of something when I get back
 
10:52 PM
@Pheonixblade9 In this case I know what I want to do, just the best way to do it hasn't proven to be fruitful.
@Pheonixblade9 I think I may have found a way.
 
nice!
 
@Pheonixblade9 Let me ponder on this example, I'll post it for some feedback.
@Pheonixblade9 What would the difference between a relative path, and physical path?
 
g'night
 
11:08 PM
Quite tipsy on many cocktails. Time to hit #stackoverflow.
 
lol
 
That is pretty funny.
 
beer, vodka today
Fri 13th is over
i survived
 
Hm, why is this dictionary comparison not working.
 
now programming my brilliant social network
 
11:10 PM
@LINQ2Vodka Sounds cool.
 
@KendallFrey YES
 
@Pheonixblade9 You know off the top of your head what the fastest linq way to do an if statement that is testing items as a loop recurses through a Dictionary?
 
@Greg what's the iterative statement you're trying to translate?
 
11:26 PM
@Greg You mean like Where?
 
Not quite.
        public bool ModifySitesBasedOnExpiration(Dictionary<string, DateTime> webSiteList)
        {

            using(ServerManager manager = new ServerManager())
            {
                foreach(var application in manager.Sites.SelectMany(a => a.Applications))
                {

                }
            }

            return false;
        }
 
k...?
 
So that foreach should search for all of the web-sites
 
alright
 
Now I need to take those gathered web-sites, and compare them to the Dictionary<string, DateTime (time portion).
 
11:28 PM
oh gotcha
 
So that I can perform the proper task to the write site and modify folder accordingly.
While still checking the other sites, so if it isn't expired I can either A. Leave it alone, or B. Point it back to the right location.
 
well personally
I'd do Dictionary.ToEnumerable
 
Elaborate, why?
 
and then do a Join
I'm not sure exactly what "compare them" means though
what's your desired output?
 
@Pheonixblade9 No output, I just need to ensure that the list that is fed through the service; when I get that Dictionary<string, DateTime> it will contain ALL our sites. That includes expired and non-expired. So I need to essentially modify the ones that are expired to new paths (so they no longer work), set ones that have been paid for back up (they've renewed, so change path back to their original site), or leave it alone because everything is in good standing.
Am I looking at it wrong?
 
11:32 PM
ok: type this out
what is the data you have? what is the data you need? what do you need to do to the data?
sounds like you need to do this:
 
i want my static file be accesible for client by static path (no routing).What should i google for?
 
webSiteList.ToEnumerable().Where(wsl = > wsl.Expired).Zip()
> Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
 
Data I have: `Dictionary<string, DateTime>`
Data I need: The contents of that dictionary to compare the path of the user based on a `DateTime`. *Expire* , *Renew*, or *Leave Alone*
 
ok, so simplify it first. then optimize.
 
@Pheonixblade9 So based on what your saying, the Zip compares both values?
 
11:38 PM
var toExpire = dict.Where(d => d.Expired).ToList();
var toRenew = dict.Where(d => !d.Expired).ToList();
 
Where did you get expired?
 
Zip compares two sequences and uses a function to merge the two
it's shorthand; I'm sure you have a date there
 
@Pheonixblade9 Yeah, I do. That confused me a bit.
 
so... it's cool when GIT freezes my entire fricking machine
 
So you think that I should create two separate var to handle each function?
@Pheonixblade9 That sucks.
 
11:39 PM
why not?
you don't need to do the ToList necessarily
how big of data are we talking?
if it's a million items, you might need a different strategy, but if it's hundreds, it shouldn't matter much
sidenote, you could add a calculated column to the SQL called Expired ;)
but yeah, why do you need to do this all at once?
I think you're over complicating this.
is this EF? LINQ-SQL?
 
@Pheonixblade9 I don't have access to the database, another developer is calling my service to fill the data.
@Pheonixblade9 It is maybe a hundred thousand entries.
 
ok... and you need to return an IEnumerable of the items to modify?
what's your plan here?
 
@Pheonixblade9 I need to actually do that modification, as his system doesn't have access to my server.
My original thought, was pull the entire list- search the server for all the HostHeads (Sites), compare those Sites to the Expired Date, then execute required modifications based on expired or renew, or in good standing.
 
heellloo
anyone know how I can pass my models from dynamically created partial view (meaning there could be 0,1,2,3,n partial views on a page) to my controller?
 

« first day (1154 days earlier)      last day (3811 days later) »