« first day (1280 days earlier)      last day (3674 days later) » 

12:00 AM
you need rebase in your life
i would also say <5%. and if you exclude .resx and .csproj, more like 2%
 
12:25 AM
yeah - I suspect 90% of the conflicts I have are project files
@Pheonixblade9 what version control system?
 
12:56 AM
Alright guys, should I make the jump from '12 to '13?
 
yeah, why not
 
Is it radically different in any way?
 
not really
 
might as well than
 
It's mostly 2012 with a few theme changes, and some extra features
 
1:01 AM
I think '10 is still my favourite, but while I have to redownload, why not get the latest
 
 
2 hours later…
2:38 AM
Hello everyone. I was thinking about learning C# as my second language (JavaScript being my first one) Because I would like to work with the Unity3D engine. Is the fact that it is owned my Microsoft something I should worry about? ( @ me plz if you reply )
 
2:49 AM
@Schoening why do you think you should be something you worry about
 
3:14 AM
@NETscape because I would like to gradually transition into Linux. And because how Microsoft is handling Internet Explorer and DirectX and becomes steadily more of a closed system.
 
4:09 AM
What's the best async alternative to a ManualResetEvent?
 
 
2 hours later…
5:51 AM
Anyone here?
 
6:08 AM
@NETscape Because WPF is usually C# and I find a separate room for it ridiculous.
 
No, become reg now. The WPF room is nice.
Np to be reg in multiple rooms.
Are you working today?
 
I am
Having too many tabs open for chat at work is a bit urk anyway :P
 
but it is the same tab, the rooms just pile under the user gravatars ->
 
I only see messages from one room :P
 
I need some help with a program I am writing that i have no clue why its creating a error.
Or is this not the correct place for asking questions?
 
6:18 AM
sure never hesitate to ask here, chat is pretty slow now though
 
It is a place for asking questions, but just like on the main SO q&a section, the people here aren't psychics (if only...) and need more details to help. :)
 
@RoelvanUden Maybe you like this
I have not seen it but they said it was pretty good.
 
I'm getting:
IndexOutOfRangeException was unhandled
If you need any code or pictures i will provide.
 
@JohanLarsson jotted it down, will watch once I get off work ^^'
 
@JamesBitner gist it
 
It means you ask for array[i] where i is <0 or >= arraly.Length
 
Line 61
 
I tyhink you have to start at for (typedLength = typed.Length -1 ...
also what does the code do (in words)
 
Yep, max indice is always length-1
new int[2] means you can access [0] and [1], and not [2]
while its length is 2, so thatInt[thatInt.Length] = indexoutofrange
 
I this can be written with very clean linq
 
6:27 AM
Once I'm done with it it's going to turn a password into a really complex one.
Exp: Panda will turn into F,60,1D,4 ect
@RoelvanUden So i need to make it's range allot bigger?
 
Hash them?
 
@JamesBitner if you want to waste space... you probably just need to think about what you want to store and accomendate your code to that :)
 
No i will add more things to it like.
a = "[<0,1>]"
A = "[<:0,1:>];
 
If you're doing password hashing, seriously, use something proven instead of your own rolled (weak?) algorithm. You'd do yourself a huge favor.
 
The point is not to make a algorithm more as it is to make a really long hard to crack password
 
6:32 AM
Stop what you're doing and get bcrypt if that's your goal.
Use a nice salt and 10k+ iterations, and nobody is going to crack it in the universes lifetime
 
Its also not for a website or big thing like that just for personal use.
 
7:00 AM
Hi Guys
Can anyone here please recommend me any book for MVC
I am a newbie
 
apress pro asp.net mvc 4 or 5 or whatever number they are at now
 
7:38 AM
morning
 
morning :)
 
How's everything going @RoelvanUden
 
8:11 AM
Hi can someone please help me with something?
 
where do you live
 
does it matter?
 
hehe
ask your question habibi
 
well I'm from New Zealand
 
nice
 
8:14 AM
@RaZor Fine, thanks. Did a project publish to test without breaking everything, it was a good day. :P
 
Here's my code: http://pastebin.com/RAgih2NR
The error is that I'm trying to do a search in a RichEditBox but it says that there are errors in "Text" and "inlines"
 
@RaZor How are things for you? :)
 
what error
 
Im guessing because it's a string ?
 
what is in Content.Text
 
8:17 AM
Before the code was "SearchTextBox.Text" but since I'm using a RichEditBox there isn't a way to directly get the text. So i had to add:
string str1;
            writebox.Document.GetText(Windows.UI.Text.TextGetOptions.FormatRtf, out str1);
 
