« first day (648 days earlier)      last day (4291 days later) » 

1:00 PM
yeah, now that i have an idea of how to do it, it'll be easier
so i just wait for the batch job to wake it up, i can log in with remote desktop and turn the sleep mode off until i want it to go to sleep
 
That is a good idea.
 
The magic packet can't be routed so you need to open a port get an incomming request and send the magic packet
you can do it with a linksys router just put tomato on it
 
have the router send the magic packet?
 
or have the router port forward to another awake computer and have that send the magic packet --- because i was aware of this option, but then i'd still need another computer, and have it on
yeah i've used tomato before
i just wasn't aware that it could send a magic packet
 
1:11 PM
I think it should be able to since it has some version of linux on it. but I could be wrong
 
i'll look into it, thanks
i hope it can
 
Does Redbull really work?
 
contrary to popular belief, you will not grow wings if you drink a redbull ;)
 
Oh :(
 
meth will RB is just a poor substitute
 
1:14 PM
@LewsTherin Yes, I feel tired as f-ck, sleepy as f-ck but I have energy to work for some hours. I don't feel lazy.
And I just had 2 cans of 355ml of Redbull.
 
i like 5 hour energy
those work too
 
@Andredseixas Sounds good
 
It is good, I feel the power !! I feel that I can work.
My boss is yelling here, I'm going to grab a smoke until he calms down
 
wondering, if I had a notepad file with stuff in it like:

SS-0900-1300#15830
SS-0900-1600#15878
SS-0900-1700 FT
SS-0900-1700#15732
SS-0930-1630#15870
SS-0930-1730#15842
SS-1000-1400#15832
how could I fetech only the 0900-1700 parts of each record?
I am guessing some form of preg match but not sure quite what
 
notepad file lol
 
1:17 PM
(technically this is a record in some AD but by pasting it in notepad I can do operations on it)
I am suppose to do data entry today yawn
 
\d{4}-\d{4} will work for the examples.
 
just read each line into a string, and split it on "-", then your stuff will be on element 1 and 2
regex's are a pain, and often are overkill
 
No, element 2 will be "1700 FT"
 
oh true
 
I would have done a substring
 
1:19 PM
yeah
 
That would work for the examples too.
 
@Nadal You might want to look at Awk
 
I think a special string function works too, that one string function that starts from a certain position and fetches string of specified length
 
you mean, like substring
:p
 
lol
 
1:21 PM
xD
 
i need to restart, my computer is acting very strangely
 
Mine always does.
 
What is the best way to display the company name in an asp.net MVC4 application? The company name could appear in five places and it would be nice to be able to change it in one spot, right?
 
oh tell me about it, from 2 days my computer is so messed up that the icons of VS are replaced by icon of MS outlook and Outlook has icon of VS, MS SQL server managmenet studio is actually hte icon of ms paint and ms paint is the icon of calculator
 
haha
 
1:22 PM
and the weirdest thing about it is that in properties they are all normal
its the visual graphic itself that is like that
 
Once my favicons were messed up so google was wikimedia etc. etc.
 
@kush it would if your company changes it name every 3 months :)
 
Mine changes every week.
 
@DavidDV so it is probably better to leave it as it is?
 
well yeah
 
1:24 PM
thats nothing, my browser often makes parts of itself disappear to post a fragment of a page I had visited earlier lol
 
Declare a constant string somewhere in the code, (Maybe AssemblyInfo.cs)
 
This is not for work. I am just toying around with mvc4 to learn and I want to follow best practices David
 
Does ASP.NET MVC have an AssemblyInfo.cs?
 
Let me check
 
For desktop stuff it's usually in Properties.
 
1:25 PM
What are these "Best Practices" that ppl always talk about it seems to be a synonym for unneeded or overdesigned
 
:P
 
yup, right where you said it is... Kendall.
 
@DavidDV Says the Patterns & Practices Expert.
 
and David, I think I read on c2 that global variables are evil
 
@kush global variables wtf are you smoking
I never said global variables
 
