flatten

How do I convert a list of objects to a list of integers using AutoMapper?

I have a Student object: public class Student { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } } And a Classroom object: public class Classroom { public List<Student> Students { get; set; } } I want to use AutoMapper to convert the list of students to a list o...

Flatten FDF / XFDF forms to PDF in PHP with utf-8 characters

My scenario: A PDF template with formfields: template.pdf An XFDF file that contains the data to be filled in: fieldData.xfdf Now I need to have these to files combined & flattened. pdftk does the job easily within php: exec("pdftk template.pdf fill_form fieldData.xfdf output flatFile.pdf flatten"); Unfortunately this does not wor...

Oracle 10g - flatten relational data dynamically

Hi. I am using Oracle 10g. and I have the following relational structure that I think I need to flatten out so on the client side a grid view shows the correct number of columns. TableA below can be configured to have any one of it's records enabled or disabled using the enabled field. TableB stores calculated values related to TableA ...

how to do a "flat push" in javascript?

I want to push all individual elements of a source array onto a target array, tartget.push(source); puts just source's reference on the target list. In stead I want to do: for (i=0;i<source.length;i++) { target.push(source[i]); } Is there a way in javascript to do this more elegant, without explicitly coding a repetition loop?...

F# - Flatten List/Range

Hello, I'm new to F# and am wondering how I would go about flattening a list. Essentially in the database I store a record with a min_age and max_age range (this is a fictitious example for the sake of brevity - i am not agist!). My fields look something like the following: id, cost, savings, min_age, max_age I essentially have an F# ...