data

cakephp retrieving multiple values in a column

I want to retrieve multiples values from a field. the code I am using this this $conditions = array('Tag.name'=>$compare);//$compare = array('value1', 'value2',..); $values = $this->find('all', array('conditions' => $conditions)); But It keeps coming out like this SELECT `Tag`.`id`, `Tag`.`name`, `Tag`.`count` FROM `tags` AS `Tag...

SAS - Reading a File Backwards?

I need SAS to read many large log files, which are set up to have the most recent activities at the bottom. All I need is the most recent time a particular activity occurred, and I was wondering if it's possible for SAS to skip parsing the (long) beginning parts of the file. I looked online and found how to read a dataset backwards, but...

Using data services with silverlight 3?

Any thoughts on ADO.NET data services and Entity Framework with silverlight 3? It is a good pratice? ...

Free Intranet website to share data across the organization

Hi, In our organization we don’t have any intranet website to share the data/information across the organization. The information could be: HR Related Information [E.g.: HR Policies, Company Events etc., New Joiner’s Information etc. etc.] Application Developments Related Information [E.g.: How to build a program on Catchin...

table like java data structure

hi. I need to implement some kind table-like data structure that stores info like this in Java: +--------+-------+-----+ | sij | i | j | +--------+-------+-----+ | 45 | 5 | 7 | +--------+-------+-----+ | 33 | 1 | 6 | +--------+-------+-----+ | 31 | 0 | 9 | +--------+-------+-----+ | 12 | 8...

Exclude Statement in SQL

Hello StackOverflow Community, I had a quick question on how to exclude data from an SQL database using an SQL statement. My situation is I have a user login to their profile page where they will be able to friend people. I want to display all users except themselves that are found in the SQL database. Thanks for all the answers! Roha...

Flex Setting dataProvider for an itemRenderer.

I have a httpservice that returns xml data. <mx:HTTPService id="httpService" url="data/Software.xml" resultFormat="e4x" result="httpResult_handler(event)" fault="Alert.show('XML Data Error')" /> I also have a datagrid using the returned data and also passing it to the renderer which works perfect. <mx:DataGrid id="myDG" dataProvider...

How to make words into a category. (NLP)

I love to eat chicken. Today I went running, swimming and played basketball. My objective is to return FOOD and SPORTS just by analyzing these two sentences. How can you do that? I am familiar with NLP and Wordnet. But is there something more high-level/practical/modern technology?? Is there anything that automatically categorizes w...

Render List<Canvas> as list items (or itemscontrol)

I've effectively got a List or a List, XAML that represents the canvas elements... as a return from some stuff I have no control of. I've been moderately successful rendering via stackpanel.children.add etc, however want to start having the list of canvas within a virtualizing panel or list. I've set itemssource and datacontext on the...

OpenESB Nested BPEL?

Hi all, I have an unusual design goal that I would like to solve using OpenESB. We have a number of files that will be generated by our system to be transferred to another system. Depending on the data type, the source system and the destination system, a series of transforms will need to take place before the data can be uploaded to th...

Backing up data between SQL Express 2005 and SQL Server 2008 Standard Edition

Hi, I am developing an application which needs to backup data between SQL Express 2005 and SQL Server 2008. My client runs with an installation of SQL express 2005 and needs to periodically back up data to a server database running on SQL Server 2008. The client db also receives some new data from server and needs to update itself. The ...

PHP: Files or database

What's better? I want to share a script where some data (4 ints (between 0 and 2000) and a string (length up to 200)). Should I store them in files or in a MySQL database? I use normally databases, but in this case are files also not that bad (to handle). The problem is that there are partial in one day over 100.000 inserts. That are s...

On getting any db error lock wait timeout, com.mysql.jdbc.exceptions.jdbc4.CommunicationsException, the data disappears from the db

i am implementing jpa using toplink, and whenever any sort of error comes in the log file, all db entries after the error DISAPPEAR from the db, all errors are caught in a try, catch statement and sent to an error page, still the data continues to disappear, i call commit() after every transaction, i have not called rollback in the code,...

How to create DataSource file outside main test method

[TestInitialize()] public void MyTestInitialize() { XmlTextWriter writer = new XmlTextWriter("DataFile.xml", Encoding.UTF8); writer.Formatting = Formatting.Indented; writer.WriteProcessingInstruction("xml", "version='1.0' encoding='utf-8'"); writer.WriteStartElement("TestCases"); Direct...

Python organizing data with multiple dictionaries

I am trying to create a small server type application and have a question regarding organizing data with dicts. Right now I am grouping the data using the connection socket (mainly to verify where it's coming from and for sending data back out). Something like this: connected[socket] = account_data. Basically, each connected person will ...

Data Annotation Validators

Sorry my poor english! I'm trying to use the data annotation validators to make my validation server-side, I'm driving through this tutorial asp.net site: http://www.asp.net/learn/mvc/tutorial-39-cs.aspx, but is giving error in the time I put the attributes [Required], [StringLength (10)], etc., that because I'm using vb.net. When I cre...

Address Book is returning old values

Hi there, I am having a problem with the AddressBook framework. It all seems to be stemming from ABCopyRecordForUniqueId returning a record with old data. Example: I run up the program below in one terminal window - it shows the current data. I make a change through the address book UI - my program continues to show old data. I run ...

GWT+hibernate for highly interactive web application?

As a Java developer new to the web development environment, I was quite excited to find Grail which provides a great framework especially the convenience of abstracting DB operations with ORM. I later learned that it is actually the function of hibernate. At the same time I am delighted to learn about GWT. It is a god send for the projec...

Which data structure for List of objects + datagrid wiev

Hi, I have to develop a code which will store a list of objects, as example below 101, value 11, value 12, value 13 ...etc 102, value 21, value 22, value 23 ...etc 103, value 31, value 32, value 33 ...etc 104, value 41, value 42, value 43 ...etc Now, the difficulty is, that first column is an identifier, and whole table should alwa...

Storing and accessing large amounts of data

Hello, My application creates pieces of data that, in xml, would look like this: <resource url="someurl"> <term> <name>somename</name> <frequency>somenumber</frequency> </term> ... ... ... </resource> This is how I'm storing these "resources" now. A resource per XML file. As many "term" per "resource" a...