data

Where get data/api for get food recipe and/or nutrition facts?

I'm thinking in build a iPhone app for get recipes. So, I'm looking for resources where I can get the data of that recipes in a way I can use in my app, store locally and/or query. I'm interested in get nutrition facts, photos, etc... I understand that maybe I need to collect the data from several sources (like flickr photos?), but any ...

Why some libraries must implement basic data structure?

Some open source libraries have tendency to re implement basic structures like string, list, stack, queue... Why don't they use stl library? Is stl not good enough? ...

Change the value of variable PHP

I have input fields ,which I process with AJAX and send it on another file. The value of the inputs is always different. How in the file ,where I get the data from AJAX ,to change the variable id always when I get the data from AJAX. Example: I get the data from AJAX in this file: <?php $id=1; echo '<div id="$id"></div>'; ?> Then I d...

Find adjacent rows without stored procedure

Considering the following table: someId INTEGER #PK ageStart TINYINT(3) ageEnd TINYINT(3) dateBegin INTEGER dateEnd INTEGER Where dateBegin and dateEnd are dates represented as days since 1800-12-28... And considering some sample data: someId | ageStart | ageEnd | dateStart | dateEnd ------------------------------------------------ ...

How do I deal with a bidirectional dependency between my business and data access layers?

I have an application with three layers (Presentation, Business Logic, and Data Access). In the data access layer, I have an object called Unit, and I have another object called Unit in the business layer. When Insert() is called on the Unit object in the business layer, it calls the Insert() method on the corresponding object in the d...

Use array as jQuery POST Variables?

When sending data via POST or GET with jQuery you use for format { name:"value" } so i thought, is there a way to do it with this kind of code: var postdata = array(); postdata['name'] = "data"; $.post("page.php", postdata, function(data) { alert(data); } I tried this, and it doesn't seem to work. Is there a proper way to do this?...

MySQL Frontend that displays foreign rows nested within a table's rows?

I once came across a MySQL Frontend app that displayed foreign linked rows within the parent row, if for instance the Client table has a foreign key to the Suburb table: Do you know of any Frontend that can do this? ...

Is information a subset of data?

I apologize as I don't know whether this is more of a math question that belongs on mathoverflow or if it's a computer science question that belongs here. That said, I believe I understand the fundamental difference between data, information, and knowledge. My understanding is that information carries both data and meaning. One thin...

Is it possible to Take object members directly from a queue of type object?

Hi all, If I where to have a Queue holding a collection of objects (Custom object,bool,bool,bool,bool) and the custom object holds three doubles itself. Can I use the .Take(IntegerValue) command to only take one of the doubles (for the specified take length) from the custom entity contained in the queue and cast it to a double array, p...

WPF binding only inside XAML (simple question)

Why this works <myToolTip:UserControl1> <TextBlock Text="{Binding Path=TestString, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type myToolTip:UserControl1}}}"/> </myToolTip:UserControl1> BUT this does not <myToolTip:UserControl1 x:Name="userControl"> <TextBlock Text="{Binding Path=TestString, ElementName=userCo...

Save memory in Python. How to iterate over the lines and save them efficiently with a 2million line file?

I have a tab-separated data file with a little over 2 million lines and 19 columns. You can find it, in US.zip: http://download.geonames.org/export/dump/. I started to run the following but with for l in f.readlines(). I understand that just iterating over the file is supposed to be more efficient so I'm posting that below. Still, wit...

Import csv data (SDK iphone)

I am new to cocoa. I have been working on these stuff for a few days. For the following code, i can read all the data in the string, and successfully get the data for plot. NSMutableArray *contentArray = [NSMutableArray array]; NSString *filePath = @"995,995,995,995,995,995,995,995,1000,997,995,994,992,993,992,989,988,987,990,993,989...

How does jQuery store data with .data()?

I am a little confused how jQuery stores data with .data() functions. Is this something called expando? Or is this using HTML5 Web Storage although I think this is very unlikely? The documentation says: The .data() method allows us to attach data of any type to DOM elements in a way that is safe from circular references and theref...

What is encoding & decoding in communication?

Hello Everyone, Can someone please redirect me to some good references about the encoding and decoding in communication and different encoding techniques(unicode, base64, utf7) etc. Thanks in advance, Rupesh ...

Best way to save data in iPod Touch/iPhone Objective-C

Hi all, I am writing a very simple application, for the iPhone. Unfortunately I am really a newbie. What I am trying to do is to save data at the end of a user experience. This data is really simple, only string or int, or some array. Later I want to be able to retrieve that data, therefore I also need an event ID (I suppose). Could y...

Saving data so it can be loaded locally

hi guys, i'm working on iphone application which needs to run offline at an exhibition. It should present data, stored local because there is no internet at the booth. Still, to easily have content updates it should be able to update it's content once connected to internet. It's quite some data ( around 300 full lines of text ) and I...

Data clean up: are there libraries of common permutations that we can use? Or is there a better approach?

We are working on clean-up and analysis of a lot of human-entered customer data. We need to decide programmatically whether 2 addresses (for example) are the same, even though the data was entered with slight variations. Right now we run each address through fairly simplistic string replacement (replacing avenue with ave, for example)...

SSIS - Bulk Update at Database Field Level

Hello, Here's our mission: Receive files from clients. Each file contains anywhere from 1 to 1,000,000 records. Records are loaded to a staging area and business-rule validation is applied. Valid records are then pumped into an OLTP database in a batch fashion, with the following rules: If record does not exist (we have a key, so th...

WPF DataGrid Group Style Sorting

I have a data grid that groups on a TypeId. When ever data is enetered into the fileds it wants to sort the data in the Grouped area. I cannot seem to turn that feature off. ...

Blazeds works fine but have to refresh the client to get it to work

Blazeds works fine but have to refresh the client once again to get it to work. Any solution? any one has got into this before? description and code in the following link. http://forums.adobe.com/thread/598507?tstart=0 ...