« first day (1167 days earlier)      last day (4007 days later) » 
00:00 - 16:0016:00 - 00:00

00:00
damn
@AhmedCader Not sure if there is a sub keyword in the C# lang. I'm assuming you're coming from Visual Basic? :p
Haha - I could tell. The "sub" keyword said it all.
lol
basically : public sub Hello

then in a button event i just need to type hello and it has all the methods etc
thats what i ned
oh!
looks like its Public Void Test
    public class DemoClass
    {
        public void MethodThatDoesNotReturnAnyting(string s)
        {
            Console.WriteLine(s);
        }

        public int MethodReturningOne()
        {
            return 1;
        }
    }
poor names
00:09
much precise
very specific
wow
Public[0] Sub Something[2](ByVal hoo[3] As Class1[4]) As string[1]
equivalent
public[0] string[1] Something[2](Class1[4] hoo[3])
gah! screw it ill just not use shortcuts next time
:P
thanks though guys
keep asking man, will be many questions in the beginning
alright then
if i do i deff will :D
i also keep forgetting that this is just c# and not windows phone c# although there isn't much of a difference or is there ?!?! xD but yea i will if i need to :)
I don't think there's a difference.
Just like there is no real difference between people saying C# and Visual C# right? :p
Or is there? :s
00:17
haha :D
well i was gonna ask about listbox items and observablecollection
        private readonly ObservableCollection<DemoClass> _col = new ObservableCollection<DemoClass>();

        public ObservableCollection<DemoClass> Collection
        {
            get
            {
                return _col;
            }
        }
bind to the property Collection not the filed _col
so basically i;ve added a datasource and that connects to the class like so:
List<SampleData1> dataSource = new List<SampleData1>();
foreach (string filename in filenames)
{
IsolatedStorageFileStream fileStream = store.OpenFile("Shared/Transfers/_1xNotes/" + filename + "/Note Title.txt", FileMode.Open, FileAccess.Read);
IsolatedStorageFileStream fileStream1 = store.OpenFile("Shared/Transfers/_1xNotes/" + filename + "/Note Description.txt", FileMode.Open, FileAccess.Read);
using (StreamReader reader = new StreamReader(fileStream))
wait i should have just used pastebin rather than copy it sorry
my eyes. un-formatted code. send help.
haha yea
sorry
still time for ctrl+k
you can edit for two minutes
gist is better for that size imo
do you know about auto properties?
public string Name{ get; set; }
public string Name{ get; private set; }
nice C# feature
Oh so thats what it is :D i've been using the code converter
so im guessing it wouldn't have done that
tip: name the gist Classname.cs to get syntax highlighting
oh ok
and ill take a look
00:30
I think the Openfiles needs usings
what do you mean?
well i just need a way to use an observable collection instead of the method im currently using which was on gist
not enough context to give advice
im finding it quite hard to explain it right now agh...
just give me a minute or so xD
I might sleep then :)
hahah go ahead :)
i can wait
i mean i've got other parts to code so ya
00:42
C# chat is not lively :< I guess I've been spoiled because I hang around gd.se chat so much.
Oh well. See y'all.
C# is really cool. I can see how i could have done a lot more if i mained c# but ehh maybe i just dont know much about vb.net
cya
but i feel as if c# is messier than vb.net
just my opinions :P
you will get used to it, and then you will never be able to write vb again
it is true, just wait
i love to do both
but i wonder if that will ever happen
@JohanLarsson Do you know why this happens: puu.sh/5YEcr.png
00:54
don't use dynamic
prolly no Name property on Sampledata1
try SampleData1 data = (SampleData1) lb1.SelectedItem;
prolly needs a nullcheck
better to cast like that in that situation, fail fast is good
null check as in try catch or..?
if(data == null)
    return;
for example
if data is null and you do data.Name it will throw
if it can be null there idk
so return; is what makes it throw?
01:02
no return exits from the function
was just an example, only you know how you want to handle it
ahh
sweet thanks for that :D
 
1 hour later…
02:40
lurking
03:33
Happy (belated) Christmas! :D
04:30
@Steve sir, one person from my region was having a major problem, i just refered him to you , coz i was having guarantee you can solve that.
I need to unpack all the files inside of it ( game files ). How to write a program that needs to be able to unpack and repack the evp file.
@nirudyogi marathi aahes ka re?
ha ha no...telugu
ohh..nirudyogi is marathi word thats why
@nirudyogi
fine yar....
 
