« first day (958 days earlier)      last day (3977 days later) » 

12:02 AM
0
A: When using multiple WHEN MATCHED statements, do they all execute, or does only one get executed?

Pheonixblade9I found in the MSDN documentation: WHEN MATCHED THEN Specifies that all rows of target_table that match the rows returned by ON , and satisfy any additional search condition, are either updated or deleted according to the clause. The MERGE statement can have at most two WHEN MATC...

OH DID YOU NOW
 
lol
 
@drch lol actually our architect found the same article
</justfuckinggoogleit>
 
somewhat relevant
3 hours ago, by Bob
I got bored and made this generic parody question http://i.imgur.com/dOLkgVR.png
thats the first ive ever heard of the merge statement in sql
if you cant do it with select, from, and join i dont wanna hear about it
after this next contract is up, one of my interview questions is going to be do you use stored procedures, and if its a yes, im walkin.
such a nightmare
 
amen
 
12:15 AM
@AmberRoxanna who are you?
 
@drch lol we use a shitload of sprocs
but we use them as methods, not as little tiny things
sprocs aren't too bad. they are a major PITA to debug.
also we have sprocs which take several minutes to run :)
 
yeah, thats defiinitely not my cup of tea
 
well
I didn't know SQL when I started working here a year ago
now I'm doing performance tuning lol
 
 
2 hours later…
1:53 AM
I'm getting better at this. I simplified 1/(1+sin(atan(x))^2/cos(atan(x))^2) to 1/(1+x^2)
 
2:11 AM
anyone here knows how to rename .dll file?
 
rename?
 
yes sir
 
As in the way you rename all files, or? I feel it isn't, but...
 
renaming .dll file same as its component in usercontrol
 
Not sure. Sorry.
 
2:22 AM
the time i change its properties it comes out with an error could not load type 'user' from assembly 'namespace, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
 
3:21 AM
anyone here knows how to uninstall advance installer?
 
 
3 hours later…
6:49 AM
Hi, y'all. in c#, what does (a = b) returns
let's say a and b are ints
 
Assign b to a.
(You know, like any other sane language :P)
 
hi
can someone pls help me with this stackoverflow.com/questions/16851382/…
 
no but I mean what does it return? in c for example a = b returns 1 of the assignment was successful which is always is
I would like it to return b (or a after the assignment)
 
a, after the assignment
 
So I could do if ((a = b) == 1)
 
6:56 AM
Yes.
 
or: if (File.exist(myFile = @"c:\temp.tmp"))
 
I don't know if that one actually works.
if ((myFile = @"C:\temp.tmp") != null && File.Exists(myFile))
That would work for sure.
 
ahaa ok
hmm that actually didn't work... Operator '&&' cannot be applied to operands of type 'string' and 'bool'
that implies that myFile = @"C:\temp.tmp" actually returns a string...
 
7:15 AM
my example actually did work... almost unexpected :)
 
hi @RoelvanUden
 
@Markus Hence the != null in my example :P
@shankar.parsanamoni Hi :-)
@Markus Oh nice :D
 
anybody wants any thing regardin c#
 
@asifa what is it that you want to do? do you just want an save dialog window?
 
8:11 AM
Hello
Anybody
?
 
0
Q: Error While adding reference to lpssl.dll in asp.net?

ramanOne of my website is in framework 1.1 and its using first data payment gateway. we are migrating our servers and after migration purchase functionality has stopped working. now i am creating a test application with the same code of one page "the final purchase code" so that i could recognize the ...

please help
 
i need help
any geek?
@RoelvanUden @RyanTernier @KendallFrey ^^?
 
8:34 AM
Morning
 
morning
 
how can i set default value for a comboBox using properties
i can't beleive visual studio doesn't let me do such a small thing
 
in WPF ?
 
windows forms
 
I dont know
:)))
 
8:37 AM
any geek?
 
user1645826
Hi all, question for you all, is it possibble to configure an application to take a specific path through servers? i know you can tell it to use one proxy server, but is there any way to chain it? E.g go to proxy A and use this to get to Proxy B?

(Dont ask, permissions for the servers are all ridiculous so only certain servers can get places)
 
i almost forgot @codebrain and @Sean but theyre arrent here :/
 
9:14 AM
what does a .GetFragment means?
 
9:27 AM
hi folks
@Billdr my DNS issues are over (just had to be patient). How was your 'neck deep' experience
 
whats the regex expression to get text inside a quotation? i already tried answers here: stackoverflow.com/questions/16483043/… but seems not work to me :/ anyone?
i want to get the text inside quotation

sample: "asdasdasdasd" i want to get asdasdasdasd
 
@Elegiac it's an answer by @KendallFrey, how can it not work
what's your string and your result?
 
@Elegiac "(.*)"
 
