How to calculate HD space on Nano or Classic?

This might be a dumb question, but how do you calculate the HD space on a Nano or Classic?
Nano 16GB: 4'000 songs / 16 hours of video.
Classic 250GB: 30'000 songs / 150 hours of video.
How are they coming up with those numbers? My iTUnes is saved with Apple Lossless which takes up a lot more HD than any other format. So how can I determine the number of songs when downloading to an iPod?
Or how can I determine the same when you're dealing with classical music where some files run for over 60 minutes. Most popluar musik doesn't run more than 4-5 minutes where classical does. So how can I tell if there is enough HD left to make a transfer from iTunes over to iPods?
Thanks in advance for all the help. Just having problems with getting classical materials.

Look at the tracks you have already encoded with Apple Lossless. Then do a calculation of file size divided by seconds. This will give you a MB/sec number. Do it for a handful of songs. They should be in the ballpark of one another then pick a rounded number, maybe rounding up to give you a little wiggle room.
So for example, with my MP3 I end up with roughly 1MB per minute (or 17kB per second). 1GB is 1024MBs, so that is roughly 1024 minutes per Gig.
Take the Nano as an example. The "16GB" mode is actually 14.88 MBs or so (take any gigabyte model and multiple the number by 0.93 to get the real storage space; 14.88 for a 16Gig and 232GB for a "250GB" drive).
Using the above calculations, 1024 minutes per gig times the 14.88 gigs available comes out to over 15 thousand minutes. Assuming an average of 4 minutes per song, this comes out to 15237 minutes divided by 4 minutes per song = 3809 songs. Hey look at that, just about the 4000 songs spec'd by apple.
So using the same method, you will get a different MB/Min calculation for your Apple Lossless tracks. Once you get that, you can then easily calculate how many minutes you get per gig and then how many total minutes for any given iPod. For your classical music, you will have to maybe estimate the number of minutes per CD and come up with a rough number of total CDs you can load. Or go strictly by number of minutes.
When you put stuff into a playlist, at the bottom of the playlist it shows you the total time of that playlist. So if you know the total time of your iPod using Apple Lossless, you can easily compare a playlist's time to that to see if you can fit it on the iPod.
Regards,
Patrick