3 hours later…
07:50
can someone help me with my code? i just need the sql query to work..
Ron
Ron
Hi, my question is more related to WPF but you might be able to answer me aswell.
I want to crossfade between pages in my Windows Store App, how can I do it?
08:19
ah.. man.. really.. i really need help.. :(
??
need help with what??
@Ron animate opacity up on one and down on the other would be my guess
thank you! for replying..

http://stackoverflow.com/questions/20779276/categories-from-2-combobox-affecting-third-combobox-for-datagridview-with-sql
08:53
Hey! @JohanLarsson What does the term 'break;' mean ?
while(true){
   if(something)
       break;
}
it breaks out of loops
well then , i could ask the querry directly..

i wanted something like "SELECT companyName FROM table where mainCategory = firstcombobox and subcategory = secondcombobox" , how do i do the sql query?
I don't know SQL nor Winforms
as in I never used either of them
but lurk around for a while and someone who knows might show up, room will probably be quiet today though.
09:01
i could post the codings then.. for others later.. i really need the answer.. sadly..

so in terms of the SQL query , i know there's a nested Query , such as ((Select Name FROM tabe where = (something here i have no idea what to put), conn ))

So this is my code..

SqlDataAdapter daSearch = new SqlDataAdapter("SELECT companyName FROM CompanyTable", conn);
DataTable dt1 = new DataTable();
ListU.DataSource = dt1;
daSearch.Fill(dt1);
ListU.ValueMember = "companyName";
ListU.DisplayMember = "companyName";
@JohanLarsson Thanks for that :)
@MohdNasrulIwanFajaruddin I don't know if this is a good way, looks a bit on the stringy side.
ah.. i have already done the codings that take the data from a table to a datagridview , now i just need a query or a code that takes 2 value from 2 different combobox and determine the outcome of another combobox..
09:19
@JohanLarsson I need your help with something :P
sorry give me about 5 minutes and ill get back to you brb!
guys is there a reason this works with DerivedClass

public static void MyExtension<T>(this T targetInstance, string param1) where T : AbstractBase

but this doesn't

public static void MyExtension(this AbstractBase targetInstance, string param1)
??
@JohanLarsson So basically I'm just trying to see if a folder exists in Skydrive. I have connected and logged in thats all fine. Now for the second part. When it checks for the name of the folder it gives me the result as doesn't exists. Even if the folder does exist: gist.github.com/anonymous/fe3c2af2c60db29170b3
to put it simply if the folder exists it should say "yes" if it doesn't it should say "No" but it always says "No"
@Annie works
@AhmedCader use explicit type or var instead of dynamic, not the solution to the problem, just sayin'
09:32
@JohanLarsson Somehow i managed to get it working. How come var rather than dynamic ?
static typing is a good thing, you want to catch errors while typing the code not runtime
ahh alright
result.data.Cast<YourClass>
           .Any(x=>x.Name=="Hello World")
not sure the cast is needed
pretty sure your problem was .name where it should have been .Name
dynamic made you not catch it
so basically dynamic, you have to guess and hope that ur parameters are right whereas var gives yoy intellisense
yeah dynamic turns C# into javascript and you son't want that
09:43
@All: Is there anybody who worked on Monodevelop for webservices in mac?
TBA
TBA
Can anyone please help me with a url redirection using rewrite module?
it's amazing to see what you can accomplish without giving up :D
10:06
@JohanLarsson, yeah it works.. turned out I didn't added using :)
thanks
hi everyone
anyone in?
10:22
so.. anyone can do C# here? with winforms..
well i just started c#
but im on windows phone :P
@JohanLarsson Nawh man you still can't overwrite methods and stuff. JS is more fun that way
:)
God fortsättning Roel. (Means happy continuation, we say that in Sweden this week)
10:38
Hey Happy x'mas
ah.. i forgot its christmas.. so.. everyone is having their day.. :(
@JohanLarsson Merry christmas! :D
<- afk, walking the dogs
Merry Christmas guys ! Happy Holidays !
11:42
@JohanLarsson Are you there?
yep back
I've created an event handler but it keeps saying that a reference assembly is missing:
{
LiveConnectClient client = new LiveConnectClient(session);
client.GetCompleted += new EventHandler<LiveOperationCompletedEventArgs>(getFolderProperties_Completed);
client.GetAsync("/me/skydrive/files");
lb2.ItemsSource = MainPage.ContentList;
}
}

