Advice on how to approach?
hi,
i have a method that creates tab-seperated lines of data for bulk SQL loads. Each line has different lengths, depending on the data.
Right now i am dealing with this by allocating a ByteBuffer with way more bytes than i need. When i'm done creating the line, i just call the get Method and pour the bytes into a byte buffer that has the length of the current position.
This worked on smaller data sets, but now that i've extended my data set size i am getting OutOfMemory errors all over the place.
I realize now that this was lazy programming. I am seeking a better way to approach this. Any advice?
Edited by: pnandrus on Sep 18, 2007 9:29 AM
whats the point of using a DB if you are going to load every thing to memory. If you are executing bulk queries retrieve the data when you need them using the result set (In a good design this should be invisible to anything above the DAO interface, and the interface should not pour large amounts of data out of it). This way you can have the DB manage your data, but cant say much as it is unclear what you are really doing.
Similar Messages
-
Need advice on how to approach interactive timeline/chart Component
For my application I need a component (or combination of components) that shows a number of different types of events along a timeline, displays them in different ways as specified and allows you to click/hover along the timeline to add/modify/get details on events.
I'm not sure if I should attempt to extend the flex advanced datagrid, or use one of the several vaguely similar component types I've found online (http://www.gantt4flex.com/, http://flexlib.googlecode.com/svn/trunk/docs/index.html?flexlib/scheduling/), or how best to approach, but I need to get this on its feet fairly quickly.
Basically I want a timeline across the top, always showing a 24hour period, but starting at variable points.
I need to have different rows of variable height to display different types of data in different ways.
for instance
- row 1 will display the 'value' attribute as a circle whose diameter reflects value amount and change color based on a 'typecode' attribute.
- row 2 will display a line graph and plot chart based on different numbers, but will also chart out trend of following or previous data if it exists.
- behind row 2 will display the same thing but for 5 previous days progressively more transparent
-row 3 will display the number values from row 2
-row 4 will display another type of data, this one with duration, as bar lines. you will be able to click with in this row once to set startpoint of new entry and once to set endpoint to create new entry. onclick..
-row 4 will display color coded squares for a number of different datatypes and hovering will reveal details.
all rows need to share the same timespan, and I'd like to be able to have click/hover events that target the data object/values of the data being displayed.
I have a data model and can come up with whatever data I need no problem (working from sqlite). But I haven't built a component from scratch before and am wondering how to approach something like this.. how to break it down etc.. any advice is greatly appreciatedhere's a mockup of sorta what I'm going for:
http://imgur.com/pN70P
just not sure what elements would be most logical to start from! -
Newbie needs advice on how to approach a new project using iMovie/Cubase
Hi all.
As you have probably guessed it's a music to picture problem, never done it before so I need some advice. I'm doing a guitar tuition DVD so there will be some playing and some speech. I can combine both real time via the mixing desk and feed it straight to the camera's mike input. This seems to be the least flexible and most low tech approach. I would prefer to fiddle about in Cubase to get the audio right before fixing it to the video. I am unsure how to use iMovie and Cubase in a combined way to produce what I'm after. Cubase will handle video and iMovie will handle sound but which way round do I do it? I'm at a loss as even what questions to ask! At the moment I'm setting iMovie to record from the camera, setting Cubase to record the audio and clapping in time with the count in to act as a sync. Once I have my audio file I can import the vid into Cubase or import the audio into iMovie. Am I missing something here or is this the right way to do it? ( I might sound vaguely clever but don't rely on it in your answers ! I'm a guitarist after all....)
TIA Nick.
,quad G5 Mac Mini Mac OS X (10.4.6)musicians are used to do everything simultanously (=band), film/video is doing each thing after the other ;-):
I would
* record the video to a camcorder, incl. guitar/music but NO voice-over…
* import that into iM…
* edit all together
* THEN use this as a "click track" for any audio processing…, mainly adding the narration
* re-import the final audio track back to iM, create videoDVD, getting rich by selling zillions of them....
advantage: you concentrate on playing guitar OR telling the tricks&clues...
besides: whatfor you need Cubase in such a project...? or is it "Guitar IN Cubase"? -
Need some advice on how to approach a problem
Hi,
I have a Jpanel, in which i use paintComponent() to draw a lot of things....
I pretty much have a large grid...and within this grid, i have lines, which are connected by points....The lines are moved around by dragging the points.
To check if a point is grabbed....i just get the x,y coordinates from the mouse listener....loop through my list of points, and check if the x,y coordinates of the mouse click fall within a rectangle of the point....this is pretty simple...especially since the points are rather small...
I now have to figure out a way to enable a right click popup menu to appear if the user right click on top of a line (give or take a few pixels)....now I could take the approach mentioned above...and loop through all the lines....but i would not be able to do 1 check per line...since the lines can be long/short, and take any angle...thus its not as simple to just check a specific area around the whole line (because this area might turn out to be too large)....
so what i was thinking is to create my own component, which would draw a line, and have its own mouse listeners...and the popup menu would only occur if the mouse listener for the component went off....
im not so sure of this idea...thats why i am posting to this forum....any and add advice is greatly appreciated!
thanks!thanks for your help...i read the distance formula...and i tried to implement it...but i couldn't get it working....I think i am confused as to what the distance formula is returning...here is my math:
we have a line between points: (105,239) & (153,239)...this is a straight line across the x - axis....and i click on a point: (140,230)
first thing i need to do is convert these points into Ax + By + C = 0....so:
y = (A/B)x + C
A = (y1-y2); ==> 0
B = (x1-x2); ==> -48
C = C*B; ==> 239 * -48 => -11,472
now we have our equation Ax + By + C = 0 ==> 0x - 48y - 11,472 = 0;
the distance formula states: abs(Ar + Bs + C)/sqrt(A^2 + B^2)....using r=140, and s = 230...we get:
abs(0 - 48*230 - 11,472) / sqrt(48^2) ==> approximately 469....
now this doesn't make sense....since the point is actually only 9 pixels away from the line (in the Y direction)....
thanks for your help! -
After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer and .mac account. Does anyone have any advice on how to fix this issue?
Welcome to the Apple Community.
Which OS are you using. -
My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?
http://discussions.apple.com/thread/3418045?tstart=60
-
How to approach this requirment
Business overview:
For every organisation account management will be the core functionality. The account management should include the following:
customer - company - vendor.
1. customer info
2. vendor info
3.organisation info
4.material info
5.purchase order info
6.sales order info
7.subsequent documents such as delivery doc,invoice doc n accounting doc info.
Reports:
1.purchase order line item wise report.
2.open purchase order.
3.sales order line item wise report.
4.open sales order report.
5.open invoice item wise.
Im new to ABAP, pl someone guide me how to approach this requirment. Which r the tables n fields i need to work with?
Thank you.Hi Ashwini,
I am giving you some of the important details of tables as per your requirement.But there could be more tables than i am providing.
Just a list of tables that come in handy.
Sales orders
Name Description Uses
LIKP Shipped Lines header
LIPS Shipped Lines detail
VBAK Order header Every order (unless archiving)
VBAP Table fields Every line item (unless archiving)
VBBE Open sales order line items Great file, but be careful.Contents don't reflect orders
that do not affect purchasing (go figure).
VBEP Schedule line item
VBFA Document flow Let's you move from order to shipping document to invoice.
VBUK Order status
VBUP Line item detail status
VBFK Invoicing header
VBFP Invoicing detail
Material Management
Name Description Uses
MARA Inventory Master
MARC Plant Data
MARD Current Inventory
MAKT Descriptions
MBEW Material Valuation
T179 Product Hierarchy
MVKE Sales data (materials)
MKPF Material document Status code 'R' in VBFA
Purchasing
Name Description Uses
EINA Purchasing inforecord by MATNR/LIFNR contains things like vendor material
number and access key for EINE
EINE Purchasing inforecord detail Contains minimum purchase, group, currency
EKPO Purchase orders
EKET Scheduled lines
EKES Vendor confirmed lines
IKPF Header- Physical Inventory Document
ISEG Physical Inventory Document Items
LFA1 Vendor Master (General section)
LFB1 Vendor Master (Company Code)
NRIV Number range intervals
RESB Reservation/dependent requirements
T161T Texts for Purchasing Document Types
Forecasting
Name Description Uses
MAPR
PROP
PROW
Classification
Name Description Uses
KSSK Material number to class
KLAS Class description
KSML Characteristic name
CABN/CABNT Characteristic name description
CAWN/CAWNT Characteristic name
AUSP Numeric values
CAUFV Service order header
AFPO Service order line Holds items that will create "reservations"
RESB SM Reservations Materials needed for line
Customer Data
KNA1 Customer Master
KNVV Sales information
KNVP Partners (ship-to, etc)
Since you are new to abap, its better you to know the system tables and other tables for configuring:
System tables
Name Description Uses
DD02T Table texts
DD03L Table fields Lists the fields in a table
DD04T Data element texts
USR02 Valid user names
Config tables (normally begin with "T")
Name Description Uses
T001 Client table
T002 Languages
T005 Region (Country)
TCURR Currency and exchange rates
TVAK Order type
TVSB Shipping condition
TVAGT Rejected reason for order line
Other tables
Name Description Uses
STXH Text header
STXL Text detail
Reward points if useful.
Thnakyou,
Regards. -
How to approach this requirement
Business overview:
For every organisation account management will be the core functionality. The account management should include the foll:
customer - company - vendor.
1. customer info
2. vendor info
3.organisation info
4.material info
5.purchase order info
6.sales order info
7.subsequent documents such as delivery doc,invoice doc n accounting doc info.
Reports:
1.purchase order line item wise report.
2.open purchase order.
3.sales order line item wise report.
4.open sales order report.
5.open invoice item wise.
Im new to ABAP, Please someone guide me how to approach this requirement. Which are the tables and fields i need to work with?
Thank You.
AshwiniHi:
Refer to SAP Tables in this documentation.
http://www.erpgenie.com/abap/tables.htm
You will find the realted fields in the weblink.If you are not unable to find the field and table, go to functional consultant and ask him about the filed.
he will show you and click on F1.you can see the techncail information.Click on this and you will see table name and field name.
Please let me know if you need more information.
Assign points if useful.
Regards
Sridhar M -
I forgot my security question and my rescue email are the same as Apple ID so cannot reset my security question. Any advice on how to reset m security or add a rescue email ? Thanks
If you don't have a rescue email address then you will need to contact iTunes Support / Apple to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset you can use the steps half-way down the HT5312 page that you posted from to add a rescue email address for potential future use -
I am after some advice on how to access photos on an iPad that were synced from a now failed laptop? The question stems from a need to return my current iPad having just taken delivery of a new unit. Thanks
If you have a dropbox account, there's a free app (probably more) that syncs photos to your dropbox account - picbox.
There's also PhotoSync that syncs photos to/from a number of different services and devices. -
i forgot my passcode for the ipad and i can't connect to iTunes because it keeps giving me error message that i have to unlcok the ipad first... any advice on how to restore the ipad or unlock it?
You have to restore the device within iTunes. You want to use the same computer that you always sync with so that you can restore your app data and settings. You can restore with any other computer, but you will lose everything on the iPad.
This will tell you how to restore
http://support.apple.com/kb/HT1414
You will probably need to use recovery mode
http://support.apple.com/kb/ht4097 -
I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!
Unfortunately, Safari cannot be updated past 5.1.10 on a Mac running v10.6.8.
So, the options are to upgrade to a newer OS X or use Firefox or Chrome.
Be aware, Apple no longer support Snow Leopard v10.6 > www.ibtimes.com/apple-kills-snow-leopard-os-x-106-no-longer-receives-security-u pdates-1558393
See if your Mac can run v10.9 Mavericks > OS X Mavericks: System Requirements
If so, you can download and install Mavericks for free from the App Store.
Read prior to upgrading > Upgrading to 10.7 and above, don't forget Rosetta! | Apple Support Communities -
I am working in Numbers and can't seem to change the generic value assigned to the legend. Any advice on how to select the legend and save new values?
Ntenich,
If your table has a Header and your Legend text is in the header, it will be picked up by the table.
Jerry -
Hello, does anyone have any advice on how to sort photos in an albumn on an Iphone by date of photo? I've ordered them all in my Pictures but then when I sync them across through Itunes, they all end up in a jumble on my phone. Thanks!
When viewing an album on the iPhone you can tap "Photos" at the bottom and that will show all photos by date. Unfortunately though it is all photos, not just the album you are currently viewing.
What I have done is the following. On the computer I have a main folder (e.g. iPhone photos) and then make sub-folders within that. Placing photos that will be synched to the iPhone into various subfolders gives quite a bit of organizational capablility. In iTunes when you select the main folder to sync, the sub-folders will show on the iPhone as separate albums. Beyond that, in one case where I really wanted a specific sort within an album I renamed the photos on the computer (something like A-picxxx, B-picxxx) so they sorted on the computer alphabetically in the order I want on the phone. That sort order was maintained after the sync.
Note that each time you sync using iTunes, the non-Camera Roll pictures on the phone will be set to match the current iTunes settings/photos -- so you can experiment. -
I am trying to connect my Sony DCR-TRV350 to iMovie so that I can make DVD's from family videos. I am having problems getting the video camera connected. Any advice on how to do this?
What happens when, after you connect your cam, you go to File > Import Media?
But before that, does your cam require you to export your video files upon USB connection? I have a JVC Everio HD and I have to "Export to Library" from the cam's menu first-thing. This was true even in prior iMovie versions.
Maybe you are looking for
-
DOES ANYONE KNOW IF THIS CAMERA IS A GOOD CHOICE ? (Panasonic AG-HSC1U) CAN I JUST DRAG THE H.264 OR MPEG 4 FILES OFF THE CAMERA FROM IT'S USB LINK TO THE INTERNAL HD ON MY G5 OR MACPRO? DO I HAVE TO DO LOG AND CAPTURE? ANY EXTRA CARDS OR SOFTWARE I
-
ME5J: Scope Of List.
Hi all. I have one requirement for that i have copied program of tr ME5J i.e. RM06BKPS as ZRM06BKPS. but when i execute this program in ALV format i get error that <b>Scope of list ALV not defined (please correct)</b>, so how can i run this program.
-
I have some photos I want to edit - sequence, reject, sort etc - but not develop. The full catalog is on my desktop at the studio. I'm travelling right now with my laptop and have exported a catalog with those images to work on. Of course, when I ope
-
When iam working with DefaultFrameWork page,i automatically made Desktop inner page as invisible.so that iam unable to see the Desktop inner page in Portal Desktop but i can see Masthread,Tool Area,Detailed navigation. Pls help me in solving this pb
-
Activate Version Management in Purchase Order
Dear All Expert, Current Condition, Version Management will be activated once the PO has been full released (using t-code ME29N) and then printed (using t-code ME9F). Problem: Condition in our client that they only need particular document that will