1:27 PM
@kush It normally has a company name attribute. Use that.
 
I'm saying put the company name in HTML
 
@KendallFrey here is the assembly info gist.github.com/3176193
@DavidDV I didn't mean to imply that you did. My mistake.
 
[assembly: AssemblyCompany("Acme Corp.")]
You can then read that value from your app, however, it's laborious.
Instead, create a string constant, and pass it into your attribute.
Then you can access that string directly from the constant.
Unfortunately, this approach may lead to what some would call poor design patterns.
I would create a static class for holding your const strings.
Some people would probably bash me for it.
 
Why?
 
I always have a static class with const values
 
1:34 PM
Some people hate static classes, because they hate global variables.
Static classes are the mother of global variables.
 
I have a question about naming convention. I have a web page that allows a lot of data filtering, paging, sorting. When I make the first and only call to retrieve data from the database I cache a data table. Right now I have named it <b>m_DTBaseOriginal</b>. Could anyone help me with a better naming convention or is that sufficient and clear, btw this is VB.net so being verbose is encouraged not deterred. Thank you :)
 
lol programmers are either A. Lazy or B. Looking for excuses to code
 
I'm both.
 
At work, we have a RegisteredTranslationConstants that is over 1200 lines long
 
I just ended up writing a quick script to generate notepad file with a bunch of records instead of manually cleaning up those 20 or so records
too damn lazy to ctrl + C
 
1:36 PM
Nadal, 20 is too few to generate scripts ha
 
i feel sad about one thing though, my short term memmory prevents me form rememberinfg method named quite a lot so I remember functionality and not the name
 
Why do you call it a notepad file? lol
 
textfile
w.e
 
w.e?
 
its either or
its both and its neither BWHAHAHAAHAHAHAHA
:P
 
1:38 PM
:P
 
yeah, I'd say text files existed before Notepad but don't quote me on this
 
I never use Notepad. It sucks.
 
notepad++?
 
@kush Before Windows.
 
at university we are forced to code in notepad++
 
1:38 PM
@Sangram Of course.
 
Yes, I love np++
 
if it does not compile the first time when you run it in an IDE, you lose marks!
 
What little regex I know, I owe to np++
 
they are training us to be future Jon Skeets!
 
sublime..is one of my favs
 
1:40 PM
Once I had csv files that were too big for notepad++ to handle. Didn't know that was possible
 
I thought it can handle arbitrarily large files. It should.
 
@C.Barlow Yo whats happening? How is the wife and pregnancy ?
 
@KendallFrey How large?
 
Say 100GB
I don't know that it does, but some programs do.
 
@KendallFrey Unless I have to modify a setting somewhere, it didn't work for me.
 
1:43 PM
NP++ gives a warning
 
@kush But it does it open the file?
 
Here's more if you'd like to read superuser.com/questions/286106/…
 
So I'm getting this error when building and running a solution "'C:\tfs\...\VsNet\...\...\Search.aspx' is denied. " and its throwing an exception, it wasn't doing this last night and I didn't change anything, i'm running the site on a local host, has anybody ran into this before?
 
No, it fails @LewsTherin
 
Quick question, on SQL Server how can I check the time sql has spent executing a certain query/procedure ?
 
1:45 PM
a timer
 
Ok, but how ?
 
"File is too big to be opened by Notepad++" Nice.
 
i haven't done it, but the general idea i believe is to put a timer before the sql query/procedure is executed, and after, and then check the difference
 
@KendallFrey yeah that. I am not very good at expressing myself.
 
DateTime subtraction, or Stopwatch.
Not a Timer.
 
1:47 PM
^ there ya go
 
Ah nvm, just did a Shift+Alt+S and checked for statistics
 
It bothers me a bit that you are able to edit chat once you've sent it. I don't know why but... are these logs saved and publicly available? can I opt out please?
 
Yes, everything you say is public.
 
the transcripts of the chat are saved for all eternity
 
I can never tell when you are being serious and when you are pulling my leg
 
1:51 PM
First day of chat.
 
