« first day (957 days earlier)      last day (3991 days later) » 

12:15 AM
@Pheonixblade9 How's this?
Hello!

I am a 13 year old, living in -. I am a student at the local middle school band. Recently, I have been working on composing/arranging music for a band. I would love to be able to work with you over the summer, or have you give me some tips on my work. Would you be interested?

Here is a MIDI recording of a piece I have been working on. soundcloud.com/cc-inc-1/beethovens-secrets

I hope to hear from you!

Sincerely,
-
Hey, I am a grammar nazi!
room topic changed to C#: Top Programming Language of 2012 (now with resident grammar nazis, @ShotgunNinja, @KendallFrey, and @CCInc) [.net] [asp.net] [asp.net-mvc] [c#] [entity-framework] [linq] [visual-studio] [wcf] [wpf]
 
cut out the "I am a 13 year old" as an intro
"I'm blah blah, a middle school student and member of the x middle school band"
 
Okay
anythign else?
 
looks ok
 
1:03 AM
Who is it to?
 
A composer who lives nearby
"/o"
 
Is that an escape?
 
@CCInc can't find the song :/
 
 
2 hours later…
2:49 AM
EndPointNotFoundException was unhandled by user code
 
 
1 hour later…
4:01 AM
anyone here knows how to rename .dll file?
 
hello
 
4:42 AM
Hi
 
hello
Hi
hello
Hi
hello
that was a great loop!
 
4:55 AM
hej
 
 
1 hour later…
5:56 AM
Hi
 
6:32 AM
Hi
 
6:56 AM
Is it possible to make inherited methods and variables private?
 
No. They retain whatever access they had.
All you can do is a wrapper.
 
Ok, i'll google it
Could you briefly expalin how a wrapper works?
I'm trying to use iTextSharp events inside my class but I don't want the events to be availiable outside the class.
 
class StreamWrapper {
	private readonly Stream _s;
	public StreamWrapper(Stream s) {
		_s = s;
	}
	public byte readByte() {
		return _s.readByte();
	}
}
This class wraps a Stream instance and only exposes readByte.
 
hmm...
do I put it inside my class?
 
7:13 AM
anyone here knows how to rename or change context of a .dll file?
 
@Elegiac You can rename a file freely.
If you there are references to it from other DLLs, change them. Simple.
@HjalmarZ Well wherever you use want to do this.
 
I have a class that inherits ": iTextSharp.text.pdf.PdfPageEventHelper". I need to use one of the events in that class in my own class but I don't want all those events to be visable for people using my class. Right now I can type MyClass.OnNewPage for example and I don't want that to be possible. (OnNewPage beeing an event from the iText lib)
 
@HjalmarZ You could add another project to you solution called "Infrastructure". In this project reference Itextsharp. Make the class "protected" and import a reference to the project in your other projects. Create a public class that with code to call from other projects.
 
@RoelvanUden i rename the file but the problem was the properties was still the same .specifically the original file name found in properties/details
same as references :/
 
@Danny Do you have any example code to help me grasp that?
 
7:27 AM
@Elegiac So change them too? :P
 
@HjalmarZ Sure, this is within the infrastucture project in the same solution.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Infrastructure.Helpers;
using iTextSharp.text;
using System.IO;
using iTextSharp.text.pdf;
using System.Web.UI.WebControls;

