data

How do I find out out the fundamental operation when calculating run-time complexity?

Hi, I am trying to get the worst run-time complexity order on a couple of algorithms created. However I have run into a problem that I keep tending to select the wrong or wrong amount of fundamental operations for an algorithm. To me it appears to be that the selection of the fundamental operation is more of an art than a science. Afte...

Update DataGrid WinForm control in .Net 2003

I've been using VS 2005 and VS 2008, and never asked this question, but now I'm having a hard time using controls in VS 2003. A dataGridView does not exist, and I'm forced to use DataGrid control to show some data. The problem is, that I want to edit some of the values displayed by this control, and to reflect those changes in database, ...

Real-time Data Visualization using any Earth API

How to create something like on this video (1-2 minutes http://www.ted.com/index.php/talks/sergey_brin_and_larry_page_on_google.html) using "Google Earth API" or some other? Especially: I have an online game and want to show dynamical data on some "virtual earth". 3 types of objects changing their state in real-time. It's enough to upda...

Inherited Tables Not Accessible In ADO.NET Data Services

I am currently working on a project where I create a Data Service based on an Entity Data Model. In my Entity Model I have several inherited entities (Such as Orders (Base), Prescriptions (Inherited)). From my data services I am having a problem through the data service where I can't reference the inherited type (prescriptions) only th...

Gathering data for social data driven website

I hope this isn't OT. I've got an idea for a social site where the content is provided by the users. I see two problems: You open the site, it has very little data to start with You've attracted a few users, how do you encourage them to add content? I'm imagining something like yelp.com, where the utility really comes from the user ...

Recommended Table Set up for one to many/many to one situation

I need to create a script where someone will post an opening for a position, and anyone who is eligible will see the opening but anyone who is not (or opts out) will not see the opening. So two people could go to the same page and see different content, some potentially the same, some totally unique. I'm not sure the best way to arrange ...

Applet (or WebStart application) calling a server : best practices ?

I'd like to write an applet (or a java Web start application) calling its server (servlet?) to invoke some methods and to send/retrieve data. What would be the best way/technology to send and to retrieve those message ? ...

How to get audio data from a MP3?

Hi, I'm working on an application that has to proccess audio files. When using mp3 files I'm not sure how to handle data (the data I'm interested in are the the audio bytes, the ones that represent what we hear). If I'm using a wav file I know I have a 44 bytes header and then the data. When it comes to an mp3, I've read that they are ...

how to design extensible and secure data structure in my scenario?

Hello everyone, I am developing a web site and I need to build a data structure to store user profile information. Just like what we filled about our gender/age/education/etc. information for Facebook, etc. The current issue I met with is how to design an extensible and secure data structure, in more details, Currently I may not consi...

How to create object collection from an xml

I have an xml like the following <DataCollection> <Data> <Name>John</Name> <Age>30</Age> </Data> ... more person </DataCollection> I want to create an object(or some type) collection with Name, Age as fields. One problem that I have is I don't know the structure before hand (all i know is, there will be DataCollection an...

What's the best way to store multiple values for jQuery's $.data()?

If storing multiple (10+) values on a large number of divs, is it more optimal to store them all in a single object, or as separate values? Single Object: $("#div_id").data("data", {foo:1, bar:2}); Separate Values: $("#div_id") .data("foo", 1) .data("bar", 2); What are the trade-offs of each method? Some of these attributes wi...

.NET MVC and securely passing data between pages

a little background info first. I have been using Web Forms for most of my career and have recently become interested in .NET MVC. I realize that it is intended to be stateless, however, i dont understand how it is completely feasible. In a forms application, the user authenticates and I return a user ID and some roles which are then pla...

How to geocode a phone number in the United States?

I am looking for a way to get the latitude and longitude coordinates of any area code + prefix land line phone in the United States. Does anyone know of a data provider or service that could be used to do this? EDIT: I understand that the location of cell phones or VOIP lines probably cannot be geocoded and this is fine by me. I am ...

Representing Partial Dates in a JSON API

I am managing a RESTful JSON data API, which is growing in scope. Currently, we are returning all dates over the wire as strings "YYYY-MM-DD", but we also need to represent the concept of partial dates. What I mean by a partial date is a date value that has unknown components, either a Year-Month, or just a Year. In our presentation lay...

Passing data from MVC Controller to View in PHP

I have my own hand-rolled PHP MVC framework for some projects that I'm working on. When I first created the framework, it was in the context of building an admin CMS. Therefore, there was a very nice one-to-one relationship between model, view, and controller. You have a single row in the DB, which maps to a single model. The controller ...

Flatten Linq to XML query result from dynamic data

In a database the data is stored dynamically. That means the metadata defines classes and attributes. The user data is stored in object and object attribute tables. To simulate how the data is represented, I created a linq query in LinqPAD: XElement test = XElement.Parse ( @"<DynaDaten> <CLS ID='99' CODE='T_PERSON' NAME='T_PERSON...

DataLayer of a new Application: MyGeneration and/or Entity-Framework

The platform is ASP.Net 3.5sp1, with an Oracle db. We've considered both MyGeneration and Entity Framework for time and convenience in the DataLayer (and maybe some base classes in the Business Layer). My questions are: 1) Any pros and cons of using Entity Framework vs MyGeneration? 2) Any thoughts on using MyGeneration to generate...

What are some best pratices for managing data in a cloud?

I was wondering the various ways of storing and retrieving data in a cloud? How does facebook do it? apple (ie mobileme)? google app engine, etc? Thanks! ...

Problem with loading xml data into ndbunit

Hi, I am having problem loading the testdata.xml into ndbunit, I followed http://code.google.com/p/ndbunit/wiki/QuickStartGuide, but the test data is not loaded when I run my unit test in NUnit. Is there any gotcha that I am not aware of ? ...

Embedding PowerPoint Chart into Excel

Hey guys! I always get great answers here, so here is another question (this one may be simple, but I don't know if/how...). If I embed a PowerPoint Presentation within an Excel Worksheet, then, within the ppt, set up chart objects on each slide, can I go into the data table for the chart object, and have it refer back to the excel spre...