data

Simple csv reader?

all, I started out with what i thought was going to be a pretty simple task. (convert a csv to "wiki" format) but im hitting a few snags that im having trouble working through I have 3 main problems 1) some of the cells contain \r\n ( so when reading line by line this treats each new line as a new cell 2) some of the rows contain "...

How to read data in chunks from notepad file in Matlab?

My data is in following format: TABLE NUMBER 1 FILE: ReservoirModel_CMGBuilder.irf WELL: Well-1 TIME Oil Rate SC - Yearly day bbl/day -0.01 0 364.99 35368.4 729.99 29307 1094.99 27309.5 1460.99 26058.8 1825.99...

REXX / z/OS question

Hi, I'm wondering one thing with REXX-language, how it handles data set locks. The situation: - I have sequential data set open in my ISPF-editor - I start REXX-program what updates (makes changes) that data set - it works fine, but how it is possible? Normally if you have data set open in your editor and you try to use that from anothe...

dynamic paper form generation

currently, i've got an application that needs to fill out a printable form with data. clients send me a form and i create a digital version of it. there are tons of these forms and i often need to customize them and add additional fields, etc for my clients, so they should be really simple to create and modify. i've got a system in p...

Data Privacy for Google Charts

We're looking at adding charts to our webapp. I recommended using a 3rd-party service such as Google Charts; this idea was rejected over fears about client data being passed to Google. Google's Privacy Policy (which appears to apply to Charts) seems to preclude the abuse of our data, since it states that they require opt-in to share it...

"each" method in extjs data store

So, I got a data store in my code that I'm loading in a function. In that store I want to use the each method to append each record to the body of a panel in a certain format. What I'm trying to figure out is how to use this "each" method. Has anyone ever had to use it before? I'm relatively new to functions and programming in general s...

How to store several HTML form fields in one mysql table field?

Hi, I want to store several fields from a html form in one table field. Here is the source code for the form. This is only part of the form, the form tags are there. Attached is a screenshort from this part of the form. <table border=0 cellpadding=0 cellspacing=0> <tr> <td><input class="field checkbox" type="checkbox" value...

Android: Exchange objects between Activity and Service

Hello! I have an Activity "A" which instantiates two objects from the Facebook Android SDK. I put these two objects into a static HashMap with unique static keys and their references. From other activities "B" and "C" I'm able to get these two corresponding references via myhashmap.get(). These two Activities are within the same applica...

Save/Read user data across different browsers

I have been trying to figure this out for a couple of days now. My machine is a mac with snow leopard installed. I listen to music on http://listen.grooveshark.com/ using firefox, and I do not have a user account with them. When I leave the site and come back using firefox, I get an option to restore the songs that I had added to my pl...

What is a practical process for doing data transformation on a live system when hibernate + code generation is used?

I have an existing database defined via HBM.XML files (code and sql dml generated via Hibernate tools), and am looking for a practical way to perform data transformation on existing data. So supposed the following: The original table is defined with a single FK; there is existing data. The revised table is defined with two FKs; the two...

How can I update data in iPhone app

Hi, I create an app, with data store in plist. Now what are the wAys I cAn update the data? Maybe if I create a webpage and retrieve my dAta from it instead of storing in plist? Or is there a way I can update my data when I plug into iTunes? Or any other suggestion? WhAt I want to achieve is a way of updating my data once user have downl...

Peak Mysql. Status a queries "Sending data" and processor loaded on 100%

Server Mysql 5.1.49. The processor was suddenly loaded on 70-80% two days ago, after sleeping for the next day again loaded, and then slept, now the load is not falling. It was found that queries are executed rapidly compared to their sending to the client (in the status of MySQL stands Sending data). In table 3 values greater than 8mln....

acquire data from text files in matlab

Hello everyone. I have a big problem to Acquire a block of data structured in a particular way. Here's how the data are to be acquired (is a txt): V|0|0|0|t|0|1|1|4|11|T4|H13|||||||||||| P|40|0.01|10|1|1|0|40|1|1|1||1|*||0|0|0 *|A1|A1|A7|A16|F|F|F|F|F|F||||||||||||| *|codserv|area|codice|nome|tnom|tmin|tmax|pc|qc|susc...

Loading content AJAX Jquery - Need to send data to loaded page how???

I have some content on my page that I require to be loaded via ajax. The page that I want to load is requesting some php variables I have stored on the main page. How can I send these variables to the page then load the page via ajax??? Code so far: $('#microblogposts').load('posts.php', {postmessage="+ postmessage +"& from_user="+ fr...

Convert DAL function into Stored Procedures in mysql

Hi I have class for my Data Access Layer that contains a function called GetCitiesByLocation and it looks like this public DataTable GetCitiesByLocation(long pStateID, string pKeyword) { //create database object Database db = DBHelper.CreateDatabase(); //create SELECT sql statement to be executed using string builder /...

RSS feeds, data updating

Hi there, Regarding RSS feeds, do i need to have a webpage to have this? is there a way i can just upload data for the RSS? what i found is usually rss is from a webpage. hm.. say i just one a server or something similar to send data to me, is RSS the best method or easily method? the data will be some word string and picture in .png ...

datatel/colleage data exchange

I am looking for information on exchanging data with colleague. Use cases include pulling data from an applicant/student record, and notifying colleague of certain events. Information on uniObjects, ELF, and EDX preferably with a .Net flavor would all be appreciated. Looking for the most efficient way to get this done. Thanks. ...

Extract HTML tag data with sed

I wish to extract data between known HTML tags. For example: Hello, <i>I<i> am <i>very</i> glad to meet you. Should become: 'I very' So I have found something that works to nearly do this. Unfortunately, it only extracts the last entry. sed -n -e 's/.*<i>\(.*\)<\/i>.*/\1/p' Now I can append any end tag </i> with a newline characte...

How do I store then retrieve Python-native data structures into and from a file?

I am reading an XML file and reorganizing the desired data into Python data structures (lists, tuples, etc.) For example, one of my XML parser modules produces the following data: # data_miner.py animals = ['Chicken', 'Sheep', 'Cattle', 'Horse'] population = [150, 200, 50, 30] Then I have a plotter module that roughly says, e.g.: # ...

Transforming character strings in R

Dear Stackers, I have to merge to data frames in R. The two data frames share a common id variable, the name of the subject. However, the names in one data frame are partly capitalized, while in the other they are in lower cases. Furthermore the names appear in reverse order. Here is a sample from the data frames: DataFrame1$Name: "Van...