Need Advice on improving script processing and ensuring completion

Hi,
I have a program in which I am running a number of for loops which are doing a number of different things.  I pull in data from an xml file and then step through that data to dynamically create arrays, populate the arrays, and create and modify movie clips.
The program I'm building is similar in scope to one I developed in Director many years ago, and in that environment we had to actually put breaks in using timers to ensure that the data would be processed and that the system wouldn't choke.
What I'm seeing with this flash version of the application is similar and I suspect the same.  Basically, when navigating from the frame where the scripts are processed to the frame where the movie clips are displayed, there are times when it works perfectly and times when things are out of whack.  I put in a 5 second delay (arbitrarily) to see if this would resolve the issue and on my system at least it does.  But I need some advice on coming up with a real solution.
Any inofrmation you can give me about processing particularly as it relates to for loops and dynamic creation of elements (whether arrays or MCs) as well as making sure that everything is done woudl be greatly appreciated.
Best regards,
Chris McLaughlin

Hi Andrei,
First . . . thank you so much for your message.
I'm sure that there is something in the code architecture that's amiss.  If you'd be kind enough to take a look and see if anything blatant jumps out at you I would be very grateful.  I'm just not seeing it.
Here it is:
stop();
import flash.utils.*;
import flash.events.MouseEvent;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import fl.transitions.*;
import fl.transitions.easing.*;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
pageBlock_mc.mandatoryWarning_mc.visible = false;
sp1Mask_mc.height = 10;
scrollPane1_mc.mask = sp1Mask_mc;
//************************************************VARIABLES****************************************************
var tl:MovieClip = this;
var prd:int;
var seg:int;
var sld:int;
var ICPcontent:XML;
var productCount:Number;
var productName:String;
var segmentTitle:String;
var slideURL:String;
var productsArray:Array;
var AssuritySegmentsArray:Array;
var ComfortisSegmentsArray:Array;
var ComfortisMandatoryArray:Array;
var SWFsArray:Array;
var videosArray:Array;
var ReconcileSegmentsArray:Array;
var TrifexisSegmentsArray:Array;
var showArray:Array = new Array;
var tempArray:Array;
var subNum:Number = 1;
var textHeight:Number;
var xmlLoader:URLLoader = new URLLoader();
var whichMajorBucket:String;
var whichDeck:String;
var fct:String;
var segSlide:String
var breakTimer:Timer;
breakTimer = new Timer(500, 1);
breakTimer.addEventListener("timer", doNext);
function doNext(event:TimerEvent):void {
     trace("DO NEXT TRIGGERED and fct = " + fct);
     switch(fct) {
          case "assurity":
          trace("buildAssuritySlides()");
          buildAssuritySlides();
          break;
          case "comfortis":
          buildComfortisSlides();
          break;
          case "reconcile":
          buildReconcileSlides();
          break;
          case "addListeners":
          Object(this).startAssurity_btn.addEventListener(MouseEvent.MOUSE_DOWN, goToBuild);
          Object(this).startComfortis_btn.addEventListener(MouseEvent.MOUSE_DOWN, goToBuild);
          Object(this).startReconcile_btn.addEventListener(MouseEvent.MOUSE_DOWN, goToBuild);
          Object(this).pickAssurityDeck_mc.core_btn.addEventListener(MouseEvent.MOUSE_DOWN , goToBuild)
          Object(this).pickAssurityDeck_mc.quickStart_btn.addEventListener(MouseEvent.MOUS E_DOWN, goToBuild)
          trace("last timer triggered");
          fct = "ready?";
          breakTimer = new Timer(5000, 1);
          breakTimer.addEventListener("timer", doNext);
          breakTimer.start();
          break;
          case "ready?":
          Object(this).pageBlock_mc.visible = false;
          break;
xmlLoader.addEventListener(Event.COMPLETE, loadContent);
xmlLoader.load(new URLRequest("data/elancoICP.xml")); // + "?" + Math.random())
//xmlLoader.load(new URLRequest("data/elancoICP.xml" + "?" + Math.random()));
function loadContent(e:Event):void {
XML.ignoreWhitespace = true;
ICPcontent = new XML(e.target.data);
productCount = ICPcontent.product.length()
trace("the product count = " + productCount);
productsArray = new Array;
for (var i:int = 0; i<productCount; i++){
     productName = ICPcontent.product[i].productName.text();
     productsArray.push(productName);
     trace("productsArray = " + productsArray);
     buildAssurity();
function buildAssurity(): void {
     tempArray = new Array();
     AssuritySegmentsArray = new Array();
     for( var a:int = 0; a < ICPcontent.product[0].segmentName.length(); a++) {
               segmentTitle = ICPcontent.product[0].segmentName[a].text();
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.text = segmentTitle;
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.autoSize = TextFieldAutoSize.CENTER
               textHeight = scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.height
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.selectable = false;
                    if(textHeight < 35) {
                         scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 26;
                    } else {
                         if((textHeight > 22) && (textHeight < 50)) {
                              scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 17;
                              } else {
                                   if(textHeight > 50){
                                        scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 10;
               subNum++;
               AssuritySegmentsArray.push(segmentTitle);
               tl["Assurity_" + segmentTitle + "_Array"] = new Array();
               tl["Assurity_" + segmentTitle + "_Array"].name = "Assurity_" + segmentTitle + "_Array"
          if(a == ICPcontent.product[0].segmentName.length()) {
               buildComfortis();
function buildComfortis(): void {
     ComfortisSegmentsArray = new Array();
     for( var c:int = 0; c < ICPcontent.product[1].segmentName.length(); c++) {
               segmentTitle = ICPcontent.product[1].segmentName[c].text();
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.text = segmentTitle;
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.autoSize = TextFieldAutoSize.CENTER
               textHeight = scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.height
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.selectable = false;
                    if(textHeight < 35) {
                         scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 26;
                    } else {
                         if((textHeight > 22) && (textHeight < 50)) {
                              scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 17;
                              } else {
                                   if(textHeight > 50){
                                        scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 10;
                               subNum++;
               ComfortisSegmentsArray.push(segmentTitle);
               tl["Comfortis_" + segmentTitle + "_Array"] = new Array();
               tl["Comfortis_" + segmentTitle + "_Array"].name = "Comfortis_" + segmentTitle + "_Array"
     ComfortisMandatoryArray = new Array();
     var mandatory:String;
     for(var cm:int = 0; cm < ICPcontent.product[1].mandatorySlides.slide.length(); cm++) {
          mandatory = ICPcontent.product[1].mandatorySlides.slide[cm].text();
          ComfortisMandatoryArray.push(mandatory);          
     SWFsArray = new Array();
     var SWF:String;
     for(var s:int = 0; s < ICPcontent.product[1].SWFs.slide.length(); s++) {
          SWF = ICPcontent.product[1].SWFs.slide[s].text();
          SWFsArray.push(SWF);          
     videosArray = new Array();
     var video:String;
     for(var v:int = 0; v < ICPcontent.product[1].Videos.slide.length(); v++) {
          video = ICPcontent.product[1].Videos.slide[v].text();
          videosArray.push(video);          
     if(c == ICPcontent.product[1].segmentName.length()) {
          buildReconcile();
function buildReconcile():void {
     ReconcileSegmentsArray = new Array();
     for( var r:int = 0; r < ICPcontent.product[2].segmentName.length(); r++) {
               segmentTitle = ICPcontent.product[2].segmentName[r].text();
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.text = segmentTitle;
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.autoSize = TextFieldAutoSize.CENTER
               textHeight = scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.height
               scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.selectable = false;
                    if(textHeight < 35) {
                         scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 26;
                    } else {
                         if((textHeight > 22) && (textHeight < 50)) {
                              scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 17;
                              } else {
                                   if(textHeight > 50){
                                        scrollPane1_mc["sub" + subNum + "_mc"].sbText_tf.y = 10;
                               subNum++;
               ReconcileSegmentsArray.push(segmentTitle);
               tl["Reconcile_" + segmentTitle + "_Array"] = new Array();
               tl["Reconcile_" + segmentTitle + "_Array"].name = "Reconcile_" + segmentTitle + "_Array"
     trace("assurity segments = " + AssuritySegmentsArray);
     trace("comfortis segments = " + ComfortisSegmentsArray);
     trace("reconcile segments = " + ReconcileSegmentsArray);
     var sp1level:Number = scrollPane1_mc.numChildren - 1;
     trace("sp1level = " + sp1level);
          if(r == ICPcontent.product[2].segmentName.length()) {
               fct = "assurity"
               breakTimer.start();
function buildAssuritySlides(): void {
     trace("buildAssuritySlides() triggered");
     var aSegLength:Number = AssuritySegmentsArray.length-1;
     var aSldLength:Number = ICPcontent.product[0].segmentSlides[aSegLength].slide.length()-1
     trace("aSegLength = " + aSegLength + " & aSldLength = " + aSldLength);
     for (seg = 0; seg < AssuritySegmentsArray.length; seg++) {
          for (sld = 0; sld < ICPcontent.product[0].segmentSlides[seg].slide.length(); sld++) {
               segSlide = String(ICPcontent.product[0].segmentSlides[seg].slide[sld].text());
               tl["Assurity_" + String(AssuritySegmentsArray[seg]) + "_Array"].push(segSlide)
               if(seg == aSegLength) {
                    trace("sld = " + String(sld))
                    if(sld == aSldLength) {
                         trace("IT DOES sld = 8");
                         fct = "comfortis";
                         breakTimer = new Timer(500, 1);
                         breakTimer.addEventListener("timer", doNext);
                         breakTimer.start();
function buildComfortisSlides(): void {
     var cSegLength:Number = ComfortisSegmentsArray.length-1;
     var cSldLength:Number = ICPcontent.product[1].segmentSlides[cSegLength].slide.length()-1
     for (seg = 0; seg < ComfortisSegmentsArray.length; seg++) {
          for (sld = 0; sld < ICPcontent.product[1].segmentSlides[seg].slide.length(); sld++) {
               segSlide = String(ICPcontent.product[1].segmentSlides[seg].slide[sld].text());
               tl["Comfortis_" + String(ComfortisSegmentsArray[seg]) + "_Array"].push(segSlide)
               if(seg == cSegLength) {
                    if(sld == cSldLength) {
                         trace("IT DOES");
                         fct = "reconcile";
                         breakTimer = new Timer(500, 1);
                         breakTimer.addEventListener("timer", doNext);
                         breakTimer.start();
function buildReconcileSlides(): void {
     var rSegLength:Number = ReconcileSegmentsArray.length-1;
     var rSldLength:Number = ICPcontent.product[2].segmentSlides[rSegLength].slide.length()-1
     for (seg = 0; seg < ReconcileSegmentsArray.length; seg++) {
          for (sld = 0; sld < ICPcontent.product[2].segmentSlides[seg].slide.length(); sld++) {
               segSlide = String(ICPcontent.product[2].segmentSlides[seg].slide[sld].text());
               tl["Reconcile_" + String(ReconcileSegmentsArray[seg]) + "_Array"].push(segSlide)
               if(seg == rSegLength) {
                    if(sld == rSldLength) {
                         trace("IT DOES");
                         fct = "addListeners";
                         breakTimer = new Timer(500, 1);
                         breakTimer.addEventListener("timer", doNext);
                         breakTimer.start();
function checkAslide(): void {
     trace("checking the Comfortis Mode of Action slides")
     trace ("array = " + tl["Comfortis_" + String(ComfortisSegmentsArray[0]) + "_Array"][0]);
function goToBuild(event:MouseEvent):void {
     switch(event.target.name) {
          case "startAssurity_btn":
//          whichMajorBucket = "Assurity";
//          if(pickAssurityDeck_mc.y == 275) {
//               trace("it's hidden");
//               var showTween:Tween = new Tween(pickAssurityDeck_mc, "y", Strong.easeOut, 275, 392, 1, true);
//          } else {
//               var hideTween:Tween = new Tween(pickAssurityDeck_mc, "y", Strong.easeOut, 392, 275, 1, true);
          break;
          case "quickStart_btn":
          //whichMajorBucket = "Assurity";
//          whichDeck = String(AssuritySegmentsArray[0])
//          gotoAndPlay("builder");
          break;
          case "core_btn":
          //whichMajorBucket = "Assurity";
//          whichDeck = String(AssuritySegmentsArray[1])
//          gotoAndPlay("builder");
          break;
          case "startComfortis_btn":
          whichMajorBucket = "Comfortis";
          whichDeck = "Core";
          gotoAndPlay("builder");
          break;
          case "startReconcile_btn":
          //whichMajorBucket = "Reconcile";
//          whichDeck = "Core";
//          gotoAndPlay("builder");
          break;

Similar Messages

  • In downloading a TV show from iTunes to my PC the file is stuck in processing and never completes the download

    When downloading a purchased TV show from the Itunes store to my PC (Windows 7) the file is stuck in processing and never completes the download.

    The EXACT same thing happened to me last night!  Rented a movie; it had barely started and then froze.  When I touch the video app icon, all I get is a blank, dimly lit screen.  None of the other videos I own will display either.  Was your problem ever resolved?

  • Need advice for setup of AD and file server for small business with 2 locations

    Hi,Let me begin by saying I'm not sure if this was right place to post this. I could have just as easily posted this in 4 other categories but I think we need virtualization to get the DR and HA that I'm looking for. Allow me to provide some background... Our company has two locations. For simplicity sake I'll refer to them as our Main site and Branch site.Main Site Facts:Considered corporate HQ.Has primary and secondary AD controller (two physical servers - Server 2003), as well as our ERP system (green screen), which is on a separate host. Primary AD server is also our network file server.Backups are written to tape and taken off-site. (I'd love to ditch tape if possible.)Has 22 PC's (includes 5 laptops) and about 7 networked printers.Has a 3 Mb T1 and a 50 Mb cable connection.Branch Site Facts:Has 6 PC's (includes 1 laptop) and 2...
    This topic first appeared in the Spiceworks Community

    Hi,Let me begin by saying I'm not sure if this was right place to post this. I could have just as easily posted this in 4 other categories but I think we need virtualization to get the DR and HA that I'm looking for. Allow me to provide some background... Our company has two locations. For simplicity sake I'll refer to them as our Main site and Branch site.Main Site Facts:Considered corporate HQ.Has primary and secondary AD controller (two physical servers - Server 2003), as well as our ERP system (green screen), which is on a separate host. Primary AD server is also our network file server.Backups are written to tape and taken off-site. (I'd love to ditch tape if possible.)Has 22 PC's (includes 5 laptops) and about 7 networked printers.Has a 3 Mb T1 and a 50 Mb cable connection.Branch Site Facts:Has 6 PC's (includes 1 laptop) and 2...
    This topic first appeared in the Spiceworks Community

  • URGENT- Need advice on executing scripts from Forms 6i

    Hi all,
    Quick background info:
    I'm working on a conversion project from Forms 4.5 client/server applications to a three tier, web based Forms 6i environment.
    We're running Oracle 8i DB on HP-UX machines, Oracle 9ias on HP-UX machines, and users access forms through Netscape
    on Win2000 platform.
    The problem:
    I have a SQL execution interface form from which users have been able to run dynamic SQL scripts w/o having direct access to
    a SQL Plus prompt (uses the 'HOST' command in 4.5). How can this functionality be implemented in the three tier environment?
    Unless other options are available, my plan is to use a Java servlet to access the 8i database on the UNIX box and display
    output on an html page. Is there a better/easier way?!
    Any advice is appreciated...
    FLM
    Paychex, Inc.

    Thanks for the response,
    I may be able to invoke the script from Forms using the HOST command, but how is the script output
    displayed back to the browser?
    FLM
    [email protected]
    You can probably still use the host to sqlplus, but this time it will run on the Forms Server.
    You just need to make sure that the dynamic SQL files are uniquly identified for each customer.

  • Need Advice: Managing dev/prod servers and workflow.

    Hello, thanks for your help.
    I am currently running coldfusion dev server on my local machine, I use dreamweaver cs3 for coding/ftp, and have a shared hosting account with crystaltech.  I want to create a local test environment that runs on my coldfusion test server, nd be able to push those files to a live web address preferably with a dev.sitename.com extension. 
    In dreamweaver I have a site called "sitename1".  I have created a "testing server" with the local root of \coldfusion9\wwwroot\sitename1, my "Local Info" root folder is off my C:\\websites\sitename1\, and my remote folder is the \test\ folder off my TLD.. so www.sitename1.com\test\. 
    I can't seem to keep the files from the local testing server and my local info straight.  When I'm working in the local testing server and open a file I get "would you like to overwrite your local version of this file?"..  Also not all the files in the local testing environment we in the local info folder.
    What's the best way to work in a dev environment where you have a testing server, local files and a shared host?  How do I set up dreamweaver for best workflow and file management?
    Thanks for your help.
    Steve

    stephenvincent wrote:
    Hello, thanks for your help.
    I am currently running coldfusion dev server on my local machine, I use dreamweaver cs3 for coding/ftp, and have a shared hosting account with crystaltech.  I want to create a local test environment that runs on my coldfusion test server, nd be able to push those files to a live web address preferably with a dev.sitename.com extension. 
    In dreamweaver I have a site called "sitename1".  I have created a "testing server" with the local root of \coldfusion9\wwwroot\sitename1, my "Local Info" root folder is off my C:\\websites\sitename1\, and my remote folder is the \test\ folder off my TLD.. so www.sitename1.com\test\. 
    I can't seem to keep the files from the local testing server and my local info straight.  When I'm working in the local testing server and open a file I get "would you like to overwrite your local version of this file?"..  Also not all the files in the local testing environment we in the local info folder.
    What's the best way to work in a dev environment where you have a testing server, local files and a shared host?  How do I set up dreamweaver for best workflow and file management?
    I have no longer used Dreamweaver for some years now. I prefer Eclipse and ColdFusion Builder. However, some of the issues you mention are of a general nature, and apply to every developer, irrespective of the tool he uses.
    It is vital to keep the files of your site and test site separate. In fact, I expected you to have partitioned the directories like this:
    sitename1: c:\coldfusion9\wwwroot\sitename1\
    Domain: www.sitename1.com
    test_site: c:\coldfusion9\wwwroot\sitename1\test\
    Domain: www.sitename1.com/test
    Perhaps the most important aspect of separating the 2 sites is to give each its own Application.cfc file. The application  file for the site will be in the directory c:\coldfusion9\wwwroot\sitename1\ and will contain the code this.name="sitename1"; to name the application. The application  file for the test site will be in the directory c:\coldfusion9\wwwroot\sitename1\test and will contain the code this.name="test";.
    You should not aim to synchronize the files of your site with those of your test site. Such synchronization will defeat the purpose of testing. You test because there are faults. If there is  an open door between the test environment and your site, uncorrected faults will soon find their way to the site.
    I don't see any need for a "Local Info" site. The usual practice is to create a third environment, Acceptance, between Test and Site. Your workflow then proceeds as follows.
    Test => Acceptance => Site (production)
    In the Acceptance site, the aim is to mimic production before you actually go into production. You equip the tested code with application, configuration and other settings that mimic the production environment, and you test some more.
    Document the main issues that arise at every stage of the process. Software is complex human work. It usually happens that you have to reverse what you've done. That's where documentation is vital. When everything is to your satisfaction, move the files from Acceptance to the site.

  • Need advice on comments in iPhoto and sending photos to other people

    Two related questions.
    1) I'm on a study abroad and I want to send photos home to my family. My parents use computers and my grandparents don't, so I want to email photos to my parents so that they can print them and show them to my grandparents. I want to include captions with these photos. iPhoto has a description box for each photo, so that seems like a natural place to type captions. But then, I can't figure out how to email the photos with the descriptions, or how to print them with the descriptions. Preferably I'd like to send an entire album as an iPhoto backup or something like that and then my parents could open it in iPhoto and print the photos on photo paper with captions underneath them. This seems like a fairly obvious feature for a program like iPhoto so I'm feeling stupid that I can't figure it out.
    2) I also want to post photos online to send to people. I've been using Kodak albums but they don't let you post photos at high resolution or full screen. They also don't do video. Any advice for other sites that are better? I really am only interested in free sites, unless the fee for a pay site is very very low. Bonus points if you know how to use iPhoto comments on kodak or other galleries so I don't have to type them twice.
    Edit: I do have the ophoto program which makes uploading to kodak easier, but I haven't been able to get it to browse my iphoto library directly, I have to export the files to finder first and get them from there. So I can't tell if it would use the comments if it worked properly.
    Thanks!
    Message was edited by: Terabithia

    Terabithia:
    When you select the photos to email and click on the eMall button at the bottom you'll get a window which the option to include the Titles and/or Comments. The resulting email will have the title and/or comment below each photo as seen in this screenshot . If the recipient does not have a Mac they may not get the picture above the title and comment as we see in the email that we compose but they can match the title (which is the file name unless changed) to the file name and get the comments pertinent to that photo.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Need Advice! MySQL Field Type and data display

    DW8/PHP/MySQL
    This is a two part question.
    First off I am builing a database (mySQL) driven review site
    with PHP. I am working on creating my database, however I would
    like some input/advice from others. Below are some example fields
    that will be in my database. Can anyone give me advice on what
    field type I should use on each
    Name
    Address_1
    Address_2
    City
    State
    Zip
    Phone
    Web_Address
    Email_Address
    Date_Reviewed
    Review_Description
    Username
    Password
    My second question.
    I made a simular test site using Dreamweaver and got it to
    work ok. However the formating on my description did not look
    correct. On my input page I used a large multi-line form box. When
    I hit enter to divide the paragraphs it looked fine in the iput
    box, but once the same data was pulled from the database the
    paragraphs where all ran together in one large text block. What do
    I need to do to keep my input formating?
    Thanks in advance for any help
    Charles

    newhorizonhosting.com wrote:
    > Can anyone dive me advice on what
    > field type I should use on each/
    >
    The following ones should all be VARCHAR. Set the length of
    each one so
    that it easily accommodates the longest likely entry.
    Name
    Address 1
    Address 2
    City
    State
    Zip
    Phone
    Web Address
    Email Address
    Date Reviewed - DATE
    Review/Description - TEXT
    Username - VARCHAR
    Password - VARCHAR (length needs to be 40 if you encrypt)
    > once the same data was pulled from the database the
    paragraphs where
    > all ran together in one large text block. What do I need
    to do to keep my input
    > formating?
    When displaying the text, pass the variable that contains it
    to nl2br().
    echo nl2br($row_recordsetName['myParagraphs']);
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Need advice on computer for photo and video editing

    I do mostly routine stuff on my home computer (word processing, e-mails, internet, etc), except for photo and video editing (hobby, not professional)
    I'm upgrading my 4 year old set up, as it has 2 GB ram, dual core vs quad core, 256mb video card, etc, etc.  Better to buy a new rig than upgrade several different components.
    Costco has a pretty nice set up in the store (HPE 257 c-b), but for an extra $200, I can order online and get the HPE 170t, which is essentially the same except for 2 upgrades:
    -Radeon HD 5770 video card vs Radeon HD 5570
    -Two 1 TB 7200 hard drives vs one 1 TB 7200 hard drive
    My question is this.....is it worth the extra $200 to get the better graphics card and the dual hard drive set up?  Will it really make that much of a difference in the performance?  I'm thinking it will, especially the ability to set up the 2nd hard drive as my scratch disk.
    For what it's worth, both systems have the i7 860, 8 GB ram, and Windows Home Premium 64 bit.
    Thanks.

    In very general terms, the requirements for Video will exceed those for Photoshop (PS). If you are looking at PrPro CS5, then the video card WILL make a difference, and PS CS5 now takes advantage of the video card, than before.
    For PS, the minimum HDD setup would be a 2x system with physical (not partitions) HDD's. Video has more requirements in this area, and I would say that a 3x setup is the minimum. Do read Harm's linked article, as it is the best that I have ever run across.
    For the PS setup, just locate the Scratch Disks for PS on your extra HDD's, the ones with your Project and PrPro Scratch Disks.
    Enjoy the new computer, and welcome to the forum,
    Hunt

  • Need advice on school laptop CPU and RAM

    Hello,
    I've just started a Multimedia and Design education, where I will be working with Adobe cc - mostly Photoshop, Illustrator and inDesign. I'm looking for a portable laptop to use while in school, and I have found one with a good IPS display and SSD.
    My question is, if I should I go with an dual core i5-4210M (2,6Ghz) or a quad core i7-4712MQ (2,3GHz)? - and If I should go for 8GB of RAM or 16GB?
    I have googled for hours now and people seem to have very different opinions on what these programs need in order to run good. I realize that more is better, but I want to know if it's necessary.
    At home I have a stationary PC with a 4790K, 16GB RAM, GTX 980, SSD +HHD which I will be using for all my work when at home. So the laptop I'm looking to buy is "just" my placeholder while in school - Not 8 hours a day as a job, but as a learning tool that will be sufficient and get the job done when I'm not at home.
    I'm really hoping some of you could shed some light on what I should be going for here.
    Thanks.

    At the very least 16 GB of RAM. 
    And plenty of HD or SSD available space to accommodate both the Photoshop scratch file and the swap files of your OS.
    The rule of thumb I follow to figure out scratch space says to figure on 50 to 100 times the size of your largest file ever multiplied by the number of files you have open.  I have seen the scratch file exceed 800 GB once, an admittedly rare occurrence, but it often exceeds 200 GB when stitching large panoramas and the like.
    As an example—and stressing that I'm aware that others have even more scratch space than I do—I keep two dedicated, physically separate hard drives as my primary and secondary Photoshop scratch disks and a lot of GB free on my boot drive for the OS.  I also have 16 GB of RAM installed.
    Additionally, if you only have a single HD, i.e. your boot drive, you'd need it to be large enough to accommodate both the swap files of the OS as well as Photoshop's scratch.

  • NEED ADVICES FOR RME HDSPe AIO and (other audio devices)

    Hi all! i was wondering if someone have some experience with RME HDSPe AIO card..
    I'm thinking about buying one but is the latency for software monitoring (in logic pro) is good ?
    any issues on OS X 10.6.5?
    Here's my situation..at the moment i'm using the motu 896 hd , everyone knows that this unit is a kick *** for low latency but for converters it is what you get for the money.
    I have 2 good pre amps , the Millennia stt-1 and the Amek channel in a box and most of the time I only need 2 channels for live recording.So i'm looking for an interface ,or an audio card ,that will give me good convertion with ultra low latency, i mean like the motu , no problem at 32 buffers when recording my guitar straight to logic with some plugins on a strip.
    I figured out some alternatives:
    -Metric Halo ULN-2:
    a bit expensive, with some good pre amps (that i don't need), and it's a firewire interface so what about latency on this unit? and are the converters really worth the extra 1000$ that i will have to spend compare to the RME AIO?
    Apogee Duet:
    at the moment , i have this unit at work (really cool sound) but i will bring it home to do more test, but still for latency , motu 896 hd is better...what about the converters of the Duet compare to the RME AIO ?
    Apogee Ensemble:
    I forgot the whole idea of getting one since I read in this forum that the latency was painfull..i was really disapointed cause it will have work perfectly with my euphonix mc control..
    And I know that it would have been a waste of inserts, in my situation...but still i would have paid for it .
    RME BABYFACE:
    too recent to have a clue if it worth the $ but it seems like a good unit.(and compare to the Duet?)
    So the things that are important to me is the latency and great converters..I don't mind if I have to spend extra money and having inserts that i'm only using when i record bands (which is not my primal goal)
    At the moment my phocus is on having 2 inserts top quality converters with a good clock, 2 outputs for my monitor and headphone.
    I would really like to know what you're all thinking and specially if someone had experience with the RME HDSe AIO!
    thanks ! Pascal

    Hi all! i was wondering if someone have some experience with RME HDSPe AIO card..
    I'm thinking about buying one but is the latency for software monitoring (in logic pro) is good ?
    any issues on OS X 10.6.5?
    Here's my situation..at the moment i'm using the motu 896 hd , everyone knows that this unit is a kick *** for low latency but for converters it is what you get for the money.
    I have 2 good pre amps , the Millennia stt-1 and the Amek channel in a box and most of the time I only need 2 channels for live recording.So i'm looking for an interface ,or an audio card ,that will give me good convertion with ultra low latency, i mean like the motu , no problem at 32 buffers when recording my guitar straight to logic with some plugins on a strip.
    I figured out some alternatives:
    -Metric Halo ULN-2:
    a bit expensive, with some good pre amps (that i don't need), and it's a firewire interface so what about latency on this unit? and are the converters really worth the extra 1000$ that i will have to spend compare to the RME AIO?
    Apogee Duet:
    at the moment , i have this unit at work (really cool sound) but i will bring it home to do more test, but still for latency , motu 896 hd is better...what about the converters of the Duet compare to the RME AIO ?
    Apogee Ensemble:
    I forgot the whole idea of getting one since I read in this forum that the latency was painfull..i was really disapointed cause it will have work perfectly with my euphonix mc control..
    And I know that it would have been a waste of inserts, in my situation...but still i would have paid for it .
    RME BABYFACE:
    too recent to have a clue if it worth the $ but it seems like a good unit.(and compare to the Duet?)
    So the things that are important to me is the latency and great converters..I don't mind if I have to spend extra money and having inserts that i'm only using when i record bands (which is not my primal goal)
    At the moment my phocus is on having 2 inserts top quality converters with a good clock, 2 outputs for my monitor and headphone.
    I would really like to know what you're all thinking and specially if someone had experience with the RME HDSe AIO!
    thanks ! Pascal

  • Explain plan : need advice in improving performance

    Hi,
    DB : 10.2.0.4
    platform: Solaris
    SGA: 8 G
    one of my query is taking too much time, explain plan gives below output.
    kindly advise what i can do to improve the performance
    PLAN_TABLE_OUTPUT
    Plan hash value: 430877948
    | Id  | Operation                    | Name                          | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |                               |  8143 | 1081K| 31130   (1)| 00:06:14 |
    |*  1 | FILTER | |       |       |            |          |
    |*  2 | TABLE ACCESS BY INDEX ROWID| ID_TICKET_DETAILS             |  8143 | 1081K|   494   (0)| 00:00:06 |
    |*  3 | INDEX SKIP SCAN           | TKT_IDX_21                    |     1 | |   493   (0)| 00:00:06 |
    |*  4 | TABLE ACCESS BY INDEX ROWID| ID_DELIVERY_DEBIT_SLIP_DETAIL |     1 | 34 |     3   (0)| 00:00:01 |
    |   5 | NESTED LOOPS              |                               |     2 | 124 |     7   (0)| 00:00:01 |
    |*  6 | TABLE ACCESS FULL        | ID_DELIVERY_DEBIT_SLIP_HEADER | 32243 | 881K|     2   (0)| 00:00:01 |
    |*  7 | INDEX RANGE SCAN         | DSD_DELIVERY_DEBIT_UKEY       |     1 | |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter( NOT EXISTS (SELECT /*+ */ 0 FROM "ID_DELIVERY_DEBIT_SLIP_HEADER"
    "ID_DELIVERY_DEBIT_SLIP_HEADER","ID_DELIVERY_DEBIT_SLIP_DETAIL" "ID_DELIVERY_DEBIT_SLIP_DETAIL" WHERE
    "DSH_DOCUMENT_NUMBER"="DSD_DOCUMENT_NUMBER" AND "DSH_DOCUMENT_TYPE"="DSD_DOCUMENT_TYPE" AND
    "DSH_COMPANY"="DSD_COMPANY" AND "DSD_TICKET_NUMBER" IS NOT NULL AND
    LNNVL(:B1||:B2<>"DSD_AIRLINE"||"DSD_TICKET_NUMBER") AND "DSH_DELIVERY_DEBIT"='DEBIT'))
       2 - filter((:1 IS NULL OR "TICKET_AIRLINE"=:2) AND "TICKET_REFERENCE_2" IS NULL AND
    "TICKET_RECEIPT_NUMBER" IS NULL AND "TICKET_CARD_RECEIPT_NUMBER" IS NULL AND
    "TICKET_SYSTEM_DOC_NUMBER" IS NULL)
       3 - access("TICKET_REFERENCE_1" IS NULL)
           filter("TICKET_REFERENCE_1" IS NULL AND TO_NUMBER("TICKET_COMPANY")=1)
       4 - filter("DSD_TICKET_NUMBER" IS NOT NULL AND LNNVL(:B1||:B2<>"DSD_AIRLINE"||"DSD_TICKET_NUMBER"))
       6 - filter("DSH_DELIVERY_DEBIT"='DEBIT')
       7 - access("DSH_COMPANY"="DSD_COMPANY" AND "DSH_DOCUMENT_TYPE"="DSD_DOCUMENT_TYPE" AND
    "DSH_DOCUMENT_NUMBER"="DSD_DOCUMENT_NUMBER")
    Note
       - SQL profile "SYS_SQLPROF_014f902e2ea4c002" used for this statement

    some comments:
    it would be more simple to read the plan with indentatitions: you could use a fixed-width font
    it's hard to tell much about the plan without seeing the corresponding query (though in this case the predicate section gives some information on the query - especially step 1)
    the plan shows the use of a sql profile: so the CBO uses additional statistics to generate the plan
    in step 3 there is an index skip scan: that's only a good idea if there are few distinct values for the leading column of the index and the selectivity of "TICKET_REFERENCE_1" IS NULL is good
    in step 6 there is a Full Table Scan for the driving table of a nested loops join: the cost value for the scan is very small and so is the cost for the complete NL join - and that could be misleading
    I would use the gather_plan_statistics hint to get a plan with rowsource statistics to check if the cardinalities the CBO works with are correct. If they are not you could try to disable the profile (or create a new profile; of course after checking who created the profile and for what reasons). With an accurate sql profile the CBO should have enough information to create an accurate plan in most cases.
    Regards
    Martin

  • Need advice about Macbook internal HD and Logic Pro

    Hi!
    If I use an external Firewire HD for my projects. The Audiofiles gets saved ( recorded ) in the "audio" folder inside the projects folder on the external HD.
    Does it have ANY impact on my macbooks ( logic pro's ) performance that the internal HD of the macbook is only a 5400 RPM HD.
    Ill try to be silly clear here so u'll understand my question right.
    Is the internal Hard disk used in ANY way if the project is on an external HD. Is the internal HD used for playing samples "live" for Ultrabeat, RMX, EXS24 and so on or not or that doesnt matter for performance.
    I need to avoid the intern HD so I am wondering what to do. Should I buy a new 7200 RPM HD even if the projects is situated on external HD.
    To be uberclear: Macbook, black, intel core duo, 2.0 Ghz, 1 GB intern. 100 Gb 5400 RPM internHd. Logic Pro 7.2.3. External FW HD 7200 RPM. Latest Tiger update.
    / Mikke

    yes the internal drive has an impact on performance. this is related to how much RAM you have, but even if you have the max 2GB RAM that you can have in a macbook (or 3GB if they updated it to that like the pros), OSX still uses the system drive for a great deal of swap files. logic does too. it's just the way it all works. back in OS9 days, you may (or may not) remember a thing called virtual memory.. well that hasn't disappeared from OSX as many people think, it's actually built in and always operating under the hood, but it self-manages... there's no need for a user to assign amounts of hard drive for VM, or to assign the memory allocation for applications. OSX does it all by itself, and it does make judicious use of the system drive just to function.
    logic also is part of this equation. depending on how you set it up, if some of your exs library is on the system drive (such as the basic library or garage band sounds), then it's possible that logic will access the sys drive at times if you have exs streaming enabled. also, if your freeze files get created on the sys drive, they'll be read from there too.
    with all that in mind, the other thing is that the 5400rpm is not really that slow. in fact, if it is a drive that uses the new PMR technology (the 5400s in the latest macbook pro do use this, don't know about the standard macbook), then there have been plenty of tests out there that show it's almost as fast as a 7200rpm longitudinal drive, and under some circumstances, faster.
    personally, I ordered a macbook pro with a 7200rpm because I want my system drive to be as zippy as possible for all the fast read/writes that the system does. battery life is not an issue for me as it will always be used in a powered situation. a good review of the 7200rpm drive vs the new PMR 5400s that are the options in the new macbook pros that I read on the net said that the 7200 still does have the slight edge in performance. except, curiously, when the drives are both getting full, at which point they both slow down and the 5400 almost equals the 7200. I wish I could remember the site so I could post the link, it was a laptop review site and they ran their own tests so it wasn't just based on quoted specs.
    anyway for me I'm still going to use an external FW800 for audio and sound library, the internal is just for system. I made the choice to go 7200 for the system performance reasons above, but I really don't think you'll be disappointed with the 5400.

  • Need advice on how to store and retrieve mathematical symbols - Oracle8i

    I am a student developing a web database for a P3 project and am having trouble inserting non-standard text particularly mathematical sybols (intergrals and the like) or Gifs/Jpegs. Could anybody give me some advice on how this should be done? I am using PHP, Oracle8i and Solaris.
    Cheers Pete

    >1. I have all of my RAW files on my Mac's desktop and they are organized at the top level by each of the 2 cameras they were taken with and then the sub folders of each organized chronologically with each subfolder titled by the location or subject of the images matter within each folder.
    >I want to import these into Lightroom 2.3 in a manner which will preserve this taxonomy.
    >I also want to convert these RAW images into DNG files on import. How do I set up LR2 to do this?
    On the Import Photos Screen, pick "Copy photos as Digital Negative(DNG) and add to catalog" from File Handling drop-down at top of screen.
    If your photos are organised as:
    Photos - Camera 1 ...
    - Camera 2 ...
    then Lightroom will reflect that folder view in its Folders panel. Also, when converting to DNG you get to choose destination folder (answers part of your question 2) and multiple organisation choices including "Organize by Original Folder"
    (Take a look at Chapter 4 of the help file for more information: http://help.adobe.com/en_US/Lightroom/2.0/lightroom_2_help.pdf)
    2. I want the Lightoom files and the image files....
    Create your catalog on that drive. Move your images to that drive before importing them, and when converting to DNG on import, choose a folder on that drive as destination on import screen.
    >Is RAID 1 as safe as backing up to 2 different HD's?
    No. RAID 1 is a simple mirror of 1 drive on another; so if you delete a file on drive, it is also deleted from both drives. Likewise, if a file is corrupted on one drive it will also be corrupted on the mirror. RAID 1 is good as a safeguard against single-drive failure; your data will be available from the remaining drive, but it is not a safeguard against user error or file corruption.

  • Need advice on shell scripting

    If my message is better suited for a more specific group, please suggest it.
    I have a job opportunity: managing a lab of mixed Windows and Macintosh desktops. Two job requirements are:
    * Experience administering and deploying server hardware and software
    * Proficiency with scripting languages, e.g. perl, python, shell
    My question: what sort of shell scripting is typical for this sort of work?
    I'll be grateful for any help.
    Cheers,
    noob81

    At the entry level, administering operating systems via scripting involves managing filesystems, applications and users.
    I would suggest to pick a book on "Administration" and on "Scripting" and this should provide an idea on what is being administered and what could be scripted.
    For Windows, look for guides on "command-line administration" and "vbscript/powershell scripting".
    For Mac, the below link should get you started.
    http://images.apple.com/server/macosx/docs/IntroCommand_Line_Adminv10.6.pdf

  • Need advice on improving wireless service in my home

    We have a 3 story house and the router is on the second floor.  There are parts of the first floor that cannot get wireless. The only service on the first floor is a set top box for the TV.
    I figure my options are:
    --Get an additional router for the first floor
    --Move the existing router to the first floor (which would probably cut off service to the thrid floor
    --Replace the existing router with something more powerful that will reach all areas of the house
    What do you recommend?  If #1 or #3, should I go through Verizon, or buy a third party product and install myself?  Will I need other products (splitter, etc) if I install it myself?  
    Jeff

    JJaeger3 wrote:
    We have a 3 story house and the router is on the second floor.  There are parts of the first floor that cannot get wireless. The only service on the first floor is a set top box for the TV.
    I figure my options are:
    --Get an additional router for the first floor
    --Move the existing router to the first floor (which would probably cut off service to the thrid floor
    --Replace the existing router with something more powerful that will reach all areas of the house
    What do you recommend?  If #1 or #3, should I go through Verizon, or buy a third party product and install myself?  Will I need other products (splitter, etc) if I install it myself?  
    Jeff
    You can get a dual band wireless extender and put it on the first floor. https://teleproducts.verizon.com/fios/index.cfm/eh/DisplayDetails It will solve all your issues and it is very easy to install. I have one and it works great.

Maybe you are looking for

  • Issue hr_location_api.create_location : ID logistic organization not valid

    Hello, I'm trying to create some HR location by the appropriate API. Some are already created and used in our configuration. But as for some other, we need to interface them from another system, we have to complete the list with a interface program.

  • Displaying non-English text without ID

    Hi, My situation is as follows: Both R/3 and BW (NW7.0) are unicode. In a report, I need to "drill across" City which comes from customer master. I have thought of using "Navigation Attributes" but my concern is performance. Now, I have created one m

  • PO Approval - Email PO Output Query

    Hi Gurus, I would like to call a custom Report to generate a PDF and would like this PDF to be emailed to the supplier on PO Approval. The default functionality calls the "PO Output for Communication" Java Concurrent Program. I would like to call my

  • Help:after amber update,Camera shut down....

    just after update to amber,my 920's camera never turn on, shut down when i turn it on.......what can i do? before amber it's ok..

  • GOS Menu - Vendor Master Transaction XK02 and XK03

    Could anyone please tell me what is the SAP object to enable the GOS menu 'store business document' for XK02 / XK03. I created a new document type in OAC2 and in OAC3 attached it to LFA1 using TOA01 but the store business document option is stil grey