mapping

How would you implement an interactive floorplan / building map?

I need to build an "interactive floorplan" for a shopping centre (or two). Many shopping centre websites already have this (eg Bluewater in the UK) Traditionally, the way to build such a floorplan / map is to do it in Flash. The actual floorplan is a Flash asset and the data that describes which retailer is in each location is fetched ...

Hibernate mapping collection by column

Hi there, lets take this example <class name="Product"> <id name="serialNumber" column="productSerialNumber"/> <property name="category" column="category" /> <set name="categories"> <key column="productSerialNumber_FK" not-null="true"/> <one-to-many class="Part"/> </set> The collection mapping always maps with the id from t...

Is there an easy method of process mapping a complex SSIS package so I can print it out?

I have taken ownership of a very complex SSIS package with multiple files and routes. Is there an easy method of process mapping the whole process automagically so I can print it out and understand it? Edit: Added a screenshot of an example SSIS package that I need to map. Cheers, Ian. ...

XML Mapping - XSLT or Code?

I have had a number of discussions recently over whether to use XSLT or code to write mapping functionality from one XML format to another or even when converting to something other than XML. Now I am of the mindset that XSLT's purpose is exactly for this type of thing and would be the most suitable option. However, other people are su...

Implementing 1 to n mapping for ORM c++

I am writing a project where I need to implement a stripped down version of an ORM solution in C++. I am struck in implementing 1-n relationships for the same. For instance, if the following are the classes: class A { ... } class B { ... std::list<A> _a_list; ... } I have provided load/save methods for loading/saving...

Map strings to numbers maintaining the lexicographic ordering

I'm looking for an algorithm or function that is able to map a string to a number in such way that the resulting values correspond the lexicographic ordering of strings. Example: "book" -> 50000 "car" -> 60000 "card" -> 65000 "a longer string" -> 15000 "another long string" -> 15500 "awesome" -> 16000 As a function it should be somet...

Python: List of lists of integers to absolute value to single number

If i had a list of list of integers say: [['12' '-4' '66' '0'], ['23' '4' '-5' '0'], ['23' '77' '89' '-1' '0']] I wanted to convert the numbers to their absolute values and then to a single number, so the output would be: 1246602345023778910 thanks ...

How to best map database-aware entity types between application layers

I have an ASP.NET MVC app with a primitive repository layer that currently serves LINQ to SQL entities back to the controllers which then send them to the views. I now want to start using some domain-centric objects in place of my LINQ to SQL entities, and I have been using AutoMapper to help accomplish some of this. For simple propert...

Linq to Sql Mapping

When I modify the structure of the table in Sql Server ,won't it be automatically reflected in the "Dbml" Layout designer ?Each and every time i have to delete the tables in "dbml' layout designer and drag the table from sql server. ...

TreeView node mapping in winform

I have a treeview control, and it's child node is mapped to element in a list, when the element in the list state changes, i need to update the corresponding treeview node, also, when user select a treenode, i can map to the element in the list, what's the best way to record the mapping? ...

How to map XML schemas to C/C++ code?

What the best way to map XML schemas to C/C++? Here is an example: ------ C/C++ ----- struct zone { char *var_name; float var_value; }; ------ XML ----- <xs:element name="zone"> <xs:complexType> <xs:sequence> <xs:element name="Var_name" type="xs:string"/> <xs:element name=...

JPA mapping: Reusing entities in multiple relationships

Let's say I have: class Unit { private TextContainer source; private List<TextContainer> targets; } Can I annotate class TextContainer in such a way that it works within both relationships? TextContainer must be either source or target. ...

How to flatten Linq-To-Sql table mappings?

I have a Linq-To-Sql mapping between POCO classes and my DB. I want to be able to add properties on my classes which represent slightly more complex constructs than simple scalr values. For instance, I have a custom struct type which holds two simple scalar values. I don't want to make this another table and then add a FK as the propert...

NHibernate and sqlite - Could not compile the mapping document

Hey, I'm trying to run an NHibernate over sqlite. i have two projects: 1. Orange.Database - holds the pocos and daos and everything else 2. Orange.GUI - holds the gui... when the program reach to the reach the: Configuration config = new Configuration(); config.AddAssembly("Orange.Database"); sessionFactory = config.Configure().B...

Using CARMEN Robot Navigation Toolkit with Hoyuko Laser

I'm currently working with CARMEN (http://carmen.sourceforge.net/), and I'm trying to make a robot navigate using the CARMEN toolkit and a Hoyuko URG-04LX. Even though the laser does work, and CARMEN reads the data (I checked running the CARMEN laserview, and it shows the laser scans), the "robot" module doesn't receive any data from the...

Mapping domain objects to web service proxy objects in Java

Hi, I am trying to find a way for mapping domain objects to web service proxy objects, generated by various Java web service stacks. Both the web service (.NET) and the Java code use implementations of a particular specification. The specification is meant to provide very detailed description of domain classes, which should be implement...

Shadow maps unable to properly project shadows in some situations?

In the shadow map sample provided by Microsoft I've noticed an issue where shadows are not properly projected when thin geometry is projected at high angles, see here the shadows being projected, notice the poles from the lights are not projected: http://imgur.com/QwOBa.png And in this screenshot we see things from the lights perspectiv...

How I could assign a preset set of string values to a field of table in SQL Server 2008?

I want a field in a table of SQL Server 2008 to contain a preset number of string values for user to be able then to select one value from a dropdown listbox in my WPF front-end app. Is it possible only through assigning a numeric int type in a SQL Server table field and then doing all the stuff through C# front-end coding, or are there...

Hibernate computed property and SQL-Queries

Hi, I've implemented a computed property to my configuration which works fine if I'm using HQL only. Sadly there are places where SQL-Queries are executed which I can't build into HQL. Am I facing a bug or just doing something wrong? <property name="customerNr" type="int" insert="false" update="false" lazy="false"> <formula> (SELECT DI...

map video to 3d object using opengl es in android

is it possible to map video file to 3d object using opengl es? how? what are the steps? ...