« first day (1602 days earlier)      last day (3341 days later) » 

12:53 AM
i just got an notification on my android that i cleared right away before realizing it, saying Google Talkback has been update. wtf
 
 
2 hours later…
2:48 AM
Someone can help me?

ComboBox combo = control as ComboBox;
string text = "";
if (combo.InvokeRequired)
combo.Invoke(new MethodInvoker(delegate() { text = combo.SelectedText; }));
else
return combo.SelectedText;

return text;

Someone knows why it keep "crashing" the comboBox even using the Invoke() ? It still saying "InvalidOperationException"
 
@Kyore What's the exception message?
 
combo threw an exception of type 'System.InvalidOperationException'
 
and the message is what?
 
The Invoke() method should work, shouldn't it?
 
I don't see anything wrong immediately
 
2:52 AM
Well, Im trying to get its SelectedText, but it was returning "" all the time, then if I set a breakpoint in that line and check the "combo" object, the others properties like, SelectedIndex, SelectedItem etc, they have this "combo.SelectedX threw an exception...."
It's related to the cross-thread operation, but the invoke should fix that, but it still with the same exceptions in the object even using the Invoke
 
What error message are you getting? That probably tells you what the problem is...
 
Let me see, because Im not really getting an error message since Im trying to get the SelectedText and it is always "", I just saw that the other properties have this exception on them
 
;)
 
An exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll but was not handled in user code

Additional information: cross-thread operation not valid control 'comboItems' accessed from a thread than the thread it was created

If there is a handler for this exception, the program may be safely continued.
 
@Kyore You said you're getting an InvalidOperationException. It should have a message
 
3:03 AM
That's all in the message it appears
 
@Kyore ok, where does that get thrown?
i.e. which line of code?
 
hello everybody
does anyone knows how to read this file
https://www.mediafire.com/?rsiip4lm3dt6nhl
 
Well, it's weird, as I said, I was trying to get the comboBox selected TEXT, and it was returning "", so I added this line to get the message for you:

ComboBox combo = control as ComboBox;
int index = combo.SelectedIndex;
if I use the combo.Invoke() to set the index to combo.selectedIndex, it works
but if I use it to get the combo.SelectedText, it keep returning ""
 
It's an old database file that I really don't know how to understand even what kind of DB it is...
 
@DrTJ whats the extension, i'm not clickign on that
 
3:08 AM
the stupid who made it, changed the extension
inside the file i'm seeing the app name repeating
 
what did they change it to?
 
the app name
.118
 
I fixed my problem using the Invoke() to get the SelectedIndex and then returning the combo.Items[index].ToString()
Thank you anyway
 
the app is named 118? weird
!!google 118 app
 
3:12 AM
my guess was that it was part 118, of a file that was broken up
 
I don't think if its related to any of these apps
the application is made for DOS and is similar to FoxPro but the DB is not any of FoxPro based databases
 
well, i doubt you're going to get any technical person to download a random file from a random server, sorry man
 
3:28 AM
here is the content
 
whats the name of the file?
118.118?
 
TAXI.118
 
you sure it's not porn or warez?
 
hahaha
I'm more busy than this
 
i decoded what you gave me from the screenshot, it's porn
i'm calling the police
 
3:33 AM
:))
 
lol
 
I'm guessing that this is not any well known DB file... and its just made by their own structure...
look at #E
its repeating so many times like a delimiter
 
there isn't any way for us to tell what type it is from the screen shot, you're going to have to 1) figure it out 2) find another copy of the db file, which shouldn't be hard if it's part of an app, or email them and ask them
118 Pro ver 2.0, why cant i find anything like this on google, thats what confuses me
can't find an app named 118, how did you find it?
do you have a link?
who makes the app?
 
as i said the app is so old...
 
well where did you get it from
there must be a link to the app if theres a link to the db for it
 
3:46 AM
well i just found it installed on one PC
 
so how did you find the db for it? whered you get that link?
 
I upload it in mediafire
 
i thought you said somebody else did and changed the extension? who changed the extension?
 
look
 
this is really shady
 
3:48 AM
the company or the person who made the app
made it using sth like FoxPro or these kind of apps
 
okay, well good luck
 
and changed the database file extension
 
please don't ask people in here to download it
 
ok
leave it out
 
@Steve You've setup three tiered projects right?
MVC Project references Domain, Data references Domain. That is how they all correctly pass data correct?
MVC Project One, Domain Project Two, Data Project Three.
 
