Difference between revisions of "Computers"

From MagnetoWiki
Jump to navigation Jump to search
(added search channel for youtube)
(Updated DNSUpdate link to point at archived source code)
 
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
=Computers in the Houpt Lab=
 
=Computers in the Houpt Lab=
 +
 +
king subnet mask: 255.255.252.0
 +
IP Gateway: 128.186.177.1
  
 
{| border = "1"
 
{| border = "1"
 
|+
 
|+
! Computer !! Location !! IP address
+
! Computer !! Location !! IP address !! MAC address  !! URL
 
|-
 
|-
| Principia || 209 || 65
+
| Principia || 3009 || 128.186.177.169 || 00:03:93:7c:43:02 (en0) || kin3010-mac1-bio.fsu.edu
 
|-
 
|-
| Magnet || 209 || 73
+
| Voyages || laptop || DHCP  || c8:bc:c8:8f:2f:55 (en0), 78:ca:39:ba:71:cd (wifi) ||
 +
 
 
|-
 
|-
| Tesla || 252 || 226
+
| Tesla || 3029 || 128.186.177.166 || 00:1f:5b:35:2c:2d (en1)  || kin3029-mac2-bio.fsu.edu
 
|-
 
|-
| Micrographia || 250 || (DHCP)
+
| Micrographia || 3029A || 128.186.177.165  || || kin3029-mac1.bio.fsu.edu
 
|-
 
|-
| Vaio || 250 || 78
+
| Vaio || 3029 ||  || ||
 
|-
 
|-
| G3 GelDoc || core || nc
+
| Brother HL-6180DW || 3029 || 128.186.177.168 || 30:05:5c:86:10
 
|-
 
|-
| HP 3005 Printer || 250 || 15
+
| MacMini || 3013 ||  || 00:1f:f3:45:6d:18 (en0), 00:23:6c:7a:23:b3 (wifi) ||
 
|-
 
|-
 
| BRF iMac || 115 || DHCP
 
| BRF iMac || 115 || DHCP
|-
 
| Maglab iMac || Maglab || ???
 
 
|-
 
|-
 
|}
 
|}
  
 +
=Setup of sftp server for EvoCam=
  
 +
Make sure sftp is selected.
 +
 +
The url for storing the image is (e.g. for an image named "magnet.jpg"):<br>
 +
<blockquote>
 +
<tt> sftp://www.magnet.neuro.fsu.edu//Library/FTPServer/FTPRoot/WebPages/Webcams/magnet.jpg</tt><br>
 +
</blockquote>
 +
