« first day (1916 days earlier)      last day (3035 days later) » 

5:00 PM
It's civilised and well thought out
 
@MoonOwl22 we'r dropping this topic for now but read up on how Trump's rallies have gone recently. There's definitely violence there
 
ok
 
if i ever saw trump in real life, i'd kick him right in the coin purse. jail time would be worth it.
 
second that
 
@SteveG The only coin purse Trump has is a literal one
 
5:01 PM
Do you think it is a good exercise to implement all the basic data structures you can find in Introduction to Algorithms?
 
@KendallFrey lol oh snap
 
@MoonOwl22 Yes
@SteveG That's pretty much the sound it made
 
Closed Shop, Opened in Mexico
 
that's true; at least we don't have candidates sending out hits on each other
 
But I need a language that is so minimal
 
5:03 PM
@MoonOwl22 LISP
 
@MoonOwl22 English is the Worst for that
 
I've used Scheme and C in the past but I'm more comfortable with C
 
@MoonOwl22 Haskell is pretty good at implementing a lot of data structures simply
It does have some, like graphs, that it's terrible at.
 
I want to get down to managing their memory as well
That's bad
 
5:04 PM
hmm... what's a good way to parse out duplicate consts in a file
like...
public static const int MyConst = 1234;
public static const int MyConst = 1234;
 
regex
 
Because one of my first was going to be a weighted undirected graph
 
only slightly tongue in cheek
 
@Sidney yes, copy the XML you want to make a data structure and Edit->Paste Special select the type you copied xml/json and it will generate that class, a little fixing usually get the nullable types corrected
 
@KendallFrey he said a GOOD way
Regex is definitely a way, yes
but good?
ehhhhhh
 
5:05 PM
@ShotgunNinja What's a better way?
 
@KendallFrey how do you use a regex to find duplicates?
 
Shouldn't there be compiler warnings for that?
 
@Codeman backreferences, probably
 
@mikeTheLiar no because they're consts. It's just a constant value, there's no relation as far as the compiler is concerned
 
I still haven't bothered to learn regex
I'm such an idiot
 
5:06 PM
@Codeman wait really?
 
Even if they have the same name?
 
@MoonOwl22 it took me 8 years to "bother" to learn
 
@MoonOwl22 Does anyone ever really "learn" Regex?
 
oh sorry, different names
 
@Sidney Yes
 
5:06 PM
why do you need to "learn" regex?
 
public static const int MyConst1 = 1234;
public static const int MyConst2 = 1234;
 
@Codeman Big difference there
 
@tweray because it's a useful tool
 
Yeah, that's important to note
 
i mean, what exactly does it means to "learn" regex?
 
5:07 PM
Same thing as to learn C#, or Haskell
Or Swahili
 
Maybe I just don't like the idea of a write only language. Every regex I've tried to read after the fact takes about 30 minutes to parse.
 
@Codeman so you're just looking for constants with the same value?
 
I saw something to do with pattern matching in regex. Is it necessary to learn pattern matching in F# and friends before doing it in regex
 
@mikeTheLiar yes
 
@Sidney learning regex will change that
 
5:08 PM
there's several hundred so I don't wanna do it by hand
 
It seems people struggle with it. So it must be challenging
 
@MoonOwl22 Uhm, they're different concepts
 
@Codeman entirely understandable
 
@KendallFrey ok
 
5:08 PM
i guess my question is more like "what is it to signal that i 'learned' regex?"
 
What exactly are you referring to by pattern matching in regex?
 
lol
 
@tweray It's a gradual scale
 
@tweray when you write Quake3 using REBEL, you can claim to know regex
 
I've heard people using that phrase while they discussing regex
 
5:09 PM
I suck at regex but I suck less than I used to
 
@Codeman rofl
 
@tweray A good indication is if you can properly write a regex to detect a valid email address without regexr.
 
@Sidney hahaha
Oh wait, you're serious.
Let me laugh even harder. HAHAHAHAHHAHAHAHA
 
