What is wrong with adding a BLOB column?

What is wrong with adding a BLOB column?
SQL>  alter table employee_dp add photo(blob(3000000);
alter table employee_dp add photo(blob(3000000)
ERROR at line 1:
ORA-00902: invalid datatype
SQL> alter table employee_dp add photo bolob(3000000);
alter table employee_dp add photo bolob(3000000)
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option

Hi jetq,
Don't give length.
SQL> alter table t add photo blob;
Table altered.Regards
Peter

Similar Messages

  • What's Wrong with My Computer?

    I have a G5 desktop computer, I believe it's referred to as a "Power Mac." My mom purchased it some years ago, I think in late 2005 shortly after this particular model was on the market.
    Info is:
    Version 10.5.8
    Processor 4 x 2.5 GHz PowerPC G5
    Memory 4.5 GB DDR2 SDRAM
    Hard Drive 240 GB (127 GB unused/available)
    My mother wasn't using this computer for many years, and my 13" Macbook was giving me trouble, so she gave this one to me. It's all been great (she maxed out the memory and hard drive space when she bought it, even though it is outdated and insignificant compared to current models), except for one little thing... Browsing the internet is usually fine when it's only one window, but not always. However, it is almost a guarantee that while trying to operate multiple windows and trying to play a video, Safari will crash. And not just once in awhile. I'm talking about on a daily basis. During regular offline computer use, like Photoshop or iTunes, the computer will sometimes grey over (as if someone put a fairly thick grey film over the entire screen), and tell me I have to restart the computer. So what's wrong with it? I presume it is a physical issue (failing memory, mother board, etc.), but what?

    Your computer is not remotely "maxed out" with RAM.
    You're describing a G5 Quad like mine (though mine was built in June of 2006), and maxed out means having 16 GB of RAM installed, like mine has.
    The Frolick wrote:
    …the computer will sometimes grey over (as if someone put a fairly thick grey film over the entire screen), and tell me I have to restart the computer. So what's wrong with it?…
    That's called a Kernel Panic, and, yes, it is most often caused by hardware problems, such as bad RAM or mismatched RAM.  I can't imagine how you get to 4.5 GB of RAM without exponentially increasing the risk of mismatched RAM.
    RAM has to be installed in matched pairs, starting from the center slots and spreading outward: 4*3*2*1*1*2*3*4
    On the other hand, my own personal experience has led me to conclude that Safari is a piece of cr@p.  It causes problems just being active in the background, causing other applications to fail.
    Check your RAM carefully, starting with just one pair of matched RAM sticks in the two center slots, then adding one pair at a time.  Check your hard disk with Apple's Disk Utility.
    The kernel panics can be caused by a damaged directory too, so if you own Disk Warrior, run it.  If you don't own DiskWarrior, at least Repair Permissions with Apple's Disk Utility and use Verify Disk/Repair Disk with it.
    I'd also recommend downloading and installing Applejack and run it according to the instructions.
    Good luck.
    2.5 GHz Power Mac (PPC) G5-Quad; 16GB RAM; mutant, flashed 550MHz nVidia GeForce 7800GTX 1,700MHz 512MB VRAM; ATTO ExpressPCI UL5D LP SCSI card; Mac OS X Tiger 10.4.11 and Leopard 10.5.8 boot drives; Spotblight, Dashboard and Time Machine permanently disabled; dual 22" CRT monitors; USB wireless 'n' available but connected to the Internet via wired Ethernet; FW flatbed scanner; 2 SCSI scanners (one tabloid-size transparency scanner and a film scanner); various internal & external HDs; FW Epson 2200 and Ethernet Samsung ML-2850ND printers; 2 X Back-UPS RS 1500 XS units.

  • What's wrong with this function

    What's wrong with this Function(PL/SQL) in this formaula column definition in Reports 6i
    function currdateFormula return Date is
    curr_date date;
    begin
    select to_char(sysdate, 'DD-MM-YYYY') into curr_date from dual;
    return(curr_date);
    end;
    I get the following error in compiling
    REP-1401. 'currdateformula'.Fatal PL/SQL error occured. ORA-01843 not a valid month.
    The SQL select to_char(sysdate, 'DD-MM-YYYY') from dual; worked well in SQL Plus prompt.
    I got a clean compile when i use just sysdate in the function (see below).
    function currdateFormula return Date is
    curr_date date;
    begin
    select sysdate into curr_date from dual;
    return(curr_date);
    end;
    Appreciate your help
    Raja Lakshmi

    hello,
    what you are trying to do :
    fetch the current date and return it as the result of the formula-column.
    what you are actually doing :
    fetch the current date, convert it to text, assign this text to a date-variable which causes an implicit type-conversion.
    in your case you create a date-string with the format dd-mm-yyyy. the implicit conversion then tries to convert this string back to date using the NLS settings of your session. depending on your NLS_LANG and NLS_DATE_FORMAT this might work, if your session-date-format is dd-mm-yyyy which obviously it is NOT as you get the error.
    what you should do :
    select sysdate into curr_date from dual;
    this fetches the sysdate and stores it in your date-variable. there is no type conversion needed what so ever.
    regards,
    the oracle reports team

  • What's wrong with this SQL?

    what's wrong with this SQL?
    Posted: Jan 16, 2007 9:35 AM Reply
    Hi, everyone:
    when I insert into table, i use the fellowing SQL:
    INSERT INTO xhealthcall_script_data
    (XHC_CALL_ENDED, XHC_SWITCH_PORT, XHC_SCRIPT_ID, XHC_FAX_SPECIFIED)
    VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N'
    FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION
    SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
    I always got an error like;
    VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT,
    ERROR at line 3:
    ORA-00936: missing expression
    but I can't find anything wrong, who can tell me why?
    thank you so much in advance
    mpowel01
    Posts: 1,516
    Registered: 12/7/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:38 AM in response to: jerrygreat Reply
    For starters, an insert select does not have a values clause.
    HTH -- Mark D Powell --
    PP
    Posts: 41
    From: q
    Registered: 8/10/06
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:48 AM in response to: mpowel01 Reply
    Even I see "missing VALUES" as the only error
    Eric H
    Posts: 2,822
    Registered: 10/15/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:54 AM in response to: jerrygreat Reply
    ...and why are you doing a UNION on the exact same two queries?
    (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:55 AM in response to: mpowel01 Reply
    Hi,
    thank you for your answer, but the problem is, if I deleted "values" as you pointed out, and then execute it again, I got error like "ERROR at line 3:
    ORA-03113: end-of-file on communication channel", and I was then disconnected with server, I have to relogin SQLplus, and do everything from beganing.
    so what 's wrong caused disconnection, I can't find any triggers related. it is so wired?
    I wonder if anyone can help me about this.
    thank you very much
    jerry
    yingkuan
    Posts: 1,801
    From: San Jose, CA
    Registered: 10/8/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:59 AM in response to: jerrygreat Reply
    Dup Post
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:00 AM in response to: Eric H Reply
    Hi,
    acturlly what I do is debugging a previous developer's scipt for data loading, this script was called by Cron work, but it never can be successfully executed.
    I think he use union for eliminating duplications of rows, I just guess.
    thank you
    jerry
    mpowel01
    Posts: 1,516
    Registered: 12/7/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:03 AM in response to: yingkuan Reply
    Scratch the VALUES keyword then make sure that the select list matches the column list in number and type.
    1 insert into marktest
    2 (fld1, fld2, fld3, fld4, fld5)
    3* select * from marktest
    UT1 > /
    16 rows created.
    HTH -- Mark D Powell --
    Jagan
    Posts: 41
    From: Hyderabad
    Registered: 7/21/06
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:07 AM in response to: jerrygreat Reply
    try this - just paste the code and give me the error- i mean past the entire error as it is if error occurs
    INSERT INTO xhealthcall_script_data
    (xhc_call_ended, xhc_switch_port, xhc_script_id,
    xhc_fax_specified)
    SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
    hh_switchport, hh_script, 'N'
    FROM tmp_healthhit_load
    WHERE hh_script != 'BROCHURE'
    UNION
    SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
    hh_switchport, hh_script, 'N'
    FROM tmp_healthhit_load
    WHERE hh_script != 'BROCHURE';
    Regards
    Jagan
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 11:31 AM in response to: Jagan Reply
    Hi, Jagan:
    thank you very much for your answer.
    but when I execute it, I still can get error like:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    so wired, do you have any ideas?
    thank you very much

    And this one,
    Aother question about SQL?
    I thought I already told him to deal with
    ORA-03113: end-of-file on communication channel
    problem first.
    There's nothing wrong (syntax wise) with the query. (of course when no "value" in the insert)

  • What is wrong with my video on Skype?

    what is wrong with my vedio on skype
    This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited to differentiate the post from other inquiries and to reflect the post's content. A link to this post appears where the post was originally added.

    Hello 087..., and welcome to the Community,
    Thanks for your inquiry.  In order for the Skype Community to help you, some more information would be helpful:
    - Hardware use (laptop/phone/tablet brand and model)
    - Operating system (version and updates installed)
    - Skype version used
    - Internet connection used
    - Any error messages you see; a screen shot would also be helpful (as long as no personal information is shown)
    Thanks in advance.
    - Skype Community Moderation Team
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • What's wrong with my vi

    What's wrong with my VI?
    When i'm using a string control to select on the case structure, my vi  is working as expected. But when i'm using the output of the read visa which outputs exactly the same string as the one i used in control string, the vi is not working as i expect it.
    The output of the read visa string is "HP8593E", an id query from agilent spectrum analyzer.
    thank you for your help..
    JLS
    Solved!
    Go to Solution.

    altenbach wrote:
    crossrulz wrote:
     I recommend using a Trim Whitespace on the string going into your case selector to remove this End Of Line.
    I agree that trim whitespace should be all you need. For good measure, you should also set the case structure for case insensitive matching.
    The instrument's FW has a 50 char buffer for the ID response.  Without knowing the exact FW on the device the ranged case is recommended.   HP has a nasty habit of adding fields where buffers exist (And sometimes even entire alternate language support SCPI) so, a response of "ModelID, FWVER, SER" is to be expected in later FW  "HP8593E..HP8593E\FF" permits this flexibility.  (Especially since the instrument is obsolete and you don't know what FW is on the next device you can buy.)   It may cost just a bit in performace Really? a nanosecond or two for each ID?  we don't ID? the device a million times, it will not impact test cycle time.  Yes a Case insensitive match would be perfered.  Match pattern may be better.
    Its not all that often I would disagree with the two of you...But in this instance
    Jeff

  • What's wrong with my multi-threaded Matrix Mult. code? 1 thread is fastest

    For some reason, 1 thread performs the best. What's wrong with my implementation?
    import java.util.Random;
    import java.util.Date;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.TimeUnit;
    public class Matrix {     
         private int values[][];
         private int rows;
         private int columns;
         public Matrix(int r, int c) {
              this.rows = r;
              this.columns = c;
              this.values = new int[r][c];
         private void randomize() {
              Random generator = new Random();
              for (int r = 0; r < this.rows; r++) {
                   for (int c = 0; c < this.columns; c++) {
                        this.values[r][c] = generator.nextInt(10);
         public String toString() {
              String out = "";
              for (int r = 0; r < this.rows; r++) {
                   for (int c = 0; c < this.columns; c++) {
                        if (c == 0) out += "[";
                        else out += "\t";
                        out += this.values[r][c];
                   out += "]\n";
              return out;
         public boolean equals(Object obj) {
              Matrix other = (Matrix) obj;
              if (this.columns != other.columns || this.rows != other.rows)  {
                   return false;
              for (int r = 0; r < this.rows; r++) {
                   for (int c = 0; c < this.columns; c++) {
                        if (this.values[r][c] != other.values[r][c]) {
                             return false;
              return true;
         // matrix multiplication using single thread
         public Matrix times(Matrix other) {
              assert(this.columns == other.rows);
              Matrix out = new Matrix(this.rows, other.columns);
              for (int r = 0; r < this.rows; r++) {
                   for (int c = 0; c < other.columns; c++) {
                        int dotProduct = 0;
                        for (int z = 0; z < this.columns; z++) {
                             dotProduct += this.values[r][z] * other.values[z][c];
                        out.values[r][c] = dotProduct;
              return out;
         // matrix multiplication with many threads
         public Matrix ptimes(Matrix other, int numberOfThreads) throws InterruptedException { // parallel
              assert(this.columns == other.rows);
              Matrix out = new Matrix(this.rows, other.columns);
              ExecutorService threadExecutor = Executors.newFixedThreadPool(numberOfThreads);
              for (int r = 0; r < this.rows; r++) {
                   for (int c = 0; c < other.columns; c++) {
                        threadExecutor.execute(new HelperThread(r, c, this, other, out));
              threadExecutor.shutdown();
              threadExecutor.awaitTermination(2, TimeUnit.DAYS);
              return out;
         private class HelperThread implements Runnable {
              private int row;
              private int col;
              private Matrix a;
              private Matrix b;
              private Matrix out;
              HelperThread(int r, int c, Matrix a, Matrix b, Matrix o) {
                   this.row = r;
                   this.col = c;
                   this.a = a;
                   this.b = b;
                   this.out = o;
              public void run() {
                   int dotProduct = 0;
                   for (int z = 0; z < a.columns; z++) {
                        dotProduct += this.a.values[row][z] * this.b.values[z][col];
                   this.out.values[row][col] = dotProduct;
         public static void main(String[] args) throws InterruptedException {
              int size = 100;
              Matrix a = new Matrix(size, size);
              a.randomize();     
              Matrix b = new Matrix(size, size);
              b.randomize();
              for (int t = 1; t < 15; t++) {
                   long start = new Date().getTime();
                   System.out.print(t + " threads: ");
                   Matrix c = a.ptimes(b, t);
                   //System.out.println(c);
                   long finish = new Date().getTime();
                   System.out.println((finish - start) + " milliseconds");
                   Matrix d = a.times(b);
                   assert(c.equals(d));
    }

    This one is even faster. On my dual core I get:
    Warmup
    Single Threaded
    5.20616 milliseconds
    5.52872 milliseconds
    5.12708 milliseconds
    5.59048 milliseconds
    5.16104 milliseconds
    5.1838 milliseconds
    5.37104 milliseconds
    5.1788 milliseconds
    5.18636 milliseconds
    5.15736 milliseconds
    Multi Threaded with 2 threads
    3.22184 milliseconds
    2.86552 milliseconds
    2.86284 milliseconds
    3.67032 milliseconds
    3.08032 milliseconds
    2.97388 milliseconds
    2.93084 milliseconds
    3.44012 milliseconds
    2.89744 milliseconds
    2.88136 milliseconds
    As you can see the Multi-Threaded versions are now faster.
        // matrix multiplication with many threads
        ExecutorService threadExecutor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
        public Matrix ptimes(Matrix other) throws InterruptedException, ExecutionException {
            assert (this.columns == other.rows);
            Matrix out = new Matrix(this.rows, other.columns);
            Future futures[] = new Future[rows];
            for (int r = 0; r < this.rows; r++) {
                futures[r] = threadExecutor.submit(new HelperThread(r, this, other, out));
            for(Future f : futures) {
                f.get();
            return out;
        private class HelperThread implements Callable<Object> {
            private int row;
            private Matrix a;
            private Matrix b;
            private Matrix out;
            HelperThread(int r, Matrix a, Matrix b, Matrix o) {
                this.row = r;
                this.a = a;
                this.b = b;
                this.out = o;
            public String call() throws Exception {
                int dotProduct = 0;
                for (int c = 0; c < b.columns; c++) {
                    for (int z = 0; z < a.columns; z++) {
                        dotProduct += this.a.values[row][z] * this.b.values[z][c];
                    this.out.values[row][c] = dotProduct;
                return null;
        public static void main(String[] args) throws InterruptedException, ExecutionException {
            int size = 100;
            Matrix a = new Matrix(size, size);
            a.randomize();
            Matrix b = new Matrix(size, size);
            b.randomize();
            System.out.println("Warmup");
            for (int t = 0; t < 1000; t++) {
                Matrix c = a.ptimes(b);
                Matrix d = a.times(b);
                assert (c.equals(d));
            System.out.println("Single Threaded");
            for (int t = 0; t < 10; t++) {
                long start = System.nanoTime();
                Matrix d = a.times(b);
                long finish = System.nanoTime();
                System.out.println((finish - start)/1000000.0 + " milliseconds");
            System.out.println("Multi Threaded with " + Runtime.getRuntime().availableProcessors() + " threads");
            for (int t = 0; t < 10; t++) {
                long start = System.nanoTime();
                Matrix c = a.ptimes(b);
                long finish = System.nanoTime();
                System.out.println((finish - start)/1000000.0 + " milliseconds");
                Matrix d = a.times(b);
                assert (c.equals(d));
            System.exit(0);
        }

  • What's wrong with my store procedure?

    HI, I can't figure out what's wrong with my stored procedure. I believe i have a "commit;" where it's not supposed to be. What i really want to acheive is save the record once it finds those keywords. Maybe my syntax is all wrong.
    I am getting the following error msg. PLS-00103
    create or replace
    procedure sp_diag is
    DECLARE
    v_setting_key NUMBER(18);
    v_parent NUMBER(22);
    v_name VARCHAR2(100);
    v_class_key NUMBER(22);
    CURSOR c1 IS
    select setting_key, setting_class_key,name
    from cms2wire.setting_list;
    CURSOR c2 IS
    select setting_class_key, parent_class_key,name
    from cms2wire.setting_class
    where setting_class_key = v_parent;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 into v_setting_key, v_parent, v_name;
    EXIT when c1%NOTFOUND;
    WHILE v_parent != null
    LOOP
    OPEN c2;
    FETCH c2 into v_class_key, v_parent, v_name;
    CLOSE c2;
    IF v_name='Diag.'or v_name='Settings.' THEN
    COMMIT;
    END IF;
    END LOOP;
    END LOOP;
    CLOSE c1;
    END;
    -------------------------------------------------------------------------------------

    Now, the way I see it, if you want to save the information, then you need to put it some place, so your slow-by-slow stored procedure becomes something like
    INSERT INTO some_table (column list)
      SELECT a.setting_key,
             a.setting_class_key,
             a.name
             b.setting_class_key,
             b.parent_class_key,
             b.name
        FROM cms2wire.setting_list  a,
             cms2wire.setting_class b
       WHERE a.setting_class_key = a.setting_class_key
         AND b.name in ('Diag.', 'Settings.');
    COMMIT;does it not?

  • What's wrong with this content type definition?

    Could someone tell me what's wrong with this content type definition? When I click "New Folder" in a custom list, it should bring two fields 1) Name 2) Custom Order. However in my case when I click new folder, I see 1) Member (which is totally
    weird) 2) custom order. Where is it getting that Member field from?
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Folder (0x0120) -->
    <ContentType ID="0x012000c0692689cafc4191b6283f72f2369cff"
    Name="Folder_OrderColumn"
    Group="Custom"
    Description="Folder with order column"
    Inherits="TRUE"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{35788ED2-8569-48DC-B6DE-BA72A4F87B7A}" Name="Custom_x0020_Order" DisplayName="Custom Order" />
    </FieldRefs>
    </ContentType>
    </Elements>

    Hi,
    According to your post, my understanding is that you had an issue about the custom content type with custom column.
    I don’t think there is any issue in the content type definition, and it also worked well in my environment.
    Did you have the Member field in the project?
    I recommend you create a simple project only with one custom Order column and one custom Folder_OrderColumn, then you can add more fields one by one.
    By doing this, it will be easier to find out the root cause of this error.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • What's wrong with this formula?

    What's wrong with this formula?  Why am I getting 0?

    Mismatch in data types.
    Status, "=*Book*" is fine, as the content of the status column is text, and the condition is comparing it to a text string (with wild cards)
    But
    Event Date, "=*2011*" compares a Date and Time value in Event Date to a text string (with wild cards).
    Here's a demonstration, using COUNTIF to stand in for COUNTIFS.
    Note that the "book" counts are all correct.
    Note that the first Date count counts both occurrences of Jan 2, 2012 in column A, despite the difference in format used in displaying the dates, while the second counts neither, due to the wild card forcing it to look for a text string, not a Date and Time value.
    For your case, you'll need a COUNTIFS formula with three test-range, condition pairs:
    =COUNTIFS(Schedule :: $A,"=*book*",Schedule :: $B,">="&B2,Schedule :: B,"<="&B3)
    Regards,
    Barry

  • What's wrong with my multiArray?

    Ok the code as below, what's wrong with it? why doesn't the array fill up across the rows? there are meant to be some nulls, cos it has 5 columns and 8 rows, and things like add will not fill the width but something is not right cos I get loads of nulls where i shoudln't
    <code>
    int h =0;
    for(int i=0; i<totalTokens; i++)
    int numVar =0;
    int w =0;
    if(pass1.equals("state"))
    numVar = 5;
    else if((pass1[i].equals("add"))||(pass1[i].equals("sub")))
    numVar = 4;
    else if ((pass1[i].equals("deriv"))||(pass1[i].equals("m_plus"))||(pass1[i].equals("m_minus")))
    numVar = 3;
    for(int s=0; s<numVar;s++)
    finalModel[h][w]=pass1[i];
    i++;
    w++;
    h++;
    </code>

    int h =0;
            for(int i=0; i<totalTokens; i++)
                int numVar =0;
                int w =0;
                if(pass1.equals("state"))
    numVar = 5;
    else if((pass1[i].equals("add"))||(pass1[i].equals("sub")))
    numVar = 4;
    else if ((pass1[i].equals("deriv"))||(pass1[i].equals("m_plus"))||(pass1[i].equals("m_minus")))
    numVar = 3;
    for(int s=0; s<numVar;s++)
    finalModel[h][w]=pass1[i];
    i++;
    w++;
    h++;
    for some reason it works if num var is 4, 3, and 2, not 5, 4 and 3 I think I may have my columns and rows the wrong way round

  • What's wrong with my syntax?

    I'm getting an error with this. What's wrong with my syntax?
    Error: Scene 1, Layer 'actions', Frame 1, Line 21 1084: Syntax error: expecting rightparen before semicolon.
    // Line 21
    holder.load(new URLRequest("Interactive_StrategyMap.swf" + "?random=" + Math.random();));

    Hi Ned,
    I'm trying to force my preloader to load the .swf every time. I do not want it stored in cache (because I'm trying to solve the issue where the dynamic text doesn't load on refresh)
    So, I've added this math.random to the end of the string... but now the preloader .swf apparently can't see the .swf I want it to load because the path is Interactive_StrategyMap.swf?random=123 instead of Interactive_StrategyMap.swf
    The error I get is:
    completeHandler: Interactive_StrategyMap.swf?random=123
    Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
    My full code is:
    //THIS IS THE PRELOADER CONTAINER THAT LOADS THE INTERACTIVE
    //STRATEGY MAP (Interactive_StrategyMap.swf).
    // CREATE A NEW LOADER OBJECT TO HOLD THE LOADED CONTENT
    var holder:Loader = new Loader();
    var myString:String = "Interactive_StrategyMap.swf" + "?random=123" + Math.random();
    addChild(holder);
    // CREATE EVENT HANDLERS TO TRACK THE LOADING PROGRESS
    // AND TO TRACK THE COMPLETION OF THE LOADED CONTENT
    holder.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoading);
    holder.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(e:Event):void {
    this.loadingClip.visible = false;
    function onLoading(e:ProgressEvent):void {
    var pcent:Number = e.target.bytesLoaded / e.target.bytesTotal * 100;
    loadingClip.loadingText.text = int(pcent) + "%";
    // LOAD THE EXTERNAL CONTENT
    holder.load(new URLRequest(myString));
    trace("completeHandler: " + myString);

  • Script debug - what's wrong with this picture?

    I wrote a script a while back which shrinks and saves out images in png format. Nothing fancy. It works fine. I am happy. However yesterday, I discovered that it baulked at a certain file. Initally I thought it was a problem with the script (and that may be the case - i'm still new to scripting) but it worked with every other image I've thrown at it. Ergo it must be something wrong with the image.
    Now here's the thing: I also noticed that adding a new layer underneath the existing single layer and then merging down allowed the script to work fine. So what is wrong with the inital image before it's had a new layer added and merged? Or what does adding and merging do to an image do to fix as I can't see any visual difference?
    Here is the bare bones of the script:
    // Set filePath and fileName to source path
    filePath = "C:\\temp" + "/" + 'debugme' + '.png';
    // save out the image
    var pngFile = new File(filePath);
    pngSaveOptions = new PNGSaveOptions();
    pngSaveOptions.embedColorProfile = true;
    pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    pngSaveOptions.matte = MatteType.NONE;
    pngSaveOptions.quality = 1;
    pngSaveOptions.PNG8 = false;
    pngSaveOptions.transparency = true;
    activeDocument.saveAs(pngFile, pngSaveOptions, false, Extension.LOWERCASE);
    I would include the two psds (one that works and the one that doesn't) only this forum doesn''t seem to allow .psd files - and saving them out in another format is the whole problem.

    A quick test and this resolved the issue for me…
    #target photoshop
    filePath = '~/Desktop/Testing.png';
    // save out the image
    var pngFile = new File(filePath);
    pngSaveOptions = new PNGSaveOptions();
    pngSaveOptions.embedColorProfile = true;
    pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    pngSaveOptions.matte = MatteType.NONE;
    pngSaveOptions.quality = 1;
    pngSaveOptions.PNG8 = false;
    pngSaveOptions.transparency = true;
    clearLayerStyle();
    activeDocument.saveAs(pngFile, pngSaveOptions, false, Extension.LOWERCASE);
    function clearLayerStyle() {
         function cTID(s) { return app.charIDToTypeID(s); };
         function sTID(s) { return app.stringIDToTypeID(s); };
              var desc01 = new ActionDescriptor();
              var ref01 = new ActionReference();
              ref01.putEnumerated( cTID('Lyr '), cTID('Ordn'), cTID('Trgt') );
              desc01.putReference( cTID('null'), ref01 );
         executeAction( sTID('disableLayerStyle'), desc01, DialogModes.NO );

  • What's wrong with this code (in recursion there may be a problem )

    // ELEMENTS OF TWO VECTORS ARE COMPARED HERE
    // CHECK WHAT IS WRONG WITH THIS PGM
    // there may be a problem in recursion
    import java.util.*;
    class Test
    Vector phy,db;
    public static void main(String adf[])
         Vector pp1=new Vector();
         Vector dp1=new Vector();
         //adding elements to the vector
         pp1.add("1");
         pp1.add("a");
         pp1.add("b");
         pp1.add("h");
         pp1.add("c");
         dp1.add("q");
         dp1.add("c");
         dp1.add("h");
         dp1.add("w");
         dp1.add("t");
         printVector(dp1);
         printVector(pp1);
         check2Vectors(pp1,dp1);
    public static void printVector(Vector v1)
         System.out.println("Vector size "+v1.size());
         for(int i=0;i<v1.size();i++)
              System.out.println(v1.get(i).toString());
    public static void check2Vectors(Vector p,Vector d)
         System.out.println("p.size() "+p.size()+" d.size() "+d.size());
         printVector(p);
         printVector(d);
         for(int i=0;i<p.size();i++)
                   for(int j=0;j<d.size();j++)
                        System.out.println(" i= "+i+" j= "+j);
                        Object s1=p.elementAt(i);
                        Object s2=d.elementAt(j);
              System.out.println("Checking "+s1+" and "+s2);
                        if(s1.equals(s2))
    System.out.println("Equal and Removing "+s1+" and "+s2);
                             p.remove(i);
                             d.remove(j);
                             printVector(p);
                             printVector(d);                    
                        check2Vectors(p,d);
                   }//inner for
              }//outer for     
    if(p.size()==0||d.size()==0)
    System.out.println("Vector checking finished and both match");
    else
    System.out.println("Vector checking finished and both do not match");
    }//method
    }

    hi,
    but the upper limit is changing everytime you call the function recursively
    so there should not be any problem(i suppose)
    my intension is to get the unmatched elements of the two vectors
    suggest me changes and thanks in advancce
    ashok
    The problems comes from the fact that you remove
    elements for a Vector while iterating in a loop where
    the upper limit as been set to the initial size of the
    Vector.
    You should use so while loops with flexible stop
    conditions that would work when the size of the Vector
    changes.
    Finally: why don't you use Vector.equals() ?

  • When i plug in my charger to my macbook and have it charged all the way i can only use it for an hour before it dies on me again. what is wrong with my macbook? what can i do to fix it?

    when i plug in my charger to my macbook and have it charged all the way i can only use it for an hour before it dies on me again. what is wrong with my macbook? what can i do to fix it?

    Go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report in 10.7), then select Power from the left hand column of the System Profiler. Copy and paste the Battery Information back here.
    Also it would help to know which one of the 9 different models of MacBook you have. To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report in 10.7).When System Profiler comes up check the Model Identifier.

Maybe you are looking for

  • Vendor in freight condtion of scheduling agreement

    Hi, I have problem, in scheduling agreement unable to see vendor field in ZFR1 condition or any other conditions, above is possible in development server,quality server above is possible in P.O. preparation by ME21N in development server, quality ser

  • Why is the trigger triggering on all fields in a table?

    I have a trigger and the text is as follows. The trigger should just write the emplid to the table PS_DM_ADDR_CHG_EMP whenever there is an update to the fields STREET1,STREET2 ,STREET3 ,CITY ,STATE ,ZIP ,COUNTRY in PS_PERSONAL_DATA. But some how it i

  • IDOC Sender BAPI

    Hello experts, Which BAPI could I use to get Idocs as xml and flat file to local folder? Thanks & Regards Bunyamin

  • IChat keeps telling me I've tried logging on too many times...

    Ok... so here's the story: I'm visiting my sister, and she has netgear... I tried logging on to iChat, and it went berserk, logging on and off several times in a row. And then a message popped up the next time I logged on saying: "You have attempted

  • Function to calculate a customer's price

    Hello, I want to write a report to calculate a customer's price. Example: customer is calling and requests a price for a specific material. What I do have is: material number and customer number or name. What I wanna have is: price for example PR00 -