« first day (1600 days earlier)      last day (3334 days later) » 

12:01 AM
@BradleyDotNET Yep - look at the graphics on slides 12 to 16
 
because those totally made sense ;)
 
you're assuming that you can select the median and pivot around it in linear time
I think they do though... ;)
But I like this kind of stuff
I guess it is really mathy though
 
Thats the sort of stuff I leave to CS majors
and trust that it works :)
I'm an engineer not a theorist dammit (okay, not quite a McCoy saying, but close)
 
@BradleyDotNET Are you kidding? I have to implement finding the k-th order statistic in worst case linear time every day!
;)
 
Glad I don't have your job ;)
 
12:37 AM
hey gotta quick question! Using streamwriter to create a text file, but got a small problem. I can't figure out how to update the text in it. I think I've figured it out (delete the file then create new one again), but want to know if there's easier way! So, What's the easiest way to delete all the text in a text file in c#? (the file contains one number that needs to be updated every time the program closes).
 
If you are going to do that, just overwrite it
 
thank you sooo much! I knew there had to be easier way!!
 
Hi Everyone,
string projectPath = @"E:\Others\";
DirectoryInfo projectInfo = new DirectoryInfo(projectPath);
string b=@"*.csproj,*.vbproj,*.master,*.aspx,*.config,*.ascx,*.resx";
string[] projectFileType = Regex.Replace(b, ",", "\"\\,\"").Replace(@"\", "").Split(',');
Console.WriteLine(projectFileType);
FileInfo[] projFiles = new string[] {projectFileType.ToString()}.SelectMany(i => projectInfo.GetFiles(i, SearchOption.AllDirectories)).Distinct().ToArray();
this is my code
am getting illegal characters exception
could anyone please provide an idea to resolve this?
 
12:55 AM
hi gang
 
@Karthi Probably need to check your escape sequences
Hi @Osadellah
 
I need your opinion guys
give me a second i will publish something first
brb
 
1:10 AM
@BradleyDotNET, yeah i tried the most. But i could not resolve this
 
1:23 AM
@Karthi Your regex is too gibberishy. Its short, so I would start again, being super careful
Which invalid character (should be in the error message) might also help
 
 
1 hour later…
2:25 AM
I just love when everything except google and facebook doesn't work.
 
 
2 hours later…
4:02 AM
Can someone help with this question: stackoverflow.com/questions/28845779/…
 
5:00 AM
LIFEHACKS: You can just take all the luggage off the airport conveyer belt and leave with it. They don't check that it's yours at the door!
2
 
5:40 AM
morning
 
hmm, where was it that someone had mentioned a good hosting offering...
 
 
2 hours later…
7:34 AM
morning
 
Morning @SebastianL @BenjaminDiele
and everyone else
 
morning @scheien
 
 
2 hours later…
9:11 AM
RIP C# chat
 
9:25 AM
You will be remembered.
 
For my heinous code probably
 
Hi.
Is it possible to bind parent's property to child property?
<Parent Prop="{Binding ElementName=child, Path=ChildProperty}">
    <Child x:Name="child" ChildProperty="1"/>
</Parent>
Something like that.
I could do a two-way binding from child to parent, but in my case Child's property is readonly.
 
Sometimes i feel like i am in a self-help group named C#-Chat. Because Everybody tells their story but nobody gives a shit except your lucky, then everybody wants to help you. AND if you're very lucky kendall is afk
 
If you are talking about not getting answers on question like mine above, Sebastian, then yes, I experienced it quite few times. :)
 
It's only natural that ~20-30 people may not have the answer to everything. If you need a higher chance, albeit with non-direct feedback, you can use the thousands and thousands of people pool by posting a SO question. ;-)
 
9:39 AM
Yeah, surely. It just feels a bit awkward when you post a question and everyone keeps talking, kinda ignoring you. :)
 
@Denver I think that's mostly because they don't know the answer either
 
Pretty much ^
 
I know, I know. It is just like part of me always expects at least a little discussion.
 
Yeah, same here. But I feel even stupider discussing something I know nothing about
that's why I only make lame jokes
 
:)
 
9:55 AM
top o' the mornin' to ye, gents
 
Whatddup Squiggie
 
ey up thur
doffs
Looking forward to a 4-day weekend.
 
Nice. You lucky sod. :P
Planning anything good?
 
4 nights in Paris
:D
any recommendations?
 
