[JS] binary library problem

I have following problem:
I've written code in two files - main script file and library file - which contains all functions and tricks. At this time I don't want client to view the tricks so I decided to hide library in binary file. Unfortunately it doesn't work:
#include "Lib.jsxbin";
f1(){
code
f2(){
code
etc.
all "classified" things are executed in library file.  Are there any limitations in binray files?
thanks
smok

Thanks.
Even if it wasn't what I expected, but I understand, it isn't possible to encode sensitive information in the library.
Well, I have to live with it.
Regards
smok

Similar Messages

  • How to Use a Binary Library

    Hi,
    I am trying to use a binary library (Xerces 2.9.0). I would like to know if there is a way to use this library by putting it in my project path and using an import statement to do so. I did this with a version of entagged and placed it in "lib\\entagged" (where my compiled classes are located) and used the folder hierarchy:
    import lib.entagged.*;Is it possible to do the same with a binary package as in the image linked here:
    http://img251.imageshack.us/img251/441/xercesnm4.jpg
    This would make it easier to compile and use across multiple computers...
    Thanks in advance

    Thanks Peter for the reply
    Peter__Lawrey wrote:
    you are not looking for a standard binary searchI'm not using a binary search in the very common I'm searching for a particular key sense, which is the Collections.binarySearch sense. But binary searches are used in other situations as well. In this case I'm finding a local maximum of a function, I could also be solving f(x)=0... is there a nice generic way to handle other uses of binary search that anyone knows of?
    I would just copy the code from Collections.binarySearch and modify itI have this thing about reusing; just can't bring myself to do that :)
    It would be quicker and more efficient than trying to shoe horn a solution which expects a trinary result.Not sure I understand the last bit. Are you referring to my bastardised compareTo method with only two results? If so, I know, it is ugly! I don't see how it could be less efficient though???
    Thanks,
    Andy

  • The missing library problem.

    I understand that there's already a lot of threads about the sudden disappearance of iTunes libraries, however I'm typing this up because I'd like to point out in a bit more detail what I'm seeing happening to my computer, and maybe have a collective of what's going on. This issue has happened to me five times in the last two months since I've updated to iTunes 11. After searching on google I know the missing library problem has existed since the early 2000s; why this glitch has yet to be fixed 13 years later is beyond me. I have personally never had this problem until updating to 11, and seeing the many other threads on here this appears to me to be an issue with this version of the software more than it has been in previous versions.
    Before I continue, I have tried the following to fix it:
    Simply readded my whole library. It was only wiped again a few weeks later.
    Completely uninstalled and reinstalled iTunes. That didn't work either, so it's not just an updating problem.
    What I haven't tried
    Changing where on my computer iTunes is installed. I have no idea where on the computer might be better or if it will change anything. I have iTunes installed on its default location on my local C: disk.
    Importing the music directly from my iPod into iTunes. Can this be done? If so, how? Not everything on my iTunes is a store purchase, most of it is imported CDs and also amazon purchases too. So I don't know if the transfer purchases option works. While this wouldn't fix this current issue, I would like to know how to do this if possible since it would just be a quick fix whenever this happens.
    What is happening:
    So each time this has happened, what occurs is that like many other people, one day I open my iTunes and everything is in order. Then the next, for no reason, all of my libraries are gone but the music is still on my computer, organized in their files the way iTunes had them done so upon importing. I can't use the .itl files in the "previous libraries" folder because they have also been re-written. Upon opening them, even if their last save was on a day I know everything was in working order, opening them does nothing but give me the same blank default page.
    What isn't mentioned in a lot of the posts regarding this issue, is the sudden crop of temporary files in the iTunes folder.
    The ones that have cropped up for me personally are the following:
    iT 1.tmp
    iT 2.tmp
    iT 3.tmp
    iT 4.tmp
    Temp file 1.tmp
    Temp file 2. tmp
    Those were not there the last time I used iTunes, and they're never there on the days I've used it before and it has worked correctly. However every time my library is wiped, these files suddenly appear without fail, every time. I can't open them, I can't do anything with them except delete them. I believe I remember reading somewhere that this might be an issue regarding with how the program is saving the progress of your library changing, and that the temp files are there until it can "officially" save what has happened to your library. While I didn't change anything in my library in the last couple of weeks, I'm assuming this also counts things like play count.
    My own personal opinion
    Seeing just how many threads with this issue are popping up, this leads me to believe that this isn't just a problem with my personal computer or my personal install of iTunes 11. These temp files also lead me to believe that as well. In other words, whatever glitch has existed with iTunes since the early 2000s is for some reason running rampant in version 11.
    TL;DR:
    Please developers, actually look at this library glitch within the program itself. It can't just be an individual user's problem because way too many people are experiencing it.

    No worries. You've probably run into one the other threads I've posted to but I'll add my thoughts here anyway...
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.
    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    Alternatively, depending on exactly when and why the library went missing, there may be a more recent .tmp file in the main iTunes folder that can be copied and renamed as iTunes Library.itl to restore the library to an earlier state. Look for a recent .tmp file that is similar in size to the .itl files in the Previous iTunes Libraries folder. If it has happened repeatedly you may want the earliest such file generated since the last iTunes upgrade.
    If applicable, see iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device.
    I've noticed more of these missing library posts of late and a common factor to most since I started asking is AVG Anti-Virus. It seems in some cases it might be at least part of the reason why the library file disappears. Try excluding the iTunes folder from any AV scanning process.
    tt2

  • Ovi Suite 3.0.0.290 - Music library problems...

    Hello,
    Just bought a Nokia E5, looks to be a sweet phone so far...
    Only, Ovi Suite is just annoying. Very slow on communicating with the phone (USB connection) and some big problems.
    Impossible to delete music from the library ! How is that ?? And also the library takes ages to add a new folder.
    Also, not seeing the playlist i've made on the phone ? Either on mass storage connection, in the playlist folder of the phone, nothing... But should be on a other threat.
    Hope you can solve the library problem because it's quite annoying.
    Thanks in advance for any answers.

    @satari
    Yeah, alright already!
    We get that without you plastering this message over EVERY single thread dealing with issues of that truly useless and pathetic piece of  software called Ovi-Suite.
    Especially since the new version DOES NOT SOLVE ANY OF THE ISSUES AT HAND IN THE THREADS YOU MASS PASTED INTO!
    Ovi-Suite 3.x still no longer syncs music, which IMHO is a basic function. Who on earth wants to be forced to manually update the phone playlists and songs whenever songs are added on the PC? That is beyond backwards.
    Hello? It's 2011, not 1991.
    Ovi Suite 3.x still randomly refuses to add songs to the library on the PC (e.g. it skips several songs from an album folder, yet they play fine when added to the phone manually outside Ovi-Suite), an issue that can only be corrected by deleting the entire library on the PC and recreating it. A "repair library" function is notoriously absent.
    I'd like a so called Smartphone to make tasks easier and more comfortable instead of harder.
    Newer Nokia handsets may be slightly less bad, but the N97 with Ovi-Suite is still the smartphone/desktop combo from hell.
    The fruit phone/ITunes combo is sadly restricted by the greed and desire to control everything of Apple, but at least the products work reliably and consistently for the most part. The same is true for 'Droid devices.
    Ever seen a black lemon? They turn black when they rot. My N97 is black. 'nuff said

  • Older itune version 10.6 trying to reinstall, library problem?

    I reinstalled older itune version 10.6 on Win7 after I reformatted the drive.
    1. Now i have a  library problem? the itunes will not open and i get a message "itunes library.itl" is from newer pgm. how can i work around it?
    2. i want to restore my itunes music library like it was before with the old libray i had from my backup, how can i do that?

    your serial number is for an upgrade version.  you need to prove you have a qualifying upgrade product.
    after you enter your upgrade serial number and the installer failing to find a previous version, you should be given the option to choose the previous version and enter its (the older version's) serial number.
    if that's not working, what version are you trying to install and why didn't the above work?

  • Compiling Universal Binary library on Leopard

    I'm trying to compile the freetype library on Leopard for use as a Universal Binary library, however I'm having some make trouble.
    I'm trying to pass options to the CC environment variable, but that always seems to result in a "libtool: link: `/Users/matt/Workspace/freetype/freetype-2.3.7/objs/ftsystem.lo' is not a valid libtool object" error, after which make fails.
    This is the result of doing a simple:
    ./configure
    make "CC=cc"
    OR
    ./configure
    make "CC=cc -arch i386"
    Just doing a configure and make works ok (without CC) but I can only ever compile an i386 library this way. Configuring the the ppc build/host system options, and then doing make "CC=cc -arch ppc" results in the exact same error. Why doesn't it like cc?

    Usually setting CFLAGS to something like "-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -mmacosx-version-min=10.4" for both the compile and build steps does the trick. However, not all "configure-based" packages are equal.

  • WS7, PHP addon and GD image library problem

    Hi,
    I have Solaris 10 and WS7u1 with PHP addon installed.
    My problem is that I just can't get GD library to working with php?
    I have installed libgd and put extension=libgd.so to php.ini, but it seems that php doesn't read that extension part at all or at least it doesn't work.
    Also extension_dir points to place where libgd.so is located.
    I'm little bit frustrated with this problem.
    BR
    Jari

    Well ... I'm not an expert PHP user, just someone that uses it with WS7 a lot.
    Some digging tells me that this might work:
    o Compile the php module (you can't use system gd.so)
    o Unpack PHP source to some dir (use the same version of PHP as already installed)
    o cd php-gd
    o ./configure prefix=/tmp/php-gd with-gd=shared with-jpeg-dir=/usr with-zlib
    o make
    o Search the build location for gd.so
    o Copy it your extension dir and it should work
    How I set the location of my php.ini file is in my Service fn=responder-fastcgi line I have:
    app-env="PHPRC=/export/WS7/https-www/config"
    This tells the PHP engine to look in this dir for my php.ini.
    Within my php.ini file I have this set:
    extension_dir=/export/WS7/third-party/php/
    extension=apc.so
    This sets the extension dir location, and then loads apc.so from that dir.
    So munging all this together should get you the gd.so that you compiled above. ... Or not. ... Maybe. ... I haven't actually tried that first part. I just compile GD into my PHP binary directly.

  • Binary compatibility problems using Sun Studio 12

    I'm working in a project that uses Orbix [1] third-party libraries. I have installed the Sun Studio 12 on Solaris 10 SPARC but I have got some strange segfault problems (the exactly same code works fine in a Linux box - using g++). I read the 1.4 section of Sun Studio 12 C++ Userguide [2] but I have a doubt:
    Is there no way to compile my code using Sun Studio 12 using shared libraries compiled against earlier Sun Studio C++ compiler versions (like Sun Studio 8 or some version before Sun Studio 11)?
    I think my problem is related to the fact that Orbix team used Sun Studio 8 as some notes found in their headers indicate:
    "IONA Technologies ART IDL Compiler POA C++ Generator asp 6.3.3 SunOS 5.8 CC_5.5 2008/06/13 21:04:37 EDT"
    A secondary question: Is CC 5.5 present in Sun Studio 8, right?
    Can anyone help me? Every tips are welcome :) Thanks in advance!
    [1] http://web.progress.com/en/orbix/orbix_standard.html
    [2] http://docs.sun.com/app/docs/doc/820-7599/6nirkt6f7?a=view

    AmadeuBarbosa wrote:
    I'm working in a project that uses Orbix [1] third-party libraries. I have installed the Sun Studio 12 on Solaris 10 SPARC but I have got some strange segfault problems (the exactly same code works fine in a Linux box - using g++). I read the 1.4 section of Sun Studio 12 C++ Userguide [2] but I have a doubt:I don't think 1.4 Binary Compatibility Verification applies in your case. It's referring to processor capability to execute certain (new) instructions; if your third-party libraries were compiled a while ago, it's highly unlikely they use instructions not implemented by the processor you have.
    Is there no way to compile my code using Sun Studio 12 using shared libraries compiled against earlier Sun Studio C++ compiler versions (like Sun Studio 8 or some version before Sun Studio 11)?Generally speaking, any library compiled with older Sun Studio C++ compiler is supposed to be compatible with any library or executable compiled with newer version provided that all parties did everything right. For example, that third-party libraries should not be statically linked with C++ run-time support libraries; your executable should be linked with latest compiler driver (CC) so that it records correct dependencies on support libraries.
    Of course, there could be (and actually are) compiler bugs standing in the way of compatibility. Some of them can be fixed, some - like demangler issue described in http://docs.sun.com/source/820-4155/c++.html - can't. There is no easy way to tell if you hit a compiler bug or bulding/linking issue, or bug in the code that was previously unseen.
    I think my problem is related to the fact that Orbix team used Sun Studio 8 as some notes found in their headers indicate:
    "IONA Technologies ART IDL Compiler POA C++ Generator asp 6.3.3 SunOS 5.8 CC_5.5 2008/06/13 21:04:37 EDT"Yes, looks like it was compiled by 5.5, which is part of Sun Studio 8
    >
    A secondary question: Is CC 5.5 present in Sun Studio 8, right?That's correct.

  • Library problems with two XP user accounts accessing music in shared folder

    I'm sorry if this has already been answered; I have not been able to find the answer. My wife and I each have a different user account on the same Windows XP machine. I recently combined our iTunes libraries into the shared folder on the computer. I correctly pointed iTunes (in each of our accounts) to the correct location for the music files. I did an "Add Folder to Library" to make sure each account had all of the music. When I did this, I got duplicate listings of all of the songs that also had exclamation points. When I did a "Get Info" on these songs, I found that each song was correctly pointed to the correct file location. I laboriously deleted each "exclamation point" song one at a time (in each account). Now the problem I have is that whenever my wife or I close iTunes and the other person opens iTunes in their XP user account, none of the songs can be found. The best way I've been able to resolve this is to (unfortunately) delete the entire library, and do an "Add Folder To Library" to find all of the song locations and include all of the songs back into the library. Surely this can't be how this is supposed to work.
    So, my questions are:
    - Do I need to add new albums / songs one at a time to avoid duplicates (rather than use the "Add Folder" for the entire iTunes music folder again)?
    - How do I setup iTunes so that my wife and I can each go into iTunes in our seperate XP accounts and have all of our songs right where we left them (WITHOUT having to delete the entire libary and "add" again.)
    FYI: I'm using the latest version of iTunes and (again) I'm using Windows XP.
    My wife and I really want to each get a new iPod Nano, but if I can't trust iTunes... forget it.
    THANKS!!!

    I have this setup at working. Two accounts with all files stored on a shared folder, mine is a network drive. Each account has its own library and can access all files. We also use one iTunes account for rare purchases.
    This is how did initial setup:
    Make a folder in the shared folder. I called mine itunes.
    This is where iTunes stores its files.
    With second account point iTunes at shared folder.
    Import the folder you created earlier.
    This worked for me without duplications. The only complication is that when importing from CD with one account the other doesn't know it. The other account must do import on the folder for the CD just imported. We keep track of this with a spreadsheet updated to show which account has which CD files.

  • Shared library problem

    After messing around with fonts i ended up with this problem: i cant start gdm.
    here's the message i get:
    /usr/sbin/gdm-binary: error while loading shared libraries: libfreetype.so.6: cannot open shared object: no such file or directory
    tried to install some fonts - same error.
    tried to update font cache - same error.
    I open up gdm-binary in Midnight Commander and its all like Greek/Chinese in there.
    Any help would be good, thank you for your time
    Last edited by nikchris (2008-04-11 15:45:49)

    pacman -S freetype2

  • Oracle 9.2.0.8 Binary Data Problem

    Hi Folks,
    need some advice from the experts here about an error I got yesterday while installing a (Java-based) Software at a customer using Oracle 9.2.0.8.
    While being able to work with the database most of the time, I get an error when trying to save binary data. Unfortunately I don't have access to the DB-logs, so I hope the log I have may raise a thought or two from anybody and that may help me bring some light into the darkness I'm poking in at the moment.
    <log>
    java.sql.SQLException: No more data to read from socket
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
         at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:962)
         at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:894)
         at oracle.jdbc.ttc7.Oclose.receive(Oclose.java:103)
         at oracle.jdbc.ttc7.TTC7Protocol.close(TTC7Protocol.java:693)
         at oracle.jdbc.driver.OracleStatement.close(OracleStatement.java:731)
         at oracle.jdbc.driver.OraclePreparedStatement.privateClose(OraclePreparedStatement.java:535)
         at oracle.jdbc.driver.OraclePreparedStatement.close(OraclePreparedStatement.java:440)
         at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.close(DelegatingStatement.java:168)
    </log>
    I searched around and got some results about
    - codepage: The DBA told me that the DB is using "cp1252", so I tried to use both ISO-8859-1 and UTF-8 (both are supported by the application)
    - Session Management: Tried to raise/decrease the limits for idle/maximum connections and the DBA told me to set the parameter "SESSION_CACHED_CURSORS=0", but unfortunately this is not possible when using a connection URL "jdbc:oracle:thin:@..."
    So... if anybody has an idea what to check or ask the DBA to change or almost anything, I'd kindly welcome the feedback.
    Thanks,
    enni

    Hi Sybrand,
    thank you for your clarification for the codepage!
    And no, I don't think that I found a new issue, just wasn't able to find a good answer on the net and after trying to get an evaluation copy (just for the install and first tests) of Oracle 9, the support told me "No way.".
    And yes, you're definitely right, it should be buried.
    But we all know that there are companies out there that allow new applications tests on thier "good'old" DB. Guess that is exactly what happens here.
    Maybe somebody else reads this and had similiar problems in the past, so I keep this "open" for just some more time.
    Thanks,
    have a good time!
    enni

  • Upgrading my Computer and have a corrupt library problem...

    I am upgrading my Macbook Pro, which is almost 2 years old, to a newer model. I am currently using Aperture 1 but will have Aperture 2 on my next computer.
    Now my current problem is a corruption in my library that causes Aperture to crash every time I restart it. The only way I have found around this is to delete the aperture.aplib file and rebuild my library every time I have to restart.
    Obviously when I get my new laptop I plan on transferring all my files over to it. The question is, should I just risk it and see if upgrading the library to Aperture 2 on a new computer fixes my problem, or is there some way I could troubleshoot the problem before my new computer arrives. I've tried to locate the corrupted files with no luck and I've restored the library maybe 30 times by now.
    Any advice would be very much appreciated.
    Thanks,
    Tom

    I'd try making a second Library, then systematically exporting each Project form the old Library to the new one. This should at least diagnose which Project may be causing problems.
    Obviously, you're going to need plenty of free HD space...
    Ian

  • N96 Music Library Problems

    Hi Guys n Gals
    Have a problem with my music library it won't refresh. the refresh bar will come up but it doesn't update and doesn't finish I have to manually stop it.
    I have cleared the majority of my music on the phone all bar the preinstalled stuff and a few downloads from the music store (no more than 15)
    I had a look on the board for people with the same problem and I tried the deletion of the 3 "private folder" files then perform a refresh.  My problem is that I started the refresh 12 hours ago - AND ITS STILL GOING!!!
    I'm thinking of taking a full backup of my phone via pc suite performing a reinstall of the latest firmware restoring the files and hoping for the best!
    Anyone got any solutions that do involve sending it for repair I've already had it away before for numerous other things and don't wanna part with if again if I can resolve it myself.
    Thanks xox
    I love my N96.... WHEN IT WORKS!!!!!

    13 hours is way, WAY too long
    When I said a long time, I meant like 10 minutes!
    I was going to suggest that maybe it was too many files in a single folder - used to be something that caused similar problems - however, if you've deleted all the music, that obviously can't be it.
    Have you tried a factory reset?  There's a menu option under something like Tools .. Settings .. General or there are the *# numbers or the 3 finger salute.

  • Binary data problem with web services on JRockit but not Sun JDK

    I have a problem with binary data in SOAP and JRockit
    (jrrt-3.0.0-1.6.0-linux-x64.bin) . I have an set of web services based
    on EJB 3.0 which return images as byte arrays inside a SOAP envelope
    to be consumed by .NET 2 services. The host app server is Oracle
    Application Server 10.3.1 on RHEL Linux update 4, on 64 bit Xeon 5500
    series HP blade hardware.
    While most images are fine most of the time, one particular image
    gives this message when being consumed in the .NET client:
    The '■' character, hexadecimal value 0x1F, cannot be included in a
    name. Line 2, position 380038.
    The MSDN suggests that this is usually caused by non-escaping of reserved XML characters like < but this isn't one of those.
    The SOAP looks ok and for the life of me I can't see why this ought to
    be a problem, especially since the problem doesn't arise running with
    the SUN JDK 1.6_06 64 bit)
    When making the same call from the OAS Enterprise Manager, I can make the same call with no problem (but the data is just rendered as character data in a browser) which maybe suggests some incompatibility with how JRockit is serializing the data ?
    Any ideas, I would be very happy to hear - JRockit gives a 15% or so
    speed boost to the website that these services power so obviously we
    want to use it if possible.
    Edited by: RichLiv on Nov 14, 2008 4:54 AM

    Seems to be the case that using MTOM stops this problem with JRockit. Strange but apparently true (so far).

  • Import Tag library problem in JDeveloper 10.1.3.3.0

    I want to have an FCKEditor on a JHeadstart generated page, so I downloaded the FCKFaces jar with the tag library in it.
    When I try to add the FCKFaces tag library to my project, doing just that and not modifying any code, when I run my application after that I get an empty page... No data in the project. This is very confusing because everything works well, no code errors, the fck library is found and auto completion works with the library.
    So when I have the empty page, to view the JHeadstart page again I just have to shut down JDeveloper, go to the project/web-inf/lib directory and delete the FCKFaces jar. When I do that and start up again, the page loads successfully.
    Thanks for the help in advance..

    Thanks for your reply.
    I tried your solution but still the same problem remains.. I don't have a clue what's wrong with the project, everything works well except for that the page's aren't rendered on execution.

