« first day (835 days earlier)      last day (4113 days later) » 

12:09 AM
i need help again ;/

I get an error on "if (!context.Database.CompatibleWithModel(true))" if i just started the database empty, so theres nothing to compare it from:

"del compatibility cannot be checked because the database does not contain model metadata."

Is there a way to catch this error
 
try catch?
 
yeah i was hoping theres something less than that
 
why?
 
Exception Details: System.NotSupportedException: Model compatibility cannot be checked because the database does not contain model metadata. Model compatibility can only be checked for databases created using Code First or Code First Migrations.

So its catch(NotSupportedException e) right?
 
Yup
 
12:12 AM
ok ty
 
Hey, if someone can help me unpacking and fixing IAT of an DLL. Not for free of course, but I want to learn what I missed. File is not copyrighted or anything.
 
@Trouble howmuch do you pay for those... and no i dont know shit just wondering :P
 
I don't really have idea, but it shouldn't take more than 1 hour. Unpacked dll is just about 120kb
 
gah
i dont know whats wrong with this
isnt on EF context.Database.CreateIfNotExists(); supposed to create the table based on the model in context?
 
Perhaps if (context.Database.CreateIfNotExists())
oops, was reading older chat msg
But look here
0
Q: EF Code First deployment

ebeyginI have an MVC code-first application that creates a database based on my schema. On the production machine, we will need to first create the database (empty, with no tables), so that we can assign the proper username and password to my dbcontext in the connection string. Considering that the DB i...

I don't know shit about .NET, but normally you would like to pass column types to mysql script, does .NET do it auto? Dunno
 
1:13 AM
@Trouble well yes that is my problem.... the "context.Database.CompatibleWithModel(false)" returns an error because it has nothing to compare to when the database has just been created
@Trouble the context.Database.CreateIfNotExists() is supposed to create the EF is supposed to create it auto... but after that line is executed... the table somehow is still isnt created
 
1:36 AM
anyone else doing/did the global game jam?
 
 
1 hour later…
2:54 AM
Anyone here good with backgroundworkers?
 
3:06 AM
0
Q: BackgroundWorker Result is being cleared

CC IncIn my code, I am using a backgroundworker to do a task and I set that task's return value as the DoWorkEventArgs Result. The strange thing is is that during the DoWork event, the Result is set and contains items, but when I access the result in the RunWorkerCompleted event, SOMETIMES the Result i...

 
3:38 AM
WTF did everyone go?!
 
4:05 AM
I m here
:P
@Magikarp Did you make sure, your database user has enough rights?
 
 
2 hours later…
5:56 AM
@All Good morning!
 
6:34 AM
good morning
 
6:45 AM
@App Morning
 
7:16 AM
??
 
7:51 AM
ahoy der
 
@Cylen , Hey ..where is eveyone !?
this is hell empty
 
its monday
 
so..?!
you said it like its sunday :-P
 
8:15 AM
its like sunday
only later
 
lol..
 
Mornin'
 
@Stripps MMorning
 
To early for programming problems lol, I need my coffee
 
8:32 AM
sup stwipps
 
fighting with my webservice
 
winning?
 
