User Profile

Collapse

Profile Sidebar

Collapse
edwardrsmith
edwardrsmith
Last Activity: Sep 26 '08, 06:42 AM
Joined: Feb 26 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • edwardrsmith
    replied to Changing many file names at once
    Working through ssh terminal should not stop you from installing or running a program which will rename files. If you use the '-X' flag with ssh then it will tunnel graphics (so if you run a program with a gui the gui will appear on the computer infront of you). As for installing a program, every package manager I know of has terminal commands (but since I don't know what linux system you are using I can't say what command to use).

    ...
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to Changing many file names at once
    If you check the repositories there are lots of programs which are made for renaming large quantities of files.

    Edward
    See more | Go to post

    Leave a comment:


  • Try going to the terminal and typing lsusb (I think that is the command). If the webcam is connected via usb (which seems to be the case in most laptops now days) then you should be able to determine the make and model by looking at the resulting list of usb devices.

    Hope that helps.

    Edward

    Edit: After a little research it apears that the webcam is connected by usb so the above command should yield ...
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to Digital Clock
    in Java
    I do like the book but why limit yourself to one? They're both free so use them both.

    Edward
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to c definition and declaration
    in C
    I think he was talking about using ifndef combined with define in the format of

    Code:
    #ifndef test_h
    #define test_h
    
    // Code
    
    #endif
    This would prevent it from being defined twice as it would only be compiled once.

    Edward
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to c definition and declaration
    in C
    EDIT: I am not saying that it is unnecessary to use ifndef but instead am saying that ifndef is only part of the solution.

    Sorry: hit the wrong button and didn't notice....
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to c definition and declaration
    in C
    But that doesn't mean that it is good style. By including definitions in a header file you are also slowing down compile time. The entire reason that there are header files and libraries is that way it is unnecessary to compile the entire library every time it is used. This would be incredibly tome consuming and a pain. Instead a header file contains the decleration of the function (and often the documentation for the function as well) while...
    See more | Go to post

    Leave a comment:


  • If you post the specifics for the camera (manufacturer and model number should work) you are tyring to use I can try to write/find some simple code though I will not be able to test it as I wont have the same camera. If you know the specific driver you want to use that would work as well.

    One other matter to consider is what format the frame needs to be stored as. This could potentially make a big difference in how easy it is. (I...
    See more | Go to post

    Leave a comment:


  • The three tasks you mentioned are not really do-able with just a simple program. My suggestion would be to study the example code and break it down to the bare minimum. As for the encryption and sockets, I would suggest finding libraries that take care of the tasks. Even using libraries, the program is not likely to be simple.

    Edward
    See more | Go to post

    Leave a comment:


  • If that is the case then that part of my previous comment can be ignored. I just decided that it was best to mention it incase ambrnewlearner had forgotten about that.

    Edward
    See more | Go to post

    Leave a comment:


  • I don't know how but it is possible to make variables outside of the program (i.e. stored in system memory). It should also be possible to store the variable in the memory belonging to the program which creates the threads.

    As for error handling, I don't see an except statement and all threads but one should throw an error. In order for the error to be thrown the folder should have to have been created by one thread after the others...
    See more | Go to post

    Leave a comment:


  • Use a global variable or add error handling so that your program deals with the error cleanly.

    Edward
    See more | Go to post

    Leave a comment:


  • The best place to start is by determining what driver is being used. From there, search for what functionality that driver has and what calls are supported. Then all you need to do is make those calls in your program.

    Interfacing with a webcam, even if a driver exists can be difficult. I would look for examples of code which are interfacing with the same/or a similar driver and use those as a template.

    Edward
    See more | Go to post

    Leave a comment:


  • Ubuntu shouldn't be a major problem for size as it should easily fit on a 4GB memory stick (which you can find for 10-20 dollars on sale). Alternatively, you could use a custom kernel or remove packages to get the install smaller. Additionally, if xubuntu was used, then the install would also be a lot smaller.

    Edward

    Something else I just realized after looking at the original forum. The reasoning mentioned about...
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to Recommended books for a beginner in C?
    in C
    Take a look at this book. I have used it and although the title doesn't mention datastructures it does a very good job of demonstrating them. The link above takes you to the orielly site where you can read exerpts from the book to get a feel for it.

    Edward
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to A Linux AppBar.
    in C
    Yes, but it is not like windows. In fact, the other library mentioned above would work as well. Unlike windows, the system would not be responsible for updateing the app bar or managing it (beyond what is done for all programs when they are running). You will need to find the appropriate commands and system calls to achieve whatever functionality you want. I don't remember what the exact calls but you should be able to get an idea of them by...
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to A Linux AppBar.
    in C
    Qt does have potential conflict from liscenses (as I said above) but I am fairly sure that it exists only for commercial use i.e. where you are selling the program you made in which case you must pay for a liscense.

    Edward
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to RAM access.
    I am not overly familiar with python but I believe you should look for a method to share memory. I also believe that methods for sharing memory are kernel dependent (that means that it will change from OS to OS and possibly between different versions of the same OS).

    Look up python+shared memory in google and you should be on your way to an answer. (I did the search but am not sure what will help you so you should take a look at...
    See more | Go to post

    Leave a comment:


  • If you use #include<xx> then it searches in the path for the file. However, if you use #include "xx" then it will start searching in the current directory, though I believe it will search the path after a while.

    By the way. The path is where your system stores libraries and the associated header files.

    Edward
    See more | Go to post

    Leave a comment:


  • edwardrsmith
    replied to Recommended books for a beginner in C?
    in C
    I have never used this specific book but I have used some of his other books, all of which I found easy to understand and well organized. It is called 'Thinking in C++' and is written by Bruce Eckel. There is also a second volume.

    Another suggestion is to get more than one book. The more the merrier (though it can get to be expensive quickly).

    Edward
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...