=(
 
regex sucks balls, lets just leave it at that
huge balls
like, let me get a picture
brb
 
5:10 PM
@steveg We don't want that picture ಠ_ಠ
 
What are the alternatives to regex?
 
to all stupid put all "Regex" in your asshole
 
stop parsing everything into panini
2
 
so, any ideas for my problem? heh
I don't really like the idea of using a spreadsheet... but I'm heading that way
 
@Codeman I can't really think of a way to automate it. Ctrl-F "const"
Or writing a script that's going to parse the source code and keep a record
Actually... that might work
 
5:13 PM
@Codeman really depends on how exactly the file look like, you can just to regex match per line i assume?
 
@Codeman what about something like /(const.*=\s*(.*);)[\s\S]*(const.*=\s*\2;)/g
you can probably return \2 or make groups for the variable names
 
Again, I suck at regex, but won't that miss variables with numbers/underscores?
 
I suck at regex though so it might not catch many edge cases
 
@MoonOwl22 Depends on what you want it for
@Codeman Seriously, regex seems ok to me
 
@CuddleBunny what would the output of that be?
 
5:16 PM
@CuddleBunny you used, .*, your regex is probably broken
 
hmm, doesn't work with notepad++ regex engine...
 
can only do one at a time because I suck at regex
 
hehehe
 
@Codeman did you include the / ... /g?
 
5:19 PM
I copy pasted it
 
because that's not part of the regex
 
oh neat, seems to work
thanks budday :D
you have saved me from spreadsheet hell
 
np, it could probably be a million times better and automated
 
I'm happy with this
there are not a shitload of dupes, just a shitload of consts
 
const[^=]+=\s*([^\s;]+)\s*;[\s\S]*const[^=]+=\s*\1;
my version
 
5:21 PM
Alex is not just the first named storm for the 2016 calendar year. It's also the first named storm to form in the Atlantic in January since 1978, the first January-born hurricane since 1938
 
a bit more robust, hopefully
 
can you explain what it does?
 
@SteveG fuckin Alex, man
 
each chunk, I mean
 
user47589
it invokes its inner panini
 
5:22 PM
@Codeman Too lazy, ask about specific bits
 
^=
 
"anything but ="
 
well, how can it be the first storm "to form in the Atlantic in january since 1978", and "The first january born hurricane since 1938"
 
@Codeman the regex101.com site has a pretty robust parser/explainer thingy
 
+=\s
 
5:23 PM
+ is one or more, = is =, \s is whitespace
 
like, cnn, you have to have a slight case of retardation
 
@SteveG the first doesn't indicate that it's a hurricane, just a storm
 
@SteveG a hurricane is a storm, but not vice versa
 
be quiet you
 
5:24 PM
if you use regexr.com you can highlight the different parts and it tells you for the most part what it does
 
Hurricane : Storm
 
[^=]+ -> any string that doesn't contain character "=", length must be at least 1
 
Storm : Hurricane
 
what about one to find the largest number in a file?
 
Hurricane : IStorm
@Codeman not a great job for regex
 
5:24 PM
gotcha
 
KendallsMother : KendallsGrandmother
 
I'm pretty well versed in what regex can and can't do re math
 
hehehe
 
@SteveG new YourMom(kendall); // I just injected a dependency!
 
okay, thats funny
 
5:26 PM
and yes, I know that's a dependent, not a dependency, but that wouldn't be funny
 
take the evidence, and hide the dick behind your head, the police are coming
 
I could never hide my dick behind my head
my head is too small
cut to normal programmer discussion
 
it's cold 10
 
Regex.Matches(YourString, "[0-9]+").Cast<Match>().OrderByDescendent(match => match.Value).First().Value;
 
cut to English programmer discussion
 
5:28 PM
Pip pip cheerio
 
nah get the fuck out
bang bang, bang bang
 
@tweray typoed the name, doesn't take into account non-natural or non-int literals, does string sort not numeric sort
@SteveG ohhh say can you see
yes I can see fine why do you ask
 
but it's a single line! any singleline stuff is good!
 
it's part of a song "take the evidence...", i tried finding a youtube video of that part, but when i youtubbed "hide your dick", I got an unpleasant surprise from the video screenshots
 
@tweray That way madness lies
 
5:31 PM
in what context did i say i'm sane lol
 
0
Q: Xamarin Android Player is unable to run API 21 or higher emulators

EminemI'm using Xamarin Studio and Xamarin Android Player on my windows 10 PC. I'm having trouble starting Lollipop/Marshmallow (API 21/23) devices using the XAP, but on the other hand, launching Kitkat (API 19) works prefectly. I've downloaded the required android SDK, tried reinstalling everything...

 
@tweray Hence why REBEL is so good
 
@tweray you're in the same boat as me
 
Cthulhu Fhtagn!
 
Pop quiz: what's the difference between a boat and a ship?
 
5:34 PM
pop quiz: who wants to try some cocaine
 
Ships are exclusive to the ocean?
 
when you don't want ppl mess it up with that lovely animal, use boat
 
@mikeTheLiar No, we have plenty of them on the Great Lakes
 
@mikeTheLiar Indeed, boats don't necessarily float
 
5:37 PM
This word FAQ is awesome
 
what about a motor boat
 
I can now reach heights of pedantry previously only dreamed of
 
@SteveG Not in here please, keep it sfw
 
there was this day, it was the 14th of January, 2016, when this guy, lost all of this fucks
 
!!steve
 
I find the weirdest shit here...
 
That's a trap.
 
which part is weird? just dash in now already!
 
Y U no PC lounge?
 
Hi guys, apologies if this isn't where I should be asking.
I'm trying to use Resharper amongst a team. Specifically I'm trying to share the code cleanup settings.
I have my settings set up perfectly so I'm trying to share them.
Things like the format of a header for each file and placing "this" in front of fields/properties of the current class.
I go to Resharper->Manage Options->Export to File, then I select all the setting and save it to a .DotSettings file
I then transfer the file to a team members pc and go to Resharper->Manage Options->Import from File and select the file. The settings
 
5:51 PM
@RianMostert sounds like something for jetbrains did you look at
 
I should have asked this before posting ... but is a BNF and Grammar Question better to be posted in StackOverflow or Programmers ?
 
yes, I have read and re read that page many times
 
can't get X to work, SO - Does this look like I should be doing it Programmers
 
@Pedram depends what it is, but SO is probably fine
 
Well i went to Programmers to post it , it said , Write your software development Question here ! then SO said write your programming question here xD
so i posted in SO lol
0
Q: Is this BNF Grammar Correct ? can I get LR Table from it?

PedramI had to make a Grammar that can recognize a few rules. It have to recognize these but doesn't limit to them and can have others too : + , - , * , If and while The "if" can have else, but its ok if it doesn't, so for making it easier, I did not include it. Reading a tutorial ( Here ) I made th...

 
5:53 PM
@Codeman: what other awesome rooms are there?
 
@scheien well it's not a room but they have vending machines where you can borrow chargers or tablets or phones for a couple weeks and return them automatically
 
@juanvan, thanks for your time, I have g2g, thanks again
 
@Codeman that's pretty neat. All brands or just MS made?
 
@RianMostert I would think from that setting, the personal one is over writing it, but that is just a guess
 
@scheien iPhones, Android, Nokia, windows phone, etc
 
5:56 PM
So you just took the surface pro then? :)
 
