[SOLVED] Lightweight solution for automating Javascript

Recently, I wrote a Python script with Selenium; the ONLY function of selenium was to "click" a Javascript button on a page since, as far as I know, no other Python library will allow for this.  This script runs fine on a normal desktop, but it seems that using Firefox/Iceweasel is too resource-intensive on my Pi board, the Chrome drivers don't work (even the ones which claim to be built for ARM), and I don't know of any alternative webdriver that Selenium could use.
Is anyone familiar with effective, lightweight solutions to Javascript automation?  It's important to me because it makes finding job opportunities a lot easier; and, I'm pretty annoyed that, for all the effort I've put into this, a single button continues setting me back two steps for every step forward.
Last edited by apolyonn (2014-04-29 16:39:01)

After running across this article, I was able to solve this issue to my needs by using PhantomJS 1.9 (use at LEAST 1.9, otherwise selenium won't be able to access the GhostDriver) as my webdriver with Selenium.  As this is running on my Pi board, I'm using this precompiled armv6l version.  It isn't the most ideal solution, but it certainly is a far more effective; with PhantomJS, the whole program takes ~25 second to run, as opposed to the ~4 minutes that it took for Firefox to do the same process -- and, on a normal pc, the script takes only a few seconds to run, as opposed to the ~20 seconds required by Firefox.
I don't have the know-how to do anything more effective (and, to my knowledge, I've exhausted any other resource), so I'll accept this as a solution.
Last edited by apolyonn (2014-04-29 16:38:35)

