data

Sybase: How to select records from a huge table and insert into another table in chunks

Sybase problem: The selected values of column1 (id) of a huge_tbl table (60 million+ records) needs to be copied into small_tbl table which is comparatively small. The criteria to select rows from the huge_tbl depends on column2 values (mydate). huge_tbl: - id is primary key of huge_table - mydate column is a datetime field. - There is...

Rails 3 Tree Data Structure

I have bees searching for a good solution for Tree Data Structure in Rails 3. I'm trying to build a Tree menu. What do you use and what would you recommend? ...

Perl: Extract data from logs into a report

I have some logs in a directory: /test/report. The logs are named: a.log, b.log, c.log. The content of a.log is below: Input 1 ---- Number of records := 101 Input 2 --- Num of of records := 101 Input 3 --- Num of records := 101 The content of b.log is below: Input1 ------- Number of records := 88 Input 2 ----- Num of of rec...

How to Parse text data and store the same in array with splitting in j2me?

How to Parse text data and store the same in array with splitting in j2me? I have proceeded with the following code and i get to see all the text data but can't go any further. Can you guide me? /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.*; import javax.microedition...

Mysql -> what is the best dinamic column soulution for advertisement webpage?

I'm developing website in which will be categorized advertisements. In each category will be possible different fields of input (example: for car there will be motor size, for cat there will be a race). So I'm thinking how to build database to manage this (I will use MYSQL database). One way you can see in attached picture, I know that a...

Display data by claimnubers on grid view page

Hello, I am using C#. net and SQL server 2005. I am uploading files(word, PDF) to DB and displaying on page using grid view. I have different claim Numbers. like co50000006( like 10 rows). I mean the claim number has different files. I have other claim numbers on my table.(like c08000131, c01000001). I want to display only one claim n...

too much data duplication in mongodb?

so i'm new to this whole NOSQL stuff and have recently been intrigued with mongoDB. i'm creating a new website from scratch and decided to go with MONGODB/NORM (for C#) as my only database. i've been reading up a lot about how to properly design your document model database and i think for the most part i have my design worked out pret...

Perl Need to Compare Two Data Structures and Return Differences

Hi, I have two data structures with a mix of hashes and arrays. How can I compare the two data structures and return their differences, something like perl's Test::Harness module, but I don't want to actually run a unit test. ...or is there a way to tun Test::Harness without actually running a unit test? ...

Idea for Implementing new or modifying existing algo.

Hello Everyone, I am doing a class project. I want to implement new algo or modify existing ones (like dimension reduction, clustering, bagging, boosting, SVM, FPtree, text mining, etc). Please give me some ideas for project. Thanks ...

How to check user entrance and exit URL

Hi, I've looked at a couple different analytics programs (like Google Analytics) that will tell me what URL my users have entered my site from, and which URL they are going to when they exit. It certainly must be possible to gather this data somehow, I just can't find any code examples of how to do it. I would imagine that it involves...

Getting data from selected row in NSTableView linked with Core Data

Hey, So i am working on a Core Data app and I have an NSTableView linked with the Core Data. The table has three columns. Name, Position, Salary. I also set up a double click action. now what I need is that when I double click on a row i get the three values of that row. I can do the following: NSArray* myArray = [arrayController select...

I write a MySQL table into an output file (working on Unix) but I can not enter the file directory (permission denied)

When I output a whole table into an output file named 'Arshan.txt' this command works well but I can not access the output file created. When I access /usr/local/mysql/data it says permission denied. Any help will be appreciated. Thanks in advance. ...

Ski conditions data source

Hello- I am developing an app that, among other things, shows snow conditions at all the ski areas in Colorado. Can anyone suggest a place where I can legally (and preferably freely) download this information? I looked at the source code for Apples ski report widget, but it appears that the site they download from (Accuweather) does not ...

How to store data that remains after uninstall

I want to store some data that should remain also after application uninstall and to be accessible by a new version of this application. Share preferences/files are not a solution as they are removed when program is uninstalled, also writing to internal memory is not a solution (also removed with uninstall). Writing to external public fo...

iOS Core Data - design pattern

Hi, I'm a little stumped with an issue that I think goes back to my design. I'm constructing a TableViewController based on a mainly static set of rows (4) - using that as a basis for a UITableView. Each row will kick off varying different views (detail, and UITableViews)... In my managed object context for the top view I can easily n...

How to extract words from text as per the context

Hello, I want to extract relevant words from a text statement provided by the user. eg. For a question "How many sides are there in a rectangle?" The words should be 'rectangles' , 'sides', 'many' , 'how'. We've discovered that what exactly I'm aiming to do is a NLP Question answer system. But right now I want to only extract the requi...

ADO.NET Data Services and eager loading?

I'm using sharepoint 2010 listdata.svc service who uses ADO.NET Data Services. I'm wondering if it's possible to do eager loading with this service without writing own DTO objects. Thanx in advance ...

make previously created classes part of an object graph in core data

I have an iPhone project with several classes I need to make NSmanagedObjects so I can use them with Core Data, I know how to create new classes from the model, but is there a way to do the opposite, link the classes with the object model graph. ...

Class Hierarchy - ADT Hierarchy ~ Object, Ownership, container, wrapper, iterator, visitor,

I took a data structures class at a community college and transferred over to a university into a software engineering program. The data structures class i took covered. Queue,stack combined with circular arrays, hash tables and trees. My friend is currently taking data structures at the university i transferred to. They are teaching him...

Script to convert Huge Three column table into table

I have a set of data (csv files) in the following 3 column format: A, B, C 3277,4733,54.1 3278,4741,51.0 3278,4750,28.4 3278,4768,36.0 3278,4776,50.1 3278,4784,51.4 3279,4792,82.6 3279,4806,78.2 3279,4814,36.4 And I need to get a three-way contingency table like: (sorry, this doesn't look completely good) A /B 4733 ...