@kush you guys and your phobias -.-
the CIA is not after you!
 
Great, I found a SELECT @UserID = UserID FROM Users WHERE User = @User on a procedure. I totally remembered @DavidDV cursing N+1 queries...
 
@Baboon well that means I am not important enough for them o.O
 
Well whenever you are using EF or NH and having performance problems think of me doing this
 
wtf, why does the freenode title say don't be a dick don't publish logs?
 
1:54 PM
We need a new room description. Suggestions?
 
Not using EF nor NH.
 
@kush who knew?
@KendallFrey "The EF lovers chatroom: be our N+1 !"
 
I truly love EF
 
Oh, man, don't you love it when you see a table has two identical indexes?
 
@KendallFrey if long private try break
 
1:57 PM
rotfl
you forgot the catch
 
It's funny how some of those guys in the chat are not here any longer.
 
?
Who can make the funniest sentence out of keywords only?
 
i have a few
 
@LewsTherin..i m reading.. :P
 
if sizeof private long try break else object is short
 
2:00 PM
sometimes its good to just read what others talk & write..
 
Hi
good morning =)
 
@Sangram Good point
 
hey hey
 
my try:
 
if private is unsafe continue as protected
 
2:02 PM
I like it
 
private long object
 
Can you get the title of a webpage without downloading the whole page source?
 
Quick question:

If I have the URI "http://www.test.com/something" and I want the "www.test.com" part.
What should I use? (what is the best for this)

Request.Url.DnsSafeHost
Request.Url.Host
Request.Url.Authority
 
@Baboon ?
 
@quotidian..that sounds interesting..
 
2:04 PM
private long object yield where unsafe => break
 
@quotidian You might be able to read just the HTML meta, and stop before you read the body.
 
Probably Authority.
 
You will still get a pretty big block of the body tag
 
is www actually www or is it a subdomain, @MichelAyres
 
This seems to be the generic solution to the problem here:
6
Q: How to get website title from c#

Morten ChristiansenI'm revisiting som old code of mine and have stumbled upon a method for getting the title of a website based on its url. It's not really what you would call a stable method as it often fails to produce a result and sometimes even produces incorrect results. Also, sometimes it fails to show some o...

 
2:06 PM
@kush..is think its world wide web
 
if this is private event break out unchecked
 
@kush 99% of the time will be www, but it may change (N clients)
 
@kush WWW isn't a sub domain. Usually the web server the site is running on doesn't even require it.
 
"private long object..." A lot of dirty minds here :O
 
how about private short object?
 
2:07 PM
private void object
 
Can't you use www as a sub-domain?
 
@Justin Lol
 
@kush I don't think so =X
 
@kush yeah if you want to. That could be confusing though.
 
goto long catch throw return throw
 
2:08 PM
yeah, I never understood the whole www2 thing
 
if try catch null rethrow object
 
I don't understand..he needs something which will fetch just title...(not entire page source)..
 
rethrow
 
@KendallFrey ?
 
but the answer given in the question reads the full page..
:-/
 
2:10 PM
can we do a cURL and stop as soon as we get the title?
 
rethrow isnt a keyword
 
Oh damn
Yeah
ugh
 
@Sangram The title is part of the page source.
 
yes..i knw that..
 
It is in C++
 
2:11 PM
6
Q: How to get website title from c#

Morten ChristiansenI'm revisiting som old code of mine and have stumbled upon a method for getting the title of a website based on its url. It's not really what you would call a stable method as it often fails to produce a result and sometimes even produces incorrect results. Also, sometimes it fails to show some o...

C#
 
So, if you have control over how the source is read, you can stop reading after you read </meta>
 
@kcbeard All going very well! We found out last week that it's a boy so we're super excited now.
 
Since its a load of forum pages the source code is all the same so I could just set it to get only the first 10'000 characters or whatever
 
@C.Barlow That sounds sexist.
 
@kcbeard (Not that we wouldn't have been excited for a girl, it's just exciting to know either way!)
@KendallFrey ha
 
