« first day (2414 days earlier)      last day (2528 days later) » 

1:00 PM
so, I don't see it --> as long as you use 0 for false, and anything else as true..is there ambiguity?
what I should have originally said*
 
Good day people! And happy friday!
 
Beside, for future reference, I'm hardly an 'expert' in C# to the extent others are in this room. I've spent the last week asking basic questions on idiomatic methods of styling code. I'm hardly someone to yield to. lol
 
@KamilSolecki Of course, in Haskell, Bool is just another enum.
 
I don't even code, so.. : P
 
    // Calculate the needed rows for the textarea
                foreach (char letter in value)
                {
                    if(count % maxCharactersPerRow == 0)
                    {
                        totalRows++;
                    }

                    count++;
                }

               return string.Format("<textarea rows='" + totalRows + "' cols='110' name='userinput-{0}-1' maxlength='2000'>{1}</textarea>", id, value);
Ah, much better.
 
1:01 PM
@ABuckau If you ever want to compare two boolean values for equality, that could be problematic, because true == true but 1 != 2
 
So I'm currently working with this code. It works like it should, but can any (performance) issues arise when I do it like I do? Loop through each and every character of a Value?
 
@KendallFrey in Haskell, of course.
 
I need an example.? Wouldn't you be more likely to do something like if (bool1 && bool2) ?
instead of comparing them to eachother? ..i guess it's possible - good call.
 
equality is just the opposite of xor
and xor would also fail
xor is probably more likely to be used
I used it just yesterday, in fact
 
what?
i mean, seriously*
if (makesSense && shouldDoIt) vs. ...an xor in there?
 
1:04 PM
@ABuckau yeah
@ABuckau Well, they do different things, obviously
 
Jesus chr.. You almost scared me with that link you sent earlier @KendallFrey
About Trump
 
To be honest, i'm not sure if it would surprise me too much. But it could start something I wouldn't want to be part of
 
@KendallFrey How do you feel about Lisp?
 
WELL, now you are a part of FRIDAY
 
1:07 PM
Like I want to know your deepest thoughts of such an elegant language.
 
Didn't have to go to work yesterday
And then im back just for friday
 
I'd have to see an example. ...then again, even a basic ternary operator makes my brain fuzz for a moment, so that doesn't mean much. I suppose that's a good point. some ambiguity, wins.
 
And now weekend again
 
@hilli_micha he will say thometimeth it botheth me
 
It's slightly confusing
 
1:07 PM
@hilli_micha I've never used it, but I like the concept behind it
 
TFW your stored procedure is complaining that you are passing too many arguments to it
 
@ABuckau I can show you how I used it, but anyone that can decipher my code deserves a Nobel prize
 
He's Canadian, forgive him.
They live in a dimension completely removed from our own..
 
lol..some logic is just like that I guess :P ...like I said w/ the ternary operator..even that throws me for a momentary loop :/
 
1:09 PM
 
if(true && false)
                {
                    Panic();
                }
 
As you can tell, I have a gift for clarity in variable names.
 
Yes
That.
if(w ^ wxy) {
}
why tho
 
Clear as daylight
 
Oh shit, shapes with coding.
Let me give you some GEMS Kendall, hold up.
 
1:10 PM
@Xariez Do you really want an answer to that
 
Not really. lol
 
Me does
 
@hilli_micha That's C#, not Ruby
@KamilSolecki Really?
 
I'm slightly scared over what is behind all that
 
1:11 PM
Whatever it is, I want to play it.
 
@KamilSolecki OK, you know how a polygon made of triangles has a bend in it, when all the vertices aren't in the same plane?
 
ok yea
 
And for a quadrilateral, there are two places of where that bend can go, diagonal or anti-diagonal?
 
@KendallFrey im following so far
I just need to google names of shapes in english lol
 
1:13 PM
lol
 
quadrilateral = 4 sides
a square, in my case
 
anti-diagonal? ..new to me, but continue : p
shenanagons..
 
