How Poco Use in MVC3 with example? [closed] - asp.net-mvc-3

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am new to POCO and all this MVC stufffs.
Reading some articals about POCO on google, but not having exact idea may be lack of my knowledge about it or not proper examples i got.
Can any one please explain me how to use this "POCO" stuffs in my MVC project.
it would be great if any vidoe link for POCO to learn

The POCO term is used to be able to tell if the object has any side effects and the term is usually used together with OR/M layers.
An object which is a POCO have no dependencies to your ORM layer or anything else. If you serialize it and then deserialize it will still look the same.
non-pocos can be used to be able to add support for lazy loading or be able to track the entity. The normal approach is that the object is either inherited from your regular class (a proxy) or that it has the features from start.

Related

Spring AOP advice - conditional in debug mode [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to use the AOP advice/pointcuts, etc in debug mode only (as a master global config: e.g. when log4j is in DEBUG threshold).
How can I do this in the application.xml config or elsewhere?
I am using AOP annotations e.g.
#Around("PointCuts.anyCustomPublicMethod()")
public final Object logAdvice(final ProceedingJoinPoint pjp) throws Throwable {
...........
............
How to add to the advice something like,
debug.equals(TRUE)
I was told by someone to use Spring Expression Language, but I've no idea how to do it.

How to set form_validation error messages for 3 different languages in codeigniter? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm thinking about duplicating the system\english\form_validation_lang.php file or folder, but I don't know how could I work that out.
For new languages, you should just create a new form_validation_lang.php file inside each language folder, like:
application/language/portugues/form_validation_lang.php
application/language/espanol/form_validation_lang.php
application/language/french/form_validation_lang.php
Then, you just have to set the appropriate language and Codeigniter will fetch the translations according to the language set.
More information can be found in the Codeigniter User Guide

Renaming Document type once app is in the wild [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have an document based application with a custom document type.
Any idea how to rename that type once the application has been release, so that the old files are treated the same?
Thanks!
The easiest way is to support both document types, saving only as the newer one. Sooner or later, the older document type will be (mostly) replaced with the newer one.
You can also automatically re-save the older type of document whenever users open it.
Note that resaving documents may have side effects if the file name extension has also changed, because users may have symbolic links to existing documents. The same side effects apply if you brutally search the user home folder to rename all existing documents of the older type. I wouldn't recommend it.
The first approach is just fine, I think, because even if users notice the change, they will attribute it to a file format change or something like that. The biggest downside is that you have to support both document types literally forever.

Need some explanations on this Delphi code [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I have this code and need some explanation on these questions:
What is that trailing "_TLB" after "ShellExecHookXample" in first uses section?
How should I use this code in Delphi 7 and make stand-alone exe file? (I don't know what's the proper place to put codes and call its method. Since it seems to be a unit or what?)
if possible please describe the code for me.
Thanks in Advance.
The _TLB is stands for type library. It looks like you are trying to implement IShellExecuteHook.Execute and have so far found some code here. However, I'm guessing because you didn't tell us. You are likely to get better answers if you are able to to spend more effort describing what it is you are trying to achieve.
If my guess is correct you should take a look at this question: IShellExecuteHook.Execute which I believe will explain how to solve your actual problem.
ShellExecHookXample_tlb means that this unit was imported from com (activex) object with an internal delphi tool (Project->Import type library...)
it reads public methods,events, properties of com (activex) object and generates pas unit with appropriate classes/interfaces. Usually you can find it in delphi folders.

how stackoverflow is making url [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
i need to know how stack overflow is creating the url in name of title as an page..
if i ask an question as how stackoverflow is making url is it creating an page for that question or it is coming from db ..if it is from db how it is done....
It's called URL Rewriting, done specifically for the purpose of search engines.
At a guess, I'd say that the ACTUAL url that is being called (logically) is something like this:
stackoverflow.com/questions/index.php?id=4591366
The text bit probably is only to make identification easier, especially for search engines.
That index.php probably loads the question identified by that id, which in this case, is your question.
http://stackoverflow.com/questions/4591366/how-stackoverflow-is-making-url
4591366 - ID of question
how-stackoverflow-is-making-url - a String made from subject after processing it correctly how stackoverflow is making url
while retrieving Question id only is enough, while subject will help in SEO stuff
The number is the primary key. The part afterwards is ignored when processing actual requests. So:
http://stackoverflow.com/questions/4591366/
and
http://stackoverflow.com/questions/4591366/made%20up
both work.
However, links and redirects are generated that way (by including the title) for search engine optimization.
StackOverflow uses ASP.NET MVC Routing to achieve its URLs.
They would be using a Routing Map similar to this:
"{question}/{id}"
Then in the URL they just add the title of the question which gets ignored by their routing logic but gets used for Search Engine Optimisation.
Source: Hanselminutes Podcast 134 - StackOverflow uses ASP.NET MVC - Jeff Atwood and his technical team, http://www.hanselman.com/blog/HanselminutesPodcast134StackOverflowUsesASPNETMVCJeffAtwoodAndHisTechnicalTeam.aspx

Resources