« first day (892 days earlier)      last day (4057 days later) » 

12:08 AM
0
Q: PATINDEX regular expression to catch a pattern

JKarthikWhat would be the correct RegEx to fetch the following substring out of the text? [aaaa-aaaaa] from 'HelloWorld[aaaa-aaaaa][][asdfsadf][aas-asda-asdas]asdasd' SELECT PATINDEX('%[[]%', 'HelloWorld[aaaa-aaaaa][][asdfsadf][aas-asda-asdas]asdasd')

 
12:20 AM
@SteveJobs hi
 
well it's bout that time again to head home, have a great night everyone
 
@SteveJobs you there ?
@ SteveJobs gone :(
 
That feeling when you are halfway through reading an answer and you suddenly know whose name is going to be below it. .....Jon Skeet.....
 
12:50 AM
@KendallFrey Hey
how's it going in C# world?
 
I'm doing COM programming right now. It makes me feel middle-aged.
 
@KendallFrey Because most everything is IUnknown?
 
brb
 
12:53 AM
I'm developing a component to be used from Access, to read Google Books data.
Funn
 
Good luck!
 
God help you
 
Well, at least some people are alive.
Kendall: What do you do on sunday?
 
It varies.
 
Oh? Example?
 
1:07 AM
Usually just chilling with friends.
 
you have friends?
 
A few.
 
WTF
Friends?!?!
 
THIS CHANGES EVERYTHING
 
In canada?! With Kendoll?!?!
^^^^^^^^^^^^^^^
 
1:08 AM
I play hockey or baseball with em on weekends.
 
huh
 
preferably hockey
 
KENDALL GETS PHYSICAL EXERCISE?! BUT HE'S STILL FAT?!
 
@KendallFrey when we make fun of him:
I'm out, kids
wish me luck... riding home
 
@CCInc One hour a week? I spend more time eating than that.
 
1:10 AM
Peace out yo @Pheonixblade9 good luckx
 
oh, this was my ride yesterday:
 
edc
hi guys
 
oh gawd
why'd it take so long?
why'd you go all the way around?
 
@KendallFrey
a self moving garbage can
 
1:15 AM
lame
 
I don't think my blocker likes awesomegifs.
 
i want one
 
edc
hmm is it crazy to store a dataset in session state
 
ha ha ha ha
 
1:16 AM
STAHP
 
edc
wireless bin... lol
 
@KendallFrey why do some of you do something like this
$something kijkjkjfdkjdk
 
what are you doing?
 
1:18 AM
What you were too lazy to do.
 
and whats that?
 
1 min ago, by Kendall Frey
user image
 
hm, why that?
no links?
 
It prevents link rot, and it's being kind to people who have overly restrictive internet blockers.
 
1:19 AM
Your company provides your internet right Kendall?
 
No.
Home wifi
 
So who imposes the block?
 
My parents.
 
I see. Bypass? That's what I did.
What software?
 
Too much work just to view a simple image.
Netsweeper based or something
 
1:22 AM
But surely it must get annoying
 
Yes, but it would only be half as annoying if people used the upload button.
 
lol
 
@CCInc Why? Because I'm training to ride 204 miles in 1 day
so 55 miles in 1 day should be easy
 
Those blockers work stragely
 
which it wasn't too bad
 
1:23 AM
@Pheonixblade9 wow, nice
They block some sites but not others
 
@KendallFrey how would i go about getting a job?
how do you get your job...well, first job in programming
 
MAGIC
 
@EliteGamer
Step 1: Be good at programming
Step 2: Ask for interviews
Step 3: ?????
Step 4: Profit!
 
How I got mine, or how most people get theirs?
 
ok
@CCInc i wish
 
1:24 AM
The two are very different.
 
how'd YOU get your job?
 
YOU
 
My dad started a software company. It was pretty easy from there.
 
Oh, yeah.
 
ha
i bet
 
1:25 AM
You smarter than him? At programming
 
NEPOTISM
sorry, let me rephrase that: NEPOTISM
 
cc/define nepotism
 
@CCInc Heh heh. Um, yeah. Heh.
 
@Pheonixblade9 what does the company do?
like, what software
 
what company?
 
1:26 AM
well, the business?
 
the place I work at?
 
yea
 
data feed marketing
 
ok, cool
 
SQL XML ALL THE THINGS
 
1:27 AM
ah
i am about to go afk for a sec
 
anyways
riding home
cya tomorrow all
 
(away from keyboard)
 
lol
(laughing out loud)
 
fkm
(fluffy kitty magic)
bye
 
(bite your eye)
 
1:28 AM
(laughing out loud)
(laughing my f---ing a$$ off)
 
In case you want to answer my question without the reward of fake internet points.
 
1:50 AM
hkhiig
(hey KendallFrey how is it going)
 
@KendallFrey
is there an easy way to convert a WinForms application to WPF?
 
:(
why not?
 
Because.
They are different.
 
1:52 AM
It's about the same as converting a desktop application to a webpage.
 
edc
I know a way!
 
i know, but there must be internal xaml generated from WindoForms?
 
They have totally different controls.
 
I do too: REDO IT
@EliteGamer Nope.
 
edc
You put a WindowsFormHost control in your WPF app
 
1:52 AM
@EliteGamer No, not at all.
 
edc
viola! WinForms in WPF
 
but
hmm
 
@edc Shoot me. Or you. Shame on you for mentioning it.
 
edc
hahaha
 
@KendallFrey but how does that work?
like why would you do that?
 
1:53 AM
What? Do what?
 
You will never want to do that.
 
use the WinForm Host
 
It's not that hard to convert anyway.
 
edc
oh, I think I just opened a can of wurms
 
so, WinForms does not generate any xaml?
at all
 
1:54 AM
None.
 
then how does it run?
well,
 
WinForms is all based on classes in the System.Windows.Forms ns
 
edc
it's almost like asking if you can put HTML controls in WinForms
 
It uses a completely different system.
 
^ & ^^
 
edc
1:55 AM
two different things
 
oh
i wish there was like a software that converted the two
 
WinForms uses code, WPF uses XAML, websites use HTML.
 
edc
@EliteGamer not really... the systems are quite different
 
it's freaking not too much work
if you really wanted it
 
@EliteGamer You just think you do. But you would change your mind.
 
1:56 AM
WPF WTF is better
 
hm
so i have to redo everything
 
edc
@EliteGamer consider it... house cleaning
 
thats a BIG house
 
edc
well, if it's a big house and it's a working house, why switch to WPF all of a sudden?
 
i love WPF, i am moving to it...i like it
 
edc
1:58 AM
plus, your neighbours probably have something to say about that too, if it's a big house :(
 
2:26 AM
Hi Room, just wondering if anyone knew about some good book for C#, most of the ones i have just turned out to be references. I'm an introductory programmer to C#. I've done some python for a while but nothing object-oriented yet.
 
How long have you been programming?
 
@KendallFrey 2 weeks total
 
@SteveJobs References are how you learn tho
 
@KendallFrey @CCInc it's not that i don't understand programming, i was able to write a program in C# today including some IO and variable declaration in 3 minutes of reading. But the reference books always keep going off on a tangent and ruins the flow of the book.
 
References are how you learn a langauge.
 
2:30 AM
Kendoll Y U STEAL MY WORDS
 
For reference, you can't beat "C# 5.0 in a nutshell"
 
If this book is anything like the 2008 version that I learned from, it should be perfect.
 
for a beginner, I also recommend "headfirst C#"
It's more of a basic language thing
tutorial kindda
 
@CCInc ok i see
@KendallFrey is visual c# express ok with that book ?
 
2:31 AM
Yes.
 
@SteveJobs Here is a sample of the book, to see if it works for you. headfirstlabs.com/books/hfcsharp/hfcsharp_free_book.pdf
 
The book is about 1/3 reference and 2/3 tutorial.
 
@CCInc @KendallFrey thanks a lot. I'm ok with references...but i guess i'm reading them wrong...i'm usually trying to read cover to cover....references are supposed to be more of a supplement to a tutorial
 
Yep.
 
I was reading about data types, and spent useless time reading about printing hex to the screen
 
2:33 AM
It might benefit you to get a book specifically about OOP.
 
@KendallFrey i'm starting OOP in python this week.
 
A quick question kendall
I am simplifying "x^2 + 4x + 2 = 0" using the quadratic formula
 
@CCInc The guy on the book freaks me out
@CCInc ok so simplify it
lol
 
I get to the step "(-4 +- sqrt(8)) / 2"
And I pull a 2 from the sqrt
 
sqrt(8) != 2
 
2:35 AM
and get (-4 +- 2*sqrt(2)) /2
Did I do that right?
 
yes
 
Oh, yeah, that makes sense.
 
Okay.. how do i reduce that?
 
-2 +- sqrt(2)
 
Because my calculator says -2 +- sqrt (2)
 
2:37 AM
yup
 
Okay, what happened to the two on the sqrt?
 
(-4 +- 2*sqrt(2)) becomes (2*-2 +- 2*sqrt(2))
 
OH]
 
Which becomes 2*(-2 +- sqrt(2))
Add the /2, and it cancels the 2*
 
So you factor the 2 from the numerator
and try to simplifY/
 
2:38 AM
Uh, yeah, I guess so.
 
it's just the distributive property of division
 
Hmm, that's prolly where I got messed up
you distribute the "/2" to BOTH terms of the fraction?
 
(a +- b)/2 = (a/2) +- (b/2) that's it
 
oh okay
 
@CCInc I took the *2 out, but here's how you do that:
(-4 +- 2*sqrt(2))/2 becomes (-4/2 +- 2*sqrt(2)/2) becomes (-2 +- sqrt(2))
 
2:40 AM
ah it makes sense now
thank you all
 
Next step:
6
Q: Get Transformation Matrix from Points

Kendall FreyI have built a little C# application that allows visualization of perpective transformations with a matrix, in 2D XYW space. Now I would like to be able to calculate the matrix from the four corners of the transformed square. Here is a screenshot to help you understand what I am working with: ...

I wish I had written down the equations I had gotten. Those were massive.
 
@CCInc there is a way to do all that without the quadratic formula, just saying.
 
I KNOW
my dang teacher is MAKING us use the quadratic formula
 
@CCInc lol
 
so we can practice "simplifing squre roots". Whoop-de-do
 
2:44 AM
@CCInc That sucks
Hey @AndréSilva
 
Hey it's Kinected.
Haven't seen his face in eternity.
 
@KendallFrey wow, what's your background ? That's an intense question
 
@SteveJobs He's the top of the top in the C# room.
He knows alot.
 
@CCInc @KendallFrey I found that question interesting because i know the math, just not the programming
 
sup guys
 
2:47 AM
The new Simcity track is awesome stuff if anyone wants to take a listen
yo @c0dem0nkey
 
@CCInc i see steve jobs
 
@CCInc thanks for the book, i think i need to start here
 
check her profile description lol
 
@c0dem0nkey You want a job at my company ?
 
@CCInc her???
@SteveJobs no just surprised youre moving to .NET
 
2:49 AM
it's a G.I.R.L
 
@CCInc like GIRL with boobs and stuff?
 
@c0dem0nkey objective C was lame
 
@CCInc omg nice to meet you @SteveJobs
 
GIRL is an abbriviation in the C# room
 
@CCInc i got that feeling
@CCInc so whats a girl exactly
 
2:50 AM
it's an inside C# joke
 
@CCInc i got that now. LOL
 
@CCInc ??
 
@SteveJobs hi tehre GIRL
 
@c0dem0nkey dont push it
 
@CCInc lol okay.
but srsly
steves a chick
?
 
2:58 AM
@c0dem0nkey I'm Steve Jobs, not a chick. Understand that.
 
@CCInc wuever u say steve.
@SteveJobs*
are u guys familiar with MVP btw
 
MVP ? no
 
model-view-presenter
 
@c0dem0nkey i'm just a beginner so definitely not the person to ask
 
@SteveJobs okaay...so hows life steve
 
3:03 AM
oh the oracle elft
and steve's not here
 
@c0dem0nkey Hell is much better than i thought it would be
2
 
Guys, is uTorrent protocol one of transport layer protocol or application layer protocol
 
HAHHAHAAHAHAHAHAHAHAHAHA
HAHA
LOL steve
 
according to the Wiki it is based on UDP so I assume it is an application layer protocol that is using UDP api
Am I right?
XD
 
BitTorrent is a protocol that supports the practice of peer-to-peer file sharing and is used for distributing large amounts of data over the Internet. BitTorrent is one of the most common protocols for transferring large files and peer-to-peer networks have been estimated to collectively account for approximately 43% to 70% of all Internet traffic (depending on geographical location) . In November of 2004 BitTorrent was responsible for 35% of all Internet traffic. Programmer Bram Cohen designed the protocol in April 2001 and released the first available version on July 2, 2001. Currentl...
 
3:08 AM
yeah
thx
 
edc
this plugin is just so great
 
another is select2
 
edc
select2 seems to have a better documentation page
 
hello
I need sql help ;(
0
Q: radius search by latitude / longitude

Scott SelbyI have found a bunch of answers for this question using mysql , but I wasn't able to convert anything into a query ms sql 2008 can use. I have a longitude and latitude column for each row in the database. I am going to have a latitude and longitude for where the user is. I want to be able to f...

 
3:30 AM
@SteveJobs lol
 
@SteveJobs - hahaha
 
I was originally going to look into spatial data
I will have max 5k rows , and max radius of 20 miles , so I think my way of doing math everytime should be ok
if I limit query to TOP 15
and I'm stupid and bought sql 2008 instead of 2012 when the price wasn;t much different at all
@mrówa
 
3:48 AM
@ScottSelby yeah ;) still, you've just reinvented the wheel. Should work well on such a small scale. Pointed this one out only, because I've witnessed what spatial indexes can do on high volume data (on mongodb, but it's similar in spatial stuff to MS SQL). Good luck!
 
whered cc go
 
4:00 AM
LUNCH TIME GUYS
>:]
 
4:13 AM
hi
can anyone help me for solving an isue in iis?
 
 
1 hour later…
5:30 AM
hii all
 
sup
 
hello @c0dem0nkey
 
hey there dude.
 
5:45 AM
how to filter the list datewise
in linq
 
can u elaborate
 
i have a list of objecta nd a fields admission date
 
then
 
and i take input from user from date and to date
so i want students list who take admission in between from date and to date
 
are you new to LINQ
 
5:49 AM
yes
 
already have a question posted? ill try answering it there
so youll have multiple answers and feedbacks too
 
lol
i do it by my self thanks
only think to increase ur repo and points huh :/
 
nope.
okay then since you put it that wa.
way
damn thats bad thinking.
 
6:11 AM
hi
need to clear one doubt on linq
public List<SelectListItem> GetAttributeName()
{
try
{
var attri = (from z in _entities.Attributes
select z).AsEnumerable().Select(z => new SelectListItem
{
Text = z.AttributeName + " (" + z.AttributeType.AttributeTypeCode + ")".ToString(),
Value = z.AttributeID.ToString()
});

return attri.ToList();
}
catch (Exception ex)
{
CreateLogFiles.ErrorLog(HttpContext.Current.Server.MapPath("~/Logs/ErrorLog"), ex, "CatalogService", "GetAttributeName");
return null;
}


}
on this line
Text = z.AttributeName + " (" + z.AttributeType.AttributeTypeCode + ")".ToString(),
the output will be..
like this..
abcd (efgh)
ijkl(mnop)
qrst(uvwx)
but i need the output is
abcd
ijkl
qrst
efgh
mnop
uvwx
 
O.o
 
i dont want you thinking i want points. but its better if you post it.
not everybody chats you know.
 
mm okay
0
Q: how to join two table column name and yield one result in linq

Jasper Manickarajneed to clear one doubt on linq public List<SelectListItem> GetAttributeName() { var attri = (from z in _entities.Attributes select z).AsEnumerable().Select(z => new SelectListItem { Text = z.AttributeName + " (" + z.AttributeType.AttributeTypeCode + ")".ToString(), Value = z.Attr...

hi i have posted it..
@c0dem0nkey
 
okay
so you dont need the "("
 
6:22 AM
yes
 
_studentList = _studentList.FindAll(item => item.CreationDate >= studentSearchCriteria.FromDate && item.CreationDate <= studentSearchCriteria.ToDate);
:)
 
somebody putting negative marks for this questions
 
ahh..yea i noticed
 
its not good.. people never encourage this type of questions
very bad
 
lol
 
6:27 AM
@kapil so you done now
 
Yeah
 
good 4 u
 
 
1 hour later…
7:28 AM
HOMIEZ
 
7:39 AM
posted on March 26, 2013 by Scott Hanselman

My blog and all the sites in and around it are a mix of .NET 2.0, 3.5 and 4. This blog engine is currently .NET 3.5 and runs at http://hanselman.com/blog, but the application at http://hanselman.com/ (the root) is .NET 4. You can happily mix and match applications across .NET versions on a single IIS instance. You can see how mixed my system is in the screenshot at right there. However,

 
sup dawg xD
 
That's my car xD
 

« first day (892 days earlier)      last day (4057 days later) »