void getFolderProperties_Completed(object sender, LiveOperationCompletedEventArgs e)
{
if (e.Error == null)
{
List<object> data = (List<object>)e.Result["data"];
LiveOperationCompletedEventArgs it highlights that and says its missing an assembly
i tripple checked and i've added all the necessary assemblies
did you add the using to the file also?
yea
its:
using Microsoft.Live;
using Microsoft.Live.Controls;
VS should do it automagically if you rmb the squiggly I think
11:47
yea
thats all fine there its just that bit
I tried installing the live sdk but it could not resolve LiveOperationCompletedEventArgs
exactly
its soo odd
i was looking up some samples
and even those
is it out dated?
could be
or a phone thing idk
alright
I can't see the event
try: ` LiveOperationResult result = await client.GetAsync("url");`
await is nicer than callback imo
unless you need to report progress
12:00
alright thanks
ill give that a try
12:13
well I'm off
thanks for the help :)
np, it worked right?
12:54
good morning!
whats up man, you've been on a lot yesterday & last night!
I'm always on when I'm home, on as in a tab open
oh okay yeah i have it saved as a tab too
0
Q: changing values of dictionary keys

LOL SingerI had a list of strings. I wanted to delete one in it as follows: settings.RecentSearches.Keys.Remove(itemToAdd.Key); settings.RecentSearches.Keys.Add(itemToAdd.Key); Error: Mutating a key collection derived from a dictionary is not allowed. I wanted to add and delete values in it. Wh...

@Steve
sir plz help me
@Steve
13:05
@LOLSinger You can't remove an item from the collection of keys of a dictionary. You have to remove the item from the dictionary itself using Dictionary.Remove.
@Steve sir , it does not refreshes my list of keys
@LOLSinger IDK IM NEW, i just copied and pasted the answer from your q
whats c#?
lol
@Steve sir, it worked, thanx
i didn't do anything but you're welcome :)
hey guys, can anyone help me with code coverage in coded ui tests
??
13:20
no idea what that means, sorry bud
aww...that sucks
been stuck for a couple of days
@Steve sir, i think u didnt recogninzed me,, i m ur friend from Mumbai...last time we discussed
yes i remember, but i am not a guru, lol
13:22
lol
no need to ping me every night
@Steve sorry sir, i will not, but when there is night there, here is day,,, whatever, i will remember,,, sorry
:(
@LOLSinger sorry was trying to make funny
no sir, i will definitly keep in mind... i will never disturb u @Steve
Happy Depressing 26th of December!
13:37
thanks!
it is kind of depressing, isn't it
I look forward to something for half a year... and it's over in one day. fml
13:58
hi guys...I am developing a window phone app..in wpf C#...
string[] tablerow = new string[] {"Submit Report" };
string[] tablecol = new string[] {"Mansab" };

int i,j;

for (i = 0; i < tablerow.Length; i++)
{
table.RowDefinitions.Add(new RowDefinition());
table.RowDefinitions.Insert(i, new RowDefinition());
}
for (j = 0; j < tablecol.Length; j++)
{
table.ColumnDefinitions.Add(new ColumnDefinition());
table.ColumnDefinitions.Insert(j, new ColumnDefinition());
}
m creating a dynamic table....and now i want to add static values in table cells..can any one guide me about this..?
2X2 table...
hello...
hi!
what is class of your table
@user3061129 Not sure what you're doing, but that seems like a contradiction.
table is grid name..
I am creating a dynamically table...I have created..
but now I want to add some values in teble cells..
Can you explain what you mean by dynamic and static?
i remember exercises in school where i had to insert words
14:07
I mean this code is written in C# file. .cs file...not created in xaml file..
so here i wanna insert any values in table cells..
I am creating a dynamically table which I have created today
but now I want to add some values in teble cells using dataGridView1[1,1].Value="first link in google";
@user3061129 That's what you mean by dynamic? lol
hope i will get a good mark
@user3061129 Have you read the documentation? This seems like a simple task.
dude u can say programmatically...
yes...I have made this task by xaml file....created a grid..add columns n rows...Insert values by adding text block.....
14:12
@user3061129, try my advise
Wait. This is a GRID???
Dude, RTFM
ayup..grid..
Also, use XAML
hi
i have some questions on C# task
FYI, Grid is NOT designed for tables
14:15
I just named it as a table....I created rows n columns...now wanna insert data/values in each cell..
I told you, it is NOT a table
There are no cells
If you need a table use DataGrid
u can say this result i hv found...
I'm confused, but not as confused as you are.
If you don't mind, please spell properly
ok..kindly refer me something about this.....
yup sure...
I Did refer you something
14:20
Like datagrid....?? how can i use it as a table...insert values.....?
That shouldn't be too hard to find out
It'll be easier than using a Grid
@Kendall Frey I couldn't find syntax for this...not proper example..Searching last 3 hours...then I came here...
@user3061129 thats because you were searching for the wrong thing, try googling for DataGrid and see if that leads you in the right direction
ok well....going to google...
@user3061129 if you get stuck, don't be afraid to come back and ask for help! :)
14:26
yup...:P
soooooooo
laaaaaaaaa
@kendall Frey I think I can do it.with datagrid.....:D
14:41
:)
15:00
so, how was everybodys christmas? what did you get?
15:12
@Steve diabeetus
and another inch on the waist
haha
The peanut butter cups ran out half way through the afternoon :_(
that sucks, we didn't have any big party or anything this year -- first christmas since my grandma passed, and she usually hosts on xmas.... so this year i sat around and ate ham
We went to grandpas
I sat around and ate candy and nuts
how'd ya like them nuts
15:18
-_-
I ate them, not played with them
i got pistachios, i've been nibbling on them since yesterday
I was mixing drinks last night
you can mix drinks.... but you've never been drunk? Something is wrong with that picture
root beer and eggnog
;P
lol
15:20
I love me my eggnog
I only tried it first last year
but it's pretty cool
I should stop talking now
:p
heee
sorry bored
i need to go up and buy somebody an xmas present, because i'm almost positive they're going to give me one today
and I dont want to be THAT guy
Nobody gives me presents
im thinking a steam gift card or something
15:25
cept mom and dad
my dad has never gotten me a present my entire life, he just gives my mom the money, that bastard
If I see KSP on sale on Steam, I would totally buy it and givie it to someone
but not you
because you wouldn't play it
whats ksp
!!youtube ksp
15:26
whats ksp
simple answer, not a 20 minute youtube video lol
build rocket, fly to space
the vid isn't 20m
yeah doesn't sound like my cup of tea, i think i remember you talking about that before
@KendallFrey i didn't look, because it would have taken 20 minutes just for it to buffer on my internet
haha
I know who to get it for
who?
a friend
IRL
15:29
LOL
odd, I know
its okay
how much is it? I saw steam had a ton of great sales yesterday
does saying meatspace make you more of a geek?
@Steve 20something
i dont know what meatspace is
lool
!!urban meatspace
15:30
@KendallFrey meatspace noun. a term, originating from [cyberpunk] fiction and culture, referring to the real (that is, not virtual) world, the world of flesh and blood. somewhat tongue-in-cheek. the opposite of [cyberspace].
please dont say vag
what?
what what
thats funny lol
why would i say vag?
i was tlaking to faprica
15:31
meatspace, i like that lol
my meat takes lots of space
see there you go, ruined a mature convo lol
me and you talking, mature? my ass
lol
15:35
i was going to the bathroom
and i had to look up the history on that message lol
well, i got the backend to my site done, its looking really nice, i'm proud :)
the back end is looking nice? i thought that's the front end's job
no pun intended, you sick fruit
lol
well, it was the first time i used EF and actually kind of knew what i was doing, first MVC project where i created it from the ground up w/o trying to google everything, first time i used a service layer, man it all just fits together so well
I really need to write a program using direct SQL queries so I understand ORMs better
I also kind of want to write some more REBEL
yeah for sure about the sql queries
but flying rockets is fun too
15:40
lol yeah?
now if i just didn't suck at art and could make a good looking front end...
Hopefully Saturday I have time to fly an Apollo mission and upload the vid
you should download ...uh 1 sec
dont remember what its called, downloaded it yesterday for free
warframe
is it a wargame?
sounds meh
i haven't opened it yet lol, but my other friend downloaded it and played for a few minutes and said its not bad
yeah but its free, mr. money bags lol
did someone say free bitch?
15:42
noooo
KSP is free too, if you don't have a conscience
no copy protection that i know of
ssh
oh
damn i have to drive up town, i live in the boonies, its like an hour round trip, and its icy and snowy
I have to drive further than that to get to somewhere
so f u
15:46
lmfao
did you get ice storms there?
I hear it was in Detroit
yeah, its still bad, it didn't melt yet
I wanna go back to canada, but I don't want to face the weather
my friend and I took his jeep out the day that it happened, it was awesome, we were like driving under downed trees, driving over the ones that were all the way on the ground, we accidentally drove over a power line, and half the roads were closed due to downed power lines or trees lol, it was sweet
My dad said one of the doors froze shut while driving
15:49
lol yeah
half an inch of ice on everything
mine did too - not while driving, but i had to go in through the passenger door and kick the driver door open
wish Mr. Harper would buy a section of florida for us canucks
florida would be sweet
do you watch breaking bad?
na
I watch Scott Manley, lol
15:52
dunno what that is
he plays KSP
and other space games like eve
thats the breaking bad shirt that i want
...
....
I did something stupid. I tried to answer a C# question when I've never used it in my life.
lol
lemme see
Hoping I didn't steer this guy wrong :-/ stackoverflow.com/questions/20786392/…
00:00 - 16:0016:00 - 00:00

« first day (1167 days earlier)      last day (4007 days later) »