lookup-tables

Finding what hard drive sectors occupy a file

I'm looking for a nice easy way to find what sectors occupy a given file. My language preference is C#. From my A-Level Computing class I was taught that a hard drive has a lookup table on the first few KB of the disk. In this table there is a linked list for each file detailing what sectors that file occupies. So I'm hoping there's a c...

Creating a variable length color lookup table

I was wondering if anyone has any words of advice or could point me to any good resources regarding the creation of color lookup tables for image synthesis. In my application I have floating point values between -1.0 and 1.0 that need to be mapped onto RGB space. The problem is, I don't know beforehand what precision those floating point...

gcc warning: braces around scalar initializer

Hi Guys, I have look-up-table as defined below and I'm making use of GCC. When I compile I get warnings as warning: braces around scalar initializer What does this warning mean? How should I initialize this LUT? Am I making a mistake in initializing this structures? Help!! typedef struct TECH { float velocity1, velocity2; ...

Lookup Tables - Where to put in n-Tier Architecture

I have a few lookup tables that I am in the process of plumbing through my app. These are tables that drive dropdowns on the website. They have no business logic, but they need to get from the database to the UI while following the architecture of the app. The current architecture has a Data Layer, Business Layer, and Presentation Lay...

ASP.NET MVC 2: Any way to pass two Objects to a Template?

A "Lookup" in this example is an IList<string> of state abbreviations. Generally, your Domain Model POCOs won't include these options. ViewModels usually take this responsibility referencing both the original Domain Model as well as the Lookup object, but what happens when the Domain Models are nested and you are using MVC templates (w...

SharePoint - multiple time and user stamped comments per list row and friendly named lookups

I suspect these are some of the limiations of SharePoint. Does anything in the SharePoint UI allow for a column to be added to a list that enable users to enter multiple time and user stamped entries to a single custom list row? For example like a comment column? And on the subject of connecting two list to each other. Ideally, we wou...

Lookup tables question

Possible Duplicate: database design question For performance and future data editing, is it better to store all lookup values in 1 table or each to its own table? I have items like Industry, Sub industry, Sector, Sector type, etc Each of these have between 5 to 50 values. Each can be related like Sector belongs to Sector type....

benchmarking trig lookup tables performance gains vs cpp implementation

We are developing a real-time system that will be performing sin/cos calculations during a time critical period of operation. We're considering using a lookup table to help with performance, and I'm trying to benchmark the benefit/cost of implementing a table. Unfortunately we don't yet know what degree of accuracy we will need, but pro...

Loading the data for a Simulink Lookup Table from a file

Hello, I've built a Matlab/Simulink model that I'm using to simulate the performance of an underwater robotic vehicle that uses acoustics for various key navigation and localisation functions. Since the characteristics of the ocean change with seasonality and geolocation, I would like this data to be dynamically loaded into the model f...

MySQL multiple Id lookups

I'm trying to add a full text search to a system. The query I want to write needs to involve multiple lookups followed by the search (if that's even possible). I've got a table of teachers and a table of subjects. teacherProfile teacherId [int] - primary key subjectOneId [int] subjectTwoId [int] subjectThreeId [int] teacherBiography [t...

How to use a look up table in MATLAB

I need to perform an exponential operation of two parameters (one set: t, and the other comes from the arrays) on a set of 2D arrays (a 3D Matrix if you want). f(t,x) = exp(t-x) And then I need to add the result of every value in the 3rd dimension. Because it takes too much time using bsxfun to perform the entire operation I was thi...

C# Overhead of evaluating 13 bits instead of native 16 bits

I'm compiling a lookup table that needs to have 133,784,560 entries, with values ranging from 0 - 7,462 The maximum value of 7,462 can be contained within 13 bits. This gives us a lookup table of around 207 MB. A 16 bit value increases our lookup table size around 50mb more. The extra increase in size of the lookup table is not signi...

How to handle lookups?

Hello, When I need to use a lookup I usually include the ID property in the view model class so I can use it this way in the corresponding view <%= Html.LabelFor( model => model.LookupTableID )%> <br /> <%= Html.DropDownListFor(model => model.LookupTableID, Model.LookuptableList, new {}) %> having Model.LookuptableList as a property ...