Note that two slashes are required between the root url ( sftp://www.magnet.neuro.fsu.edu) and the start of the working directory (//Library/...). EvoCam first connects to the root url, and then attempts to put the image file into the directory. If the directory is not a subdirectory of the user's login directory, then an initial slash is required. Two slashes makes EvoCam parse the directory with an initial slash.
  
 
=Computer Hints=
 
=Computer Hints=
  
1. '''Acid Search''' from [http://www.pozytron.com/acidsearch  pozytron.com ]
+
1. '''Acid Search''' from [http://www.pozytron.com pozytron.com ]
 
<blockquote>
 
<blockquote>
 
Add a search channel for PubMed: <br>
 
Add a search channel for PubMed: <br>
Line 39: Line 49:
 
</blockquote>
 
</blockquote>
  
2. '''Add debug menu to Safari''':
+
2. '''Add Debug/Develop menu to Safari''':  
<blockquote>
+
 
<tt>defaults write com.apple.Safari IncludeDebugMenu 1</tt>
+
: Safari > Preferences... > Advanced > Show Develop menu in menu bar
</blockquote>
 
  
 
3. '''to make Safari pass PDFs to Preview''' instead of opening itself:  
 
3. '''to make Safari pass PDFs to Preview''' instead of opening itself:  
Line 50: Line 59:
 
(also remove Adobe PDF viewer from /Library/Internet Plug-Ins)<br>
 
(also remove Adobe PDF viewer from /Library/Internet Plug-Ins)<br>
  
(could also try using [http://www.celestialfrontiers.com/safari_enhancer.php Safari Enhancer])
+
(could also try using Safari Enhancer (Discontinued))
 
</blockquote>
 
</blockquote>
  
Line 67: Line 76:
 
</blockquote>
 
</blockquote>
  
5. '''download  [http://www.allume.com stuffit expander]'''
+
5. '''download  [https://my.smithmicro.com/index.html stuffit expander]'''
  
 
6. ''' make iChat autoconnect '''
 
6. ''' make iChat autoconnect '''
Line 78: Line 87:
 
<tt>sudo rsync -xrlptgoEv --progress --delete / /Volumes/Backup </tt><br><br>
 
<tt>sudo rsync -xrlptgoEv --progress --delete / /Volumes/Backup </tt><br><br>
  
or just use [http://www.bombich.com/software/ccc.html carbon copy cloner]
+
or just use [https://bombich.com Carbon Copy Cloner]
 +
</blockquote>
 +
 
 +
8. '''Replace file extension of all files within a directory tree'''
 +
<blockquote>
 +
<tt>find ~/MyDirectory -name '*.txt' -exec bash -c 'mv "{}" "`dirname "{}"`/`basename "{}" txt`xls"'  \;</tt><br><br>
 +
 
 +
The first arg is the parent directory of the data. Find will recurse thru all sub-dirs. This command replaces ".txt" with ".xls"
 +
</blockquote>
 +
 
 +
9. '''DNS Servers for use outside FSU's Network'''
 +
<blockquote>
 +
To avoid evil ISP DNS servers (comast 68.87.74.162), one can use any of the following DNS servers:<br><br>
 +
 
 +
[https://nationalmaglab.org/ FSU Magnet Lab]: 146.201.250.2 (addc1.ad.magnet.fsu.edu)<br>
 +
 
 +
<s>[https://easydns.com/blog/2008/07/24/easydns-soft-launches-dnsresolvers-com/ EasyDNS DNSresovlers]: 205.210.42.205, 66.207.199.44 (cache1-2.dnsresolvers.com)</s> [https://easydns.com/blog/2013/06/27/dnsresolvers-open-resolvers-will-be-shut-down/ DNSResolver shut down in 2013]<br>
 +
 
 +
DO NOT USE FSU's DNS SERVERS: Outside of FSU's network, the DNS servers are in cache-only mode, so only commonly accessed names can be resolved.<br>
 
</blockquote>
 
</blockquote>
 +
 +
10. '''Epson C82 Blank Ouput Problem and Fix'''
 +
<blockquote>
 +
When an Epson C82 unexpectedly starts outputing blank pages, it is likely that the [https://web.archive.org/web/20160704210356/http://inkjetprinterhelp.us/duraink.html ink purge tube has become disconnected].
 +
</blockquote>
 +
 +
11. '''Command-Line Downloading/Uploading a file from an offline WebDAV Volume'''
 +
 +
Sometime it is useful to send/receive files from a WebDAV server, without having to login and mount the Volume in the Finder.
 +
 +
Download "IGNATUS-SMALL.png" to current directory:
 +
<pre>
 +
curl -O http://www.magnet.neuro.fsu.edu/LabDisk/CEHoupt/IGNATUS-SMALL.png
 +
</pre>
 +
 +
Upload "test.mov" in current directory to LabDisk:
 +
<pre>
 +
curl -u user:password -T  test.mov http://www.magnet.neuro.fsu.edu/LabDisk/test.mov
 +
</pre>
 +
 +
=DNS for home website=
 +
 +
Install [https://github.com/jonasf73/DNSUpdate DNSUpdate] to make sure the webserver's current IP address is sent to [https://easydns.com EasyDNS]
 +
 +
Give the webserver a dedicated IP address within the Airports sub-net (typically 10.0.1.X), but outside the DHCP range (typically 10.0.1.1-200) to avoid conflicts.
 +
 +
Tell the Airport to map public port 80 onto the web server's private address on port 80
 +
 +
=Notes on Micrographia Graphics Problems=
 +
 +
2008-03-24
 +
 +
Micrographia has been exhibiting graphic display problems for some time. windows, menus, and icons are displayed chopped up, usually with a diagonal dividing line down the drawing rectangle. The only immediate way to eliminate the problem was to set the displays color depth to 256.
 +
 +
Although we were initially suspicious of a hardware problem, performing a safe boot (boot with shift-key down) eliminates the problem. Further investigations revealed that the problem only occurs when Quartz Extreme is enabled (via System Profiler). Quartz Debug (/Developer/Applications/Performance Tools) can be used to manually enable/disable Quartz Extreme.
 +
 +
One possible work-around is to use the [https://web.archive.org/web/20161021001648/http://hints.macworld.com/article.php?story=20040724190553112 Disable Quartz Extreme Hack].
 +
 +
=Notes on repairing crashed Mediawiki  Search Index=
 +
 +
https://web.archive.org/web/20191203132820/http://www.weblaminar.com/index.php/weblaminar-tools/wlt-howto#Index_Corruption
 +
 +
http://www.mediawiki.org/wiki/Project:Support_desk/Archives/Database/001#.28OUTDATED.29_Searchindex_always_crashing
 +
 +
As root run:
 +
 +
myisamchk -r /usr/local/mysql-5.1.30-osx10.4-powerpc/data/magnetowikidb/mw_searchindex
 +
 +
[[Category:Laboratory]]

Latest revision as of 08:26, 8 October 2024

Computers in the Houpt Lab

king subnet mask: 255.255.252.0 IP Gateway: 128.186.177.1

Computer Location IP address MAC address URL
Principia 3009 128.186.177.169 00:03:93:7c:43:02 (en0) kin3010-mac1-bio.fsu.edu
Voyages laptop DHCP c8:bc:c8:8f:2f:55 (en0), 78:ca:39:ba:71:cd (wifi)
Tesla 3029 128.186.177.166 00:1f:5b:35:2c:2d (en1) kin3029-mac2-bio.fsu.edu
Micrographia 3029A 128.186.177.165 kin3029-mac1.bio.fsu.edu
Vaio 3029
Brother HL-6180DW 3029 128.186.177.168 30:05:5c:86:10
MacMini 3013 00:1f:f3:45:6d:18 (en0), 00:23:6c:7a:23:b3 (wifi)
BRF iMac 115 DHCP

Setup of sftp server for EvoCam

Make sure sftp is selected.

The url for storing the image is (e.g. for an image named "magnet.jpg"):

sftp://www.magnet.neuro.fsu.edu//Library/FTPServer/FTPRoot/WebPages/Webcams/magnet.jpg

Note that two slashes are required between the root url ( sftp://www.magnet.neuro.fsu.edu) and the start of the working directory (//Library/...). EvoCam first connects to the root url, and then attempts to put the image file into the directory. If the directory is not a subdirectory of the user's login directory, then an initial slash is required. Two slashes makes EvoCam parse the directory with an initial slash.

Computer Hints

1. Acid Search from pozytron.com

Add a search channel for PubMed:

http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?DB=pubmed&term=

Add a search channel for Wikipedia:

http://en.wikipedia.org/wiki/Special:Search?search=

Add a search channel for YouTube:

http://www.youtube.com/results?search_query=

2. Add Debug/Develop menu to Safari:

Safari > Preferences... > Advanced > Show Develop menu in menu bar

3. to make Safari pass PDFs to Preview instead of opening itself:

defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES

(also remove Adobe PDF viewer from /Library/Internet Plug-Ins)

(could also try using Safari Enhancer (Discontinued))

4. To change the __MyCompanyName__ in Xcode (from MacOSXGuru.Net):

Open the ProjectBuilder preferences file (~/Library/Preferences/com.apple.ProjectBuilder.plist) or the Xcode one (~/Library/Preferences/com.apple.Xcode.plist) and edit the dictionary associated with the key PBXCustomTemplateMacroDefinitions (create one if it does not exist, as child of the root node), edit or add the key ORGANIZATIONNAME, the associated string value will be used when PB creates new source files.

You could also do it via Terminal.app:

defaults write com.apple.ProjectBuilder PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" = "Behavioral Cybernetics";}'

or

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" = "Behavioral Cybernetics";}'

5. download stuffit expander

6. make iChat autoconnect

defaults write com.apple.ichat AutoAcceptVCInvitations -1

7. Making bootable backups:

sudo rsync -xrlptgoEv --progress --delete / /Volumes/Backup

or just use Carbon Copy Cloner

8. Replace file extension of all files within a directory tree

find ~/MyDirectory -name '*.txt' -exec bash -c 'mv "{}" "`dirname "{}"`/`basename "{}" txt`xls"' \;

The first arg is the parent directory of the data. Find will recurse thru all sub-dirs. This command replaces ".txt" with ".xls"

9. DNS Servers for use outside FSU's Network

To avoid evil ISP DNS servers (comast 68.87.74.162), one can use any of the following DNS servers:

FSU Magnet Lab: 146.201.250.2 (addc1.ad.magnet.fsu.edu)

EasyDNS DNSresovlers: 205.210.42.205, 66.207.199.44 (cache1-2.dnsresolvers.com) DNSResolver shut down in 2013

DO NOT USE FSU's DNS SERVERS: Outside of FSU's network, the DNS servers are in cache-only mode, so only commonly accessed names can be resolved.

10. Epson C82 Blank Ouput Problem and Fix

When an Epson C82 unexpectedly starts outputing blank pages, it is likely that the ink purge tube has become disconnected.

11. Command-Line Downloading/Uploading a file from an offline WebDAV Volume

Sometime it is useful to send/receive files from a WebDAV server, without having to login and mount the Volume in the Finder.

Download "IGNATUS-SMALL.png" to current directory:

curl -O http://www.magnet.neuro.fsu.edu/LabDisk/CEHoupt/IGNATUS-SMALL.png

Upload "test.mov" in current directory to LabDisk:

curl -u user:password -T  test.mov http://www.magnet.neuro.fsu.edu/LabDisk/test.mov

DNS for home website

Install DNSUpdate to make sure the webserver's current IP address is sent to EasyDNS

Give the webserver a dedicated IP address within the Airports sub-net (typically 10.0.1.X), but outside the DHCP range (typically 10.0.1.1-200) to avoid conflicts.

Tell the Airport to map public port 80 onto the web server's private address on port 80

Notes on Micrographia Graphics Problems

2008-03-24

Micrographia has been exhibiting graphic display problems for some time. windows, menus, and icons are displayed chopped up, usually with a diagonal dividing line down the drawing rectangle. The only immediate way to eliminate the problem was to set the displays color depth to 256.

Although we were initially suspicious of a hardware problem, performing a safe boot (boot with shift-key down) eliminates the problem. Further investigations revealed that the problem only occurs when Quartz Extreme is enabled (via System Profiler). Quartz Debug (/Developer/Applications/Performance Tools) can be used to manually enable/disable Quartz Extreme.

One possible work-around is to use the Disable Quartz Extreme Hack.

Notes on repairing crashed Mediawiki Search Index

https://web.archive.org/web/20191203132820/http://www.weblaminar.com/index.php/weblaminar-tools/wlt-howto#Index_Corruption

http://www.mediawiki.org/wiki/Project:Support_desk/Archives/Database/001#.28OUTDATED.29_Searchindex_always_crashing

As root run:

myisamchk -r /usr/local/mysql-5.1.30-osx10.4-powerpc/data/magnetowikidb/mw_searchindex