Million dollar idea #964

You’re in the nightclub but you can’t hear anyone. Product is a nearly invisible hearing piece which you have in your ear (secret service style). It has a small, very directional, wireless microphone you wear it on your collar, earring, on your finger, whatever (accessories). You could just move it into someone’s voice projection to hear them, but that’s going seems a geriatric piece, kinda the stealth/lurker model. No money in that.

So to market this we have a version which is more visible, more social. Your microphone/broach has a red/green light on it. If you like the look of the boy/girl approaching you press it to set the light to green; they press theirs and the two systems connect. You can hear each other talk. Range is 50 centimeters so you have to stay close to stay in radio contact or it drops out. The game is to keep ‘pressing each others buttons’.

Posted in life | Leave a comment

Getting started with Drupal

Is Drupal

Posted in geek | Tagged | Leave a comment

Set a Static IP Address with Ubuntu Linux

Problem
I want to ensure my linux server always has the same IP address. If it still wants to use dhclient to find a dynamic ip address, and the nameservers, then that’s ok too.

Solution

By setting an “alias” for the fixed address in dhclient it will answer to both the static ip address you want and any dhcp address leased from a dhcp server.

Method

Edit /etc/dhcp3/dhclient.conf to include something like:

alias {
      interface "eth0";
      fixed-address 192.168.1.101;
      option subnet-mask 255.255.255.255;
}


Which tells dhclient that whatever ip address it gets for eth0, 192.168.1.101 is also its ip address. So it will answer to two ip addresses simultaneously.

Restart the network and you’re done…


john@lappy:/etc$ sudo /etc/init.d/networking restart
[sudo] password for john:
 * Reconfiguring network interfaces...
...
DHCPACK of 192.168.1.4 from 192.168.1.254
bound to 192.168.1.4 -- renewal in 120670 seconds.
                                                                                                                      [ OK ]
john@lappy:/etc$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0d:60:8a:35:92
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20d:60ff:fe8a:3592/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10012 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5789 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:13138975 (13.1 MB)  TX bytes:565365 (565.3 KB)

eth0:0    Link encap:Ethernet  HWaddr 00:0d:60:8a:35:92
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:56 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3850 (3.8 KB)  TX bytes:3850 (3.8 KB)

john@lappy:/etc$

Story

Once upon a time every computer had a static IP address and setting it was a trivial text edit or command line task. But today I had trouble getting Ubuntu Linux (Intrepid) to do it. A simple edit of /etc/network/interfaces no longer seems to work as expected. With a whiff of Microsoft “helpfulness” a irrepressible effort now goes into ensuring Ubuntu is dummy proofed to find an IP address for itself. Me trying to tell it not to find an IP address I found was working against the flow of traffic.

Posted in geek | Tagged | Leave a comment

Schedule specific files with Transmission-remote

Problem

You’re using transmission remotely and you don’t want to download every file in a particular torrent, just some of the files in it. (V1.34 web interface doesn’t implement this functionality).

Solution

Use transmission-remote to view and (de)select specific files.

Method

Show me the running torrents (and your id numbers for them)
transmission-remote -l
Show me the files in torrent 2 (and your id numbers for them)
transmission-remote -t 2 -f
Don’t download any of the files in torrent 2
transmission-remote -t 2 -G all
Download files 1 and 3 in torrent 2
transmission-remote -t 2 -g 1,3

See the transmission-remote man page for more detail.

Example

john@laptop:~$ transmission-remote -l
ID Done ETA Up Down Ratio Status Name
2 0% 17 hrs 0.0 15.6 0.0 Downloading Neighbours
john@laptop:~$ transmission-remote -t 2 -f
Neighbours (318 files):
# Done Priority Get Size Name
1: 0% Normal Yes 174.8 MB Neighbours/Pilot - [DVD]/001 - The Neighbours Chronicles - [DVD].avi
2: 0% Normal Yes 174.9 MB Neighbours/Season 1 - [DVD]/002 - The Stakeout - [DVD].avi
3: 0% Normal Yes 174.9 MB Neighbours/Season 1 - [DVD]/003 - The Robbery - [DVD].avi
john@laptop:~$ transmission-remote -t 2 -G all
localhost:9091 responded: "success"
john@laptop:~$ transmission-remote -t 2 -g 1,3
localhost:9091 responded: "success"
john@laptop:~$ transmission-remote -t 2 -f | head -7
Neighbours (318 files):
# Done Priority Get Size Name
1: 0% Normal Yes 174.8 MB Neighbours/Pilot - [DVD]/001 - The Neighbours Chronicles - [DVD].avi
2: 0% Normal No 174.9 MB Neighbours/Season 1 - [DVD]/002 - The Stakeout - [DVD].avi
3: 0% Normal Yes 174.9 MB Neighbours/Season 1 - [DVD]/003 - The Robbery - [DVD].avi
4: 0% Normal No 174.9 MB Neighbours/Season 1 - [DVD]/004 - Male Unbonding - [DVD].avi
5: 0% Normal No 174.8 MB Neighbours/Season 1 - [DVD]/005 - The Stock Tip - [DVD].avi

