« first day (1523 days earlier)      last day (3429 days later) » 

7:00 PM
Oh I see.. it is just .NET specific?
 
unsure?
@Greg - Include the full signature of the method
 
        private bool IsMissingOrHeld()
        {
            List<string> product = new List<string>();
            for (var i = 0; i < cartRecs.Count; i++)
            {
                if (cartRecs["item" + i] != null && cartRecs["item" + i].ToString() != "")
                    product.Add(cartRecs["item" + i].ToString());
            }

            if (product.Any())
            {
                string query = @"SELECT [ProductId], [ItemOverLength] FROM [ZNodeProduct] WHERE ([ItemOverLength] = 1);";
 
What is cartRecs type
 
object.
The loop works.
 
anyone worked much with macros?
 
7:03 PM
Nope
 
oh :(
 
@Greg - Why do you select ProductId?
@RahulKhosla - Well, at least not me, I am sure someone has (although not sure if anyone in here)
 
ok, thanks
 
Because that ProductId is what would be stored in the List Product that is passed from users.
 
@Greg - But in the method you only ever examine ItemOverLength
 
7:04 PM
@TravisJ Typo
@TravisJ I want ProductId
 
using (SqlDataReader reader = command.ExecuteReader())
 while (reader.Read())
  if( reader["ItemOverLength"] != DBNull.Value
      && product.Any(p => p.Contains(reader["ProductId"].ToString() )
  )
   return true;
 
@TravisJ I thought when you merge like that, it actually can potentially allow a null into that Contain? Which would throw a NRE
 
That is true when you are talking about queryables, however this is not a queryable, it is a reader. That whole statement will not be sent as SQL to the database. It will be run on the application server and as a result && will short circuit the statement when the first condition fails.
Right? Doesn't reader.Read() iterate?
You already composed the SQL and executed it earlier
 
7:22 PM
well, I got my offer from the company I was interviewing for...
 
Grinch or Santa?
 
santa I think
 
Nice :D
 
it's a very fair offer. I feel like I should ask for a tiny bit more just to be negotiatey
 
Good idea. Try for +15%, settle for +5 :P
 
7:25 PM
@TravisJ Yeah, it does.
 
@Greg - Then the short circuit && will work
 
@Pheonixblade9 That is awesome.
@TravisJ Okay, fair enough. Thank you for clarification. Still not familiar with .Where. I tend to use Select, FirstOrDefault, and Any.
 
@TravisJ well they offered me $50/hr
I feel like I wanna ask for $52.50 and a $2k signing bonus. :P
it works out to a little over $100k with the yearly bonus.
plus it's not salaried so I get paid if I work more
 
@Greg - Where will return every item in the set when the condition is true. Select will return every item in the set but only the fields you specify in the expression. FirstOrDefault will return only the first matching item for the condition, and null if empty. Any will return true for the first match of the expression, or false if none match.
@Pheonixblade9 - Hourly is so much nicer than salary. So no bargaining? Just straight to +5%
 
well
they gave me pretty close to what I said was fair
I looked up their salary on Glassdoor, and that's pretty close. we'll see, I'll talk to my brother about the details.
 
7:32 PM
@Pheonixblade9 - If you are asking for 52.50 might as well round it out to 55 since they seem to like round numbers.
And skip the $1/hr signing bonus for the first year (aka $2k)
 
does it usually work out to 2000 hours a year?
I always did 250 days * 8 hours, so that makes sense
 
Basically you take your hourly and double it for annual
 
makes sense
so what do you think?
ask for $55 just to show that I negotiate? and when they counter with $52 or whatever, take it?
 
Sometimes people like to negotiate, and even expect it. So when you don't they may not expect to give you raises or bonuses in the future. That said, probably take whatever they counter with after a pause, even if it is only the original offer.
 
woo, I got the shirt!
 
7:43 PM
yeah that's the thing... it's a great offer. I just feel like you always have to negotiate
they aren't going to withdraw an offer because I ask for 10% more.
 
@KendallFrey - Which?
@Pheonixblade9 - If they say $51? Then they are willing to negotiate. I think that is where your $52.50 + signing bonus could be an option to use.
 
yeah I just don't want them to think I have a big head, lol
 
Well I it isn't like you are asking for $65 :P
 
haha, my minimum for side work is $60/hr generally
I charge $90 for mobile apps
but I have to pay lots more taxes on that money ;)
 
I think it is a reasonable thing to ask, and as along as you are not forceful about it, but suggestive such as "perhaps 52.50 and a 2k signing bonus?" it will probably go good even if they stick to their offer
 
7:47 PM
HI all
 
haha, maybe I'll earn the respect of the hiring manager by negotiating :P
 
@Pheonixblade9 - It will make you memorable :)
 
I wasn't being sarcastic, though it sounds that way, hold on, I'll edit
 
:D
So hard to tell tone on the internet
 
man I have such a hard time in chats where I can't edit
@ton.yeung I hired an accountant and found that it wasn't worth it to do that
nah, only 5-10k/year gross
 
7:50 PM
Could someone please help me understand DataContext I am reading about it on MSDN but can't fully grasp how it works. If you have multiple properties of a XAML control with a '{binding}' value how does DataContext know which one you wish to set?
 
@ton.yeung no, I have heard good things though
heh
you can probably ask for a refund.
they'd probably be happy just to get rid of your obsolete server :P
can't hurt to ask
hmm
ask for a partial refund
 
Speaking of domains, I managed to obtain one I have been trying to get for a while yesterday
Was pretty stoked
 
I still can't find a non-sketchy place to buy .sexy domains.
I really need cody.is.sexy to be a website
 
lol
use hyphens?
 
so lame.
 
7:55 PM
The comment there might be bad if quoted out of context.
 
lol
By Kate Gregory
She is pretty active on meta
hm, no one box
 
8:15 PM
@ton.yeung torrent box?
hahaha
uhm...
 
@TravisJ F5
 
I guess the North Korean hackers won then... they've managed to get the Interview release cancelled.
Can't believe everyone back down so easily.
Nope, just announced all 5 major chains
Think a few independents like Drafthouse will continue
But release has effectively been cancelled
Pretty sure this will set a bad precedent that hackers can get what they want easily just be writing some threatening emails. Will make a lot of opportunistic hackers very happy anyway!
@ton.yeung True, but from everything I've read there doesn't seem to be any credible source to indicate that some hackers in N.Kora have the means or are in position to enact a terrorist attack
Although I get your point that if your one of the bosses at a theatre chain - are you going to take a risk?
The Exodus producers will be cracking open champagne at least!
 
huh, the guy I've been doing side work for offered me a full-time freelance gig
 
Back to a coding question. I am running through a tutorial for binding collections to Item Controls and it all makes sense and works because my binding takes place inside a method in my View.
I however want to be able to bind to a Items Control from my ViewModel however as I understand the ViewModel is not exposed to View controls - how therefore do I bind?
The tutorial in question if relevant is: msdn.microsoft.com/en-us/library/windows/apps/xaml/…
 
8:40 PM
hi :)
 
@Steve - Hi :)
 