Oh, cool! Nothing yet, I'll go later this month/next month. Haven't been there.
 
10:04 AM
I've never been, either. Looking forward to it!
Hey you might know... are there any tech conferences happening around Europe that it would be worth attending this year?
I missed the Angular conf in Paris last year
 
There are plenty, I guess? Haven't ever been to one. Colleagues talked about Microsofts Tech Days (Dutch, but I'm sure there are other language versions too) being totally awesome.
 
Looks like the TechDays are all in the native languages - would have to go to the UK one if any
I miss Barcamps
 
THE
C# code powerful enough to access a file 100 times at a single time ?
 
"at a single time"
 
@THE Uh. Any decent language can access a file in parallel. It makes no sense to read the SAME file in parallel though, but sure, it can.
 
10:23 AM
it depends upon your cpu speed and file size also.
 
Accessing does not mean reading the entire file into memory. He might be streaming lines from it. Which is easy. Ambiguous much anyone?
 
@THE what do you want to achieve with that?
 
@RoelvanUden It's the same girl that was asking other stupid questions a month or so back. With the parallel executing for pdf's.
 
Right..
 
Morning dudes.
@RoelvanUden Yo dawg we herd u liek accessing files?
 
10:31 AM
morning @Sippy :D
 
@Sippy So we put a file in yo file, so yo can access while you access?
 
@RoelvanUden Seems legit.
@SebastianL Good morning sir
 
I think @THE is a Markov chain chat bot trained on SO questions.
@erowidrecruiter, The Uncanny Valley
A Markov-powered mashup of Erowid trip reports and tech recruiter emails. Run by @aphyr, who's not affiliated with Erowid. Heck, he's never even smoked pot.
147 tweets, 6.2k followers, following 0 users
absolutely love that one.
 
"Alex, I'm doing a search for Senior Java Developers and I literally become ‘lost’ in the toilet"
"Of course, there’s also the possibility of a monster drowning a baby in a $1 trillion dollar market thats experiencing exponential growth"
 
10:46 AM
"exponential growth" the market or the baby :D
 