Similar Messages

  • Make your own Fax Server with Automator! (Pagesender solution for Mavericks)

    I have been scouring these discussion boards for some time now looking for a suitable substitute to PageSender, an awesome fax solution for the Mac from SmileOnMyMac LLC, which for some inexplicable reason stopped development and updates after OS 10.6.8. The result is that many small business office users who still rely on fax (and yes...no matter what they tell you, most of the business world DOES still use fax because it's legally binding and more secure than email for the transmission of legal documents or healthcare records, and does not rely on database integration accross different systems, which is sadly but very realistically still a long ways off), and no longer have a way to integrate faxes into a paperless or digital workflow office system.
    I suspect like many folks who receive faxes, those who used PageSender, used a very powerful feature to forward faxes by email, thereby turning your Mac into a Fax server that could distribute your faxes to other workstations and staff throughout the business via email. Presumably, if you have your own email server (Exchange, Kerio, AppleMail server, PostFix enabler etc.) you could distribute faxes on your own internal network, securely behind a firewall, and effectively create a digitial/paperless workflow for your faxes.
    Even if you have a USB modem or multifunction printer that allows you to recieve a Fax to your desktop (Apple's internal fax via printer preferences, and some HP models like the HP MFP 127fw) for example will allow you to recieve a Fax to a desktop folder or forward to a single email address. But the former is of limited functionaliy and the later only lets you send to an email address out over the internet with a registered public domain, which means you give up all control of privacy and means you can't process it through a private mail server to create a digital workflow for your office...
    ...Until now!!!
    I am happy to report that I have finally discovered a very easy and useable feature that will save a lot of time, money, and headaches for those looking to create a digital workflow and fax server system for a small office system. (I don't think there is any limit to scale here, but I suspect offices with more than 10 employees probably have a BizHub, or HP MFP/digital sender that can create the same process directly from the printer, but of course these come with a price tag of $2000 and up...).
    To accomplish this however, you will need some basic requirements which are as follows:
    1) A USB modem from either US Robotics or Zoom Modem. These are readily available from Amazon, MacMall or any number of other online vendors and work very well and seemlessly with all Macs running OSX right up through Mavericks
    OR
    A Multifunction printer that is capable of receiving faxes to a desktop Mac like the HP 127 fw. Other models exist from other manufacturers as well, but you will have to do a bit of research and probably check with the vendor or user manual directly to confirm that Fax to desktop is supported for Mac and OS 10.9.
    2) A dedicated Mail Server (MSFT Exchange, Kerio, MacOSX server with mail server enabled, or PostFix enalber or MailServe from Cutedge Systems)
    You will need to set up an email account on your server that is the parent for all incoming faxes from which the faxes will be sent out as part of your digital workflow. This is beyond the scope of this discussion but if you've come this far and you're still reading, you probably know  how to do this already. I recommend setting this up as a POP account, not IMAP. This way, the attatchments (your faxes) will always remain on your server as a back up, until you delete them from the server.
    3) Now simply go to System preferences and select "Printers and Scanners". Select either the Fax printer for your multifunction printer, or add a fax printer/reviever using the + button and select "Fax" if you are using a USB modem. You must have the USB modem attatched to the computer in order to use the built-in Apple Fax feature for the latter option.
    4) Now click on the receive options. Select "Recieve faxes to this computer" and set your ring answer settings. Check "Save to" and select the designated folder (either Faxes or Shared Faxes on your computer) or create a new folder. Depending on the volume of faxes, and your back up systems, you may want to designate a separate folder on a separate drive, exclusively for your Faxes. This is where all your faxes will be stored.
    5) Now launch "Automator" in your applications folder and create a new workflow. You will be presented with several options. Select "Folder Action".
    6) At the top right of the window space you will see "Folder Action receives files and folders added to" . Select the Fax folder you created in step 4.
    7)On the left hand side of the "Actions" menu select "Mail"
    8) From the list of actions select "New Mail Message" this will take the latest Fax added to your Fax folder and attach it as a PDF to a new outgoing mail. In the "TO" address put the email address that belongs to the parent account your created for the Faxes on your mail server eg. [email protected].  In the subject field you can put "Fax Workflow" or any other generic subject that will identify to all reciptients that this is an email that contains a Fax/PDF attatchment.
    Under "account" use the SMTP account you set up on your mail server to handle the routing of internal emails. In most cases, this will be the same as the parent account created above. (Effectively, this account is sending and receiving emails to itself).
    9) From the list of actions, select "Send outgoing messages".
    10) Save the Automator workflow with a name like "FaxDistribution" or "FaxFlow".
    11) Go back to the Fax folder you created in step 4. Right click or option click on the folder and scroll down the options menu and select "Folder Actions Setup". You will see a list of scripts including the Automator workflow you just created. Choose it.
    That's it!! From now on, when you get a fax, it will get dumped into the designated fax folder, and this will automatically trigger the workflow to atttach and send it as an email to anyone in your office that is set up to receive emails with the "faxserver" address. You now have a paperless fax digital workflow server system for distributing your faxes digitally to anyone in your office who needs to review your faxes. Good luck!

    Thank you for this interesting posting.

  • Need solution for solving TIME_WAIT in TCP/IP ports in Windows Server 2008 Standard Service Pack 2

    In one of our windows machine( OS : Windows Server 2008 Standard (Service Pack 2)-32bit), we are facing TIME_WAIT in all the TCP/IP ports and it is not getting closed.
    On analyzing the issue, we found solution for this from the below link,
    https://support.microsoft.com/en-us/kb/2553549
    In this page, we are able to get the hotfix for Windows Server2008 R2 SP1 but i can't able to get for  Windows Server 2008 Standard SP2(32bit). If we try to apply the hotfix vailable for SP1, it is showing "The update does not apply to your System".
    Kindly provide us the solution for solving TIME_WAIT issue in the machine. 
    OS Details : Microsoft Windows Server 2008 Standard
    Version : 6.0.6002 SP2 Build 6002
    System Type : 32 bit(x86-based PC)
    Awaiting for the response.
    Thank you,
    Pushpalatha.A

    Download correct version from Microsoft Update Catalog. Run it with elevated rights.
    M.

  • Can anyone solve (or) give me a solution for this problem.....?

    Hi Everyone!
    Can anyone solve (or) give me a solution for this problem.....?
    We have used two folders Source & Finalwork. We have get image from Source folder and put silo path & Moved to Finalwork folder.
    Is this possible to check whether both folder images Embedded color profile same or not.
    -yajiv

    Could you elaborate what you mean by this
    We have get image from Source folder and put silo path & Moved to Finalwork folder.
    Possibly again with a screenshot to illustrate the task?
    // 2012, use it at your own risk;
    #target photoshop
    var theFolder = Folder.selectDialog ("select source folder");
    if (theFolder) {
    var theFiles = theFolder.getFiles(/\.(jpg|tif|eps|psd)$/i)
    var theOtherFolder = Folder.selectDialog ("select target folder");
    if (theOtherFolder) {
    var theOtherFiles = theOtherFolder.getFiles(/\.(jpg|tif|eps|psd)$/i)
    var missingFiles = new Array;
    var unmatchedProfiles = new Array;
    // work through files;
    for (var m = 0; m < theFiles.length; m++) {
              var check = false;
              var theFile = theFiles[m];
    // find name of the same name;
              for (var n = 0; n < theOtherFiles.length; n++) {
                        var theOtherFile = theOtherFiles[n];
    // if one is found;
                        if (theFile.name == theOtherFile.name) {
                                  check = true;
                                  var oneFile = app.open(File(theFile));
                                  var otherFile = app.open(File(theOtherFile));
    // check profiles;
                                  if (oneFile.colorProfileName == otherFile.colorProfileName) {
    // collect umages with unmatched profiles;
                                  else {unmatchedProfiles.push(theFile)};
    // collect missing files;
              if (check == false) {alert ("hahaha");missingFiles.push(theFile)}
    // alert of problems;
    if (unmatchedProfiles.length > 0) {
    alert ("the corresponding files for these do have a different color space:\n"+unmatchedProfiles.join("\n\n"));
    if (missingFiles.length > 0) {
    alert ("these files miss corresponding ones:\n"+missingFiles.join("\n\n"));
    ////// get psds, tifs and jpgs from files //////
    function getFiles (theFile) {
        if (theFile.name.match(/\.(jpg|tif|psd|pdf|)$/i)) {
            return true

  • JavaScript for Automation Cannot Use Scripting Addition Commands

    Attempting to recreate the example script for Messages called "Speak Events" with the new JavaScript for Automation in Yosemite, I found that it is impossible to use any scripting addition commands. For example:
    Messages = Application.currentApplication()
    Messages.includeStandardAdditions = true
    function messageReceived(m, e) {
         Messages.say(m)
    I have removed all the other (annoyingly) necessary function overrides for brevity. Similar AppleScript code functions just fine, but this will result in a privilege error because the system wrongly categorizes it as being sent cross-application. Is there any estimate on a bug fix for this?
    I've tried everything I can think of to work around this issue, even adding /usr/bin/osascript to the Security & Privacy Accessibility listing ("Allow the apps below to control your computer") which is not possible without editing the SQLite DB.
    The documentation included in Script Editor is also woefully inadequate, lacking a readable listing of what exactly is being passed into the handler function. How can I translate an AppleScript line like "received theMessage from theBuddy for theChat with eventDescription" into a reasonable function signature for JavaScript?

    It is a big SDK and to learn its features requires a lot of reading. But to start with I guess I should start with "Introduction to SDK".
    Since you want to control Acrobat from another application you should consider this under "Interapplication communication". You will be using OLE/COM.

  • Is JavaFX the right solution for this scenario...

    Hi,
    Is JavaFX the right choice for the following implementation choice I have to make? (see below for the requirement)
    Requirements:
    1. Provide a way to visualise within a web application an entity relationship type diagram (i.e. nodes with relationships between them). The backend database will hold the topology relationship. So to visualise this on a web application will need the ability to draw rectangles/lines/text etc.
    2. Provide a way to allow the use to trigger "add a new node", or "edit info in this node". For example a right hand context sensitive menu for example.
    3. Ideally will scale as the user resizes the browser window
    4. Would like the main functionality of the application to remain web based (is a Ruby on Rails application in fact), but have the visualization of the diagram render within the web application as transparently as possible.
    Options / Issues:
    * Issues I've struck with some investigation I've done is that whilst the <canvas> tag looks good for Mozilla/Firefox etc, it does not seem to have support on InternetExplorer. Hence cross-browser compatibility seems to be a real issue for the JavaScript type solutions from what I can see. This is why I thought JavaFX may be good?
    * Options therefore seem to me to be:
    - javascript (e.g. <canvas> tag) => cross-platform issue
    - JavaFX / Applet => (this is what I'm asking about)
    - Microsoft => costs $$ for development environment etc
    - AIR / Flex / Flex => ??? costs $$ again I think
    Regards
    Greg

    thanks - I'm still a little confused re their products and which would fit best so I've sent them some questions (below if you're interested)
    Hello,
    Could you please assist me in understanding which of your products would satisfy my needs. In fact (a) whether JGraph itself would and if not, or if it's not ideal, (b) which other product would.
    REQUIREMENTS:
    1. Provide a way to visualise within a web application a connectivity type diagram (i.e. nodes with relationships between them, a network connectively type of diagram).
    2. The server side (i.e. web application with database) will hold the topology relationship. HTTP type interfaces off the web application can be developed to provide the client side visualizing component with the topology data in the required format (assume this is XML)
    3. As well as just visualizing in the browser there would need to be a way for user to trigger a context sensitive "add a new node", or "edit info in this node". For example a right hand context sensitive menu for example.
    4. Ideally the diagram will scale as the user resizes the browser window
    5. Would like the main functionality of the application to remain web based , but have the visualization of the diagram render within the web application as transparently as possible. The the visualizing component would just take topology data and intelligently display this.
    6. DESIRABLE: Basic automated layout would be nice, or as a desirable (depending on cost) more sophisticated auto-mated layout.
    QUESTIONS:
    As well as your recommendation re which product would suite I had some specific questions which I would appreciate clarification on:
    Q1 - I assume if I have a web backend that can deliver topology inforrmation in an appropriate XML format via a HTTP REST type GET call that this could be used as a the source of data for a jGraph visualisation running within an Applet?
    Q2 - If running within an Applet, can jGraph cater for a right hand menu option off the nodes/links on the graph, that I could use to trigger other calls back to the backend? (e.g. to trigger an Add New Node call)
    Q3 - Following on from Q2 scenario, if I trigger an add new node scenario, if I wanted to visualise the form to type in the attributes for the new node, could this be handled within the applet by jGraph, or would this be a case of just adding your own Swing based dialogs to handle this?
    Q4 - Do the basic JGraph do any basic layout without having to go up to the layout Pro package (which I think costs if using it commercially).
    Q5 - If the answer to Q4 is No, how difficult would it be using the base JGraph library to do a basic layout? Is this doable/recommended? i.e. how would one "layout" the diagram if using only the base JGraph component? (noting from my requirements I'm really after a component I could send my topology information to in XML form and have it just visualise it for me)
    Q6 - Running the visualiation in an Applet in a browser, is the typical usage one where all changes to topology are made as calls to backend? i.e. or is there an approach where one would allow users to make changes to the topology within the applet and build up all the changes here on the client, and then at some point synch these back to the backend? (I'm assuming the keep it simple approach would be not to do this)
    Q7 - Is there a sample application/project with source code that implements a JGraph in applet/browser talking to web backend for data?
    Q8 - How does JGraphPro & mXGraph fit into the picture re solving my requirements in the most cost effective manner

  • Providing DRC solution for ATMs in the enterprise network

    Hi all,
    I am looking for ideas on how to provide a Disaster Recovery solution for thousands of ATMs (Automated Teller Machine) deployed in the bank enterprise network. The solution should consider
    the following facts:-
    1.- Having the ATMs switch the connection to the Server at DRC shouldn't be automatic. This situation might last for the next few years until DRC becomes mirror image of primary data center.
    2.- The ATM servers at the primary and disaster recovery center is single server equipped with high availability (Tandem). I mean to say, there is no SLBs invloved in the connection
    3.- The application running on the ATMs is calling the ATM Server by hardcoded IP address in the application. The bank is willing to visit the ATMs to change once and forever.
    I see source natting as the most appropriate solution, however your opanion and expertise are appreciated.
    Thanks
    Sami

    Sami,
    what kind of solution are you looking for ?
    Is the concern the connection from ATM to central location ?
    Or is it a concern about the server at the central location ?
    For connection issues, I don't see any other solution than providing multiple lines.
    If the concern is the single server, you could have a loadbalancer somewhere in your network.
    The loadbalancer can use probes to check the health of the server.
    If the primary fails, or is unreachable, you can automatically redirect the traffic to the standby.
    ATM machines will point to the virtual ip (you could reuse the current ip and assign a new one to the servers).
    Not sure where to place the loadbalancer without a better idea of the problem to solve and the network.
    Gilles.

  • My solution for the "Error -50" and/or "Syncing" problem

    Hi
    After upgrading to iPhoto 5.0.2 I also had the "Error: -50" problem"
    How have I solved this problem => also with the help and tips from other forums.
    • Before the upgrade all my pictures from iPhoto were available on my iPod Photo (30 GB)
    • After the upgrade of iPhoto to 5.0.2 I received the "Error: -50" every time I tried to synchronize my iPod. Strange, strange, strange, ...
    => first I detected that putting pictures on my iPod starting from a folder (in stead of iPhoto) worked fine.
    Trying to change back to iPhoto did not work and no albums where available in the iPod Options view!
    => then I tried to create a new iPhoto library (press and hold Option(alt)-key while starting iPhoto), put some pictures and albums in it ... and even this did not work.
    What did I do to solve this problem!
    1. I thrashed my iPhoto application (DO NOT empty you trash, because you have to put it back again)
    2. I used "Disk Utility" to repair the disk permissions.
    3. I put back my iPhoto application from the thrash (same location as before - Applications folder)
    4. and did again a "repair disk permissions"
    5. then I tried to sync my NEW iPhoto library on my iPod and EUREKA this worked.
    6. Then I switched back to my original iPhoto library (launch iPhoto holding the Option key).
    7. Tried to sync ... again the same problem => no pictures and albums available in the iPod - Optoins - Photo tab.
    => conclusion : the problem has to be in my iPhoto library
    8. after trying many things (such as eliminating albums => trail and error method) I found the cause for my problem.
    => I used KEYWORDS in my iPhoto library with strange characters and had SMART albums using it. In my situation it was the "&" character.
    Replacing or removing this character solved my problem. All my pictures and albums were available in the iPod - Options - Photo tab
    9. Sync could be started ... Youpi!
    After synchronizing my iPhoto library I noticed that not all pictures were available on the iPod. I start looking which pictures that were missing on my iPod. When I found them I wanted to know why they were not synchronized.
    I found the explanation in the file "AlbumData.xml" in the "iPhoto Library" folder.
    If you open this file with TextEdit and search for this missing file then you'll find that (at least in my case) corresponding path does not exist (any more). And that was the case for each missing file!
    How solving this problem?
    1. I tried rebuilding the iPhoto Library => launch iPhoto holding the Option and Command keys. This did not work.
    2. What did I do?
    2.1. First I exported all my Pictures from the active iPhoto Library (Share - Export)
    => VERY IMPORTANT NOTE : all extra info such as "Key words", Albums, ... will NOT be saved!
    2.2. I created a new iPhoto Library (launch iPhoto holding the Option key)
    2.3. Then I imported all exported pictures.
    => if you check the file paths in the AlbumData.xml file, you'll see that this info is correct!
    2.4. At least I recreated (manually) all "Key words", Albums, ... so I had a duplicate of my original Library.
    I hope this also works for other people with the same problem.
    Greetings
    P@nt@ni

    Here my solution for the itunes' "unknown error -50" and not showing any albums in the prefs' tab:
    1. All rebuilding options in iphoto didn't resolve the problem.
    2. I opened the file "AlbumData.xml" in the iPhoto-Library-Folder with a text editor. I figured out, that the problem wasn't in the Albums, but in the "Master Image List"-Section. They look like this:
              <key>1741</key>
              <dict>
    .. titles, filenames, ....
    </dict>
    After making a backup of this file, I started deleting entries here (you know, the fastest way to do it is to split it always in halves and check in iTunes if the error still exists). After about half an hour I got the problem key.
    3. The problem was: Some (curious) white spaces at the BEGINNING of the comment! Curious, because they weren't visible in iPhoto's comment, but I could delete them in Iphoto! I guess they weren't normal space characters, but any special symbols (line feeds? whatever)
    4. After that, the -50 error was gone. Now I could see the Album Names. But the sync stopped after a while with a "... file not found...." - error.
    5. Again, with trial&error I found out, that 4 pictures in the last 3 months' rolls made this second problem: I just duplicated them in iPhoto and deleted the original ones. So I still don't know why they have produced this error... anyway,
    6. Now all of my photos sync well.
    .. well, the whole story took me 2 evenings. I really didn't switched to Mac to play debugger for Apple. Do they read these groups here or do I better write them anywhere? They should get those problems fixed asap! As far as I read in the groups, those errors do exist quite a long time?!
    My versions:
    iPhoto 5.0.4 (263)
    iTunes 5.0.1 (4)
    OS X 10.3.9
    iPod Nano 1.0

  • Storage solutions for Aperture Library & vault??

    My Aperture library has grown to over 400 GBs and I am concerned about storage as it grows larger week by week. I have been using two 500 GB firewire 800 drives, one for the library and one for vault. Today I purchased a 1 Terabyte drive for the library, it works well and I actually see a speed improvement. I will pick up another next week for the vault.
    Aperture lumps all of the data in one folder therefore requiring the size of our hard drive to keep pace with the Library. I need a different solution than replacing firewire drives with larger capacity ones every three to six months.
    My main requirements are speed and expandability. I do not want to keep several aperture libraries, to me this defeats the purpose of an image database.
    I have heard the pros and cons of raid and I do not think it's the best solution for an Aperture based system. Sata sounds interesting and seems that it may become more standard. I have also read about using an out-dated mac as a server by installing several hard drives and connecting it to the workstation by gigabyte ethernet. I would like to have my library on a very fast connection, firewire is fine for the vault. I am wondering what others are doing in the same situation as mine and if you might have any advice.
    With the purchase of the 1TB drives I figure that I will be fine until mid to late summer, by that time Apple will have their new desktop available which I plan to purchase. It might be best to see what the machine will or will not support. Any thoughts?........
    G5 dual 2.0   Mac OS X (10.4.6)  

    As the previous poster said: this is an Apple problem that needs to be solved. I might add, it probably will be in the near future. So, you should try to scrape by for the next few months as best you can and wait and hope and pray for a solution from Apple.
    With DVD and Firewire drives backing up your original you are well--probably over--backed up. One copy on DVD is more than sufficient for your originals. Make more backups of the Aperture library which includes your original file and your time consuming metadata and adjustments.
    RAID 0 is risky because if a single drive goes then you loose everything! There are other RAID schemes that make your system more dependable. RAID 1 mirroring is safer but doesn't expand your storage capacity.
    RAID 3 & 5 are both more dependable and give you bigger working volumes but there is a lot of processor work going on to calculate parity (error correcting and data recovery information) that is spread across several drives. If you use Mac OS X RAID or Soft RAID that processor power comes from you computer's CPU--which probably has enough work to do already without having to crunch numbers for every byte that goes to/from your hard-drive.
    RAID 3 & 5 are good systems if you have hardware to to the parity calculation but they each require a minimum 4 drives to make a set--which you don't want to use as a boot drive. That means you would need 5 drives inside your G5 of a combination of internal and external drives.
    A cleaner solution might be getting a Wiebe Tech Siver SATA V case and port multiplier card (about $1500 w/o drives). That will give you a good fast connection for 5 external hot-swappable drives. Then use Ben Long's library spanner to get you by until Apple comes to the rescue with a multiple drive library.

  • Any solution for Windows 8.1 System Image Backup on DVD fails with error 0x80040154??(apart taking backup in external drive)

    Windows 8.1 is facing a problem while taking System Image Backup on DVD, it pops an error saying  0x80040154 and more it says that class is not registered , i am trying from days to find some optimum solution for it apart from taking it on external
    hard drive...any suggestion please let me know asap!
    regards!
     

    Hi,
    Check this article first:
    0x80040154 error may occur when you create a system image backup in Windows 8.1
    http://support.microsoft.com/kb/2934165/en-us
    Please capture the system event during you reproing this issue by using Process monitor:
    Process Monitor v3.05
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    If there is any Access denied error, follow this blog to solve this issue.
    Solving Access Denied Errors Using Process Monitor
    http://improve.dk/solving-access-denied-errors-using-process-monitor/
    You can also upload the saved log file here for our research. Please upload them to a file sharing service like Skydrive or "Rapidshare" and put a link to them in your reply.
    Kate Li
    TechNet Community Support

  • A solution for Secure Static Versioning problem in 1.5.0_10

    Hi,
    I have JRE 1.3.1_09 and 1.5.0_10 on my computer and I think I have solved static versioning problem.
    My test computer:
    - Windows XP sp2
    - Internet Explorer 7 (on another computer also IE 6)
    - Firefox 2.0.0.1
    - JRE 1.3.1_09
    - JRE 1.5.0_10
    I. Solution for Internet Explorer 6 and Internet Explorer 7
    1. Edit registry and add:
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Deployment\Policy
    DWORD: EnableSecureStaticVersioning = 0 (Hex)
    2. Restart browser if started.
    3. Start web page with java applet.
    II. Solution for Firefox 2.0.0.1:
    1. Install 1.3 JRE in the same parent directory as 1.5 JRE.
    Because default default installation path for 1.5 JRE is C:\Program Files\Java\jre1.5.0_10 you need to modify
    1.3 installation path from default C:\Program Files\JavaSoft\JRE\1.3.1_09 to C:\Program Files\Java\jre1.3.1_09
    After installation check out that "bin" directory is in the following path:
    C:\Program Files\Java\jre1.3.1_09\bin
    2. Install 1.5 JRE in default installation directory: C:\Program Files\Java\jre1.5.0_10.
    After installation check out that "bin" directory is in the following path:
    C:\Program Files\Java\jre1.3.1_09\bin
    3. Restart browser if started.
    4. Start web page with java applet.
    Note: HTML page must use <object> tabs for Internet Explorer or <embed> tabs for any other browser (e.g. Firefox). You need to specify correct classid in object and/or embed tag.
    P.S. If anyone would like to discuss with me send me an e-mail to [email protected], but please post question to forum and just mail me a link to forum. I will write my answer to forum.
    Hope this helps,
    Grofaty

    I have been trying to find a solution for this issue at our organization for over 6 months. Finally, we have a work around to run multiple java versions for newer and aging java apps.
    Thanks,
    Adunlow

  • Which solution for better perfomance?

    I'm writing java application based on XML. This application have to store very large XML file into DB (XML file is about 1000MB large). My solution is to divide it into smaller (100MB) parts (because of memory resources) and store it in DB. I have one XMLType table based on object-relational storage (so at the end there will be 10 rows each of 100MB size).
    XML file looks like:
    <students>
    <student id="1">
    ...// 5 nested elements or collections of elements
    </student>
    <student id="2">
    </student>
    <student id="3">
    </student>
    </students>
    </students>
    Now I need to get java object Student which correponds to <student>element. My solution is to select whole <student> element and use JAXB to convert it to Java object. While solving a problem with selecting <student> element (just in case you know a solution for my another problem: How to select specific element from a XML document using JDBC? another question raised in my mind.
    Which solution has better performance when I don't need to select relational data but I'm interested in xml fragment?
    1) Use object-relational storage
    2) Use CLOB storage
    As I figured out object-relational storage is better for selecting data like student name. But is it also better when I need whole xml fragment?
    Isn't my solution completely wrong? I'm quite a newbie in XML DB so it's possible that I missed better solution.
    Thanks for any advice

    I don't know which version you have regarding 11g, but probably in this case I would go for a table with a XMLType Binary XML column. To make xpath and other statements perform use Structured or Unstructured XMLIndexes to support your queries. The following has worked for far smaller XML documents but the millions we used were good for a total of >> 1 TB total storage size...
    CREATE TABLE XMLTEST_DATA
    (    "ID" NUMBER(15,0),
          "DOC" "SYS"."XMLTYPE"
    ) SEGMENT CREATION IMMEDIATE
    NOCOMPRESS NOLOGGING
    TABLESPACE "XML_DATA"
    XMLTYPE COLUMN "DOC" STORE AS SECUREFILE BINARY XML 
    (TABLESPACE "XML_DATA"
      NOCOMPRESS  KEEP_DUPLICATES)
    -- XMLSCHEMA "http://www.XMLTEST.com/Schema1.0.xsd"
    --  ELEMENT "RECORD" 
    DISALLOW NONSCHEMA
    PARTITION BY RANGE(id)
    (PARTITION XMLTEST_DATA_PART_01 VALUES LESS THAN  (100000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_02 VALUES LESS THAN  (200000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_03 VALUES LESS THAN  (300000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_04 VALUES LESS THAN  (400000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_05 VALUES LESS THAN  (500000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_06 VALUES LESS THAN  (600000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_07 VALUES LESS THAN  (700000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_08 VALUES LESS THAN  (800000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_09 VALUES LESS THAN  (900000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_MAX VALUES LESS THAN  (MAXVALUE) TABLESPACE "XML_DATA" NOCOMPRESS
    CREATE INDEX test_xmlindex on XMLTEST_data (doc) indextype is xdb.xmlindex
    LOCAL
    parameters ('GROUP PARENTINFO_GROUP
                 XMLTable test_cnt_tab_ParentInfo
                ''/RECORD/ParentInfo''
                COLUMNS
                 GroupingID01 VARCHAR2(4000) PATH ''Parent/GroupingID'',
                 GroupingID02 VARCHAR2(4000) PATH ''Parent/Parent/GroupingID''
              ');

  • Looking for a nice solution for different cases with nearly same operations

    Hi everybody:
    I'm looking for a nice solution for the following problem:
    I'm measuring different data at the same time (with different devices).
    I would like to save these data all in one array (or cluster?), but I
    don't know exactly the way to do this. All values have corresponding
    time values. So for one data type it would result in a 2d array,
    wouldn't it? But how can I save different data types with their time
    values in one array? Or should I take a cluster? And how can I get only
    a certain type of data out of this array or cluster again? E.g. if I
    only need data type "3" with its time stamps for evaluation? I would
    really appreciate an example, I work with LV 7. Thanks!
    Then - for evaluation - I only need one data type of these different
    data. Which one I would like to choose via the frontpanel (it changes
    from test to test). So, I thought of a case structure (where I can
    choose which data type and correspondingly which evaluation way). The
    evaluation steps for the different data types are quite the same, but
    can vary in order of execution. I could write for every case the
    (nearly) same evaluation steps, but this would take a lot of time, plus
    if I need to change one step I need to change it in every case.
    Does anybody know a better way?
    Thank you very much in advance,
    Steffi

    steffi.kono wrote:
    In this example I have four arrays, which I would like to save alltogether in one file. First column should consists of time stamps, second column of value type 1, third column of value type 2, ... How can I solve this?
    Built the 4 1D arrays into a 2D array, the use write to spreadsheet file.
    steffi.kono wrote:
    And, after that, how can I display only the second coulmn (e.g.) and time stamps in a waveform chart from this file? Or how can I say in LabVIEW: "display the last 30 values of column three over the time in a waveform chart"?
    There is "array subset", which allows you to get any desired subset from an array. If yoyu want entire rows or colums, use "index array".
    To display the last 30 values in a chart, just feed the data to a chart with the history size set to 30 elements. The rest will fall into place.
    LabVIEW Champion . Do more with less code and in less time .

  • Solution for AAM Updater Error : U44M1I210

    After getting Creative Cloud a couple of days ago then running into Updater Error U44M1l210 over and over and making the mistake of calling tech support (which was no help - "just reset it / download from the site" - even though resetting does nothing and the site doesn't have all the updates AAM does), I've finally got a working solution.
    Essentially it's a permissions issue. Not sure why it affects some and not others, but I was logged in as an administrator and it still failed to have permissions to update despite admin password entry.
    So, here's what you do. You need to open AAM and Update with superuser permissions.
    1. Open Terminal
    2. Copy and Paste the following, then hit enter:
    sudo "/Library/Application Support/Adobe/OOBE/PDApp/core/Adobe Application Manager.app/Contents/MacOS/PDApp"
    3. It will prompt you for your password, enter it.
    4. The Adobe Application Manager will open with sudo (elevated/superuser) permissions.
    5. Open one of your Creative Cloud programs.
    6. Go to Help>Update...
    7. The updater dialog will open. Update as normal, it will work this time.

    After multiple phone calls and emails to tech support about this issue I was hoping that this would solve the issue for me. I've tried command line fixes a few times now and like the others this one doesn't fix the issue for me.
    Still get:
    There was an error installing this update. Please quit and try again later. Error Code: U44M1I210
    I can install applications but can't update them (OSX 10.9). I guess I could delete and install each time there is an update, but major PITA.
    Unfortunately calling Adobe tech support is a very frustrating experience. I've had dropped calls, had to repeat my information every time (spelling out each letter of my email address with a word) and finally get offered the same solution that doesn't work.
    [edit]
    http://helpx.adobe.com/creative-cloud/kb/update-error-u44m1i216.html
    Fixed my issue
    Message was edited by: liamcampbell

  • Error when installing Lenovo solutions for small business [Screenie included]

    Hello everyone.
    Recently, I tried opening the pre-installed Lenovo solutions for Small Business software on my Lenovo e530 running Windows 7 Professional 64-bit version (Upgraded from Win 7 Home Prem 64-bit) but failed after getting a message for encountering a critical problem of some sort. I then tried restarting my computer and that did not solve the problem. And then, I decided to install an upgrade version of it from this website http://support.lenovo.com/en_US/downloads/detail.p​age?DocID=DS030146. But before that I uninstalled the previous version by uninstalling Intel Small Business advantage customizations with Revo Uninstaller and I deleted all the related folders too with a thorough scan. Out of my expection, I got this message below saying that I could not proceed due to some unspecified error. Has anyone encountered the same problem before? Does anyone have a solution for this? I'm not sure if that's my computer's problem or from the driver itself. Thank you for your attention to this issue.

    Hi, dougy
    This should be configurable under msconfig. This is a program that you can use to tell your computer which programs you want to start when Windows starts. To get to this program, type msconfig into the search bar in the Start menu. A window should appear. Check under the Startup tab and make sure that the Lenovo Solutions for Small Business program does not have a checkmark next to it. This should prevent this program from starting up when your computer turns on.
    Hope it helps,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

Maybe you are looking for