Maybe you are looking for

  • When i use Adobe Premiere Elements 10, after about 10 minutes it stops working please help

    I recently purchesed Adobe premiere elemnts 10 and it installed correctly, and it loads up fine but once i start putting video together, it starts to mess up, the video i cant watch because its very slow and jumpy and then after a few minutes of me e

  • MacbookPro won't play some DVDs

    Hello - I"m having issues with my Macbook Pro playing a recently purchased DVD.  When the DVD is inserted, the stock DVD player software will not play the disc.  I returned the originally purchased disc and exchanged it to no avail.  I have since con

  • Help! How do I edit existing iWeb pages from new computer?

    I'm up a creek. I have a ton of pages published through iWeb using my desktop iMac G4. Recently the hard drive died. Eventually I'll have the hard drive replaced and files extracted, but in the meantime I don't know how to access my iWeb pages. I'm u

  • Duplicate file detection and removal across multiple volumes?

    hello there i use decloner, for duplicate file removal.. it works great for removing duplicates on the same volume, unfortunately, i have a mac pro with multiple hdds and want to run a duplicate search which includes every hard drive, which decloner

  • APIs for accessing the ESS log and output files from UCM

    Hi, As I understand, the output and log files of an ESS job will be uploaded to UCM. We have a requirement where in we are building a simple error handling framework, which gets triggered after a series of ESS jobs are run. In the error handling fram