Count lines of source code

Hello friends,

How to count the number of lines in the source using Blackberry JDE. Is it possible? Thank you guys

Thanks for that, but it's an intense process to count the rows if the project is large. I managed to use cloc its very good.

Thank you very much

Tags: BlackBerry Developers

Similar Questions

  • Display of all the objects and the lines of Source Code

    I'm currently running OEM in 10 g and I have two questions:

    1. How can I find an object when I know the name, but not the object type? For example, to have the name of the object, but I don't know if it's a package, procedure, function or what. How can I get information about this object in OEM?

    2. when I'm compiling an object invalid such as a procedure and I get errors, the compiler displays the errors and line numbers. However, the source field does not display line numbers (like the old Java version OEM did). Is there a way to get the current line number?

    I can easily do both in SQL * more. I just want to know if OEM has these capabilities.

    Thank you!

    Regarding question No. 1:
    -good question! But there is no way to search an object without specifying the type of object

    HTH

  • Error: unexpected character "(code 65279 / 0xfeff) in prolog. EXPECTED ' < ' to [line, col {source unknown}]: pop [1.1] error in c# windows client vSphere?

    Hi all

    I use Windows c# client below the version:

    vSphereConsole.JPG

    Somehow, I had random error / intermittent pop up:

    Error: unexpected character "(code 65279 / 0xfeff) in prolog. EXPECTED ' < ' to [line, col {source unknown}]: [1.1]

    So I wonder if it is a recent issue with the Windows 10 .NET framework update?

    My other client c# version even on Windows Server 2008 R2 is not having the problem.

    FYI,.

    No need to upgrade to vSphere 6.0 yet. I updated the client vSphere upgrade VCenter server in 5.5U3d the project last week, so far, that's the problem:

    See the screenshot above for the stable version.

  • Remove the line breaks in the HTML Source Code

    Is it possible to remove all line breaks in the code source HTML generated by Dreamweaver? After using the Dreamweaver design view window, I want to assure you that all the source code of the html page I created is going on a single line. Is there a simple way to remove all line breaks, or tell Dreamweaver to create the HTML code on a line?

    Ki Song says:
    > Is it possible to remove any line break in the HTML source code
    > generated by Dreamweaver? After the use of the design view window in
    > Dreamweaver, I want to assure you that all the source code for the
    > goes from html page I created on a single line. Is there an easy way
    > to remove all breaks online or tell Dreamweaver to create the HTML code
    > code on a line?

    http://www.TJKDesign.com/articles/whitespace.asp

    HTH,
    --
    Thierry
    Articles and tutorials: http://www.TJKDesign.com/go/?0
    Perfect FAQ page: http://www.TJKDesign.com/go/?9
    Templates CSS - P: http://www.TJKDesign.com/go/?1
    CSS tabs menu: http://www.TJKDesign.com/go/?3

  • Firefox 41.0.2 long lines don't wrap when you view the source code

    When I try to view the source code of a web page, I have to use horizontal scrolling. How can I make the text as it does on my IE6?

    If necessary, you can change the setting in this way as well:

    (1) in a new tab, type or paste Subject: config in the address bar and press enter/return. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste wrap it up and make a pause so that the list is filtered

    (3) double-click the preference view_source.wrap_long_lines to switch the value from false to true

  • How to publish the source code

    How best to publish the source code?

    I need an alternative to fall back on.  How I would go to this topic if I had to use HTML.

    My chance to validation code has deteriorated over time. I did it via:

    I take the plain.

    Yesterday, when I tried to insert the Bash source code.  I had a lot of white lines.  I think that leading # confused CSA.

    
    #!/bin/bash 
    
       # so anyway, output from the echo statement is sent to the terminal.  The operands < and >
       # allows you to change where it is going.
      
    
    # default redirection  
    
    # 0 stdin  -- standard input
    
    # 1 stdout -- standard output, non-error output
    
    # 2 stderr  -- standard output for error messages.
    
    # had not used the exec statement before, the concept of the exec was
    
    # readily apparent to me.
    
       
    
    # of course, I ripped this off.  Turns out you want to preserve where input stream 0 is
    
    # coming from. The hack moves input stream 0 to input stream 6.  Pick any number
    
    # that is allowed.
    
       
    
    # save standard input in file descriptor 6 
    
    exec 6<&0 
    
       
    
    # now we say where we want input stream 0 to come from. 
    
    # bash has an unknown to me number of commands that read from input stream 0
    
    # via redirection we can change were stream 0 is coming from.
    
    # redirect standard input to be from the passed file 
    
    exec 0<${1} 
    
    count=0 
    
    while read lineIn  
    
    do { 
    
    # bash syntax is bizarre.   
    
    # The (( )) says it's a math expression 
    
    (( count++ )) 
    
    echo "${count}: ${lineIn}" 
    
    } 
    
    done 
    
    # put the input streams back to where they were before. 
    
    # Nice, but when the script quits they will all be put back to where they were.
    
    # Of course, I copied this stuff.  Syntax isn't the obvious.
    
    # close input.  May not need.  My innovation.  Seems nice.
    
    exec 0<&- 
    
    # restore file descriptor 0 should be standard in 
    
    exec 0<&6 
    
    # close file descriptor 6 for reuse. 
    
    exec 6<&- 
    
    echo 
    
    echo "Total lines were ${count}" 
    

    Do you get the extra lines before applying syntax highlighting? You can simply change the Courier New font.

    #! / bin/bash

    # Anyway, Exit statement echo is sent to the Terminal.  The operands< and="">

    # allows you to change its future.

    default redirection #.

    # 0, stdin - standard input

    # 1, stdout - output standard output without error

    # 2, stderr - standard output for error messages.

    # did not use the exec statement before, the concept of the exec has been

    # obvious to me.

    # good course, I snatched it.  Turns out you want to keep where the input stream 0 is

    # coming. The cut moving the input stream to the stream input 6 0.  Choose any number

    # who is allowed.

    # Save the standard entry in the file descriptor 6

    exec 6<>

    # now say us where we want to enter flow 0 to come from.

    bash # a a stranger to me the number of commands that read from the input stream 0

    # via redirection, we can change were stream 0 comes.

    # redirect the standard input from the file passed

    exec 0<>

    Count = 0

    while reading lineIn

    {}

    bash # is weird syntax.

    # (()) Is a mathematical expression

    ((count ++))

    echo "${number}: ${lineIn}.

    }

    fact

    # put the input stream to where they were before.

    # Nice, but when the script closes they will all put back to where they were.

    # Of course, I copied this kind of things.  The syntax is not obvious.

    # entry closes.  May not need.  My innovation.  Seems nice.

    exec 0<>

    Restore file descriptor # 0 should be standard in

    exec 0<>

    # close the file descriptor 6 for reuse.

    exec 6<>

    ECHO

    ECHO "the Total of the lines were ${number}.

    TT2

  • How to return to a CSS - Styles.css file two next to Source Code

    Then I made the mistake of editing of this line of code (because when you look at in the browser - it was just HTML with no CSS):

    < link href = "file:///Macintosh HD/Users/erikj7/Documents/Adobe/Dreamweaver/Projects/Styles.css" rel = "stylesheet" type = "text/css" > ""

    When checking this via html code checker.  He said there is a mistake and this line should not be a space, so I did this:

    < link href = "file:///Macintosh HD/Users/erikj7/Documents/Adobe/Dreamweaver/Projects/Styles.css"rel="stylesheet"type="tex t/css" >

    Just remove the spaces between the .css and 'rel AND style sheet' and type =

    As you may know - it worked at all, so I changed it back.  This posed a new problem showing only HTML, so I corrected this line of code back to its original form.

    The problem going forward is that Dreamweaver displays two Styles.css next to the Source Code in my tab named index.html (not sure what this window of Dreamweaver is called).  The Styles.css which is closer to my Source Code is empty but I think direct CSS still work.  Next to the Styles.css, I have the other Styles.css, and that one is full of code that extracts of my project of.  This Styles.css works and allows me to modify the existing CSS, however I can't not (in Source Code) insert a new image and then apply CSS, because when I go to the CCS designer and add a selector, he wants to put in the empty CSS file.

    How to get back there showing a CSS next to the Source Code? AND maybe if allowed within this same thread, could someone explain why the CSS works fine in the browser of Dreamweaver, but not when I go to preview in the browser (like Safari or Chrome)?

    I could go back in Time Machine on my MAC and enter the old file, but I would really like to know how to fix the mistake that I did, because it's possible I could repeat this error, and it would be good to know why, he does not appear CSS at the preview and Safari and Chrome.

    Thank you very much for reading and possibly help.

    Work within a defined local site folder?

    It's a critical step 1 before beginning any new project.

    Once your site is set correctly, you can see your site files in the files (F8) Panel.

    Open your HTML document.  Select design mode in the selection list.

    Switch to Code view.

    Remove the old links of stylesheet from your code.

    In the files Panel, click, drag & drop your CSS file in the HTML code.  Place it just above the closing tag.  See screenshot.

    Nancy O.

  • What is "Bootsaves" in the source code online?

    Can someone tell me why the lines of code called 'Bootsaves' are appearing in my source code online?  I have a problem with my site becomes corrupted and wonder if this has something to do with it.  I'd appreciate any information on bootsaves you can provide.  BTW, I use DW - CS6 with extensions of affinity.

    Thank you

    Tamlyn

    Looks like you have a stealth virus/trojan that is supported in your browser.

    I had one recently. My regular antivirus software was useless against it. He took all my browsers. A devil to get rid of them, too.

    Finally, I ponied up $ 30 for SpyHunter which managed to remove the Trojan horse and all the files it had generated in my registry and related system files.

    SpyHunter - Adaptive malware removal tool

    Good luck!

    Nancy O.

  • Review: Adobe RoboHelp 11 stopped working Source code control from Visual Studio Professional 2010

    We contacted Adobe for help, but I also wanted to put this question in case someone has had this experience and can quickly provide a solution.


    Environment

    Windows 7 business

    RoboHelp 11.0.3.268

    Generation of WebHelp

    Team Foundation Server

    Visual Studio Professional 2010 Source code control

    Problem

    I am the original author of the Touchstone help system. Last week we started having two colleagues on board to work with me. On their systems, we have configured RoboHelp for working with TFS in Visual Studio using MSSCI provider 2010.

    The initial project was a lot of conditional compilation tags. I removed all the and the expressions and everything checked into Source control. When my colleagues got the latest files from Source code control, and opened the project to Version control, we noticed that their projects were still conditional compilation with other elements that had long been removed tags. After some research, we have removed the CPF and PSS of source control files and let the RoboHelp to create them when we opened the project. That solved these problems - no conditional more don't build tags in the project.

    Last Friday a colleague began to experience significant problems. When it right click on a topic to view properties, RoboHelp has stopped working. She was not able to do anything in RoboHelp since.

    The same day I tried to look at settings of Version control (I had no problem to access all week). RoboHelp crashes as soon as I clicked on tools > Options. Colleague B had the same problem today.

    This morning, I had problem A colleague.

    Bottom line: we are suddenly not able to run 11 RoboHelp.

    Our office employee internal help attempted to run the Visual Studio debugger. We get ' an unhandled in RoboHtml.exe win32 exception [5404]. " We also unhandled exceptions at various addresses with a read access violation address hex location.

    After watching the Willem site that lists updates of RoboHelp, we thought to their installation, but we didn't know whether to install ALL the patches or Patch only 11.0.3. If all the patches, we didn't know whether to install them in a particular order.

    Thank you very much for any assistance that someone of you may provide while we're also waiting to hear from the Adobe Support.

    Carol

    I was recently informed that the patches have changed and you only need to install later.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Get the source code of a procedure for a huge package in oracle

    I have a package which, as methods of 40-50 in them, I would like to retrieve the source of one inside the package. is there a table where I can get this detail in the oracle database.


    I know there is an all_source table, which has the entire source code, but I want to only get the source code for a particular procedure.

    Thanks in advance.

    You have defined your procedure as provided

    procedure procedure_name...
    ...
    end procedure_name;
    

    and the procedure is not overloaded, you can try something as

    with
    first_line as
    (select line
       from all_source
      where instr(lower(text),'procedure '||lower(:procedure_name)) > 0
        and name = :package_name
        and type = 'PACKAGE BODY'
        and owner = :package_owner
    ),
    last_line as
    (select line
       from all_source
      where instr(lower(text),'end '||lower(:procedure_name)||';') > 0
        and name = :package_name
        and type = 'PACKAGE BODY'
        and owner = :package_owner
    ),
    select text
      from all_source
     where line between (select line from first_line)
                    and (select line from last_line)
     order by line
    

    Concerning

    Etbin

  • Uncompilable source code - wrong type java.util.Collections.sort sym

    Hello

    I'm doing an exercise. I need to set up my own behaviour SortedSet, based on an implementation of LinkedList. Basically I check if an item is not already present in the list and then I want to sort the list using Collections.sort (). This is my piece of code:
    public class MySortedSet<E> {
        
        LinkedList<E> list = new LinkedList<E>();
        
        public boolean add(E e) {
            if (!list.contains(e)) {
                list.add(e);
                Collections.sort(list); //this line throws exception
                return true;
            }
            return false;
        }
        
        public static void main(String[] args) {        
            MySortedSet<String> mss = new MySortedSet<String>();
            mss.add("First");
        }
    }
    Only, I get the following exception:
    Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: java.util.Collections.sort
         at chapter17.MySortedSet.add(MySortedSet.java:23)
         at chapter17.MySortedSet.main(MySortedSet.java:48)
    Java Result: 1
    ... that I do not actually understand. NetBeans, tells me: no suitable method found to sort (java.util.LinkedList < E >), the method of java.util.Collections. < T > sorting (java.util.List < T >) is not applicable, the infrerred type is not consistent with the declared boundaries, deducted: E, limits: java.lang.Comparable <? Super E >.

    Of this kind, I understand that my list object is not correctly stated on this point is the generic type. LinkedList generic type E, what is false. Can someone explain to me how do I correctly report LinkedList, or otherwise I do wrong. I'm not sure that understand this generic problem here.

    Thank you
    PR.

    Collections.sort can only sort comparable objects (or use a separate comparison). You would need to have a Comparable upper limit for E.

  • Mysterious &lt; br &gt; tag in live code, and not in the source code

    I have a problem here, as mentioned above, with ma page Web.  When you go to this link:

    www.tsohngyun.com

    you will find a space perfectly size between menu horizontal blue and red background that lines on two images (image of the handshake, 'Welcome to the Master Insurance Agency' image).  When I look at to inspect the Web site in Dreamweaver in live code, I noticed a < br > tag sitting just before the tag of table containing the red background.  However, when I go back to the source code, the < br > tag is not found by the opening table tag.

    How can I change something that is not in the source code?  I want to get rid of this gap! Help, please!

    And this
    tag does not exist in the source code of your Dreamweaver? Really?  Because it is based on what I see in your code, you
    Tags on line 31, line 35, line 42, line 45 and 49 of your code line.

    Dreamweaver in code and design split view and see if you can spot the
    tags in your code (can even use useful tool to search and replace in Dreamweaver to find each istance of the)
    tag in your code.) Now, not all of the
    the tags are innapropriate so don't remove them just good willy nilly.

    In any case, hope this helps.

  • Source code jumps around re-opening page?

    This is a common problem with view on the Source Code of Dreamwver CS4?

    In an effort to make the code read nice and neat, as all the world I try to dash and nest my code. For example:

    < div >

    < ul >

    < li > a < /li >

    < li > a < /li >

    < li > a < /li >

    < /ul >

    < / div >

    But, upon registration of a file and then reopen them later, I noticed that in places, the file does not my expected spaced nested provision that that is the code jumps autour on line and I lose my dash spacing neat. For example:

    < div >

    < ul >

    < li > a < /li >

    < li > a < /li >

    < li > a < /li >

    < /ul >

    < / div >

    I tried to set my preferences > code format > tab size 10 to produce a greater indenting that has improved the problem somewhat but not fixed.

    Others must have experienced this frustrating problem.

    Is there anything I can do to solve this problem, set the other preferences to give me complete control over the page?

    Thanks in advance.

    The scene format when you use the command "apply Source Formatting"?

  • Print the Source Code

    Hello

    I know that this question is not exactly a matter of coding actionscript 3.0, but its related to it and I don't see the point of post in the general forum of flash because a lot of people he never use actionscript, so placing it here, I thought that everyone does actionscript he would see.

    In any case enough jibberish...

    I need to print my source code for a presentation of the University that requires that I print hard copies of my source code of return as well as my portfolio.

    I searched high and low and even flash tried the help docs, but I don't seem to be able to do.

    I know that I could copy and paste the code into something like Scite or Notepad, but I that is losing the coloring of code I put or the text is very very ugly.

    Anyone know how I can do this directly from flash?

    Any help would be greatly appreciated.

    Thanks and sorry if this message should not be put in this forum.

    Lee

    In your control panel actions, upper right, just below where you close there is a little "button" with 3 lines and a small arrow pointing down. Click on that and you will see the option print from the drop down.

  • String panipulation - rename the package name in the source code.

    I want to do the replacement string as below:
    select 'CREATE OR REPLACE PACKAGE CollectStats IS
      PROCEDURE save_log(p_logrec IN LiveStatsLog%ROWTYPE);
      PROCEDURE UpdateLiveGamesHourlyStats;
      PROCEDURE UpdateSideGamesHourlyStats;
      PROCEDURE UpdateConcurrentPlayerStats;
      PROCEDURE CollectStats;
    END CollectStats;' from dual;
    
    -->
    
    select 'CREATE OR REPLACE PACKAGE CollectStats_20100810 IS
      PROCEDURE save_log(p_logrec IN LiveStatsLog%ROWTYPE);
      PROCEDURE UpdateLiveGamesHourlyStats;
      PROCEDURE UpdateSideGamesHourlyStats;
      PROCEDURE UpdateConcurrentPlayerStats;
      PROCEDURE CollectStats;
    END CollectStats_20100810;' from dual;
    The point is to rename the name of the package in the Package source code, in the first and the last line of the source code.
    This is only an example package. The query must sort the replacement of the chain so that the result would be, as shown in a package with a different name.
    Note that name of the package, and a procedure within the source code of the package are the same - see "PROCÉDURE CollectStats;".

    Somehow the replacement of the regular expression should be used.

    Published by: CharlesRoos on August 11, 2010 03:31

    Try this:

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 'CREATE OR REPLACE PACKAGE BODY "XXX"."COLLECTSTATS" IS....
      2  PROCEDURE CollectStats IS
      3    BEGIN
      4      UpdateLiveGamesHourlyStats;
      5     UpdateSideGamesHourlyStats;
      6      UpdateConcurrentPlayerStats;
      7    END CollectStats;
      8  END CollectStats;
      9  /' body from dual)
     10  SELECT REPLACE(REPLACE(body,'BODY "XXX"."COLLECTSTATS"','BODY "XXX"."COLLECTSTATS_20100811"'),
     11         'END CollectStats;'||CHR(10)||'/','END CollectStats_20100811;'||CHR(10)||'/') body
     12* from t
    SQL> /
    
    BODY
    ----------------------------------------------------------------------------------------------------
    CREATE OR REPLACE PACKAGE BODY "XXX"."COLLECTSTATS_20100811" IS....
    PROCEDURE CollectStats IS
      BEGIN
        UpdateLiveGamesHourlyStats;
            UpdateSideGamesHourlyStats;
        UpdateConcurrentPlayerStats;
      END CollectStats;
    END CollectStats_20100811;
    /
    
    SQL> 
    

