NEED YOUR HELP TO WRITE COMPLEX QUERIES FOR MULTIPLE RECHARGE

Dear friend,
Kindly help me out to prepare query for below scenario in telecom environment ..
sometimes retailer do multiple recharge to same subscriber for same price points(MRP) in a day i.e Suppose in day ,a reatailer:A did recharge mrp 50 to Customer: B , Again after 5 min ,then reatailer:A did recharge mrp 50 to Customer: B again , then after 30 min ,then reatailer:A did recharge mrp 50 to Customer: B again ...similarly lot of retailer did same thing so on ....
Kndly suggest a query for below scenario..
1)How to get 1st recharge for customer if retailer did multiple recharge to particular customer for same price points in day ..
2)how to get 2nd recharge for customer considering 1st scenarion i.e.a particular retailer did recharge MRP 50 three times a partucular customer in day ..then how can get 2nd one ....
3)how can get second transaction to customer which happened after 2 mins after did 1st recharge ..considering multiple recharge scenario
4) how can get second transaction to same customer which happened after 30 mins after did 1st reharge to customer ..considering multiple recharge scenario
5) how can get second transaction to customer which happened between 2 mins and 5 mins after did 1st recharge to cuastomer considering multiple recharge scenario
i have tried with below query , But it's not giving exact output .Kindly suggest qury for same .. table with column with some sample recode given below ..
SELECT DISTINCT a.TRANSACTION_ID,a.TRASFER_DATE,b.transaction_id,
ABS(a.TRASFER_DATE-b.TRASFER_DATE)*24*60*60,b.TRASFER_DATE next1,
a.PROCESSING_TIME,a.RETAILER_MSISDN,a.CUSTOMER_MSISDN,a.MRP FROM SG_JK_190313 a,SG_JK_190313 b
WHERE a.retailer_msisdn=b.RETAILER_MSISDN
AND a.CUSTOMER_MSISDN=b.CUSTOMER_MSISDN
AND a.MRP=b.MRP
AND a.TRASFER_DATE!=b.TRASFER_DATE
AND ABS(a.TRASFER_DATE-b.TRASFER_DATE)*24*60*60>120
ORDER BY a.transaction_id
Table Details :SG_JK_190313 it's columns:TRANSACTION_ID, TRASFER_DATE, PROCESSING_TIME, RETAILER_MSISDN, CUSTOMER_MSISDN, MRP
transaction_id     trasfer_date processing_time     retailer_msisdn     customer_msisdn     mrp
JKR13031900571000005     3/19/2013 0:57     0.75     7298297447     7298297447     10
JKR13031900571000005     3/19/2013 0:57     0.75     7298297447     7298297447     10
JKR13031900571000005     3/19/2013 0:57     0.75     7298297447     7298297447     10
JKR13031900571000005     3/19/2013 0:57     0.75     7298297447     7298297447     10
JKR13031911511200235     3/19/2013 11:51     0.392     7298297447     7298297447     10
JKR13031911511200235     3/19/2013 11:51     0.392     7298297447     7298297447     10
JKR13031911511200235     3/19/2013 11:51     0.392     7298297447     7298297447     10
JKR13031911511200235     3/19/2013 11:51     0.392     7298297447     7298297447     10
JKR13031915551100480     3/19/2013 15:55     0.4     7298297447     7298297447     10
JKR13031915551100480     3/19/2013 15:55     0.4     7298297447     7298297447     10
JKR13031915551100480     3/19/2013 15:55     0.4     7298297447     7298297447     10
JKR13031915551100480     3/19/2013 15:55     0.4     7298297447     7298297447     10
JKR13031922321000078     3/19/2013 22:32     0.417     7298297447     7298297447     10
JKR13031922321000078     3/19/2013 22:32     0.417     7298297447     7298297447     10
JKR13031922321000078     3/19/2013 22:32     0.417     7298297447     7298297447     10
JKR13031922321000078     3/19/2013 22:32     0.417     7298297447     7298297447     10
JKR13031905141100001     3/19/2013 5:14     0.502     7298698345     7298598324     50
JKR13031923121000043     3/19/2013 23:12     0.404     7298698345     7298598324     50
JKR13031905141100001     3/19/2013 5:14     0.502     7298698345     7298598324     50
JKR13031905141100001     3/19/2013 5:14     0.502     7298698345     7298598324     50
JKR13031907151100019     3/19/2013 7:15     0.569     7298698345     7298598324     50
JKR13031907151100019     3/19/2013 7:15     0.569     7298698345     7298598324     50
JKR13031907151100019     3/19/2013 7:15     0.569     7298698345     7298598324     50
JKR13031907151100019     3/19/2013 7:15     0.569     7298698345     7298598324     50
JKR13031907451100041     3/19/2013 7:45     0.483     7298698345     7298598324     50
JKR13031907451100041     3/19/2013 7:45     0.483     7298698345     7298598324     50
JKR13031907451100041     3/19/2013 7:45     0.483     7298698345     7298598324     50
JKR13031907451100041     3/19/2013 7:45     0.483     7298698345     7298598324     50
JKR13031923121000043     3/19/2013 23:12     0.404     7298698345     7298598324     50
JKR13031923121000043     3/19/2013 23:12     0.404     7298698345     7298598324     50
JKR13031923121000043     3/19/2013 23:12     0.404     7298698345     7298598324     50
JKR13031905141100001     3/19/2013 5:14     0.502     7298698345     7298598324     50
JKR13031901061000004     3/19/2013 1:06     0.487     9697199326     8803799846     1
JKR13031918431100989     3/19/2013 18:43     0.323     9697199326     8803799846     1
JKR13031918431100989     3/19/2013 18:43     0.323     9697199326     8803799846     1
JKR13031918431100989     3/19/2013 18:43     0.323     9697199326     8803799846     1
JKR13031918431100989     3/19/2013 18:43     0.323     9697199326     8803799846     1
JKR13031918431100989     3/19/2013 18:43     0.323     9697199326     8803799846     1
JKR13031918431100989     3/19/2013 18:43     0.323     9697199326     8803799846     1
JKR13031918431100989     3/19/2013 18:43     0.323     9697199326     8803799846     1
JKR13031901061000004     3/19/2013 1:06     0.487     9697199326     8803799846     1
JKR13031901061000004     3/19/2013 1:06     0.487     9697199326     8803799846     1
JKR13031901061000004     3/19/2013 1:06     0.487     9697199326     8803799846     1
JKR13031901061000004     3/19/2013 1:06     0.487     9697199326     8803799846     1
JKR13031901061000004     3/19/2013 1:06     0.487     9697199326     8803799846     1
JKR13031901061000004     3/19/2013 1:06     0.487     9697199326     8803799846     1
JKR13031900081200010     3/19/2013 0:08     0.253     9697199326     8803799846     1
JKR13031900081200010     3/19/2013 0:08     0.253     9697199326     8803799846     1
JKR13031900081200010     3/19/2013 0:08     0.253     9697199326     8803799846     1
JKR13031900081200010     3/19/2013 0:08     0.253     9697199326     8803799846     1
JKR13031900081200010     3/19/2013 0:08     0.253     9697199326     8803799846     1
JKR13031900081200010     3/19/2013 0:08     0.253     9697199326     8803799846     1
JKR13031900081200010     3/19/2013 0:08     0.253     9697199326     8803799846     1
JKR13031900291100016     3/19/2013 0:29     0.464     9697199326     8803799846     1
JKR13031900291100016     3/19/2013 0:29     0.464     9697199326     8803799846     1
JKR13031900291100016     3/19/2013 0:29     0.464     9697199326     8803799846     1
JKR13031900291100016     3/19/2013 0:29     0.464     9697199326     8803799846     1
JKR13031900291100016     3/19/2013 0:29     0.464     9697199326     8803799846     1
JKR13031900291100016     3/19/2013 0:29     0.464     9697199326     8803799846     1
JKR13031900291100016     3/19/2013 0:29     0.464     9697199326     8803799846     1
JKR13031900191000011     3/19/2013 0:19     0.302     9697199326     8803799846     1
JKR13031900191000011     3/19/2013 0:19     0.302     9697199326     8803799846     1
JKR13031900191000011     3/19/2013 0:19     0.302     9697199326     8803799846     1
JKR13031900191000011     3/19/2013 0:19     0.302     9697199326     8803799846     1
JKR13031900191000011     3/19/2013 0:19     0.302     9697199326     8803799846     1
JKR13031900191000011     3/19/2013 0:19     0.302     9697199326     8803799846     1
JKR13031918501101022     3/19/2013 18:50     2.231     9697199326     8803799846     1
JKR13031918501101022     3/19/2013 18:50     2.231     9697199326     8803799846     1
JKR13031918501101022     3/19/2013 18:50     2.231     9697199326     8803799846     1
JKR13031918501101022     3/19/2013 18:50     2.231     9697199326     8803799846     1
JKR13031918501101022     3/19/2013 18:50     2.231     9697199326     8803799846     1
JKR13031918501101022     3/19/2013 18:50     2.231     9697199326     8803799846     1
JKR13031918501101022     3/19/2013 18:50     2.231     9697199326     8803799846     1
JKR13031918371101555     3/19/2013 18:37     0.376     9697199326     8803799846     1
JKR13031918371101555     3/19/2013 18:37     0.376     9697199326     8803799846     1
JKR13031918371101555     3/19/2013 18:37     0.376     9697199326     8803799846     1
JKR13031918371101555     3/19/2013 18:37     0.376     9697199326     8803799846     1
JKR13031918371101555     3/19/2013 18:37     0.376     9697199326     8803799846     1
JKR13031918371101555     3/19/2013 18:37     0.376     9697199326     8803799846     1
JKR13031918371101555     3/19/2013 18:37     0.376     9697199326     8803799846     1
JKR13031900191000011     3/19/2013 0:19     0.302     9697199326     8803799846     1
JKR13031920541100321     3/19/2013 20:54     0.373     9858998396     9858998396     10
JKR13031920541100321     3/19/2013 20:54     0.373     9858998396     9858998396     10
JKR13031917321000533     3/19/2013 17:32     0.361     9858998396     9858998396     10
JKR13031917321000533     3/19/2013 17:32     0.361     9858998396     9858998396     10
JKR13031917321000533     3/19/2013 17:32     0.361     9858998396     9858998396     10
JKR13031913071200251     3/19/2013 13:07     0.422     9858998396     9858998396     10
JKR13031913071200251     3/19/2013 13:07     0.422     9858998396     9858998396     10
JKR13031920541100321     3/19/2013 20:54     0.373     9858998396     9858998396     10
JKR13031913071200251     3/19/2013 13:07     0.422     9858998396     9858998396     10
Regards
Srikanta Parida