9:46 AM
@ActionHank @RoelvanUden i use this code:
string hoveredWord = r.GetFragment("\"([^\"]*)\"").Text;
 
What the hell is r, GetFragment and Text?
 
no sorry
 
oh wow
 
string hoveredWord = r.GetFragment("[a-zA-Z]").Text;
this
function was on tooltip
when i hover a word then tooltip will appear
 
I have no idea what you are saying or asking.
 
9:47 AM
problem now was it doesnt work on symbol .specifically on text inside quotation
@RoelvanUden the code above was for tooltip
a-z blahblah was for me to hover a word tooltip will appear
but if symbol not:/ thats my problem
i want to hover a word inside quotation something like 'text'
then specific tooltip will appear
something like this sir:
foreach (Match tooltipmatch in singlequote.Matches(e.HoveredWord)) //ntw
{
e.ToolTipText = "Represents text as a series of Unicode characters.";
}
foreach (Match tooltipmatch in doublequote.Matches(e.HoveredWord)) //ntw
{
e.ToolTipText = "Represents text as a series of Unicode characters.";
}
Regex singlequote = new Regex("\'[^\"]*\'"); //ntw
Regex doublequote = new Regex("\"[^\"]*\""); //ntw
but quotation not working on: ("[a-zA-Z]")
so thats my prob :/ sorry formyenglish is bad
 
...
You asked for a regular expression to match text inside quotes. I did that. It's done for me.
 
how?
 
11 mins ago, by Roel van Uden
@Elegiac "(.*)"
 
wat sir?
or anything to hoverwill work
even word or symbol
i tried r.Text but didnt work lol
 
We don't know what you mean by 'hover' 'tooltip' 'r.Text'
 
9:54 AM
This is going to sound extremely rude, however being Dutch I am allowed to sound like that. Perhaps you should start learning and applying that learned content to your problem solving capabilities?
 
Dutchies: the inventors of the high five, in the face, with a chair.
 
Haha :-D
 
thats the same thing a boss here told me :/
to learn c# lol
 
Wise man/woman.
 
@Elegiac your boss might be right
 
9:56 AM
thats why im here i want to learn c#
tahaha
 
hey, we are happy to help. But you have to form your questions in a more specific way. We do not understand what you want to learn
yeah, C#, obviously
 
its kinda hard to explain
ok something like this
 
Try me/us
 
i have 2different tooltips
 
hold on
tooltips. so you're designing an interface?
winforms, wpf, or asp.net?
 
9:58 AM
3actually, but 2tooltip was for words (keywords and events) and 1tooltip was for the word inside a quotation
winforms sir
 
stop calling me sir
 
tell me if my word above was confusing or no
 
sorry sir
 
sorry sir
 
you have 3 tooltips
 
9:59 AM
yeah
 
they hover above what exactly?
 
a word
inside a richtextbox
 
like, a label?
oh
right
 
no typing text
like in actual code-editor
 
yeah I get it
 
10:00 AM
thats it sir
noW im already done with tooltip for keywordand event
since they are compose of word only
 
woah wait
tooltip for keyword, tooltip for event?
explain plz
 
yep
 
whats a 'tooltip for keyword'
 