Why are late answers so hard to review :(
My arm-hair is very heavily funded
 
:D
 
11:01 AM
I vaguely recall the concern that I had to stay in touch.
@Squiggle I'm gonna be at this all morning
This is amazing
 
11:13 AM
sorry
 
Alex, I'm doing a search for Senior Java Developers and I literally become ‘lost’ in the toilet
 
XD
 
 
2 hours later…
12:52 PM
hi guys
can anyone help me with a simple question with arrays
 
@MishMish How simple? lol
 
> Don't ask if you can ask, it is recursive
 
haha
I have select query and want to add it an array of strings
string[] LabelValues = new string[100];
  string[] LabelValues = new string[100];
                                        using (SqlCommand sqlCmdlbl = new SqlCommand(" SELECT header from table where par1 =@par1 and par2 = @par2 ", connection))
                                        {
                                            sqlCmdlbl.Parameters.AddWithValue("@par1", consID);
                                            sqlCmdlbl.Parameters.AddWithValue("@par2", serviceID);
                                            using (SqlDataAdapter sqlDalbl = new SqlDataAdapter(sqlCmdlbl))
 
Hello does any one have an idea on animations WPF charts? I want to use them but could not able to get any help
 
here is my code u can see below i do a fill for my datatable but i want to add it to the array instead
 
1:01 PM
Use a List instead of the array
 
you mean ArrayList?
 
then you can use a SqlReader and a loop, and call Add to fill the array
@MishMish NO NOT ARRAYLIST
List<string>
 
You may also want to look into a data mapper so you don't have to write SQL queries by hand. It's really quite stupid to do imo.
 
Alright thanks ill try it out
 
It might be as simple as LabelValues = sqlCmdlbl.ExecuteReader().ToArray()
but you'll probably want to Dispose the reader, so that's bad code
 
1:16 PM
I did not get any answer from here, does it means that no one has worked on it right?
 
@Ganesh You haven't posed a question. Don't expect an answer then.
 
@Ganesh I did some stuff with animations way back. As for charts, only some home-baked graphs with Canvas, no libraries or anything.
 
my question was what I have posed above, I dont have posted in stack over flow all I am looking if some one does any kind of research, it would greatly help me in doing certain things @Be
@BenjaminDiele
@KendallFrey
could u please let me know or share some of the links that does the same job of what you are saying?
 
I was just saying that you should ask your question. What have you tried, what error do you get, what do you want to achieve.
 
I have tried with the default datapoint overriding to shows some kind of animations with double animation
but I need some more kind of animations to be added to different chart controls that I am using now.
I did not get any kind of errors
 
1:25 PM
@Ganesh Do you have a question? If so, ask it.
 
hi guys
 
Suup
 
anybody knows how to add substring character in a String?
 
How can I set different kinds of animations for pie chart, column series etc?
 
@FrancescoDS I'm 100% sure you can google that.
 
1:28 PM
I've read wikipedia article about unicode...but there is no subscript for all chars
 
@FrancescoDS What do you mean? Your question is confusing.
 
I need to write a String with some subscript chars
I've read that there are unicode codes that could be used to write subscripts
but they do not cover all chars
for example, for the char '2' the unicode is \x2082
 
Subscript is not the same as substring
 
oh sorry...
I've written substring...but I mean subscript
 
@FrancescoDS you are correct, not all unicode chars may have a subscript representation. Why is this an issue?
(damnit you've got me doing it now)
 
1:34 PM
because I need to write 'b' char in subscript into a String
that String is used to be written in a docx file
Is there a way to use as subscript all chars?
 
depends entirely on your encoding, I guess.
 
I think I'm using utf-8
 
then no, you can't subscript anything.
urgh encoding is hard
\U+209b I think
 
how can I use it into a String?
 
var littleb = "\x209b"; //might work?
 
1:41 PM
with \x it works
not with \U
escape seq. not recognized
 
\u not \U
it does not write b char but a box with ?
 
to where does it write the output/
?
 
I'm using a plugin to write to a docx file
it is called docX
 
1:56 PM
If you're using Word documents, don't use Unicode subscript, use the subscript functionality in Word.
 
I'm not using word...I'm using a plugin that writes a docx file...and I cannot use Word functionalities
if anybody knows how to create a docx file simply I am opened to change the plugin ;)
 
@FrancescoDS It doesn't matter if you're not using Word directly, the docx file format supports subscript, and you should use that.
If the plugin doesn't support it, it might be time to try a different one.
 
if you can suggest me something different...
I haven't found anything for it
 
2:36 PM
I need some help. Stop what you're doing and listen to me. Everyone. I've done no research but need an answer immediately

he he - you guys like it when people talk like this right?
My question is, how is everyone
:)
 
Can I kick him?
Roadhouse!
 
ha ha ha
:D
Now I want to watch Family Guy
 
@MyDaftQuestions post it on SO.
 
!!learn roadhouse <>http://media.giphy.com/media/sfnwnXtqQ8pO/giphy.gif
 
@Sippy Command roadhouse learned
 
2:38 PM
!!roadhouse
 
I... I don't get it.
 
It's from family guy.
 
@Squiggle, do you watch Family Guy?
 
2:39 PM
Evidently not enough.
 
In the movie Road House, Patrick Swayze runs round kicking everything. So Peter copies him and kicks everything.
 
You should really watch it more
lots more
 
Oh. OK.
 
in fact, begin now, take audio rips to listen to it at work - let it consume you
 
no thanks
I value my brane
 
2:45 PM
@Squiggle Why are we talking about string theory?
 
Hello
@KendallFrey: Hi.. yesterday we had chat about theming in wpf
I tried it but a little issue is there.. i dont know what.. can you help?
 
@MangeshGhotage Not if you don't ask your question :P
 
What about it?
 
2 people answered your question
 
2:55 PM
I'm trying Brock Hensley's solution.
I'm trying to change window's background. initially it is blue & on button click it should go red. But it goes white(default)
i dont know where i'm getting wrong
 
Me neither, I'm not a mind reader.
 
This is my dictionary
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="blue_color" TargetType="Window">
<Setter Property="Background" Value="Blue"/>
</Style>
</ResourceDictionary>
 
You shouldn't be using a key, methinks
 
@KendallFrey: It worked :)
 
You should let all your styles automatically apply
 
2:58 PM
"Shouldn't use keys?"
 
If you don't specify a key on a Style, it applies to all controls of the target type
 
I made name of keys same. that was the issue.
Okay let me try that
 
If you don't want that, you can use a key, but it has to be the same in every theme
 
which is called implicit styling
 
