Linux and I/O completion ports?

If you’re looking for something exactly like IOCP, you won’t find it, because it doesn’t exist. Windows uses a notify on completion model (hence I/O Completion Ports). You start some operation asynchronously, and receive a notification when that operation has completed. Linux applications (and most other Unix-alikes) generally use a notify on ready model. You … Read more

Use BlueZ Stack As A Peripheral (Advertiser)

With your Bluetooth dongle plugged in, running the following command will tell you the device name and give its state: $ hciconfig The output should look something like this: hci0: Type: BR/EDR Bus: USB BD Address: 00:01:02:aa:bb:cc ACL MTU: 1021:8 SCO MTU: 64:1 DOWN RX bytes:1000 acl:0 sco:0 events:47 errors:0 TX bytes:1072 acl:0 sco:0 commands:47 … Read more

How to start Solr automatically?

As you’re on a shared Linux box, you’ll have to ask the system administrator to do the following, probably. Create a startup script in /etc/init.d/solr. Copy this code, my Solr startup script, into that file: #!/bin/sh # Prerequisites: # 1. Solr needs to be installed at /usr/local/solr/example # 2. daemon needs to be installed # … Read more