Post Source Code Comments in DTR

Is there a way to configure the DTR to take the activity check-in comments and add them as comments to the header of the source file(s)?  It would be nice if you could put the version number and the last author and the change comments at the begining of the source file.
JC

Hi Jason,
No, this feature ("Keyword substitution", as it is known in the SCM world) is not yet available in DTR.
Regards,
Manohar

Similar Messages

  • How to synchronize source code using distributed NWDI Servers?

    Hello,
    I am facing a bit of a challenge trying to find documentation regarding the replication of source code using NWDI/DTR in a distributed environment. By distributed I mean independent instances in different geographical locations.
    Scenario
    Our customer product (DCs/SCs/etc) will be developed by two teams. These teams are far away from each other, and a local dedicated NWDI instance for each team is a must, due to the distance plus the big size of the product. It should be possible for the teams to work on a same Track. We use a NWDI 7.31 instance.
    I have been looking into the documentation and so far I found no guide on how to keep both repository updated with each other changes.
    The following links make notes of the scenario but are not addressing the solution properly.
    Distributed Development
    A synchronization of changes might have to be done between:
    Workspaces present in the same repository.
    Workspaces present in different repositories.
    Developepment Infrastructure (DI) Architecture
    Central source file management – in the Design Time Repository (DTR), a file storage in a database with export mechanisms that allow you to synchronize the instances of the DTR in a distributed development.
    Solution?
    Does NWDI offers any tool to solve this kind of requirement? Am I missing any documentation?
    Or, NWDI doesn't have a solution for this kind of scenario?
    And by the way, I would expect a "smooth" integration between the servers, like automatic asynchronous replication, with proper managment of conflicts and all the other delightful paradigms of source control.
    Are we talking about exporting source code and importing it on the other side? Would this be the only alternative, and how is it done?
    Thanks in advance.

    A lot of obfuscators, rather than use one-letter method names, use keywords for names. This has the benefit of not decompiling to valid Java
    Well, thats only true if you have a bug in your decompiler. My decompiler (jad) handles keywords by adding additional letters (underscores and stuff).
    The problem is solved by an obfuscator. Compiled c++ code can be disassembled in the same way as obfuscated java byte code. So, if you were satisfied with the protection of your C++ code, then you should be just as satisfied with obfuscated java byte code.

  • Generated XML doc file contains comments from MFC source code

    Hello, in my project I use the option /doc to generate XML doc file from my source codes but unfortunately in the output XML file there are mixed also comments from original MFC source codes, see the part of generated xml file:
    Is there a solution to ignore these MFC cpp files?
    Many thanks
    Regards
    Petr Stejskal
    <?xml version="1.0"?>
    <style xmlns="http://www.w3.org/1999/xhtml">@namespace html url(http://www.w3.org/1999/xhtml); :root { font:small Verdana; font-weight: bold; padding: 2em; padding- } * { display: block; padding- } html|style { display: none; } html|span, html|a
    { display: inline; padding: 0; font-weight: normal; text-decoration: none; } html|span.block { display: block; } *[html|hidden], span.block[html|hidden] { display: none; } .expand { display: block; } .expand:before { content: '+'; color: red; } .collapse
    { display: block; } .collapse:before { content: '-'; color: red; } </style><doc><assembly><assembly>       
    "Console"    </assembly></assembly><members><members><member name="T:_RS"><member
    name="T:_RS">Reed-Solomon codec control block</member></member><member name="M:MMask_makeMask(System.Int32,System.Byte*,System.Int32,QRecLevel)"><member
    name="M:MMask_makeMask(System.Int32,System.Byte*,System.Int32,QRecLevel)">Mode indicator. See Table 2 in Appendix 1 of JIS X0510:2004, pp.107.</member></member><member
    name="M:CMFCControlRenderer.IsScaled"><member
    name="M:CMFCControlRenderer.IsScaled"><summary><summary>Tells whether this control
    renderer works with scaled (resized) images.</summary></summary><returns><returns>Returns TRUE if this control
    renderer works with resized (scaled) images.</returns></returns></member></member><member name="M:CMFCControlRenderer.SmoothResize(System.Double)"><member
    name="M:CMFCControlRenderer.SmoothResize(System.Double)"><summary><summary> 
    Smoothly resizes images.</summary></summary><param name="dblScale" /><param
    name="dblScale"> Scale ratio.</param><returns><returns>
    TRUE if resize succeeds; otherwise FALSE.</returns></returns></member></member><member name="M:CDrawingManager.CreateBitmap_32(HBITMAP__*,System.UInt32!System.Runtime.CompilerServices.IsLong)"><member
    name="M:CDrawingManager.CreateBitmap_32(HBITMAP__*,System.UInt32!System.Runtime.CompilerServices.IsLong)"><summary><summary>
    Creates a 32 bit bitmap from the specified bitmap.</summary></summary><returns><returns> A handle to created
    bitmap, or NULL, if creation fails.</returns></returns><param name="bitmap" /><param
    name="bitmap"> A handle to the original bitmap.</param><param name="clrTransparent"
    /><param
    name="clrTransparent"> An RGB value specifying transparent color of the original bitmap.</param></member></member><member
    name="M:CDrawingManager.CreateBitmap_32(CSize!System.Runtime.CompilerServices.IsConst*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Void**)"><member
    name="M:CDrawingManager.CreateBitmap_32(CSize!System.Runtime.CompilerServices.IsConst*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Void**)"><summary><summary>
    Creates an empty 32 bit bitmap.</summary></summary><returns><returns> A handle to created bitmap, or NULL,
    if creation fails.</returns></returns><param name="size" /><param
    name="size">Specifies bitmap size.</param><param name="pBits" /><param
    name="pBits">When the function returns contains a pointer to bitmap bits.</param></member></member><member
    name="M:CDrawingManager.DrawRotated(CRect,CDC*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Int32)"><member
    name="M:CDrawingManager.DrawRotated(CRect,CDC*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Int32)"><summary><summary>Rotates
    a source DC content inside the given rectangle by +/- 90 degrees</summary></summary><param name="rectDest" /><param
    name="rectDest">Destination rectangle</param><param name="dcSrc" /><param
    name="dcSrc">The source device content.</param><param name="bClockWise"
    /><param
    name="bClockWise">TRUE - rotate +90 degrees, FALSE - 90.</param></member></member><member
    name="M:AfxRegDeleteKey(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,ATL.CAtlTransactionManager*)"><member
    name="M:AfxRegDeleteKey(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,ATL.CAtlTransactionManager*)"><summary><summary>Deletes
    the specified registry key.</summary></summary><returns><returns>  If the function succeeds, the return
    value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in Winerror.h</returns></returns><param name="hKey" /><param
    name="hKey">A handle to an open registry key.</param><param name="lpSubKey"
    /><param
    name="lpSubKey">The name of the key to be deleted.</param><param name="pTM" /><param
    name="pTM">Pointer to CAtlTransactionManager object</param></member></member><member
    name="M:AfxRegOpenKeyEx(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,System.UInt32!System.Runtime.CompilerServices.IsLong,System.UInt32!System.Runtime.CompilerServices.IsLong,HKEY__**,ATL.CAtlTransactionManager*)"><member
    name="M:AfxRegOpenKeyEx(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,System.UInt32!System.Runtime.CompilerServices.IsLong,System.UInt32!System.Runtime.CompilerServices.IsLong,HKEY__**,ATL.CAtlTransactionManager*)"><summary><summary>Opens
    the specified registry key.</summary></summary><returns><returns>  If the function succeeds, the return
    value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in Winerror.h</returns></returns><param name="hKey" /><param
    name="hKey">A handle to an open registry key.</param><param name="lpSubKey"
    /><param
    name="lpSubKey">The name of a key that this function opens or creates.</param><param name="ulOptions"
    /><param
    name="ulOptions">This parameter is reserved and must be zero.</param><param name="samDesired" /><param
    name="samDesired">A mask that specifies the desired access rights to the key.</param><param
    name="phkResult" /><param
    name="phkResult">A pointer to a variable that receives a handle to the openedkey.</param><param
    name="pTM" /><param
    name="pTM">Pointer to CAtlTransactionManager object</param></member></member></members>

    Hi stejsky,
    Thank you for posting in MSDN forum.
    >>In my project I use the option /doc to generate XML doc file from my source codes but unfortunately in the output XML file there are mixed also comments from original MFC source codes.
    Based on your issue, could you please tell me how you use the option /doc to generate XML doc file from your source codes?
    If you use the option /doc to generate the XML doc file by right-click the your MFC project->Properties->Configuration Properties->C/C++->Output file->set the Generate XML document files as Yes(/doc) like the following screen shot.
    (1)If yes, since we could not reproduce your issue in mu side, so if possible, I suggest you could share me your MFC project so that we will further help you support this issue.
    You could upload your MFC project to the OneDrive and then copy link here.
    (2)If no, please try the above way to generate XML doc file and then check if you still get same issue.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • POSTING TIPS - Code, Images, Hyperlinks, Details

    When you're posting a question - please search the forum first!  If that fails, and you wish to include T-SQL, C#, or VB code in your post, see below.  If you want to show us what you see on your screen (pictures are worth a thousand words), see
    below! Check that a URL does not stay black/gray indicating an inactive hyperlink. All URL references should be blue and clickable.
    Moderators, please add any other tips you may have.
    Including T-SQL, C#, VB.Net Source Code
    (Thanks to Phil Brammer & Kalman Toth for this tip)
    When you are composing a post and you wish to paste code, please don't directly paste it into the post, instead paste it into the code block editor.  It will preserve formatting for you, which makes it easier for us to read it and help you with your issue.
    Examples follow...
    Not using the code block editor:
    select
    text, *
    from sys.dm_exec_cached_plans
    cross apply sys.dm_exec_sql_text(plan_handle)
    Using the code block editor (and with the same copy-n-paste buffer):
    select
    text, *
    from sys.dm_exec_cached_plans
    cross apply sys.dm_exec_sql_text(plan_handle)
    Including Images
    Using the Editor:
    (Thanks to Kalman Toth for these instructions)
    Use the Forum Editor method to Insert Image:
    1. Save the image to disk or copy the image URL
    2. Use the Insert Image (right most) icon to upload the image
    Make sure the URL hyperlink is active:
    The forum post editor automatically hyperlinks a typed URL in IE. But not all browsers do it.
    Use the chain link icon to hyperlink an inactive URL, title or reference.
    Using HTML:
    (Thanks to Todd McDermid & Ed Price for this tip)
    Copy your screen to the clipboard (ALT-PRTSCN) (alternatively, some image editors can do screen captures)
    Paste it in your favourite image editor
    Upload it to a free image hosting site like Flickr,
    ImageShack, ...
    Create your post, then press the "HTML" button on the post toolbar.  This will open another browser window with HTML in it.
    Find the spot where you want the image, and add a standard IMG element, pasting in the URL to your image, like this:
    < img src="http://your.url.here/your_image_filename_here">
    Press the Update button.
    The Volunteer Moderators and Answerers who support the Microsoft MSDN SQL Server Forums have created a Wiki to present Solutions to Common T-SQL Problems.
    (Thanks to Arnie Rowland  for this tip)
    Check here to see if there is a suggestion that can guide you to a solution for your problem.
    http://code.msdn.microsoft.com/SQLExamples
    If you find that the Wiki provided you with useful information, please let us know by posting a synopsis of your problem and a comment about your successful use of that information.
     “Top Solution Content” blog 
    (Thanks to Elvis Long  for this tip)
    As part of our efforts to keep our communities informed about the most relevant content that address the top questions that we are getting in out forums and other support channels we want to introduce the new “Top Solution Content” blog (http://blogs.technet.com/b/topsupportsolutions).
    In this blog you will find up-to-date and valuable information about Microsoft top support solutions for several of our popular products in the Server and Tools portfolio. You can use the tags (http://blogs.technet.com/b/topsupportsolutions/archive/tags)
    to easily locate the product of your preference or visit the home page to see what’s going on for the different Microsoft Enterprise and developer products. As a blog you can also subscribe to post and comments using the RSS feeds.
    We hope this will reduce time and effort when you are looking for relevant content. Enjoy it!
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

    the SWC thing may be exactly what I need.
    I read that link you gave me and I will definately do a little more research on SWC, even if it's not completely clear how to use them at this particular moment.
    let's say I have an image called MyImage.png which I have setup to export for actionscript on frame 1 and the class is called "MyImage"
    Assume I have the same thing setup in my library for a sound file called "MySound"
    Now, without doing any reading first, I would assume that I would create a new fla file, put those 2 assets in said fla's library and then compile that fla into an swc? And then access thoughs assets in my main project by importing the swc into it? or it is more simple than that?
    Cheers
    Dave

  • POSTING TIPS - Code, Diagrams, Hyperlinks, Details

    When you're posting a question - please search the forum first!  If that fails, and you wish to include T-SQL, C#, or VB code in your post, see below.  If you want to show us a database diagram you see on your screen (pictures are worth a
    thousand words), see below! Check that a URL does not stay black/gray indicating an inactive hyperlink. All URL references should be blue and clickable.  Moderators, please add any other tips you may have.
    Including T-SQL, C#, VB.Net Source Code
    (Thanks to Phil Brammer & Kalman Toth for this tip)
    When you are composing a post and you wish to paste code, please don't directly paste it into the post, instead paste it into the code block editor.  It will preserve formatting for you, which makes it easier for us to read it and help you with your issue.
    Examples follow...
    Not using the code block editor:
    select
    text, *
    from sys.dm_exec_cached_plans
    cross apply sys.dm_exec_sql_text(plan_handle)
    Using the code block editor (and with the same copy-n-paste buffer):
    select
    text, *
    from sys.dm_exec_cached_plans
    cross apply sys.dm_exec_sql_text(plan_handle)
    Including Images
    Using the Editor:
    (Thanks to Kalman Toth for these instructions)
    Use the Forum Editor method to Insert Image:
    1. Save the image to disk or copy the image URL
    2. Use the Insert Image (right most) icon to upload the image
    Make sure the URL hyperlink is active:
    The forum post editor automatically hyperlinks a typed URL in IE. But not all browsers do it.
    Use the chain link icon to hyperlink an inactive URL, title or reference.
    Using HTML:
    (Thanks to Todd McDermid & Ed Price for this tip)
    Copy your screen to the clipboard (ALT-PRTSCN) (alternatively, some image editors can do screen captures)
    Paste it in your favourite image editor
    Upload it to a free image hosting site like Flickr,
    ImageShack, ...
    Create your post, then press the "HTML" button on the post toolbar.  This will open another browser window with HTML in it.
    Find the spot where you want the image, and add a standard IMG element, pasting in the URL to your image, like this:
    < img src="http://your.url.here/your_image_filename_here">
    Press the Update button.
    The Volunteer Moderators and Answerers who support the Microsoft MSDN SQL Server Forums have created a Wiki to present Solutions to Common T-SQL Problems.
    (Thanks to Arnie Rowland  for this tip)
    Check here to see if there is a suggestion that can guide you to a solution for your problem.
    http://code.msdn.microsoft.com/SQLExamples
    If you find that the Wiki provided you with useful information, please let us know by posting a synopsis of your problem and a comment about your successful use of that information.
     “Top Solution Content” blog 
    (Thanks to Elvis Long  for this tip)
    As part of our efforts to keep our communities informed about the most relevant content that address the top questions that we are getting in out forums and other support channels we want to introduce the new “Top Solution Content” blog (http://blogs.technet.com/b/topsupportsolutions).
    In this blog you will find up-to-date and valuable information about Microsoft top support solutions for several of our popular products in the Server and Tools portfolio. You can use the tags (http://blogs.technet.com/b/topsupportsolutions/archive/tags)
    to easily locate the product of your preference or visit the home page to see what’s going on for the different Microsoft Enterprise and developer products. As a blog you can also subscribe to post and comments using the RSS feeds.
    We hope this will reduce time and effort when you are looking for relevant content. Enjoy it!
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

    In CSS, there are five states for links
    a:link
    a:visited
    a:hover
    a:active
    a:focus
    a:link (=unvisited, or never clicked)
    a:visited (=clicked at least once)
    a:visited is purple in most browsers by default.
    Thus, you need to define a:visited in your CSS and it should come after a:link (otherwise you'll never see it)
    One solution would be:
    a:link, a:visited {
              color: #00F;
    but bear in mind that visitors find it handy if a:visited is a different color to a:link so they know which links they've already clicked on.
    a:link {
              color: #00F;
    a:visIted {
              color: #SOME OTHER COLOR TO A:LINK;
    a:hover {
              color: #F00;

  • AppleScript's source codes have been mangled beyond repair.

    Hello,
    New fora software has tampered numbers of AppleScript source codes in posted messages to the extent that they become entirely useless. This is serious.
    E.g. (just the tip of an iceberg)
    http://discussions.apple.com/thread.jspa?threadID=1051811&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=1036140&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=1033753&tstart=0
    At a glance, tab and double hyphens (at the beginning of a line?) seem to have special formatting meanings in the new fora software and be translated into some HTML list elements. However, tabs are embeded in well-indented source codes pasted from Script Editor, though they're usually ignored in browsers, and double hyphens have been used for marking line comment in AppleScript. Consequently, almost all of the posted AppleScript source codes are affected.
    Plainly, it is not a good idea to apply new formatting features to the existing messages in the first place. It can introduce corruptions and it does indeed.
    So my requests to fora administrators are:
    (1) Please restore the existing messages in AppleScript forum to the original untampered state (and apply new formatting features to only new messages to be posted after the change, if you see it really necessary).
    (2) Please keep the fora software from interpreting tab and double hyphens (at least) as HTML formatting directives.
    (3) Please disclose the list of all characters which are interpreted as special commands in the new fora software in order to avoid further corruptions in the future.
    Thank you for your time and support.
    Best regards,
    Hiroto

    (3) Please disclose the list of all characters which are interpreted as special commands in the new fora software in order to avoid further corruptions in the future.
    Please don't stop there. Disclose all the details of the new features, like a smiley-to-icon chart or exactly how the quote box format works (single leading ">" vs. one per line or paragraph, what happens in different sized tables, how multiple quote levels (">>" lines) behave, etc.).
    I realize I could probably figure this out by trial & error plus pouring over the raw source HTML, but it is ridiculous that I would have to do so with an Apple site -- after all, the company is supposed to be the world's best at ease of use & user friendliness!

  • Formatting source codes

    I don't if i post it in the correct forum.
    I am trying to find a way to break up a sources code so that it can be interpreted in the form of methods,fields,constructors so that i can exact out the information, like how Netbeans extract the information.
    Any one can help ?

    This could mean one of two things:
    1) Format source so that it is easy to parse as you described.
    That is easy. Just prepend comments like /*CONSTRUCTOR*/ and have your parser look for those.
    2) Parse ANY source file.
    Well.. obviously the compiler knows the difference, which should make it obvious that you can devise a set of rules that does so (like, if the method name is the same as the class name, it is counted as a constructor... if it is prepended with a primitive type or class name it is obviously a variable and not a method, etc.). But that is going to be a world class pain in the neck.
    This is assuming that you want to break up the actual source using a parser. If you are happy just getting the method signatures and so forth you can use reflection.
    Why in the world would you need to do this?
    Drake

  • Dumping Global ABAP Objects Source Code to Text File

    Hello People, this is my first post and my first time to join the forums.. and also my first time to code in ABAP.
    Anyways, I was wondering if there is a way to dump the source code definition of any class/interface made in SE24 (Object Builder) onto a Text File; all the methods, attributes etc... of a class/interface. I've used SEO_METHOD_GET_SOURCE but it doesn't work.
    Thanks for the help.

    Suhas, 
    I have created some wiki links (may be 3-4 months back) which seems similar to this requirement.
    [Extracting Implementation details of global Interface using class - CL_RECA_RS_CLIF |http://wiki.sdn.sap.com/wiki/display/ABAP/ExtractingImplementationdetailsofglobalInterfaceusingclass-+CL_RECA_RS_CLIF]
    [Information of Class Objects using CL_OO_CLASS |http://wiki.sdn.sap.com/wiki/display/ABAP/InformationofClassObjectsusing+CL_OO_CLASS]
    [Source code Download and Syntax Check using CL_RECA_RS_SERVICES|http://wiki.sdn.sap.com/wiki/display/ABAP/SourcecodeDownloadandSyntaxCheckusing+CL_RECA_RS_SERVICES]
    Expecting your comments.
    Regards
    Vinod Kumar
    Edited by: Vinod Kumar on May 5, 2011 11:33 AM

  • Item Finder Source Code

    I am looking to create a page with the same functionality as the 'Item Finder" with in the HTMLDB design tool. It is used on pages like region definitions or any where you need to search for existing items with in your application like on page branching where you can set the item and the value. Does any one have the source code for that page or an example of how to search all of the objects with in the application?

    <html lang="en-us" xmlns="http://www.w3.org/1999/xhtml" xmlns:htmldb="http://htmldb.oracle.com">
    <head>
    <script src="/i/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    <script src="/i/javascript/htmldb_get.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    /*Global JS Variables*/
    var htmldb_Img_Dir = "/i/";
    //-->
    </script>
    <link rel="stylesheet" href="/i/css/core.css" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" href="/i/css/htmldb_V2.css" type="text/css" />
    <title>Item Finder</title>
    </head>
    <body style="margin:5px;">
    <form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm" >
    <input type="hidden" name="p_flow_id" value="4000" id="pFlowId" />
    <input type="hidden" name="p_flow_step_id" value="273" id="pFlowStepId" />
    <input type="hidden" name="p_instance" value="17091739936304412237" id="pInstance" />
    <input type="hidden" name="p_page_submission_id" value="62324" id="pPageSubmissionId" />
    <input type="hidden" name="p_request" value="" id="pRequest" /><a name="PAGETOP"></a>
    <div id="htmldbMessageHolder"></div>
    <div><table summary="" ><tr>
    <td nowrap="nowrap" align="right"><label for="F4000_P273_SEARCH"><a class="htmldbGALabel" href="javascript:popupFieldHelp('17538524240255101','17091739936304412237','Close')" tabindex="999">Search</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="17538524240255101" />
    <INPUT TYPE="text" NAME="p_t01" SIZE="15" MAXLENGTH="2000" id="F4000_P273_SEARCH" ></td>
    <td nowrap="nowrap" align="right"><label for="F4000_P273_PAGE"><a class="htmldbGALabel" href="javascript:popupFieldHelp('17561408257292898','17091739936304412237','Close')" tabindex="999">Page</a></label></td>
    <td nowrap="nowrap" colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="17561408257292898" />
    <noscript>
    JavaScript not supported
    </noscript>
    <script language="JavaScript1.1" type="text/javascript">
    <!-- Comment out script for old browsers
    function filter_escape(in_value) {
    out_value = in_value;
    out_value = out_value.replace( /%/g, '%25');
    out_value = out_value.replace( /\?/g, '%3F');
    out_value = out_value.replace( /&/g, '%26');
    out_value = out_value.replace( / /g, '%20');
    out_value = out_value.replace( /;/g, '%3B');
    out_value = out_value.replace( /\//g, '%2F');
    out_value = out_value.replace( /:/g, '%3A');
    out_value = out_value.replace( /@/g, '%40');
    out_value = out_value.replace( /=/g, '%3D');
    out_value = out_value.replace( /\+/g, '%2B');
    out_value = out_value.replace( /\$/g, '%24');
    out_value = out_value.replace( /,/g, '%2C');
    out_value = out_value.replace( /#/g, '%23');
    return out_value;
    function genList0_p_t02_2()
    w = open("wwv_flow_utilities.gen_popup_list" +
    "?p_filter=" +
    "&p_name=" + escape('p_t02') +
    "&p_element_index=" + escape('2') +
    "&p_form_index=" + escape('0') +
    "&p_max_elements=" + escape('') +
    "&p_escape_html=" + escape('') +
    "&p_ok_to_query=" + escape('YES') +
    "&p_flow_id=" + escape('4000') +
    "&p_page_id=" + escape('273') +
    "&p_session_id=" + escape('17091739936304412237') +
    "&p_eval_value=" + escape('') +
    "&p_translation=" + escape('N') +
    "&p_lov=" + filter_escape('select id||\' \'||name n, id from wwv_flow_steps where flow_id = :FB_FLOW_ID and security_group_id = :flow_security_group_id order by 2') +
    "&p_lov_checksum=361EF0E5FBE4F62F2941F94F08F82C22",
    "winLovList",
    "Scrollbars=1,resizable=1,width=400,height=500");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    }//-->
    </script>
    <INPUT TYPE="text" NAME="p_t02" SIZE="8" MAXLENGTH="2000" VALUE="800" id="F4000_P273_PAGE" ><IMG SRC="/i/htmldb/icons/view_small.gif" width="18" height="18" alt="List" border="0" align="bottom"></td>
    <td nowrap="nowrap" align="right"><label for="F4000_P273_MAX_ROWS"><a class="htmldbGALabel" href="javascript:popupFieldHelp('17569726576299523','17091739936304412237','Close')" tabindex="999">Display</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="17569726576299523" />
    <select name="p_t03" size="1" id="F4000_P273_MAX_ROWS" >
    <option value="5">5</option>
    <option value="10">10</option>
    <option value="15">15</option>
    <option value="20">20</option>
    <option value="25">25</option>
    <option value="50">50</option>
    <option value="75">75</option>
    <option value="100">100</option>
    <option selected="selected" value="500">500</option>
    <option value="1000">1000</option>
    <option value="5000">5000</option>
    </select></td>
    <td nowrap="nowrap" align="left"></td>
    <td colspan="1" rowspan="1" align="left"><input type="button" onclick="javascript:doSubmit('GO');" value="Go" class="htmldbButton" /></td>
    </tr>
    </table>
    <span class="nodatafound"><span></div>
    <div style="text-align:middle;"></div>
    <input type="hidden" name="p_md5_checksum" value="" /></form>
    <script language="JavaScript1.1" type="text/javascript">
    first_field('F4000_P273_SEARCH');
    </script>
    </body>
    </html>

  • Xletview: why not use sun's javaTV source code directly ?

    xletview : one emulator for viewing MHP Xlets on a PC;
    I see many difference from sun's code about the part of javaTV.
    Why the author Martin Sveden need to rewrite them and not use sun's javaTV source code directly ?
    Thank you for your any answer.
    Sorry for my horrible english.

    XleView is a fine effort, but it has its limitations. I tried using it for the GunBunny demo available in the JavaME SDK 3.0 Eary Access available in
    http://java.sun.com/javame/downloads/sdk30ea.jsp
    and I encountered some of thost limitations. What Sveden does it several tricky manipulations in a classloader for the Xlet. In particular, he translates bytecode as he loads the Xlet's classes, changing some class names, such as changing
    java.awt.Toolkit
    tto
    xjava.awt.Toolkit
    This works up to a point. This version of Toolkit usually just turns around calls java.awt.Toolkit's corresponding routine, but he deliberately he does not implement the ubiquitous
    public Image createImage(URL url)
    When I downloaded his source and tried adding ths into his code, I then encountered at runtime
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:97)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    I think that this is some optimization within J2SE where they do not wait for the image to load and do the fetching in a separate thread. I do not know if there is some way to force the Sun's JVM to disable this optimization and I have not investigated furher, but I did email Svenden. I noticed that the current version of XleTView is 0.3.6 which is dated June 2004 and the web site http://www.xletview.org/ has had not news since 2005 .
    I note that Svenden provides an elegant user interface but I advise you not try to learn the API's from his classes: he makes no effort to keep his implementation separate from the API standards so, for instance, his version of HScene is
    package org.havi.ui;
    public class HScene extends Container
    implements HComponentOrdering, ImageObserver, MenuContainer, Serializable {
    whereas the real standard is
    public class HScene extends Container
    implements HComponentOrdering {
    I hate to critize such a fine effort, but it is best to keep an imlementation separate from the public API.
    I agree that having a lightweight, simple and Java feature-complete Xlet viewer running would be very helpful, especially if BD-J gains much popularity. I have found trying to work with the vendor players described at
    http://wiki.java.net/bin/view/Mobileandembedded/Blu-RayDiscHelloWorld
    to be frustrating. I tried all four mentioned and I have gotten none of them to work for me yet. These are huge downloads and the "Intro Version" of Arcsoft pointed to at the SDK 3.0 Early Access page
    http://www.arcsoft.com/products/totalmediatheatre/
    just gives a "File not found" HTML page. This forum post mentions that perhaps it was recently taken down?
    http://www.arcsoft.com/forum/forum_posts.asp?TID=1084
    I have already emailed Michael Downs of Arcsoft since he is mentioned here:
    http://wiki.java.net/bin/view/Mobileandembedded/BDJPCPlayers
    What did work for me was to take Sun's JavaTV 1.1 Reference Implementation and PowerDVD's BDJ.jar and hack/fix a few classes to get GunBunny to work within the RI's RunXlet program. This is not trivial but I will will describe:
    Download the JavaME 3.0 SDK EA and then download the correct version of PowerDVD that the SDK page points to:
    http://www.brothersoft.com/powerdvd-download-50794.html
    Download the RI binary and source of Java TV API 1.1
    http://java.sun.com/javame/technology/javatv/index.jsp
    Since I am too lazy to use anything but the latest 1.6 JRE as a runtime, I have to fix
    com.sun.tv.media.util.MediaThread
    to comment out its stop() method. This is becase stop() was deprecated and made final in J2SE 1.5
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#stop()
    http://java.sun.com/j2se/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html
    Next, I had to mae a change to Sun's JavaTV implementation to keep the GunBunny demo happy by providing a ServiceContext. The RunXlet program calls SIEmulator, but that environment does not provide a ServiceContex, so I added one back in:
    com.sun.tv.receiver.SIEmulator
    private static ServiceContext svcctx = null;
    Add before every call to new AppSignalEvent() and add the svcctx as the second-to-last argument:
    if(svcctx == null){ try { svcctx = new com.sun.tv.ServiceContextImpl(); }catch (Exception e){ e.printStackTrace(); } }
    I then had to hack a few PowerDVD classes, which is evil of me. First, I had to build an empty class by the name of
    sun.util.BDJPlugin
    becuase some PowerDVD class extends it but it is not in its BDJ.jar and then I had to reverse-compile (evil!) and modify one of their internal classes to avoid a dependency on their native methods. What I ended up with was a hacked version of com.cl.bdj.helper.CUtil to avoid the native methods which access the registry where they query for registry settings but also provide a default value (which I return).
    com.cl.bdj.helper.CUtil
    private static String pGetRegistryString(long i ,String string ,String string3) {
    return string3;
    private static int pGetRegistryInt(long i ,String string ,int j) {
    return j;
    The last thing I had to do was to change com.hdccookbook.gunbunny.BaseXlet, to use the JavaTV container rather than the org.havi one:
    import javax.tv.graphics.TVContainer;
    import java.awt.Container;
    change
    // protected HScene scene;
    protected Container scene;
    public final void run() {
    // waitForPresenting();
    // scene = HSceneFactory.getInstance().getDefaultHScene();
    scene = TVContainer.getRootContainer(xletContext);
    In order to having working keys, I had to add the KeyListener interface to BaseXet and
    run(){
    addKeyListener(this);
    and then add a near duplicate of the org.dvb.event.UserEvent* stuff that is already there:
    public void keyPressed(KeyEvent e){
    switch(e.getKeyCode()){
    case KeyEvent.VK_0:
    case KeyEvent.VK_1:
    case KeyEvent.VK_2:
    case KeyEvent.VK_3:
    case KeyEvent.VK_4:
    case KeyEvent.VK_5:
    case KeyEvent.VK_6:
    case KeyEvent.VK_7:
    case KeyEvent.VK_8:
    case KeyEvent.VK_9:
    numberKeyPressed(e.getKeyCode() - KeyEvent.VK_0);
    break;
    case KeyEvent.VK_ENTER:
    enterKeyPressed();
    break;
    case KeyEvent.VK_LEFT:
    arrowLeftKeyPressed();
    break;
    case KeyEvent.VK_RIGHT:
    arrowRightPressed();
    break;
    case KeyEvent.VK_UP:
    arrowUpPressed();
    break;
    case KeyEvent.VK_DOWN:
    arrowDownPressed();
    break;
    public void keyReleased(KeyEvent e){
    // System.out.println("Released: e="+e+" code="+e.getKeyCode());
    public void keyTyped(KeyEvent e) {
    // System.out.println("Typed: e="+e+" code="+e.getKeyCode());
    It then comes up and functions, but the rendering is not very good. Again, this is complete hack. Running the Java TV 1.1 RI in a JRE 1.6 is not supported. If you try to run any of the other examples, you will discover that the XML parsing is broken in JRE 1.6 with this message:
    Parsing failed: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequence
    Exception: Invalid byte 1 of 1-byte UTF-8 sequence., file: lib\JavaTVSampleFile01.xml
    and you have to go and change the lines in
    lib\JavaTV.properties
    from
    ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
    # ServiceFileHandler=SampleData_01
    to
    # ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
    ServiceFileHandler=SampleData_01
    and build samples\db\SampleData_01.java and put it in your classpath along with all these other hacks.
    Nonetheless, if you want to develop a somewhat generic Xlet that uses some BD-J features, that is how you might do it. But the moment you exercise anything else in the vendor's BDJ.jar that simply doe snot work outside of their environment or invokes one of their native methods, you are again stuck.
    It would be nice if Sun would at least bother to update the JavaTV RI with the fixes I hae mentioned. Their "jmflite" implementation does not render perfecly but at least it would give the programmer something to work with without having to deal with an older JRE, etc.
    Andrew
    Edited by: AndrewMorrow on Oct 20, 2008 2:48 AM

  • Need script or Program to count lines of source code

    Hello, I need a script or a program that can count how many lines are there in a directory contains source code as well as other directories(contain code as well), there are .java files in these directories, the script or program should count number of lines with/without comments(starts with // or surrounded by /**/)
    Thanks a lot!!!

    I wrote a quick python program to count the lines in a file, you could just adapt it to your needs, or use the second program I have in this post that condenses all the .java files in a directory into a single text file, which you can then use a line-count on (useful if you need to print it as well - I wrote it for my IB dossier java project), if you'd like a proper script for your needs, otherwise check the other suggestions.
    Run it by copying the code into a text file and saying it as script.py (change script to whatever you want) and running it with python /path/to/script.py
    #!/usr/bin/env python
    #Program to tally the lines in a file
    #Author: lswest
    import os
    home=os.path.expanduser("~")
    endPath=raw_input("Path to file relative to your home directory (include file name and extension): ")
    count=0
    ff=open(os.path.join(home, endPath))
    for x in ff:
    count+=1
    values={'name': os.path.join(home,endPath), 'count' : count}
    print "The file %(name)s contains %(count)s lines." % values
    #!/usr/bin/env python
    #Script to condense the multiple files of a project into one for easy printing/copying
    #Author: lswest
    import os
    home=os.path.expanduser("~")
    endPath=raw_input("Path relative to your home directory to the project folder: ")
    extension=raw_input("Extension of files you want to condense: ")
    outPath=raw_input("Path to output file relative to home directory: ")
    outFile=raw_input("Output file name (including extension): ")
    ff=open(os.path.join(home+outPath,outFile), "wt")
    for root, dirs, files in os.walk(os.path.join(home,endPath), "true", "none", "true"):
    for infile in [f for f in files if f.endswith(extension)]:
    fh=open(os.path.abspath(os.path.join(root,infile)))
    for line in fh:
    ff.write(line,)
    fh.close()
    ff.close()
    Last edited by lswest (2009-03-10 16:23:52)

  • Preferred Source Code Editor Bracket Styles

    The CVI Team would like to get an idea what the most commonly used source code editor bracket styles are. These options are currently available through Options >> Editor Preferences >> Bracket Styles. Please post your comments in the Preferred Source Code Editor Bracket Styles NI Community document.
    Thanks
    Jonathan N.
    National Instruments

    <quote>"I wouldn't personally use Eclipse as a high water mark"</quote>
    LOL! Good point. Ironic that I said that, considering how much I disliked Eclipse when I first used it.
    I've set the options on the indention tab - what I'm mostly looking for is a way to force alignment style of brackets. I'll look at one of the beautification add ons...

  • Where to download Java EE 5 sdk source code?

    I want to attach the source code to eclipse source code dir that way I can see the method comment in eclipse. But I can't find such link. Anybody got it?
    thanks.

    tschodt wrote:
    robert.whane wrote:
    tschodt wrote:
    For which specific Java EE packages are you interested in seeing the source code? I don't think I will bother replying if your answer is "All of them".
    Why not? For Java SE SDK, src.jar is easy attachment for everything.Who has the rights for source code the classes in the Sun Java SE SDK distribution?on my system, the right are for me of course! This is very easy procedure. I use code in Eclipse, step into say String. Now Eclipse asks me.. where is source? I navigate to JDK install dir and attach src.jar. I no need special rights for this... simple click and source is there for me... (only sun.* packages, you need make extra download).
    >
    Why we not can have easy source attachment for the Java EE SDK?JEE is a spec. The Sun JEE SDK is a reference implementation (glassfish).I know SPEC... so maybe we have two src jars here. One with public interface, other with API implement. This no problem... okay, maybe I wrong in post earlier. Not 1, but then 2 src attachment jars is okay!
    Who has the rights for the source code for the Sun JEE SDK distribution?this is same thing. on my system, I am developer, I have rights to attach. I JDK implementation of my is SUN (Glassfish), I navigate to Glassfish install dir. If it is JBoss AS, I navigate to that... this is no problem, but is problem when src is simply not there...

  • I need Expert Decomposition of classes in Source Code for my reaserch purpose. Any body can help me in this regard?

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=698286&forumId=1]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I need Expert Decomposition of classes in Source Code of Firefox for my research purpose. Any body can help me in this regard?
    == This happened
    ==
    Not sure how often
    == Firefox version
    ==
    3.0.19
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19
    == Plugins installed
    ==
    *-Default Plug-in
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *6.0.12.1662
    *Office Plugin for Netscape Navigator
    *Google Update
    *Shockwave Flash 10.1 r53
    *Yahoo Application State Plugin version 1.0.0.7
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    *Adobe PDF Plug-In For Firefox and Netscape
    *DRM Netscape Network Object
    *Npdsplay dll
    *DRM Store Netscape Plugin

    Please let me tell you that I Expert Decomposition may be of any Version of Firefox or Thunder Bird.

  • Sample  PL/SQL Portlet Source Code for Oracle Portal 9ias

    Hi, I'm a newbie of Oracle Portal technology, and I have a problem:
    I would create a PL/SQL portlet that realizes the following functions:
    1) Retrieve the username of the portal user logged from WWCTX_API.GET_USER function.
    2) Insert into an oracle db table two values about two hidden fields in the HTML FORM of the portlet.
    3) Realize the insert commit through the click on the submit button on the Html form of the portlet. I would redirect by the same button to an other page url also.
    I've never developed in Portal, and may be useful if someone could post me the source code of the SHOW MODE SECTION in the PROCEDURE SHOW of a SAMPLE PL/SQL PORTLET that realizes the upper functions.
    Thanks a lot....

    Hi
    Here's the code from Helloworld_Portlet example:
    procedure show
    p_portlet_record wwpro_api_provider.portlet_runtime_record
    is
    l_portlet wwpro_api_provider.portlet_record;
    begin
    if (not is_runnable(
    p_provider_id => p_portlet_record.provider_id
    ,p_reference_path => p_portlet_record.reference_path)
    ) then
    raise wwpro_api_provider.PORTLET_SECURITY_EXCEPTION;
    end if;
    Retrieve the portlet information.
    l_portlet := get_portlet_info(
    p_provider_id => p_portlet_record.provider_id
    ,p_language => p_portlet_record.language
    if (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW) then
    if (p_portlet_record.has_title_region) then
    Draw the portlet header and specify what links are available
    from that header (i.e. details, customize, help, and about).
    The has_title property is set at the page region level.
    wwui_api_portlet.draw_portlet_header
    p_provider_id => p_portlet_record.provider_id
    ,p_portlet_id => p_portlet_record.portlet_id
    ,p_title => l_portlet.title
    ,p_has_details => true
    ,p_has_edit => true
    ,p_has_help => true
    ,p_has_about => true
    ,p_referencepath => p_portlet_record.reference_path
    ,p_back_url => p_portlet_record.page_url
    end if;
    Draw the portlet borders.
    The has_border property is set at the page region level.
    wwui_api_portlet.open_portlet(p_portlet_record.has_border);
    Display the content of the portlet in the show mode.
    Use the wwui_api_portlet.portlet_text() API when
    generating the content of the portlet so that the
    output uses the portlet CSS.
    htp.p(wwui_api_portlet.portlet_text(
    p_string => 'Hello World - Mode Show'
    ,p_level => 1
    if (p_portlet_record.has_border) then
    wwui_api_portlet.close_portlet;
    end if;
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_ABOUT) then
    Display the about page for the portlet.
    htp.p('Hello World - Mode Show About');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT) then
    Display the edit page for the portlet.
    htp.p('Hello World - Mode Show Edit');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_HELP) then
    Display the help page for the portlet.
    htp.p('Hello World - Mode Show Help');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT_DEFAULTS) then
    Display the edit defaults page for the portlet.
    htp.p('Hello World - Mode Edit Defaults');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_DETAILS) then
    Display the details page for the portlet.
    htp.p('Hello World - Mode Show Details');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_PREVIEW) then
    Display the preview page for the portlet.
    htp.p('Hello World - Mode Show Preview');
    end if;
    end show;
    I think you need to add this:
    You can get the values of your html-form with this command:
    v_hidden_1 varchar2(256);
    v_hidden_2 varchar2(256);
    v_hidden_1 := wwpro_api_parameters.get_value('name_of_hidden_1_in_html_form','p');
    v_hidden_2 := wwpro_api_parameters.get_value('name_of_hidden_2_in_html_form','p');
    You can get the actual URL with this command:
    v_url := p_portlet_record.page_url;
    Hope that helps.
    Regards,
    Mark

Maybe you are looking for