okay. i have removed keys & also Style attribute from MainWindow.xaml
Nothing is getting applied :(
all white around
 
3:05 PM
well it now depends on your resourcedictionaries and where you're defining your "keyless" (implicit) styles
 
@NETscape: Do i have to declare dictionaries in App.xaml?
 
Morning everyone.
 
@MangeshGhotage your main style yeah.
 
muh
 
or have two resource dictionaries, and apply them during runtime in code behind, so someone can switch back to default if they want.
 
3:10 PM
Well. If i add <ResourceDictionary Source="dict1.xaml"/> in App.xaml, designer is showing window background red but when i run, all white!
 
Are you sure that file exists at runtime?
 
might be!
my App.xaml.cs is
public App()
{
Uri dictUri = new Uri("dict1.xaml", UriKind.Relative);
ResourceDictionary resourceDict = Application.LoadComponent(dictUri) as ResourceDictionary;
Application.Current.Resources.MergedDictionaries.Clear();
Application.Current.Resources.MergedDictionaries.Add(resourceDict);
}

public void ChangeTheme(Uri uri)
{
ResourceDictionary resourceDict = Application.LoadComponent(uri) as ResourceDictionary;
Application.Current.Resources.MergedDictionaries.Clear();
Application.Current.Resources.MergedDictionaries.Add(resourceDict);
 
are you sure that file exists relative to app.xaml
.... is it an embedded resource, is your source URI right for that embedded resource?
... (getting that part right was a set it and forget it operation on my last WPF project)
 
@TetsujinnoOni: I dont think URI will be an issue. I got it working if i specify keys
I dont need to specify anything in MainWindow.xaml right? (like style, dynamic resource etc..?)
 
1
Q: Client side validation on button click before AJAX request

Ahmed ilyasI'm using MVC 4 and I want to be able to validate a single row, from a collection of rows in a table, to ensure that the fields are entered correctly and pass validation. The Attributes are correctly applied on the model, for example: [Required] [MaxLength(50)] [MinLength(5)] public string Name...

If you read the comments on my answer, can anyone think of a way to do that he would agree with?
 
3:21 PM
Not without more hacking. Partials are the way to accomplish that, no?
 
if your editing view is a single row, why not make that row the only form?
 
I think he is emulating a row using textboxes, with a button at the end for adding the row to the table.
So the other way I can think of is using unobtrusive to add the rules using JS
 
3:48 PM
So I've switched branches to work on a production fix, and running the web project from Visual Studio. It's still serving up the previous solution I had open - not the one I actually have loaded.
 
@Squiggle Awkward.
 
I've explicitly exited the VS IIS instance, shut down and opened up VS again
the only thing that seems to fix it is a reboot
Does anyone know why this is? Or how I can fix it without another cocking reboot?
 
fuck
It's not caching anyway
 
haha
 
Hello folks
 
3:50 PM
it's actually running the previous binaries
 
any good resource for drag and drop tutorials in wpf?
 
Whats a good handbook for remembering SQL queries
 
@Pinky practice :)
 
@Squiggle I can't even think why it'd do that other than some failure in VS
 
@Sippy inorite?
 
3:51 PM
You using git or TFS?
 
TFS
but the branch and trunk are checked out to different locations
 
13
Q: VS 2012 launching app based on wrong path

LeonardoI have a app which is under source control (TFS 2012 also) on c:\Dev\MyApp\Main. Because im developing a new feature I decided to open a branch on c:\Dev\MyApp\BranchNewFeature. I developed and when I decided that it was time to test it was like i hadn't done any changes at all. I hit F5 and i ...

 
@Squiggle theres different levels to practice ;)
 
I was right in saying it's a bug, then.
You might be able to override the IIS config using your applications' web config which would be a better solution than the one listed.
 
@Sippy nice one. I was searching on the wrong terms.
 
3:53 PM
My google-fu is strong.
 
I hope vNext fixes this crap.
 
Morning
Happy hump day.
 
Mornin' @SpencerRuport
 
@squiggle i'm thinking your iis applicationhost.config is not being rewritten
 
@TetsujinnoOni you are 100% correct.
I fixed it by .csproj properties > Web > [Create Virtual Directory]
that fixes the path in applicationhost.config
 
4:06 PM
[sarc]@Squiggle the fun of cleaning up applicationhost.config periodically is not to be missed.[/sarc]
 