PFB sample data of table .Kindely prepare the query..
transaction_id     trasfer_date     processing_time     retailer_msisdn     customer_msisdn     mrp
JKR13031900571000005     19/Mar/2013 12:57:51 AM     0.75     7298297447     7298297447     10
JKR13031900571000005     19/Mar/2013 12:57:51 AM     0.75     7298297447     7298297447     10
JKR13031900571000005     19/Mar/2013 12:57:51 AM     0.75     7298297447     7298297447     10
JKR13031900571000005     19/Mar/2013 12:57:51 AM     0.75     7298297447     7298297447     10
JKR13031911511200235     19/Mar/2013 11:51:19 AM     0.39     7298297447     7298297447     10
JKR13031911511200235     19/Mar/2013 11:51:19 AM     0.39     7298297447     7298297447     10
JKR13031911511200235     19/Mar/2013 11:51:19 AM     0.39     7298297447     7298297447     10
JKR13031911511200235     19/Mar/2013 11:51:19 AM     0.39     7298297447     7298297447     10
JKR13031915551100480     19/Mar/2013 03:55:50 PM     0.40     7298297447     7298297447     10
JKR13031915551100480     19/Mar/2013 03:55:50 PM     0.40     7298297447     7298297447     10
JKR13031915551100480     19/Mar/2013 03:55:50 PM     0.40     7298297447     7298297447     10
JKR13031915551100480     19/Mar/2013 03:55:50 PM     0.40     7298297447     7298297447     10
JKR13031922321000078     19/Mar/2013 10:32:34 PM     0.42     7298297447     7298297447     10
JKR13031922321000078     19/Mar/2013 10:32:34 PM     0.42     7298297447     7298297447     10
JKR13031922321000078     19/Mar/2013 10:32:34 PM     0.42     7298297447     7298297447     10
JKR13031922321000078     19/Mar/2013 10:32:34 PM     0.42     7298297447     7298297447     10
JKR13031905141100001     19/Mar/2013 05:14:11 AM     0.50     7298698345     7298598324     50
JKR13031923121000043     19/Mar/2013 11:12:55 PM     0.40     7298698345     7298598324     50
JKR13031905141100001     19/Mar/2013 05:14:11 AM     0.50     7298698345     7298598324     50
JKR13031905141100001     19/Mar/2013 05:14:11 AM     0.50     7298698345     7298598324     50
JKR13031907151100019     19/Mar/2013 07:15:05 AM     0.57     7298698345     7298598324     50
JKR13031907151100019     19/Mar/2013 07:15:05 AM     0.57     7298698345     7298598324     50
JKR13031907151100019     19/Mar/2013 07:15:05 AM     0.57     7298698345     7298598324     50
JKR13031907151100019     19/Mar/2013 07:15:05 AM     0.57     7298698345     7298598324     50
JKR13031907451100041     19/Mar/2013 07:45:13 AM     0.48     7298698345     7298598324     50
JKR13031907451100041     19/Mar/2013 07:45:13 AM     0.48     7298698345     7298598324     50
JKR13031907451100041     19/Mar/2013 07:45:13 AM     0.48     7298698345     7298598324     50
JKR13031907451100041     19/Mar/2013 07:45:13 AM     0.48     7298698345     7298598324     50
JKR13031923121000043     19/Mar/2013 11:12:55 PM     0.40     7298698345     7298598324     50
JKR13031923121000043     19/Mar/2013 11:12:55 PM     0.40     7298698345     7298598324     50
JKR13031923121000043     19/Mar/2013 11:12:55 PM     0.40     7298698345     7298598324     50
JKR13031905141100001     19/Mar/2013 05:14:11 AM     0.50     7298698345     7298598324     50
JKR13031901061000004     19/Mar/2013 01:06:39 AM     0.49     9697199326     8803799846     1
JKR13031918431100989     19/Mar/2013 06:43:37 PM     0.32     9697199326     8803799846     1
JKR13031918431100989     19/Mar/2013 06:43:37 PM     0.32     9697199326     8803799846     1
JKR13031918431100989     19/Mar/2013 06:43:37 PM     0.32     9697199326     8803799846     1
JKR13031918431100989     19/Mar/2013 06:43:37 PM     0.32     9697199326     8803799846     1
JKR13031918431100989     19/Mar/2013 06:43:37 PM     0.32     9697199326     8803799846     1
JKR13031918431100989     19/Mar/2013 06:43:37 PM     0.32     9697199326     8803799846     1
JKR13031918431100989     19/Mar/2013 06:43:37 PM     0.32     9697199326     8803799846     1
JKR13031901061000004     19/Mar/2013 01:06:39 AM     0.49     9697199326     8803799846     1
JKR13031901061000004     19/Mar/2013 01:06:39 AM     0.49     9697199326     8803799846     1
JKR13031901061000004     19/Mar/2013 01:06:39 AM     0.49     9697199326     8803799846     1
JKR13031901061000004     19/Mar/2013 01:06:39 AM     0.49     9697199326     8803799846     1
JKR13031901061000004     19/Mar/2013 01:06:39 AM     0.49     9697199326     8803799846     1
JKR13031901061000004     19/Mar/2013 01:06:39 AM     0.49     9697199326     8803799846     1
JKR13031900081200010     19/Mar/2013 12:08:11 AM     0.25     9697199326     8803799846     1
JKR13031900081200010     19/Mar/2013 12:08:11 AM     0.25     9697199326     8803799846     1
JKR13031900081200010     19/Mar/2013 12:08:11 AM     0.25     9697199326     8803799846     1
JKR13031900081200010     19/Mar/2013 12:08:11 AM     0.25     9697199326     8803799846     1
JKR13031900081200010     19/Mar/2013 12:08:11 AM     0.25     9697199326     8803799846     1
JKR13031900081200010     19/Mar/2013 12:08:11 AM     0.25     9697199326     8803799846     1
JKR13031900081200010     19/Mar/2013 12:08:11 AM     0.25     9697199326     8803799846     1
JKR13031900291100016     19/Mar/2013 12:29:38 AM     0.46     9697199326     8803799846     1
JKR13031900291100016     19/Mar/2013 12:29:38 AM     0.46     9697199326     8803799846     1
JKR13031900291100016     19/Mar/2013 12:29:38 AM     0.46     9697199326     8803799846     1
JKR13031900291100016     19/Mar/2013 12:29:38 AM     0.46     9697199326     8803799846     1
JKR13031900291100016     19/Mar/2013 12:29:38 AM     0.46     9697199326     8803799846     1
JKR13031900291100016     19/Mar/2013 12:29:38 AM     0.46     9697199326     8803799846     1
JKR13031900291100016     19/Mar/2013 12:29:38 AM     0.46     9697199326     8803799846     1
JKR13031900191000011     19/Mar/2013 12:19:51 AM     0.30     9697199326     8803799846     1
JKR13031900191000011     19/Mar/2013 12:19:51 AM     0.30     9697199326     8803799846     1
JKR13031900191000011     19/Mar/2013 12:19:51 AM     0.30     9697199326     8803799846     1
JKR13031900191000011     19/Mar/2013 12:19:51 AM     0.30     9697199326     8803799846     1
JKR13031900191000011     19/Mar/2013 12:19:51 AM     0.30     9697199326     8803799846     1
JKR13031900191000011     19/Mar/2013 12:19:51 AM     0.30     9697199326     8803799846     1
JKR13031918501101022     19/Mar/2013 06:50:40 PM     2.23     9697199326     8803799846     1
JKR13031918501101022     19/Mar/2013 06:50:40 PM     2.23     9697199326     8803799846     1
JKR13031918501101022     19/Mar/2013 06:50:40 PM     2.23     9697199326     8803799846     1
JKR13031918501101022     19/Mar/2013 06:50:40 PM     2.23     9697199326     8803799846     1
JKR13031918501101022     19/Mar/2013 06:50:40 PM     2.23     9697199326     8803799846     1
JKR13031918501101022     19/Mar/2013 06:50:40 PM     2.23     9697199326     8803799846     1
JKR13031918501101022     19/Mar/2013 06:50:40 PM     2.23     9697199326     8803799846     1
JKR13031918371101555     19/Mar/2013 06:37:59 PM     0.38     9697199326     8803799846     1
JKR13031918371101555     19/Mar/2013 06:37:59 PM     0.38     9697199326     8803799846     1
JKR13031918371101555     19/Mar/2013 06:37:59 PM     0.38     9697199326     8803799846     1
JKR13031918371101555     19/Mar/2013 06:37:59 PM     0.38     9697199326     8803799846     1
JKR13031918371101555     19/Mar/2013 06:37:59 PM     0.38     9697199326     8803799846     1
JKR13031918371101555     19/Mar/2013 06:37:59 PM     0.38     9697199326     8803799846     1
JKR13031918371101555     19/Mar/2013 06:37:59 PM     0.38     9697199326     8803799846     1
JKR13031900191000011     19/Mar/2013 12:19:51 AM     0.30     9697199326     8803799846     1
JKR13031920541100321     19/Mar/2013 08:54:23 PM     0.37     9858998396     9858998396     10
JKR13031920541100321     19/Mar/2013 08:54:23 PM     0.37     9858998396     9858998396     10
JKR13031917321000533     19/Mar/2013 05:32:39 PM     0.36     9858998396     9858998396     10
JKR13031917321000533     19/Mar/2013 05:32:39 PM     0.36     9858998396     9858998396     10
JKR13031917321000533     19/Mar/2013 05:32:39 PM     0.36     9858998396     9858998396     10
JKR13031913071200251     19/Mar/2013 01:07:22 PM     0.42     9858998396     9858998396     10
JKR13031913071200251     19/Mar/2013 01:07:22 PM     0.42     9858998396     9858998396     10
JKR13031920541100321     19/Mar/2013 08:54:23 PM     0.37     9858998396     9858998396     10
JKR13031913071200251     19/Mar/2013 01:07:22 PM     0.42     9858998396     9858998396     10
Edited by: user3558544 on Apr 5, 2013 5:55 AM