2:13 PM
:)
 
@C.Barlow u a dad?
 
and then hopefully the title should be in those 100'00 characters
 
@KendallFrey Yup
 
@HansRudel Going to be in November!
 
@C.Barlow Yeah I know but a boy is awesome for a guy
 
2:13 PM
@C.Barlow congratulations bro :)
 
@kcbeard Yeah I'm super stoked @HansRudel Thanks!
 
@C.Barlow I am glad everything is going great has your lady cooled down some?
 
@C.Barlow congrats man
 
@C.Barlow I know my wife had a period where everything evened out for a while
 
@kcbeard haha, yeah we're in the second trimester which is WAY better than the first was =) @kush Thanks dude
 
2:15 PM
congrats
 
thanks!
 
kc I am trying not to make a period joke but it is so difficult
 
@C.Barlow LoL, awesome. My little boy turned 5 weeks today and my first little one is taking everything great. Trust me the best is yet to come.
 
and before kc edits it, "I know my wife had a period where everything evened out for a while"
 
2:16 PM
@kush Yes, like PMS x50, pregnancy it a true test of love
 
@kcbeard That's great! Yeah i'm very excited
 
kc, you're messing with me. right?
 
@kush ? ..
 
that pms times 50 thing
 
@C.Barlow Oh i am sorry ... i completly misread that, lol lack of sleep
but yeah it is like a woman PMS x50
lol @kush i meant
 
2:19 PM
@kcbeard wait, what? lol I think you meant to address kush
hahaha
that was awesome
 
man ok I need to quit talking
 
kush, do you partake in the smoking of illegal substances such as marijuanna
 
and I thought I was lacking sleep, kc
 
@C.Barlow, @kush Ok I am back to work talk to you later
 
@kcbeard Have a good day!
 
2:20 PM
O h i asked a question earlier about naming conventions
 
alright @kcbeard what c barlow said C:
 
I am caching a datatable on a web app, is m_DTBaseOriginal a good name?
 
yeah, what was the m_ and what does it stand for?
 
Stands for member. Dumbest idea ever.
 
Hi, can someone help me with a WCF question?
 
2:21 PM
...I think.
 
Its the base datatable cached on a web page that does a bunch of filtering/quertying of data
 
I totally read walt as wait
 
the DRT can have 300 - 16000 records
*dt
 
Just means you haven't had enough coffee ;)
 
Then the user filters through sorts exct ...
 
2:22 PM
1
Q: How should I get a specific part of the URI

Michel AyresIf I have the URI "http://www.test.com/something" and I want the "www.test.com" part. What should I use? (what is the best for this) Request.Url.DnsSafeHost Request.Url.Host Request.Url.Authority I asked this question in the CHAT, but didn't get so much luck.

 
I hate trying to work with hierarchical data stored as relational data.
 
Kendall the dumbest idea is probably to put the acronym of the company at the beginning of every single thing in the code
 
Namespaces FTW.
 
@kush tell me that didn't happen to you
 
we are slowly moving away from it.
 
2:23 PM
@kush lol
 
@kush ftl...
 
In my defense, I don't call the shots.
 
Imagine if you hated the company you worked for.
 
Imagine?
 
@C.Barlow for the love?
 
2:24 PM
If?
 
@kcbeard I don't really know much about web apps... i've only written one thus far
@kush For The Loss
 
@Justin that had to come from a dude named "justin" xD
 
oh so sort of for the win but opposite
 
@Baboon eh?
 
@Baboon XD
 
2:25 PM
@kush Yep!
 
thanks c
 
Faster Than Light
 
:|
 
@Justin "how about private short object?"
 
Does c in your name stand for the speed of light @C.Barlow?
 
2:25 PM
Foster The Loch
 
@Baboon ah
 
F*** This Life
 
@kush haha... why not =)
 
@HansRudel That's what they want you to think..
 
@HansRudel Dude. No.
 
2:27 PM
@Baboon ive removed it
 
Was it offensive?
Ah I see
 