namespace Infrastructure.ITextSharp
{
public class ScanDocumentBuilder : IScanDocumentBuilder
{
protected static void PlaceText(PdfContentByte pdfContentByte, string text, iTextSharp.text.Font font, float lowerLeftx, float lowerLefty, float upperRightx
, float upperRighty, float leading, int alignment)
@HjalmarZ In the UI.WEB project (olso in the same solution I call the class in the infrastructure project
MemoryStream output = ScanDocumentBuilder.BuildScanDocuments(dochelper);
Response.ContentType = "application/pdf";
//Response.AddHeader("Content-Disposition", string.Format("attachment;filename=ScanDocuments.pdf", ""));
Response.BinaryWrite(output.ToArray());
MemoryStream output = ScanDocumentBuilder.BuildScanDocuments(dochelper);
Response.ContentType = "application/pdf";
//Response.AddHeader("Content-Disposition", string.Format("attachment;filename=ScanDocuments.pdf", ""));
Response.BinaryWrite(output.ToArray());
 
@Danny And in this example you hide the functions of IScanDocumentBuilder?
 
Simply do not reference the project in the places you do not want the code to be availeble. The code will only be availeble in the places where your reference the Infrastucture project in your code. The IDocumentScanner is an Interface using Ninject. Take a look at www.ninject.com public interface IScanDocumentBuilder
{
MemoryStream BuildScanDocuments(List<ScanDocumentHelper> scandocs);
}
 
@Danny oh, yeah I think I understand. I'll see if I can recreate it, thanks.
 
@HjalmarZ Good Luck !
 
7:40 AM
Silly that there's not an easier way of doing it. Should be as easy as...
class MyClass : (Private) InheritedClass
 
8:05 AM
i need advice from experts
 
Hi there Elegiac, still banned?
 
8:28 AM
hahaha
@HjalmarZ nope
im alive :D
and what if i say can you pls give me upvotes :( theyll ban me again? hehe
 
9:00 AM
anyone?
0
Q: Regex For singlequote and doublequote

ElegiacI just wanna know whats the Regex for singlequote and doublequote specifically something like this 1: openquote(startswith) + word + closequote(endswith) (singlequote)word(/singlequote) sample-> 'asdasdasdass' (doublequote)word(/doublequote) sample-> "asdasdasdass" in c#winforms /thanks . -...

 
 
2 hours later…
10:37 AM
0
Q: How to get value of a class's array in c#?

ProgrammerITThis question might be common but I am really don't know how to get output value. So here is the question. I have a class with two fields id and value. public class Payment_Type { public int id { get; set; } public string value { get; set; } public Payment_Type(int p, string p_2) { t...

 
i need a help
 
11:04 AM
@codebrain!
 
i think hes out
@codebrain!
lets all shout
@codebrain!!!
 
@chukwuemeka ~
yep :P don't shout guys !
i missed him a lot . How are you man @chukwuemeka ?
 
lol @Elegiac
It's been long ..brain
 
where the fuck you been !>
 
I've been running from things.
 
11:13 AM
did you see that i tagged you few days back ?
 
and running after other things at the same time.
uh uh.
nope
 
cz i thought you guys were captured and imprisioned ! lol
 
lol
that happens though.
 
yeah, happens
i am here everyday. Everyday.
 
It's the wild third world.
 
11:15 AM
may be..
 
you should experience it some time.
how've you been man?
 
i am the boss of the third world mate ! darknight
 
lol.
You don't want to say something like that around here.
people 'll come and get you.
unless you want to put it in a scam mail.
..then, they'd just take your money.
 
may be..let them come !
 
how has this place been?
 
11:19 AM
same, aweful. helpless.
 
I've missed typing in this box.
 
I wanted help in MVC..even now. i couldnt find someone with patience. i couldnt fine one at all
 
aweful and helpless?
I'm stuck in some mud pit myself.
 
lol, you missed box ? like you missed your ex-gf for the 0.
lol
 
lol.
 
11:20 AM
happens !
 
Some hurriedly written project just crawled up out of the mud pit to pull me back in.
 
now, i was assigned to a urgent project with another developer and a new bee trainee.
 
aww. People management.
..even worse.
 
the developer doesnt seem to show any code to me. i am only doing design to the view. the new bee is dumb and cant do anything with that. its a MVC project and i am feeling fu**ed up
 
OK. What could be f'd up about MVC?
It's the platform we all love, no?
I think it's people management that's giving you a bad day.
 
11:23 AM
yeah i love too. but i dont know much of it. so, starting to work on a immediate project sucks by blood from brain
 
Just see it as an opportunity to speed up your learning process.
 
My TL is an a$$**le. i can say 1000 times and still i feel he is giant.
 
OK. What's wrong with that one?
 
yeah..tell me ..i have a wcf service that brings cities( city code, value) from db. should i have properties with get set in models to assign values ?
or someother way i can directly bind them to a textbox with autocomplete feature ?
 
so, you want autocomplete on a textbox
..and you 're using a WCF service just to bring it over?
 
11:27 AM
yes, that autocomplete should have cities from database.
 
is there any other reason why you're using WCF?
 
first question. do i need model with public string city{get; set} ?
 
Yes, you do.
 
nope..its going to be a big project in the future. so they start this with wcf. it fetches patient information from db. like name, number, city , address..
 
OK. lemme re-phrase. I'd do that if I were in your shoes.
 
11:29 AM
@codebrain Hi
 
any chance of doing it without model properties is possible ?
Hey pradeep..
 
..not like you need it to get it to work.
@codebrain , yes, it's possible.
 
@codebrain I have SVN problem can u help
 
oh, he is using some bindingclass
@pradeep i am in very busy mode. i cant now. sorry :(
and i dont know about svn !
 
@zarkobehar hi
 
11:32 AM
I don't think you have a very big problem 'brain.
 
@Chukwuemeka
@Chukwuemeka Hi
 
just take some time away from your desk.
Hi @pradeep
 
emeka come to the new place
i got a lot of quesitons :P
like JAM !
 
12:03 PM
Why, WHY does every new project start with WCF? That torment?!
 
Hi guys
I need help
Any of you have working with dictionary in C#?
I am a beginner in C# programing. Please help me re-write this code sample in PHP to C#:
 
12:23 PM
@Neru ... That's a really ambiguous question.
 
the number 1 search on linkedin that people see my profile for is someone else's name
'Angus Jenkins'
I worked for a company where a guy named Angus was the CEO, and I've used Jenkins as a CI tool
 
12:45 PM
Hey guys :) Anyone know how to develop .Net 4.5 applications with Vs 2010? Vs 2012 is horrible ;(
 
VS2012 is much better, you just need to get used to it :-)
 
Use 2012. It's awesome
 
The hotkeys changed
horrible
 
Change them back? :P
 
Im lazy ;O and btw im to stupid to found the hotkeyeditor
 
12:49 PM
you cant target 4.5 in VS 2010
actually scratch that
18
A: Targeting .NET Framework 4.5 via Visual Studio 2010

David WoodwardThere are pretty limited scenarios that I can think of where this would be useful, but let's assume you can't get funds to purchase VS2012 or something to that effect. If that's the case and you have Windows 7+ and VS 2010 you may be able to use the following hack I put together which seems to w...

but 2012 is really nice
SO METRO IT HURTS
so follow a sketchy 16 step process or just get with the times
 
Does anyone know the frequency required for ping/pong to avoid connections from closing (tcp/ip or websocket)?
 
Thanks... maybe ill take me time now to change the hotkeys, seems to be a better solution for a long time
 
@RoelvanUden in tcp, thats an application level decision
 
Hm what is the HTTP standard?
 
I need some help=) If my confirm passwordfield is empty it still submits the form. I'm using compareToValidate do i need to use a requiredvalidator. Here's a link snipt.org/Aaiie0
 
12:53 PM
actually i might have lied for tcp
> However, the default connection timeout of Apache 2.0 httpd[2] is as little as 15 seconds[3] and for Apache 2.2 only 5 seconds.[
although for http its a bit different
the keepalive is used so that one connection is made to send more data without connect overhead
its still expected to be short lived for the most part
 
Hi
 
but yeah, still sounds application dependant and not part of the spec
plus, the frequency isn't as important as the timeout
 
I have a problem in List where i am using bindingsource When i want to swap value form left to right it remove two value from the bindinsource
 
@Roel IIS uses 2 minutes
 
Hmm. The reason I ask is because IE10 will close the connection after 30 seconds.
Whereas Chrome and FireFox don't care about WebSocket pings
 
That's the handshake, not actual communication :P
 
ah rihto
oh man
the spec is blocked at work
freeware lolz
 
Whaaat
 
any MVC dev here ?
 
1:20 PM
@RoelvanUden your best friend SiglanR sends a keepalive every 4 seconds
er heartbeat
 
Ah, nice find! Thanks @drch
 
Hello, MS!
 
1:33 PM
howdy all
 
Evidently I don't know how to sort a list.
 
@Pawnguy7 They have tutorials for these things.
 
I tried following that :D seems so simply
 
list.sort
 
so, what's up with this:

C# Developers

Programs must be written for people to read, and only incident...
 
1:37 PM
competition!
maybe its a bizarro c#
like their kendall is super friendly and helpful
 
Unable to cast object of type 'System.Linq.OrderedEnumerable`2[System.Collections.Generic.KeyValuePair`2[System.String,System.Int32],System.Int32]' to type 'System.Collections.Generic.List`1[System.Collections.Generic.KeyValuePair`2[System.String,System.Int32]]'.
I am scared :\
 
Oh, you should call ToList() on it before calling Sort().
 
although if you already have an orderby
then its going to be sorted
so just .tolist it
 
oh, herp derp, OrderedEnumerable is already ordered.
 
1:41 PM
heehee
 
if I have the string <tag1>hi</tag1> what would I do to extract hi?
 
use a HTML parser
 
ha
PARSE WITH REGEX
ZOMG
 
TBH, if it was just that string, I would be inclined to use regex.
 
well there would be various tags
 
1:42 PM
Oh. I need to call ToList on orderby?
 
Would there be more than one type of tag in the same string?
 
i think there is like 6 different tags, HTML parser still @KendallFrey?
no
 
Then a regex would be fine
<.+>(.+)<.+>
Extract the first captured group
 
pr0
 
n
I have 3 different Mercurial shelves, each with a different project 'on hold'. That's a record, and not a good one.
 
1:47 PM
@Pawnguy7 Yeah. OrderBy produces an OrderedEnumerable, which you then have to materialize by a call to ToList. Unless, of course, you can get away with a raw IEnumerable as the return from your method, and keep it lazy...
disclaimer: I haven't tried this or verified it to be correct
 
Ah.
 
@ShotgunNinja As Knuth said, "Beware of bugs in this code. I have only proved it correct, not tried it."
 
@KendallFrey That's kind of what I was going for with that, actually. Nice catch.
 
2:04 PM
posted on May 30, 2013 by Eric Lippert

Today a follow-up to my 2010 article about the meaning of the is operator. Presented as a dialog, as is my wont! I've noticed that the is operator is inconsistent in C#. Check this out: string s = null; // … Continue reading →

 
hey guys. Does someone know how to restart a service by itself when a Thread inside of it crashes, for example with a out of memory exception (or any other 'uncatchable' exception)?
I know I can get an event on AppDomain, but I don't know how to restart the service
 
My list seems to be ordered lowest-highest. hrm.
 
ah never mind...
should've googled
 
@Pawnguy7 That's normal.
 
Oh. Right. That makes sense :D
Apparently I didn't think about what descending means.
I think it works, but optimism has proven to be a bad way to approach code recently :D
 
2:14 PM
AAARGH Y U USE SNAGGY
 
@Pawnguy7 Whoa, what did I score?
I scored less than NOOB?
@N00B.NET, this will not stand!
 
I had to test if it ordered correctly.
In the score file, your name comes above his.
@KendallFrey to lazy to use anything else
 
2:32 PM
yay, in order to install BIDS I had to wipe out SQL Server 2012 and 2008 on my machine, and reinstall from scratch, spent more than a day on this already
ah, I feel clean
 
2:47 PM
Hello guys! How can give me a piece of adivce with AsyncFileUpload problem? Thank you.
0
Q: AsyncFileUpload catch async postback

Gelo VolroI'm trying to catch the asyncpostback after my file was uploaded with the AsyncFileUpload control of ASP.NET. Code is here: http://ideone.com/aU9sQ3 hint: code is small and is around only about mine problem I'm trying to show in label some status, that file has been uploaded. Firtst of, I tho...

 
@KendallFrey <.+>(.+)<.+> doesn't give me the inside value of the tags
 
What does it give then?
 
@ShotgunNinja thats not me, I don't think?
it gives me the whole line
<tag1>hi</tag1>
 
1 hour ago, by Kendall Frey
Extract the first captured group
 
@N00B.NET if you want to parse xml, use a pre-built xml parser, regex is not the way to og
 
2:57 PM
@N00B.NET Are you still trying to parse that binary XML?
 
@N00B.NET I know how xml parsing works, let me show you some regex code I wrote years ago for this purpose rubular.com/r/5cWYPD9qUR
 
hahaha
> regex is not the way to og [sic]
> let me show you some regex code I wrote for this
 
groups[0].Value gives me the entire line still
@Bracketworks somewhat, I'm trying to do it line by line now, since i only need to extract a few values.
I can fall out before I hit the tags with binary in them
 
@N00B.NET Do you control the source documents, are you generating them?
 
The source comes from hardware built in house
its part of a file format
 
3:05 PM
@N00B.NET Bleh; nevermind.
 
@KendallFrey I was demonstrating why it's a bad idea. What's wrong with that?
 
the entire file isn't valid XML, so I need to use regex.
 
Unfortunately, if you're trying to parse a document that contains invalid entities, is likely broken structurally, and cannot otherwise be parsed by an XML parser (all due to the binary data) then regex or some other text parsing engine is probably your only bet.
 
and I can do a ReadLine(), get a string like <tag1>hi</tag1>, and I just need to extract hi. I will never have multiple tags in one line
so, @KendallFrey gave me a regex pattern is giving me the entire line, whereas I just need hi
 
@N00B.NET Once you get this figured out, knock the person upside the head who wrote the XML generation procedures.
 
3:09 PM
@N00B.NET don't use regex for this!
there are hundreds, yes HUNDREDS of better ways
 
after yesterdays discussion regarding xna's death and its alternatives
0
Q: Monogame tutorials /walkthroughs for normal Windows 7 development (not Windows 8, Android or iOS)

Ankur SharmaCan somebody point me to some good Monogame walkthroughs or tutorials? The reason I am asking this question is because when I try to create a new project in VS2012, I get the following options But all the tutorials or walkthroughs (like this one) have the following options and develop using x...

every freaking tutorial is on Android or Win 8
 
lol. the file is generated via hardware
as in, the embedded programmer creates these tags and uses them in his hardware
 
@N00B.NET Good you know who it is; go knock him upside the head.
 
look at the broken-ness rubular.com/r/dUvIqS8UfZ
 
i can't expect him to write a XML library in C
 
3:12 PM
@N00B.NET No, but you should expect him to write something that produces a binary stream, which can be consumed by an adapter and translated into XML using proper encoding such as base64
 
@N00B.NET Read my instructions.
 
@deltree As I said, there won't be multiple <> on one line
 
If you don't follow the instructions, my regex won't work.
 
then I win ?
*dances
 
no?
that doesn't look broken to me
@KendallFrey how is groups[0] not the first group?
 
3:14 PM
me forever alone... :(
 
> If the regular expression engine can find a match, the first element of the GroupCollection object returned by the Groups property contains a string that matches the entire regular expression pattern
rtfm
 
@N00B.NET Because Regex engines make the first group the entire match. You want group 1
 
mine assumes one node per line, kendall's works regardless
 
Is this a pattern where groups[1] would be the tag1 and groups[2] would be the value inside the tag?
 
No
there is no groups[2]
 
3:39 PM
@KendallFrey :)
 
My code works. euphoria shot
 
:D
 
s/\be/c/ s/p.* /m/
>.> <.<
 
@N00B.NET seriously, you can learn regex in like 2 hours regular-expressions.info/tutorial.html get off your lazy ***
 
3:50 PM
@JohanLarsson Not so much.
 
@KendallFrey not bad, not bad.
 
@deltree But, reading is such as hassle! I have to you know, read words, define the meaning and construct sentences, AND THEN, let my brain work to interpret and understand the information! Learning is such a big deal >_<
 
Iexpected bad for some reason :D
 
@RoelvanUden You're absolutely right. I give up. We should stop learning how to do things, just die off as a species
 
@deltree that has already happened for the majority.
 
3:54 PM
it sure has
 
@Billdr hey man!'
 
Howdy
 
i thought you made it rich off of btc and left us forever
 
Naw, went dark while looking for work. I ended up taking a security analyst gig, not much call to be here. But I'm doing some web dev stuff in my off hours and some php for the security firm.
FYI: PHP is the fucking worst.
2
 
3:56 PM
@deltree I just wrote the code in 10 minutes and I won't need to touch it again nor use regex for this project. I thought it would suffice to ask a quick question rather than spend 2 hours on it at this point tyvm.
 
@Billdr lol
 
@N00B.NET you are the epitome of a crappy programmer
and a bad person to boot
 
@deltree man so rude....
 
That's just rude. You don't know that, he might be a really nice and gentle person.
 
you don't understand the situation, how about you take my project on with the deadlines I have and see how you go about using resources
 
3:58 PM
@N00B.NET all of my projects have deadlines you moron
I didn't spend time working for NASA, Citrix, DoD, and Boeing without encountering deadlines
 
i never said they didn't?
you moron
 
you're a terrible programmer if you do not desire to learn a new skill
 

« first day (957 days earlier)      last day (3991 days later) »