string[] substrings = regex.Split(Content.Text); ?
are you trying to split words?
 
@RoelvanUden Awesome!
 
no Im trying to search for the text in the RichEditBox
like a search feature in word, like that
 
@RoelvanUden Pfff.... couldn't start any worse lol. Almost too late at work because of a late night haha. But I managed to be on time :) I hate being late..... And now I'm still struggling with a few things for my project..
 
if you set a break point on string[] substrings = regex.Split(Content.Text);
en step in to it
is it filled with words?
 
8:19 AM
for a moment: "Why are there so many people chatting here on a weekend?"
 
@RaZor Aiyai, rocky start. Good late night though? Just think, "weekend almost here", haha :)
 
no the program wont complie because of this: dl.dropboxusercontent.com/u/82716142/…
 
what weekend
its friday
 
take a look at that picture
 
public holiday
 
8:20 AM
you have eror on methods
not compile errors
 
@TomW For you, perhaps..
 
yes
 
@RoelvanUden It was a terrific late night haha, was playing the most addictional game I can think off hehe! And yes at 16:30 my pc automatically saves a open documents and C# Projects and then just shutsdown with the Message: Get your ass out of here, it's WEEKEND!!!!
 
holiday in Sweden too
 
@RoelvanUden ....yes, that was obviously what I meant?
 
8:21 AM
we dont have holday today
I am at work
 
@RaZor What game was that? Also, perfect policy :D
 
@RoelvanUden Diablo 3: Reaper of Souls
and yeah that's what I thought lol! Designed and programmed myself haha
 
@Ahmed.C Content is richttextbox?
 
its a RichEditBox
 
are you copyying this code from a website
you have a WPF app and maybe you are using Wi nforms code
 
8:23 AM
no it was from one of my previous ones. A question i had asked. It works fine with a normal RichTextBlock
1
Q: Is there a way I can highlight specific text in a textbox?

Ahmed.CA Windows Phone Question C# I have a TextBox named "Search" and another TextBox named "Content". If the user adds text into the "Content" TextBox, is there a way, using the "Search" TextBox to search what the user typed in the "Content" TextBox and highlight that specific text? e.g. When the us...

 
•Content is a TextBlock
 
@RaZor Ahh, I considered it... to expensive though. :)
 
not a richtextbox
 
@RoelvanUden It aint that expensive anymore
 
right..
 
8:24 AM
@RaZor 50 euro is expensive :P
 
so is there a way to do it through a rich textbox?
 
For the complete package lol
 
possible check the methods on the richtextbox
 
@RoelvanUden look at this: onlinekeystore.com/browse/term/diablo+3
46 euro's for the game itself AND the expansion
 
here you go a video tutorial for you youtube.com/watch?v=kfbkLxH8xDI
 
8:26 AM
@RaZor That's too much ;D
 
google is your friend
 
you're kidding right @RoelvanUden
 
it sure is.
Ill see how it goes
 
@RaZor no, 50 euro for a game I might not play for more than 2 hours? no thanks. I like the cheaper ones for ~30 euro since it doesnt hurt as much when it totally sucks
 
well, to play diablo you only have to pay 25 euros, then IF you enjoy the game and would play more then you can buy the expansion
 
8:29 AM
no point in half a game ;D, the original wasn't good enough in the 1-day trial thing, so I am wondering about the expansion changes (that do seem interesting), but the price is meh.
 
@RoelvanUden to play a good game, you have to pay for it lolz
 
Of course. I still play GW2 :P
 
and if you don't like the game when you bought it, i'll buy it from you... I need a second account but don't wanna play the full price AGAIN...
GW2 is pain in the ass....
@RoelvanUden zullen we anders ff in een apart chat gaan zitten, ben wel benieuwd naar je interesses qua games enzo :)
 
the expansion gives you the 5th act, the crusader, and access to adventure mode when you've beaten the 5th act boss
 
@LasseV.Karlsen you play D3?
 
8:34 AM
not so much right now, started ESO now
but yes, I've played some D3, not like the hardcore players, but I got 2 level 70's
 
ok you play on the EU server?
 
nice, maybe we can play together sometimes!
 
sure :)
but as I said, I play ESO now, so little D3 for the time being
 
ah okay, well
maybe in the future then
But I can't go play more games anymore lolz......... That would cost me my job since I'm very easy addicted to games :p
 