Took it home to 'Test'
 
@KendallFrey ships are given an 'official' name and boats aren't? Ships have a flag registration and boats don't?
</guesses>
 
any idea why

typeof(MyType).GetFields(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)

wouldn't return internal consts?
 
Is a const technically static?
 
shouldn't be
ah, adding static did it
 
6:06 PM
thug life
 
I'm writing a test to make sure duplicates won't happen again
if somebody includes a duplicate in the file, the build will break... mwahahahaha
 
Duplicate what?
 
@Codeman *should be
 
@Pedram your grammar contains left recursion
<sentence> ::= <sub> | <sub> <sentence>
a naive parser will never parse the second alternative
actually that's not left recursion I don't think
 
@juanvan I bought some new cards :)
 
For Modern?
 
@mikeTheLiar: yeah, those changes are fubar.
 
@KendallFrey i just tried to use 3 bits for red, 3 for green,and 2 for blue
unfortunately i dont think it works..
int rgb = (red & 0xE0) >> 5 | (green & 0xE0) >> 3 | (blue & 0xC0) >> 1;
 
0
Q: Xamarin Android Player is unable to run API 21 or higher emulators

EminemI'm using Xamarin Studio and Xamarin Android Player on my windows 10 PC. I'm having trouble starting Lollipop/Marshmallow (API 21/23) devices using the XAP, but on the other hand, launching Kitkat (API 19) works prefectly. I've downloaded the required android SDK, tried reinstalling everything...

 
6:25 PM
@Codeman did a modern event last weekend, got 32 - lost my last 2 hard; what ya building?
 
@juanvan I just got the cards for some things I figure I may wanna build at some point
I got a playset of grove of the burnwillow, liliana of the veil, noble hierarch, and abrupt decay
 
made a Red burn deck for fnm
 
I found a friend who has fetches I can borrow
so I can play most modern decks now
 
$$$ there for the Burnwillos
they at 60 something and going up
 
@tweray never
 
6:28 PM
@Slashy you're shifting green and blue one bit too many
 
@Failsafe what?
 
@tweray Everything can be parsed into panini
 
ok, now tell me how do you parse kendall's mom into panini
 
well theres a lot of stuff already in Asshole<KendallsMom> so im not sure if you can fit anything else in there
 
Panini KendallsMomThePanini;
Panini.TryParse(KendallsMom, out KendallsMomThePanini)
 
6:34 PM
Panini's need to be associated with an asshole
 
@juanvan try $90
 
Glad I did not sell that spare one last week for 50
 
lol
I got a playset for $250
playset of lilis for $315
 
Since they were not reprinted in the Full Art version
 
a single card for $90?
 
6:36 PM
That is a Good price for them
Ya 90$
some lands are 600$ each
and decks require 4
 
lol now i feel my CSM models no longer that expensive
 
MTG?
 
ya
 
anyone want a full shiny sliver deck?
no shitty slivers either
all the good ones
 
Ember vs Angular with a full .Net shop?
 
user47589
6:38 PM
i hate angular
 
