« first day (2027 days earlier)      last day (2904 days later) » 

4:00 PM
@Amy I've done an updater for the companies program but they requested me an addition 4 DLLS to comunicate with the data base, and in one of the I need to parse the sql commands
 
!!tell jawad msdn null coalescing operator
 
@jawad Something went on fire; status 403
 
asdiojfapsdi;ojf;eklaj
 
lol why?
 
user47589
@Mr.Toxy that doesn't answer the question. why are you parsing sql? just send the sql to the database engine. it knows how to read sql
 
4:00 PM
hahah my code broke the github
 
@Sippy I think the problem is that Google underlies all these commands
 
Quite.
 
it's still there bro
 
!!msdn null
 
@mikeTheLiar Something went on fire; status 403
 
4:01 PM
@CapricaSix
 
@Amy yes if it has the PARSE ONLY enabled, they requested me to do it this way T.T
 
return isCustomerArchived ? FetchFromArchives : (FetchFromExternal ?? FetchFromCache);
Does that rub anyone else the wrong way
 
@Jawad the github ... lol
 
user47589
it doesn't rub me the right way
 
Guys, so yesterday's linq query was wrong and umm... I thought about putting in pseudocode/semi-C# and then translating it to linq
If(offerEndDate < DateTime.Now where number of days past since EndDate is greater than 2).RemoveAll(those offers)
 
4:02 PM
Im not sure if ReGex is the best way to do it
 
This is what I want to do
 
@CapricaSix still messed up huh
 
but it was what I ended up with
 
@Mr.Toxy regex is always the right way
 
user47589
I don't think SQL is a regular language, so regex is not the way to go.
 
4:03 PM
@Sippy Tsql120 wound be better for this? But I dont know how to use it, and stuff I found about it are relly dull
 
Regex is expensive
 