Similar Messages

  • Hi i have an ipad mini and i have not used it for 2 month or more. Today i have tried to use it i came across with a problem. my Ipad is blocked and it asks me to wait 23,401,418 :) what should i do need your help. thanks

    hi i have an ipad mini and i have not used it for 2 month or more. Today i have tried to use it i came across with a problem. my Ipad is blocked and it asks me to wait 23,401,418 what should i do need your help. thanks 

    Have you charged ipad Try a Reboot press & hold power button & menu button hold both down until you see Apple Logo You may need to do this more than once. Bsydd uk

  • Having problem buying online.need your help since it's my first time here.apple is asking for my billing address but when i enter my address here in qatar,it's saying i should enter a valid zip code within the u.s.does it mean i can't buy online

    having problem buying online.need your help since it's my first time here.apple is asking for my billing address but when i enter my address here in qatar,it's saying i should enter a valid zip code within the u.s.does it mean i can't buy online even if it wil be shipped within u.s. only?

    To buy in for delivery in Qatar, you should be starting from the Apple Qatar site:
    http://www.apple.com/qa/
    Do you have an Apple-ID? if you do, then you should not have to enter your Address again, and may be able to sidestep the US Zip Code issue.

  • Somehow I can't hear people talking on my iphone 4 either when calling or being called. I've bought this one for half a year. I need your help~Thank you in advance.

    Dear Iphone fans,
    Recently, somehow I can't hear sounds when talking on my iphone4 either when calling or being called. When asking them later, they said they can hear me but my sound become very low and unclear. And I can't hear a thing at that time. Could anyone tell me how I could fix the problem.
    I've bought this one for half a year. I need your help~
    Thank you in advance.

    Dear Iphone fans,
    Recently, somehow I can't hear sounds when talking on my iphone4 either when calling or being called. When asking them later, they said they can hear me but my sound become very low and unclear. And I can't hear a thing at that time. Could anyone tell me how I could fix the problem.
    I've bought this one for half a year. I need your help~
    Thank you in advance.

  • I Need Your Help.How Do I Get Internet  For My IPod Touch 4,So I Can Have Music To Listen To.Thank You,donna Spinner

    I Need Your Help With My IPod Touch 4 I Would Like To Have Music To Listen To&I Would Like To Know How To Get Internet For My Apple IPod Touch 4 So I Can Have Music To Listen To.Thank You,Donna Spinner

    Connect to your home wi-fi network.
    Click Support at the top of this page, then click Manuals.
    Select the ipod touch manual.

  • Need your help, How to write a program such as drag the objects to the front panel like using the LabVIEW Front Platte

    Dear all:
    Sorry for so long title.
    I need your help with how to drag the objects and drop onto the front panel.
    Like the LabVIEW front platte, i can choose the objects i can drop onto every where of the front panel.
    Could drag and drop function can satify?
    Any idea?
    Thank you
    Attachments:
    Image00000.jpg ‏75 KB

    What you want to do is relatively complicated and it seems that your knowledge of LabVIEW is relatively basic. I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • I need Your Help for CAF/EU/GP/API Guided Procedures

    Hi everyone, I need your help about Guided procedures CAF API, I am developing an WEB DYNPRO Callable Object for Guided Procedures, but I need to get the task name of the running proceess on Guided Procedure once time a user initiated it, if is possible? Do you have an examples?
    Thenk you very much

    Hi,
    Yes you can retrieve the task name of the running process. Here is what you need to do.
    1. Get the process instance - IGPRuntimeManager - > getInstance()
    2. Get the IGPActivityInstance(s) from the process instance - processInstance.getChildrenInformation().
    3. Optionaly check if these child activities are Blocks or Actions. If Block drill further to get the Actions using getChildrenInformation().
    4. Retreive the IGPActionInstance(s) from the Block Activities.
    5. Get the IGPActivity object for these Actions using IGPActionInstance.getTemplate() method.
    6.  This object will have a method getTitle() which will retrive you the activity name.
    Hope this helps.
    Thanks
    Kiran

  • Please , i need youre help ! im from Mexico and i dont speak inglish well but ill try explain me... i buy a cs5 students edicion but i lost my paswoord for the instalacion can you helpe me ? how can i recuperade my paswoord

    please , i need youre help ! im from Mexico and i dont speak inglish well but ill try explain me... i buy a cs5 students edicion but i lost my paswoord for the instalacion can you helpe me ? how can i recuperade my paswoord
    Creative Suites

    Find your serial number quickly
    Mylenium

  • HT201401 I need your help. I use iPhone 4 . I've just downloaded new iOS for while. Today my phone couldn't on and off . When I' was home and tried to connected with USB ,but it wasn't necessary. Pls help me.

    I Need your help ,pls. I can't use my iPhone . It can't on and off , no display anymore.

    Hello Apple_Addict22,
    Thank you for your question. iOS 7 requires iTunes 11.1.  First, I recommend trying to obtain the update by going to the iTunes menu and selecting Check for Updates.
    iTunes: How to install the latest version
    http://support.apple.com/kb/ht5654
    If you continue to get the message that iTunes is up to date, you can download the latest version of iTunes here:
    Download iTunes
    http://www.apple.com/itunes/download/
    Once the file downloads, double click on the installation file that downloaded to initiate the installation.
    Best,
    Sheila M.

  • HI ALL SINCE TWO DAYS I AM DOWNLOADING VIBER BUT I AM NOT HAVING MY ACCESS CODE AND EVERY TIME I DELETE THE APPLICATION AND DOWNLOADING IT AGAIN BUT ALWAYS THE SAME RESULT PLEASE I NEED YOUR HELP FOR THE ACCESS CODE.MY PHONE NUMBER IS 0022996969896.THANKS

    HI ALL SINCE TWO DAYS I AM DOWNLOADING VIBER BUT I AM NOT HAVING MY ACCESS CODE AND EVERY TIME I DELETE THE APPLICATION AND DOWNLOADING IT AGAIN BUT ALWAYS THE SAME RESULT PLEASE I NEED YOUR HELP FOR THE ACCESS CODE.MY PHONE NUMBER IS 0022996969896.THANKS IN ADVANCE

    try this website this should help you http://helpme.viber.com/index.php?/Knowledgebase/List/Index/1/iphone

  • HT5312 Hi I forgot my security question how I can rest becouse I was going APP this massage pop of in the app page I benn buying app in this iPod may time they are say for first time you are buying apps in iPod pls I need your help to resist my security q

    Hi I forgot my security question how I can rest becouse I was going APP this massage pop of in the app page I benn buying app in this iPod may time they are say for first time you are buying apps in iPod pls I need your help to resist my security question

    The Three Best Alternatives for Security Questions and Rescue Mail
         1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • Need your help on performance issue please

    Hello everyone!
    I need your help to understand an effect I notice with a Thread class I built. I currently work on enhancement of my application Playlist Editor (see http://www.lightdev.com/page74.htm) and a new release will be available soon.
    Among other extensions the new release will have a title filter function which is based on audio data that is recursively read from ID3 tags of files found in a given root directory. The data collection is done by a CollectionThread class which reads into a data model class AudioDataModel and the entire process works fine, no problem with that.
    However, when my application is started for the first time the CollectionThread runs approximately 3 minutes to collect data from approximately 4300 audio files on an Intel Pentium M 1,4 GHz, 512 MB RAM, Windows XP SP2. When the application is shut down and started again, it takes only a few seconds to do the same task for all subsequent launches.
    I already tried to start the application with java option -Xms40m to increase initial heap size. This increases performance in general but the effect is still the same, i.e. first run lasts significantly longer than subsequent runs.
    I also tried to build a pool mechanism which creates many empty objects in the data model and then releases them to contain the actual data at is being read in but this did not lead to better performance.
    It must have to do with how Java (or Windows?) allocates and caches memory. I wonder whether there is a way to pre-allocate memory or if there are any other ideas to improve performance so that the process always only takes seconds instead of minutes?
    I attach the key classes to this message. Any help or ideas is much appreciated!
    Thanks a lot a best regards
    Ulrich
    PS: You can use the news subscription service at
    http://www.lightdev.com/dynTemplate.php4?id=80&dynPage=subscribe.php4 to be informed when the new release of Playlist Editor is available.
    All classes posted here do not need debugging, they already have proven to run error free. The classes are only posted for information for the interested reader - no need to go through all the stuff in detail - only if it interests you.
    My application calls class CollectionThread wich is a subclass of InfoThread. CollectionThread recursively goes through a directory and file structure and stores found ID3 tag information in instances of class ID3v11Tag which in turn gets stored in one instance of class AudioDataModel. All classes are shown below.
    This is the mentioned CollectionThread
    * Light Development Playlist Editor
    * Copyright (C) 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.app.playlisteditor.data;
    import com.lightdev.lib.util.InfoThread;
    import java.io.File;
    * A class to collect audio data from a given storage location.
    * <p>
    * <code>CollectionThread</code> uses ID3 tag information to gain data.
    * </p>
    * <p>See <a href="http://www.id3.org">http://www.id3.org</a> for details about
    * ID3 tags.</p>
    * @author Ulrich Hilger
    * @author Light Development
    * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
    * @author <a href="mailto:[email protected]">[email protected]</a>
    * @author published under the terms and conditions of the
    *      GNU General Public License,
    *      for details see file gpl.txt in the distribution
    *      package of this software as well as any licensing notes
    *      inside this documentation
    * @version 1, October 13, 2004
    public class CollectionThread extends InfoThread {
       * constructor
       * @param model  AudioDataModel  the data model to collect data to
      public CollectionThread(AudioDataModel model) {
        this.model = model;
       * constructor, creates a new empty AudioDataModel
      public CollectionThread() {
        this(new AudioDataModel());
       * set the data model to collect data to
       * @param model AudioDataModel  the model to collect data to
      public void setModel(AudioDataModel model) {
        this.model = model;
       * get the data model associated to this thread
       * @return AudioDataModel  the data model
      public AudioDataModel getModel() {
        return model;
       * set the directory to collect data from
       * @param rootDir File  the directory to collect data from
      public void setRootDirectory(File rootDir) {
        this.rootDir = rootDir;
       * do te actual work of this thread, i.e. iterate through a given directory
       * structure and collect audio data
       * @return boolean  true, if work is left
      protected boolean work() {
        boolean workIsLeft = true;
        maxValue = -1;
        filesProcessed = 0;
        if(getStatus() < STATUS_HALT_PENDING) {
          countElements(rootDir.listFiles());
        if(getStatus() < STATUS_HALT_PENDING) {
          workIsLeft = collect(rootDir.listFiles());
        return workIsLeft;
       * count the elements in a given file array including its subdirectories
       * @param files File[]
      private void countElements(File[] files) {
        int i = 0;
        while (i < files.length && getStatus() < STATUS_HALT_PENDING) {
          File file = files;
    if (file.isDirectory()) {
    countElements(file.listFiles());
    i++;
    maxValue++;
    * recursively read data into model
    * @param files File[] the file array representing the content of a given directory
    private boolean collect(File[] files) {
    int i = 0;
    while(i < files.length && getStatus() < STATUS_HALT_PENDING) {
    File file = files[i];
    if(file.isDirectory()) {
    collect(file.listFiles());
    else if(file.getName().toLowerCase().endsWith("mp3")) {
    try {
    model.addTrack(file);
    catch(Exception e) {
    fireThreadException(e);
    i++;
    filesProcessed++;
    fireThreadProgress(filesProcessed);
    return (i<files.length);
    /** the directory to collect data from */
    private File rootDir;
    /** the data model to collect data to */
    private AudioDataModel model;
    /** the number of files this thread processed so far while it is running */
    private long filesProcessed = 0;
    This is class InfoThread
    * Light Development Java Library
    * Copyright (C) 2003, 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.lib.util;
    import java.util.Vector;
    import java.util.Enumeration;
    * Abstract class <code>InfoThread</class> implements a status and listener concept.
    * An <code>InfoThread</code> object actively informs all objects registered as listeners about
    * status changes, progress and possible exceptions. This way the status of a running
    * thread does not require a polling mechanism to be monitored.
    * <p>
    * <code>InfoThread</code> implements the following working scheme
    * </p>
    * @author Ulrich Hilger
    * @author Light Development
    * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
    * @author <a href="mailto:[email protected]">[email protected]</a>
    * @author published under the terms and conditions of the
    *      GNU General Public License,
    *      for details see file gpl.txt in the distribution
    *      package of this software
    * @version Version 1, October 13, 2004
    public abstract class InfoThread extends Thread {
       * construct an <code>InfoThread</code> object
       * <p>This class is meant to be used when a <code>Thread</code> object is needed that actively
       * informs other objects about its status</code>. It is a good idea therefore to register
       * one or more listeners with instances of this class before doing anything
       * else.</p>
       * @see addInfoThreadListener
      public InfoThread() {
       * set the amount of time this thread shall idle after it is through with one
       * work cycle and before a next work cycle is started. This influences the time
       * other threads have for their work.
       * @param millis long  the number of milliseconds to idle after one work cycle
      public void setIdleMillis(long millis) {
        idleMillis = millis;
       * Causes this thread to begin execution; the Java Virtual Machine calls the <code>run</code>
       * method of this thread. Calls method <code>prepareThread</code> before calling
       * <code>run</code>.
       * @see run
       * @see prepareThread
      public synchronized void start() {
        setStatus(STATUS_INITIALIZING);
        prepareThread();
        setStatus(STATUS_READY);
        super.start();
       * call method <code>start</code> instead of this method.
       * calling this method directly will lead to an exception
       * @see start
      public void run() {
        //System.out.println("InfoThread.run");
        if (status == STATUS_READY) {
          boolean workIsLeft = true;
          setStatus(STATUS_RUNNING);
          while (status < STATUS_STOP_PENDING && workIsLeft) {
            if (status < STATUS_HALT_PENDING) {
              workIsLeft = work();
              if(!workIsLeft) {
                setStatus(STATUS_WORK_COMPLETE);
            if (status == STATUS_HALT_PENDING) {
              setStatus(STATUS_HALTED);
            else if (status == STATUS_STOP_PENDING) {
              setStatus(STATUS_STOPPED);
            else {
              try {
                sleep(idleMillis);
              catch (InterruptedException e) {
                fireThreadException(e);
        else {
          // error: Thread is not ready to run
        setStatus(STATUS_THREAD_FINISHED);
       * stop this thread. This will terminate the thread irrevokably. Use method
       * <code>haltThread</code> to pause a thread with the possiblity to resume work later.
       * @see haltThread
      public void stopThread() {
        switch (status) {
          case STATUS_RUNNING:
            setStatus(STATUS_STOP_PENDING);
            break;
          case STATUS_HALT_PENDING:
            // exception: the thread already is about to halt
            break;
          case STATUS_STOP_PENDING:
            // exception: the thread already is about to stop
            break;
          default:
            // exception: a thread can not be stopped, when it is not running
            break;
       * halt this thread, i.e. pause working allowing to resume later
       * @see resumeThread
      public void haltThread() {
        switch (status) {
          case STATUS_RUNNING:
            setStatus(STATUS_STOP_PENDING);
            break;
          case STATUS_HALT_PENDING:
            // exception: the thread already is about to halt
            break;
          case STATUS_STOP_PENDING:
            // exception: the thread already is about to stop
            break;
          default:
            // exception: a thread can not be halted, when it is not running
            break;
       * resume this thread, i.e. resume previously halted work
       * @see haltThread
      public void resumeThread() {
        if(status == STATUS_HALTED || status == STATUS_HALT_PENDING) {
          setStatus(STATUS_RUNNING);
        else {
          // exception: only halted threads or threads that are about to halt can be resumed
       * this is the method to prepare a thread to run. It is not implemented in this abstract
       * class. Subclasses of <code>InfoThread</code> can implement this method to do anything
       * that might be required to put their thread into STATUS_READY. This method is called
       * automatically by method <code>start</code>.  When implementing this method, it should
       * call method <code>fireThreadException</code> accordingly.
       * @see start
       * @see fireThreadException
      protected void prepareThread() {
        // does nothing in this abstract class but might be needed in subclasses
       * this is the main activity method of this object. It is not implemented in this abstract
       * class. Subclasses of <code>InfoThread</code> must implement this method to do something
       * meaningful. When implementing this method, it should call methods
       * <code>fireThreadProgress</code> and <code>fireThreadException</code> accordingly.
       * @return boolean true, if work is left, false if not
       * @see fireThreadProgress
       * @see fireTreadException
      protected abstract boolean work();
       * add an <code>InfoTreadListener</code> to this instance of <code>InfoThread</code>
       * @param l InfoThreadListener  the listener to add
       * @see removeInfoThreadListener
      public void addInfoThreadListener(InfoThreadListener l) {
        listeners.add(l);
       * remove an <code>InfoTreadListener</code> from this instance of <code>InfoThread</code>
       * @param l InfoThreadListener  the listener to remove
      public void removeInfoThreadListener(InfoThreadListener l) {
        listeners.remove(l);
       * notify all <code>InfoThreadListener</code>s of a status change
       * @param fromStatus int  the status tis thread had before the change
       * @param toStatus int  the status this thread has now
      protected void fireThreadStatusChanged(int fromStatus, int toStatus) {
        Enumeration e = listeners.elements();
        while(e.hasMoreElements()) {
          Object l = e.nextElement();
          if(l instanceof InfoThreadListener) {
            ((InfoThreadListener) l).threadStatusChanged(this, fromStatus, toStatus);
       * notify all <code>InfoThreadListener</code>s of an exception in this thread
       * @param ex Exception  the exception that occurred
      protected void fireThreadException(Exception ex) {
        Enumeration e = listeners.elements();
        while(e.hasMoreElements()) {
          Object l = e.nextElement();
          if(l instanceof InfoThreadListener) {
            ((InfoThreadListener) l).threadException(this, ex);
       * notify all <code>InfoThreadListener</code>s of the progress of this thread
       * @param progressValue long  a value indicating the current thread progress
      protected void fireThreadProgress(long progressValue) {
        Enumeration e = listeners.elements();
        while(e.hasMoreElements()) {
          Object l = e.nextElement();
          if(l instanceof InfoThreadListener) {
            ((InfoThreadListener) l).threadProgress(this, progressValue, maxValue);
       * set the status of this thread and notify all listeners
       * @param newStatus int  the status this thread is to be changed to
      private void setStatus(int newStatus) {
        //System.out.println("InfoThread.setStatus oldStatus=" + status + ", newStatus=" + newStatus);
        int fromStatus = status;
        status = newStatus;
        fireThreadStatusChanged(fromStatus, newStatus);
       * get the current status of this thread
       * @return int  the status
      public int getStatus() {
        return status;
       * cleanup before actual destruction.
      public void destroy() {
        //System.out.println("InfoThread.destroy");
        cleanup();
        super.destroy();
       * cleanup all references this thread maintains
      private void cleanup() {
        //System.out.println("InfoThread.cleanup");
        listeners.removeAllElements();
        listeners = null;
      /* ----------------------- class fields start ------------------------ */
      /** storage for the objects this thread notifies about status changes and progress */
      private Vector listeners = new Vector();
      /** indicator for the status of this thread */
      private int status = STATUS_NONE;
      /** maximum value for threadProgress */
      protected long maxValue = -1;
      /** the idle time inside one work cycle in milliseconds */
      protected long idleMillis = 1;
      /* ----------------------- class fields end -------------------------- */
      /* ----------------------- constants start --------------------------- */
      /** constant value indicating that no status has been set so far */
      public static final int STATUS_NONE = 0;
      /** constant value indicating that the thread is currently initializing */
      public static final int STATUS_INITIALIZING = 1;
      /** constant value indicating that the thread is ready to run */
      public static final int STATUS_READY = 2;
      /** constant value indicating that the thread is running */
      public static final int STATUS_RUNNING = 3;
      /** constant value indicating that the thread is about to halt */
      public static final int STATUS_HALT_PENDING = 4;
      /** constant value indicating that the thread is halted */
      public static final int STATUS_HALTED = 5;
      /** constant value indicating that the work of this thread is complete */
      public static final int STATUS_WORK_COMPLETE = 6;
      /** constant value indicating that the thread is about to stop */
      public static final int STATUS_STOP_PENDING = 7;
      /** constant value indicating that the thread is stopped */
      public static final int STATUS_STOPPED = 8;
      /** constant value indicating that the thread is finished */
      public static final int STATUS_THREAD_FINISHED = 9;
      /* ----------------------- constants end --------------------------- */
    }this is the InfoThreadListener interface
    * Light Development Java Library
    * Copyright (C) 2003, 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.lib.util;
    * An interface classes interested to receive events from objects
    * of class <code>InfoThread</code> need to implement.
    * @author Ulrich Hilger
    * @author Light Development
    * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
    * @author <a href="mailto:[email protected]">[email protected]</a>
    * @author published under the terms and conditions of the
    *      GNU General Public License,
    *      for details see file gpl.txt in the distribution
    *      package of this software
    * @version Version 1, October 13, 2004
    public interface InfoThreadListener {
       * method to receive a status change notification from a thread
       * @param thread InfoThread  the thread which status changed
       * @param fromStatus int  the status which the thread had before the change
       * @param toStatus int  the status which the thread has now
      public void threadStatusChanged(InfoThread thread, int fromStatus, int toStatus);
       * method to receive a notification about the progress of a thread
       * @param thread InfoThread  the thread which notified about its progress
       * @param progressValue long  the value (e.g. 10 if 100 percent completed, 20 of 1 million files processed, etc.)
      public void threadProgress(InfoThread thread, long progressValue, long maxValue);
       * method to receive a notifiaction about the fact that an exception occurred in a thread
       * @param thread InfoThread  the thread for which an exception occurred
       * @param e Exception  the exception that occurred
      public void threadException(InfoThread thread, Exception e);
    }This is class AudioFileDescriptor
    * Light Development Java Library
    * Copyright (C) 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.lib.audio;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.RandomAccessFile;
    import java.io.Serializable;
    import java.text.DecimalFormat;
    * This class models characteristics of an audio file such as the absolute path
    * of the file, its tag contents (if any) and the play duration, etc.
    * <p>See <a href="http://www.id3.org">http://www.id3.org</a> for details about
    * ID3 tags.</p>
    * @author Ulrich Hilger
    * @author Light Development
    * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
    * @author <a href="mailto:[email protected]">[email protected]</a>
    * @author published under the terms and conditions of the
    *      GNU General Public License,
    *      for details see file gpl.txt in the distribution
    *      package of this software
    * @version Version 1, October 13, 2004
    public class AudioFileDescriptor implements Serializable, Comparable {
      public AudioFileDescriptor(String absolutePath) throws FileNotFoundException, IOException {
        load(absolutePath);
      public boolean equals(Object o) {
        if(o != null && o instanceof AudioFileDescriptor) {
          return ((AudioFileDescriptor) o).getAbsolutePath().equalsIgnoreCase(this.getAbsolutePath());
        else {
          return false;
      public void load(String absolutePath) throws FileNotFoundException, IOException {
        this.absolutePath = absolutePath;
        RandomAccessFile rf = new RandomAccessFile(absolutePath, "r");
        if(id3v11Tag == null) {
          id3v11Tag = new ID3v11Tag(rf, false);
        else {
          id3v11Tag.readTag(rf, rf.length() - 128);
        rf.close();
      public String getAbsolutePath() {
        return absolutePath;
      public ID3v11Tag getID3v11Tag() {
        return id3v11Tag;
      public void setID3v11Tag(ID3v11Tag tag) {
        this.id3v11Tag = tag;
      public String toString() {
        DecimalFormat df = new DecimalFormat("00");
        return id3v11Tag.getArtist() + ", " + id3v11Tag.getAlbum() + " - " +
            df.format(id3v11Tag.getTrackNumber()) + " " + id3v11Tag.getTitle();
       * Compares this object with the specified object for order.
       * @param o the Object to be compared.
       * @return a negative integer, zero, or a positive integer as this object is less than, equal to,
       *   or greater than the specified object.
       * @todo Implement this java.lang.Comparable method
      public int compareTo(Object o) {
        return toString().compareTo(o.toString());
      private String absolutePath;
      private ID3v11Tag id3v11Tag;
      private transient long duration = -1;
      private transient int type = TYPE_UNKNOWN;
      public static final transient int TYPE_UNKNOWN = 0;
      public static final transient int TYPE_MP3 = 1;
    }This is class ID3V11Tag into which the data is actually stored
    * Light Development Java Library
    * Copyright (C) 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.lib.audio;
    import java.io.File;
    import java.io.RandomAccessFile;
    import java.io.IOException;
    import java.io.Serializable;
    import java.text.DecimalFormat;
    * This class is a very simple implementation of an ID3v11Tag. It models an ID3 tag
    * pretty much the same way as it is physically stored inside an audio file.
    * <p>See <a href="http://www.id3.org">http://www.id3.org</a> for details about
    * ID3 tags.</p>
    * @author Ulrich Hilger
    * @author Light Development
    * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
    * @author <a href="mailto:[email protected]">[email protected]</a>
    * @author published under the terms and conditions of the
    *      GNU General Public License,
    *      for details see file gpl.txt in the distribution
    *      package of this software
    * @version Version 1, October 13, 2004
    public class ID3v11Tag implements Serializable, Comparable {
       * construct an ID3v11Tag and read tag content from a given file
       * <p>This constructor can be used for cases where a RandomAccessFile has already
       * been opened and will be closed elsewhere</p>
       * @param rf RandomAccessFile  the open file to read from
       * @param isAtTagStartPos boolean  true, if the file pointer is at the
       * position where the ID3 tag starts; when false, the pointer is positioned accordingly here
       * @throws IOException
      public ID3v11Tag(RandomAccessFile rf, boolean isAtTagStartPos) throws IOException {
        if(isAtTagStartPos) {
          readTag(rf);
        else {
          readTag(rf, rf.length() - 128);
       * construct an ID3v11Tag and read tag content from a file at a given location
       * <p>This constructor opens and closes the audio file for reading</p>
       * @param absolutePath String  the absolute path to the audio file to open
       * @throws IOException
      public ID3v11Tag(String absolutePath) throws IOException {
        RandomAccessFile rf = new RandomAccessFile(absolutePath, "r");
        readTag(rf, rf.length() - 128);
        rf.close();
       * construct an ID3v11Tag and read tag content from a given file
       * <p>This constructor opens and closes the audio file for reading</p>
       * @param audioFile File  the audio file to read from
       * @throws IOException
      public ID3v11Tag(File audioFile) throws IOException {
        this(audioFile.getAbsolutePath());
       * get a string representation of this object
       * @return String
      public String toString() {
        DecimalFormat df = new DecimalFormat("00");
        return getArtist() + ", " + getAlbum() + " - " + df.format(getTrackNumber()) + " " + getTitle();
       * position to file pointer and read the tag
       * @param rf RandomAccessFile  the file to read from
       * @param jumpPos long  the position to jump to (the tag start position)
       * @throws IOException
      public void readTag(RandomAccessFile rf, long jumpPos) throws IOException {
        rf.seek(jumpPos);
        readTag(rf);
       * read the tag from a given file, assuming the file pointer to be at the tag start position
       * @param rf RandomAccessFile  the file to read from
       * @throws IOException
      public void readTag(RandomAccessFile rf) throws IOException {
        rf.read(tagBuf);
        if(tag.equalsIgnoreCase(new String(tagBuf))) {
          rf.read(title);
          rf.read(artist);
          rf.read(album);
          rf.read(year);
          rf.read(comment);
          rf.read(trackNo);
          rf.read(genre);
      public String getTitle() {
        return new String(title).trim();
      public String getArtist() {
        return new String(artist).trim();
      public String getAlbum() {
        return new String(album).trim();
      public String getYear() {
        return new String(year).trim();
      public String getComment() {
        return new String(comment).trim();
      public int getGenreId() {
        try {
          int id = new Byte(genre[0]).intValue();
          if(id < GENRE_ID_MIN || id > GENRE_ID_MAX) {
            return GENRE_ID_OTHER;
          else {
            return id;
        catch(Exception ex) {
          return GENRE_ID_OTHER;
      public String getGenreName() {
        return genreNames[getGenreId()];
      public int getTrackNumber() {
        try {
          return (int) trackNo[0];
        catch(Exception e) {
          return 0;
       * Compares this object with the specified object for order.
       * @param o the Object to be compared.
       * @return a negative integer, zero, or a positive integer as this object is less than, equal to,
       *                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Franck,
    thank you, mate. I did what you suggested (changed class attached) but that did not change the mentioned behaviour.
    The first run is approximately 75 seconds with Java option -Xms40m and approx. double without, the second run and all subsequent runs are only 2-3 seconds each (!!!) even when terminating and re-starting the application between thread runs.
    I'm pretty clueless about that, any more help on this anyone?
    Thanks a lot and best regards
    Ulrich
    PS: BTW, I forgot to post the class that is filled with data by class CollectionThread, so here it is
    * Light Development Playlist Editor
    * Copyright (C) 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.app.playlisteditor.data;
    import java.io.File;
    import com.lightdev.lib.audio.ID3v11Tag;
    import javax.sound.sampled.UnsupportedAudioFileException;
    import java.io.IOException;
    import java.io.Serializable;
    import com.lightdev.lib.audio.AudioFileDescriptor;
    import com.lightdev.lib.ui.SortListModel;
    import java.util.Iterator;
    * Storage model for audio data.
    * <p>
    * <code>AudioDataModel</code> can be used to store ID3 tag data collected from
    * a directory with audio files to perform queries and reports on the found data.
    * </p>
    * <p>See <a href="http://www.id3.org">http://www.id3.org</a> for details about
    * ID3 tags.</p>
    * @author Ulrich Hilger
    * @author Light Development
    * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
    * @author <a href="mailto:[email protected]">[email protected]</a>
    * @author published under the terms and conditions of the
    *      GNU General Public License,
    *      for details see file gpl.txt in the distribution
    *      package of this software as well as any licensing notes
    *      inside this documentation
    * @version 1, October 15, 2004
    public class AudioDataModel extends SortListModel implements Serializable {
       * constructor
      public AudioDataModel() {
       * add an audio track from a given audio file
       * <p>This will attempt to read ID3 tag data from the file.</p>
       * @param audioFile File  the file to add audio data for
       * @throws IOException
      public void addTrack(File audioFile) throws IOException {
        AudioFileDescriptor afd = new AudioFileDescriptor(audioFile.getAbsolutePath());
        if (!data.contains(afd)) {
          data.add(afd);
       * get all tracks for agiven combination of genre name, artist name and album name. Any of
       * the parameters may be null or AudioDataModel.FILTER_ALL
       * <p>Ugly code, I know, but it simply hard codes all combinations of the the mentioned
       * parameters. Any more elegant implementations welcome.</p>
       * @param genreName String  a genre name to get tracks for
       * @param artistName String  an artist name to get tracks for
       * @param albumName String  an album name to get tracks for
       * @return SortListModel   the found tracks in a list model
      public SortListModel getTracks(String genreName, String artistName, String albumName) {
        SortListModel foundTracks = new SortListModel();
        Iterator e = data.iterator();
        while(e.hasNext()) {
          AudioFileDescriptor afd = (AudioFileDescriptor) e.next();
          ID3v11Tag tag = afd.getID3v11Tag();
          if(genreName == null || genreName.equalsIgnoreCase(FILTER_ALL)) {
            if(artistName == null || artistName.equalsIgnoreCase(FILTER_ALL)) {
              if (tag.getAlbum().equalsIgnoreCase(albumName))
                foundTracks.add(afd);
            else {
              if(albumName == null || albumName.equalsIgnoreCase(FILTER_ALL)) {
                if (tag.getArtist().equalsIgnoreCase(artistName))
                  foundTracks.add(afd);
              else {
                if (tag.getArtist().equalsIgnoreCase(artistName) &&
                    tag.getAlbum().equalsIgnoreCase(albumName))
                  foundTracks.add(afd);
          else {
            if(artistName == null || artistName.equalsIgnoreCase(FILTER_ALL)) {
              if(albumName == null || albumName.equalsIgnoreCase(FILTER_ALL)) {
                if (tag.getGenreName().equalsIgnoreCase(genreName))
                  foundTracks.add(afd);
              else {
                if (tag.getGenreName().equalsIgnoreCase(genreName) &&
                    tag.getAlbum().equalsIgnoreCase(albumName))
                  foundTracks.add(afd);
            else {
              if(albumName == null || albumName.equalsIgnoreCase(FILTER_ALL)) {
                if (tag.getGenreName().equalsIgnoreCase(genreName) &&
                    tag.getArtist().equalsIgnoreCase(artistName))
                  foundTracks.add(afd);
              else {
                if (tag.getGenreName().equalsIgnoreCase(genreName) &&
                    tag.getArtist().equalsIgnoreCase(artistName) &&
                    tag.getAlbum().equalsIgnoreCase(albumName))
                  foundTracks.add(afd);
        foundTracks.sort();
        return foundTracks;
       * list all artists in this model
       * @return SortListModel
      public SortListModel listArtists() {
        SortListModel artists = new SortListModel();
        artists.add(FILTER_ALL);
        Iterator e = data.iterator();
        while (e.hasNext()) {
          ID3v11Tag tag = ((AudioFileDescriptor) e.next()).getID3v11Tag();
          String artistName = tag.getArtist();
          if (artists.indexOf(artistName) < 0) {
            artists.add(artistName);
        artists.sort();
        return artists;
       * list all artists in this model having titles belonging to a given genre
       * @param genreName String  name of the genre artists are searched for
       * @return SortListModel
      public SortListModel listArtists(String genreName) {
        SortListModel artists = new SortListModel();
        artists.add(FILTER_ALL);
        Iterator e = data.iterator();
        while (e.hasNext()) {
          ID3v11Tag tag = ((AudioFileDescriptor) e.next()).getID3v11Tag();
          String artistName = tag.getArtist();
          String genre = tag.getGenreName();
          if (artists.indexOf(artistName) < 0 && genre.equalsIgnoreCase(genreName)) {
            artists.add(artistName);
        artists.sort();
        return artists;
       * list all genres in this model
       * @return SortListModel
      public SortListModel listGenres() {
        SortListModel genres = new SortListModel();
        genres.add(FILTER_ALL);
        Iterator e = data.iterator();
        while (e.hasNext()) {
          ID3v11Tag tag = ((AudioFileDescriptor) e.next()).getID3v11Tag();
          String genreName = tag.getGenreName();
          if (genres.indexOf(genreName) < 0) {
            genres.add(genreName);
        genres.sort();
        return genres;
       * list all albums in this model
       * @return SortListModel
      public SortListModel listAlbums() {
        SortListModel albums = new SortListModel();
        albums.add(FILTER_ALL);
        Iterator e = data.iterator();
        while (e.hasNext()) {
          ID3v11Tag tag = ((AudioFileDescriptor) e.next()).getID3v11Tag();
          String albumName = tag.getAlbum();
          if (albums.indexOf(albumName) < 0) {
            albums.add(albumName);
        albums.sort();
        return albums;
       * list all albums in this model having titles belonging to a given genre
       * @param genreName String  name of the genre albums are searched for
       * @return SortListModel
      public SortListModel listAlbums(String genreName) {
        SortListModel albums = new SortListModel();
        albums.add(FILTER_ALL);
        Iterator e = data.iterator();
        while (e.hasNext()) {
          ID3v11Tag tag = ((AudioFileDescriptor) e.next()).getID3v11Tag();
          String albumName = tag.getAlbum();
          String genre = tag.getGenreName();
          if (albums.indexOf(albumName) < 0 && genre.equalsIgnoreCase(genreName)) {
            albums.add(albumName);
        albums.sort();
        return albums;
       * list all albums in this model having titles belonging to a given genre and artist
       * @param genreName String  name of the genre albums are searched for
       * @param artistName String  name of the artist albums are searched for
       * @return SortListModel
      public SortListModel listAlbums(String genreName, String artistName) {
        SortListModel albums = new SortListModel();
        albums.add(FILTER_ALL);
        Iterator e = data.iterator();
        while (e.hasNext()) {
          ID3v11Tag tag = ((AudioFileDescriptor) e.next()).getID3v11Tag();
          String albumName = tag.getAlbum();
          String genre = tag.getGenreName();
          String artist = tag.getArtist();
          if(genreName == null || genreName.equalsIgnoreCase(FILTER_ALL)) {
            if (albums.indexOf(albumName) < 0 &&
                artist.equalsIgnoreCase(artistName))
              albums.add(albumName);
          else {
            if (albums.indexOf(albumName) < 0 &&
                genre.equalsIgnoreCase(genreName) &&
                artist.equalsIgnoreCase(artistName))
              albums.add(albumName);
        albums.sort();
        return albums;
       * get the number of audio tracks stored in this data model
       * @return int  the number of tracks
      public int getTrackCount() {
        return data.size();
      /** constant to select all items of a given part */
      public static final String FILTER_ALL = "    all";
    }...and here the changed CollectionThread now caching found File objects in a vector
    * Light Development Playlist Editor
    * Copyright (C) 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.app.playlisteditor.data;
    import com.lightdev.lib.util.InfoThread;
    import java.io.File;
    import java.util.Vector;
    import java.util.Enumeration;
    * A class to collect audio data from a given storage location.
    * <p>
    * <code>CollectionThread</code> uses ID3 tag information to gain data.
    * </p>
    * <p>See <a href="http://www.id3.org">http://www.id3.org</a> for details about
    * ID3 tags.</p>
    * @author Ulrich Hilger
    * @author Light Development
    * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
    * @author <a href="mailto:[email protected]">[email protected]</a>
    * @author published under the terms and conditions of the
    *      GNU General Public License,
    *      for details see file gpl.txt in the distribution
    *      package of this software as well as any licensing notes
    *      inside this documentation
    * @version 1, October 13, 2004
    public class CollectionThread extends InfoThread {
       * constructor
       * @param model  AudioDataModel  the data model to collect data to
      public CollectionThread(AudioDataModel model) {
        this.model = model;
       * constructor, creates a new empty AudioDataModel
      public CollectionThread() {
        this(new AudioDataModel());
       * set the data model to collect data to
       * @param model AudioDataModel  the model to collect data to
      public void setModel(AudioDataModel model) {
        this.model = model;
       * get the data model associated to this thread
       * @return AudioDataModel  the data model
      public AudioDataModel getModel() {
        return model;
       * set the directory to collect data from
       * @param rootDir File  the directory to collect data from
      public void setRootDirectory(File rootDir) {
        this.rootDir = rootDir;
       * this is the method to prepare a thread to run.
      protected void prepareThread() {
        maxValue = -1;
        filesProcessed = 0;
        innerCount = 0;
        fileList = new Vector();
       * do the actual work of this thread, i.e. iterate through a given directory
       * structure and collect audio data
       * @return boolean  true, if work is left
      protected boolean work() {
        boolean workIsLeft = true;
        if(getStatus() < STATUS_HALT_PENDING) {
          countElements(rootDir.listFiles());
        if(getStatus() < STATUS_HALT_PENDING) {
          workIsLeft = collect(); //collect(rootDir.listFiles());
          fileList.clear();
          fileList = null;
        return workIsLeft;
       * count the elements in a given file array including its subdirectories
       * @param files File[]
      private void countElements(File[] files) {
        int i = 0;
        while (i < files.length && getStatus() < STATUS_HALT_PENDING) {
          File file = files;
    if (file.isDirectory()) {
    countElements(file.listFiles());
    else {
    fileList.add(file);
    i++;
    maxValue++;
    * read data into model
    * @param files File[] the file array representing the content of a given directory
    * @return boolean true, if work is left
    private boolean collect(/*File[] files*/) {
    Enumeration files = fileList.elements();
    while(files.hasMoreElements() && getStatus() < STATUS_HALT_PENDING) {
    File file = (File) files.nextElement();
    try {
    model.addTrack(file);
    catch(Exception e) {
    fireThreadException(e);
    filesProcessed++;
    if(++innerCount > 99) {
    innerCount = 0;
    fireThreadProgress(filesProcessed);
    return false;
    int i = 0;
    while(i < files.length && getStatus() < STATUS_HALT_PENDING) {
    File file = files[i];
    if(file.isDirectory()) {
    collect(file.listFiles());
    else if(file.getName().toLowerCase().endsWith("mp3")) {
    try {
    model.addTrack(file);
    catch(Exception e) {
    fireThreadException(e);
    i++;
    filesProcessed++;
    fireThreadProgress(filesProcessed);
    return (i<files.length);
    /** the directory to collect data from */
    private File rootDir;
    /** the data model to collect data to */
    private AudioDataModel model;
    /** the number of files this thread processed so far while it is running */
    private long filesProcessed = 0;
    /** a list to temporary store found files */
    private Vector fileList;
    /** counter to determine when to fire progress messages */
    private int innerCount = 0;

  • Need your help in Remodeling concept

    Hi Gurus need your help in time estimations
    I have a cube with data and now I need to add 10 new info objects to the cube which are including Date fields (BUDAT, BLDAT) these 10 fields will be populated to the cube from a Z table in ECC as we donu2019t have these fields in the cube we have to go for remodeling of the cube
    My client requires how much time it will take to complete this
    Now I want to know how much time it would take to do this (if any customer exits and user exits are required) and addition if new fields will have any effect on the current queries
    Please advice in this
    Thank you

    The time taken will depends on a lots of factor like server speed, available memory, background jobs etc. Apart from this, the time will also depends on how much the cube is filled i.e. the no. of records in the cube. Its very abstract to tell you the exact time taken for this. But, please make sure that you have the backup of the cube which you are going to re-model. T0 say, I think 3-4 hours should be ok for the remodelling.
    Thanks.
    Shambhu

  • Letter/report generation...morgalr, i need your help!!

    may i know the details or some sample source code of how to generate the html and import it to MS Word...i need your help urgently...may i have your email to contact u?.....please help, it is urgent!!!

    You need not use an applet to write an HTML file, any application file will do fine, actually applications may be prefered due to system security and file creation. Basically the html files are just text files using HTML. Look at any book on HTML and you will be able to get the style and form down along with the syntax.
    As for calling MS word, do a search on the web for a product called JPrint. It is done by a company called Neva and they also have a product called "coroutine". It is coroutine that you want. Coroutine is a native level interface for Java to Comm. The docs that come with coroutine should be saficient to get you going on the project.

  • Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database"

    Hi, Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database" ?
    When I use Connect Object Explorer, the "Connect to Server" dialog box which pops up has only 4 selections in the Server Type Drop Down List. They are Database Engine, Analysis Services, Reporting Services & Integration Services. I have read
    somewhere that there should be a compact database option. but I do not see it.
    What I would like to do is use free form SQL Queries against the tables in "SQL Server Compact 4.0 Local Database" .
    Once I have validated these queries, then I will use them in my Visual Studio 2012 C#, ASP.NET application. I created the Local Database using Visual Studio 2012 for use by my application.
    Thank you for your help..
    diana4

    Hello,
    With SSMS 2005 we have had the Option to work with SQL CE database files, but not with higher Version of SSMS.
    You can use the free SQL CE Toolbax instead; see
    http://sqlcetoolbox.codeplex.com/
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for

  • Adobe Overdrive console error message?

    Hi, I've been using Adobe Overdrive console to download and read library books on my Velocity Cruz tablet. The last 2 books I have checked out will not download from the library website. When I click on Download, it looks like it is starting to downl

  • How can I access a specific font face contained within a TTF font file?

    I want to access "Avenir Medium", which is one of 12 faces contained within the font file named "Avenir.ttf". CSS allows me to specify the font file (src:...), the family name (fontFamily), and the weight (fontWeight). The file, of course, is the sam

  • Direct delivery and GR

    Hello everybody I need your help. Our business process is the following one : - a central purchasing that is responsible of ordering POs to external suppliers - many plants, belonging to company codes different from the central purchasing's one The p

  • Mount cdrom in a local zone

    Hello, how can I mount a cdrom in a local zone. It works fine in the global zone, but in a local zone I got an error no device Thanks Mark

  • Swaps no increased in ST02

    Hi Friends, In our development system Swaps no is very high and it shows RED mark in st02 Table definition =25.213 Field definition = 357.579 Initial records = 62.209 program          =  81.856 CUA              = 12.158 Screen          = 879 please c