data

Understanding client and server side validation using data annotations

Hi, I'm using MVC 2. I have a question regarding client and server side validation. Lets say I have a class, and it has 3 properties as such: [Required(ErrorMessage = "Required")] public object Property1 { get; set; } [Required(ErrorMessage = "Required")] public object Property2 { get; set; } [Required(ErrorMessage = "Required")] p...

TryUpdateModel not updating object after property value has changed

Hi, I'm using MVC 2 and EF4. If have a view that displays my Application (class) properties. Not all the properties are displayed in the view. There are a couple of the properties that need to be set once the submit button is clicked. I'm getting client validation to pass, but my server validation is still failing. I receive an App...

what is the effect of the file size and file type on the ratio of compressed file size to original file size?

i want to comper original file size and file type with the copmpressed file size and file type ...could you help me how can i come up with this problem ?! ...

SQL: How to create reports in SQL Server 2005/2008 Reporting Services using XML data?

Any suggestions on how to create report/s in SQL Server Reporting Services using XML data (found in existing table/s)? ...

How to show data in google map

I have a csv file consists of thousand of data (columns are address1 address2 city state zipcode tag county country )of some agents.i want to upload and show this data in google map . here is a reference http://code.google.com/apis/maps/documentation/mapsdata/developers_guide_protocol.html#uploading_csv i want to ...

An effecient datastructure to hold structure variable with sorting capability

Hi ppl, I have a structure struct dbdetails { int id; string val; }; I need a data structure in C++ that can hold structure variable with a sort capability. Is it possible? im a newbie. Sorry If this questions is wrong. I was looking at vector, which can hold structure variable, but I will not be able to sort it based on id ...

Help!!!How to estimate the value of their data recovery software ?

Hey everyone, I've got the answer of my last problem. Now, there is a new big problem! I have looked for much information, and found two companies which mainly match our requirement. Before everything ,I want to know more about their condition for making sure whether they are worth our purchasing. Pls give me more suggestions.Thank u soo...

SQL data is not stored on iphone

Hey, I have been following this tutorial on embedding SQLITE in my iPhone App. The thing is, when adding a new object into the SQL DB everything is fine, but, as soon as i change anything (e.g.) the name of the entry, and then restart my app, the new name is not saved. Since I couldn't find a similar issue nor have I been working with ...

How to delete application data at the time of Uninstall in Android?

Hi Friends, I want to know that how to delete application data when application is uninstall. means when i am deleteing my android application all it's associated data will be deleted, so how we can do that? ...

Deallocate memory from large data structures in C#

Hi, I have a fewSortedList<>andSortedDictionary<>structures in my simulation code and I add millions of items in them over time. The problem is that the garbage collector does not deallocate quickly enough memory so there is a huge hit on the application's performance. My last option was to engage theGC.Collect()method so that I can rec...

Which is better, filtering results at db or application?

A simple question. There are cases when I fetch the data and then process it in my BLL. But I realized that the same processing/filtering can be done in my stored procedure and the filtered results returned to BLL. Which is better, processing at DB or processing in BLL? And Why? consider the scenario, I want to check whether a product...

How to create multi-column data entry form using CSS in Asp.Net?

Hi- While converting a desktop application to a web app, I've run across my ignorance when attempting to implement a multi-column data entry form using CSS. I'm resolved to avoid using tables for this type of thing, and while I found a good reference to laying out a data entry form, I can find nothing that applies to multiple-column lay...

Android: How to send and receive data SMS messages

I've found a few tutorials on how to send/receive text SMS messages, but none on how to send/receive data SMS messages. I have a very small amount of data I would like the users of my app to be able to share. I am able to send, but my BroadcastReceiver doesn't ever get called. It seems this is a known issue (http://code.google.com/p/an...

How to Compare 2 very large matrices using Python

I have an interesting problem. I have a very large (larger than 300MB, more than 10,000,000 lines/rows in the file) CSV file with time series data points inside. Every month I get a new CSV file that is almost the same as the previous file, except for a few new lines have been added and/or removed and perhaps a couple of lines have been...

Databases and 3rd Normal Form.

Do you always design databases in at least Third Normal Form (3NF)? Why? ...

Get EntitySetName from EntityName in WCF Data Services

Hi, I have a EnityName called Client and I need it's collection name Clients, it has to be generic so that I can get the EntitySetName from EntityName for any entity. It's exposed in the svc file but doesn't seem to be in the service proxy class. If I can do this then I can have a generic method like. public void Add<T>(IEnumerable<T> ...

Concept for archiving huge database

I need a concept how I can archive all data in D-Pool which is older than one year. At the moment we have more than 3 million records in the D-Pool. Because of this huge data foundation searches and filters over the database takes quite too long, because most searches are done over the whole D-Pool data, but in most cases I am only inter...

asp.net mvc2 validations

I am using DataAnnotations for validation (including client side) I have a form with multiple fields. Basic validation for individual fields work fine. Now there are a couple of fields of which atleast one needs to have a value (if there are 3 fields then either 1st or 2nd or 3rd field should have a value). I have read quite a few pos...

Import large csv file to mysql database using php

I have a very large CSV file (150 MB). What is the best way to import it to MySQL? I have to do some manipulation in PHP before inserting it into the MySQL table. ...

trying to change data with the UPDATE function in SQL and PHP.

hey, im using PHP, and with the update-function im trying to change data in SQL. can annyone show me how that's done? thanks ...