« first day (1376 days earlier)      last day (3571 days later) » 

8:09 PM
10 hours on:
Works on developer machines
Doesn't work on Test machines.
Hooked developer machines to Test DB/Configuration - works.
So has to be a different issue... Test machines default culture: Africa... smh
Yea...
nope
all our servers are configured with Africa.... it's the first on the list.
now operations is hesitant to change it because it could blow things up. SO we have to test it.
My idea of a test: Turn it to en-us, run a few messagse. if it works, it's good
10 minutes vs 8 hours
 
@TravisJ It doesn't even work on my machine :(
 
DRY thing? Do REpeat your-fault?
hahahahah
I have a dev and I'll say: For this bug you need to do A , B, C. Try those, if those don't work see me. He'll come back to me, I tried Z, X, Y and they didn't work. what should I do now?
!!facepalm
 
@RyanTernier That didn't make much sense. Maybe you meant: idoge
 
!!facepalm
 
8:20 PM
thx
 
Anyone know of a way to find a word with jQuery, then just add a span around it?
 
is more like it
 
@RyanTernier I think that image is photoshopped
 
@ton.yeung Hm...
 
How did he manage to capture the hanging letters otherwise?
hahaha, it really does
 
8:26 PM
@ton.yeung Hm, I've got to ponder it a bit.
 
@RodrigoSilva That image happened! I was there! It was epic!
 
@RyanTernier How did you guys manage to make the letters fly, and how did you put an entire person inside the black frame?
I smell BS
 
We're Canadian. We do epic Sh*t like that.
 
Oh really, @RyanTernier ... ?
Than how come this question still has no answer?
0
Q: Creating extensions for Pipeline from Parallel Extensions Extras

DarekI truly enjoy working with Parallel Extensions Extras, but must admit, still find myself challenged when it comes to creating extensions for Fluent programming methods. I have a particular need, given this simple BusinessEntity following the Null Object Pattern public abstract class BusinessEnt...

:D
Just teasing
I know you guys are awesome
 
@Greg - In order to localize the area searched it uses a class "highlighter". The area you wish to have text bolded in must have that class
 
8:34 PM
@RyanTernier Well, you guys eat bears... So, I'm inclined to believe you.
 
@TravisJ It has to be called higherlight, even if I rename it?
 
@RodrigoSilva Bears actually taste like pork. they're quite good. Need to get one that doesn't live near a city though (around 100km away)
 
@TravisJ Yeah, it still doesn't work on my page.
 
@Greg - "highlighter", you can use a different name to mark the element if you wish. But that is what is used by the jquery selector in order to avoid going buck wild on your page and removing all of the event handlers.
 
@TravisJ Even with that name it still doesn't work. It should work on document.ready right?
 
8:36 PM
@RyanTernier Yeah, we just don't do it here :P
 
What specifically did you use from that code?
 
And hunting is not a big thing here aswell
 
Also, note that #eval was just the demo input
 
@TravisJ All of it, I just modified it for this:
('#<%= txtSearchPlattU.ClientID %>')
 
It was made to work only when the input changes
 
8:38 PM
@TravisJ I really only need it to work on Page Load though.
 
okay
 
Because the button always does a Postback.
 
@Greg - What if the user changes the text?
Do they have to post before it is updated?
 
@TravisJ Yeah.
 
k
 
8:40 PM
It won't actually search the page until then, because it has to hit the database first.
 
@Greg - The example I made will not match OffCase to offcase or Modern to modern
 
Yeah, I noticed that.
 
Whats a good (free) alternative to SSMS? I have a script over 50MB and am getting OutOfMemoryException
 
So what would I need to change to do the Page Load?
 
@Greg - Nothing, the second demo is set up for page load
 
8:43 PM
@JoJo Don't go in the JS room, then
They make fun of people with 50MB of code
 
:)
Never tried another SQL Database IDE but I am sure there are lots..?
 
Yeah.. wait til you have like 5 gigs :(
 
yikes
 
of code?
 
yes
 
8:45 PM
how does that even
 
SQL code for db backups
 
@TravisJ Hm, it didn't work still. Hm.
 
It has to hold every value in the entire database
 
wtf lol
 
(common practice)
 
8:45 PM
yeah.. with DATA
thats what makes it so big..
 
@KendallFrey - Haven't you heard cody complaining about maintaining theirs?
They have a freaking tiny one
 
So do I da da dum
 
@TravisJ what tool do you use if you want to open a large table backup .sql with data?
 
@JoJo - I am probably not the right person to ask
@JoJo - I am not sure what you would use, if you get a hold of something let me know :P
 
aye.. I will :)
 
8:49 PM
Whoever decided that an unfocused backspace should cause the browser to go back one page should meet the same fate as the marquee tag.
 
@TravisJ I actually like that :P
It's handy, sometimes
 
So you're the one!
 
muahaha
 
@TravisJ Is my best bet to count , indexOf?
 
@Greg - Honestly this should really be done server side.
 
8:53 PM
I'm trying to count a Comma Separated Value list.
 
It would so much easier to do it in c# than with javascript.
Preferably before the information is composed, as it will be easier to parse when separate
 
That count, will be.
 
Anyone use web deploy here (or another tool to do web deployments )? (not octopusdeploy)
 
very funny
 
8:54 PM
The bold issue isn't working and I don't want to decipher it at the moment. So, I switched to another issue. I have data coming out of the database as a Comma Separated Value. I need to count how many commas are present.
 
In a string?
 
@TravisJ Yeah.
 
@TravisJ 100% agree there
 