Ember because it's two bytes shorter
 
angular2 please, ng1 is dead
 
Why?
Does one work better than the other with .Net?
 
both work with an api?
 
6:39 PM
@juanvan tabernacle is only a 1-of in lands though
 
how you plan to use them?
 
True, but is one superior than the other with integration to VS?
 
not really afaik, not very familiar with ember though
msft used to strongly back ember, but they soon retreated
 
@tweray ???
 
with EF if this is my code, and im getting a bunch of proxy objects (system.data.entity.dynamicproxies)  what am i doing wrong:

            using(LitTrackContext context = new LitTrackContext())
            {
                listBox_MatterTypes.DataSource = context.MatterTypes.ToList();
            }
 
6:41 PM
wtf is ember
!!google ember.js
 
@Failsafe the newest JS Framework
 
newest?
like FOTM?
 
ember is a part of the MEAN stack
 
It isn't the newest, React is newer.
 
6:41 PM
no MEAN is mongo express angular and node
 
it's only New b/c you did not know of it
 
what?
 
You all don't know the newest framework
Oh sorry
 
i'm pretty sure that E is express sir
 
Okay, so the question which would you say is better?
 
6:42 PM
Which is what the sorry was for
The newest framework is so new, it's struggling to be known
 
If Javascript wasn't such a steaming pile of shit we wouldn't even be having this conversation
 
But alas, it was not to be.
 
its an hour
 
and btw, ember is not new, it's at least much older than angular
 
6:43 PM
ya it's aged well
 
Hm, this is important.
 
that video is 10 days old
so its Fresh
..er then most
 
Is it actually good?
 
no clue
 
Sigh...
 
6:45 PM
is it in engligh
?
better question
ok it is
He is a web framework addict
 
I see.
 
ng integration with vs is fine
 
think he drolls' when he says java servlet
 
@juanvan i'm pretty sure all these kind of movies ends the same "I like X more just because i use it. You decide what fit best for you."
 
@tweray yea probs
 
6:49 PM
Trying to figure that out, which is better.
 
"Better" is highly subjective though
 
Well, works better within Microsoft's Visual Studio environment.
 
@tweray would normally agree, but this guy has promise he is over 35 and is taking the time to explain everything including multi context in a page(i think he will)
Better is subjective, if angular gives you intellisense does it win by default?
 
Well I know you didn't mention it but Knockout works just fine with VS
 
angular + typescript + ng.ts file does make me enjoy it a little bit
 
6:51 PM
Back when I was on the web team here it was typescript/knockout
 
@mikeTheLiar Knockout is kind of dying.
 
Oh, is it? I've been off the web team for a while.
 
@mikeTheLiar It appears that way to me.
 
well, all these frameworks are dying. the next era is ng2 and aurelia
 
Do I need ICollection<>s to be of type virtual with EF?
public virtual ICollection<Matter> Matters { get; set; }
 
6:52 PM
@tweray Why do you say that?
 
ng2 and aurelia do beat all existing frameworks on almost all meters
with pollyfill you will find javascript no longer such a pain to deal with
 
@Michael to construct the object, so you don't get null in a item that does not exist in the corresponding relationship
 
@tweray How does it interact with WebApi?
 
@Greg almost the same way as it is right now
 
Hm.
 
6:55 PM
@juanvan I dont quite understand that?
 
Why is it so unknown?
 
what? who is unknown?
 
@juanvan I just discovered that the virtual keyword makes EF use proxy objects and if I take it away, my POCO objects are there.
 
user47589
virtual allows EF to do lazy loading
 
@tweray That framework.
 
6:56 PM
Create the object when it's need?
or even if it does not exits
 
user47589
if you dont want lazy loading, dont use the virtual keyword
 
40
Q: Entity Framework 4.1 Virtual Properties

Pankaj UpadhyayIf i have declared entity relationship in my model as virtual then there is no need to use the Include statement in my LINQ query, right ??- For ex: This is my model class : public class Brand { public int BrandID { get; set; } public string BrandName { get; set; } public string Bra...

 
@Greg well, angular2 has been in pretty high profile, yet aurelia is a little bit more low profile, but they are "unknown" mainly because they are both in alpha/beta stage, so less people have already spend time studying them
 
user47589
you can also disable lazy loading in your dbcontext.
 
Hm.
 
6:58 PM
But all navication property have to be virtual, even if you disable Lazy Loading in the context?
 
user47589
navigation properties dont have to be virtual
 
ok
@Greg still watching that video?
 
@Michael yes, under the hood EF actually inherit from your pocos
 
@Amy I see that. Lazy loading seems like a fine feature.. I dont really WANT to disable it.
 
fuck
Tried to launch NP++ as admin, BSOD
wtf
 

« first day (1916 days earlier)      last day (3035 days later) »