« first day (1945 days earlier)      last day (3020 days later) » 

6:00 PM
Here's a fun bit of trivia: what are the most northern, southern, eastern, and western states in the US?
 
@KendallFrey look at my horse
 
@mikeTheLiar north is alaska, certainly
no other guess of mine is safe
 
west is easy
@SteveG my horse is amazing
 
@KendallFrey well it's AK or HI. Which do you think it is?
I'd guess HI...
actually, no
It's gotta be AK
 
@KendallFrey give it a lick
 
6:01 PM
because you have those islands
by that strait
@mikeTheLiar AK is north and west, right?
 
@Jeremy oh shit that damn latitude
 
So far so good
 
well, HI is south
@SteveG mm, it tastes just like raisins
 
I'd turn the tables and ask questions about the UK, but God Damnit England. God Damnit.
Even I don't understand it well enough.
 
@TomW Do you have to learn it in school
Because holy shit
 
6:02 PM
I am sure we have the most complicated administrative structure in the world
 
Well yeah
 
I'd really like to live in England for a while. My wife is irrationally afraid of living outside of the country though
 
You guys gave the rest of the world its complicated administrative structure
:^)
 
@TomW I don't even know how the UK is divided. What do you call England, Scotland, Wales, etc.? States? Provinces? Lumps?
 
@KendallFrey those cunts over there
 
6:03 PM
i really hate ssl/certs/pem/bs
 
@KendallFrey you don't expect there to be just one, consistent name do you?
 
@mikeTheLiar maine is East?
 
same idea with latitude
 
@Jeremy nope
Looks at those AK islands again
 
6:04 PM
damnit alaska
 
@mikeTheLiar ugh i was wondering about that
because they're so long they're in eastern hemisphere now
 
@KendallFrey with a stroke of it's public static void Maine()
 
that's so dumb
 
so none of those categories belong to the mainland states
 
So the correct answers NESW is AK, AK, HI, AK
 
6:05 PM
@SteveG it turns into a plane
@mikeTheLiar sounds like an asthmatic greeting
 
@KendallFrey supposedly the term is 'country'
 
This sounds like a desperate plea from AK to be important
 
lol.
 
Where the United Kingdom is also a country.
 
@KendallFrey sounds like my cat puking
 
6:06 PM
Actually I'm intrigued by AK and would like to visit
 
@TomW yeah....
Also, UK doesn't have a national anthem
 
@TomW Well, until the Scots get their independance, anyway.
 
> There is no common stratum of administrative unit encompassing the United Kingdom.
No shit.
 
God save our gracious queen
because at this point she's so old that's what it would take to save her
 
@KendallFrey Hi i'm sorry this is canada is this kendall? I'm sorry but we have to take away your Canada card for that terrible comment. Apologies.
You're sentenced to 12 months of putting milk in bags
 
6:09 PM
"Canada card" lol
 
My friends visited Canada once. Sister taught English in Quebec. They went to what could only be described as 'The English Are Bastards Museum'
 
@CodeMaster im a bit confused as to what you have ... maybe a sample might help ?
 
@Jeremy that should balance out the 12 months I spent taking milk out of bags
 
sorry for the confusion. Earlier today you gave me this code:

