Month: August 2005

  • Determine the number of open files in your program (C/C++)

    The code below will display the number of files open by the running process. It does this by getting the maximum file descriptor number and then iterating through each possible fd trying to do an ‘fstat’ on it. If errno returns anything other than EBADF ‘file descriptor is bad’ it increments a count. It is…

  • JSSHTunnel 0.0.0 Released!

    JSSHTunnel is a lightweight GUI application which forwards local & remote ports over SSH connections. It is written in Java and uses Eclipse SWT & JSch. All you need is a JVM to run it. I’ve released version 0.0.0, it is under GPL. Features & Limitations in 0.0.0: Targetted at Windows platform, comes with a…

  • Linux Bluetooth “Device is not available: Success”

    by

    in

    Symptom Trying to use hcitool returns the ambiguous error message “Device is not available: Success” [code] [root@localhost ~]# hcitool scan Device is not available: Success [root@localhost ~]# [/code] Solution Start ‘Bluetooth services’ you monkey :'( …. I fell for this one and it took maybe half an hour of fiddling before I realised there was…