9:35 AM
Need a mildly derogatory single-word term for a menial office worker that will make sense with no context
 
Induhvidual? :)
 
9:55 AM
Hello
GetGamesListItems.Clear();
var feedXml = XDocument.Parse(e.Result);

var gameData = feedXml.Root.Descendants("Game").Select(x => new GetGamesList
{
ID = (int)x.Element("id"),
GameTitle = (string)x.Element("GameTitle"),
ReleaseDate = (string)x.Element("ReleaseDate"),
Platform = (string)x.Element("Platform"),
Front = GetTest((int)x.Element("id")),

})
.ToList();
foreach (var item in gameData)
{
GetGamesListItems.Add(item);
}
public Task<string> GetTest(int id)
{
var tcs = new TaskCompletionSource<string>();
var client = new WebClient();
client.DownloadStringCompleted += (s, e) =>
{
if (e.Error == null)
{
var feedXml = XDocument.Parse(e.Result);

var gameData = feedXml.Root.Descendants("Images").Select(x => new GetArt
{
BoxArtFrontThumb = new Uri(GetBoxArtFront(x)),
})
.ToList();
foreach (var item in gameData) GetArtItems.Add(item);
foreach (var i in GetArtItems)
{
tcs.SetResult("http://thegamesdb.net/banners/" + i.BoxArtFrontThumb.ToString());
can someone tell me why my method GetTest() is not working?
I get this error: Cannot implicitly convert type System.Threading.Tasks.Task<string> to System.Uri
 
10:26 AM
@Thunder Because this line: "client.DownloadStringAsync(new Uri("http://thegamesdb.net/api/GetArt.php?id=" + id.ToString())); " is not correct. You need to do this: client.DownloadStringAsync(new Uri("http://thegamesdb.net/api/GetArt.php?id=" + id.ToString()).ToString());
an URI is not a string. so you need to convert the URI to a string
 
First of all, thanks for answering :). But when i do this: client.DownloadStringAsync(new Uri("http://thegamesdb.net/api/GetArt.php?id=" + id.ToString()).ToString()); im getting this error: The best overloaded method match for 'System.Net.WebClient.DownloadStringAsync(System.Uri)' has some invalid arguments
 
holdon I'll figure it out...
 
Thanks again for your help :)
 
try this:

client.DownloadStringAsync(new Uri(http://thegamesdb.net/api/GetArt.php?id=" + id.ToString()).AbsolutePath);
 
Damn, i still get the same error :(
 
10:38 AM
then I'm out of options ;)
don't have more time to help sorry..
 
Okay no problem, thanks for your help :).
 
you're welcome
 
Thunder
GetArtItems is a listbox?
collection
 
11:02 AM
hi
@RaZor
 
:)
 
i have create one web product
but issue is
 
...........
thats one tough problem, i don't think its fixable, perma-broken
 
11:20 AM
Hi
ASP.NET
I have asp:Image and on page load I get details from database and I set the imageURl but the image is not displayed
 
@steve think so yeah.. a real brain crusher..
 
@Shift its a LongListSelector :)
 
hi guys, sorry for disturbing you, i have a question, i have a winform with lots' of labels and a picturebox which moves with arrow keys. (is like a labirinth) how can i tell to the picturebox that he can't go throught a label, i mean the labels don't let to go through them, any ideeas?
 
if both objects are at the same position make a method which stops the movement in that direction
 
like:
foreach (Control x in this.Controls)
{
if (x is Label)
{

}
}
if (picturebox1.Bounds.IntersectWith(x.Bounds))
@RaZor what should i write then?
 
11:32 AM
code :)
 
can you give me an example?
 
nope, working on my projects atm....
 
okey.
 
12:32 PM
I've got a question
is the code below "okay" to obtain the local network IP of a pc:

IPAddress ip = Dns.GetHostAddresses(Dns.GetHostName()).Where(address => address.AddressFamily == AddressFamily.InterNetwork).First();
Anyone!?!?!?
 
You can do First(a => a.AddressFamily == AddressFamily.InterNetwork) but it is the same thing
No idea about the ip voodoo
 
i had to do the exact same thing about a year ago, it turned into a pain in the ass and it was flakey, so if this works i'm totally stealing it
 
@Steve well, it works BUT
 
or no, i went the other way, getting the IP addresses of all computers connected to the network, then grab their network name
 
I have a Hamachi VPN and the problem is, is that C# thinks that the IP of the VPN is also a Local network IP
so it gives me that ip lol
 
12:44 PM
:/
 
indeed >_< face is usable in this scenario :p
so now I have to loop through all addresses and select the one that starts with "192.168"
 
@user3313264 hey
 
1:35 PM
@RoelvanUden i always thought the C++ lounge is to C# as C# is to WPF ;)
 
No way. We actually like the language the room is about
 
the lounge likes C#
 
I always thought Lounge<C++> was to C++ as AA is to alcohol
more of a support group
 
more like they get together and hate it ime
 
well yes, exactly. AA meets aren't a bunch of people getting together and talking about how cool their hobby booze is
 
1:39 PM
ok true
 
user1804599
AA?
 
user1804599
 
anonymous alcoholics or something I think
maybe the other way around
or something completely different
 
other way around is correct.
I have DateTime X, float<?> Y. should this be a struct, its for charting...
 
sounds right
 
1:56 PM
Good morning
 
2:12 PM
Good morning
For you guys, at least. It's already afternoon here
 
Oh Noes! It's the walking hormone!
 
hehe
Evan, do you know SQL?
 
Yes
 
I'm rather unexperienced with it, and I'm having trouble creating one of those JOIN queries
 
just type DROP TABLE users
=P
 
2:14 PM
Let me just create an image to illustrate the problem
Oh sure, I tried that
 
Ok
While he is drawing up his image... I am potentially starting a new job and they asked me to think of my "dream" development computer. Anyone care to share their idea of a dream dev box?
I keep thinking, well anything with a half decent processor/GPU and an IDE lol. But I think they want a bit more.
 
http://puu.sh/8dC3G.png

Let's say the logged in user has the id = 10 (account_id = 10).

I want to retrieve all rows from Player table which meet the condition: account_id = 10, get the "login" field from the Account table in which id (account table) = 10 and the password field (safebox table) in which account_id = 10.
Hm, dream development computer, a nice CPU, fast disk, enough memory and an IDE
:P
 
I know right?! Not like they are asking me about my dream gaming rig or something...
Let me write up this query @RodrigoSilva
 
Thank you :)
 
