Good way to convert list BigDecimal to list Double

is there an better way then iterate over all elements and convert each element to convert a hole list? probably somthing like the conversion List.toArray(Type[])?
in my special cas the list are list<list<double>> and list<list<bigdecimal>>.
Edited by: dermoritz on Aug 5, 2008 2:32 PM

thx then i did all right

Similar Messages

  • What is a good way to convert and open a .cwk file?

    Trying to convert and open a .cwk file.  Pretty sure it's an old ClarisWorks file but I got it as an attachment in an email and my iPhone mail won't allow me to open it AT ALL...Please, Help...

    All AppleWorks (& ClarisWorks) files will have the .cwk extension. The iWork applications - Keynote, Pages & Numbers - can only open AppleWorks 6 presentation, word processing & spreadsheet documents, respectively. They will not open any other type of AppleWorks 6 files or any AppleWorks 5 or any version of ClarisWorks files.
    Since you're running Tiger you can run AppleWorks 5 or 6 as well as earlier versions of ClarisWorks in Classic. If you don't have AppleWorks, I recommend getting AppleWorks 6.2.4 which will open .cwk files & save the presentation, word processing & spreadsheet documents as something the iWork apps can open.

  • Convert list item attachment from docx to pdf using Word Automation Services

    I have been trying to convert List Item attachments from docx to pdf using word automation services, it works in a normal document library but when I use the list attachment it throws a null reference error.
    var settings = new ConversionJobSettings();
    settings.OutputFormat = Microsoft.Office.Word.Server.Conversions.SaveFormat.PDF;
    var conversion = new ConversionJob("Word Automation Services", settings);
    conversion.UserToken = SPContext.Current.Site.UserToken;
    var wordFile = SPContext.Current.Site.RootWeb.Url + "/" + wordForm.Url;
    var pdfFile = wordFile.Replace(".docx", ".pdf");
    conversion.AddFile(wordFile, pdfFile);
    conversion.Start();
    Using reflector I was able to see my problem lies in Microsoft.Office.Word.Server.FolderIterator.cs where it uses SPFile.Item which returns NULL
    internal void CheckSingleItem(SPFile inputFile, SPFile outputFile)
    Microsoft.Office.Word.Server.Log.TraceTag(0x67337931, Microsoft.Office.Word.Server.Log.Category.ObjectModel, Microsoft.Office.Word.Server.Log.Level.Verbose, "OM: FolderIterator start a single item: source='{0}'; dest='{1}'", new object[] { inputFile.Url, outputFile.Url });
    Stopwatch stopwatch = Microsoft.Office.Word.Server.Log.StartPerfStopwatch();
    try
    this.CheckInputFile(inputFile.Item);
    this.CheckOutputFile(outputFile.Url);
    Is there any way to get around this?

    Hi Qfroth,
    According to your description, my understanding is that when you use word automation service to convert Word to PDF for list item attachment, it throws the null reference error.
    I suggest you can create an event receiver and convert the word to memory stream like below:
    private byte[] ConvertWordToPDF(SPFile spFile, SPUserToken usrToken)
    byte[] result = null;
    try
    using (Stream read = spFile.OpenBinaryStream())
    using (MemoryStream write = new MemoryStream())
    // Initialise Word Automation Service
    SyncConverter sc = new SyncConverter(WORD_AUTOMATION_SERVICE);
    sc.UserToken = usrToken;
    sc.Settings.UpdateFields = true;
    sc.Settings.OutputFormat = SaveFormat.PDF;
    // Convert to PDF
    ConversionItemInfo info = sc.Convert(read, write);
    if (info.Succeeded)
    result = write.ToArray();
    catch (Exception ex)
    // Do your error management here.
    return result;
    Here is a detailed code demo for your reference:
    Word to PDF Conversion using Word Automation Service
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Convert list of files in a folder to text?

    Is there an easy way to convert the list of files in a folder into a text document? In other words I would like to create a text list of the names of all the files in a given folder - just the individual file names, not the entire path of each file.
    Any ideas? Seems like there should be some simple way to do this.
    Thanx!

    If you copy the desired items in a Finder window and do a *Paste and match Style* into a TextEdit document, the file names will be pasted in. If you have TextWrangler (or BBEdit), dragging a folder into a document will give also you a list of the contents.

  • BUG in iOS7: Post iOS7 upgrade, search option does not work for "Messages". If you want to search a contact name in Messages who is way below the list, the search will not yield any result.

    BUG in iOS7: Post iOS7 upgrade, search option does not work for "Messages". If you want to search a contact name in Messages who is way below the list, the search will not yield any result.

    These are user forums. You are not speaking to Apple here. Report your problem at Apple Feedback.

  • Func module to convert list to pdf without using memory id

    hi Experts,
    Is there any funct module to convert list to pdf without using memory, as I am using Convert_to_PDF func module which outputs last page only  when its running in Background.
    But my req is to output all the Pages in the PDF format.
    Sample code also appreciable,
    Reward Points are guranteed..
    Cheers
    Santosh

    Check the below postings :
    Re: Convert spool to pdf
    Convert a spooljob to a writeprotected PDF
    Hope this will helpful

  • Good issue against pick list

    Hi,
    I have requirement to track the goods issued to production with reference to the order/pick list.  The goods are moved from warehouse to production location using 313 mvt and received at production storage location using 315, Once the consumption recordings are completed and any stock remaining at the production storage location, we need to identify against which order this stock belongs to. WM is implemented for the main store but production store is not part of the WM.
    Regards
    Cheru

    Hi Jatin,
    The requirement is to move the stock from main warehouse to the production store.  We want to issue the goods against the pick list from main warehouse to production store. The ware house will do the goods issue against the pick list and the production will receive the goods at their storage location. So we could track what goods issued against which pick list. Once the goods are at the production location, consumption will recording will be done against the production order. We do not want to do the goods issue against pick list from the warehouse using mvt 261.
    Regards
    Cheru

  • Is there a good way to automate changing existing links to external PDFs to instead be to PDF attachments with same names?

    Greetings!
    Can anyone tell me a good way to automate changing a "main" PDF's existing hyperlinks to external PDFs to instead be links to PDF attachments to the main PDF (the attached PDFs to have the same filenames as the external PDFs) ?
    Format of current link in main PDF:
    Go to a page in another document
    File: C:\\path\filename.pdf
    Destination name: P:1
    When link is manually changed to link to a PDF that has been attached to the main PDF:
    Go to a page in another document
    File: PDF attachment
    Page: 1
    Zoom level: Fit page
    The new PDF link does not list the PDF attachment filename in the link.
    The main PDF (the one that has the links that I would like to automatically change) is generated with the hyperlinks to other PDFs from Adobe FrameMaker 11.  In FrameMaker11, we added special marker text "openpage filename.pdf:1" that is "automatically" changed to be hyperlinks to external PDFs when the main PDF is created (postscript file is processed) by Adobe Acrobat Pro 11.
    My first choice is to be able to change the format of the special marker text in Adobe FrameMaker source file, but I have not found way to specify a link to be to a PDF attachment with a certain filename.
    However, I would also really like the option of running a batch file on a main PDF to change the links there.
    Has anyone tried using that Adobe ExtendScript ToolKit CS6 to do this? That is, a script that could automatically modify the hyperlinks in a PDF to link to PDF attachments rather than external PDFs, or else modify the unprocessed links while they are still in Postscript file format, or else modify the marker text in FrameMaker to instead of creating a link to a PDF in the same directory as the main PDF being processed, to create a link to a PDF attachment files?
    Thank you,
    Judith Wallace
    [email protected]

    FrameMaker's Hypertext feature has no ability to "link" to an attachment on/in a target PDF.
    PDFs sourced from FM can have named destinations set in the FM authoring files such that a link from file01.fm to the specified named destination in file01.fm will be functional in the PDFs created from the FM files.
    Then, of course, there's the dynamics possible by use o FM Books. But that's the grist for the mills at the FM user-2-user forum.
    RE: Scripting - PDF scripting is via Acrobat JavaScript. That something still of and by Adobe although it may migrate to an ISO Standard (or be rolled up in a future ISO 32000).
    So, to the point - look to Acrobat JavaScript for scripting.
    Be well...

  • What's a good way to dynamically allow shortened commands?

    I have a BufferedReader set up that attaches to System.in.
    so, when I check the BufferedReader, it will retreive any commands put in by a user.
    I will have a hash table for commands set up like so:
    "north", "dn"
    "west", "dw"
    "south", "ds"
    "east", "de"
    "follow", "follow"
    "flee", "flee"
    "flip", "flip"
    So, what I want is to be able to check all the commands and shorten them to the lowest amount of chars before they're the same.
    Therefore, for the example hash list, if I typed in "fle", the code would select "flee". Or, if I typed "fo", the code would select "follow". But, if I typed in "f", then the code would respond with a "command not found" error, because "f" could be follow, flip or flee. I want to make it so that I can type "follow", "follo", "foll", "fol", "fo", and "fo" to select the same "follow" command.
    Has anyone found a good way of going about this? If my description is confusing, I'll try to re-explain in greater detail.

    Demo: I'm using the nul character to represent the end of the word, so that the data structure can represent that "hell" and "hello" are both in the vocabulary:
    import java.util.*;
    class Node {
        private SortedMap<Character, Node> children = new TreeMap<Character, Node>();
        //0 <= index <= word.length()
        private void add(String word, int index) {
            if (index == word.length()) {
                children.put(Character.valueOf('\u0000'), null);
            } else {
                char ch = word.charAt(index);
                Node child = children.get(ch);
                if (child == null) {
                    children.put(ch, child = new Node());
                child.add(word, index+1);
        public void add(String word) {
            if (word == null || word.length()==0)
                throw new IllegalArgumentException();
            add(word, 0);
        public String toString() {
            return children.toString();
    public class Example {
        public static void main(String[] args) throws Exception {
            Node root = new Node();
            root.add("hello");
            root.add("how");
            root.add("who");
            root.add("hell");
            System.out.println(root.toString());
    }

  • Fastest way to convert flv videos to a compatible ...

    Hi.
    Which is the fastest way to convert flv videos to a compatible format for the E71?

    It is goog that you are all providing links here for converters but please avoid posting ones wherein it leads to direclty purchasing various products alone as this will be considered as spamming and is not allowed in the boards.
     A fair number of the converters are freeware others are shareware and others let you trial the product either via a short test or watermark . I have posted some that are paid for as well as freeware  but its like mentioning Apple IPhone would that also be classified as spam .Likewise again their are other apps for your phone   if they are not freeware are they classed as spam  if mentioned . Their seems to be no intention of  spamming when asked about a product to do a particular job  and the actual replys fall outside the definition of spamming .If the definition of spam on this board is mentioning paid for applications then the list is long starting with Windows and should not just be applied to this section .
    But as their are so many views as what app to use paid for or free then i see the board as being safe from abuse .
       jje

  • Good way to start with the WM programming?

    I follow "Community Contributions" and I'm testing every new WM what's out there. I know C and I would like to write the WM. How did you learn to write your first WM?
    What would you suggest to starting WM programmer? Reading Xlib (or others) reference manuals or just studying other WM's source code? Or something else?

    TTWM's code is a complete mess.  I don't know what kind of fool is responsible for that collection of kludges!
    I'll second the recommendation for TinyWM, but once you want to dig deeper I'd suggest looking at other non-reparenting window managers.  I don't know of any non-reparenting floating WMs other than TinyWM, so that may leave you with the tilers - many of which have been mentioned.
    Dwm is a good choice.  That is some finely polished code that has some bright people working for some time to perfect it.  But it has the downside for learning that it does implement many more "complex" features.  It can also be hard to follow the program logic sometimes as there are so many function calls - you have to scroll back and forth through the code while trying not to lose your place ... bring your breadcrumbs.
    In my own coding I try to minimize function calls - not for optimizing the code, as the compiler will handle this pretty well - but for making it more readable.  In every place where a series of actions will be executed in a linear order, I try to keep the commands presented in a linear order within the same function.  Along with this I avoid complicate macros or inline functions: if they'll be inlined anyways, there is no saving on resource use at run time, but only saving a few lines of code while sacrificing the ease of reading and understanding.
    Also, if you have not found it yet, I highly recommend Christophe Tronche's Xlib guide.  I can't say I ever just read through it from start to finish (yet), but when I google any Xlib related function if there are any entries on tronche.com that is the first one (and then often the only one) I look at.
    PS: there's nothing fancy about workspaces/desktops.  You just maintain a list of client windows on each desktop - or have "tags" associated with each client - then when the user changes desktops you just hide all windows that are not on that desktop/tag and show those that are.  Hiding can mean "unmapping" but I preferred an easier hack which I found the dwm authors also used: just move the window (XMoveWindow) off of the screen. Unmapping might even be problematic as it generates a set of events when unmapped and remapped.  This can be remedied and there may be good ways of doing this, but moving off screen works for me.
    Last edited by Trilby (2012-09-26 01:32:22)

  • Is there any way to convert the ImportObject into an image file ?

    I have converted a FM document into MIF file format. FM has a grapic imported by copying into the document. In the MIF file I can see the image like the following,
    <ImportObject
      <Unique 1001019>
      <Pen 15>
      <Fill 7>
      <PenWidth  1.0 pt>
    =TIFF
    &%v
    &II*\x00080000001000FE000400010000000000000000010300010000006009000001010300010000…..
    Is there any way to convert the ImportObject inside the mif file into an image file ?

    Error 7103,
    Regarding Note A and Note B... The Downsample dropdowns list three variations of Downsampling TO, each corresponding to a different downsampling method. When you select one of the Downsampling TO options, then the pixels per inch box allow you to specify the dpi of the downsampled image, the one after the downsampling.
    When you select Off, which means do NOT downsample, then the pixels per inch box is meaningless. Maybe it would be a nice interface feature to disable it, but that is another issue. In any event, OFF ignores any value in pixels per inch.
    Whenever you import an image into your publishing program (FrameMaker, InDesign, or whatever) and scale it, one can think of the scaled image as having a physical dpi, the number of pixels per physical inch on the "paper." When you specify downsampling in Distiller, the number you specify is most likely less than the physical dpi of the image in the document. It is probably meaningless to specify a number that is larger. I am guessing (and this is a guess) that Distiller does not UPsample images. I have never tested it.
    I use 1200 for image recovery.
    I assume you are talking about recoverying an image embedded in (copied into) the publishing document. I believe it is sufficient simply to turn downsampling off to create a PDF with the image at the resolution as embedded in the document.
    No, one of the settings is to Determine Automatically, which uses the resolution of the image IN the PDF.
    Where is that found?
    It is NOT in Distiller. It is in Acrobat Professional. (It may or may not be in Acrobat Standard or Acrobat Reader; I do not have them, so do not know.)
    The original poster wanted to recover an image copied into a Frame document file. My method is to create a PDF using a Distiller joboption with ALL downsampling and ALL compression OFF. Presumably the image is put into the PDF with all the pixels it has in the Frame file.
    THEN in Acrobat PROFESSIONAL, export the image with the setting Determine Automatically. I am presuming (never tested it) this exports ALL the pixels that the image has in the PDF file.
    Van

  • Is there any way to convert to MPEG1 with any adobe product?

    Is there any way to convert to MPEG1 with any adobe product?

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    Since you have all current products, you might check the forums for Media Encoder or Premiere Pro
    http://forums.adobe.com/community/ame
    http://forums.adobe.com/community/premiere

  • CAN ANYONE TELL ME A GOOD WAY TO LEARN DREAMWEAVER WITHOUT BREAKING THE BANK?

    CAN ANYONE TELL ME A GOOD WAY TO LEARN DREAMWEAVER WITHOUT BREAKING THE BANK?
    IThe tutorials on the search engines are leading me to dead ends. I'm getting very frustrated.
    Thanks so much in advance

    List of good reference material - that won't cost a cent - all on the web  :-)
    http://www.adobe.com/devnet/dreamweaver/?navID=gettingstarted
    http://www.macromedia.com/devnet/mx/dreamweaver/css.html
    http://www.macromedia.com/devnet/dreamweaver/articles/tableless_layout_dw8.html
    http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html
    http://css.maxdesign.com.au/floatutorial/index.htm
    LIST OF CSS TUTORIALS:
    http://www.adobe.com/devnet/dreamweaver/css.html
    HTML & CSS References
    http://www.w3schools.com/
    http://reference.sitepoint.com/css
    TAKING FIREWORKS COMP TO DREAMWEAVER:
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    LIST OF CSS TUTORIALS on the Adobe site:
    http://www.adobe.com/devnet/dreamweaver/css.html
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://twitter.com/nadiap
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/

  • Is there a "one-touch" way to convert to my existing library to DNG?

    Is there a "one-touch" way to convert to DNG?
    My Aperture library currently has three types of files: JPEG files taken with point-and-shoot camera going back for years, (ii) RAW (NEF) files made with a Nikon D60, (iii) RAW (CR2) files made with a Canon G9, and (iv) RAW (DNG) files I have shot recently.
    I am interested in converting all the non-DNG RAW files (NEFs and CR2s) into the Adobe DNG file format. I understand that the format has a smaller file size (than the original RAW file) and that it is "lossless" (unlike converting to JPEG). So, in addition to "standardizing" my file-types, it will also reduce my overall library size (in GBs).
    So, the question is: is there a way to take my existing Aperture library and, through some (hopefully free) combination of scripts and programs, convert all the RAW files to DNG automatically and without having to export each one from Aperture and them import it again. That is, I want a solution that will look at each file and ignore the JPEGs and DNGs, (ii) convert the NEFs and CR2s into DNG, and (iii) move the original NEF/CR2 files to a folder (just in case)?
    This is not an problem going forward, because I can easily just import as DNG to begin with ... but its an issue for a few thousand images in my library.
    Any ideas? Also, anyone think this is a crazy bad idea?
    Thanks,
    ~B

    Do you find that using Aperture to "import" the pictures (e.g., using the import function on Aperture and pointing it at your memory card) gives better results than using the DNG converter to "import" (e.g., by selecting the camera memory card and saving the conversions to disk, then importing those DNG files into Aperture)?
    Not the way it works. The camera memory card does not have conversions on it, it has RAW (or JPEG) image files.
    IMO generally most useful to help keep drives underfilled and fast (drives slow as they fill) is to manage by Reference ("referenced images") as in the workflow outline below where Master images can live anywhere. However with small changes similar workflow could be applied to Managed Masters.
    I feel pretty strongly that card-to-Aperture or even camera-to-Aperture handling of original images puts originals at unnecessary risk. I suggest this workflow, first using the Finder (not Aperture) to copy images from CF card to computer hard drive:
    • Remove the CF card from the camera and insert it into a CF card reader. Faster readers and faster cards are preferable, and Firewire is much preferable to USB2.
    • Finder-copy images from CF to a labeled folder on the intended permanent Masters location hard drive.
    • Eject CF.
    • Burn backup hard drive or DVD copies of the original images (optional recommended backup step).
    • Eject backup hard drive(s) or DVDs.
    • From within Aperture, import images from the hard drive folder into Aperture selecting "Store files in their current location." This is called "referenced images." During import is the best time to also add keywords, but that is another discussion.
    • Review pix for completeness (e.g. a 500-pic shoot has 500 valid images showing).
    • Reformat CF in camera, and archive originals off site on hard drives and/or on DVDs.
    Note that the "eject" steps above are important in order to avoid mistakenly working on removable media.
    Alternatively, does anyone actually use (or recommend) Nikon-branded software for any step in this process? If your camera shoots JPG (as all mine did till a few months ago), it does not matter ... but does the RAW thing change that equasion?
    Yes RAW changes the equation. Folks who want the very best NEF conversions will use Nikon Capture NX2 but the interface *****. Personally I find Aperture very good for the D2x.
    Good luck!
    -Allen Wicks

Maybe you are looking for

  • Embed image into email (not attachments)

    Hi all, i need to embed images into an HTML table of an email. Can anyone help me, please? Sergio

  • Error decription issue

    Respected gurus, while i am in f-53 ,i got one error,to see that error if i double click on that one it gives some message no 3245,how can i find out that error description. regards jana

  • Initialise to standard and error1073 in applicatio​n

    Hallo, I have an application with each, a string control and a string indicator. While running I want to clear these with a method node and the "Initialize to standard" method. In development mode this works fine. But if I compile an application, the

  • Calling a mething

    how to call a method in a program is there any way like pattern to call a function module.

  • Help with ABAP code in CMOD.

    dear all, can you help me solve the below abap coding problem? thanks. somewhere at the top DATA: L_S_RANGE LIKE LINE OF E_T_RANGE. DATA: L_S_VAR_RANGE LIKE E_T_RANGE.       LOOP AT I_T_VAR_RANGE INTO L_S_VAR_RANGE. <-- error msg stops here.