Posted in geek | Tagged | Leave a comment

Schedule transmission bittorrent

Problem

Transmission doesn’t include any scheduling functionality to start/stop/trottle torrents during the day/week.

Solution

Don’t run the gui client. Instead (or as well) invoke transmission-daemon from the command line and use crontab to apply the schedule via transmission-remote

Method

  1. Install the transmission-cli package corresponding to your Operating System
  2. Start transmission-daemon eg:
    transmission-daemon -f -g /home/torrentuser/transmission-config -w /home/torrentuser/incoming
  3. Test it is running by opening a browser and visiting http://localhost:9091
  4. Play with transmission-remote to get a feel for what you can do. eg: start and stop all torrents…
    transmission-remote -t all -s
    transmission-remote -t all -S
  5. Setup your schedule in Cron with crontab
    eg: to start all torrents at 2:02AM every day and stop them at 11:58AM…
    crontab -e
    02 02 * * * /usr/bin/transmission-remote -t all -s
    58 11 * * * /usr/bin/transmission-remote -t all -S
  6. optional: You might also play with at for scheduling once off tasks
    Posted in geek | Tagged | 3 Comments

    Start Headless vbox on windows

    This post is out of date.
    So I updated it.
    See the Windows 7 way to run virtualbox machines headless

    I keep forgetting this simple little line to start a virtualbox so that it behaves like a remote server (ie without any windows and crap cluttering my display)

    start /b vboxheadless -s myjeos

    “start” is the windows command to start a process
    “/b” tells start not to create a window for the process
    “vboxheadless” is the process to start
    “-s” tells vboxheadless to start a machine
    “myjeos” is the name of the machine to start

    Posted in geek | Tagged | 3 Comments

    Cyclist arrested for catching the train to work

    Flashpoint California. Last week. Tensions continue to rise as the railway system fails to cope with the volume of commuters seeking to combine rail with cycle. Cyclists are left on the platform with their bikes as uncrowded trains pull out. They’re getting increasingly aggressive about claiming an officially sanctioned spot on the train. This guy sees an empty slot for his bike and takes it. The conductor tells him to leave the train. He ignores the conductor and takes a seat. This is what happens at the next station…

    There’s already a website for this incident of course… here. And here I was complaining about the poor facilities on our ferries… at least we don’t get arrested – well not yet.

    To be judge:
    The rule for 16 bikes max. is presumably based on the conclusion that there are 16 slots for bikes and this is the only safe and authorised way for bikes to travel. I think the conductor is unreasonable in denying a bike which can travel in the safe and approved manner to do so. If the conductor is concerned about conforming to the 16 bike maximum he should be passing judgment upon the bike traveling not in a rack.

    However the cyclist is not arrested for putting his bike on the train, but for failing to be a submissive citizen and follow orders. Clearly the problem has been escalating for I can’t imagine he’d be so determined to make this stand just on the basis of this one incident. He’s made his point and hopefully the publicity will contribute toward solving the problem. The trauma of being arrested is punishment enough for his defiance.

    No penalty. No record. Case Dismissed.

    Posted in life | Tagged | Leave a comment

    It’s my blog so I can ignore it if I want to

    I moved house which interrupted things a bit.

    Posted in life | Leave a comment

    How to stop Googleupdate.exe running

    All of:

    1) Kill the process “googleupdate.exe”
    2) run “msconfig” and uncheck “GoogleUpdate” from the “StartUp” tab
    3) SystemTools->Scheduled Tasks uncheck the “Enabled” box under the “Task” tab of “GoogleUpdateTaskUser”

    Posted in geek | Tagged | 2 Comments

    Hurricane Gustav

    Today’s evacuation notice in New Orleans was surprising in its force and conviction.

    http://news.bbc.co.uk/2/hi/americas/7590332.stm

    Should be interesting to watch what happens this time.
    I liked this little loop of the storm to date (I think this link is live data so it will date quickly)

    http://www.ssd.noaa.gov/goes/east/gmex/loop-vis.html

    Someone’s done a nice job on this one too. (also live I expect)

    http://www.ibiseye.com/

    Posted in life | Leave a comment