The diagonal of a matrix that leads from top-right towards bottom-left
 
1:15 PM
Lol.. Out of all things I've heard today xD @ABuckau
 
So, w and wxy are two opposite corners of the square, representing a boolean heightmap
 
@KendallFrey Here is some disgusting VB.
 
and if those two corners are not at the same level, then the bend in the polygon should be forced to go between them
for the result to look right
otherwise, it should go at a right angle
so ^ is how to express "are not at the same level"
 
sweet jesus @hilli_micha
what the fuck
 
You didnt think that all though tonight, did you
 
1:17 PM
is that
 
@KamilSolecki You talking to me?
 
The object itself is a object with a bunch of radiuses.
Honestly, the new stuff we have is much cleaner, but everytime I have to dive into this verbose nightmare, I want to kill myself.
 
@Kendall Frey what are you making?
 
@ABuckau One of these
 
@KendallFrey Are you automating something through an API to a CAD software?
 
1:20 PM
for what
 
@hilli_micha No, I wrote the API myself, so I can generate an STL file
@ABuckau 3D printing
 
a ____
music box? :D
 
This my beautiful method:
e2function quaternion slerp(quaternion q0, quaternion q1, number t)
	local dot = q0[1]*q1[1] + q0[2]*q1[2] + q0[3]*q1[3] + q0[4]*q1[4]
	local q11
	if dot<0 then
		q11 = {-q1[1], -q1[2], -q1[3], -q1[4]}
	else
		q11 = { q1[1], q1[2], q1[3], q1[4] }  -- dunno if just q11 = q1 works
	end

	local l = q0[1]*q0[1] + q0[2]*q0[2] + q0[3]*q0[3] + q0[4]*q0[4]
	if l==0 then return { 0, 0, 0, 0 } end
	local invq0 = { q0[1]/l, -q0[2]/l, -q0[3]/l, -q0[4]/l }
	local logq = qlog(qmul(invq0,q11))
	local q = qexp( { logq[1]*t, logq[2]*t, logq[3]*t, logq[4]*t } )
 
@ABuckau No, it's a puzzle
@KamilSolecki mm slerp
 
Define beautiful @KamilSolecki
 
1:21 PM
Writing code for wiremod e2 funcs was much fun
 
@KendallFrey Interesting.
 
I also made an nlerp for quats but it wasnt accepted. They said: we do not need nlerp
 
Wiremod is open source correct?
 
1:53 PM
Chat goes shhhh
 
I blame you, you killed it.
 
@hilli_micha they all went to the rugged JS room. Im spying there rn
!!afk mi casa es mi casa
 
f
 
Www.god.com
Check mate christians
 
trololol
 
2:06 PM
omg we are still arguing about religion?
 
@JABFreeware did you go to the site?
 
oh
i see
 
or rather don't
 
My EHR is capping at about 175-190 MB for Process Memory. Is this okay?
 
2:20 PM
TFW you think you have fixed a bug with javascript, but it turns out you've broken even more stuff
oh thank fuck, I forgot to update the bundles
I need rum
i should never have to experience that amount of pure fear every again
 
2:39 PM
Can I ask a question? I don't wanna make a whole topic about it because Im sure its been covered in some way... I just can't find it.
 
Rule of the chatrooms, don't ask to ask, just ask.
Not universal mind you, but the fairly common norm. lol
 
Oh my b
 
Hey guys, I have a question
regarding this linq query, I'm not entirely sure what it's supposed to do but I think I have an idea
foreach (EmailTemplate item in templates)
{
    if (languages.Any(language => item.Language == language))
    {
    //some logic
    }
}
where languages is the value I selected from a dropdown list
So let me explain what I want to be done and what is currently having
 
@Euridice01 if there are any languages that match the selected item value language, run logic
 
What I want done: There is a language dropdown with a few languages in it, when I select a language from the dropdown, it should shown only templates with that language
What is currently happening: When I select a language from the language dropdown, there is a mismatch of templates where several languages are shown and not that specific one
 
