Some questions to the experts

I have observed some things the reason for which I do not understand:
What is the purpose of function Main () ?
Is it just a wrapper around the initial stuff ?
I assume that global definitions must still precede this.
Adobe's examples (e.g. SnpCreateDialog) use the form
SnpCreateDialog.prototype.run = function() { ...}
rather than simply function SnpCreateDialog () { ...}
What is the rationale behind this?
I have also found a that certain Unicode characters are not allowed in comments of an UTF-8 coded script. In my lengthy script (now > 1000 lines) I needed a regex in the editor to find the culprit: [^\p{L}\p{N}\p{P}\s\$\<\>=+\^]
// goRtfDoc.Close ... // must be postponed to keep the ¶-IDs intact
       This creates the error
Error Message      : Character conversion error
Script, Line#   : H:\Adobe\framemaker.12en\AdobeFrameMaker12\6,  0
     Replacing the symbol ¶ by the word paragraph fixed the error.
    =>  Is there a list of 'unallowed' characters or vice versa a list of allowed characters (also for string constants?).

Thanks Rick for the recommended books.
I have already looked into The Good Parts" by Crockford and decided to first check for the pitfalls (chapter "Bad parts") before I continue with my project.
There are real surpirses, for example the === and !==  (I have used == and !== for equal/not-equal assuming the NOT is a 'prefix').
Well, concerning the Awful parts I can not follow all the recommendations there: e.g. I need global varaibles and ararays. On the other hand, automatic semicolon insertion must really be avoided.
I will check whether my Unicode problem is the result of the 'design for 16 bit' (in which range my character was).
BTW I have not found any reference in the Scripting Guide which coding is allowed for Escripts. A test reveals that ESTK produces UTF-8 files. In the FDK documents there is also no mention of the coding of the source. So it is unclear whether an Escript may be written in a Windows code page (1250, 1251, 1252).
Using JSLint (http://www.jslint.com/) is not that encouraging:
All Escript examples I have (including Yours and Yours and Adobe's) do not observe a main requirement: declare a function before it is used. And unfortunately this requirement can not be switched off, so other errors are only found at the start of a not so buggy script. The ESTK is not a help in finding bad practice constructs - what else is available besided the experise of seasoned scripters like You?
For example, I'm not a fan of writing function ExpandInBook(book) { ... } rather than function ExpandInBook (book) {...}
For clarity / ability to comment I write
function DefineMenus () {
  giLvlTrace += 1; ZTrace ("DefineMenus");
  var sMenuMain   = gasIniTexts[0];
  var sMenuDocu   = gasIniTexts[1];
  var sMenuColl   = gasIniTexts[2];
rather than
function DefineMenus () {
  giLvlTrace += 1;
  ZTrace ("DefineMenus");
  var sMenuMain   = gasIniTexts[0], sMenuDocu   = gasIniTexts[1], sMenuColl   = gasIniTexts[2];
Of course style is often a matter of taste - but I try to keep up with proven practice.

Similar Messages

  • Some questions about the integration between BIEE and EBS

    Hi, dear,
    I'm a new bie of BIEE. In these days, have a look about BIEE architecture and the BIEE components. In the next project, there are some work about BIEE development based on EBS application. I have some questions about the integration :
    1) generally, is the BIEE database and application server decentralized with EBS database and application? Both BIEE 10g and 11g version can be integrated with EBS R12?
    2) In BIEE administrator tool, the first step is to create physical tables. if the source appliation is EBS, is it still needed to create the physical tables?
    3) if the physical tables creation is needed, how to complete the data transfer from the EBS source tables to BIEE physical tables? which ETL tool is prefer for most developers? warehouse builder or Oracle Data Integration?
    4) During data transfer phase, if there are many many large volume data needs to transfer, how to keep the completeness? for example, it needs to transfer 1 million rows from source database to BIEE physical tables, when 50%is completed, the users try to open the BIEE report, can they see the new 50% data on the reports? is there some transaction control in ETL phase?
    could anyone give some guide for me? I'm very appreciated if you can also give any other information.
    Thanks in advance.

    1) generally, is the BIEE database and application server decentralized with EBS database and application? Both BIEE 10g and 11g version can be integrated with EBS R12?You, shud consider OBI Application here which uses OBIEE as a reporting tool with different pre-built modules. Both 10g & 11g comes with different versions of BI apps which supports sources like Siebel CRM, EBS, Peoplesoft, JD Edwards etc..
    2) In BIEE administrator tool, the first step is to create physical tables. if the source appliation is EBS, is it still needed to create the physical tables?Its independent of any soure. This is OBIEE modeling to create RPD with all the layers. If you build it from scratch then you will require to create all the layers else if BI Apps is used then you will get pre-built RPD along with other pre-built components.
    3) if the physical tables creation is needed, how to complete the data transfer from the EBS source tables to BIEE physical tables? which ETL tool is prefer for most developers? warehouse builder or Oracle Data Integration?BI apps comes with pre-built ETL mapping to use with the tools majorly with Informatica. Only BI Apps 7.9.5.2 comes with ODI but oracle has plans to have only ODI for any further releases.
    4) During data transfer phase, if there are many many large volume data needs to transfer, how to keep the completeness? for example, it needs to transfer 1 million rows from source database to BIEE physical tables, when 50%is completed, the users try to open the BIEE report, can they see the new 50% data on the reports? is there some transaction control in ETL phase?User will still see old data because its good to turn on Cache and purge it after every load.
    Refer..http://www.oracle.com/us/solutions/ent-performance-bi/bi-applications-066544.html
    and many more docs on google
    Hope this helps

  • Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.   When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and

    Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.
    When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and last name).
    I changed the computer name in Preferences/Sharing to a new name and Preferences/Accounts to just be Mike. I can right click on my account name, choose advanced, and see that everything looks right.
    However, If I do a scan of my network with my iPhone using the free version of IP Scanner, it lists my computer as First-Lasts-MacBook-Pro! And it lists the user as First-Last.
    So even though another Mac just sees my new computer name, and my home folder is Mike, somewhere in the system the original setup with my full name is still stored. And it's available on a network scan. So my full name might show up at a coffee shop.
    Can I fully change the name without doing a complete re-install of Lion and all my apps?

    One thought... you said the iPhone displayed your computer's old name? I think that you must have used the iPhone with this computer before you changed the name. So no one else's iPhone should display your full name unless that iPhone had previously connected to your Mac. For example, I did this exact same change, and I use the Keynote Remote app to connect with my MacBook Pro. It would no longer link with my MacBook Pro under the old name, and I found that I had to unlink and then create a new link under the new name. So the answer to your question is, there is nothing you need to do on the Mac, but rather the phone, and no other phone will display your full name.

  • Some questions on the Sleek

    Hey there. I have some questions regarding the Zen Sleek, since I may get one to replace my Zen Xtra.
    First of all, how much does it cost to have the battery replaced? I've heard/read that you cannot do it yourself (which irks me to know end), but I haven't found anywhere what it would cost to have it sent in once the battery is dead.
    Second, does the unit scratch easily? I don't want to buy an ugly, bulky case for it (since that's all that seems to be out there for anything that's not a Micro), but if the Sleek scratches as easily as the iPod, I may be forced to.
    Thanks in advance for your help.

    cera wrote:Thanks SSR, I'll have to look into the battery replacement program. I've read up on the CreativeCare protection plan, and it SEEMS that the battery would be covered under it. I'll have to e-mail or call and check.
    I know the battery is covered under warranty, but it certainly shouldn't die ordinarily during that period.
    I've left the screen protecting sheet on my Zen Xtra, and it's in great shape, so unless it becomes obnoxious, I think I'll end up leaving it on the Sleek as well. I may look into buying a case, or possibly just making my own.
    There are some threads on cases for the Sleek so it's worth searching back. Creative often fail to launch a case as an accessory, or certainly to launch one at the same time as the player is released. This is a great shame, aside from not bundling a good case with the player, as it keeps the player looking good and may well end up making it last longer.
    This is completely off topic, but I just realized that you wrote/host that excellent Donnie Darko FAQ. It helped me a lot when I first saw the movie and tried to figure it out.
    Glad it helped

  • Some question about the renegotiation function in SRM Contract (GOA)

    Hi All Expert,
    We are on SRM 5/4.6,  there is a question about the renegotiation function in SRM GOA.
    Can we renegotiate the price for some parts in the GOA items with this function ( e.g. Only renegotiate one item in the contract) ?
    Will the item price updated automatically after the renegotiation?
    Many thanks in advance!!!
        Wendrin

    Hi Sanjeev,
    Many thanks for your help.
    One more question, if I add a new item when we renegotiation, will it be transfered to contract and create a new item after that?
    Thanks and best regards
    Wendrin

  • Some questions about the limit of memory usage of Adobe flash player in different OS & Web Browser

    Hi Adobe experts,
    I'm from HP, and now using Adobe flash player making some products about massive data displaying.
    For my target, I need to show more than 200 K rows in client web browser, using AdvancedDataGrid.
    And that may needs more than 200M to cache the data in Web browser memory space.
    So, my questions are:
    Does there any memory usage limit in flash player?
    Say, if we have 4G bytes of physical memory in machine, in Windows, how much can I use in flash player?
    Also, if we have 4G bytes of physical memory in Linux, how much can I use in flash player?
    Does it depends on the Web Browser?
    Say, is there any difference between different web browsers?
                    If the limit exists, can we control the limit?
    Say, can we define some parameters in the tag in web page to expand the limitation?
    Or, can we try to control this limitation by the Flash player management which exists in the Windows Control Panel?
    Best Regards
    Huang Haixu
    +86 18616735091
    [email protected]<mailto:[email protected]>

    1. Yes. The Toolkit for CreateJS is an extra downloadable extension for Flash CS6. It will publish html and js files that will provide the animation instead of the swf that you would normally publish. The success or failure of the resulting javascript version of your animation is the result of working within the constraints of the toolkit. You are pretty much constrained to using the timeline in Flash for your animations. If you work only in Actionscript, then the output will be very disappointing.
    2. Edge outputs javascript, css, and html to give you an animation. The user interface allows you to design within the constraints of what Edge can do. You can preview and adjust and tweek your animation as you work. Edge is an html5 tool. It can create html5 animation. It is not a replacement for Flash. It is something that you can use instead of Flash to embed animation in html.
    The problems and benefits of each are unique. Neither is a good substitute to learning javascript, css and html5. If you don't understand the code that is created from each of these tools, you can easily end up with huge, bloated, files that perform poorly. I'm very biased toward actually knowing what is going on. If I need to edit something, I want to be able to go into the code and make a change, not add an additional chunk of code to work around what was there. I don't use the timeline at all, and so nothing that I have will publish using CreateJS. Well, it will publish, but nothing happens because there is nothing on the timeline to translate.
    You can download a trial of Flash CS6 and try the Toolkit for yourself. Edge is still in free preview, you can get a copy at http://labs.adobe.com and try it to see how it works.
    Also, if you're not using the Greensock Animation Platform with Flash, have a look at that. It has recently been extended to provide Javascript analogues for most of the Libraries. http://www.greensock.com/

  • Are these things possible in PDF forms? Questions for the experts

    Hi,
    I have a project where I need to create an online application system, where the user has to fill in a form where the results have to be saved into a database.
    I wanted to create a html based form, but then someone told me PDF can also do cool things, so I’m researching that road.
    I already managed to create a simple form and submitting it to a web service (java servlet in my case) and that works pretty nicely.
    I'm new to the whole PDF form creating and I’m wondering if certain things are possible. So I’m trying the experts in this form for a yes/no answer.
    Are the following things possible with PDF forms:
    1) validation: number & date checks, eg, a number should be higher than 4, or be a valid number/date
    2) If I answer A at question 1, I should skip Question 2 and go directly to Question 3. Is it possible to hide Question 2, depending on what I answered at Question 1?
    3) Is it possible to attach files to the form, like a photo? And also upload it to the web service.
    4) After I submit the form, is it possible to lock the form so that no other changes can be made? In other words, you may only submit once.
    5) Possible to activate the print button after the form has been submitted?
    6) Can a drop-down lists be dynamic? Instead of hard coding the list, calling a web service to fill the values?
    Thanks in advance for any insight,
    Kind regards
    Ido

    Hi Paul,
    thanks for the quick answer. No my next challange is how to do things
    1) validation: number & date checks, eg, a number should be higher than 4, or be a valid number/date
    <answer> Yes
    I think this is done through the object properties
    2) If I answer A at question 1, I should skip Question 2 and go directly to Question 3. Is it possible to hide Question 2, depending on what I answered at Question 1?
    <answer> Yes
    This is done with subforms and scripting?
    3) Is it possible to attach files to the form, like a photo? And also upload it to the web service.
    <answer> PDF does support the ability to have attachments. They would be includeed as part of the PDF so you woudl have to submit the entire PDF and then extract the attachments when you get the file to the server. Note that you will require to Reader Extend the document to allow a Reader user to add the attachment. This is not a requirement if you are using Acrobat.
    Have to look into this one.
    4) After I submit the form, is it possible to lock the form so that no other changes can be made? In other words, you may only submit once.
    <answer> Yes
    Also through scripting?
    5) Possible to activate the print button after the form has been submitted?
    <answer> If you add a print button on the form then the answer is Yes. The application that houses the PDF will jhave print capabilities and that one is much more difficult to hide. You can set it up so that the form cannot be printed then return back the locked version with printing enabled but a round trip to the server is required for that.
    Print button will be fine by now, probably also done by scripting
    6) Can a drop-down lists be dynamic? Instead of hard coding the list, calling a web service to fill the values?
    <answer> Yes but the form will require LiveCycle Reader Extensions if you are using Reader. Reader Extensions is not required if you are Acrobat.
    Ahh, perhaps fixed list will be ok for version 1

  • Some questions on the aironet 1141 aironet

    Hi all, I'm a little confused, I have a some questions:
    I have several aironet 1141 device all connected to the wired LAN. Can I configure all AP so that create a single network wireless?
    Can I configure all AP like DHCP server with same ip pool?
    Thaks all for any answer

    You can connect the aps to the same subnet. Most cases it is that way. Now you can only have one dhcp though. So if you don't have a dhcp server on the network, you can always have the switch do dhcp if it's capable or one of the AP's.
    https://supportforums.cisco.com/docs/DOC-3628
    http://itknowledgeexchange.techtarget.com/network-technologies/how-to-configure-a-dhcp-server-in-a-cisco-aironet-access-points/
    Sent from Cisco Technical Support iPhone App

  • Question for the experts on Video problem

    We are away on holidays but didn't want to miss this opportunity to ask for help from the experts. I'm not sure if I have a problem with my motherboard or video card or both. I posted the problem previously but here it is again.
    I have an HPE-250f HP desktop computer which has worked well although has not had a lot of use. Shortly after purchasing it I got a real deal on a 17" i7 laptop which has been used much more than the desktop. Yesterday numerous Windows updates were installed and a couple of reboots to complete the installations. On occasion in the past Windows updates have caused issues but am sure they are not the cause of the current problem.
    Upon turning on the computer yesterday it sounded like an airplane taking off so pulled the side cover off and it was the fan on the video adaptor that was making all of the noise. I have never heard it anywhere near that loud in the past even when under very heavy usage. In addition there was no video signal so my first thought was the adaptor had died. I took the adaptor out and reinstalled it to make sure it was seated properly however no change. I took the adaptor out again and then uncapped the VGA and DVI connectors that are on the rear of the computer but I did not get a video signal from either of those two outlets either. I don't know whether those ports are enabled on the motherboard or in the BIOS as this computer came with an upgraded video card. Either way there was no video. I have another low end video card here that I don't think was ever used so installed it and again no video. The hard drive seems to be making the normal sounds you would hear when it is booting but again with no video can't really say what is going on.
    I am sort of out of ideas as to what to try next as without video you can't see if there are any error messages coming up, whether it is trying to boot or is actually loading Windows.
    I don't want to scrap the computer and I guess an option would be to try and find the same motherboard and replace it but I am hoping someone may have some suggestions as to whether there should be video from the built in ports that come capped from the factory. It just seems odd that there is no video from the original card, the built in ports, or a different video card. It is also odd the original video card fan funs flat out when you turn the computer on before it even starts to get warm. If there is a problem with the slot the card goes in one would think the built in ports would still have video but that is assuming they are actually enabled but again don't know if they would be.
    If anyone has any suggestions or if anyone knows a reliable place to buy the same motherboard that is in this computer I would appreciate that information.
    Thank you

    Finally back from vacation and took a bit of time to get caught up from vacation. It appears somehow two threads got started so will continue on with this one as there is more activity here. There is no video from the original video card reinstalled in the computer. There is also no video on either of the integrated ports after removing the caps and removing the battery, and tried two different monitors just to be sure. I have a friend with the same computer and he said there is no setting in the CMOS/BIOS to enable the onboard video so don't know if it has been permanently disabled or not but again no video from either of the integrated ports. Also If there is a speaker on this computer they have done a very good job of hiding it and i have never heard it beep in all the time i have owned it. I know at this link under INTERNAL CONNECTORS it mentions a speaker connection. I would install a speaker for the purpose of troubleshooting but I cannot find a reference anywhere that says which pins are for a speaker so if anyone would know where to find this information I would gladly install a speaker so we could troubleshoot further. http://support.hp.com/us-en/product/HP-Pavilion-Elite-HPE-Desktop-PC-series/4162190/model/4262654/document/c02014355 It is certainly a possibility that one of the updates caused an issue but it would be surprising as these were updates to Windows and not the BIOS, so one would think if the update was causing an issue it would be after the POST and when it was about to start loading Windows. I will try the suggestions listed above to the extent I can without a speaker connected but it would be great if someone can post a manual for the motherboard that mentions which pins or header has the speaker connections so I can install a speaker. I just heard back from my friend that has the exact same conputer and his has no audible beep when it starts either and am sure there is simply no internal speaker on this computer. Thank you

  • Some questions regarding the iPhone app

    Hi, I have an iPhone 6 Plus using the app version as I don't own a computer, and am currently on my second day of the 7-day Premium Free Trial period. I just have some questions I'd like to ask about it:
    1) I have an extremely large music library, and I'm pleased to see that Spotify has most of what I own. However, for the past several hours it refuses to let me add any new artists/albums/songs to my lists, and when a new album is added, it will vanish from the artist list the next time I turn on my phone. At the same time, I actually tried deleting one of my artists from my Artist list, only to have to reappear the same way. Is this an error, or is there a limit of how much content you can add to your lists?
    2) What happens when the 7-day trial period is over? Does it just start automatically billing me, or does it give the option of opting out?
    Thanks for your help in advance. :)

    Hello , Welcome to the community! :)
    I am unaware of a bug like that, is their any chance that it could be fixed by now
    If you gave payment info/subscribed via itunes then yes it will start billing you, you stop this by folowing these steps:
    Canceling your subscription reverts your account to the Free level.
    Go to the subscription page. (Note: If you don’t know your password, go here to reset it.)
    Under Subscription and payment, click cancel your subscription.
    Select a reason (select Other reasons if you're canceling for a promotion). Click CONTINUE.
    Click CANCEL MY SUBSCRIPTION.
    Enter your password in the password field. Click CANCEL SPOTIFY PREMIUM SUBSCRIPTION.
    Your subscription page now shows the date you will revert to our Free ad-based service. We hope you decide to upgrade again!
    Note: If you subscribed through any other company than Spotify, you need to contact that company to cancel. If your subscription is through iTunes, please see Apple's instructions for canceling.
    I hope this helped :)

  • Some questions about the zen visio

    Hi everyone ! Im from spain and I have just bought the player one week ago. I have just two questions. The first is if it is possible to connect the player to the computer and the wall socket at the same time (because its really slow charging by usb) and if it does not damge the player. The second question is about the rating system, I find it really interesting but I miss I can do something with it ! I mean there should be another one inside DJ mode to play songs with 5 stars 4 stars 3 stars, 4 or more stars, etc... That would be really fantastic !! And also is it possible to manage the ratings with teh creative media source organizer? I suppose that no because I didn?t find the option... Ok that's all thank you for your help, and what a great player !!
    Pedro

    You can connect to a home stereo using a stereo miniplug (your headphone connector) to RCA adapter. these are available at any electronics store. you plug the 2 rca plugs into an auxiliary input on your receicver. to play in your car, you can use an fm transmitter. check out my post on accessories, it talks about one i didnt like and the one i replaced it with...
    http://forums.creative.com/creativel...essage.id=2079
    there is nothing special about ipods, they cant do anything that a creative player cant. in fact, some would argue that creative's do more! but connectivity to any type of stereo system is uni'versal

  • Some questions on the 5800 GPS

    Hi folks
    i am debating at the moment whether to upgrade from my N95 to a N95 8GB or the lovely 5800, i prefer the symbian OS so im glad to stay with these two phones. now i had tomtom 6 working fine on my N95 and i know it will work ok on the N95 8GB but the verdict i find on the interwebs is a bit hit and miss as to whether it will work on the 5800. however i am more interested in the Nokia Maps
    now as i understand this program is included and you can use the A-GPS built in GPS but can you use an external source? i have a BT GPS antenna and would be happy to use this to avoid paying A-GPS charges is this feature still ok with nokia maps? also is it possible to just run the nokia maps through the built in GPS and not using the A-GPS.
    i also just want to clarify something about the maps too, as i understand it comes with the function built in to navigate you point to point but doesnt include voice instruction. you pay extra for that functionaility?
    thanks very much folks id love to give the 5800 a twirl as much as i love the N95 i love to try new stuff
    Solved!
    Go to Solution.

    Thanks! I'm planning to head to the shops tomorrow to get 5800 XM.
    I never actually tried seeing if there was a visual turn by turn navigation on my friends' phones before because I thought there wasn't one. Hmm. Do you mean the "tracking" option? The very early version of Nokia Maps on N95 had that tracking option (Maps 1.x?), but the new ones don't (Maps 2.0).
    Paying for navigation is a bit steep for me after I convert the price to my currency. So I totally understand! I might try monthly though for special events.
    Thanks for the kudos. Do skim through the rest of this board section. You might find your answer since 5800 XM uses Maps 2.0 which is available in other phones too. I learnt a lot of info from here.
    Yoda is my all-time favourite character.
    "Try not. Do or do not, there is no try."
    If you found someone's comments helpful or like what that person has to say, please give some Kudos to the post!

  • Some questions about the battery

    I have a couple of questions about the battery in general.
    Is it normal that my iPod Touch 4G charges very fast? It reaches 60% in only one hour and it's fully charged before it takes two hours. I know this is not bad but I'm just worried. How can I be sure if it's really loaded?
    Is it normal that the battery is very quick empty when I'm gaming? For now I'm blaming this due to the quick charge.
    Is it normal that for example my battery level is at 30% and when I put on standby or something or close a game, the battery starts rising for approx. 5% even 10% sometimes?
    Those are my question, I hope they are clear enough. Thanks in advance.
    Regards

    1. The tech specs says:
    Charging times: Fast charge in about 2 hours (80% capacity), full charge in about 4 hours
    2. Heavy use like gaming drains the batery fater then other use. The tech specs say:
    Video playback time: Up to 7 hours when fully charged
    3.. Yes, the indicate capacity tends to rise after heary draining is stopped.  The battery indicator is not that accurate is affected by temperature. Heavy use increases battery temperature and when it decreases battery temperature decreases.

  • Some question about the sdo_geor.subset?

    Hellow everyone,
    I use the sdo_geor.subset clip some part of the image,the code like below. I can get different part of clip image, but find it show in the same place, it means that their start point coordinate is same, why?
    -------------------------------------------------------------example code ---------------------------------------------------------------------------------------
    FOR j IN 1..blockcount LOOP
    FOR k IN 1..blockcount LOOP
    i := i + 1;
    insert into sde.city_export values (i,imgname, sdo_geor.init('city_export_rdt', i));
    select image into gr3 from sde.city_export where image_id = i for update;
    IF j < blockcount AND k < blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),XRow * j,yColumn*k),null,null,gr3);
    ELSIF j < blockcount AND k = blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(j-1),XRow * j, yLength),null,null,gr3);
    ELSIF k < blockcount AND j = blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),xLength,yColumn*k),null,null,gr3);
    ELSIF k=blockcount AND j=blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1), xLength, yLength),null,null,gr3);
    END IF;
    update sde.city_export set image=gr3 where image_id=i;
    commit;
    END LOOP;
    END LOOP;
    Best Regards,
    Lin

    you can see this code:
    declare
    type curtype is ref cursor;
    my_cursor curtype;
    stmt varchar2(10000);
    imgname varchar2(200);
    gr2 sdo_georaster;
    gr3 sdo_georaster;
    gm sdo_geometry;
    gs sdo_geometry;
    i integer := 0;
    j integer := 0;
    k integer := 0;
    xLength integer := 0;
    yLength integer := 0;
    XRow integer := 0;
    yColumn integer := 0;
    sdo_varray SDO_NUMBER_ARRAY; --image size
    cellDepth integer := 0; --cell depth
    bands integer := 0; --raster band
    sqrtRst double PRECISION := 0.0;
    blockcount integer := 0; --crop block number
    begin
    stmt := 'SELECT t.filename, t.image from city_images t where t.image_id = 1';
    delete from sde.city_export;
    open my_cursor for stmt;
    loop
    fetch my_cursor into imgname, gr2;
    exit when my_cursor%NOTFOUND;
    i := i + 1;
    --computer block
    cellDepth := sdo_geor.getCellDepth(gr2);
    sdo_varray := sdo_geor.getSpatialDimSizes(gr2);
    bands := sdo_geor.getBandDimSize(gr2);
    FOR rec IN (SELECT column_value val FROM TABLE(sdo_varray) ORDER BY column_value) LOOP
    IF xLength = 0 THEN
    xLength := rec.val;
    ELSE
    yLength := rec.val;
    END IF;
    END LOOP;
    sqrtRst := SQRT((xLength * yLength * bands * cellDepth) / (8 * 200 * 1024 * 1024));
    blockcount := sqrtRst;
    if((sqrtRst - blockcount) > 0) OR blockcount = 0 THEN
    blockcount := blockcount + 1;
    END IF;
    XRow := xLength / blockcount;
    YColumn := yLength / blockcount;
    --crop image
    FOR j IN 1..blockcount LOOP
    FOR k IN 1..blockcount LOOP
    i := i + 1;
    insert into sde.city_export values (i,imgname, sdo_geor.init('city_export_rdt', i));
    select image into gr3 from sde.city_export where image_id = i for update;
    IF j < blockcount AND k < blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),XRow * j,yColumn*k)),null,null,gr3);
    ELSIF j < blockcount AND k = blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),XRow * j, yLength)),null,null,gr3);
    ELSIF k < blockcount AND j = blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),xLength,yColumn*k)),null,null,gr3);
    ELSIF k=blockcount AND j=blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1), xLength, yLength)),null,null,gr3);
    END IF;
    update sde.city_export set image=gr3 where image_id=i;
    commit;
    END LOOP;
    END LOOP;
    END LOOP;
    close my_cursor;
    end;

  • Some questions on the inner workings of Stellent IBPM 7.6

    Hello,
    I'm having some trouble figuring out a Stellent IBPM 7.6 installation at one of our customers' sites.
    I must admit that I am completely new to IBPM, but since our customer was unable to find anyone who still supported this software,
    they have asked me to find out whether it is possible to make a small change.
    They are using it to archive tiff files + metadata (in text files) exported by Kofax.
    I was unable to find any documentation on version 7.6, but I was able to find an administrator's guide of Oracle Imaging and Process Management 7.7, which I have been using so far.
    So here's the thing;
    I've largely been able to figure out how the whole Filer Server works, how it's configured, how applications are defined in the Application Definition editor,
    how meta data and image files get stored based on the defined indexes/fields and storage classes,
    how galleries are made, how users are linked to them and how searches can be built using the Search Builder.
    So far so good. I understand how the current setup is functioning.
    But what I haven't been able to find in the documentation that I posses,
    is how the system deals with any changes made to this setup.
    More specifically: changes made to the definition of indexes and fields.
    The main questions I have at this moment are:
    - How does the database, specified under "output" in the application definition editor, get constructed?
    Does this have to be done manually? And do you just have to name tables and columns exactly as you specify them in the Application Definition?
    Or will a new table automatically be created when I define a new application?
    I assume it will, because I noticed that the names of the tables in the database are <Application Name>+<Index Name>.
    But I haven't been able to find any piece of information on this, and I don't want to base any actions on assumptions.
    - Is it possible to add a field to an application that has already been online and filed?
    And also in this case; what happens to the output database? Do columns get added automatically or is this a manual step?
    I hope that despite the age of this software, someone will still be able to answer these question or point me to some documentation that I have missed.
    Kind regards,
    Wouter

    To answer the questions:
    #1   An interrupt service routine (ISR) running a lower IRQL may be interrupted by another ISR running at a higher level.
    #2   Having never heard of a thread interrupt, all I can say here is that a thread may be pre-empted for a lot of reasons.
    #3   An ISR does not have to schedule a DPC unless it needs to do work that it cannot do at high IRQL.
    #4   Assuming that the Write and IOCTL are on seperate queues, yes you need a a lock to protect shared resources.
    #5   As the name implies kernel dispatcher objects allow scheduling (i.e. dispatching of another thread), while things like spinlocks do not. 
    #6    Timers are just another dispatching object, i.e. one can wait on them the same way one waits on a mutex or a semaphore.  A WDF TIMER is basically a wrapper around a regular timer to take care of some of the housekeeping (particularily
    with respect to stopping the driver etc)
    #7     If a routine is running at DISPATCH_LEVEL you are limited to spin locks for synchronization. You can with a zero timeout check the status of a kernel dispatcher object.   In general, routines like this should be
    designed to only use spinlocks.
    #8    An arbitrary thread is just that, it may be a thread in any process. Basically a currently running thread is grabed and used to run the interrupt so that the scheduler which has overhead and is not designed to run at interrupt level
    IRQL's does not need to run.
    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

Maybe you are looking for