Scientific Computing

Science Magazine - Who's Afraid of Peer Review?

The “Who’s Afraid of Peer Review” article DOI: 10.1126/science.342.6154.60 notes that:

…Ocorrafoo Cobange does not exist, nor does the Wassee Institute of Medicine…submitted 304 versions of the wonder drug paper to open-access journals. More than half of the journals accepted the paper, failing to notice its fatal flaws…the data from this sting operation reveal the contours of an emerging Wild West… …acceptance was the norm, not the exception…

Counter-argument from Curt Rice in the Guardian

Quote of the Day

Some think the Earth is spherical, others that it is flat and drum-shaped. For evidence they bring the fact that, as the sun rises and sets, the part concealed by the Earth shows a straight and not a curved edge, whereas if the Earth were spherical the line of section would have to be circular . . . . . . but in eclipses of the moon the outline is always curved: and, since it is the interposition of the Earth that makes the eclipse, the form of this line will be caused by the form of the Earth’s surface, which is therefore spherical.

Aristotle. “On the Heavens”. Written 350 B.C.E.

Quoted in: Kabanikhin, Sergey I. Inverse and Ill-Posed problems

Winetricks registry fix

if you get a winetricks error like:

wine cmd.exe /c echo '%ProgramFiles%' returned a string containing the word 'unknown', as if a voice had cried out in terror, and was suddenly silenced.

Fix: backup existing system.reg file by typing in Terminal:

cp ~/.wine/system.reg ~/.wine/system.reg.bak

Use text editor and “replace all”

C:\\windows\\system32\\unknown

with

C:\\Program Files

Radio Shack 43-3102 intercom squelch adjustment

The 900 MHz Radio Shack (model 43-3102, FCC ID AAO4303102) intercoms are long range, reliable intercoms operating with WBFM on 900 MHz. Several hundred feet range between intercoms is possible with 1 milliwatt RF output and wideband 75 kHz FM modulation. These intercoms are specified at -109 dBm 20 dB SINAD sensitivity (very good).

However, intercom squelch is set a bit too tight from the factory. The CTCSS/PL squelch system uses several of the same frequencies as standard two-way radios. Lowering the squelch threshold allows weaker RF signals to be heard without falsely opening the squelch on static.

intercom adjustments

Squelch adjustment tradeoffs

For this intercom, the squelch potentiometer makes the squelch “tighter” with counterclockwise turning and “looser” with clockwise turning. On this intercom, when the squelch is open (but with no/incorrect CTCSS) the middle RX LED will flicker once per second. When the squelch is set just tight enough to stop the RX LED from flashing with no incoming RF signal, the RF RX sensitivity is maximum (maximum range).

If the squelch threshold is set too low, there can be occasional bursts of static (CTCSS false decode). Also, for battery operated intercoms, the battery consumption will be higher if the squelch is always open as it’s trying to find the CTCSS tone constantly, kicking the receiver into full power drain.

Matlab integer, non-exponential ylabel, xlabel

For integer xlabel and ylabel (e.g. 362093) put the following line after you set xlabel or ylabel:

set(gca, YTickLabel=sprintf('%7d|', get(gca,'YTick')))
%7d|
up to 7 integer digits on y-axis.

Matlab default behavior, which Mathworks says is currently not changeable, is to put exponential format into xlabel and ylabel for large numbers–even integers.

Fix Matlab install permission issues

Installing Matlab on Linux from a networked drive with:

./install

Might fail to install:

mathworks_/sys/java/jre/glnxa64/jre/bin/java: Permission denied

The fix for this is to instead of installing over the network, copy the whole Matlab installation directory to the local home drive ~ e.g. to ~/matlab. Then install like:

chmod +x ~/matlab/sys/java/jre/glnxa64/jre/bin/java

./install

Find files modified less than X days ago

Using GNU Findutils one can search for all files modified in the last N days.

find ~ -name '*.txt' -type f -mtime -60
-name "*.txt"
You need to enclose in quotes " " to avoid the shell expanding the asterisk into a giant list of files. This parameter is optional
-type f
save time by searching only files, not directories (especially helpful the other way around where you want only directories)
-mtime -60
searches for files modified within the last 60 days (not older files)

$100 VHF/UHF Wouxun UV3D walkie talkie

Wouxun has been selling ham radio / Part 90 handheld radios for a few years already, with steadily improving quality. The unconventional yet economical design approach of using two different transmit power transistors seems to be sound economically and technically.

Some of the compromises in performance include

Squelch performance: the noise squelch has a too-narrow adjustment range–I can’t adjust it high enough for CSQ channels. This also stops the scanning despite having PL.

Scanning speed is too slow, and it doesn’t exit to the original channel if you exit–an expected feature that is missing.

No true dual receiver: the TDR button just scans between the two frequencies on display. If scanning, the non-scanning freqeuncy is treated like a “priority scan channel” in traditional radios.


If I just think of it as a single-channel radio, then I can be satisified. In urban environments, the noise level is too high to hear more than a couple repeaters well.