So the Photonic Fence is being developed!

I want one.

Lighting Science and Global Good to Develop Light-Based Alternatives to Pesticides

Basically, it uses a low power infra-red light to spot flying insects, then hits it with another low power laser that determines the wing beat frequency and then if it’s in a specific range – matching female mosquitoes – (males are different to females, and only females bite) then it gets hit with a higher power laser that kills the insect.

Living near a river with marshlands nearby, this would be a life-saver. Possibly without hyperbole.

Windows command line tricks

Just a quick one, since I just discovered this. (Apparently I’m slow!)

You all probably know, in a windows batch file, you can do something like this:

@echo off
echo first %1
echo second %2
echo rest %*

which will give you:

c:\>test.cmd john paul ringo george
first john
second paul
rest ringo george

but if you use these modifiers you can save a lot of dodgy text work:

@echo off
echo %~n1
echo %~p1
echo %~x1

which will give you (assuming the file actually exists):

c:\>test.cmd c:\Users\Ringo\BeatlesSongs.txt


You can get some more parameters by typing FOR /? or CALL /? at the command line