how goes it
 
rep capping on meta in hopes of secrit hats
and trying to figure out a nuance of this already complex algorithm
 
haha nice, they're doing the hats again this year?
 
Yup
 
8:44 PM
If I knew how to get the spock shirt, I'd totally do it
but I'm too lazy to ask
 
@KendallFrey - But you just did ask. Upvote an accepted answer with +5 votes
 
heh, just one vote?
 
yup
 
well damn son
 
@ton.yeung well, 40 hours a week ish
and now msft is emailing me... when it rains, it pours...
 
8:48 PM
@Pheonixblade9 - Next stop, $60/hr
 
yeah Ballmer did a better job than most people think
 
Baller
 
I liked Ballmer :(
He ushered in MVC
 
side note, i hate the name ballmer
 
DEVELOPERS
@Steve side note, I hate the name Steve
 
8:49 PM
aw :(
 
I'm so confused here:
A first chance exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in Beta.exe
WinRT information: Failed to create a '%1' from the text '%0'. [Line: 618 Position: 234]
Additional information: The text associated with this error code could not be found.
Line 618 is: <Setter Property="Padding" Value="0,0,25.5,0"/>
 
@DemCodeLines Try checking InnerException
 
what the heck
 
That's what I always do for XAML exceptions
 
I'm back!
 
8:50 PM
@TravisJ how long does it take to register? also, you're welcome
I'm totally gaming the system
 
lol, shouldn't take longer than a few minutes
 
InnerException is null
@KendallFrey ...
 
@DemCodeLines shucks
 
Wasn't me - but I do think MVC was a reaction to rails
 
If it weren't for mvc, I would have RoR
 
8:51 PM
@KendallFrey sigh
 
@DemCodeLines What type is that setter attached to?
@ton.yeung yeah - I'm not involved with much of the web stuff, so I'm out of those loops
but I'd believe it
 
ToggleSwitch, the problem is it was working fine not too long ago. This error came out of nowhere
 
@KendallFrey did anyone figure out what it was called earlier today?
 
I have a book for SAAS and it is all demo'd in RoR
 
8:53 PM
@MatthewH ?
 
wtf
 
@KendallFrey The one where I asked about the web and client and realtime stuff. :P
 
What the heck does Failed to create a '%1' from the text '%0'. mean?!
 
That link took me to localhost
 
@ton.yeung uh, nothing
ahah, I love the name of this hat
 
8:55 PM
@ton.yeung - That is what I said :)
 
kbye beer time
 
I just get website not found
 
Are you running a server?
 
no
it doesn't redirect or anything
I suspect it's because https
 
That is probably why. I have one on, perhaps the DNS from IIS catches it as unknown? Hard to tell.
@KendallFrey - Do you like Benedict Cumberpatch? Have you seen the show Sherlock?
 
8:57 PM
no
 
To both? :)
 
so no one? :P
I don't know if I should ask though on stack overflow :/
 
