Vanpersie - fix your code tags.

if I replied to your post you would no longer be able to edit it.... so please go fix your code tags.

if I replied to your post you would no longer be able
to edit it.... so please go fix your code tags.Now it's fixed
thank you

Similar Messages

  • [svn:fx-trunk] 9919: Fix closing /code tag in an ASDoc comment for getTextFormat

    Revision: 9919
    Author:   [email protected]
    Date:     2009-09-02 04:42:23 -0700 (Wed, 02 Sep 2009)
    Log Message:
    Fix closing </code> tag in an ASDoc comment for getTextFormat
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: -
    Tests run: -
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/textLayout/textLayout_textField/src/flashx/textLayout/ controls/TLFTextField.as

    Welcome back everyone.
    Hope you all had good holidays.
    Cheers
    glenn
    tinylion development & design

  • Avatars, fix your code

    I posted about the issue some are having with selecting an avatar & only aliens being available even though there are other options showing to pick from.
    I took a look at the code on the page & find mistakes that make other avatars unavailable for selecton
    Yes, this is copy/paste & it's long but it's the reason only aliens can be selected, at least that's my view.
    I've tried different browsers and the same result, please fix the code.
    Thanks
    <div class="lia-js-avatar-collection">   <div class="AvatarCollectionDisplay" id="lia-avatarCollectionDisplay">   <ul id="list_1" class="lia-list-tile">           <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="HB4ZMBLWrs1aEBnVIi1bhGJokqhAb1hjnc_UI-stk16SnffDeHNIgaSkIQw8Ql3V" rel="nofollow" id="selectIcon" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_1" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/3dwireframe/avatar-theme/classic/avatar-co..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="B0NbTxj-04sDFWeFyOaRu_PxOqtY4RG7aSmvoY0_e_vFZInNfrrj_6Y2j0N3LwJI" rel="nofollow" id="selectIcon_0" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_2" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/3eyes/avatar-theme/classic/avatar-collecti..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="Vu-6blzRPNdjQAbCUhhFzi7WV5I1yoz1Gvu_c1cgJQWXNhyABtoTZXakQrelH4uU" rel="nofollow" id="selectIcon_1" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_3" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/alien1/avatar-theme/classic/avatar-collect..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="413hmBB2Vfl6nGMAsQgo8RfBdY_HMof_-Mj7uG1xNeVVfQLGVSDyCSDBEMXvGpIf" rel="nofollow" id="selectIcon_2" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_4" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/alien2/avatar-theme/classic/avatar-collect..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="L861quckYsuPa_cSx4GSrJTds6e6mTXTwnRJzvBXGzqPWTThiYImkGB_RxhhE8gR" rel="nofollow" id="selectIcon_3" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_5" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/alien3/avatar-theme/classic/avatar-collect..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="5AJN13cN6gPfO-GHQoPg-zM3Ysvpcw7B_RICUREMIcOtNuI_lS1iUPeKJlU-HEzQ" rel="nofollow" id="selectIcon_4" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_6" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/alien4/avatar-theme/classic/avatar-collect..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="2QC1By4Z-cZKjUFQBtSK40cRk3z0hA3yqdIXKapP_Efg6Ocex8_noF8xTUhNHZDt" rel="nofollow" id="selectIcon_5" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_7" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/alien5/avatar-theme/classic/avatar-collect..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="csZePXZyjnYPB2F3h63VN50VvbCGHXjI3bQFZ-fXMYjyIx3L51HYkDQCFCjnzOjJ" rel="nofollow" id="selectIcon_6" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_8" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/badegg/avatar-theme/classic/avatar-collect..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="MgIdD_Iax41bjjYru_iimGFHMXvBJMH0AJwfjUzOmQDES26TY3E8zW8GhajvA-TD" rel="nofollow" id="selectIcon_7" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_9" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/brain/avatar-theme/classic/avatar-collecti..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="G4P4Qz6PnzdlAi7gH-pJvG5SMiTAaZI-tWnZOZUd-6hbhBhgiKx6GX57wuLnCana" rel="nofollow" id="selectIcon_8" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_10" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/fungalheart/avatar-theme/classic/avatar-co..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="ui0x9hIqc8RWhbbv2RqrVO5brO-X7gfMMBmk4dB-E7NX4tncaUZIN830Xpuxu6Ux" rel="nofollow" id="selectIcon_9" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_11" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/idcard/avatar-theme/classic/avatar-collect..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="a4rpGOewZ77lWaoK3a_5BLz9S_YOm00GKvbzDfbsVgINe01qGX39zTCqPwjyakki" rel="nofollow" id="selectIcon_10" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_12" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/longneck/avatar-theme/classic/avatar-colle..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="CrL3_rS8mi5_TcZh8GMYdiNiioNlBBPaUbeSheE04lv2MdpdBAl7a1WclguFCTPR" rel="nofollow" id="selectIcon_11" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_13" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/longneck2/avatar-theme/classic/avatar-coll..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="bs9afgPSQR9oDnH3Pl8Ny67vns-FfoxqPxJFSapvuwCgHaffqzPxVCzSctxjSryx" rel="nofollow" id="selectIcon_12" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_14" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/skull/avatar-theme/classic/avatar-collecti..."/></a></li>       <li><a class="lia-link-navigation set-user-avatar-to-selected lia-link-ticket-post-action" data-lia-action-token="JqUbds1i5CzGCPTsxwkk72qeTUJv3JPVovldVrI36xZ35p72DigLSbFYaEjqiouf" rel="nofollow" id="selectIcon_13" href="https://h30434.www3.hp.com/t5/user/myprofilepage.usericons.avatarcollectiondisplay.selecticon/user-i..."><img id="display_15" src="https://psg.i.lithium.com/t5/image/serverpage/avatar-name/ultrahuman/avatar-theme/classic/avatar-col..."/></a></li>           </ul>   </div>"
    Using pc's since 82. First pc bought 1988. Every day I'm still learning new things about computing.
    This question was solved.
    View Solution.

    Thanks, if you look at the code (all of it, not just what I pasted) the only avatars in the code are Aliens. Not one single line in the code mentions the other choices. that's why we cannot select other avatars in my opinion.
    Using pc's since 82. First pc bought 1988. Every day I'm still learning new things about computing.

  • [svn:fx-trunk] 5289: Fix for - HTML tags in span tags in ASdoc comments not being parsed correctly.

    Revision: 5289
    Author: [email protected]
    Date: 2009-03-12 21:09:58 -0700 (Thu, 12 Mar 2009)
    Log Message:
    Fix for - HTML tags in
    tags in ASdoc comments not being parsed correctly.
    QE Notes: Some baseline will require update.
    Doc Notes: None.
    Bugs: SDK-19815
    tests: checkintests, asdoc
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19815
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Resize/re-scale & optimize all images for the web in your graphics editor before you insert them into your web pages.  Saves bandwidth and reduces page load.
    Cycle2 is a responsive slideshow.  If you want all images to remain 400px and not responsive to layout,  you'll need to modify the CSS code a little.
    Details on using Previous & Next links are in the documentation.
    http://jquery.malsup.com/cycle2/demo/prevnext.php
    Nancy O.

  • How to fix this code?

    Hello,
    I am trying to display country, state within each country,
    then person in each state...using cfoutput and group.
    i am getting this error...How can i fix this code?
    The &lt;cfif&gt; tag requires an end tag to nest
    within &lt;cfoutput&gt;, which began on line 21, column
    26.<p>The CFML compiler was
    processing:<ul><li>The body of a cfoutput tag beginning
    on line 26, column 34.<li>The body of a cfoutput tag
    beginning on line 26, column 34.</ul>

    Rather then including <cfif county_q.state neq ''> in
    your CF code eliminate any records with an empty state in your
    query. The sample appears to have a country, state, and name value
    for every record.
    If this is not possible please post a more code including:
    1. Your query
    2. A sample of your data with and without an empty state
    value

  • The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or

    I have taken the cfdump for tmpqry and it shows all data for
    the range ( No error at this step ) . But when we exceute this
    dbquery we get below mentioned error .
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    senerio:
    I am using createobject to create a reference for component
    and call MDArraySort function in the cfc and getting this error .
    'The system has attempted to use an undefined value, which
    usually indicates a programming error, either in your code or some
    system code.
    Null pointer is undefined.... '
    i am using this code in a cfc file.
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    var tmpqry = Querynew(arguments.colNames);
    var qRow = QueryAddRow(tmpqry, Arraylen(arguments.colArray)
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    sIndexinSensorIDs = colArray[qRowIndex]["SENSOR"]&"##";
    Temp_readin_code =
    colArray[qRowIndex]["READING_CODE"]&"##";
    QuerySetCell(tmpqry, 'SENSOR', sIndexinSensorIDs,
    qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',javacast('String',colArray[qRowIndex]["TYPE"]), qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(colArray[qRowIndex]["TIMESTAMP2"]), qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',javacast('String',colArray[qRowIndex]["ORDER_BY_PARAM"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',Temp_readin_code ,
    qRowIndex);
    QuerySetCell(tmpqry,
    'READING',javacast('String',colArray[qRowIndex]["READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',javacast('String',colArray[qRowIndex]["PK_READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',javacast('String',colArray[qRowIndex]["ALARM_STATUS"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    javacast('String',colArray[qRowIndex]["DURATION"]), qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',javacast('String',colArray[qRowIndex]["DESCRIPTION"]),
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    It is working fine for some date range and and getting above
    mentioned error in sone situation .

    Hi All ,
    Thank you for your support ,
    Finally i have fix the issue using some changes in my
    function in cfc .
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    //Declare variable collection used in function as local
    --->
    var tmpqry =
    Querynew(arguments.colNames,"CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_DATE,CF_SQL_VARCHAR,CF_ SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR");
    var qRow = QueryAddRow(tmpqry,
    Arraylen(arguments.colArray));
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    // Populate the query table
    QuerySetCell(tmpqry, 'SENSOR',
    colArray[qRowIndex]["SENSOR"], qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',arguments.colArray[qRowIndex]["TYPE"], qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(arguments.colArray[qRowIndex]["TIMESTAMP2"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',arguments.colArray[qRowIndex]["ORDER_BY_PARAM"],
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',
    colArray[qRowIndex]["READING_CODE"] , qRowIndex);
    QuerySetCell(tmpqry,
    'READING',arguments.colArray[qRowIndex]["READING"], qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',arguments.colArray[qRowIndex]["PK_READING"],
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',arguments.colArray[qRowIndex]["ALARM_STATUS"],
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    arguments.colArray[qRowIndex]["DURATION"], qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',arguments.colArray[qRowIndex]["DESCRIPTION"],
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    Rajesh
    SCMS
    India

  • Report Problem need to fix the code

    Hello Expert
    I am new to apex, I was given a task to interpret the code and fix the problem.
    This Apex application has a list of value where the user select the institution as a drop down list menu. After selecting the institution the main report below the drop down list will be populated based on the selection. The problem is that when the user insert record for standalone program, this insert don't appear on the report when the user select the instituion.
    can someone look at the code below and explain to me line by line what it does and how can I twick it to solve this problem? I am cloue less and I need expert help
    select dt.* 
             ,case when dt.delivery_location is null then null
                      else htf.anchor ('javascript:void(0);'
                                              ,'<img src=#APP_IMAGES#location.png
                                                title=''' ||dt.delivery_location || '''
                                                alt=''' ||dt.delivery_location || '''
                                                height=24 width=24/>'
              end dl_hover
      from (
    select
            CASE WHEN INDEP_DEGREE = 'Y' THEN
            CASE WHEN Dt.DEGREE_ACRONYM IN ('AACC','ASCC') then
              da.DESCRIPTION   || ' with an Emphasis Area of ' ||
                     NVL(Mt.DESCRIPTION,cC.DESCRIPTION)
                ELSE    
             nvl(dt.description, da.DESCRIPTION)
             END
             ELSE
                CASE WHEN Dt.DEGREE_LEVEL IN ('V','A') THEN
                     nvl(dt.description, da.DESCRIPTION )  || ' with an Option in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                WHEN Dt.DEGREE_LEVEL IN ('E','C','Z','F')  THEN
                     nvl(dt.description, da.DESCRIPTION )  || ' in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                ELSE    
                     nvl(dt.description, da.DESCRIPTION )  || ' with a Major in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                END
        END
    degree_name
    --,'???' emphasis_area
    ,nvl(mt.cip_code,dt.cip_code) cip_code
    ,nvl(mt.hours, dt.hours) total_credit_hours
    -- ,dt.deactivated status
    ,case when nvl(mt.deactivated,dt.deactivated)  = 'A' then 'Active'
              when nvl(mt.deactivated,dt.deactivated) = 'D' then 'Deactivated'
              when nvl(mt.deactivated,dt.deactivated) = 'T' then 'Terminated'
          WHEN NVL(mt.deactivated,dt.deactivated) = 'I'
          THEN 'Inactive'
              else null
       end status
    --,dt.degree_level program_type
    ,dl.description program_type
    ,dt.coop_indicator coop_indicator
    ,nvl(mt.approval_date,dt.approval_date) approval_date
    ,nvl(mt.implemented,dt.implemented) implemented
    ,nvl(mt.implementation_date, dt.implementation_date) implementation_date
    ,nvl(mt.delivery_mode ,dt.delivery_mode) delivery_mode
    ,(select rtrim(replace(replace(xmlagg(xmlelement("C" ,c.cixxvext_name)).getclobval() ,'<C>' ,'') ,'</C>' ,'&#xD; ') ,'&#xD; ') C
      from degree_transaction_details dtd
             ,cixxvext c
      where (dtd.degree_transaction_id = case when INDEP_DEGREE= 'Y' then dt.degree_id else mt.major_id end )
          and c.cixxvext_ext_site_cd = dtd.detail_value
    and dtd.record_type= case when INDEP_DEGREE = 'Y' then 'DEGREE' else 'MAJOR' end ) delivery_location
    ,dt.degree_id degree_id
    ,'Comparison Report' comparison_report
    ,apex_util.prepare_url ('f?p=&APP_ID.:2:&SESSION.::&DEBUG.:2:P2_FICE_CODE,P2_DEGREE_ID:&P1_FICE_CODE.,'||dt.degree_id) edit_link
    ,apex_util.prepare_url ('f?p=&APP_ID.:4:&SESSION.::&DEBUG.:RP,4:P4_DEGREE_ID:'||dt.degree_id) cr_link
    ,dt.description
    ,mt.major_id major_id
    ,nvl(mt.online_percentage,dt.online_percentage) online_percent
    ,nvl(mt.last_inst_review,dt.last_inst_review) last_inst_review
    from degree_transactions dt,
        degree_acronyms da,
        major_transactions mt,
        degree_levels dl,
        cip_codes cc
    where dt.degree_id = mt.degree_id
      and mt.cip_code = cc.cip_code
      and dl.degree_level = nvl(mt.degree_level,dt.degree_level)
      and dt.degree_acronym = da.degree_acronym
      and dt.Fice_code = da.fice_code
      and dt.degree_level = da.degree_level
      and dt.deactivated in ('A','D')
      and mt.deactivated in ('A','D')
      and dt.fice_code = :P1_FICE_CODE
      and dt.show_inst = 'Y'
    ) dt
    order by dt.description nulls first

    You said:
    "I was able to debug the code in SQL Developer."  Does this mean that you:
    ran the code, got results
    then set indep_degree to 'Y' on a row in your database
    ran the code again and saw the results you are looking for?
    If true, your code is working and should operate the same in APEX.
    So if your code is working, we need to understand what processes are running on the form and when they are firing.
    Jeff

  • Can't fix this code

    im still new to the j2me thing , so guys i need ur help if you plz , i should add a try block but its not working, waiting for ur replies .
    import java.util.*;
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.io.file.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class FileTransfere extends MIDlet implements CommandListener {
    private String currDirName = "fileTransfere/";
    public DatagramConnection dd = (DatagramConnection)Connector.open("datagram://:1234");
    public Vector ReqFiles = new Vector();
    public Vector sendFiles = new Vector();
    public Vector otherFiles = new Vector();
    private Command exit = new Command("Exit", Command.EXIT, 3);
    public void startApp()
    try {
    showCurrDir();
    } catch (SecurityException e) {
    Alert alert = new Alert("Error",
    "You do not have permission to access the file system!",
    null, AlertType.ERROR);
    alert.setTimeout(Alert.FOREVER);
    Form form = new Form("Cannot access FileConnection");
    form.append(new StringItem(null,
    "You cannot run this MIDlet with the current permissions. "
    + "Sign the MIDlet suite, or run it in a different security domain"));
    form.addCommand(exit);
    form.setCommandListener(this);
    Display.getDisplay(this).setCurrent(alert, form);
    } catch (Exception e) {
    e.printStackTrace();
    public void pauseApp()
    public void destroyApp(boolean cond)
    notifyDestroyed();
    public void commandAction(Command c, Displayable d)
         if (c == exit) {
    destroyApp(false);
    void showCurrDir()
    Enumeration e;
    FileConnection currDir = null;
    Form browser = new Form("files:");
    try {
    if ("/".equals(currDirName)) {
    e = FileSystemRegistry.listRoots();
    System.out.println(currDirName);
    } else {
    currDir = (FileConnection)Connector.open("file://localhost/" + currDirName);
    e = currDir.list();
    // not root - draw UP_DIRECTORY
    String sendMe = "FILES\n";
    String filenames = "";
    iny count = 0;
    while (e.hasMoreElements()) {
    String fileName = (String)e.nextElement();
    System.out.println(fileName);
    browser.append(fileName);
    FileConnection file = (FileConnection)Connector.open("file://localhost/" + currDirName + fileName);
    if(!file.isDirectory())
         filenames += fileName +"\n";
         count ++;
    sendMe += count + "\n"+ fileNames;
    try
         byte[] data = sendMe.getBytes();
         DatagramConnection dc = (DatagramConnection) Connector.open("datagram://127.0.0.1:2020");
              Datagram d = dc.newDatagram(data,data.length);//packet
                        dc.send(d);//send
    catch(Exception e)
    /* FileConnection wf = (FileConnection)Connector.open("file://localhost/root1/testfile.txt");
    OutputStreamWriter osw = new OutputStreamWriter(wf.openOutputStream());
    FileConnection file = (FileConnection)Connector.open("file://localhost/" + currDirName + fileName);
    InputStreamReader isr = new InputStreamReader(file.openInputStream());
    System.out.println("read: " + file.canRead());
    System.out.println("write: " + file.canWrite());
    System.out.println("directory: " + file.isDirectory());
    System.out.println("file: " + !file.isDirectory());
    System.out.println("Time: " + file.lastModified());
    int ch = isr.read();
    int counter = 0;
    String s = "";
         while( ch != -1)
              if (counter == 1024)
                   try
                        byte[] data = s.getBytes();
                        DatagramConnection dc = (DatagramConnection) Connector.open("datagram://127.0.0.1:2020");//socket
                        Datagram d = dc.newDatagram(data,data.length);//packet
                        dc.send(d);//send
                        counter = 0;
                        s = "";
                   }catch(Exception e)
                        e.printStackTrace();
                        //send the packet & reset the counter
              counter ++;
              //osw.write(ch);
              //System.out.print((char)ch);
              s += (char)ch;
              ch = isr.read();
              isr.close();
              osw.close();
    new Thread(new Runnable()
         public void run()
              for(;;){
              byte[] data = new byte[1024];
              Datagram recDG = dd.newDatagram(data,data.length);//packet
                   dd.receive(recDG);//receive
                   validatePacket(recDG);
    ).start();
    catch (Exception ee)
    public void validatePacket(Datagram re)
         byte[] bytes = re.getData();
         String line = new String();
         int ch;
         ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
         ch = bais.read();
         while( ch != 10)
              line += (char)ch;
              ch = bais.read();     
         System.out.println(line);
         if(line.equals("FILES"))
              line = new String();
              ch = bais.read();
              while( ch != 10)
                   line += (char)ch;
                   ch = bais.read();     
              int nofs = Integer.parseInt(line);
              for(int i = 0; i<nofs;i++)
                   line = new String();
                   ch = bais.read();
                   while( ch != 10)
                        line += (char)ch;
                        ch = bais.read();     
                   FileConnection fc = (FileConnection)Connector.open("file://localhost/" + currDirName + line);
                   otherFiles.addElement(line) ;
                   if (!fc.exists())
                        ReqFiles.addElement(line) ;
              for(i = 0; i< ReqFiles.size(); i++)
                   String sendMe = "I WANT FILE\n" + ReqFiles.elementAt(i)+"\n";
                   try
         byte[] data = sendMe.getBytes();
         DatagramConnection dc = (DatagramConnection) Connector.open("datagram://127.0.0.1:2020");
              Datagram d = dc.newDatagram(data,data.length);//packet
                        dc.send(d);//send
    catch(Exception e)
         if (line.equals("YOUR FILE"))
              line = new String();
              ch = bais.read();
              while( ch != 10)
                   line += (char)ch;
                   ch = bais.read();     
              String filename = line;
              FileConnection fc = (FileConnection)Connector.open("file://localhost/" + currDirName + line);
              fc.create();
              OutputStreamWriter osw = new OutputStreamWriter(fc.openOutputStream());
              line = new String();
              ch = bais.read();
              while( ch != 10)
                   line += (char)ch;
                   ch = bais.read();     
                   int nofs = Integer.parseInt(line);
              for(int i = 0; i<nofs;i++)
              {                                      // for start
                   //line = new String();
                   ch = bais.read();
                   while( ch != 10)
                   {                                        // while start
                   //line += (char)ch;
                   osw.write((char)ch);
                        ch = bais.read();     
                   } // while end
                        osw.write((char)10);
         } // for end
         if (line.equals("I WANT FILE"))
              line = new String();
              ch = bais.read();
              while( ch != 10)
                   line += (char)ch;
                   ch = bais.read();     
              String filename = line;
              FileConnection fc = (FileConnection)Connector.open("file://localhost/" + currDirName + line);
              InputStreamReader isr = new InputStreamReader(fc.openInputStream());
              line = new String("");
              ch = isr.read();
              int nol = 0;
              while( ch != -1)
                   while( ch != 10)
                        line += (char)ch;
                        ch = isr.read();     
                   line += (ch)10;
                   nol++;
              line = "YOUR FILE\n" + filename +"\n" + nol + "\n" + line;
              try
         byte[] data = line.getBytes();
         DatagramConnection dc = (DatagramConnection) Connector.open("datagram://127.0.0.1:2020");
              Datagram d = dc.newDatagram(data,data.length);//packet
                        dc.send(d);//send
    catch(Exception e)
    // FileConnection f = (FileConnection)Connector.open("file:///root1/testfile.txt");
    //f.create(); //for files
    //f.mkdir(); //for directories
    //f.delete();// for deleting a filer or an empty directory
    //f.exists() //check if file exsists ( returns boolean)
    //Do not allow creating files/directories beside root
    browser.addCommand(exit);
    browser.setCommandListener(this);
    if (currDir != null) {
    currDir.close();
    Display.getDisplay(this).setCurrent(browser);
    } catch (IOException ioe) {
    ioe.printStackTrace();

    Come on... We can't answer question like this? At least try to put some effort in it, and tell us WHAT is not working, and what this midlet should do!
    And, please, use the [  code ] tags! It makes things actually readable.
    And finally, don't crosspost: http://forum.java.sun.com/thread.jspa?threadID=740079&tstart=0

  • Code tags

    This is my first forum.
    How do you use the 'code tags' on this site?
    Should i click the code button then paste my code? Should I paste my code in between "like right here"?  

    That's it! Well done.
    But don't start new threads for everything, you should have replied to your other thread.

  • How can I fix error code 131:4? Licensing for this product stopped working. I have windows vista home edition and CS4 Design Premium. I downloaded licensing zip file for windows but I can't seem to get it to launch. Look forward to help from anyone

    How can I fix error code 131:4? Licensing for this product stopped working. I have windows vista home edition and CS4 Design Premium. I downloaded licensing zip file for windows but I can't seem to get it to launch. Look forward to help from anyone

    Steve,
    I appreciate your answer.  While it might work, I'm a bit hesitant to remove the other programs as a possible solution since they are all currently working.
    With Acrobat 9 Pro failing with the OS 10.7 upgrade, I'm hoping that there is a less severe solution.
    Since the trigger appears to be 10.7 and may have something to do with the discontinued support of Rosetta, I could be spending a few hours working on a reinstall without a change.  Yes, it might work.  The "might" is the part that makes me hesitate.
    Is anyone else out there on OS 10.7 and running Acrobat 9 Pro?  Any issues with anyone else?
    Thanks Steve.  I do appreciate your offering a solution.  I may end up trying it if nothing else comes together.
    Mark

  • Need help fixing my code...

    I'm currently working on a problem for school where you have to make a game called Pig.
    I worked on it but need help on fixing it because it won't work the way I want it to, and I'm not sure what the problem is.
    public class Pig
        public static void main (String[] args)
          int num1, num2, num3 = 0, num4, num5, num6 =0;
          String answer="y";
          PairOfDice die1 = new PairOfDice(); // die # 1
          PairOfDice die2 = new PairOfDice(); // die # 2
          while (num3 <= 100 || num6 <= 100)
          // rolls dice
          while (answer.equalsIgnoreCase("y"))
              num1 = die1.roll();
              num2 = die2.roll();
              if (num1 == 1 || num2 == 1) // when either face is 1
                {num3 = num3;
                 answer = "n";}
              else  
                if (num1 == 1 && num2 == 1) // when both faces are 1
                    {num3 = 0;
                     answer = "n";}
                else
                    num3 += num1 + num2; // sum of two faces
          System.out.println (num1 +" "+ num2); // shows both faces
          System.out.println (num3); // shows the sum of faces
          System.out.println ("Do you want to roll again? (y/n)");
          answer = Keyboard.readString();
          if (answer.equalsIgnoreCase("n"))
            answer = "1";
          while (answer.equalsIgnoreCase("1"))
              while (num6 <= 20)
                 num4 = die1.roll();
                 num5 = die2.roll();
                 if (num4 == 1 || num5 == 1) // when either face is 1
                     {num6 = num6;
                      answer = "2";}
                 else  
                    if (num4 == 1 && num5 == 1) // when both faces are 1
                        {num6 = 0;
                         answer = "2";}
                    else
                        num6 += num4 + num5; // sum of two faces
              System.out.println (num4 +" "+ num5); // shows both faces
              System.out.println (num6); // shows the sum of faces
              answer = "y";
          Here is my code. It runs okay, but when the dice rolls a 1, it doesn't jump to the next while loop. I need the program to go to the "while loop answer = 1" when the dice rolls a 1 from the "while loop answer = y". If you see my code, I did it by making the answer = "n" to make it jump to the next while loop. I'm sorry if my explanation is confusing. It's my first time asking for help here...
    You don't have to fix the code for me, as long as you tell me what I'm doing wrong.
    Please help me...Thank you for your help.
    Edited by: nakatsu on Nov 12, 2007 7:03 PM

    Hint: all your code does NOT have to be in one method. You have numerous loops some nested inside others. This is starting to get mighty messy and can be tidied up if you think about how you can break some of the code down into smaller chunks and place these into their own methods.
    while (answer.equalsIgnoreCase("1"))What other case is there?

  • How to fix error codes 9808 and 1202?

    I need help fixing error codes 9808 and 1202, can anyone help PLEASE!!!!!

    This alert is often caused by a perceived security issue due to higher than expected security settings.
    -checking if date and time is correct will usually fix this issue.
    also, it may help to disable your security sofware.
    hope this helps

  • Sun Creator removes your code ?

    Hi,
    I am new to Sun Creator and i have an issue i can't understand.
    Somewhere in my code i use a FileFilter and i have specified the class as a typecast, see code below :
    fc.setFileFilter( new javax.swing.filechooser.FileFilter(){public boolean accept(File f){return((f.isDirectory()));}public String getDescription() {return "Folders Only";}});
    It works fine. The only problem, that's actually driving me mad, is that as soon as i change anything in my JSP page in design time, Sun Creator brutally removes "javax.swing.filechooser." preceding "File Filter".
    Compiling then naturally results in an error "Reference to filefilter is ambigious, both class javax.swing.filechooser.FileFilter in javax.swing.filechooser and class java.io.filefilter in java.io match".
    Is there any option to turn this "code massacre" off ?
    Please anyone advise.

    I've tried the same thing in eclipse and i had no problem.
    To Sun Creator :
    I've worked on a lot of languages for over 8 years now. I've started java for some time. Never had any problem writing pure java code. Even now with sun creator i always achieve my goals. The IDE is not bad, though far from being the best thing i have seen, BUT I never thought that Sun would publish such a BUGGY product. The IDE is full of bugs, i've almost found 9 really bad ones and there are more than 100 to be found on reviews. I must say never thought that an IDE made by Sun could be so poorly unstable.
    you make changes on jsp page, and you can lose 10 minutes rewriting and formatting your code, EACH TIME ! (even without the formatting options non sense)
    how can an IDE come to a situation to have duplicate object id in the project ??? Only had to create a checkbox in a datatable, compiled, deleted the object then recompiled and i had to manually change the jsp page in build directory in order to remove it and correct the problem or the whole project would not compile anymore.
    cleanup project one could ask oneself what this is for, caused it makes things even worse
    etc etc etc i see no way to equip 5 people in my department with such an buggy-toy IDE.
    Does anyone know of other bug/issue fixes than "118941-01" and "118338-04" ?
    If not i will need to think about sth else like using eclipse.

  • [svn:fx-trunk] 5351: Fix for @ copy tag causing first method arg to appear as the last arg in the destination method

    Revision: 5351
    Author: [email protected]
    Date: 2009-03-17 12:51:44 -0700 (Tue, 17 Mar 2009)
    Log Message:
    Fix for @copy tag causing first method arg to appear as the last arg in the destination method
    QE Notes: Some baseline will require updates.
    Doc Notes: None.
    Bugs: SDK-19974
    tests: checkintests, asdoc
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19974
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Well, putting all that Java code into a JSP was a bad idea in the first place, just on general design principles. But you've done it in such a way that the result of compiling the JSP is malformed Java code. Frankly I would just throw it away and put the Java code into a servlet or some other Java class, where it belongs.
    But if you're really working in a place where nobody has learned anything since 2003, and you're forced to support that old junk, then I would point out that the error occurs before the place which generates this line:
    import java.util.*;You only need to look at two of the thousand lines of code you posted.

  • SQL Developer 4.0 Early Adopter 2 - avoid "Please amend your code to something like this" message

    When I edit PL/SQL packages or sql queries in SQL Developer 4.0 Early Adopter 2,
    when i copy/paste SQL code, sometimes "Please amend your code to something like this: "select * from when", or "begin when; end;" appears.
    Sometimes SQL Developer freezes.
    Can I avoid that message (turn off some kind of checks in SQL Developer properties)?

    This has been raised/documented fixed in future releases here:
    EA42 - Ambiguous Context Pop-up

Maybe you are looking for

  • Credit release transfer from Delivery order to sale order

    Dear Master's, Our setting for credit release from delivery order but now change requirement from our organization, they like this check from sale order and i create setting it in test server but there is a problem with me, every thing is ok, system

  • Functionality of "Reassignment"/ release/ reject in VKM3 tcode

    Hi, I need to know the functionality of "Reassignment" field in tcode VKM3. Please let me know the complete process if user wants to use this tab. Regards

  • Case for note 4 with original wireless charging cover

    I bought a samsung wireless charging cover for my note 4. When I tried to out the case on it, it no longer fits. After doing research I confirmed the phone is slightly thicker now. What cases are compatible with this set up?

  • Sync iCal with google calendar

    I want to have all my events on my google calendar not my google events on my iCal.

  • Cdc enable sqlserver

    Hi all, SQL SERVER 2008 ENTERPISE EDITION GG 11.2.0.1 As pre-requisite for sqlserver replication to oracle, I am enabling CDC on the sourcedb. ============ USE acrdb go exec sys.sp_cdc_enable_db go ============= But I got this error: ============ Msg