What is the right most table?
Player?
er left most rather
 
2:18 PM
Uh, what do you mean?
 
What is the base table. I'm assuming Player (think of it as the base class)
 
Yup, player is
 
OK.
One min.
 
I need all data from player and 1 field from each of the other
 
SELECT
	player.*,
	account.login,
	safebox.password
FROM player with (nolock)
INNER JOIN account with (nolock)
	on player.account_id = account.id
INNER JOIN safebox with (nolock)
	on account.id = safebox.account_id
WHERE player.account_id = @AccountId --In your case this would be 10
BTW, I used player.* to keep this shorthand. You really should list out all the player.fields
You can use LEFT OUTER JOIN also... but in this case I would think there would always be a row in each table.
 
2:24 PM
Hm, I must really have a look into this
Up until know I never actually needed to know much about SQL
Just the basics
 
It's really pretty easy... if you can do C# you can do SQL.
 
Yeah, matter of practice :P
 
That being said, SQL can get very compliacted. But SELECTs and JOINs are pretty simple.
Exactly.
Ask PheonixBlade to show you his query ;)
 
I've seen it already xD
 
Out of control...
 
2:26 PM
"BTW, I used player.* to keep this shorthand. You really should list out all the player.fields"
Why should I list the fields?
 
Because down the road you will probably only want some fields. Also for readability. Imagine someone is looking at your C# code but can't see your table, they might want to know which fields you are asking for from player.
 
I see
 
Unless you are using EF or LINQ-SQL. Then this is even easier.
 
I'm using PHP, this is a small project I'm doing
Cleaning dust off of PHP :P
 
Ah okay
Then nevermind ;)
Ah okay
Bah... brb need to reboot.
 
2:32 PM
Ok
 
<Button Name="btnAnswer4" Click="Button_AnswerClick">
<Image Source="chords/image.png"></Image>
</Button>

I have this code in xaml, now I want to change button image in c# code. How Can i do?
 
Bind the source to a property
 
Can you please explain?
I am little bit new
 
read MVVM and WPF resources
set your datacontext to a viewmodel and bind the image source to a property in your view model. when that makes sense, that's how you do it
 
It will be good if anyone of you provide any sample link
 
@EvanL thanks
 
you're welcome ;)
Friggin devenv.exe is a hog...
Devenv.exe: "Oh you have some RAM?! I'll take that".
 
I've noticed the most boost on performance by upgrading to an SSD
Even more than going from core 2 duo to I5 (2 years ago, I think)
VS now runs like paint :P
 