2:45 PM
is the dropdownlist populated by languages?
 
@kramb, is that logic correct though? For some reason, I'm getting other languages showing up too
 
The issue here would be the fact that youre selecting on Any rather than what you may want- an intersect
Any would look at all elements and return true if it exists at all
 
Yea, so selecting a language will always run the logic because it is indeed saying that your selected language is in the languages queryable
 
ohh
 
Youre trying to find the common items in the list between languages and items.lanuage, right?
 
2:47 PM
yeah
something like if selectedLanguage == "ES", then show ESTemplates
etc
 
yes
 
Yeah, try an intersect
foreach (var g in list1.Intersect(list2))
dont need the if
 
ok let me give it a try thanks guys
 
Np!
 
No problem @Euridice01
What about your question @Bitz?
 
2:50 PM
Might have to do some lambada magic to get the props working
oh right
If a non static method has a sql connection (not in a using- theres a reason why i didnt use a using), does the connection get properly handled and closed if being called from a static method?
Currently I'm manually closing it, but im not sure if its needed
 
Are you manually opening it?
 
It's opened using execute reader
and the method returns a sqldatareader object
 
Guys one more question I think there might be an issue with this code
 
and that is in a using block
 
(Sorry for these stupid questions, I did not write this code) and just want to make sure it's not just weird for me
//Retrieve the templates for the first language in the list of languages for the sales associate.
			if (LoginViewController.associate.Languages.Count > 0)
			{
				LoadTemplate(LoginViewController.associate.Languages);
				//And set the text of the selector to match.
				labelLanguageOption.Text = UIStrings.StringLanguageFromISO(LoginViewController.associate.Languages[0]);
			}
			else
			{
				LoadTemplate(new List<string> { "EN" });
			}
This doesnt' make sense right? Why would one set the selector to always the first language on the list?
That might be an issue with the code?
 
2:54 PM
@Bitz What is your reason for not using a using statement?
 
Is list[x] = newobj any different from list.RemoveAt(x); list.Insert(x, newobj)?
 
Because this entire method is sort of a dbconnector class i wrote up
 
@Hypersapien one less line of code :)
 
hmm
 
Also, insertAt overrides the same way as assigning with =
 
2:56 PM
yeah the connection isnt in a using block because it is a sqldatareader
if i dropped that into a using block, it would get disposed of before i could return the reader
 
@Euridice01 That condition says that if the associate object in your LoginViewController has at least 1 language. Load the template with that language. If no language is assigned to that associate, default to english
@Euridice01 What parameter does LoadTemplate accept?
 
I was using datasets
but dropping one usage of it improved ram usage by like 20% u_u
(I say that- but it was an improvement of 13mb of ram to 11mb)
 
LoadTemplate accepts a List<string> languages
 
And @Euridice01, it looks like the logic is fine as it sets the default value based on whatever is first in the list
 
@Euridice01 So it looks like it loads template for all languages that the associate has. And then sets the language label text to the first language in that list
 
3:02 PM
Yup ^
 
hmm
 
Ya know what? Leaving the manual close isn't hurting anyone
 
@Bitz Yea, and I don't know enough about manual sql handling to give you a definitive answer.
 
Ill probably poke around if it comes down to it and see how sql handles the connections, but its not inherently wrong right now
 
3:05 PM
Btw, I'm trying to use Intersect and List<EmailTemplate> does not have that extension method
Like if I wanted to do:
foreach (EmailTemplate item in templates.Intersect(languages))
where templates is the issue here
 
you cannot use intersect on lists afaik
 
oh then what do I do?
 
You can but it seems like youd be intersecting with a property
 
hmm?
 
emailtemplate.Select(f => f.languge).Intersect(languagelist)
 
3:10 PM
There ya go
 
lambada is a godsend
and a curse
 
cool, I'll give it a try, thank you!
 
np
 