Not I, don't recognize the author either
 
Ha, is that a bad sign?
Heard of this one?
http://www.amazon.co.uk/Windows-Development-Xaml-Professional-Apress/dp/1430240474/ref=sr_1_1?ie=UTF8&qid=1418851387&sr=8-1&keywords=C%23+and+XAML
 
I don't actively dev in 8.1 nor XAML so not necessarily
Yes
Jesse Liberty is awesome
 
haha ok, maybe I'll try that one then.
 
I have actually met him in person
 
9:24 PM
I was just concerned it was a bit higher level than the other one.
 
He usually includes a lot of code in his explanations.
 
Ok great. Well I just bought it so hopefully it's good. Xmas learning anyway!
 
Nice :) He is high quality, I can't see it being bad
 
@KendallFrey Lets say I have a treeview whose ItemSource is bound to ItemManager's Items collection, and that looks like:

Item1
    Item1A
    Item1B
    Item1C
and each Item1A|B|C has event handler attached to its Refresh event. If I call Items.RemoveAt(0); will that cause a memory leak because I didn't detach all the event handlers on child nodes?
 
9:26 PM
@Teomanshipahi Ha, so was I but not out until Feb is it?
I figured much of it will be the same.
 
WPF
 
@James yeah it will be published at march 5 :(
thats what it says at amazon
 
@James I've seen the author's name before. haven't read the book.
XAML is wonderful
 
I've not used it enough yet, starting to like it.
If you learn c# and XAML what would be the natural way to traverse to webpage development?
 
not use silverlight
 
9:36 PM
I may be wrong but XAML is not designed for Websites is it?
Isn't it designed for apps and Windows programs?
 
is it if you use silverlight
 
I think Silverlight is being phased out from Windows 8.1 onwards
 
you don't need to know XAML for web dev
 
Silverlight isn't very common for web, but it is still used. Netflix uses it.
That is probably the only high profile customer though.
 
I guess what I'm asking is if many skills you learn with C# / XAML are useful for web development?
 
9:39 PM
It looks like the Silverlight footprint on the web is about 0.2 %
 
maybe to understand MVC, but you're better off learning C# / Javascript or something
 
@ton.yeung Yes - XAML was invented for WPF
 
Inventions are almost always best at something that they weren't invented to do.
 
RE: Microwaves
 
@TravisJ yeah?
 
9:50 PM
They weren't originally known to heat stuff up. They were trying to improve on radio signals.
> Percy Spencer invented the first microwave oven after World War II from radar technology developed during the war. Named the "Radarange", it was first sold in 1946.
 
10:25 PM
@KendallFrey almost always ?
 
10:51 PM
@TravisJ You hear about the Chinese microwave vehicle? It is designed to make people feel like their heating up from the inside, so they intend to use it for crowd control.
 
Lame
 
Why do people think that microwaves heat things up from the inside out?
 
Almost as lame as starring all these messages.
 
Have you ever used a microwave?
always a cold middle. always
 
@KendallFrey I was talking about this:
 
10:52 PM
@KendallFrey Spread your food like a donut.
 
11:15 PM
funny, crowd control... imagine the babies that would scream about that if there was a ray gun. you can't even use LRAD to control a crowd without people crying torture
 
just use a flame thrower
 
This doesn't seem safe.
        using(SqlDataReader reader = command.ExecuteReader())
            while(reader.Read())
                if(reader["ProductId"] != DBNull.Value && product.Contains((int)reader["ProductId"]))
                {

                }
 
you don't seem safe.
 
That should check the List for the elements in the reader.
@Nathvi ...?
 
just fucking with u
 
11:20 PM
@Nathvi ...?
 
messing
 
@Nathvi ?
@Nathvi I'm just fucking with you.
 
ik
 
Does that seem correct though?
 
No idea.
 
11:31 PM
Hm.
 
i like brackets
whats the column type of ProductID?
 
You guys ever manually edit the bitstream of a pdf?
 
@TravisJ I have.
I used a plugin from NuGet though.
 
I am trying to remove a watermark, and cannot seem to recognize which piece it is
 
@NETscape int.
 
11:42 PM
My first try removed too much content
 
@TravisJ Hm, check those individual bits? To find it?
 
I just don't know how to decypher which bit represents what
 
why would you ever manually edit a bitstream ?
ohh
o god
 
int NOT NULL?
 
I don't think doing that at the bit level would be very effective
 
11:47 PM
Once I find the code for the watermark I am going to regex it out
 
sounds illegal
 
Nope, just easier than retyping
Or at least, in theory
 
@TravisJ i'd assume it'd be encoded into base64
read the PDF spec
 
this is a piece of it: i.imgur.com/2YpD69c.png
 
I seriously doubt it
 
11:54 PM
@TravisJ a piece of the image?
 
That is the bitstream
 
make a PDF with some stuff on it, save it.
then add a watermark. save as a different file. diff the two
 
Not a bad idea really
 

« first day (1523 days earlier)      last day (3429 days later) »