User Profile

Collapse

Profile Sidebar

Collapse
freethinker
freethinker
Last Activity: Sep 26 '11, 05:20 PM
Joined: May 22 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • freethinker
    replied to How does PHP interpreter work?
    in PHP
    According to my research on the subject.
    I think the PHP interpreter takes source and convert to CGI and C.
    What do you think about this?

    Thanks
    See more | Go to post

    Leave a comment:


  • freethinker
    started a topic How does PHP interpreter work?
    in PHP

    How does PHP interpreter work?

    Hello,
    I decided to ask this question here on bytes.com after I googled and retrieved nothing from the different search queries I did.

    To make my question more clear I'd like to mention here my own understanding of how C compiler works.

    C compiler takes a source file (hello.c e.g) and translate/convert it to assembler after making the links and at the end it makes object file which can be executed by the machine....
    See more | Go to post

  • I solved it, but with a bizarre solution :)
    I just have to recall the constructor of DataPlayer, even after doing this in the constructor of UI class.

    Example: (see line 10, 18 and 32)

    Code:
    public class PlayerPanel extends JPanel { 
    
        private ArrayList<Player> pList;
        private DataPlayer dp;
        private Player p;
        private int identifier = 1;
    ...
    See more | Go to post

    Leave a comment:


  • Yes

    Ofcourse I close it after every SQL statement in the finally block.


    You mean con= null and then con.close() ?
    I don't have to do that for other methodes which

    Thanks....
    See more | Go to post

    Leave a comment:


  • But I see a difference between con values, to comapre:
    ...
    See more | Go to post

    Leave a comment:


  • con = (org.apache.der by.impl.jdbc.Em bedConnection40 ) #2003

    Kr,...
    See more | Go to post

    Leave a comment:


  • It is really bizarre, because when I debug, and get into these lines:
    Code:
    con = db.getConnection(); 
    stmt = con.createStatement(); 
    ResultSet rs = stmt.executeQuery(sql);
    con = db.getConnectio n(); => This works, I get into my database class, and the methode getConnection returns variable c without any problem.

    And here:
    stmt = con.createState ment(); ==> It throws exception wich...
    See more | Go to post

    Leave a comment:


  • Hi, thanks.
    Yes I am able to run the hole application to manage players, teams, matches, records, .. all things, all classes and all methodes except that one (selectPlayer) and all methodes to save data in all classes I use the same structure, and they all work perfect except that method in the class DataPlayer.

    Kr,
    See more | Go to post

    Leave a comment:


  • freethinker
    started a topic SQLException : No current connection? Why ?
    in Java

    SQLException : No current connection? Why ?

    Hi,

    I have a database class I use to get and drop db connections:

    Code:
    public class Database {
        protected static Connection c;    
        //....
       /// .. c = DriverManager.getConnection ....
    
        public Connection getConnection() {
               return c;        
        }
        public void dropConnection() {
            try {
                c.close();
    ...
    See more | Go to post

  • freethinker
    started a topic event or delegate?
    in .NET

    event or delegate?

    Hi, what is the difference and where should I use event of delegate?
    Thank u so much
    Kr,
    See more | Go to post

  • i'm gonne think about that solution
    thank u
    See more | Go to post

    Leave a comment:


  • which solution u advising me to use for login system

    hi, i don't know if there is a design pattern for this, but this is the case:
    my java application to manage players, coaches, teams and matches.

    only one administrator is allowed to add, change of delete players, teams ..
    and only users with high permission are allowed to add matches or delete them from the database.

    i was thinking about this solution:

    add a new table to my DB: tblusers...
    See more | Go to post

  • freethinker
    replied to Generate barcode from a string in java
    in Java
    true
    true
    a mathod to produce a barcode (some graphics you can print out for the player).

    thank u

    kr,
    e...
    See more | Go to post

    Leave a comment:


  • freethinker
    replied to Generate barcode from a string in java
    in Java
    Thank you, that is what I also do, the string or bytes I get as return value when I read a barcode with barcode reader, I use it as unique id.

    I am now looking for a good working solution on how to generate a barcode which gives you the code (bytes for example) you have in the table as unique id....
    See more | Go to post

    Leave a comment:


  • freethinker
    replied to Generate barcode from a string in java
    in Java
    Thanks but i am sorry to say I don't understand your response.
    I asked what should I do to generate a barcode on basis of an array of chars?

    All I know is when I take the barcode reader and scan a barcode, the output is like this in (player_id)


    Kr,
    F....
    See more | Go to post

    Leave a comment:


  • freethinker
    started a topic Generate barcode from a string in java
    in Java

    Generate barcode from a string in java

    Hello
    I have a table of players, each player in the team should have unique barcode:



    The barcode scanner returns an array of chars.
    The next player_id = char++, example:
    aaa
    aab
    aac
    ...
    aba
    aca
    ..
    baa


    Or muybe another solution?


    Kr,...
    See more | Go to post

  • freethinker
    started a topic C# with Java: where to pay attention?

    C# with Java: where to pay attention?

    Hi all,
    I have basic knowledge of Java, and now I started to learn C#, but I'de like to ask about the main differences and where I should pay more attention to prevent confusion between those 2 OOP languages.

    Example

    Code:
    String str = "eryesnobuytrer";
    Console.WriteLine(str.Length);
    
    String str = "eryesnobuytrer";
     System.out.println(str.length());
    Thx...
    See more | Go to post
No activity results to display
Show More
Working...