Funny bug in ConfigManager

I successfully use the oracle.iam.configservice.api.ConfigManager to manage user-defined attributes for users. In theory the same service allows to manage user-defined attributes of organizations either. But for organizations (or any other objects allowing user-defined attributes), when I add an attribute, the new column is always created in the USR table (instead of ACT table for organizations).
The bug exists in the 11.1.1.3. Does anybody knows if it was fixed in more recent releases?

Fixed in OIM 11.1.1.5

Similar Messages

  • Funny bug in pl sql code

    Hi,
    I have written a code to upload data from csv file to oracle table. it gives me a funny error. I have given below the sample contents of .csv file
    "4951","TCSPL (TRADING A/C)","470","TISCO",20050419,"P",362.6550,212,0.00
    "4951","TCSPL (TRADING A/C)","470","TISCO",20050419,"S",361.7500,212,-191.86
    "4951","TCSPL (TRADING A/C)","477","ASHOKLEY",20050928,"P",28.5000,200,0.00
    "4951","TCSPL (TRADING A/C)","477","ASHOKLEY",20050928,"S",28.4960,200,-0.80
    for the first time if i run the sql code it uploads first 2 records and does not upload third record, if i change the figure of =-191.86 to 191.86 (if i remove - mark ) then it uploads all the records, if i reverse it back it does not the third record, the structure of the table is like this ( the data column where this data get inserted is number(15,4) datatype)
    this type of problem is happening with that perticular row only, though several such kind of combination is there in the csv file.
    sQL> desc UNITISCLTRXN
    Name Null? Type
    CLCODE VARCHAR2(10)
    CLNAME VARCHAR2(120)
    SCCODE VARCHAR2(10)
    NSESYMBOL VARCHAR2(10)
    TRDDATE DATE
    PURSAL VARCHAR2(1)
    RATE NUMBER(15,6)
    CLQTY NUMBER(10,2)
    PROFIT NUMBER(15,4)
    the sql code i have written is as below
    PROCEDURE upload_unitiscltrxn IS
    file_id text_io.file_type;
         crec unitiscltrxn%rowtype;
    linebuf VARCHAR2(1000);
    i number:=1;
    len number:=0;
    spos number:=0;
    tpos number:=0;
    var varchar2(1000);
    mon varchar2(5);
    cnt number:=0;
         errnum NUMBER := ERROR_CODE;
         errtxt VARCHAR2(80) := ERROR_TEXT;
    errtyp VARCHAR2(3) := ERROR_TYPE;
    begin
              Delete from unitiscltrxn;
              File_id := Text_IO.Fopen('M:\UNITIS\db\final.csv', 'r');
         Text_IO.Get_Line(File_id,linebuf);
              cnt :=1;
              while linebuf is not null loop
         IF CNT<>1 THEN
              Text_IO.Get_Line(File_id,linebuf);
         END IF;     
              cnt :=1+cnt;
         len := length(linebuf);
         spos :=1;
         i:=1;
         tpos :=0;
         var:='';
         mon:='';     
         while i < 10 loop
         tpos := instr(linebuf,',',spos);
         if tpos >0 then
              var :=substr(linebuf,spos,tpos-spos);
         else
              var :=substr(linebuf,spos);
         end if;     
              ----------get values into variable.------------------     
         If i =1 then
              Crec.clcode := Replace(var,'"','');
         ElsIf     i =2 then
              Crec.clname := Replace(var,'"','');
         ElsIf     i =3 then
              Crec.sccode := Replace(var,'"','');
         ElsIf     i =4 then
              Crec.nsesymbol := Replace(var,'"','');
         ElsIf     i =5 then
              select Decode(substr(var,5,2),1,'JAN',2,'FEB',3,'MAR',4,'APR',5,'MAY',6,'JUN',7,'JUL',8,'AUG',
              9,'SEP',10,'OCT',11,'NOV',12,'DEC') into mon from dual;
              Crec.trddate := to_date(substr(var,7)||'-'||mon||'-'||substr(var,1,4),'DD-MON-YYYY');
         ElsIf     i =6 then
              If var = '"P"' Then
                   Crec.pursal :='P';
              Elsif     var = '"S"' Then
                   Crec.pursal :='S';
              end if;     
              --Crec.pursal := var;
         ElsIf     i =7 then
              Crec.rate := var;
         ElsIf     i =8 then
              Crec.clqty := var;
         ElsIf     i =9 then
              Crec.profit := var;
         End If;     
         i:=i+1;
         spos:=tpos+1;
         end loop;
         INSERT INTO UNITISCLTRXN VALUES(crec.clcode, crec.clname ,crec.sccode ,crec.nsesymbol,
         crec.trddate,crec.pursal,crec.rate,crec.clqty,crec.profit);
         text_io.new_line(file_id, 1);
         End loop;     
         EXCEPTION
         WHEN no_data_found THEN
         Text_IO.Put_Line('Closing the file...');
         Text_IO.Fclose(file_ID);
    WHEN OTHERS THEN
         Message(errtyp||'-'||TO_CHAR(errnum)||': '||errtxt||'FF'||DBMS_ERROR_CODE);
         Message(errtyp||'-'||TO_CHAR(errnum)||': '||errtxt);
    END;
    END;
    Thanks
    Uday

    Hi
    Try to debug you procedure inserting a better exception handling and some dbms_output.put_line.
    E.g.
    ElsIf i =9 then
    Crec.profit := var;
    dbms_output.put_line(var || '  -  ' Crec.profit);
    End If; Try to put the exception handling in the loop ... while i < 10 loop ... .
    I don't think that it's an Oracle bug. It's a human error in your code!
    Bye, Aron

  • N95-1 fw 31.0.017...funny bug!!!

    SInce fw update to version 31, I have a nice bug...each time I close slider photo button e gallery button (on right side) flash for two times alternatively...this is a bug but it's funny...let me know if also you have this flashing
    K + C = 1

    Ah ok...thanks for the info...curisousity satisfied...
    Bye
    Carlo
    Moderator note - non-English content removed.
    Message Edited by michaels on 16-Mar-2009 10:39 AM
    K + C = 1

  • Final Cut Pro X & ProRes Major but Funny BUG

    This must be the weirdest BUG I have ever experienced... And the most difficult to find. I found it via coincidence ;-)
    I playback and use ProRes 4444 inside of FCPx. And generally there is NO problem doing so. Until yesterday...
    In After Effects I converted a bunch of H.264 Canon 5DMKii movies, after denoising them, to ProRes4444.
    I imported the movies into Final Cut X and immediately noticed that they were jerky in playback. So I loaded the original files and wanted to see whether they were jerky as well. They were not... Here comes the funny part...
    The Original H.264 had AUDIO on them the ProRes version I had stripped the audio from as I did not need it. To better compare the two files (Don't know why I did it but I did) in the timeline I just copied the audio from H.264 file over underneath the ProRes4444-jerky file. Then I compared again. This time the ProRes was playing smooth as silk. I could NOT believe my eyes. I was cursing at the Mac but after smoking a cigarette and contemplating, I went back an deleted the audio from underneath the Prores 4444 file. Back to jerky. I put the audio back - jerkiness GONE...
    So I did some more testing...
    I took a completely different clip and imported that into After Effects.
    I did the same denoising to it and exported TWO versions to PRORES 4444.
    1 with Audio and 1 without it...
    Then imported the two into FCPx...
    We are talking TWO identical files here expect one has audio to it.
    The one with audio played back silky while the one without was jerky.
    I copied the audio (any audio will do) underneath the jerky one and it stopped jerking around.
    I opened the two test files in QuickTime 7 and 10 and NONE of them were Jerky... This issue seems to pertain to FCPx only....
    So if any of you export from AE to ProRes4444 and the guy on the FCPx station gets agitated because of the jerkiness,
    before you blame adobe (like I did) tell him to just copy some sound underneath the sound-less video clip. That will take care of the problem,
    untill Apple fixes the problem ;-)

    Glad you found a solution, AtonMusic! Did you bring the issue up to Apple?

  • Final Cut Pro X & ProRes Major Funny BUG - Pertains to AE also !!!

    This must be the weirdest BUG I have ever experienced... And the most difficult to find. I found it via coincidence ;-)
    I playback and use ProRes 4444 inside of FCPx. And generally there is NO problem doing so. Until yesterday...
    In After Effects I converted a bunch of H.264 Canon 5DMKii movies, after denoising them, to ProRes4444.
    I imported the movies into Final Cut X and immediately noticed that they were jerky in playback. So I loaded the original files and wanted to see whether they were jerky as well. They were not... Here comes the funny part...
    The Original H.264 had AUDIO on them the ProRes version I had stripped the audio from as I did not need it. To better compare the two files (Don't know why I did it but I did) in the timeline I just copied the audio from H.264 file over underneath the ProRes4444-jerky file. Then I compared again. This time the ProRes was playing smooth as silk. I could NOT believe my eyes. I was cursing at the Mac but after smoking a cigarette and contemplating, I went back an deleted the audio from underneath the Prores 4444 file. Back to jerky. I put the audio back - jerkiness GONE...
    So I did some more testing...
    I took a completely different clip and imported that into After Effects.
    I did the same denoising to it and exported TWO versions to PRORES 4444.
    1 with Audio and 1 without it...
    Then imported the two into FCPx...
    We are talking TWO identical files here expect one has audio to it.
    The one with audio played back silky while the one without was jerky.
    I copied the audio (any audio will do) underneath the jerky one and it stopped jerking around.
    I opened the two test files in QuickTime 7 and 10 and NONE of them were Jerky... This issue seems to pertain to FCPx only....
    So if any of you export from AE to ProRes4444 and the guy on the FCPx station gets agitated because of the jerkiness,
    before you blame adobe (like I did) tell him to just copy some sound underneath the sound-less video clip. That will take care of the problem,
    untill Apple fixes the problem ;-)

    Glad you found a solution, AtonMusic! Did you bring the issue up to Apple?

  • A funny bug with the pair Numbers + AppleScript

    *Bug ID# 7973914*
    Summary:
    Trying to delete rows in a Numbers table thru AppleScript issue an erroneous error.
    Steps to Reproduce:
    Create a new Numbers document and run this script :
    set t_name to "testIfEmpty"
    tell application "Numbers" to tell document 1 to tell sheet 1
    if not (exists table t_name) then
    make new table with properties {name:t_name, row count:1, column count:1}
    end if
    delay 0.2
    set tProps to get properties of table t_name
    set nbr to (row count of tProps) - 1
    if nbr > 0 then
    try
    repeat nbr times
    delete row 1 of table t_name
    end repeat
    on error errMsg number errNbr
    display dialog "What's the need for this error ?" & return & return & "error number : " & errNbr & return & errMsg & return & return & "Click the OK button" & return & "and everything will behave flawlessly." buttons {"OK"}
    end try
    end if
    set nbr to (column count of tProps) - 1
    if nbr > 0 then
    repeat nbr times
    delete column 1 of table t_name
    end repeat
    end if
    end tell
    Expected Results:
    As we may delete the rows by hand, the script is supposed to do its job with no error.
    Actual Results:
    When it remains two rows, the script issue an error.
    When we click the OK button, it continue and it does what it was designed to do.
    Regression:
    At this time, in real life I keep only :
    try
    repeat nbr times
    delete row 1 of table t_name
    end repeat
    end try
    in the script but I don't like to encounter a meaningless error message
    May you get rid of that ?
    I wish to add that I am unable to think that getting a 2 * 2 cells table when asking for a 1 * 1 one is a normal behaviour !
    Yvan KOENIG (VALLAURIS, France) mercredi 12 mai 2010 17:09:37

    For sure, with remove there is no error message
    but the dictionary is clear :
    A row, as well as a column is an item.
    I would accept that the app refuse to execute the command delete row x or delete column y.
    It accepts to delete rows 150 thru 3 but when there are only two rows, it refuses to delete one.
    In my code, I delete row 1 because I want a table with only a standard cell.
    There is no logic in the fact that I may delete column 1 with no errror message but can't do the same with row 1.
    The proof that there is no reason is of course that with the try / end try enclosing the loop, the row is correctly delete. The script just ignores the reported error.
    It's always wrong to flag an error when there isn't one.
    The dictionary describes the function duplicate which is supposed to apply to items.
    I was grinding when I discovered that it refuses to duplicate a table or a sheet but at least, it's concistent. It doesn't do 99% of the job and claims "you are fool to ask me to do that" for the last percent.
    Delete / Remove isn't the unique odd pair.
    I got the same kind of problem in several apps with Copy / Duplicate.
    Sometimes they behave the same. Sometimes, one is completely rejected
    and, worse case, sometimes one of them behave well most of the time but not always.
    I think that it would be correct to
    (1) edit the code so that both behave correctly in 100% of cases
    or
    (2) edit the code so that the 99% one completely reject the call
    This said, I'm definitely pig-headed but I'm not completely foolish so,I will edit my script and use Remove
    PS :
    I added these two lines to my report :
    I forgot to write that replacing Delete by Remove get rid of the error message.
    But there is no reason to issue one with delete.
    Yvan KOENIG (VALLAURIS, France) mercredi 12 mai 2010 18:33:07

  • Funny bugs with Time Machine connecting to MacBook when reboot

    Found a bug for Time Machine.
    Reboot with TM disk connect to the MacBook. Most of the time, there will be no show of TM Disk on the desktop and connect thumb drives will not detect too. And do a normal shutdown, I can still feel the warm air venting out from the MacBook.
    Have to remove the battery for a few seconds, replace it back and power up. Then everything will back to normal. If reboot with thumb drive connect, such symptoms will not appear.

    dilagan wrote:
    i attempted to backup the imac with time machine to an external hard drive, it began backing up, stopped and I got the same error message: "time machine error unable to complete backup an error occurred while copying files." Little help!
    Yes, that message is not some of Apple's best work.
    Most likely, there's a damaged/corrupted file that Time Machine is choking on. See #C3 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    If you're getting a different message from the Pro, see #C2.

  • Funny bug in SQLDev 2.1EA - tables with same name...

    Hi,
    i opened two session in SQLDev 2.1EA, on two distinct instances.
    These sessions are open against the same user and i am clicking on a table with the same name.
    This happens only when the "pin" icon is not set.
    Apparently SQLDev doesn't not distinguish between the two connections when it comes to display the object attributes like columns, data, indexes and so on.
    So, practically, if i click on object 1 (instance 1), click on data tab, then i click on object 1 (instance 2), i still see the data for instance 1, no matter if i ask to refresh.
    This doesn't happen if i open each object in a separate tab.
    This happens on SQLDev on Mac OS X.
    Flavio
    http://oraclequirks.blogspot.com

    Sorry to drop in, but I suppose many have this setup: the same users/connections on both development and production databases.
    However I'm not able to reproduce now on my 10g DBs, I did see the same problem a couple of versions ago (when I was on 9i), but AFAIK that got fixed. Maybe regression anyway?
    Regards,
    K.

  • IPhone 5, iOS7 anyone else have these bugs?

    I know other people are having issues with iMessage, my phone is turning iMessage off with out my consent. The weird thing is though; I’m not receiving text messages from half my contacts that use iMessage to send me text. They think I’ve been ignoring them for days, I have miss 6 days’ worth of communication from people. Shouldn’t I receive the text but as a SMS message from them? From their side the iMessage goes through.
    When “scrolling back” to a position in my text, to edit a word, the magnifying glass appears and then should help place the cursor to the position I need. Well it’s moving the cursor through the text, but after a second or 2 the magnifying glass freezes, and the text messaging app doesn’t respond for 5 - 10 seconds.
    Funny bug, but not a REAL problem, play a video or go to a picture in your album, try to zoom out, keep your fingers on the screen and rotate the image or video, it does some weird things, I’m assuming they wanted to allow you to zoom out to close the image but it doesn’t work so well in practice.

    I was having the same issue with iPhone 5 and iOS 7.0.4  (using the magnifying glass freezes the phone for a few seconds, buy only inside the iMessage app), and I just found the solution!
    There is no need to reset the phone or install updates (in fact, the issue is not related to a specific iOS version).
    First of all, you can replicate the issue knowing that:
    1. When composing a text in iMessage, if you use the magnifying glass, you will see these options: Select, Select All, Paste
    2. As you may know, you can copy a picture or a video in the "Photos" gallery and paste directly in iMessage to send it as SMS.
    3. When you copy something, iOS keeps it in memory, even if you did it days ago
    So, what happened is simple (in my case, but I think yours too). Two weeks ago, I copied one of my videos in the Photo gallery (for mistake) and I totally forgot about it. Then, every time I used the magnifying glass in iMessage, the "Paste" option was getting ready to past the video in it (freezing the screen for a few seconds, probably because it was a huge file).
    MY SOLUTION: write something in iMessage, like "hello", use the magnifying glass, press "Select All" and then "Copy". Done! You just replaced any huge file/image/video that you had in memory with the text "hello", and now your magnifying glass will work like a charm!
    Hope this help!
    Roberto

  • Bug in array indicator?

    I found very strange behaviour of Array Indicator (LV 8.20).
    If you look at attached VI, you will see that is very simple VI where only first element of Array should changed randomly every half of second while other element are 8.
    But if I click any element in Array indicator and move mous cursor over it, its value is changed although it should be 8 (see attached video).
    Does anyboby know why is this happening?
    Thanks!
    Attachments:
    Array indicator bug.vi ‏10 KB
    Array indicator.avi ‏176 KB

    Waow... funny bug... A quick work-around would be to set the indicateur as "Disable", but then the user won't be able to use the "index display".
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Liquid data type updates

    Hi everyone,
    With the next release (to go out on Monday) we're adding proper date format support in liquid for all modules. Besides all the improvements and additions made available with this release, one important note, which requires you to do some updates after the release, is that we're breaking backwards compatibility for liquid date tags by outputting the dates in ISO 8601 format ("yyyy-MM-ddTHH:mm:ss") instead of current format(“yyyy-MM-dd”).
    Here is a brief overview of the changes:
    All module fields which represent date or date times are now passed to Liquid as date time objects (previously they were passed as strings). This brings the following benefits:
    Comparison between date time objects works correctly
    It is possible to compute the difference between two date time objects using the minus filter. Example: {% assign dateDiff = Globals.Site.DateNow| minus: myDate %}
    We added the means for obtaining the current date time: Globals.site.dateNow. The returned date is in the site’s time zone.
    By default, when no filter is applied, all date variables will be output in the following ISO 8601 format: “yyyy-MM-ddTHH:mm:ss”. For example {{ myDate }} would output something similar to: “2014-12-12T07:19:49”. (Note: this is a backwards compatibility breaking change, as previously we outputted dates using the following format: “yyyy-MM-dd”. The breaking change only affects Liquid tags). Following the release, you should update your sites using the provided date filters to format the dates as you need.
    The output of date time variables can be formatted using the following filters:
    date (with no parameters)– displays a nice to read string representing just the date part from the date time variable. The date is formatted in the site’s culture. This compatible with the way older BC tags display dates. For example {{ myDate | date }}, in the English US culture will output a string similar to: “12-Dec-2014”.
    datetime (new filter) – displays a nice to read string of the date time variable using the site’s culture. This compatible with the way older BC tags display date time. For example {{ myDate | datetime }}, in the English US culture will output a string similar to: “12-Dec-2014”.
    date “format” (existing filter, nothing updated, mentioned here just for consistency) – displays the date in the site’s culture using a format specified by the format variable. The list with the available formats is available here: http://msdn.microsoft.com/en-us/library/8kb3ddd4%28v=vs.110%29.aspx. Note that the date filter can also be used to format objects that result as a difference between two date time objects, however, in this case the format string will respect a different set of rules as defined here: http://msdn.microsoft.com/en-us/library/ee372287%28v=vs.110%29.aspx. The following example demonstrates how to display just the number of days in the difference between two dates: {{ Globals.Site.DateNow| minus: myDate| date: "%d" }}
    We added the Convert filter which can be used for converting variables to a certain type. The syntax is: variable | convert: “type”. Below are the values supported by the type parameter:
    “date” – converts a variable to a date time instance. We only support the following formats for strings that are converted to date time: “yyyy-MM-ddTHH:mm:ss” and “yyyy-MM-dd”.
    “number” – converts a variable to a number instance. If converting from string, only period “.” is supported as a decimal separator. This filter will probably be most useful when trying to convert GET query parameters: {% assign pageNumber = Globals.get.pageNumber | convert: “number” %}. The previous example assumes that URL that loaded the page contains a parameter named pageNumber. The convert numeric filter is an alternative to the rather hack-ish approach of converting to numbers using mathematical operators: {% assign myNumber = variable | plus: 0 }. Please note that it is not recommended to use the convert numeric filter just to assign numeric constants. For example, this approach is not recommended: {% assign myNumber = “3.14” | convert: “number” %}. Use the following approach instead: {% assign myNumber = 3.14 %} (note the lack of quotes around 3.14 in the second example).
    “boolean” – converts a variable to a boolean instance. Please note, that just as it is the case with numerics, it is not recommended to use the “boolean” filter for declaring a boolean constant. For example this is not recommended: {% assign myBool = “false” | convert: “boolean” %}. Use the following syntax instead: {% assign myBool = false %}
    “string” – converts a variable to its string representation.
    We added implicit casting to the most relevant type in comparisons and inside filters representing mathematical operations (plus, minus, times, divide, modulo). With implicit casting, if one of the two operands is of type string and the other is of a different type (for example numeric or date time), we will attempt to convert the string operand to the type of the other. The conversion will fail if the string is not in an appropriate format for the type it is converted to (same rules as in the Convert filter are applied). In comparisons, if the implicit casting fails, the comparison is made with both operands converted to strings. Additional notes:
    Implicit casting allows using date time literals directly in comparisons if the other operand is of date time type. For example, this will work correctly since "2015-01"15" will automatically be converted to date time before making the comparison: {% if myDate > "2015-01-15" %}Some message{% endif %}
    Date parts obtained using the date filter can be used directly in comparisons with numerics. For example:
             {% assign daysDiff = Globals.Site.DateNow| minus: myDate| date: "%d" %}
              {% if daysDiff < 10 %}
                A message
              {% endif %}
    With the implementation of implicit casting we also fixed some rather funny bugs related to comparisons and mathematical operations. For example, previously, 5 < 5.5 was evaluated as false, but 5.5 > 5 was evaluated as true. Also the result of 5| plus: 5.5 was 10, but the result of 5.5| plus: 5 was 10.5 (now 10.5 is the result of both operations, as expected).
    As a potential caveat, note that implicit casting will bring the operands to the relevant type only if one of them is actually of that type. If both operands are of type string, the comparison is made as of between strings. This means that following condition is evaluated as false {% if "3" < "15" %}, because as a string "15" is smaller than "3".
    Implicit casting from string to numeric only works if the string represents just a numeric. If the string contains additional characters, like a currency symbol, the conversion will fail. For example, this will not work correctly {% "$15" < 20 %}. Our goal, in the next releases, is to update all modules containing price related tags to have them in plain numeric format.
    We added the following filters for easily formatting numeric values representing prices.
    number - displays numbers with a fixed number of two decimals using the decimal separator appropriate to the site's culture. For example, in the English US culture, {{ 99| number }} will display 99.00
    currency - displays numbers in the same way as number but also inserts the currency symbol at the beginning of the returned value. The currency symbol respects the site's culture. For example, in the English US culture, {{ 99| currency }} will display $99.00
    In the next release or releases, we're going to focus on fixing the remaining data types for modules.
    Cristinel

    Liam, the server date isn't helpful for converting timezones. We would need a direct date filter. With a filter for UTC and one for the user we should be able to do quite a bit from there.
    The most powerful things that could be implemented for date time are the following:
    • moment.js and Moment Timezone built into the filters.
    • the ability to add time info into date time fields
    But I know that's a tall order.

  • ICal and subscribed calendars with MobileMe using AppleScript

    I am having the same problem as many of you; I have a MobileMe account which does not sync the calendars I have in iCal that are subscriptions. I found this great script online which I'll post below. I don't know anything about AppleScript so I'm just copy-pasting. I want it to work, but I'm getting the error "The variable theOldEvent is not defined." right around the line "if similar_found is true then set theOldSummary to the summary of theOldEvent" kinda near the middle. Like I said, I don't know anything about AppleScript. So my question is; how can I fix this error and/or is there some better way of using AppleScript/Automator to do this same thing? Thanks!
    Script to duplicate Calendar orgCalendar into target dupCalendar
    E.H. 12.9.2008
    property myCopies : 0
    property myUpdates : 0
    property myObsoletes : 0
    property orgCalendar : "Sekretariat"
    property dupCalendar : "Sekretariat copy"
    property dupEvents : {}
    property myDeletes : {}
    set myCopies to 0
    set myUpdates to 0
    set myObsoletes to 0
    set dupEvents to {}
    tell application "iCal"
    -- set theCalendars to every calendar
    set theCalendarNames to title of every calendar
    set theOrgCalendar to a reference to calendar orgCalendar
    if theCalendarNames contains dupCalendar then
    set theCalendar to a reference to calendar dupCalendar
    else
    set theCalendar to make new calendar with properties {title:dupCalendar}
    --set theCalendar to make new calendar with properties {title:dupCalendar, color:"{65535, 0, 0}"}
    end if
    set the eventList to uid of every event of theOrgCalendar as list
    set the eventCount to the count of the eventList
    repeat with theUId in eventList
    tell theOrgCalendar
    set theEvent to (the first event whose uid is theUId)
    -- set theProperties to the properties of theEvent as record
    set theDate to the start date of theEvent
    set theSummary to the summary of theEvent
    set theStampDate to the stamp date of theEvent
    end tell
    tell theCalendar
    try
    set theOldEvent to (the first event of theCalendar whose (start date) is theDate as date)
    set similar_found to true
    on error
    set similar_found to false
    set theEndDate to the end date of theEvent
    set theAllDay to the allday event of theEvent
    set theLocation to the location of theEvent
    -- Funny construction to work araund the fact that location may be missing a value
    try
    if theLocation is equal to "" then
    end if
    on error
    set theLocation to ""
    end try
    set theDescription to the description of theEvent
    try
    if theDescription is equal to "" then
    end if
    on error
    set theDescription to ""
    end try
    if theAllDay is true then -- work around a funny bug with all day events
    set theDate to (theDate as date) + 2 * hours
    set theEndDate to (theEndDate as date) + 2 * hours
    end if
    set newEvent to make new event at end with properties {summary:theSummary, location:theLocation, start date:theDate, end date:theEndDate, allday event:theAllDay, description:theDescription}
    -- make new event at end with properties theProperties
    set the end of dupEvents to (the uid of newEvent)
    set myCopies to (myCopies + 1)
    end try
    end tell
    set second_necessary to false
    if similar_found is true then
    set theOldSummary to the summary of theOldEvent
    if theSummary is not equal to theOldSummary then
    --is there a different one?
    try
    set theOldEvent1 to (the second event of theCalendar whose (start date) is theDate as date)
    set theOldSummary to the summary of theOldEvent1
    if theSummary is equal to theOldSummary then
    set theOldEvent to theOldEvent1
    set the end of dupEvents to (the uid of theOldEvent)
    else
    -- cycle repeat ?
    end if
    on error
    -- beep
    try
    set theEvent1 to (the second event of theOrgCalendar whose (start date) is theDate as date)
    set second_necessary to true
    on error
    set the end of dupEvents to (the uid of theOldEvent)
    end try
    end try
    else
    set the end of dupEvents to (the uid of theOldEvent)
    end if
    if second_necessary is true then
    set theEndDate to the end date of theEvent
    tell theCalendar
    set theOldEvent to make new event at end with properties {summary:theSummary, start date:theDate, end date:theEndDate}
    end tell
    set the end of dupEvents to (the uid of theOldEvent)
    end if
    set theOldStampDate to the stamp date of theOldEvent
    if theStampDate is greater than theOldStampDate then
    -- update the event
    set summary of theOldEvent to theSummary -- capitalization may have changed
    set theAllDay to the allday event of theEvent
    set allday event of theOldEvent to theAllDay
    set theEndDate to the end date of theEvent
    if theAllDay is true then -- work around a funny bug with all day events
    set theEndDate to (theEndDate as date) + 2 * hours
    end if
    set end date of theOldEvent to theEndDate
    set theDescription to the description of theEvent
    try
    if theDescription is equal to "" then
    end if
    on error
    set theDescription to ""
    end try
    set description of theOldEvent to theDescription
    set myUpdates to myUpdates + 1
    end if
    end if
    end repeat
    end tell
    -- Delete obsolete events
    set myObsoletes to 0
    set myDeletes to {}
    tell application "iCal"
    set myUIDs to uid of events of theCalendar
    end tell
    repeat with myUID in myUIDs
    if dupEvents does not contain myUID then
    set the end of myDeletes to myUID
    set myObsoletes to (myObsoletes + 1)
    end if
    end repeat
    tell application "iCal"
    repeat with myDel in myDeletes
    delete (every event of theCalendar whose uid is myDel)
    end repeat
    end tell
    -- delete duplicates
    set myDeletes to {}
    tell application "iCal"
    set myStarts to start date of events of theCalendar
    set mySummaries to summary of events of theCalendar
    set myUIDs to uid of events of theCalendar
    set myLength to length of myUIDs
    end tell
    repeat with i from 1 to (myLength - 1)
    set thisStart to (item i of myStarts)
    set thisSumm to (item i of mySummaries)
    repeat with j from (i + 1) to myLength
    set thatStart to (item j of myStarts)
    set thatSumm to (item j of mySummaries)
    if thisSumm is equal to thatSumm and thisStart is equal to thatStart then
    set the end of myDeletes to (item j of myUIDs)
    exit repeat
    end if
    end repeat
    end repeat
    set n to count of myDeletes
    tell application "iCal"
    repeat with myDel in myDeletes
    delete (every event of theCalendar whose uid is myDel)
    end repeat
    -- set the visible of calendar theCalendar to false
    end tell
    display dialog (myCopies & " records duplicated, " & myUpdates & " records updated and " & myObsoletes & " obsolete ones deleted") as text

    No longer an issue.

  • How to change the direction of movement in atable from left to right?

    As the title says i want to change the movement direction in the cells of a table in pages when i click tab key from "left to right" to "right to left", is that possible?

    It seams that we aren't using the same application.
    In mine, if the cell C3 is selected, pressing shift + tab select the cell B3 which is what you wanted in your original post (or I understood it wrongly).
    If what you want is the ability to insert a new row above the current one or at top of a table, you can't do that this way.
    Same response if you want to insert a new column to the left of the table.
    To do that, the soluce is to select the top row or the leftmost column.
    There is a funny bug in the menu items.
    If your table has a header row, entering the menu Format > Table, we get four items:
    Insert new header above
    Insert new header below
    if we are in the header row
    or
    Insert new row above
    Insert new row below
    Insert a column before
    Insert a column after
    These four menus items have shortcuts :
    option up arrow
    option down arrow
    option left arrow
    option right arrow
    If the table has no header, the menu items are :
    Insert new row above
    Insert new row below
    Insert a column before
    Insert a column after
    None of them display a shortcut *_but the shortcuts are active_*
    Yvan KOENIG (VALLAURIS, France) samedi 11 septembre 2010 23:52:27

  • Wierd file associations in Firefox

    Hi. I had lots of problems before with regular firefox, so I decided I'd give 'firefox-kde-opensuse' from AUR a shot. And while it's definitely better in terms of KDE intergaton, there still persists a rather funny bug.
    The problem is that with some files (not every one of them seems to suffer from this, mind you) when I click the link and select "Open With:" there is already an appropriate program chosen, like Wine for .exe files. But when I click OK and the file finishes its download,  I get a prompt from KMozillaHelper asking which program to use. I tried writing wine, selecting "Bind this program to this filetype" etc. and still the same window appears every time I try to open .exe file. It happens quite often, actually, not only with .exe files. So, for example, I can try to open RTF file and it says "Open with: OpenOffice Writer", I click OK, and then KMozillaHelper asks me what program should be used to open this RTF file. What's funny, is that when I click the radio button to "Save" and then double-click the file in the Downloads window, it opens with the associated program with ease.
    But, for example, I tried googling "offer filetype:rtf" and when I click a link in Google (seems to work that way with every rtf document I found), it immediately starts to download and opens in OpenOffice. But when someone sends me .rtf as an email attachment, for example, this "Open With:" problem starts to appear once again.
    Please, can you help me? ;( I also had the same problem with regular Firefox, I have no idea what's going on.
    Last edited by warnec (2010-02-24 21:29:15)

    Try Y-Tasks with the File Types plugin:
    http://www.drjukka.com/YTasks.html

  • Images as buttons not pulling modified graphic?

    Ok here is my issue... i have created buttons in photoshop for captivate to show a text bubble when a certian link/button is clicked.
    I could not find a way to have text as a button and have a rollover effect without creating it as a image. (is there a way to do this?)
    The issue comes in when i try to change the image. Captivate will not recognize the new image (saved as the same name) even if i delete the buton and add a new one. The images stay in the button library. I have tried to find the images in the image library but they are not there (all unused items were deleted) the only way i was able to fix the problem was to save the button as a new name... so it may have started as p5btn1 and then ended up as p5btn1_v9. Can anyone help me out with a better solution for buttons? As a side note... the buttons have to be 508 compliant (using Jaws) so i cannot use a smartshape as a button either.
    Also im using captivate 6 and fairly new to captivate but have been desining for years. it just seems captivate has alot of funny bugs.
    Misty

    Hi, welcome to the forums,
    You've discovered something that many of us have, unfortunately. As far as I'm aware, the function of the button library has not changed (although I haven't tested it in 7). A few workarounds that I've seen suggested to avoid building up a library full of unused, old buttons:
    Do all your "testing" of buttons in a new project, and then copy over the final version of the button to your actual project
    Clear your preferences (I think this works, although I haven't tested it myself. You'll lose any other preferences you've set.)
    If you'd like to log a feature request for the ability to update a button (or even just be able to delete old ones), I think the link for that is here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=5

Maybe you are looking for

  • SNP Heuristic: Creation of purchase requisition

    Hi experts, we face following problem: heuristic creates purchase orders when there is no source of supply. Background: there is a forecast demand for a location product on a customer location without transport lane to the production plant due to fal

  • Acrobat Pro XI will not open

    for some reason on my laptop acrobat pro will not open at all.  reader works fine.  i have windows 7 on my computer.  i read alot of different blogs about this but nothing works.  i removed it from my computer and reinstalled it but it wont even load

  • Regional Settings list gone!

    Hello everybody. I got the new iPhone 3G and followed the classic steps to get it to work. (I already have a 1st-gen iPhone, so everything went smoothly) Then it was time for me to set it up. I went to Settings > General > International > Region Form

  • The iPad cannot be synced.  The required file cannot be found.

    My 1Pad2 synced fine for a few weeks, now I get "The iPad cannot be synced.  The required file cannot be found."  Through process of elimination, I've determined that it is a problem with the photos portion.  When I uncheck "sync photos", everything

  • Can not enable web services. printer on the network. default ip not connecting using auto ip

    B210 - have tried resetting defaults . default IP address will not connect to network with auto IP  had to set IP addrtess manually something similiar to the properties on the verzion hot spot. can not disable web services - never enabled. no Primary