i dont think so :(
the webservice wont listen to my calls
at least not when I'm calling the part that I want to call :(
 
siege tactics
call them from 3 phones
 
I think the wires are connected properly :o
$.post("Service/EpRestService.svc/DeleteRelation",
JSON.stringify({
mapId: map.ID,
relationId: linkId
}),
function (data) {
if (!data.Result) {
handleError(EP.ErrorMessages.GeneralError);
}
}
).error(handleConnectionError);

That piece of code works, but not the code in the pastebin :/
 
9:20 AM
I know, it gets you stunned! :d
 
I am just trying to learn MVC myself ..very confusing .:-((((
 
It's not even MVC :P
 
:-P do you mean its that easy !? lol..I couldnt understand the purpose of folders in sample applications ..poor
 
MVC is wonderful, Webforms are just confusing
 
o_O May be, Once if i figure out things i ll tell you :-P
 
9:28 AM
Damn, I need a new headset for work, this huge cable is annoying me
 
Web forms are straight , but lacks features, MVC has features but for beginners its needles in noodles :-(
 
Well took me a while before I even found the "code behind" in webforms, I was like WHERE THE F*CK IS EVERYTHING HAPPENING!?
 
lol :-D ..!
i wonder y so many .cs files in MVC , Views n ViewModels, Models, Controllers everything has .CS files ..why !? im tryin to sort out these problems
 
.cs-files in the view? I havint thought of it, but just focus on what you want to present in the view, build ur models on that and then just pass it to the view :)
 
good day
 
9:35 AM
@Steffen good day
 
@codebrain what else ending should code files in C S harp should have?
(why does that stupid thing doesn't boldify those letters ARGH)
 
@Stripps yeah , actually novice in MVC , I am learning the core importance of this seperations..ll get it ! Thanks !!
 
@codebrain I'll link you to one of my questions about that on stack programmers
7
Q: MVC: Why put the business logic in the model? What happens when I've multiple types of storage?

Steffen WinklerI always thought that the business logic has to be in the controller and that the controller, since it is the 'middle' part, stays static and that the model/view have to be capsuled via interfaces, that way you could change the business logic without affecting anything else, program multiple Mode...

 
@Steffen I m asking why there so many code files in MVC ?!
ha ha ha
 
@codebrain because one class per .cs file?
and the name of the cs file = the classname, that has nothing to do with MVC but is just 'good coding'
 
9:39 AM
@Steffen I was already confused like hell and you're adding more with your questiond xD
 
4
A: MVC: Why put the business logic in the model? What happens when I've multiple types of storage?

tdammersYou and large parts of the programming world seem to misunderstand what the roles of the MVC parts are. In short, they are: Model = domain logic View = output logic Controller = input logic This means that the model is responsible for the entire business logic: anything that is related to dra...

that answer might help you the most
 
Do you use MVC 2 ?
 
MVC 2?
 
I am actually for learning using MVC 2 ..for starting ..
 
I've only used MVC3
 
9:40 AM
later ll move on to MVC 3/4
 
Yeah , HAve any one of you tried MusicStore project on MVC ?
 
we do speak about Model - View - Controller programming, the software development pattern, right?
 
yes Mr.Steffen , wait
This is a sample application i downloaded , Mvcmusicstore from codeplex, What are viewModels ?
 
I just wanted to ask the same
 
9:44 AM
lol..I didnt create this :-P
 
I guess those are Views that just display stuff from the Model, without needing a Controller interface
 
if that's true, that'd be bad and should never be done.
do you know what that .edm file is?
 
@Steffen do you think the above project is good for learning purpose !?
OhF**K , Just now i found it ..never really noticed that edmx .file
wat is it ?>
 
no clue.
 
9:50 AM
The view models are Imported in Controllers
 
"EdmGen.exe is a command-line tool used for working with Entity Framework model and mapping files."
hmm maybe it's an equivalent of a database view?
 
Entity Framework model !? okay ll look at it thanks @Steffen
 
I heared about that EF stuff a lot last week, no clue what it is
 
same feeling
view model code files has list collections such as Album,Artist,Genres and these are imported in colntrollers for easy purpose :-)
 
anyway, as a rough sum up: View -> GUI stuff, Controller -> basically an interface between your model and your View. Model -> this is tricky. In your main program, your Model only consists out of Lists, Dictionaries, Arrays and other stuff (basically, everything to hold the Data that you need in RAM) and also a sort of interface like class that accesses your 'real' Model (which is a dll seperated from your program). Your real model deals with accessing your data storage
by doing that you can freely create different .dll's for different databases, while not having to care about that in your main program. Each model dll must, of course, have the same publich methods for this to work.
also you can re-design your GUI, or have seperate GUIs for different operating systems, without having to care about your database stuff
 
10:01 AM
Great !!
Thanks a lot
 
no problem. ;)
 
Good morning.
 
Good mornin
isint it enought to specify
OnCheckedChanged="rdbAppartment_CheckedChanged"

and the method in code behind:
protected void rdbAppartment_CheckedChanged(object sender, EventArgs e)
{
appartmentPanel.Visible = true;
}

For radiobuttons?
 
What do you mean ?
 
For some reason the checkedchanged method does not run when i check the radiobutton
 
10:13 AM
@Andre Morning
 
<asp:RadioButton ID="rdbAppartment" runat="server" Text="Appartment" GroupName="ChangeType"
OnCheckedChanged="rdbAppartment_CheckedChanged" />

protected void rdbAppartment_CheckedChanged(object sender, EventArgs e)
{
appartmentPanel.Visible = true;
}

So I'm wondering if there's a need to declare something else somewhere for radiobuttons
 
Yes there is actually..
 
@Stripps Auto postback = true ??
 
I think it is DoPostBack or something
Or what @codebrain said.
 
thanks <3
 
10:33 AM
@Stripps is that your actual code? 'OnCheckedChanged="rdbAppartment_CheckedChanged"'?
if yes, there is a + missing in front of the =
 
Thats the code, :o but it works now, without the +, when I added autopostback
 
guess ASP differs from C# there
 
@SteffenWinkler That code is in the asp page..
 
that's what I said
in C#, you need += for events
apparently you don't need that in ASP
 
yes..
 
10:58 AM
Lo
 
Lo Le
 
 
1 hour later…
12:16 PM
hello to all
 
@Vaishali ..hey
 
12:38 PM
hi @codebrain
 
@Him hi
 
so hw are u dude
seems really busy these days
 
Im good Himans ..how you
 
me good too
 
yeah bit busy...today easy day
 
12:40 PM
@codebrain Can you pls help for this link stackoverflow.com/questions/14561257/…
 
@Vaishali will look at it '
 
but not for me just got a time now from the whole days hectic schedule
 
@codebrain Ok fine
 
@codebrain do u have any idea of latest security issues for e-com site
 
@Himans no..tell me
 
12:45 PM
na actually have to work on ecom site
and they want me to get updated on security issues
 
check authentication , password storage , all user entries must be of parameter to sql
so many //
 
hmm reading an article of msdn
 
it ll be blah blah blah
@Vaish cant you get data from database and store it in a string array ?
or int array and process this ?
@Vaishali
^
 
@codebrain i can get in data from database in a datatable. but how to bind this data to the datasource?
@codebrain As we are doing in gridview.datasource=ds.table[0]; gridview.databind()...but how to deal with chart?
 
you written Data="12,15,....."; instead of this write Data=values;
values is a int array, int[] values = choose which column you want from datatable here;
 
12:59 PM
I have two column studname and percentage
so telll me how to bind this data?
da = new SqlDataAdapter("select * from Student", con);
ds = new DataSet();
da.Fill(ds);
 
y do you do it in dataset ?
do it in data adapter , fill it in data table , store studname and percentage in array list or collections , then call it in codebehind ..
Barchart is a teleric control ?? cz i dont find it in my VS2010 ??
 
no its not telerik control ...
 
I cant try it since i dont have it ..look at the links I have a posted a answer to get array ,
 
Its an MS chart control
I can bind data set using Ms chart
 
access your Barchart like Barchart1.unitedstates.Data = dblstat;
 
1:16 PM
I cannt access .united........
 
oh ..
wer r u from
 
I have downloaded the ajax toolkit from this link
 
Ajax will work ya
 
so..
 
wait ..i think im getting it
 
1:18 PM
ok
 
where did you download barchart from ?
 
its a toolkit not 1 or 2 control
wait
3.5
ok talk you later...
 
oops
 
why oops
I am going home now
talk you after 1 hr
 
2:18 PM
Morning folks.
 
morning?
 
Well, it is here.
Afternoon?
Goodnight?
 
afternoon
:)
where is 'here'?
 
Here is Canada. Where is there?
 
There is Germany
 
2:20 PM
afternoon here
 
good morning @Bracketworks anyway ;)
 
@SteffenWinkler lol, and good afternoon!
Anyone know if there's a way to rename refactor markup elements (XML/HTML) in VS 2010? By which I mean given <p>Foo bar</p> when the caret is on or in the <p> node, hit some magic key combo, and enter a new element type resulting in <h1>Foo bar</h1> or whatever?
 
@Bracketworks Where in Canada? Canada has, what, 5 time zones?
 
lol, southern Ontario, EST
You're in Waterloo, no?
(I think we had this discussion)
 
I don't remember it :/
 
2:23 PM
hey it's that @KendallFrey guy
 
I hate Alzheimers.
:P
 
how do you know?
 
I hate Alzheimers, BUT I LOVE PUPPIES! Alzheimers? Who?
 
I'd love it if my stomache could've Alzheimers...
like 'steak? what steak? There's nothing down here!'
 
2:25 PM
I feel that way too.
Anyone got recommendations on my question? Any native hack, or plugin'll do.
 
it should do tag correction automatically. either that or r# does it
 
Hmm, no native auto-fix, no r# either.
 
it happens in my razor views. webforms, mvc, and if so which view engine?
 
Razor; cshtml
 
yeah, that happens in mine so long as the closing tag isn't too 'far away'
 
2:28 PM
Too many levels of nesting?
 
that can happen. or code blocks in between
 
Hmm, these are all leaf nodes; the occasional <span> here or there. So when you change an opening <p> tag to say, <h1> the corresponding close is changed automagically?
 
Well, then I've been had!
No worky here.
 
highlight the entire tag name by double clicking on it, then start changing
 
2:30 PM
Nope, no go.
No rename or anything, right?
 
right. just started typing
which r# version?
 
Version 0.
4 mins ago, by Bracketworks
Hmm, no native auto-fix, no r# either.
;)
 
oh, you dont have resharper. i thought you were waying it didnt work with resharper for you
resharper is the bomb. purchase it.
 
No, most everything "works" when you have it; I know. (had it before for personal use)
Instead I have a convoluted mix of free extensions to make up for it at the moment.
Does their trial license cover brief commercial use?
As in, for the duration of the trial?
 
its a 30day trial. its not like you are redistributing, so i don't know that there's a problem with commercial use
 
2:33 PM
Awesome, this project's over in 30 days; I'll scan the license and probably just grab it. I don't know why I haven't yet.
 
its totally worth the price
 
I wouldn't be paying it anyways; it's just the time and paper necessary to get it where I am.
 
when you buy tools for your toolbox for home repairs and stuff, do you only buy a hammer and a pair of pliers? and the cheapest grades at that?
 
lol Yes, when I have 9 other people analyzing them and buying them.
In fact, I'd probably walk away with a pair of boxing gloves and a warm soda.
 
use that analogy when you talk to your boss about purchasing it. good work requires good tools. resharper may not be required. but its like using a hammer instead of a rock for pounding in nails.
refactors can take minutes instead of an hour.
etc etc
 
2:35 PM
Oh, I know; I have used it, and buying it isn't a problem. It's getting it ;)
 
oh approval from IT or office technology or whatever department? ugh. i dont miss that in corporateland
 
Yessir. Requests end up looking like suitcases from old movies where people have gone all over the world. Stamps and stickers everywhere.
Anywho; going afk for a few.
 
corporate sucks.
 
Thanks @ChadRuppert
 
good luck. :)
 
2:37 PM
@ChadRuppert I wouldn't say that, it's just... slow.
Very slow.
 
thats suck to me. lol
 
2:49 PM
with entity framework do I have to create a context for every table, or is the context for the one database connected?
i mean context for each class on code first
 
i dont know. probably. Haven't you given up on that crappy framework yet? go to NH or massive or something.
you'll learn more using stuff that actually works and doesn't suck than you will solving problems with crappy stuff. :)
 

« first day (835 days earlier)      last day (4113 days later) »