Regex keywords = new Regex(@"\b(abstract|as|base|bool| ---tooltip for keywords
Regex events = new Regex(@"\b(AcceptRejectRule|AccessibleEvents|AccessibleNavigation| ---tooltip for events
c#
with a separate highlighting function ...
 
you are building a rich text editor for writing c# code, aren't you? :P
 
10:02 AM
yep
like what ive said like in actual visual studio code-editor
 
yeah, your wording is confusing me
 
you understand it sir?
 
so you scan the text with 3 regexes?
 
sorry my english is bad
yeah ...
 
ah okay
 
10:03 AM
so this is the 4th 1:
Regex singlequote = new Regex("\'[^\"]*\'"); --- regex for singlequotation
function of that should be when i hover a text inside ' ' assigned tooltip for singlequote will appear
 
do you want to highlight single quotes and dual qoutes separately?
 
something like this:
foreach (Match tooltipmatch in singlequote.Matches(e.HoveredWord)) //ntw
{
e.ToolTipText = "Represents text as a series of Unicode characters.";
}
its 4actually :) keyword, event, singlequote and doublequote .so for now im done with keyword and event
 
yeah okay, so you want to match them separately
 
yeah
like this sir:
if (!string.IsNullOrEmpty(e.HoveredWord))
{
foreach (Match tooltipmatch in keywords.Matches(e.HoveredWord))
{
e.ToolTipTitle = e.HoveredWord;
e.ToolTipText = "this is a keyword" + " " + "\n" + "<)( IDE ToolTip)(>";
}
foreach (Match tooltipmatch in events.Matches(e.HoveredWord))
{
e.ToolTipTitle = e.HoveredWord;
e.ToolTipText = "this is an event" + " " + "\n" + "<)( IDE ToolTip)(>";
}
foreach (Match tooltipmatch in singlequote.Matches(e.HoveredWord)) //ntw
{
e.ToolTipText = "Represents text as a series of Unicode characters.";
 
well as @roelvanuden stated the regex should be "(.*)" for dual quotes and '(.*)' for single quotes
brb I need to do a standup
 
10:06 AM
@RoelvanUden --- sorry for not responding i thought this is a smiley lol "(.*)"
T_T
 
10:23 AM
Hah.
Also, you might want to use an existing code editor.
2
 
:/
i already did :( and i feel like im doing a crime
I COPY WRITE '( !!!
and just add my noobcodes in there
 
no9
hello
0
Q: ASP.NET web application not working in IE10

no9Regards. I have noticed that ASP.NET web application is not working in IE10. Grid items are not click-able and several other jscript features do not work. I have been digging into this and i found out that ASP.NET fails to detect IE10 causing _doPostBack. Now before i start digging into the pro...

I know this is not C# specific (it is a C# ASP.NET app) but this really bugs me
if any one has some thought regarding this please share with me
 
Hello to all.

I am getting attribute value from HTML.
& trying to replace the value with some other value.

After replacing i am loading that html file,
But it is showing with previous value...

waiting for ur reply
 
@kumar Context
 
no9
10:47 AM
kumar you are trying to replace html content and then reload it with changed content in ASP.NET?
 
@RoelvanUden, @no9
i forget to to mention.
i am loading local html file.
 
Wow, it's like people are making it intentionally hard to answer questions.
 
@RoelvanUden
hey,just give me an idea
actually i didn't expect this much of fast reply,
whenever i try to ask a doudt, it will take some time.
may be that's the reason i forgot
 
11:12 AM
lolz
$(element).html(otherElement)
done! next customer
 
11:30 AM
lol drch
 
11:49 AM
I'm starting the day with php and regexps. I just know it's going to be a great day.
 
and that on a friday
 
:(
 
hey look its @codebrain
@Billdr I started the day with a dent in my rear bumper (of my car that is)
 
Lies
 
no note on the windscreen
 
11:57 AM
pop quiz. can .ToLookup<> accept a null key?
 
You say windscreen and I think
 
@drch .ToLookup<>? educate me
 
blocked
 
11:58 AM
Depeche Mode, "Fly on the Windscreen."
Andre, what it is
 
Dre sup
 
:D
I'm upset today :(
My zippo lighter broke and I have no tools to fixed here at work. :(
 
Too many women and not enough time?
Oh, that. Bic: $1.19 and if they break you're not sad.
 
Nah I'm happy with my two women.
But I like my zippo. I feel so boss with my tuxedo and lightning my cigar on fire using my zippo
 
You're smoking cigars now? Bom!
Also, not an appropriate application of a bic lighter.
 
12:01 PM
o.o I always smoked.
I've been smoking for 3 or 4 years now.
 
I thought you smoked cigarettes.
 
I QUIT SMOKING :)
and its friday! yesss!
 
Aaaaand that is why I hate english
 
grats Steve! I haven't had a cigarette since November.
 
btw yes tolookup can handle null keys
 
12:02 PM
i quit for about a month now
 
In portuguese Cigarros = Cigarettes
 
thanks for nothing jerks
 
and congrats to you!
 
While Charutos = Cigars
 
And cigars are charutos?
woo!
I even spelled it right
 
12:03 PM
I meant cigarettes
 
lmao
 
Cigars are too expensive
 
i don't like cigars
 
Not if you buy domestic. Brazil has a few nice sticks.
 
But the cheap ones are not that nice.
 
12:04 PM
I just signed in and my boss sigh-nd in. huh, dumping one more work for this day :P :\ brb
 
Angelina. I got drunk and played cards with the guy who runs that.
 
Oh man.. I have to do some socketing today.
 
He took all my money, alls I got was a box of crappy mini-cigars.
 
I just signed in and my boss sigh-nd in. huh, dumping one more work for this day :P :\ brb
 
dumping one more work?
 
12:07 PM
he's going to the bathroom I suppose
 
idk
 
How does anyone manage to take a dump at work ?
I, sincerely, can't take a dump anywhere else than my home.
 
YES!
 
Whaaa ?
 
Regex worked on the first try, and it only took me 30 minutes to figure out which method in php does what I want with that regex.
 
12:10 PM
Hahaha
 
yes billdr. its a bad day.
 
Andre convinced me to smoke a cigar when I get home. That'll make me feel better.
 
I suggest you do the same.
 
NO
NO
YOU WON'T SMOKE
 
12:13 PM
I will smoke. I've got a hemmingway in there that's going to be very tasty.
 
:)
 
You said you didn't smoke since november..
 
I never said I quit smoking cigars. I quit cigarettes.
The odds of getting cancer from 1-2 cigars/week? virtually none. The smell of a cigar? pleasant. Why would I quit them?
 
Ah, sorry. English fault again
 
12:16 PM
cigar-ettes, ette being the french suffix for "little"
 
So french's fault ?
 
I don't know if we got the word from them or not.
 
Come on, I got to blame someone for my mistakes..
 
I know it's their suffix.
 
Yep, cigarette is french
I know that because of google translate and stuff
And Cigar is cigare in french whaa
 
12:18 PM
gare, on the other hand, is train station in French
 
Cool. A french name for a spanish product stolen from the native Americans.
 
That is well made by cubans :D
 
and boycotted by the US
 
boycotted?
 
I've smoked 5 cuban cigars. None of them were better than the equivalent Dominican Republic stick.
The use has a trade embargo against Cuba. The only thing Cuba exports that's worth a damn is their cigars. Possibly their rum.
 
12:21 PM
So, we concluded that Cigar is a french name for a spanish product stolen from native Americans that is well made by cubans and dominicans and well smoked by english men.
We must contact oxford !
 
still do have a trade embargo pretty sure
 
With the Castro family dying there's a fair chance that those embargos will be lifted. There'll be a surge in cuban sales in the US, then the "forbidden fruit" factor will ware out and we'll all go back to smoking Vaje and Artero Fluenta sp
 
@Billdr lmao +1
 
that parody question on the starred list is hillarious
 
I can't see it :( Imgur is blocked here
 
12:25 PM
hello @VytautasMackonis
 
should I rehost it for you?
 
@polkduran
 
I would love it if you would.
 
google drive it is
 
Yey o/
 
12:26 PM
you can make stuff in your google drive public? or is it by default?
 
You can set it to public
same with dropbox.
 
i did not know that, interesting
 
@Steve hello back
 
:)
 
12:28 PM
Haha, that is so accurate.
 
You haven't lived in the future until you and a friend work on a google word processing document simultaneously.
 
Aaand I hear people yelling my name. Be right back.
 
@Billdr We did that at school. There were about 10-20 students editing at once.
 
@KendallFrey that sounds like a bad idea lmao
and GOOD MORNING BROTHER
 
Naw Steve, it's awesome. Also, morning Kendall
 
12:33 PM
@Steve It was tremendous fun.
ROFL:
If you like oscillating between feeling like the stupidest person on earth and a fucking genius, you’ll love coding.
3
 
I have just noticed the "Anonymous Animals in Google Drive" googlesystem.blogspot.fr/2013/04/…
 
@KendallFrey lmao
 
lol whut
@Steve @Billdr and possibly @KendallFrey: docs.google.com/document/d/…
 
What the hail is "pumpkin (sic!)" supposed to mean?
 
Aaand I'm back.
 
12:47 PM
Good morning, folks
 
morning!
 
So, method-naming preference question... :)
Say I've got a class called UserManager that exposes several static methods that do user-related things...
 
awwwww, I went afk.
 
Would you call these methods Update(), Delete() and Get(), or UserUpdate(), UserDelete() and UserGet()?
I've received some conflicting suggestions. :)
 
CRUD is an acronym for a reason.
Also, you're missing one.
 
12:50 PM
I just noticed a wacky little bug in VS2010
You can't unload a website, unless, you multi-select it with another non-website project, and unload both.
 
Understood. :) So, you're suggesting Create(), Retrieve(), Update() and Delete()?
 
@Billdr Having been primarily a PHP dev for quite some time; I am in agree (alot at least)
 
hellllo @Bracketworks @DWRoelands
 
Heya Steve.
 
:)
 
12:53 PM
The way OOP works in php is effing weird.
 
@DWRoelands Retrieve -> Select for this reason
 
it's almost like php isn't really an oop language.
 
@Billdr That would be because ... (wait for it) ... it wasn't! It was bolted on.
Like putting a spoiler on a minivan.
 
haha
 
@DWRoelands VerbObject. e.g. UpdateUser, GetUser, etc.
 
12:56 PM
Kendall: It's interesting that you suggest that convention. I've heard folks suggest the other (ObjectVerb) so that alphabetical sorting of methods groups all of the methods for a particular object together. Not disagreeing with you, mind you.
 
PHP sucks as far as tokenization goes too: you cannot do <array-def><array-deref><func-call>, where the array contains callable objects (functions and such)
['a' => function ($arg) {}]['a']('foo') breaks like poop.
Not identical, but parseable in C# of course: new[] { new Action<string>(arg => { }) }[0]("foo");
 

« first day (958 days earlier)      last day (3977 days later) »