data

Rendering a non UIElement via binding

If I have an object derived from System.Windows.DispatcherObject but defines a ControlTemplate. public class A : System.Windows.DependencyObject { public ControlTemplate ControlTemplate {get; set;} } which is a member of public class B { public A NonUIElement {get; set;} } Is it possible to render this object via a Binding...

How do you store business activities in a SQL database?

The goal is to store activities such as inserting, updating, and deleting business records. One solution I'm considering is to use one table per record to be tracked. Here is a simplified example: CREATE TABLE ActivityTypes ( TypeId int IDENTITY(1,1) NOT NULL, TypeName nvarchar(50) NOT ...

Search a Custom DataClass for Results

I have built a custom Data Class that stores IP Address Details. Public Class IPAddressDataItem Private _ID As Integer Private _IP As String Private _Name As String Public Property ID() As Integer Get Return _ID End Get Set(ByVal value As Integ...

Data types compared to OOP objects

Is a data type a piece of code? In other words, is it software? I'm talking about fundamental data types like integer, char, etc. If so, does that indicate that objects in OOP programming are extensions of data types? That is, basically, have programmers taken data types to another level in creating objects? ...

Dynamically populate a pdf

Could anyone help me? I need to insert information to the header of a pdf from a customer form online with php. I am not a programmer so I need a sense of direction before I speak to my developers. The idea is to get licence information from a field, insert the information to the header and save the result as securely as is reasonably...

Program to capture data and address connected by a certain program.

I need to capture the remote addresses that a program connects to and the data that it sends and receives on Win 7. any suggestion for the program I can choose? ...

Can't get the keys in a database to parse as part of an array

I have an table in my database which so far has been great for storing stuff in more than one object. But i want to be able to transform it into a multi-object array thingy. Here is the data which is related to this new 'object' (in mysql): uid field value page:1 shop[2].location In Shops, Dundas Arcades,M...

Given a time series for many unique IDs, I need the top 100 deltas for each period

I have a time series of data in TSV like so: ID \t Date \t Value ------------------------------- 1234567 \t 2009-01-01T00:00:00.000Z \t 121 12131 \t 2009-06-01T00:00:00.000Z \t 151 12131 \t 2009-07-01T00:00:00.000Z \t 15153 ... It easily fits in RAM, but is too big for Excel. There is one value per month per ID, but not all IDs have ...

Isolated storage vs Application data folder

Hi, Can some tell me differences between using isolated storage and Application Data Folder. Which folder is recommended to use to store application specific local store. ...

Keeping a history of data changes in database

Every change of data in some row in database should save the previous row data in some kind of history so user can rollback to previous row data state. Is there any good practice for that approach? Tried with DataContract and serializing and deserializing data objects but it becomes little messy with complex objects. So to be more clear...

Silverlight deployment data provider missing

I am deploying a silverlight application which uses a mysql db through ADO.NET Entity Data Model. When trying to run the application from my host, the WCF service works fine, but i get a server exception when calling from wcf service: Unable to find the requested .Net Framework Data Provider. It may not be installed. at System.Data....

How to get the value of last mysql fetch data? PHP-MySQL

I want to do this: Check the top 10 values of points. Here is my condition: If there are less than 10 records (rows) found, e.g give bonus If the points is in top ten (among hundreds records/rows), give bonus. So, what i do is (wrong method): SELECT points FROM `scores` WHERE id = '1' ORDER BY score DESC LIMIT 9 , 1 That will on...

Multi-Root Tree Structure

I have a data such that there are many parents each with 0-n children where each child can have 0-n nodes. Each node has a unique identifier (key) Ultimately, the parents are not connected to each other. It seems like this would be a list of trees, however that seems imprecise. I was thinking of joining them with a dummy root. I need...

View data of a table in sql server 2008

Hai guys, I installed sql server 2008 and i cant view table data .. When i rightclick on the table it shows select top 1000 rows,edit top 200 rows... How to view all the rows of my table... ...

How to download movie and save it to the iphone app sandbox?

Hi, What classes do i need to use for download movie and save it to the sandbox? Do i need to save it to the Documents library? Do i need to use initWithContentOfUrl? What tools do i need to this task? tnx. ...

Simple mechanism to transform dataobjects into HTML in ASP.Net.

Hello. I am looking for a mechanism to transform dataobjects into HTML. The elements in the dataobject are of both, simple and complex types. I have tried playing with HtmlTextWriter for rendering but got stuck with complex types. Mine is an ASP.Net website project. I have to avoid using server side controls (and therefore do away wit...

Can MySQL VARCHAR's store any chars?

Can MySQL VARCHAR's store any char like nulls and newlines? ...

Distributed File Compression

I've been doing some thinking about data redundancy, and just wanted to throw everything out in writing before I kept going along with this (and furthermore to double check whether or not this idea has already been put into practice). Alright, so here goes. The internet is filled with redundant data, including text, images, videos, etc...

Very complicated regular expression

I've been stuck trying to write this regular expression I need. Basically, I have a long string comprised of two different types of data: [a-f0-9]{32} [a-zA-Z0-9=]{x} The thing is, x is only constant in the particular instance: if in one case, it happens to be 12, it will be 12 for that particular dataset, but next time I run the reg...

How to manage small variations of data?

Hi, I am currently building a multiplayer system, and I have a design question about how to manage lot small variations of data between lot of objects. I'll start with an example: Let's say I have 3 players: A, B and C. A is friendly with B and enemies with C. That means, I must show C that A is an enemy and B that A is friendly. Now I ...