4:01 AM
depends on how large the solution is, but yeah that sounds like a good set up, and one for unit testing the domain, and maybe one for unit testing the controllers or whatever in your mvc proj
or if it's small, you can have one unit test project
 
So I outlined it correctly, forgetting about Unit Test for now.
 
with repositories, their interfaces or whatnot in the data class, but thats subjective too, because people like charlie dont use repos
 
MVC --> Domain <-- Data
 
he uses EF directly as the repo, so then what would go in your data project? edm? What if thats in a different solutions entirely, then is there any need for a data project?
see it really depends
 
I'm trying to teach myself and do it old school where that was the norm.
I want to really learn the data structures, types, and in / out of C# / .NET
 
4:04 AM
i'm not a guru like some guys in here, just my opinion
 
Neither am I, but was hoping you came in contact with it.
Basically, I want to know when I pass a Model or data down to the domain, then into the data, then returned to data to domain, to UI it is actually referenced right.
 
i dont know the answer, you want to limit references, so a common way for mvc is to have the data not reference anything, have your ui reference the domains and the data, and tie the two together
but if you follow DDD, i'm not sure if that fits or not, still new at it
 
Me to :/
I thought it was supposed to be a UI --><-- Domain --><-- Data
 
there are entire books written on this, i can suggest one
 
Basically, the MVC UI calls your domain and gets data out of the domain, then the domain is actually what is talking to your data and returning it back to the domain for the UI.
 
4:12 AM
wait
i'm getting models and domains confused
yeah so
i dont know what i'm talking about
if you follow pro mvc appress, it says
your controller takes a reference to your data class, via di, and then populate models from the data
so your models don't know about how they're getting populated, and your data proj/classes doesn't care what it's populating, your controller ties the two together
where 'domains' come into this, i think MVC is a UI pattern, domains have nothing to do with a UI
how do domains tie into MVC? not a clue
!!google are models and domains the same thing
 
okay yeah, they are the same
so
data ---> controller <---- models
 
Uh, now I'm confused...
That is just the MVC Framework structure.
 
hey guys, i'm just wondering here, if you were going to use a budgeting app to manage your bills, transactions, expenses, debts... what kind of things would you want to see in the "Summary View" when you first open the app everyday?
 
So, are they all supposed to be referenced by my core MVC project? That doesn't seem right.
 
4:20 AM
thats def right
 
Then how would data in your domain be understood by your data layer?
So, I'm right? Or am I wrong?
 
i've seen things implemented different ways, even in books
 
@Jase I would want to see bills pending charges, most recent, and a graph of incoming / outgoing money for the month so far.
 
you're looking for an absolute answer, i'm saying the way that it's commonly implemented is
data ----> mvc proj <---- domain
 
@Steve Yeah, I think I'm almost more confused now. If you skip the fact that MVC has a Model / Data / Controller and simply think of it in the realm of a console app rather then an MVC wouldn't it be:

Console --> Domain <-- Data
 
4:24 AM
yup, i've seen that too
 
Because the console would represent your UI, the user interface.
 
or
 
Then the domain would be your business logic.
 
repo <----service layer <----- domains <---- console
 
Well, that is kind of what I'm doing.
 
4:25 AM
and you can have domain service layers, and data service layers
 
MVC --> Domain <-- Data (IContext implementation and etc).
 
and all sorts of crazy shit
 
@Greg Hmm, awesome thank you. I'm making this as a personal project but some friends said they wanted to try it too so just need to make sure what I was thinking wasn't completely insane or anything :)
 
i dont know if what you posted is right or wrong, the common way is what i showed initially though
 
I wish there were better courses and classes.
 
4:26 AM
for MVC at least
 
@Steve I don't know either. If your data layer isn't aware of your Domain then how does it reference anything?
 
i dont know what you mean by that
 
@Greg don't come to Australia if you want an education lol... education sucks here, specially for programmers
 
public ActionMethod Index()
{
     Model someModel = new Model();
     someModel.SomeProp = dataLayer.someEntity.Where(x => x.Id == "1");

}
 
Well, Your MVC Project is in essence:

Model --> Controller <-- Data(View, UI)
 
4:28 AM
data has nothign to do with views or uis
 
Then what is it supposed to symbolize in the realm of MVC
A Model is your data otherwise.
An object that represents the data your doing something with.
 
well, thats true, like EF entities can be your models,
so
it's also
 
I essentially have a bigger project, so I can't use one project. So I need to separate my concerns, core MVC Project, Business Logic / Domain, Data Layer in essence.
 