Similar Messages

  • How to calculate HD space needed

    I need to videotape a ceremony on Friday and show it very quickly afterwards. I have a new Canon XL2 cam, and I played around with capturing direct into iMovie 5 using the FW cable. My plan was to capture it this way live; at the end of the 90 min save the project, and then show via SVideo connection to a TV. Not sure how to calculate the amount of HD space I will need for 90 minutes of video. I guessI could also capture just to tape, rewind and show via SVideo, but ideally need less turn around time than that.
    Thx,

    DV (Digital Video) uses up about 13 gigabytes per hour.
    So 90 mins worth would need about 20GB.
    But how long does it take to rewind a tape? Three or four minutes?
    It'd be far better to rewind the tape, and connect the camcorder to a TV, than to lug around a Mac while you're shooting! How're you going to hold onto the Mac if you need to move around?
    If you're going to be static all the time, and won't need to move, it might be OK ..but you'd need to do one or two 'dry runs' of 90 mins each FIRST to be ABSOLUTELY sure that everything goes to plan, and that the hard disc doesn't stutter, or "housekeeping" jobs within the Mac don't interfere, etc.
    Of course, what might suit you better is a dedicated video-capture FireWire drive strapped to the camera, like a "FireStore". That's dedicated to video capture, and does nothing else. It also saves time later, because there's no need to capture from your tape: just edit the footage already on the FireStore disc.
    But would what you get from taping the ceremony (..if you're getting paid..) pay for a FireStore? Hmm.
    I'd stick with tried and trusted tape..

  • How to Calculate the Space between two Characters in GDI + ?

    I am Drawing the set of characters in Graphics, by Calculating the points using GraphicsPath for each Character. I Need to know how to calculate the distance should be given between the two characters?
    I am using this code to generate points
    PointF [] pnts;
    var p=new GraphicsPath();
    path.AddString("A","Arial",(int)FontStyle.Regular,50,new pointF(0f,0f),StringFormat.GenericDefault);
    Matrix m=new Matric(1,0,0,1,0,0);
    path.Flatten(m,1,0f);
    pnts=path.pathpoints;
    i am getting the points for all characters using the above code.
    Now i am combining the two character Using the points generated by the above code.  Eg "AB"
    Help me to calculate the the character space should be given between two characters?
    Thanks in Advance...

    Hi,
    this link can assist you:>
    Professional C# - Graphics with GDI+ 
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • How to calculate storage space for archive log files and database backups?

    Hi all,
    I have a 1.8 terabyte Oracle 9i database and need to plan for how much additional disk space I will need to perform nightly backups and for archivelog files. Is there a script or formula available that can help me estimate how much required disk space I will need to hold a days worth of archived logs as well as a nightly export dump file and a full hot RMAN backup on disk?
    Thanks!

    I'm not sure how to estimate the size of your backups, especially if you use incrementals. However, the space required for archive logs will be equal to the amount of REDO your DB generates. I would count the number of log switches per day with a query like the following:
    select trunc(first_time), count(*)
    from v$log_history
    group by trunc(first_time)
    I would then take the average and multiply this count by the size of your redo log files (assuming they are all the same size).

  • How to calculate the exact space occupied by table

    Hi,
    I am deleting the data in tables such as DBTABLOG and SRRELROLES.
    Until and unless I do a re-org I will not get the free space back but how do I estimate the freed up space before doing a re-org.
    As of now I calculate the space occupied by the multiplying the number of records in the actual table with the average row length of each record (stats from DB02)... but the calculation does not match the actual size occupied by the table...
    Please help me here

    Hi Grame,
    In order to calculate the space utilized by a table you can do the following :
    1) Logon as orasid or sidadm user.
    2) Connect to the DB as sysdba user.
    3) Run the follwoing query :
    SQL> select OWNER,TABLESPACE_NAME, segment_name, bytes/1024/1024 MB from dba_segments  Where segment_type = 'TABLE' and Segment_Name='DBTABLOG';
    Expected output :
    OWNER        TABLESPACE_NAME  SEGMENT_NAME             MB
    SAPR3                  PSAPPROTD               DBTABLOG                          10.015625
    Hope this helps.
    Regards,
    Deoraj Alok.

  • How to calculate totals in Blocked ALV Report

    Hi All,
    Can any body tell how to calculate totals & sub totals in
    Blocked ALV Report[Blocked List].
    Thanks in advance
    Thanks & Regards,
    Rayeezuddin.

    read this it might help
    Sums                                                       
    15. No_sumchoice(1) TYPE c : This parameter allows the choice for summing up
    Only by fieldcatalog.
    Value set: SPACE, 'X'
    'X' = fields which are to be summed, passed by the calling program (FIELDCAT-DO_SUM = 'X'). The user should not be able to change this value interactively.
    16. No_totalline(1) TYPE c : Removes the option of having totals after sub-totals.
    Value set: SPACE, 'X'
    'X' = no total record is to be output. Subtotals can still be calculated and output. The fields in the subtotals are flagged DO_SUM = 'X' in the field list.
    17. No_subchoice(1) TYPE c : Does not allow the user to interactively change the field chosen for subtotals.
    Value set: SPACE, 'X'
    'X' = value whose change triggers subtotals, provided by the calling program. The user should not be able to change this value interactively.
    18. No_subtotals(1) TYPE c : No subtotals possible          
    Value set: SPACE, 'X'
    'X' = no subtotals.
    19. Numc_sum(1)  TYPE c : Totals only possible for NUMC-Fields.
    20. No_unit_splitting TYPE c: No separate total lines by inh.units   
    21.totals_before_items TYPE c: Display totals before the items   
    22. Totals_only(1) TYPE c :  Show only totals      
    Value set: SPACE, 'X'
    'X' = only total records are output.
    23. Totals_text(60) TYPE c : Text for 1st col. in totals   
    Value set: SPACE, string (max.60)
    ' ' = The first column in the total record contains an appropriate number of '*'s to indicate the total by default. If the first column is wide enough, the string 'Total' is output after the asterisks.
    'String’ = The string passed is output after the total indicated by '*', if the column is wide enough.
    24. Subtotals_text(60) TYPE c : Texts for subtotals
    Value set: SPACE, string (max.60)
    ' ' = In the first column of subtotal records, the subtotal is indicated by an appropriate number of '*' by default. If the first column is not a subtotal criterion, the string 'Total' is output after the asterisks, if the column is wide enough.
    'String’ = the string passed is output after the subtotal indicated by '*', if the column is wide enough and the first column is not a subtotal criterion. If it is a subtotal criterion, its value is repeated after the total, if the column is wide enough.
    ELSE TELL ME I WILL PASTE COMPLETE HELP
    regards

  • How well do you like your nano?

    I have (or had is a better term) a 2nd gen 8gb ipod nano. For my brothers 21st birthday, my parents bought him a bloodhound puppy. Talk about a big mistake that was! She decided to use it as a chew toy. Fortunately it still works, but has minor scratches on the metal case (through a rubber protective case no less!). I say minor as it has no huge gouges. It has teeth dents all over it. Thankfully the screen doesnt have a scratch since I had a hard plastic protector covering it. The aluminum shell is scratched pretty bad as well.
    http://www.flickr.com/photos/26092087@N05/2450931958/
    http://www.flickr.com/photos/26092087@N05/2450932698/
    I bought 2 nanos: 1 for me, 1 for my girlfriend for a christmas gift. Now that mine looks like crap, I am going to get a new iPods for both her and I and I was wondering how everyone liked your 3rd gen nano?
    We are going to sell her iPod nano to cover some of the cost. Is it even worth trying to sell mine?
    Here are the two photos of my iPod. What do you think now? Still worth selling?

    Meg St._Clair wrote:
    I never had a Nano before the 3rd gen so I can only really compare it with my other iPods. I bought it specifically for running with the Nike+ Sport Kit. I thought that the fact that it played videos was kind of silly.
    I really love the Nano. I find I use it more than my Touch. It's great for workouts as it is so small and light. And yes, I do watch videos on it. Prior to the Touch and the 3rd gen Nano, I'd always wanted the biggest iPod I could buy. However, I find for many day to day uses, a 4 gig Nano is great. A few hundred songs, a couple of games, a handful of podcasts, a television show and I'm ready for my urban commute, a run, and an hour of relaxing at the local coffee shop.
    The sound quality is great. I've had no problems with it. In fact, it has probably been the most trouble free of any of my iPods (not that any of them have given me much trouble).
    I understand what you mean. I didnt use my old nano for anything but music, a couple podcasts and the rare file transfer. I dont know if I will ever use this to watch video, since I have a laptop, portable dvd player, an portable external hard drive, etc. I dont think i even would need a bigger (HD space wise) ipod than 8gb.
    If you dont mine my asking, any reason you have a 3rd gen 4gb Nano, a touch and a 60GB ipod? I understand the nano for the commute, but what about the others?

  • BAPI_ACC_INVOICE_RECEIPT_POST how to calculate tax

    Hallo folks,
    i can't figuere out how to calculate the tax with the bapi BAPI_ACC_INVOICE_RECEIPT_POST. I already searched the Forums and google but no Solution helped me.
    I don't really get it, which fields i have to fill. For example i do i have to fill the amt_base for every item or just for the tax structure?
        ls_accgl-comp_code  = ls_outtab-zzfaleiemp.
        ls_accgl-tax_code   = 'V3'.
        ls_accgl-profit_ctr = ls_outtab-prctr.
        ls_accgl-sales_ord  = ls_outtab-kdauf.
        ls_accgl-s_ord_item = ls_outtab-kdpos.
        APPEND ls_accgl TO lt_accgl.
        CLEAR ls_curamt.
        ls_curamt-itemno_acc     = l_itemno.
        ls_curamt-currency_iso   = 'EUR'.
        ls_curamt-amt_doccur     = ls_outtab-zzsum.
      ls_acctax-itemno_acc = l_itemno.
      ls_acctax-tax_rate   = '19.000'.
      ls_acctax-gl_account = ls_accgl-gl_account.
      ls_acctax-tax_code   = 'V3'.
      ls_acctax-acct_key   = 'VST'.
      ls_acctax-cond_key   = 'MWVS'.
      APPEND ls_acctax TO lt_acctax.
      CLEAR ls_curamt.
      ls_curamt-itemno_acc = l_itemno.
      ls_curamt-currency   = 'EUR'.
    *  ls_curamt-amt_doccur = l_sum.
      ls_curamt-amt_base   = l_sum.
      APPEND ls_curamt TO lt_curamt.
    Because it doesn't matter what field i fill in TA FB03 there never come any taxes up.
    has anybody some Ideas?
    Best regards
    Mathias

    Hi,
      check the below code
    Read Invoice Work item data
      CLEAR: lwa_inv_header.
      SELECT SINGLE * INTO lwa_inv_header
        FROM zbw_inv_header
      WHERE zinv_id = i_documentheader-zinv_id.
      IF sy-subrc = 0.
    Get history line count
        SELECT COUNT(*) INTO lv_hist_lineid
          FROM zbw_wi_history
         WHERE zinv_id = i_documentheader-zinv_id.
    Get exception line count
        SELECT COUNT(*) INTO lv_lineid
          FROM zbw_wi_exception
         WHERE zinv_id = i_documentheader-zinv_id.
    Get document type
        SELECT SINGLE zdoctype INTO lv_doc_type
          FROM zbw_doc_types
        WHERE zinvtype = i_documentheader-zinvoicetype AND
              zinvind  = i_documentheader-invoice_ind.
        IF sy-subrc <> 0.
          CLEAR t_return.
          t_return-ztype    = 'E'.
          t_return-zmessage = 'Document type configuration is not done'.
          APPEND t_return.
          lv_lineid = lv_lineid + 1.
          CLEAR lwa_exceptions.
          lwa_exceptions-zinv_id  = i_documentheader-zinv_id.
          lwa_exceptions-zlineid  = lv_lineid.
          lwa_exceptions-zstep_id = i_stepid.
          lwa_exceptions-zuser    = sy-uname.
          lwa_exceptions-zdate    = sy-datum.
          lwa_exceptions-ztime    = sy-uzeit.
          lwa_exceptions-zexception = t_return-zmessage.
          MODIFY zbw_wi_exception FROM lwa_exceptions.
          EXIT.
        ENDIF.
    Read posting date config
        SELECT SINGLE * INTO lwa_posting
          FROM zbw_posting_date
        WHERE zarea = i_documentheader-zinvoicetype.
        IF sy-subrc <> 0.
          CLEAR t_return.
          t_return-ztype    = 'E'.
          t_return-zmessage = 'Posting date configuration is not done'.
          APPEND t_return.
          lv_lineid = lv_lineid + 1.
          CLEAR lwa_exceptions.
          lwa_exceptions-zinv_id  = i_documentheader-zinv_id.
          lwa_exceptions-zlineid  = lv_lineid.
          lwa_exceptions-zstep_id = i_stepid.
          lwa_exceptions-zuser    = sy-uname.
          lwa_exceptions-zdate    = sy-datum.
          lwa_exceptions-ztime    = sy-uzeit.
          lwa_exceptions-zexception = t_return-zmessage.
          MODIFY zbw_wi_exception FROM lwa_exceptions.
          EXIT.
        ENDIF.
        IF lwa_posting-zcurrentdate = 'X'.
    Todays date as posting date
          lwa_documentheader-pstng_date = sy-datum.
        ELSE.
          lv_today = sy-datum.
          CLEAR: lv_days,
                 lv_months,
                 lv_years,
                 lv_calcdt.
    Calculate last day of previous month as posting date
          CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
            EXPORTING
              date      = lv_today
              days      = lv_days
              months    = lv_months
              signum    = '-'
              years     = lv_years
            IMPORTING
              calc_date = lv_calcdt.
          IF sy-subrc <> 0.
            CLEAR t_return.
            t_return-ztype    = 'E'.
            CONCATENATE 'Error while calculating the'
                        'Last day of previous month'
              INTO t_return-zmessage SEPARATED BY space.
            APPEND t_return.
            lv_lineid = lv_lineid + 1.
            CLEAR lwa_exceptions.
            lwa_exceptions-zinv_id  = i_documentheader-zinv_id.
            lwa_exceptions-zlineid  = lv_lineid.
            lwa_exceptions-zstep_id = i_stepid.
            lwa_exceptions-zuser    = sy-uname.
            lwa_exceptions-zdate    = sy-datum.
            lwa_exceptions-ztime    = sy-uzeit.
            lwa_exceptions-zexception = t_return-zmessage.
            MODIFY zbw_wi_exception FROM lwa_exceptions.
            EXIT.
          ENDIF.
          CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
            EXPORTING
              day_in            = lv_calcdt
            IMPORTING
              last_day_of_month = lwa_documentheader-pstng_date
            EXCEPTIONS
              day_in_no_date    = 1
              OTHERS            = 2.
        ENDIF.
    Populate the header data
        lwa_documentheader-obj_type       = 'IBKPF'.
        CONCATENATE sy-datum sy-uzeit lwa_documentheader-comp_code
          INTO lwa_documentheader-obj_key.
        lwa_documentheader-obj_sys        =  sy-sysid.
        lwa_documentheader-username       =  sy-uname.
        lwa_documentheader-header_txt     =  'HD BAPI Test'.
        lwa_documentheader-comp_code      = i_documentheader-comp_code.
        lwa_documentheader-fisc_year      = i_documentheader-zfisc_year.
        lwa_documentheader-doc_date       =  i_documentheader-doc_date.
        lwa_documentheader-trans_date     = sy-datum.
        lwa_documentheader-fis_period     =  i_documentheader-zfisc_period.
        lwa_documentheader-doc_type       =  lv_doc_type.
            ALL ITEM DATA                                               *
    Populate Account payble data
        CLEAR lt_accountpayable.
        lt_accountpayable-itemno_acc      = 1.
        lt_accountpayable-vendor_no       = i_documentheader-zvendor.
        lt_accountpayable-item_text       = 'Webdesk invoice posting'.
        APPEND lt_accountpayable.
        clear lt_accountpayable.
    Populate the currency for Account payble
      CLEAR lt_currencyamount.
      lt_currencyamount-itemno_acc      = 1.
      lt_currencyamount-currency        = i_documentheader-currency.
      lt_currencyamount-amt_doccur      = i_documentheader-gross_amount * -1.
      APPEND lt_currencyamount.
      clear lt_currencyamount.
    Loop the GL table
        CLEAR lv_errfl.
        LOOP AT t_glacc.
          CONCATENATE i_documentheader-supcountry t_glacc-tax_code
            INTO lv_vakey SEPARATED BY space.
          SELECT knumh INTO lv_knumh
           UP TO 1 ROWS
            FROM konh
           WHERE vakey = lv_vakey.
          ENDSELECT.
          IF sy-subrc = 0.
            SELECT SINGLE kbetr INTO lv_kbetr
              FROM konp
             WHERE knumh = lv_knumh.
            IF sy-subrc <> 0.
              lv_errfl = 'X'.
            ENDIF.
          ELSE.
            lv_errfl = 'X'.
          ENDIF.
          lv_kbetr = lv_kbetr / 10.
          IF t_glacc-tax_base_amount IS INITIAL.
            lv_taxamt  =  ( i_documentheader-gross_amount * lv_kbetr ) / 100.
          ELSE.
            lv_taxamt  =  ( t_glacc-tax_base_amount * lv_kbetr ) / 100.
          ENDIF.
    Populate the GL data
          lt_accountgl-itemno_acc           = 2.
          lt_accountgl-gl_account           = t_glacc-gl_account.
          lt_accountgl-tax_code             = t_glacc-tax_code.
          lt_accountgl-acct_key             = t_glacc-zacct_key.
          lt_accountgl-item_text            = 'Webdesk invoice posting'.
          APPEND lt_accountgl.
          clear lt_accountgl.
          CLEAR lt_currencyamount.
          lt_currencyamount-itemno_acc        =  2.
          lt_currencyamount-currency          =  i_documentheader-currency.
          lt_currencyamount-amt_doccur        =  t_glacc-item_amount - lv_taxamt.
          APPEND lt_currencyamount.
          clear lt_currencyamount.
          IF NOT t_glacc-tax_code IS INITIAL.
    Populate the Tax data
            lt_accounttax-itemno_acc = 3.
            lt_accounttax-gl_account = t_glacc-ztaxgl_account.
            lt_accounttax-tax_code   = t_glacc-tax_code.
            lt_accounttax-acct_key   = t_glacc-zacct_key.
            APPEND lt_accounttax.
            clear lt_accounttax.
            CLEAR lt_currencyamount.
            lt_currencyamount-itemno_acc        =  3.
            lt_currencyamount-currency          =  i_documentheader-currency.
            lt_currencyamount-amt_doccur        =  lv_taxamt.
            IF t_glacc-tax_base_amount IS INITIAL.
              lt_currencyamount-amt_base          =  i_documentheader-gross_amount.
            ELSE.
              lt_currencyamount-amt_base          =  t_glacc-tax_base_amount.
            ENDIF.
            APPEND lt_currencyamount.
            clear lt_currencyamount.
          ENDIF.
        ENDLOOP.
        IF lv_errfl = 'X'.
          CLEAR t_return.
          t_return-ztype    = 'E'.
          CONCATENATE 'Error while calculating the'
                      'Tax amount'
            INTO t_return-zmessage SEPARATED BY space.
          APPEND t_return.
          lv_lineid = lv_lineid + 1.
          CLEAR lwa_exceptions.
          lwa_exceptions-zinv_id  = i_documentheader-zinv_id.
          lwa_exceptions-zlineid  = lv_lineid.
          lwa_exceptions-zstep_id = i_stepid.
          lwa_exceptions-zuser    = sy-uname.
          lwa_exceptions-zdate    = sy-datum.
          lwa_exceptions-ztime    = sy-uzeit.
          lwa_exceptions-zexception = t_return-zmessage.
          MODIFY zbw_wi_exception FROM lwa_exceptions.
          EXIT.
        ENDIF.
               CALLING BAPI                                             *
        CLEAR lwa_wi_history.
        lwa_wi_history-zinv_id  = i_documentheader-zinv_id.
        lwa_wi_history-zlineid  = lv_hist_lineid.
        lwa_wi_history-zstep_id = i_stepid.
        lwa_wi_history-zuser    = sy-uname.
        lwa_wi_history-zdate    = sy-datum.
        lwa_wi_history-ztime    = sy-uzeit.
        CLEAR: lt_return[].
        CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
          EXPORTING
            documentheader = lwa_documentheader
          IMPORTING
            obj_type       = obj_type
            obj_key        = obj_key
            obj_sys        = obj_sys
          TABLES
            accountpayable = lt_accountpayable
            accountgl      = lt_accountgl
            accounttax     = lt_accounttax
            currencyamount = lt_currencyamount
            return         = lt_return.
    Thanks & Regards,
    Sateesh.

  • How to calculate the row size

    Hi,
    I am having a table of 4 column. First column is varchar2(10), Second column is Number(5), Third column is char(10) and Fourth column is Number(12,2).
    Now how to calculate the size of each row. I want to know how much space it will take for each row.
    Thanx & Regards,
    Swarup

    For a complete discussion of storage requirements for different datatypes see the Oracle 8i Concepts manual.
    All Oracle documentation is available on-line via the 'Documentation' link on the OTN home page.
    Your Col2 NUMBER(5) will take 4 bytes if it holds a 5 digit positive or negative number.
    Your Col4 NUMBER(12,2) will take 7 bytes if it holds a number with 12 digits that is positive and will take 8 bytes if it holds a number with 12 digits that is negative.
    The following is from the Concepts manual Chapter 12 (Copyright by Oracle)
    Built-In Datatypes 12-9
    Internal Numeric Format
    Oracle stores numeric data in variable-length format. Each value is stored in
    scientific notation, with one byte used to store the exponent and up to 20 bytes to
    store the mantissa. The resulting value is limited to 38 digits of precision. Oracle
    does not store leading and trailing zeros. For example, the number 412 is stored in a
    format similar to 4.12 x 10 2 , with one byte used to store the exponent (2) and two
    bytes used to store the three significant digits of the mantissa (4, 1, 2). Negative
    numbers include the sign in their length.
    Taking this into account, the column size in bytes for a particular numeric data
    value NUMBER ( p), where p is the precision of a given value, can be calculated
    using the following formula:
    ROUND((length( p)+ s)/2))+1
    where s equals zero if the number is positive and s equals 1 if the number is
    negative.
    Zero and positive and negative infinity (only generated on import from Version 5
    Oracle databases) are stored using unique representations. Zero and negative
    infinity each require one byte; positive infinity requires two bytes.
    null

  • How to calculate the coordinate after implementing Affine Transformation?

    Hi, guys!!
    I am working on a Map makeing program, like MS Visio. Then, I need to put an icon on the working space. And the icon can be moved, rotated, and scaled, when mouse drags handles (8 small circles) around the icon. However, the problem is that after the icon is scaled or rotated using AffineTransform class, I do not know how to calculate the coordinate to paint the mouse handles.
    Please give me your suggestions!! Thanks in advance!!

    Sure. The idea is that you track your translations, scaling, and rotation separate from the AffineTransform. That way, you know what you need to revert:
    AffineTransform at = new AffineTransform();
    at.translate(20, 20);
    at.scale(2, 2);
    at.rotate(45, 10, 10);
    At this point, let's assume you want to translate again. First you have revert the rotation and the scale:
    at.rotate(-45, 10, 10);
    at.scale(1/2, 1/2);
    at.translate(10, 10);
    In order to do this, you need to track your scaling and rotation values when you change them. If this isn't feasible, it's certainly possible to derive the values from the AffineTransform, but that's a bit tougher.
    Michael

  • How solaris calculate virtual Memory ?

    Hi,
    I am using Solaris 10 on both sparc and x86 server.
    I am still unable to comprehend how solaris calculate Total Virtual Memory.
    We can check the Virtual Memory in system by SMC tool and by #swap -s command.
    swap -s
    total: 6071888k bytes allocated + 1010404k reserved = 7082292k used, 52134560k availableAbove output shows that total virtual memory is = 7082292k used, 52134560k available = 57829 MB
    Sun documents says that solaris calculate Virutal Memory by combining the available RAM with total swap space
    System swap is 32773 MB
    And availabe RAM righ now is 22506
    # vmstat 1 3
    kthr      memory            page            disk          faults      cpu
    r b w   swap  free  re  mf pi po fr de sr s2 -- -- --   in   sy   cs us sy id
    0 0 0 55999408 25906620 579 106 1410 2 2 0 0 69 0 0 0 3919 13684 6331 3  2 95
    1 0 0 52134492 23046320 9 56 0 0  0  0  0  4  0  0  0 1391 4097 2257  0  1 99
    0 0 0 52134372 23046196 0 6 0  0  0  0  0  5  0  0  0 1511 4367 2474  0  1 99So combining them becomes 55279 MB which is not the same as displaying by SMC and swap -s
    Does any body know how solaris exactly calculate the virtual memory which it indicates in SMC and swap -s ?

    If you look at the man page it shows for the -s flag:
    available The total swap space in
    bytes that is currently
    available for future reser-
    vation and allocation.
    That means if swap has been allocated it wont be shown in this total, Solaris has a funny way of dealing with memory, it will only free physical memory when it needs to reuse it. If you want to tell if a system is paging the best way is to use sar with the -g flag e.g
    sar -g 10 10
    Or iostat etc

  • How to calculate AUTOEXTEND ON NEXT in tablespace clause

    hi
    Please explain How to calculate AUTOEXTEND ON NEXT in tablespace clause.
    whether AUTOEXTEND ON NEXT 50M or 100M or 500M
    Thanks

    174313 wrote:
    hi
    Please explain How to calculate AUTOEXTEND ON NEXT in tablespace clause.
    whether AUTOEXTEND ON NEXT 50M or 100M or 500M
    ThanksThe autoextend size depends on the following :-
    1) Tablespace type Dictionary managed (DMT) or Locally managed (LMT)
    2) Segment space management manual or Auto.
    3) Extent allocation management Autoallocate or uniform.
    If your tablespace is Locally managed with segment management Auto (ASSM) and with extent management is uniform , the autoextend size will be uniform for all the extents , initial and next extents all will be uniform size .
    If your tablespace is Locally managed with segment management Auto (ASSM) and with extent management is autoallocate, Oracle will size the extents automatically starts with 64KB and can go upto 64MB.
    If you have dictionary managed tablespace you will specify the next size at tablespace creation.
    Hope this helps.

  • Can i save a podcast without taking up space on nano 6, i keep getting error message space is used up but I don't want to lose the podcast episode for the future

    can i save a podcast without taking up space on nano 6, i keep getting error message space is used up but I don't want to lose the podcast episode for the future

    Sorry to be such a moron with this, but I just don't have much experience with this iPad.  I have had it for over a year and I just keep adding stuff to it and it has worked great.  Now that the memory is used up, I am trying to figure out how to free up space and not lose what I have paid for. 
    So, Step 1 is complete, as I have "Transferred" all of the purchases.
    What is Step 2?  I unchecked the concert on the iTunes library, did a sync, but it's still on my iPad.
    Thanks again for the help!!!

  • How much external disk space is needed for editing HD video?

    If I'm using FCE:
    1) How much external disk space is needed for editing HD video:
    if I downloaded 150mins of HD video? and
    do editing with it which will have an output of 120mins.
    Now PC, going to a MAC user soon   Windows XP  

    Hi(bonjour)!
    As a rule of thumb for HDV editing, use those numbers:
    12 to 15 meg/second for capturing ( your project is 150 minutes long, so 780 meg/minute, or 117 to 125 Gig).
    If you do any editing, add transition, video effect, add 12 to 15 meg /second to the total.
    As your project will have to be rendered for the print to tape operation, calculate 12 to 15 meg/second for all the length of your final movie. Add this amount to the total. (example: a 60 minutes movie : 49 Gig).
    If you want to burn a DVD on your Mac, calculate 3 to 4 meg/second for downconversion to DV material if you check "self-contained" in quicktime export dialog. (example: your finished project is 60 minutes long : 10.8 Gig)
    iDVD itself needs 3 to 4 times this amount if you want flawless operation.
    Finally, if you use your internal hard disk for all this storage (it's not a good idea to capture on the same drive where Mac OS X belongs), your Mac OS needs some spare room to breath (doing caching, etc), and your hard drive must have a least 25% of free space to avoid file's fragmentation.
    As hard drive's price drop, get the maximum size you can afford. 250 Gig is a good choice if you want to do just one project of 90 to 150 minutes at the time.
    Michel Boissonneault

  • How do you use new ipod nano with itunes 10.6.3?

    How do you use new ipod nano with Itunes 10.6.3.  I have MBP and it lists itunes 10.6.3 as most current version and won't let me install itunes 11

    The seventh generation iPod nano requires at least iTunes 10.7 and Mac OS X 10.6.
    (85225)

Maybe you are looking for

  • Problem in loading the kernel files during kernel upgrade

    Gurus  ,    we are usinf solman 7.0 . our current patch level is 70 we are upgrading it to 159 . but when i try to uncar the files i get the error as , "SAPCAR: could not open for writing ABAP.pad (error 28). Permission denied" the file ABAP.PAD has

  • Iphone won't turn on, and says 'unknown error 2009' when trying to restore?

    this morning my iphone turned off and wouldn't turn on. I plugged it into the charger and it said to connect it to itunes. Once i finally did that, at first it couldnt detect it but now it keeps telling me an iphone has been detected in recovery mode

  • Trigger function when loaded swf finishes

    I'm making a site that loads external swfs based on which button is clicked. When the swf loads it plays an intro and then stops at a certain point. My goal is that when you click another button the current swf plays an outro before the next one load

  • IWeb Blog - Sorting to show earliest date first

    Have used Blog format to create a list of future events in our community: http://web.mac.com/carnen/iWeb/Events/AllEvents/AllEvents.html It is exactly what we want except that the first event in the list is the one that is more distant in the future.

  • Change to my desired ringtone

    I just bought my N95 phone and would like to change to my desired ringtone. Can someone tell me how and where to put the ringtone file and what types of ringtone file format are supported by N95. Thanks!