oh I need to be a type of EmailTemplates and not string
Like I have this:
foreach (EmailTemplate item in templates.Select(f => f.Language).Intersect(languages))
But it's complaining that I can't convert string to Model.EmailTemplate
 
Because you're iterating over a list of strings
You have to iterate through an array of templates to use foreach
 
3:18 PM
I don't want to iterate over list of strings, I want to iterate through array of templates
 
right so...
 
do I have to cast templates ?
 
@Kieran yo
 
foreach(var item in templates)
{
    if(languages.Select(l => l.language).Contains(item.Language))
    {
        //logic
    }
}
 
@rlemon yo yo
 
Is this that autodark thing?
 
github.com/rlemon/swatchy-cli/blob/master/… here is the userstyle sheet it generated from the SO main site
 
shit son
 
ok I'll give it a try but I change the if to
if(languages.Contains(item.Language))
 
3:23 PM
That css file got generated completely auto?
 
here is what that sheet does to main
@Kieran yessir
 
very nice
very very nice
I like
 
I wanted an easy way to dark theme websites I use
so made this
 
Holy shit @rlemon, that's awesome!
 
@rlemon does this come in a chrome extension by any chance? c:
Or is that your plan for it
 
3:25 PM
needs node
 
ah
 
for some stupid reason the css parser needs fs
so unless I wanna compile my own version of his lib (which I might do) I'll just have to keep it on the cli
 
well
Its very clever
 
indeed
 
Looking for a quick spot of advice. My team has decided to try an approach of centralizing app config settings by placing a global App.Config file on the network and pointing to it in the local App.Config's appSettings section. The question is, can I create a VS project that just contains App.Configs so we can make it a bit easier to use in TFS?
 
3:33 PM
You could always create a local WCF service for it
provided its actually a local system ofc
 
@Kieran, so would the WCF service just never get released?
I know we could use something like a dummy project that contained the App.Config and have our build defs just copy the config file to the network location.
 
firstordefault default for int is 0?
 
BTW, I know I'm just waxing philosophic here.
 
@BrandenBoucher You could have the WCF service return the values that you need
 
@Kieran. I see what you mean. I actually proposed something like that but people want to use the config manager to grab settings so I still need to have the local app.config contain the settings.
 
3:38 PM
Yes @Bitz
 
Could create a little console app that just generates an app.config and puts it in the correct place
@BrandenBoucher
 
@Kieran, I think that's a great idea
 
@Bitz Default for value types is always 0, and for reference types is always null.
 
hello children
 
daddy?
 
3:46 PM
I'm coming to appreciate set notation more
just mathematical notation, it's very short
 
@Nathvi hey chef
 
I'm cooking up a logger service
Getting rid of race conditions is fun
 
Yeah, martin luther king jr tried but its still a problem in some places /s
 
@RoelvanUden senpai are you daijoubu?
 
4:13 PM
Why the fuck did the new Skype remove the tray icon and how can I get it back?
 
My favorite c# chat Pokémon. Starmie.
 
Kendall, don't be mad bro
 
4:53 PM
@Nathvi are you using NLog?
 
No
Serilog
 
 
1 hour later…
6:08 PM
I assume you're using NLog?
@KendallFrey
 
You asked me if I was using NLog?...
 
I didn't
 
loool
wow
Not sure how I screwed that up
 
6:40 PM
that was supposed to be for @MaxEuwe,
 
7:13 PM
 
did you really register a site in your name just to autoplay Rebecca Black's friday?
 
I don't know what you're talking about
 
its worth it
 
8:01 PM
Laser cannons gmod is life
 
8:38 PM
firefox immediately starts playing yt videon when you open it in a new tab
 
9:11 PM
Anyone know why my email would take 30 minutes from creation to get to a gmail inbox?
oi...friday before a holiday... shoulda known it was just me and the crickets...
 
9:31 PM
@Bardicer how long would you expect it to take?
 
Almost instantly
As usual
Unless the server is retarded
 

« first day (2414 days earlier)      last day (2528 days later) »