@TravisJ Could I do this:
course.Count(x => x == ',');
Or would that not work?
 
@Greg - int commas = str.Sum(i => i == ',' ? 1 : 0);
@Greg - Count will also work
it reads beter
 
9:00 PM
@TravisJ Okay. Wasn't sure if that was the best approach.
@TravisJ What do you think?
    private bool CourseDetection(string course)
    {
        int comma = course.Count(c => c == ',');
        if (comma >= 2)
            return true;

        return false;
    }
Clean?
 
return course.Count( c => c == ',') >= 2;
 
@RazorSQL Loads large Schema + Data .sql files no problem.. FYI razorsql.com/download_win.html
 
@TravisJ You trying to get me to do it as a one liner?
 
@Greg - Reads the same to me. I guess it is up to you if you would rather have it include more.
 
Hm, perhaps.
@TravisJ You gave me an idea.
@TravisJ If I do the count like this: int comma = course.Count(c => c == ','); would comma be the integer value total?
 
9:14 PM
yes
 
@TravisJ Here we go:
    protected string Category(string course, string content)
    {
        int comma = course.Count(c => c == ',');

        if (comma < 1)
            return content;

        string output = comma.ToString() + " Classes: " + course;
        return output;
    }
course would be a database column and content is another.
 
out of sight, out of mind
 
writing a poem?
 
nah it was related to your pic
if you cant see it, its not a problem
 
9:19 PM
@drch Do you have hungry eyes?
 
@Greg are you referring to the song from Dirty Dancing?
 
@drch One look at you and I can't disguise, I've got hungry eyes.
 
...
 
@drch ... Was that out loud?
@drch Just messing with you.
 
so confused
 
9:21 PM
When @JohanLarsson said you writing a poem, I commented.
 
is there a difference between ListOfItems.First() and ListOfItems[0]?
First will throw, ListOI[0] with throw only if Count = 0?
 
First works on more types
 
as in IEnumerable you mean
?
 
both would throw
is it ienumerable or ilist?
 
@NETscape yeah [0] is probably faster if you care about purrformance
 
9:26 PM
you would only save a really tiny bit of time tho. if its IList, just use what reads better
 
any idea why they do as Ilist and not an overload this Ilist?
 
IEnumerable<int> foo = new List<int>()
the idea is that the extensions apply to anything that is an IEnumerable
 
<- derp
 
9:32 PM
but there are MAJOR performance implications on certain things
for example - say you want to do .Count() of a list of int.Max items
if all you have is an ienumerable, it has to iterate all of them
but if its an IList<> it can just do foo.Count
so there are a lot of places where they type check
 
@JohanLarsson - ^ :P
 
:)
do you have pluralsight Travis?
 
only on the weekends
 
5 hours ago, by Johan Larsson
@rightfold Provable Code. Awesome tutorial.
 
including this "predicate calculus" part?
 
9:37 PM
check ^ out if you have time, skip first part if it is boring
@drch that is a safe skip
@TravisJ how come?
drunk?
 
@JohanLarsson - I am as sober as a squirrel on the weekends.
 
:D
I haven't ever used pluralsight. Seems interesting, but I am not going to pay to subscribe.
I have talked with a few people who write the lessons for it though, they seem like nice people.
 
@TravisJ Company must pay for it, hard to find cheaper courses I think.
 
@JohanLarsson - I prefer checking out the free mit, stanford, or bezerkly ones
 
9:42 PM
the squirrel gives me a hangover from watching
when he runs in circles
 
lol that squirrel is nuts
 
he does some nice moves when he falls though
nice to be able to just pinch with your toe if you fall from a tree
 
I taught him that
 
but who taught him to drink like that?
 
You can't teach that.. He was born with it.
 
9:49 PM
Has anyone had issues with VS2013 hanging when trying to start a WCF service in debug mode?
I just get the loading cursor on the IDE and I end up having to kill the process.
 
I have never seen that issue.
 
Did I screw this up: int comma = course.Count(c => c == ',');
It isn't grabbing the ,.
 
what does grab mean in context?
 
Well, I've got this:
<div class="Training-Category-Detail"> CategorySummaryToDisplay( <%# Eval("CourseTitle") %>, <%# Eval("ShortDescription") %>)</div>
    protected string CategorySummaryToDisplay(string course, string content)
    {
        int comma = course.Count(c => c == ',');

        if (comma < 1)
            return content;

        string output = comma.ToString() + " Classes: " + course;
        return output;
    }
But it is only returning the content.
 
you could write if(!course.Any(c => c == ',')) (same thing but reads better imo)
slight performance increase from any also :)
 
10:03 PM
@JohanLarsson I'll keep that in mind, but... Why is it technically not working?
 
looks right, firing up VS here, time for [Test]
 
Okay. Can you not do two Eval in the same method?
 
no idea, what does it say if you put a breakpoint in the method?
I have never used mvc
 
It is Model View Controller.
@JohanLarsson It is Web Forms, not MVC
 
what does the course string look like greg
 
10:08 PM
[TestCase("a,b", 1)]
[TestCase("ab", 0)]
public void TestNameTest(string s, int expected)
{
    Assert.AreEqual(expected, s.Count(c => c == ','));
}
algo is rock solid
 
@NETscape It works, it was working before we made added this extra column.
Can you not do that?
 
extra column?
"it was working, it doesn't work anymore," you mean ;)
my question is what does course look like when its coming in?
"CS101 Do Stuff, We do stuff in this course"?
 
Co-Worker just helped me.
 

« first day (1376 days earlier)      last day (3571 days later) »