@KalaJ Where(!(endDate < DateTime.Now.AddDays(2))
 
@Amy have you got something in mind?
 
user47589
@Mr.Toxy an actual tokenizer/lexer.
 
user47589
or use a library that does the parse correctly.
 
4:05 PM
@Amy thre is something called Tsql120 but it doesnt do it directly and I would have to check for all differente clauses like a huge switch case to see if it's a WHERE or an ORDER BY
 
tl;dr don't use regex
 
@mikeTheLiar I cant use third party stuff
well
I can actually
 
ily
 
user47589
orly
 
What the fuck is tsql120
 
4:06 PM
the next TSQL level
 
@Sippy some libary in vs
 
it's an improvement from tsql119, duh
 
user47589
its not some library in "vs"
 
Steven you're a pleb.
 
lmao
 
@Sippy it's over 119
 
what, 119?!!
 
yeah its a parser but an horrible parser as I find by some comments on SO
any other solution?
 
why would you even need a parser?
what are you trying to do?
 
my guess would be to parse
im such a dick today
 
4:10 PM
they suggested me to read the file line by line and create flags for when i entered a comments an left a comment, but reading line by line.... I dont think is the best solution for this, not even remotly
 
sure, but I've never encountered a situation which required me to parse SQL
 
@Sippy Not as much as Steven Reed
 
@SteveG such a pleb today
 
!!urban pleb
 
@SteveG [pleb](http://pleb.urbanup.com/500218) Actually defined as a member of a despised social class, a commoner, a member of the plebs of ancient Rome. Also low-born, undisinguished, vulgar, and my personal favourite: vulgar-looking.

Other words with similar meaning: Scrut, Townie, Kappa-Slapper, Rude-Boi, Scum, Greb, Scav, &c.
 
4:10 PM
@Squiggle I need to parse the commands from a txt file to execute them later
 
@Squiggle well you've read SQL I'm assuming
 
> kappa-slapper
 
lol
 
@Squiggle see the file here gist.github.com/MrToxy/c7fd17d21c348e41247bd2fabdbfd20d under the function
 
@Mr.Toxy why the fuck do you need to parse the sql in order to do that?
 
4:11 PM
@Mr.Toxy so you're trying to find the delimiters between multiple SQL statements?
 
!!urban kappa-slapper
 
@SteveG Kappa Slapper Female equivalent of the Nike Pikey. Found all over the British Isles usually congregating in large groups at bus stops and parks. Dresses in sportswear (not just Kappa) drinks cheap cider or supermarket vodka. Constantly smoking fags. Chav scum.
 
Let the database parse that shit like it's supposed to
 
@mikeTheLiar cause they said to do so. Im just an intern I can't ask why, Im just a pleb here
My only right is to work 8h a day
 
Didn't we do this urban pleb chain thing earlier?
 
4:12 PM
idk
 
@Mr.Toxy I'd suggest the person or tool that creates those scripts sticks a GO statement between the commands. That's the standard approach.
 
so if I divide the commands by a delimiter in this case '/' the database will igore all comments?
 
used exactly for this purpose - the batching of statements inside a script
 
@mikeTheLiar Can't compare List<Datetime> with DateTime :/
 
wat
 
4:14 PM
@Squiggle I think that was done by hand and the guy whos in charge of me delimitated each command by "/"
 
@KalaJ code pls
 
you cant compare a list like taht
 
        var cutoff = DateTime.Now.AddDays(2);
        var allOffers = AppState.CurrentMemberSelectedOffersAll.AsEnumerable();
        var endDate = allOffers.Select(x => x.EndDate).ToList();
        var offersToShow = allOffers.Where(!(endDate < cutoff)).ToList();
 
you have to do something like List[idx].something = Datetime.something
my beard is irritated fuck
 
@KalaJ allOffers.Select(x => x.EndDate).ToList(); you're only selecting the date. You need to filter it ahead of time.
 
4:17 PM
i hate how i burn my vacation days as soon as i get them
 
@SteveG Wanna know a trick to stop doing that?
 
yeah
teach me
 
this is such a wonderful moment
 
@Mr.Toxy File.ReadAllText().Split("///r/n") or similar
 
@SteveG me too
 
4:19 PM
@TomW I have the regex to split and stuff
 
Read the whole file and split it by / followed by newline. You are however trusting manually entered sql
 
next time i get a raise, i'll just tell them to keep the raise and give me more vacay days
 
I think that it's working properly
@TomW that's exactly the problem.
 
What is?
 
does anyone know how to use something like ANTLR on visual studio?
 
4:20 PM
@KalaJ var offersToShow = AppState.CurrentMemberSelectedOffersAll.Where(i => i.EndDate < cutoff).ToList();
 
@TomW that it was manually written XD I cant imagine what's in there. I just need to exclude the comments /**/ and -- even if they are in the middle of the statement
 
@Amy
 
@Mr.Toxy I havent scrolled up far enough to know why you're talking about parsing
Why?
 
@TomW they asked me to do a DLL to parse the commands on the document to later execute
 
@TomW yup me too ... not even sure I want to get in to that conversation
 
4:22 PM
@Darth_Wardy you and your name changes
 
it wasn't me ... the force did it (aka peer pressure) ... (aka mostly @Amy) ... ok it was me
 
@Mr.Toxy parse to what?
 
@TomW to an array of commands XDDD
 
i'm going to steal your name, your image, and just go around being nice to everybody, nobody will know what to do
 
@Darth_Wardy Amy wanted Darth_Wadry
Not Wardy
You have failed us for the last time.
 
4:23 PM
nooooooo
 
@Darth_Wardy why XD? is parsing SQL that bad?
 
@Sippy lmfao
 
@Mr.Toxy a command is a string. SQL commands can contain comments. Done.
 
@Mr.Toxy why are you parsing SQL ?
that screams bad architecture
 
@Darth_Wardy I don't think he is
 
4:23 PM
@SteveG as if you could be nice to everybody
 
cmon now, i'm not that much of a dick, am i?
 
yes.
 
no comment
 
oh, well
i'll work on being nicer
 
you make kendall cry daily.
 
4:24 PM
I regularly get told i'm arrogant or an ass or some other variant
 
@Darth_Wardy they handed me a document with sql commands divided by "/" they asked me to parse it, ignoring the comments such as /**/ and -- and than send the array of commands to another DLL to execute them
 
I figured that was a requirement in here
 
I don't think anyone in here is arrogant
That's the C++ room
 
i am
 
@SteveG you've hurted my feelings back there
 
4:25 PM
No you aren't
You're a pleb and you know it
 
so is wardy
 
@Mr.Toxy just send the original string as is
 
@Mr.Toxy but why?
 
if its valid it'll work
@SteveG who is Wardy ? ... that guy sounds like an ass
 
@TomW why? why what? xD
 
4:25 PM
@Darth_Wardy For some it might.
 
he's this asshole who used to come by
 
@Mr.Toxy Suttin' stinks.
 
he's gone now, so don't worry about it ;)
 
What is the purpose of 'ignoring' comments? By which I assume you mean removing them
 
jk
 
4:26 PM
@SteveG ah that's alright then
 
@TomW yes removing them
 
@Mr.Toxy no valid reason to do so. They're part of the language
Don't do something that's stupid just because someone told you to
4
 
@TomW so you're saying that there's no problem to send the commands to the database as they are?
 
Use your initiative
@Mr.Toxy if they're valid
 
@TomW im just an intern I can't say much
 
4:27 PM
@Mr.Toxy says who
 
@TomW what am I exactly gonna tell him? well I can say that the commands can be send like this and that the database will process them
 
i had a guy in an interview tell me i will shut up for the first few months
 
@TomW solid life advice
 
You need to ask why they wanted you to do it in exactly this way and explain what the problems are
 
needless to say, i walked out of that shit
 
4:29 PM
@TomW yes maybe you're right. I will adress the situation tomorrow
 
I am 99% certain whoever set this task expected you to use your initiative and figure out a way to do it correctly
 
@Mr.Toxy you should address everything asap, don't wait
 
user47589
Yes
 
@SteveG wat
 
@TomW the way he told me after I did it on my own using regex as well was to read the document line by line
 
4:30 PM
@Amy nothing, just missed your sass
 
sassy pony
 
@SteveG I can't he's not here and I'm leaving in 30 min
 
her "sass"
 
shutup mike u aint got no sass
 
i knew people would take "sass" the wrong way after i sent it, i really meant sass
lol
 
4:31 PM
@SteveG actually I read ass instead of sass
*I've read it
 
@Mr.Toxy but SQL statements can be over multiple lines. Any given line is quite likely not to be a valid statement, so what he said doesn't make any sense
 
Can I use the eventhandler FileSystemWatcher safely on a FTP server? IE will the changed event be able to check if the files on the FTP server are more recent than the local files? (Sorry if my explanation is bad. I'm still learning C#)
 
@TomW yes if you check this link gist.github.com/MrToxy/c7fd17d21c348e41247bd2fabdbfd20d with the function I made and below the document he give me, there are several multiline statements
 
@Amy don't ignore me, i was being friendly
 
user47589
Eating
 
4:33 PM
wow thats the best part of the day
Bon Appetite madame
 
i just got done stuffing my food hole
 
srry for my bad fraciu
I wish I had a chocolate croissant waiting for me when I got home
 
that sounds good
 
hey guys
 
i was talking to a girl for a couple months, i'm almost convinced she likes me for my money, so i'm dropping that faster than <some kendall mom joke>
 
4:35 PM
@SteveG hahahahaha that was a good one... but is that true?
 
@EricWu hey dude
 
yea
 
@juanvan, always nice to see you around
 
Oh shit Kasich just dropped out too
 
did he?
 
4:36 PM
@SteveG oh sorry to hear that T.T fucking gold diggers
 
he's the only republican i could stand
 
Always nice to be here :)
 
@mikeTheLiar, stop joking
no cruz, no kasich, no bush
 
That's it. Trump's the only one left standing.
 
4:37 PM
wonder who the reps will pick
 
trump can't win
 
what about that neuro? forgot his name
 
did you hear john mccain is switching to a democrat, along with a bunch of others?
 
lolWUT
 
like, changing their affiliation
yep
 
4:37 PM
@SteveG lol bs you broke as
 
@SteveG next time dress like a hobo and dont tell her you're rich. If she lieks you it's for real
@TomW hahahahaha
 
@TomW lol taking standard of living into consideration, i probably make more than you, because i'm also 60% VA disabled
 
Wondering
 
which is tax freeee
 
VA?
 
4:38 PM
veterans affairs
 
so, here's a trivia for you guys
 
oh you're a war vet
 
yep
 
@Darth_Wardy, I can't do that... I think actually the cutoff code is wrong
 
would you rather use sql server's linked server or c#based integration between two servers?
 
4:39 PM
can I ask where have you been?
 
iraq twice
 
@EricWu to do replication?
 
var cutoff = DateTime.Now.AddDays(2);
var offersToShow = AppState.CurrentMemberSelectedOffersAll.Where(i => i.EndDate < cutoff).ToList();
 
no... calling rpc's to do some ETL stuff
 
@SteveG before or after spending all your money on a jeep?
 
4:40 PM
@SteveG well havent been there but I saw battleground Brothers
 
I think this is still wrong in terms of what I want to do
 
@KalaJ what's wrong with that?
 
@TomW oh, i spend all my money on take out, i get ihop twice a weekend, maybe some apple bees too
 
the offers should be showing up if the date is 6/30/2016 for example
 
rather have SQL linked to do that I think - let them mirror each other
 
4:40 PM
i'm extremely unhealthy
 
and the offers should show up if the date is 5/5/2016
if the offer expires on 5/4/2016
 
@SteveG I do have friend of mine who was there, but with the portuguese commandos
 
you're 10000x better at managing $
 
@juanvan they have different data and do different things
 
I just want to filter out offers with expiration date past 2 days from expired date
 
4:41 PM
Oh so it would be if ETL is A SeverA else Server B
 
@KalaJ your words say one thing and your examples say another
 
money really doesn't mean much to me, give me a shack, a laptop, and internet, and i'm a happy camper, all the other stuff is just fluff
 
my head hurts
20 min to go
 
meaningless shit
 
@SteveG but do you programm for a living now or it's just a hobbie?
 
4:42 PM
living
 
oh cool
 
@juanvan no no... server A has the transformed data, server B is the target
 
ah ok
 
Im assuming you're 30 something years old XD it looks that way, or maybe 20´s (wondering)
 
i just dinged 30
 
4:43 PM
@EricWu if you are using SSIS use C# instead
 
@KalaJ oh god you're one of them
 
yey yey I almost got it right xD
 
why do people like to format dates all wrong
 
what made you got to Iraque good sir?
 
what is the right way?
 
4:44 PM
dd/mm/yyyy
 
30s are pretty good. Money to do the stuff you wanted to do in your 20s, plus giving 0 fucks
 
I guess
 
@juanvan I'm not
 
@Mr.Toxy that or the reverse
but NEVER yyyy dd MM
what's all that crap about ?
bloody broken muricans
 
@juanvan the issue I'm having is that using linked servers, the time it takes to load 30k rows jumped from 15 minutes to 2 hours
 
4:45 PM
@Darth_Wardy yup, but you almost see it that way everytime
 
@juanvan not particularly performatic
 
@EricWu that screams something is wrong
 
@EricWu I see - as you do the ETL going back and forth is taking too long
 
@juanvan yep
 
@EricWu cross server querying ... wow you bad ass (as in ... bad, don't do that, ever)
 
4:46 PM
@EricWu funny I am having a problem where 1 project takes 10mins to run and the same query with another part of the project takes 30 mins
on the same sever, but trying to figure out how to speed it up
 
@Darth_Wardy americans rule the world, so shouldn't you follow your master?
 
@EricWu could it be faster if you never closed the db connection?
 
@SteveG but i rule the Death Star mk3
 
@Mr.Toxy aye, I thought something was up
@juanvan how so?
 
@Darth_Wardy hmmph. you win.
 
4:48 PM
This is not the date format you are looking for yyyy dd MM
 
Open Connection Server A - Open Connection Server B - Do all the work - Close the connections
 
haha i like your name, and how you play the part
 
This is also not the date format you are looking for MM dd yyyy
 
everytime you open a connection it is a task
 
@Darth_Wardy listen to my words
 
4:49 PM
if its async sure
 
I'm sorry
 
@KalaJ ok speak ... im gonna try but i have headphones in and you're really far away
are you talking ?
I cant hear you ?
 
@juanvan aye, but all the rpc call are done inside a stored procedure in server A
 
wait i'll pause my tunes
ok try now
 
haven't heard any music yet the whole day. I must getting sick :o
 
4:50 PM
Should be able to run multi SP on one connection?
 
@Darth_WardyI want to grab all offers that are not yet expired OR if they are expired, still grab them if they're expired less than 2 days since their expired date
 
Even with the help of the force i'm struggling to hear you @KalaJ
 
@KalaJ OR, not AND
 
the force fails at reading
 
@KalaJ ok so all stuff where expiry == now + 2 days
 
4:51 PM
@Darth_Wardy - 2 days
and >
 
well by guys
 
kbye
 
@juanvan I'm not sure I follow
 
thx for the help
c ya tomorrow
 
you're welcome
 
4:51 PM
var cutoff = DateTime.Now.AddDays(-2);
var offersToShow = AppState.CurrentMemberSelectedOffersAll.Where(i => i.EndDate > cutoff).ToList();
@SteveG the force is strong with you
come to the dark side
the perks are great
 
@EricWu the store procedures taking too long?
 
you get your own death star
 
ok
 
@juanvan yep
 
Thanks Darth. I'll give it a go
 
4:53 PM
you just have to be ... well ... normal for you ... but for anyone else a total ass
 
@EricWu can you index any of the tables?
 
@juanvan did that already
 
but shhh ... don't let everyone know
 
i love everybody, flowers and doughnuts for all
 
@SteveG uh yeh that's it ... but throw in some "i am your father" every now and then
 
4:54 PM
@EricWu how long does 1 SP take in the SQL manager to run?
 
but, what if i really am your father?
im going to go vape
 
user47589
have fun
 
@SteveG true evil, since i am spawn of satan (so im told)
 
user47589
has satan taken a paternity test?
 
@juanvan roughly 0.45s
 
4:59 PM
why the hell can I never remember the right order for DATEDIFF?
 
user47589
I sneak into your room every night and wipe certain memories.
 

« first day (2027 days earlier)      last day (2904 days later) »