public ActionMethod Index()
{
     ViewModel someViewModel = new ViewModel();
     someViewModel.someProperty = efContext.Field.Where(x => x.id == "1");
}
but then you aren't using repositories
so instead of efContext, it could be repository method
someViewMode.someProperty = repo.getPropertyWithId("1");
 
Was trying to learn, build my own data mapper from my mvc project to this domain layer, which interacts and pulls repository data out of the data layer.
 
4:34 AM
i'm not sure, the only ways i've seen MVC implemented looked pretty anemic, compared to a DDD
i dont know how to implement DDD in MVC, so thats where the disconnect is coming from
you're asking good questions
the way Pro MVC 3/4 (i didn't read 5) implemented it was an anemic design where business logic goes in the service layers, or controllers
this goes against DDD
 
Yeah, I feel like a non anemic design would be better for a project.
It in essence will capture the domain, the core business, which makes a project endure.
 
Why do 'About' dialogs have OK buttons? Since there's nothing to really say "OK" to, other than a bunch of random information, why don't they just remove the OK button and let us click the one that makes more sense in this case, which would be the 'Close' button at the top right of the window?
 
if i had to guess greg, this is what it would be
your controller / mvc project is still in 'control' of everything
 
Yeah, I'm going on a pretense of typical DDD design but MVC has its own implementation. Especially since it tends to favor an ORM doing all of it. Which could easily create anemic DDD.
 
where it has access to data, and the domains, it populates the domains, you put business logic in your domains, but do the different calls / tie your different domains together in your mvc proj/ controller
 
4:40 AM
Yeah, from the surface it would directly call Business Logic. So it is almost like two similar architectures in place. If I want a solid DDD.
 
you don't want to tie your data directly to your domains, because what happens when you want to re-use those domain objects in another project?
you want your business logic, encaspulated in those domain objects so you can reuse them if need be, you dont want to tie it to any specific implementation of a data layer
 
But that is why I did this for the data layer.
T Save<T>(T entity) where T : class, IEntity;
In essence, my domain is holding the entity.
But the data layer is inferring the rest. Which should be encapsulating, unless I'm missing something.
 
yeah thats what gets me too, is in DDD books, sometimes they have the domain objects directly calling the data, sometimes they use event handlers to call back automatically when their data changes, or when you call save, or sometimes they call a service layer
DDD is not something i have a lot of experience in
MVC i do, which is why i say usually it's data ----> controller <---- models
what you're asking is a little over my experience level
 
Your answering it well, it is above my experience. Thus the clarification.
 
lol yeah
 
4:47 AM
I feel like documentation tends to take the shortcut route, which is violate principles you really shouldn't do. Which help them build courses quickly, but quickly teach incorrect concepts.
 
when you find an answer, be sure to ping me
 
I shall, I may have to wait for Roel, Spencer, or Charlie.
 
wait
i'm tired, i think i'm wrong about everything, even the mvc crap
 
...?
 
i'm confused, because in my experience the models are ef entities, so it'd be
data / models -----> controller <---- view
so maybe your domain models do call data
directly
 
4:51 AM
From my understanding the MVC Framework is to force you into a circular reference of interaction. The Controller will call you Model / View.
Model --> Controller <-- View
 
circular references are bad
 
Bad choice of words.
Triangular Reference
 
okay yeah
this is making sense
YES it is!
yeah, you should ask somebody else to confirm
but i think your domain models should reference your data layer
 
Because a View can call a Model, a Controller can call a View, Controller can call a Model but a Model doesn't interact directly with either your Controller or View.
 
yup, you're right on the money
data ----> (maybe a service layer here?? idk, this is me guessing) -----> models -----> controller <----- views
yes!
omg i read a ddd book, and it's starting to make sense
 
4:55 AM
So, with that principal in place. Your MVC Project Controller, will send a Model data to your Domain, your Domain does what it needs, and returns back to your MVC Project, or it will pass to your Data Layer. Which will then return back to the Domain, which goes back to the Controller. But the data layer is only aware of the Domain Layer, nothing else.
 
it depends, you can have many layers here, as i said the DDD book talked about different types of service layers, so i'm guessing if you do this, everything i read makes sense, but that doesn't mean i'm right
data repos ------> data service layer ----> models -----> service layer so your controllers don't grow huge -----> controller <---- views
 
ok
 
the more complex your project gets, the more layers will be in there, if it's pretty simple, you might not need a data service layer
@TravisJ @ton.yeung @TomW @CharlieBrown does that seem right?
@RoelvanUden
 

« first day (1602 days earlier)      last day (3341 days later) »