Maybe you are looking for

  • Toshiba 20AF45 has a black and white photo

    Hello I have a Toshiba 20af45 TV which does not show the color image. I have a 3 color av cord and color 5. I tried to see if I can change it in the settings menu, but there is no AV input button The menu under colorstream only allows me to change DV

  • HP Officejet 4630: Problem creating account e-print

    Hello. I just bought the printer above a few days ago.  We realized the implementation on the printer itself without problems, but when you try to create the account e-print, either with the web link or CD-ROM, we were informed that there was a probl

  • Cannot use HDD recovery but I would like to restore to factory settings

    I caught a virus at one point and restarted the laptop... I want to restore the laptop to factory settings and when I clicked f8 to make the options of recovery, but it doesn't give me an option to reset the hard drive I need... When I did my backup

  • Too short ' paper' for HP Officejet Pro 8600 auto-recto-sided

    Why do a window that says "too short for auto-recto-sided paper' on my computer screen?  Get on the two computers on my network.  It worked well for a while and then started to appear after I used the photocopier in the duplex mode.

  • need driver for my scanner hp scanjet 8250. Can not find mine

    I have lost my install CD.  Where can I find another so I can run my scanner.  I realize how old this is but he served well and do not want to replace it.  So if no thinking, please let me know.  Thank you