I need to choose right architecture model for my solution(client-server, web application, web services).
Can you please tell me what questions I must answer to make good decision?
thanks
Hello, I have a Category, a Subcategory and a Product model.
I have:
Category has_many Subcategories
Subcategory has_many Products
Subcategory belongs_to Category
Product belongs_to Subcategory
Is there a way to have something like
Category has_many Projects through Subcategories
?
The 'normal' rails way wouldn't work because "subcategory" doesn't belongs to product so product does not have a subcategory_id field. Instead, I need the query to be something like
SELECT * FROM products WHERE id IN category.subcategory_ids
Is there a way to do that?
Thanks,
Nicolás Hock Isaza
I have found few links but could not decide which one is the best way.
http://fabiomaulo.blogspot.com/2009/06/localized-property-with-nhibernate.html
(This stores all localised language data in one field. Can be a problem if we query from Sql)
http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspx
(This one has a warning at the beginning that it is a hack and no longer supported)
http://www.webdevbros.net/2009/06/24/create-a-multi-languaged-domain-model-with-nhibernate-and-c/
(This does not describe how multilingual data will be structured in the database.)
Hi,
I need to develop an e-Commerce site that sells auto parts. For that, I need a database that has year/make/model information that each part is applicable to. As far as I know, we need to purchase the database and subscribe updates.
Is there any database available for free? (I may not need updates)
Thanks.
Sam
Please help me!
How i can output character that moves around the perimeter of a rectangle (10*5 or 15*7) in console with TASM?
.MODEL small
.STACK 100h
.CODE
start:
mov ah,03
int 10h
mov cx,10
A:
push cx
mov ah,03
int 10h
mov ah,02h
inc dl
int 10h
mov al,42
int 29h
pop cx
LOOP A
mov ah,4ch
int 21h
end start
I do not know how to solve the problem...
So I installed a trial of SQL Server 2008 enterprise edition while waiting for MSDN licenses to come through - I now want to uninstall the trial and replace it with a developer edition installation.
However, I'd like to first know how long I have left on the trial. Is there a way to do this programmatically with SQL? I looked at create_date in sys.databases, but these give dates that are in 2003 (which is, I guess, when master and model were originally created).
Following on from a discussion which got going in the comments of this question.
How would one go about writing a Spinlock without CAS operations?
As the other question states:
The memory ordering model is such that writes will be atomic (if two concurrent threads write a memory location at the same time, the result will be one or the other). The platform will not support atomic compare-and-set operations.
Hi,
I want to release an update for my app.
I'm stuck on how to update the existing core data database which also stores data entered by the user.
All i need to do is update a couple of records and preserve current user data. No changes are made to the model.
Thanks.
Did anyone try to train a net to act as a relay ?
Can't get it working, using nntool and simple train model like
chirp - relay - out.
Apreciate your help.
Assume an abstract model like this:
public abstract class MyClass : BaseEntity
{
[UIHint("File")]
public long? DocumentFileId { get; set; }
}
The problem is Cannot resolve template 'File', while there is File.cshtml in View editor templates.
The point is, if I don't define MyClass as an abstract class, error will be solved.
My question is, why editor template can not resolve in abstract classes, and how can I handle it?
Hi I need to emulate a task pane by floating a modeless form over the Excel main window. The reason for this requirement is that I need to have taskpane features for my Excel 2003 add-in, but cannot use the document-centric model.
Can anyone suggest what would be the best way to do this? The modeless form would need to detect the main window resize event and resize itself accordingly, and also need to always position itself at the bottom of the window (kind of like a docking pane).
is there a way that I can save the model by using dictionary
for e.g.
this is working fine,
p1 = Poll.objects.get(pk=1)
p1.name = 'poll2'
p1.descirption = 'poll2 description'
p1.save()
but what if I have dictionary like { 'name': 'poll2', 'description: 'poll2 description' }
is there a simple way to save the such dictionary direct to Poll
Hi,
Is there any possibility to extract globalize2 translation for specified locale without setting
I18n.locale = :ru
as i know - i can extract ALL translations using
model.translations
but maybe there are simplest way to extract only for one language?
I'm following steps of the NerdDinner tutorial. In the dinner Model class where I have error and validation handling for CRUD instead of error notifications in browser I get some kind of debugger dialog. Why is that?
Hello everybody
I am building a news app for my website. I want to use a sort of tag system. Each news article can have different and multiple tags. All tags are saved in a tag model, and i want to connect the tags to the newsarticle. Now is this possible with: tags = models.ForeignKey( TagsModel ) for one tag, but how i can do this with multiple of them?
Thank you!
Compiling CUDA code with immediate (integer) operands, are they held in the instruction stream, or are they placed into memory? Specifically I'm thinking about 24 or 32 bit unsigned integer operands.
I haven't been able to find information about this in any of the CUDA documentation I've examined so far. So references to any documents on specific uarch details like this would be perfect, as I don't currently have a good model for how CUDA works at this level.
Does anyone know of any tools for generating ASP.NET MVC CRUD User Interfaces (E.g. the controllers and views for Admin tools), given:
A set of model objects.
A set of repositories for retrieving those objects.
Thanks
Is there any crossplatform GUI library for C language? (I mean at least win mac lin) If there is any XML-like GUI editing model, any GUI editing crossplatform visual programms it'l be grate!)
Hi All,
I am using Scanner(basic model) to scan the barcode. Scanned barcode will be captured in a textbox. In txtBarcode_TextChanged event i am getting the barcode to access.
Problem:
If i clicked the scanner more than once, the barcode gets append with the previous value.
Code:
protected void txtBarcode_TextChanged(object sender, EventArgs e)
{
string txt = this.txtBarcode.Text;
this.txtBarcode.Text = string.Empty;
}
I have property in my model which is a collection type (List). I'd like to call for each item in this collection Html.DisplayFor or Html.EditorFor. How can I do this ?
I just created model with String array and array list of string array.Like this
public class LookUpModel implements Parcelable
{
private String [] lookup_header;
private ArrayList<String []> loookup_values;
public void writeToParcel(Parcel dest, int flags) {
dest.writeStringArray(getLookup_header());
};
}
I have implemented parcelbale then write for String [] but how to do for the ArrayList<String []> and that values need to pass to another activity.Thanks in advance.
I have an Entity Framework model using Table per Type Inheritance, but when I use a VS Data Generation Plan it produces duplicate keys in the child tables, which is a problem for EF. Does anyone know of a way to get this to work, so that the child tables do not have overlapping keys?
Hi,
I have a teacher model which has_many students. When I render a student (as json) I want to strip out the teacher_id property and replace it with the name of the teacher in my representation.
What is the best way to achieve this?
Cheers,
Chris