Yeah... my company is still running XP machines (not mine but most). They aren't about to spend money on SSD's for me lol
 
You're about to start working for a different company, right?
 
2:47 PM
Potentially... I'm going in for an all day interview next Friday. I think my chances are pretty good.
 
Well, add the SSD to the dream dev computer hehe
 
Lol there ya go!
noted
 
SSDs are a lot cheaper now
 
Yeah I have one in my home PC. Just not at work (which is where I develop most).
 
Now, as in: last time I checked was like an year ago
Hm, which kind of company do you work for?
 
2:50 PM
My current company is a Distribution company. I do mostly Data Access/Backend server programming, and tons of Business Automation projects.
I'm also the sysadmin
 
I see, and the one you might move to?
 
Robotics and Games. Not sure what my position would be there yet.
 
Sounds way more fun
More fun... hm, funner? Funnier?
 
More fun is correct ;)
Are you a native english speaker @RodrigoSilva? I noticed you are from Portugal.
 
Nope, my first language is Portuguese
 
2:56 PM
Your English is good then!
 
Heh, thanks :)
 
We're lazy here in the US. Most people in Europe can speak multiple languages, here we can barely speak English ;)
 
They kinda push English from the start
 
Makes sense I guess.
 
And I was lucky enough to live close to Spain, so I speak Spanish aswell :P
That's the best way to learn imo, I'm just used to hear it
 
2:57 PM
I speak Spanish fairly well... I live in Colorado so it's recommended to learn it ;)
 
hi guys
 
Hi brian
 
how to i edit the query which populates the datagridview
 
I kinda always wanted to learn German, but it seems way too difficult
 
I work with a girl from Germany... Love that language! Can't speak it.
@Brian do you have the query?
 
2:59 PM
ya
 
Then just edit it lol
Your question isn't very clear...
 
@EvanL thing about German: it seems they're always mad at each other xD
 
i used the used interface to populate the datagridview with the select query by clicking on the arrow on the top right of the datagridview
the default query is select wine from menulist
i want to change is to select wine from menulsit where wine<>'null
 
@RodrigoSilva I know... it's a very harsh language. But some of the words are hilarious.
 
i cant figure out where to go to edit the query
 
3:03 PM
It should be somewhere in your code... Look for a string with the query in it, or look for a .sql file in your project. Also check in Properties -> Resources
Geschwindigkeitsbegrenzung = Speed limit lol
 
@EvanL If I ever move to another country, I think Germany would be my choice
LOL
 
Can you imagine the size of the Speed Limit signs?!
 
They must have an image or something xD
 
lol
 
But I admire them (their mentality), a lot happened in the last decades and they're rulling Europe once again
 
3:18 PM
@Brian Did you find it?
 
ya i found the solution
 
Good deal
 
i opend the dataset which populated the datagridview > right clicked n selected configure n edited the query
 
Oh it was created in the designer. That would have been helpful to know.
 
hi all I have a question on SQL
 
3:24 PM
Hi
What is the question
 
i have a where clause that goes
"WHERE Last_Name LIKE %" id "% OR First_Name Like %" id "%
 
@EvanL ya
 
but how do I take the same where clause and say something like
OR First Name or LastName Like N%" foo bar "%
because what will happen when someone tries to type in john doe...it will return flase..unless they type in john or doe
 
What is the goal of this query? Return any records where the first name or last name is like what the user is typing?
 
yes
@EvanL or first and last name is like what the user is typing
 
3:28 PM
And is this a string in C# or is this just a SQL query in a SQL editor? I want to get the syntax right.
 
C#
i currently in test mode I am using the SQLDataSource...once I get the query down i will trash it and write my query using 'using' to prevent sql injection
 
"WHERE (first_name like '%" + id + "%' OR last_name like '%" + id + "%') OR (first_name + ' ' + last_name like '%" + id + "%')"
 
I will try this!
@EvanL thanks bro!
since using the sqldatasource is not best practice...i never understood why microsoft continues to include it? from everything I have read for the past 2 years online it should never be used outside of testing
 
3:56 PM
Csharpchat has stepped out for a bit.
Todays' task: How to get my iCloud contacts to sync with microsoft outlook in windows.
 
Woohoo!
We can now unit test our entire business logic layer.
So happy.
 
@Skullomania What do you mean sqldatasource?
@SpencerRuport Grats =)
 

« first day (1280 days earlier)      last day (3674 days later) »