@using System.Text.RegularExpressions
@if (ViewData.TemplateInfo.TemplateDepth < 1)
{
var meta = ViewData.ModelMetadata.Properties.Where(metadata => metadata.ShowForDisplay && !ViewData.TemplateInfo.Visited(metadata));
foreach (var prop in meta)
{
if (prop.PropertyName != "Id" && !prop.IsComplexType && !prop.IsReadOnly)
{
<li>
@Html.Label(prop.DisplayName)
<div class="value">
@Html.Display(prop.PropertyName, prop.TemplateHint)
</div>
 
yup
spits out a listitem tag for each property in the given model object
 
6:11 PM
and you also said I need to save this under Views>shared>DisplayTemplates/object.cshtml
 
Portrait of the Queen in one exhibition hall with a caption in French that apparently roughly translated as Just look at this fucking shitlord. What the fuck.
 
@CodeMaster yup
 
@TomW aka "The English Museum"
 
then in your controller you have an action
 
@Wardy since filename is object.cshtml, it means that my property should be object, not string, correct?
 
6:12 PM
In the US we have "The English Are Unbelievable Tea and Stamp Taxing Pussies Who Couldn't Keep a Paper Bag from Seceding"
 
no
 
If there was an international "The English are bastards" museum, which countries would have an exhibit?
 
Because as soon as I change object.cshtml to string.cshtml everything works. I see all of my fields.
 
@CodeMaster create a controller and in your controller you define your action
public ActionResult Foo() { return View(someModel); }
 
@Jeremy I think all of them?
 
6:13 PM
then in the view which will be in the folder ~/Views/ControllerName
you add ...
 
@TomW It was a little easier to go backwards to "which countries wouldn't"
 
@Html.EditorFor(m => m)
 
@Jeremy I think there's a figure of only like 20 countries in the world that have never been invaded by Britain
 
@TomW Are they mostly in South America?
 
!!youtube Eddie Izzard Empires
 
@Jeremy dunno, guess so. Not having been a country during our roflstomping period doesn't get people off on a technicality apparently, whoever came up with this figure considered continuity
 
:)
 
Why would someone use this, cmd.CommandText = "SELECT @@IDENTITY"; wouldn't that executed always return null?
 
mine is like this:

public ActionResult Index()
{

PopulatePriority();
PopulateSystemNr();
PopulateGender();
PopulateOfficeSite();
PopulateMaritalStatus();
PopulateMonth();
PopulateCountry();
PopulateNationality();
PopulateLegalStatus();
PopulateReligion();
PopulateEthnicty();

return View();
}
 
ouch
 
6:15 PM
@Jeremy I'd think they have similar museums about the Spanish and Portuguese
 
@Greg think it selects the last id inserted, doesn't it?
 
@SteveG I think you're right
 
@TomW The image in my head about the UK is that yeah there's England, Scotland, and Wales (and N Ireland?), but England kind of runs the show. Accurate?
 
that's a whole crap ton of mess right there ... but we can come back to that @CodeMaster
you need to pass the model to the view
return View(model);
 
@Jeremy kind of. Scotland has enough parliamentary seats to make a mess of things if it wants to
 
6:17 PM
@Wardy can I return ViewModel?
 
@CodeMaster all those populate calls ... what do they do ?
 
There is a process called 'devolution' going on by which powers are ceded to the Scottish government and the Northern Ireland Assembly. Scotland already insists that everything except taxation and defence is already de facto theirs, even when it isn't
 
@Wardy The populate my Kendo UI dropdowns with value.
 
@CodeMaster i'm guessing they fill property values on something
@CodeMaster oh ok
 
public void PopulateEthnicty()
{
var dataContext = new APP_PS_UGA();
var ethnicty = dataContext.EthnicityDD
.Where(c => c.Deleted == false)
.OrderBy(c => c.OrderIndex)
.Select(c => new EthnicityDDViewModel
{
Code = c.Code,
Definition = c.Definition
})
.ToList();


ViewData["ethnicities"] = ethnicty;
ViewData["ethnicity"] = ethnicty.First();
}
 
6:18 PM
jeez this is the hard way to do things ...
 
I know, but I found this from Kendo demos
 
kendo demos are rediculous ... i was telling a colleague this earlier ... he looked at me like i was japaneese or something
they are littered with crap like SQL statements in controller actions
I didn't think the world of MVC still had people that took those demos literally
 
I totally agree.
How would you normally fill values into DropDowns?
 
me ?
I would do it like this ...
<div name="foos" data-drop-for="bar" />
then my framework would take over
no idea what that stuff even does any more lol
been so long
 
<div name="foos" data-drop-for="bar" /> that's all?
 
6:22 PM
i think the better kendo way is something like ...
$("[name=foos]").dropdownlist({ options });
which my stuff does under the bonnet
basically knows where to get foos from the meta in my viewmodel object
 
interesting...
 
it creates a kendo data source bound to an odata endpoint
 
@Wardy I'm a bit lost on the MVC/EF. Just started working with a company that only does C# MVC
 
without digging out my framework code its hard to go too far ... I should probably write a guide on how to do MVC + EF + OData + kendo or something
@Alex bit of a maze aint it
start slow man ... work your way up
 
@Wardy so far, today has been a revolutionary day for me .
 
6:26 PM
How the hell do you sort a DataTable?
 
@mikeTheLiar dataTable.Sort()
 
user47589
like a boss
 
isn't there a method for it?
 
@Wardy negative
 
lol ok
 
6:26 PM
@Wardy I got thrown into a federal government MVC application
 
@Wardy being new to MVC I feel like an idiot at the moment
 
user47589
IIRC you sort the datasource, not the table itself.
 
@mikeTheLiar if it were me i would turn the datatable in to a list and then sort it with linq lol
but then I hate datatables
 
Yeah, this thing sucks
 
6:27 PM
@Amy that makes sense
 
@Amy could you elaborate on this? We're adding stuff directly to the DataTable
 
user47589
no i can't, i'm operating on vague memories, sorry.
 
:( oh well, thanks anyway.
 
user47589
and i think i've confused datatable with datagrid
 
:+1:
 
6:29 PM
@Jeremy And if you're really interested, we can get onto 'The West Lothian Question', which refers to the peculiar situation where zzzzzzzzzzzzzzzz
 
If I have a git repository has 5 different components of projects, can I simply create sub repositories for each project component?
 
@mikeTheLiar you can sort a datatable
im not crazy
45
Q: How do you Sort a DataTable given column and direction?

Sam GentileI need to resort, in memory, a DataTable based on a column and direction that are coming from a GridView. The function needs to look like this: public static DataTable resort(DataTable dt, string colName, string direction) { DataTable dtOut = null; .... } I need help filling in this f...

you have to go to the underlying "view" of the data and sort that
 
user47589
ah
 
@Alex do what i did ... read th github repo code and poke it a lot at home
after a while it'll just be like having another limb
@Amy isnt that where you're supposed tosay "like a boss" lol
 
no, jacksepticeye
 
6:33 PM
@Teomanshipahi download the main repo, create new folders for the sub repos, copy the relevant files in to them, use git command line to make them in to repos, push the repos to github
oh yeh ... fix the fallout from the references that you didn't you had between them
 
@TomW wow your government has a lot of cruft
time for a refactor
 
@Jeremy it's cruft on cruft on cruft
The bedrock of the fucking place is ancient, compressed cruft upon which further cruft has evolved and died ad infinitum
 
@TomW FWIW, Washington DC has a similar issue...
 
Have you seen the Constitution of the United Kingdom?
It's an extremely large room, filled with rolls of vellum.
 
no
 
6:36 PM
Metaphorically, that is. It's not codified
 
@TomW and a ten ton pile of crap
this signifies what parliament do each day
 
> A locally elected mayor and a 13‑member council have [Washington D.C.] since 1973. However, the Congress maintains supreme authority over the city and may overturn local laws. D.C. residents elect a non-voting, at-large congressional delegate to the U.S. House of Representatives, but the District has no representation in the U.S. Senate.
So basically D.C. has congress as its state house and senate
Which is interesting, since if it was a state, it would be off-the-charts most "blue" state
 
I love how america has dedicated a day to the politeness of the British
 
So do actual bona-fide civilian residents of D.C. have any effective representation at all?
 
Independence day or something ... how good of us to let them go ahead and shoot each other
 
6:39 PM
@TomW No voting representation at all in Congress. Which is basically all that matters.
 
@TomW I work in DC
 
And on that topic, how the hell do the people of Puerto Rico tolerate that bullshit?
 
They have a representative
But no true representation like the 50 states
 
Does he/she have any power?
 
@TomW He/She is like a proxy or liaison to congress
 
6:41 PM
sup you friday people
 
@TomW Weird situation, but not really
 
Since DC is a congressional district its in effect subject to what congress wants to do without requiring voters to vote on it
 
I think they're mostly concerned with not being broke
and are mostly happy since we bail them out
> However, Congress maintains supreme authority over the federal district and therefore all acts of the [D.C. Council] are subject to congressional review and may be overturned.
IIRC, the council voted in favor of some kind of marijuana, but congress overturned it quite quickly
 
Hence why DC license plates say Taxation Without Representation
 
In theory at least all your laws ought to be written in legible English
 
6:42 PM
@Alex likely remembers more
 
The Constitution reads comprehensibly. Once you get over the handwriting.
 
@TomW Perhaps, but we don't actually have an "official language" (though English is certainly de facto)
 
DC isn't cheap either
I'm from California
and DC prices are higher than L.A. and S.F.
 
Those Founding Fathers actually mostly had outstanding penmanship, from what I've seen
 
I visited D.C.. I remember the monuments, museums, metro, great ethnic food, and Teaism.
 
6:44 PM
Maybe they pick the odd quotes where they elucidate like a baws
 
@Alex do you ever go to Teaism
 
I haven't
I get up at 5am leave by 530 to get into DC by 845 3 blocks from the pentagon
And try to leave before everyone else leaves DC
 
puke
I thought my commute was bad
 
DC traffic is a nightmare.
I remember that.
 
So I haven't spent much time perusing DC
 
6:48 PM
@Alex check out Teaism for lunch some time
And get a salty oat cookie.
 
I will do that. I'll look it up this afternoon
 
Yeah, I guess they're all on the other side of the river if you work near the Pentagon.
 
WTF
i just got a linked in message from some english jabrone
about a job here
and his "also viewed" are a bunch of half naked women
 
"professionalism"
 
i dont understand
 
6:54 PM
there are half naked women on linkedin?
 
user47589
there are half naked women everywhere.
 
I suppose if that relates to their work...
 
Check out this use of dynamic to deserialize values in a JSON string?
        public string GetPlayerProperties(string ID, string JSONObj)
        {

            var results = JsonConvert.DeserializeObject<dynamic>(JSONObj);

            var _status = results.Status.ToString();
pretty awesome!!!
 
I wonder if it'd make waves if I worked in my office without a shirt on.
I don't wonder enough to try, but...
 
MVC question. Is it common to break out MVC applications into Business/Command/Queries/Handlers layers with folders having matching names
 
6:57 PM
I mean, I know that there are a bunch of recruiters on linkedin who get contacts basically through being attractive young women who get a lot of profile visits for that reason
 
@Alex I do a Controller -> Broker -> BLL -> DAL
its mainly for logging purposes
 
@Jeremy depends. How fat are you?
 
also im enterprise, so you know SOA and all that crap
 
@TomW Not particularly fat
 
sup
 
user47589
6:58 PM
meh
 
@Failsafe how are inserts handled in MVC? Thats one of the things I still don't understand.
 

« first day (1945 days earlier)      last day (3020 days later) »