User Profile

Collapse

Profile Sidebar

Collapse
Sebouh
Sebouh
Last Activity: Feb 29 '08, 09:29 PM
Joined: Feb 21 '07
Location: Lebanon, Beirut
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sebouh
    replied to C socket programming - port number inheritance.
    in C
    So if a server communicates with multiple clients concurrently, it does so through the same port no matter what? Won't that create some sort of congestion?...
    See more | Go to post

    Leave a comment:


  • Sebouh
    started a topic C socket programming - port number inheritance.
    in C

    C socket programming - port number inheritance.

    Hi guys. I have a question about sockets. It appears that the accept function returns a socket descriptor after creating a new socket handler. This new handler inherits the properties of the socket passed to accept, including the bound port number.
    I was wondering if it's possible to change this port number so each socket uses it's own port.

    Thanks.
    See more | Go to post

  • Well, i guess not connecting is out of the question...

    So if i use MS Access, the computer i run the application on must have MS Access then?
    See more | Go to post

    Leave a comment:


  • Database manpulation without connecting to a server...

    Hi guys. I'm completely new to databases, so i wanna ask you if this is achievable.

    I've been learning how to connect to an MS SQL database file with java. I've finally learned the basics, connecting and manipulating... but here's what i wanna do. I don't want to connect to a server to change the database content. I want to have the database file inside the application folder and manipulate it directly from there, without logging on...
    See more | Go to post

  • Sebouh
    replied to Understanding my ipconfig data.
    Well, after some more research, i found some answers. I understood that ethernet has some limitations, which make it unusable for internet connection. I have to use the PPP protocol which supports authentication. .. So what happens is that the PPP packet is encapsulated inside the ethernet frame and sent to my ISP. So i need to create a PPP connection/session over ethernet, to be able to send/receive PPP packets.

    Though i'm still not...
    See more | Go to post

    Leave a comment:


  • Sebouh
    replied to Understanding my ipconfig data.
    Hmmm...i'm still confused though. Isn't the connection with my ISP the first one (Ethernet LAN)? And to access the internet, i have to set up another connection right, a PPP one? So my question is, why? Can't i use the first connection? As i understand it, ethernet also uses a PPP. And is this PPP adapter a separate hardware device, with its own MAC address? And how come my ISP allows me to connect to the LAN with any ethernet MAC address, but only...
    See more | Go to post

    Leave a comment:


  • Sebouh
    replied to Understanding my ipconfig data.
    Here you go:
    Code:
    Ethernet adapter Local Area Connection:
    
            Connection-specific DNS Suffix  . :
            Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connection
            Physical Address. . . . . . . . . : 00-20-78-16-DF-9C
            Dhcp Enabled. . . . . . . . . . . : No
            IP Address. . . . . . . . . . . . : 192.5.26.96
            Subnet Mask . . . . . . . . . . . : 255.255.255.0
    ...
    See more | Go to post

    Leave a comment:


  • Sebouh
    started a topic Understanding my ipconfig data.

    Understanding my ipconfig data.

    Hi all. I'd like to know what my ipconfig is printing out.

    I have a NIC which i use to connect to the internet using pppoe. My ipconfig prints out 2 blocks of data, "Ethernet adapter Local Area Connection" and "PPP adapter spider4". Each has its own ip and MAC address.

    I'd like to know why there is a difference in the addresses. Isn't my LAN address the one i use to connect to my network? Yet, when...
    See more | Go to post

  • Sebouh
    replied to Digital Signal Processing
    in Java
    Yeh, i now know what they mean. So in my case, i only need to know the magnitudes of the frequencies, right? I don't need the phase to determine which frequencies are present in a signal. So i get A, and as i understand it, the frequency range covered by FFT will be half of the sampling rate, and each A will represent the magnitude of a 'bandwidth' = sampling rate / (N/2), correct?
    See more | Go to post

    Leave a comment:


  • Sebouh
    started a topic Digital Signal Processing
    in Java

    Digital Signal Processing

    Hi all.

    I've been busy with DSP in the past few days and i'd like to ask you guys some questions about it.

    First of all, let me explain what i did. I built a java program which records sound and stores the samples in an array. All simple. What i want to do now, is analyze this signal and see which frequencies are present in it.

    As i understand, i need to use FFT to transform this signal from time domain...
    See more | Go to post

  • Sebouh
    replied to Read audio sample data
    in Java
    I think i've solved the problem.

    I'll keep in touch if i run into more problems. :)
    See more | Go to post

    Leave a comment:


  • Sebouh
    started a topic Read audio sample data
    in Java

    Read audio sample data

    Hi guys.

    I need your help to solve this problem. You see, i need to get the samples from an audio stream, to do FFT analysis. I need to read those amplitudes and pass them to an analyzer so i can check which frequencies are present in the sound.

    I'm having trouble accessing the sample values. I tried to create a small program which records sound and prints the values to the screen, but it keeps printing 130 and 131....
    See more | Go to post

  • What exactly is Requirements Specification?

    Hi all. I have a document to submit and i have no idea how to do it. I am lost, so hope any of you can help me out.

    First, i need to know what is SRS. Is it the Specifications doc, or is it a combination of requirements and specifications? Is it supposed to be in the application domain, machine domain or the interface?

    Second, i've found a lot of templates on how to write an SRS document, but they don't look anything...
    See more | Go to post

  • Sebouh
    replied to Waiting for a button click.
    in Java
    I'm afraid i will run to an infinite loop. If the player takes his time to click the button, then i'll constantly loop over the other part.

    I was hoping to some sort of a "wait" solution that halts the application. I mean, how does the scanner work when i request input? Does it loop too, or blocks the program? I'm thinking more in terms of block and sleep - click button - interrupt - wake up thing.
    See more | Go to post

    Leave a comment:


  • Sebouh
    replied to Waiting for a button click.
    in Java
    I understand, but my original code had a while loop. I can't divide the while loop and put part of it in actionPerformed (), can i?...
    See more | Go to post

    Leave a comment:


  • Sebouh
    replied to Waiting for a button click.
    in Java
    I'm not sure what you mean by do nothing. If the the code is:
    Code:
    x = 1 + 1;
    //wait for button click
    x = 1 + 2;
    how can i do nothing? I have to put something in between to keep the app waiting, don't i?
    See more | Go to post

    Leave a comment:


  • Sebouh
    replied to Waiting for a button click.
    in Java
    Yes, you're right. I forgot about that.

    But still, how would i get the application to wait for the click. I thought of something like this:
    Code:
    ...
        boolean clicked = false;
        ...
        while (!clicked) {
            Thread.sleep(1000);
        }
    
        ...
    }
    
    actionPerformed() {
    clicked = true;
    }
    But this would hang the application every...
    See more | Go to post

    Leave a comment:


  • Sebouh
    started a topic Waiting for a button click.
    in Java

    Waiting for a button click.

    Hi guys. I don't know how to implement this so i was hoping if any of you can help me.

    I have a code like this one:
    Code:
    public static void main (String args[])
    {
        //create frame and button
        ....
    
        frame.setVisible(true);
        frame.add(button);
    
        do {
             ....
            // wait for a button click
    
            //code to be executed after
    ...
    See more | Go to post

  • Sebouh
    started a topic When Windows is shuting down...
    in .NET

    When Windows is shuting down...

    Hi guys.

    I''m curious about what happens when windows shuts down. I have a program running that saves data into a file when the form's closing method is invoked. So when Windows shuts down, does it call this method?

    Plus, i need to implement the method in a way that, when the user clicks the X button on the form, the program minimizes and a notify icon appears. The problem is if i call e.cancel, to cancel the close,...
    See more | Go to post

  • Sebouh
    started a topic Threading, Delegates and the Invoke method.
    in .NET

    Threading, Delegates and the Invoke method.

    Hi guys. I was messing with Threading and stuff, and i have reached a point where i'm not sure what's causing the current behavior.

    Here's the code:
    Code:
    Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim nt As New newThread(Me)
            Dim t As New Threading.Thread(AddressOf nt.ThreadCode)
            t.Start()
    ...
    See more | Go to post
No activity results to display
Show More
Working...