:-[
 
Was gonna say, I'm guessing that just adds another site to <sites>?
 
@Sippy yeah, with a fairly high chance of being a site name suffixed with a (#)
 
Lol
 
since I prefer to launch iisexpress directly with sitenames so I can tell which one i'm picking when i attach to process....
 
4:08 PM
seems like VS could do a better job of this.
 
@Sippy only if it surfaced IISExpress management more....
 
Hi all, what's up?
 
@TetsujinnoOni the issue was that I was working against trunk and branch of the same solution - both were configured with the same site names.
n/m
 
@Squiggle yeah, that's precisely the scenario where it'll create SiteName(1) and SiteName(2) sites in iisexpress
 
@ton.yeung: Depends on the amount of alcohol?
That would be nice I guess
 
4:12 PM
Glare. hard to bring two monitors and a laptop outside. not recommended.
;)
 
Hm
I should go home
Done nothing all day and just sat here reading about pistol shrimp.
 
Alpheidae is a family of caridean snapping shrimp characterized by having asymmetrical claws, the larger of which is typically capable of producing a loud snapping sound. Other common names of these species include pistol shrimp or alpheid shrimp. The family is diverse and worldwide in distribution, consisting of about 600 species within 38 or more genera. The two most prominent genera are Alpheus and Synalpheus, with species numbering well over 250 and 100, respectively. Most snapping shrimp dig burrows and are common inhabitants of coral reefs, submerged seagrass flats and oyster reefs. While...
 
@ton.yeung I dunno it's cool
That thing makes a noise so loud that it produces sonoluminescence
That's ridiculous.
 
I know about that one as well
He's not that cool.
Ooo
Don't get a pistol shrimp
He'll break your aquarium :D
Prolly not
They eat fishies
 
4:22 PM
@Sippy a single comma could make that so threatening
 
@KendallFrey Lol
 
!!wiki sonoluminescence
 
Sonoluminescence is the emission of short bursts of light from imploding bubbles in a liquid when excited by sound. == History == The sonoluminescence effect was first discovered at the University of Cologne in 1934 as a result of work on sonar. H. Frenzel and H. Schultes put an ultrasound transducer in a tank of photographic developer fluid. They hoped to speed up the development process. Instead, they noticed tiny dots on the film after developing and realized that the bubbles in the fluid were emitting light with the ultrasound turned on. It was too difficult to analyze the effect in e...
 
neato.
 
I always fancied a Nautilus as a pet, but they're quite hard to keep.
and I'd feel guilty. Also they're probably protected.
 
4:25 PM
Afternoon all
 
!!wiki Nautilus
 
The nautilus (from the Latin form of the original Greek ναυτίλος, 'sailor') is a pelagic marine mollusc of the cephalopod family nautilidae, the sole extant family of the superfamily nautilaceae and of its smaller but near equal suborder, nautilina. It comprises six living species in two genera, the type of which is the genus Nautilus. Though it more specifically refers to species Nautilus pompilius, the name chambered nautilus is also used for any species of the nautilidae. Nautilidae, both extant and extinct, are characterized by involute or slightly evolute shells that are generally smooth,...
 
@CapricaSix Those are awesome, would be cool if they were actually huge though :(
 
Quick question, I installed WebDeploy on Win2012 server. I added a IIS User and am able to publish from Visual Studio file. I noticed under users there are two users called 'WDeployConfigWriter' and 'WDeployAdmin' What are these users, and do I need to do anything with them. For example what is the password set for them ?
 
@Tommassiov - This article should give you some explanations: workinghardinit.wordpress.com/2011/07/18/…
 
4:33 PM
thanks i will take a look
 
@SpencerRuport That sucks.
Conclusion: web deploy setup creates service accounts with passwords that expire. Faaail.
 
Could've been fixed by now. That article was written in 2011
 
4:51 PM
Choosing a boat name is more difficult than choosing a boat
 
"Melvin"
 
in a TreeView clicking the child company node does not cause a postback but clicking the grandchild does; is this accurate?
 
The Admiral (my wife) likes "Venti", "Machiatto", "Espresso"... but they dont sound very 'boat name' to me
 
@CharlieBrown "Bazinga"
aww
 
lol, there is a "Boat" in the marina, melges 24 racer
"C19 this is sailing vessel The Boat, over" I can see that sounding fun on the radio
 

« first day (1600 days earlier)      last day (3334 days later) »