if ur jewish, then im guessing its a touchy subject
 
@LewsTherin off limits, maybe it's only me though.
@kush erm, what are we talking about? =o
 
.
 
I assumed the offensive text was about circumcision
 
2:29 PM
wtf
 
(removed)
2
 
lmao
 
I can never tell what is going to offend people. I should just keep my mouth shut.
 
i offend everybody, don't worry
 
I just read that EU regulators are seeking world-wide concessions from Google. Why didn't they seek world-wide concessions from Microsoft about the browser ballot?
 
2:34 PM
@KendallFrey
 
@Steve
 
@KendallFrey are you easily offended?
 
and I still managed to offend you?
 
You offended me?
 
2:39 PM
I got a wtf when I wrote something just not long ago today
 
i need to visit a dentist some time soon, my teeth are horrible
 
I want one of those chairs from the dentist's office at home.
 
i want the laughing gas
can you OD on laughing gas?
 
I'll take a Corvette.
@Steve You can OD on anything, even water.
 
@Steve yes
 
2:41 PM
Not all dentists drive Corvettes
 
@Steve that's like 50% of joker plots, kill people with nitrous oxide
 
Water intoxication, also known as water poisoning, is a potentially fatal disturbance in brain functions that results when the normal balance of electrolytes in the body is pushed outside of safe limits (e.g., hyponatremia) by overhydration, i.e., over-consumption of water. Under normal circumstances, accidentally consuming too much water is exceptionally rare. Nearly all deaths related to water intoxication in normal individuals have resulted either from water drinking contests in which individuals attempt to consume large amounts of water, or long bouts of intensive exercise during wh...
 
also why are we offending people? I must have missed that
 
oh lol\
water intoxication occurs because of an electrolyte imbalance. So if you drink tons of gatoraid you'll be balanced and wont OD right? lol
 
It'll take more, but with enough of anything you'll be dead.
 
2:46 PM
Kendall, same applies with time I guess. With enough of time, I will be dead.
 
too much gatorade = hyperglycemia, which leads to organ damage leading to liver failure and death
 
too many hookers won't kill you
just ask @kush
 
That was one time.
 
lmao
im at.... two times
 
Here lies Kush, Programmer, Developer, Enthusiast, taken tragically from us by an overdose of prostitutes.
5
 
2:49 PM
LMAO
 
I take it that no one here has watched Mean Girls. :/
 
Fun fact, no one ever has watched Mean Girls 2.
But everybody has watched Mean Girls 1
 
what's mean girls?
 
theres a 2?
it has that crazy girl in it
 
oh my god you can't just ask if there's a 2.
 
2:50 PM
dang what is her name
i dont want to google her because nip slips will pop up and its nsfw
 
What is nsfw
 
not safe for work
 
lindsay lohan
 
I know of Mean Girls, but can't be arsed to watch it
 
2:52 PM
has some cute girls in there
 
LL is cute
 
Cute no longer
 
i think so, when you get a chance google her slips, she has a decent body
well, had
 
She still is pretty in my head.
 
omg there is a mean girls 2
 
2:53 PM
Is this a programming chat room? xD
 
lmao
 
I have never seen 2.
 
I have never seen 1
 
well the trailer sucks :(
 
@LewsTherin and what would've brought you to that conclusion?
 
2:54 PM
you dont watch mean girls 1 for the story line lmao
 
:P
 
well the trailer for Ironman sucked as well. You can't judge a book by it's trailer
 
did ya'll see batman
 
@Baboon Read the above comments before mine.. obviously meant as a joke. Stop being a pedant or sarcastic or whatever :)
 
@Steve Can I still say no spoilers?
 
2:55 PM
@LewsTherin I was joking ;)
 
@Baboon Oh :P
@Steve lol
 
lol idk, bat man dies, the entire city of gothem gets flooded and everybody dies
 
@Steve Great movie!
 
still better than twilight.jpg
 
:)
i need to test this nintex addon for sharepoint, and i dont know what to do
 

« first day (648 days earlier)      last day (4291 days later) »