<$BlogRSDUrl$>

Sunday, April 14, 2024

 

Greg’s Translations of Nakajima Miyuki Song Lyrics

 

This is a test.



Wednesday, December 15, 2021

Two Dropbox accounts on linux–revisited 

OMFG.  Not again.  If you are using SSO with Dropbox on Linux, you need to trick the installer by logging onto Dropbox on the web prior to running dropbox.  Only then will it link the account.

https://www.dropboxforum.com/t5/Dropbox-installs-integrations/Entering-Link-Code-After-Install-Ubuntu-18-04/td-p/321876/page/2


Saturday, June 22, 2019

Upping my code editing game 

clang-format

https://clang.llvm.org/docs/ClangFormat.html

autocomplete & more in emacs

https://github.com/Sarcasm/irony-mode


Friday, June 14, 2019

Making sense of online ML courses 

Check out all these different links to Stanford’s CS229 course. They seem to be different versions of the same course.

http://cs229.stanford.edu/syllabus.html

https://online.stanford.edu/courses/cs229-machine-learning

https://www.coursera.org/learn/machine-learning

http://openclassroom.stanford.edu/MainFolder/CoursePage.php?course=MachineLearning

https://see.stanford.edu/Course/CS229

MIT stuff

http://introtodeeplearning.com/

https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-867-machine-learning-fall-2006/syllabus/

https://ocw.mit.edu/courses/sloan-school-of-management/15-097-prediction-machine-learning-and-statistics-spring-2012/lecture-notes/

MIT course references

https://docs.google.com/spreadsheets/d/1jtdtJHXZPbVSIT2xxF18OkQmwjfZrraAKai9e90mfeU/edit#gid=0


Sunday, June 09, 2019

ITK python wrapping for plastimatch 

Discourse discussion

https://discourse.slicer.org/t/python-wrapping-of-plastimatch/6722/2

ITK module template

https://github.com/InsightSoftwareConsortium/ITKModuleTemplate

https://blog.kitware.com/python-packages-for-itk-modules/

https://itkpythonpackage.readthedocs.io/en/latest/Build_ITK_Module_Python_packages.html

Relevant section of the ITK software guide

https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch3.html#x39-440003.7

https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch9.html#x55-1520009.5

Consider also

https://github.com/pybind/pybind11

https://scikit-build.readthedocs.io/en/latest/


Friday, June 07, 2019

Tensorflow on Shebert 

The hardware on sherbert is a Titan XP, compute capability 6.1

https://developer.nvidia.com/cuda-gpus

Currently we have package: nvidia-driver (390.116-1)

Backports has a package nvidia-driver (418.56-2~bpo9+1).  This could be installed to support CUDA 10.1.

https://packages.debian.org/stretch-backports/nvidia-driver

Debian stable/backport has only package nvidia-cuda-dev (9.1.85-8~bpo9+1)

This is not acceptable, because cuDNN does not support this version

Instead, install NVIDIA CUDA 9.0.176 for compatibility with cuDNN

https://docs.nvidia.com/deploy/cuda-compatibility/

cuDNN 7.6.0

https://docs.nvidia.com/deeplearning/sdk/cudnn-support-matrix/index.html

We therefore want Tensorflow 1.12.x

https://www.tensorflow.org/install/source

Which can be installed from package

pip install tensorflow-gpu==1.12.2

To test, run the following

import tensorflow as tf
print (tf.test.is_built_with_cuda())
print (tf.test.is_gpu_available(False,6.1))

There will be an exception for non-cuda available GPUs, so limit the available device as this:

CUDA_VISIBLE_DEVICES=0 python tftest.py


Thursday, May 02, 2019

Making screencasts 

My good friend CP suggests:

  1. OBS Studio for screen recording
  2. Video Lan Movie Creator
  3. Handbrake for conversions

Wednesday, February 06, 2019

Two Dropbox accounts on linux 

Sad to say, this is what you need to link both a personal and business dropbox account on linux.

https://askubuntu.com/questions/475419/how-to-link-and-use-two-or-more-dropbox-accounts-simultaneously

https://realflash.wordpress.com/2016/02/11/multiple-dropboxes-stops-working-only-one-at-a-time/


Wednesday, January 09, 2019

Fedora packaging 

Just a couple of links to remind me how to do this

https://docs.fedoraproject.org/en-US/packaging-guidelines/

https://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package


Friday, December 28, 2018

TensorFlow on sherbert 

The issues which prevented me from using Open Live Writer have been resolved.  Glory be!

Anyway, building tensorflow using Debian’s CUDA package is a freakin’ nightmare.  Tensorflow uses an exotic build system called Bazel.  Bazel cannot successfully use Debian’s CUDA package because … (dramatic pause) … it creates a shell script that copies the entire contents of /usr/include into its own private directory, file by file, on a single line within the shell script, thereby exceeding the maximum line length allowed by the shell.

This is so mind-blowingly stupid that I can’t bring myself to file a bug report.  Makes me want to use Caffe2.  But I digress.

So, anyway, here’s how tensorflow can be built using Debian-managed NVIDIA driver, although not Debian-managed CUDA.



Wednesday, June 27, 2018

Remediation of systemd issues on malus 

As per my previous post, I have added the services to systemd to allow automatic networking from the new USB connection.  All is partially well.  However, systemd randomly does not properly initialize the appropriate daemons.  Approximately one-third to one-half of the time, networking does not work.  The following algorithm is sufficient to restore networking.

  1. sudo systemctl stop wpa_supplicant
  2. sudo systemctl restart systemd-networkd
  3. sudo systemctl restart systemd-resolved
 At this time I cannot confirm if all steps are necessary.

Monday, June 18, 2018

Installation of malus 

Install of new computer malus mostly fine.  Will link to HW install later.  The USB wireless adapter is a major sticking point however.  Debian (buster/testing) installer does not detect, perhaps due to non-free issues, perhaps because I performed install without network and tried using rescue mode after the fact.  Here are the main points:

  1. Firmware was not installed automatically.  This might work correctly with a full re-install but I am too lazy (tm).
  2. Running lsusb confirms that usb device detected.  Running networkctl does not show wifi link.
  3. Fully open source firmware exists, and that is what I want (firmware-ath9k-htc ADD LINK).  Download pkg to USB and install.  Easy-peasy.  Reboot.  Link found when running networkctl.  However, link not available yet.
  4. Try to get iwconfig for more information.  This requires two packages: libiw30 and wireless-tools.  Manual download and install.  Now iwconfig works fine.
  5. The above was not made easy due to the fact that I could not load packages from the USB stick that I used to install the base OS.  Multiple attempts were unsuccessful due to errors (unsigned packages, obsolete packages, unexpected syntax rules in sources.list, etc.).  I wish I had time to debug and send feedback, but life is short.
  6. When I run NetworkManager, it does nothing.  Why?  Is the package not installed?
  7. Apparently netctl is not installed. Sure.
  8. To be continued.
Next try, two weeks later.

  1. wpa_supplicant is running, and seems to accept my passphrase.  But save_config does not seem to work, because it was not started using a config file that has update_config=1. 
  2. I think systemd is using both NetworkManager and systemd-networkd. Not sure yet how to figure what it thinks it is doing.
  3. Adding /etc/wpa_supplicant/wpa_supplicant.conf and restarting systemd puts my wlan link into "OPERATIONAL: no-carrier" / "SETUP: configuring" status. 
  4. Killing wpa_supplicant and restarting allows configuration to be saved in /etc/wpa_supplicant/wpa_supplicant.conf, albeit with passphrase in plain text. This puts link in "OPERATIONAL: carrier" / "SETUP: configuring" state.  However, doing something like systetmctl restart wpa_supplicant.service does not work well, because two wpa_supplicant processes are run, and the working one is not being used.
  5. After rebooting my computer, I found that the default debian install launches wpa_supplicant.service, and NetworkManager.service.  Let's try to get that way working first.
  6.  I was able to create the wpa_supplicant-interface.conf file, and start the wpa_supplicant@interface service.  AFAIK, the authentication was successful.  However, networkctl still shows "OPERATIONAL n/a", "SETUP unmanaged".  This is because this command is not used with NetworkManager.  It is only used for systemd-networkd.
  7. I can't seem to figure out how to get NetworkManager to use the device.  It might be because dhcp has not yet been run.  The default debian install contains isc-dhcp-client, which has a client named dhclient.  There appears to be no systemd wrapping for this.  Running the client on the command line does not work; DHCPDISCOVER repeats without succeeding.
  8. Let's try systemd-networkd.  I disabled wpa_supplicant and NetworkManager, and enabled wpa_supplicant@interface and systemd-networkd.  Rebooted to be sure.  For some reason, NetworkManager didn't disable.  After stopping it, and randomly stopping and restarting systemd units, I have achieved "OPERATION routable" / "SETUP configured" state!
  9. I can ping my router!
  10. I can ping the outside world (www.oracle.com == 104.96.175.193)!!
  11. The default debian install does not contain nsloookup, but it does have a utility called host.  This utility suggest that I am not resolving hostnames.  Starting systemd-resolved is insufficient for the host program to resolve names. However, using "systemd-resolve --status" does show that my link properly got the right DNS server (good 'ole cdns01.comcast.net).
  12. The final ingredient is to perform "ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf" as recommended.  Now, everything works.
  13. However, it didn't stick on the reboot.  I have two wpa_supplicant running.  
  14. For reasons I don't completely understand, I have a working system with networking.  A few cleanup ops like NetworkManager is still running, but generally good results

New problem on reboot.  "nourveau DRM: failed to create kernel channel"
  1. Rebooted, and still the same problem.  
  2. Comment out mount  of previous SATA drives.  Problem resolved.
  3. Random?  We'll see.
I rebooted the computer, and now it boots. However, resolved now newly not working, just like before, with "Temporary failure in name resolution" error.

  1. This time the error is different, "Host www.oracle.com not found: 2(SERVFAIL)"
  2. Looking at journalctl, they suggest that I should delete /run/wpa_supplicant/interface
  3. Let it be done. Reboot.  All seems OK.
x



Monday, August 14, 2017

High performance computing dispatch 

RAJA

https://github.com/LLNL/RAJA

https://software.llnl.gov/RAJA/index.html

BSD License, Library requires C++11, MSVC support unclear

Kokkos

https://github.com/kokkos/kokkos

BSD License, Library requires C++11, no MSVC support

OpenMP, Pthreads, CUDA 7.5 rec

SYCL

https://www.khronos.org/sycl

Builds on OpenCL

OpenACC

https://www.openacc.org/

OpenMP 4.0

http://www.openmp.org/

OCCA

https://github.com/libocca/occa

Charm++

http://charm.cs.illinois.edu/research/charm

http://charmplusplus.org/

PGAS/GASPI

http://www.gaspi.de/

GASNet

http://gasnet.lbl.gov/

GASNetEX

https://sites.google.com/a/lbl.gov/gasnet-ex-collaboration/general

Obsolete?

Legion/Regent

http://legion.stanford.edu/

http://regent-lang.org/

Halide

http://halide-lang.org/

Thrust

https://github.com/thrust/thrust

https://developer.nvidia.com/thrust

HCC

http://gpuopen.com/compute-product/hcc-heterogeneous-compute-compiler/

https://github.com/RadeonOpenCompute/hcc

Are the above the same?

HPX

https://github.com/STEllAR-GROUP/hpx

HSA/HSAIL

http://www.hsafoundation.com

UPC

http://upc.lbl.gov/

C++ AMP

Written by Microsoft

Subsumed by hcc?

Agency

https://github.com/agency-library/agency

Written by NVIDIA research

References and other stuff

https://www.khronos.org/assets/uploads/developers/library/2016-supercomputing/SC16-compareSYCL-Michael-Wong_Nov16.pdf

https://devblogs.nvidia.com/parallelforall/building-cuda-applications-cmake/

https://github.com/LLNL/blt

https://charm.cs.illinois.edu/charmWorkshop/slides/CharmWorkshop2017_key_thakur.pdf


Tuesday, September 20, 2016

Med Phys lectures 

Excellent video series from ROScribbles

https://www.youtube.com/channel/UC-qqFCR2qMiFO22stTcB0CA


Monday, September 19, 2016

Another interesting link 

https://ourworldindata.org/war-and-peace-after-1945/


Historic SF to check out 

Maybe some day.  Check comments for additional ideas.

https://entertainment.slashdot.org/story/16/09/18/0645233/scifi-tv-series-space-patrol-orion-celebrates-its-50th-anniversary#comments


Thursday, September 01, 2016

QT layouts are infinitely thin 

Always run into this problem and forget the workaround.  Here it is.

http://stackoverflow.com/questions/22597084/qt-designer-how-to-add-widget-to-a-layout-in-the-designer-when-the-layout-appea

Friday, January 22, 2016

NVidia driver on Sherbert 

It has been acting up again.  This time, I think (maybe?) I could resolve by adding the kernel parameter “enable_mtrr_cleanup” in GRUB.

https://wiki.debian.org/NvidiaGraphicsDrivers/Troubleshooting
 

Thursday, January 21, 2016

Phase space download 

Could be very useful.  Generic phase space can be used instead of linac head model.

https://www-nds.iaea.org/phsp/phsp.htmlx


Tuesday, January 19, 2016

Monte Carlo Software 


Thursday, January 14, 2016

Refactoring C++ 

I had some dead time at work between meetings, and I asked myself are there any productivity tools for C++ refactoring that I should look into?  The answer is maybe, but only one seems promising.

https://github.com/tuhdo/semantic-refactor

It is based on symantic-mode, included with emacs

https://www.gnu.org/software/emacs/manual/html_node/semantic/

Can’t wait to try it out!


Tuesday, January 12, 2016

Academic sites 

Sometimes I get spam from ResearchGate.  Unfortunately RG also looks very nice.  But the spam is unacceptable.

The below blog mentions some alternatives.

http://blogs.exeter.ac.uk/openresearchexeter/2013/11/06/74/


Sunday, January 10, 2016

Clementine group by album artist 

My favorite audio player on linux is Clementine. Mostly works flawlessly, but has a curious bug (feature??) that it doesn't respect album artist tags when the album has multiple tracks from different artists.  Don't ask me why.

Seems I always forget how to do this.  But this is a case of "you're holding it wrong."  What Clementine wants is for you to set the compilation tag.  If you do that, everything works great.

http://ubuntuforums.org/showthread.php?t=1996165



Monday, August 31, 2015

Impatiens capensis 


Thursday, August 27, 2015

Paper Gestalt 

Need to remember to present this at the next journal club.

http://vision.ucsd.edu/sites/default/files/gestalt.pdf


Imaging sharing 

I need to create some image galleries for my garden.  Wish me luck!  But how to choose a hosting site?

Especially, I heard there is some issue with sites claiming ownership of uploaded photos.


Code duplication tools 

The following might be useful

Not open source, but free to use

These seem to be less useful


Thursday, August 20, 2015

Another nVidia moment 

I was running Slicer, and suddenly X froze.  Needed to do a hard boot.  (Even /sbin/shutdown was not effective.)

Following the reboot, X was extremely sluggish.  Could not log in through console.  Xorg.0.log was clean, but dmesg had messages such as:

[   65.004180] NVRM: RmInitAdapter failed! (0x26:0x38:1219)
[   65.004198] NVRM: rm_init_adapter failed for device bearing minor number 1
[   65.004241] NVRM: nvidia_frontend_open: minor 1, module->open() failed, error –5

and

Aug 20 11:21:02 sherbert kernel: [  144.948750] NVRM: GPU at PCI:0000:06:00: GPU-4ae70410-b244-63da-efe7-b5356a89babe
Aug 20 11:21:02 sherbert kernel: [  144.948765] NVRM: Xid (PCI:0000:06:00): 13, Graphics Exception: Shader Program Header 11 Error
Aug 20 11:21:02 sherbert kernel: [  144.948772] NVRM: Xid (PCI:0000:06:00): 13, Graphics Exception: Shader Program Header 18 Error
Aug 20 11:21:02 sherbert kernel: [  144.948778] NVRM: Xid (PCI:0000:06:00): 13, Graphics Exception: ESR 0x405840=0xa2040800
Aug 20 11:21:02 sherbert kernel: [  144.948799] NVRM: Xid (PCI:0000:06:00): 13, Graphics Exception: ChID 0003, Class 00009197, Offset 00001f44, Data 00000000
Aug 20 11:29:04 sherbert kernel: [  626.673341] NVRM: Xid (PCI:0000:06:00): 13, Graphics Exception: Shader Program Header 11 Error
Aug 20 11:29:04 sherbert kernel: [  626.673347] NVRM: Xid (PCI:0000:06:00): 13, Graphics Exception: Shader Program Header 18 Error
Aug 20 11:29:04 sherbert kernel: [  626.673351] NVRM: Xid (PCI:0000:06:00): 13, Graphics Exception: ESR 0x405840=0xa2040800
Aug 20 11:29:04 sherbert kernel: [  626.673365] NVRM: Xid (PCI:0000:06:00): 13, Graphics Exception: ChID 0003, Class 00009197, Offset 00001614, Data 00000000

Decided to upgrade my distro and reboot.  Still no love.

Eventually a forum suggested this setting in xorg.conf.

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    Option "BackingStore" "True"
EndSection

It seems to have worked ??


Monday, July 20, 2015

qemu + arm64 

Instructions on how to install debian in a qemu image:

Trial one:

https://gist.github.com/philipz/04a9a165f8ce561f7ddd

Mostly it worked, but I couldn’t copy the initd and linux from qemu to host.  The /boot partition was empty.

Trial two:

This seems to be more sophisticated.  The UEFI allows to boot from the disk image rather than from a separate initd and linux.

https://wiki.ubuntu.com/ARM64/QEMU

See also this:

http://blog.eciton.net/uefi/qemu-aarch64-jessie.html

This didn’t work too well.  It just kind of panics.  Seems to be that Qemu 2.2 is required for UEFI.

Trial three:

Basically a re-try of trial one, but exploring alternate approaches of getting the kernel off the VM. This page explains how to mount a host directory onto the guest

http://www.bennee.com/~alex/blog/2014/05/09/running-linux-in-qemus-aarch64-system-emulation-mode/

The following is a very impressive effort to document.  It explains how to transfer files by network instead of file system, and it explains how to retrieve a working initrd.

https://gmplib.org/~tege/qemu.html

Note however, that the above method did not work for mips, due to network adapter not found.  The below method did seem to allow to continue.

http://www.aurel32.net/info/debian_mips_qemu.php

See also this.

http://www.hellion.org.uk/blog/posts/debian-installer-arm64-dailies/

For reference, the up-to-date daily installer are here:

http://d-i.debian.org/daily-images/arm64/


Friday, June 26, 2015

Basic git cheat sheet 

Tony was nice enough to explain a basic idea how to do git branching for me today. 

  1. Create new branch from master
    1. git checkout –b regression-tests
  2. Hack
  3. Commit changes
    1. git commit –am “Partial implementation of new regression test”
  4. Create a second branch for a different problem
    1. git checkout –b parser-bug
  5. Hack
  6. Commit changes
    1. git commit –am “Fix parser bug”
  7. Merge into master
    1. git checkout master
    2. git merge parser-bug
  8. Delete branch that is no longer needed
    1. git branch –d parser-bug
  9. Push to remote if desired
    1. git push origin master
  10. Make first branch current again
  11. Continue to hack

Friday, April 10, 2015

Interesting map 

http://www.coopercenter.org/demographics/Racial-Dot-Map


Friday, April 03, 2015

Travis-ci 

This looks interesting.  However, requires one to use github.

https://travis-ci.org


Logging 

Might need to invest in a more complex logging solution for MABS, to improve multithreading.

Here is what I learned:

http://www.cs.wustl.edu/~schmidt/ACE.html

http://www.codeproject.com/Articles/288827/g-log-An-efficient-asynchronous-logger-using-Cplus

https://code.google.com/p/google-glog/


Wednesday, April 01, 2015

More Star Trek fan stuff 

For my infinite free time

http://entertainment.slashdot.org/story/15/03/31/230221/were-in-a-golden-age-of-star-trek-webseries-right-now


Wednesday, March 18, 2015

Dataflow Language 

It is becoming increasingly apparent to me that a dataflow programming model will be useful for plastimatch.  Useful characteristics of such a dataflow system would be

A superficial survey suggests that the pickings are pretty slim indeed.  But here are a few options.

 

References


Monday, December 29, 2014

More LDAP Misery–Solved! 

This one cost me about 2 hours of my life.  It felt like 6 hours. 

Various symptoms such as:

$ id gcs6
id: gcs6: no such user

Or

$ ldapsearch –ZZ
ldap_start_tls: Connect error (-11)
   additional info: (unknown error code)

Turns out that the problem was a bug in TLS, which  is exposed when using self-signed certificates.  Doh!  Thanks to user67717 all other users who answered on this and various other forums.

http://serverfault.com/questions/398684/ubuntu-12-04-ldap-ssl-self-signed-cert-not-accepted


Friday, December 12, 2014

SSE enhancements 

Some more information

http://stackoverflow.com/questions/7894633/disabling-msse

And this is interesting as well

http://lists.ros.org/lurker/message/20100323.100115.90abcbeb.pl.html


Plastimatch scripting 

Maybe this is what I need?

http://doc.lubyk.org/dub.html

Cf.

http://purplepwny.com/blog/binding_lua_to_c_think_twice_before_eating_that_glue.html

and link from

http://realmensch.org/blog/fun-lua-bindings

Or else just use AngelScript or something else.


Coding for social justice 

http://www.resilientcoders.org/


Monday, September 22, 2014

Systemd 

Some pleasure reading when I get the time.

http://linux.slashdot.org/comments.pl?sid=5620493&cid=47812373


Friday, September 05, 2014

Fascinating stuff 

Even better than reality TV.  Read the wordpress post by the ex-bf.

http://games.slashdot.org/story/14/09/04/1451217/combating-recent-ugly-incidents-of-misogyny-in-gamer-culture

And this too.

http://www.cracked.com/blog/7-ways-gamergate-debate-has-made-world-worse/


Tuesday, July 08, 2014

Zotero, WebDav, etc 

I wish there was a “knock-dead” answer to this.  Zotero only supports webdav for their sync system.  But the free webdav choices are not so great, even though there are many potential choices

  Free space WebDAV
box.com   limitations
OneDrive 7 GB No
copy.com 15 GB No
dropbox 2 GB No
logmein   ?
4shared.com   limitations
cloudme.com   ?

Hm, I found this page which is more complete?

https://www.zotero.org/support/kb/webdav_services

This is also interesting

http://cloudstoragebuzz.com/dropbox/10-free-cloud-storage-services-more-secure-than-dropbox/


Monday, June 02, 2014

Alt news sites 

http://squte.com/

http://pipedot.org/

http://soylentnews.org/


Tuesday, May 27, 2014

More Linux Blogging Woes 

QTM:  Doesn’t seem to support Blogger

Drivel:  The current version in debian 3.0.3 doesn’t seem to work.  I get an error message: “The server did not return a valid Atom response.”  The newer version 3.0.5 has an installer problem, which is that you cannot install into a directory specified by --prefix.

GScribble: To be evaluated

pyblogger: To be evaluated


Friday, May 16, 2014

Setting up homeshick 

** To set up a new box.

1) Install the homeshick software

git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
2) Download my dotfiles
$HOME/.homesick/repos/homeshick/bin/homeshick clone username/dotfiles
3) Done!
** To update an existing box
1) Run the refresh command
homeshick refresh
** To commit changes
1) Add new files
homeshick track dotfiles new_file
2) Commit changes
homeshick cd dotfiles
git commit -m "Added awesome tmux configuration"
git push origin master
 

Wednesday, May 14, 2014

Cross-Sectional Anatomy Links 

Only the good ones

http://headneckbrainspine.com/

http://www.wesnorman.com/homepage.htm

http://www.anatomyatlases.org/

http://www.mhhe.com/biosci/ap/seeleyap/student/olc2/atlas.html

http://www.med.wayne.edu/diagRadiology/Anatomy_Modules/Page1.html

http://www.med.harvard.edu/AANLIB/home.html

http://www.lumen.luc.edu/lumen/meded/grossanatomy/x_sec/mainx_sec.htm

https://highered.mcgraw-hill.com/sites/0072495855/student_view0/cross_sectional_mini-atlas.html

http://www.dartmouth.edu/~rswenson/Atlas/

Not cross-sectional, but very valuable

https://commons.wikimedia.org/wiki/Special:Contributions/Anatomist90

Runner-up

http://www9.biostr.washington.edu/da.html

http://www.chestx-ray.com/Anatomy/Anatomy.html

http://library.med.utah.edu/WebPath/HISTHTML/ANATOMY/ANATOMY.html


Tuesday, May 06, 2014

Prepaid smart phone 

Tracfone

StraightTalk


Monday, April 21, 2014

ITCR 

http://itcr.nci.nih.gov


Real estate 

The big ones are:

http://zillow.com/

http://trulia.com/

http://redfin.com

There are some interesting thoughts from real estate agents on these sites. 

http://www.inman.com/2014/03/27/what-to-do-when-seller-complains-but-zillow-says-my-house-is-worth-more/

N.b. the above article mentions three other AVM that you can use to compare with zestimate.

http://www.businessweek.com/articles/2013-03-07/why-redfin-zillow-and-trulia-havent-killed-off-real-estate-brokers


Wednesday, March 05, 2014

XFCE terminal size 

What a bunch of maroons.  On XFCE, the default terminal width for Debian X Terminal Emulator is 79 characters.  If you are using xfce4-terminal, you can do this:

http://www.linuxquestions.org/questions/slackware-14/adding-geometry-parameter-to-launcher-not-working-xfce-4-6-2-on-slackware-13-37-a-886411/


Wednesday, February 12, 2014

RVO and more 

Often I wonder about what is the best way to code my C++.  For example, read the first paragraph of the following (excellent) article:

http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/

In that article, Dave Abrahams suggests that C++0x compliance is sufficient for proper return value optimization.  Note also in the comments about the requirement to create a variable in the function definition to guarantee RVO. However the fact remains that many projects are still stuck on VS 2008.  I have not seen any detailed comparison of which optimizations are supported by each compiler version.


Monday, February 10, 2014

Microsoft Visual Studio Express + OpenMP 

The generalities are clear, that you need a proper <omp.h>, vcomp.lib and vcompd.lib from the SDK, and that the SDK version must match your compiler version. 

VS 2005: http://blog.codekills.net/2007/09/20/openmp-and-visual-c++-the-free-way-%28sorta%29/

VS 2008: http://honya8bit.seesaa.net/article/163363596.html

VS 2010: http://www.ssidelnikov.ru/en/2011/05/openmp-visual-studio-2010-express/

VS 2012: OpenMP now supported by express version


Thursday, February 06, 2014

Deepest Sender Fail 

Well, at least so far it is fail.  The web site is down.

Blogilo fail 

Well, I tried Blogilo.  Fail.

After some googling, I was able to retrieve the list of posts.  A bit of kung-fu was required to do this.  See this link:

https://ask.fedoraproject.org/en/question/9909/setting-a-blogger-account/

But in the end, it wasn't enough.  The post titles are retrieved but the contents are blank.  If I try to make a new post, when I hit "submit", it tells me it that the previous post, which is blank, was submitted (?!).

Wednesday, February 05, 2014

OMFG, Blogger sux 

Apparently all Blogger designs are fixed-width resolution.  It's like we're trapped in 1991.

The below will help.  It really works great.  Thanks Marco!!!

http://thewebthought.blogspot.com/2011/09/blogger-make-your-blog-fluid-fit-any.html

Life after Scribefire 

This sucks.  I used Scribefire for a long time because it is cross-platform, and I can run it directly from Firefox / Iceweasel.  But now it is broke without hope of repair.  RIP.

Windows
- Apparently "Windows Live Writer" is the way to go.  Now it's called "Windows Essentials".  You have to install the "Writer" tool.  I don't know what the other tools do.  Unfortunately WLW doesn’t have a simple way to add pre-formatted text.  The options seem to be to use courier font, use a code syntax highlighter plugin, or edit HTML.  Sigh.

Linux
- Stick with scribefire?
- Blogilo?
- Deepest sender?

Tuesday, November 26, 2013

Post-purchase install of sherbert 

Just got the new dual hepta-core computer from Microway.  Doing the post-install jig right now, taking notes.

Tuesday, September 10, 2013

Credit card benefits 

 I called the support line for my credit card, to ask about rental car insurance.  Here is where they directed me:

https://www.benefitinformationcenter.com

Wednesday, July 17, 2013

Best of freecode, Jul 1-16 2013 

moritori
https://thomas.apestaart.org/thomas/trac/wiki/DAD/Rip
Advanced CD ripper for linux

xplab
http://www.pattern-lab.de/index.html
OCR editing and training program

Saturday, April 27, 2013

Source metrics 

There is an interesting ask slashdot yesterday.

http://ask.slashdot.org/story/13/04/26/2115256/ask-slashdot-how-do-you-assess-the-status-of-an-open-source-project

One of the replies mentioned a tool called "Sonar Source" which can measure a metric called "technical debt".

http://www.sonarsource.org/


Tuesday, February 05, 2013

Six strikes 

Here is what Anonymous Coward has to say about it.

http://yro.slashdot.org/comments.pl?sid=3436613&cid=42800823


Tuesday, January 22, 2013

Cool D&D blog 

Great blog.  I spent at least an hour clicking through posts, need a few more hours to digest its inner workings...

http://dndwithpornstars.blogspot.com/

Check out the sidelinks too, several other creative bloggers there.

Friday, December 21, 2012

Friggin linux audio 

Yes, I should start swearing instead of saying "friggin"  Debian updated my sound stack.  Removed linux-base-audio.  This caused my perfectly good OSS4 stack to stop working.  No sound.  Sigh.  Re-install ALSA.  Sound returns, but it is too soft.  alsamixer gives error:

$ alsamixer
ALSA lib ctl_oss.c:404:(_snd_ctl_oss_open) Cannot get mixer info for device /dev/mixer
cannot open mixer: No such device or address

Giorgos to the rescue:

http://gkomninos.com/tag/linux-tips/

?!!  WTF???  It works!



Friday, November 23, 2012

Working on goblin camp fork 

Some cheat-sheet for working on the goblin camp patch.  Maybe someday this will seem more natural.

https://confluence.atlassian.com/display/BITBUCKET/bitbucket+101

Downloading a patched GC:

hg clone https://gregsharp@bitbucket.org/gregsharp/goblin-camp



Saturday, July 14, 2012

Clang-analyzer 

Unfortunately, it doesn't have a debian package.  But it gets good review from http://daniel.haxx.se/blog/2012/07/12/three-static-code-analyzers-compared/

http://clang-analyzer.llvm.org/


Saturday, June 23, 2012

Female-fronted bands 

Ran into this while idly browsing last.fm.  An incredible, exhaustive list.
http://www.last.fm/user/music_man_76/journal/2012/02/22/5cbnpc_free_downloads%3A_female_vocalistsfemale_fronted_bands

Sunday, June 17, 2012

Linux audio - the nuclear option: OSS4 

Well here we go again.  Pulse keeps dropping out.  Let's try install OSS4.  I used the method described by kedaha.
http://forums.debian.net/viewtopic.php?f=20&t=70166&start=15#p394523
I was surprised that /etc/asound.conf doesn't exist.  Anyway, I deleted both alsa-base/alsa-utils, and all the pulseaudio things I could find.  I didn't delete libpulse0, because otherwise too many applications get auto-deleted.

Summary, it is great.  Man, why did I put up with this nonsense which is pulseaudio so long?  Is ALSA, not pulse, really to blame?  I don't care.  Give me OSS4!

Additional refs:
http://forums.debian.net/viewtopic.php?f=16&t=52919
http://ubuntuforums.org/showthread.php?t=1217259
http://www.opensound.com/wiki/index.php/Configuring_Applications_for_OSSv4

Sunday, June 03, 2012

Linux audio glitches *yet* *again* 

I did an update of my debian install on Jun 02, 2012, and now clementine glitches when changing tracks.  Ugh.  Yet again, I blame pulse.

(1) Ubuntu recommends turning off PulseAudio timer scheduling.  I did a "pulseaudio --kill", which seems to give SIGTERM.  This still glitches.  So I try a reboot as suggested. Still no relief. (Ref: https://wiki.ubuntu.com/DebuggingSoundProblems)

(2) Check make sure the problem isn't with clementine.  Amarok is good for reproducing pulse problems.  (It gives me a strange error message - see this page).  But anyway it has a smaller pop when changing tracks, and occasional sound dropout.  mpg123 plays without any audible glitches or dropouts.  banshee also plays without glitches between songs, but has a pop when advancing songs.

(3) Try changing the snd-hda-intel position_fix and reboot.  position_fix=1 seems to have no effect, while position_fix=2 worsens the problem (even mpg123 sounds bad).


Sunday, April 29, 2012

Online board games 

Java game library and hosting
Javascript engines


Getting hurd up & running 

It seems (?) to be easier using qemu than virtualbox. 

Sunday, April 08, 2012

More linux/free games 

http://freegamer.blogspot.com/
http://www.playdeb.net



Thursday, April 05, 2012

Re-installing Gelato (take 2) 

Well, it seems that, in addition to extra hoops for installing onto RAID, the nouveau kernel module crashes when trying to boot.  Since (unlike Ubuntu or Mint), the debian installer works with RAID, I downgraded to debian stable ("squeeze").

  1. Install debian without the desktop.  Reboot.
  2. Read up on nvidia drivers.  Decide to try the "debian way".  (http://wiki.debian.org/NvidiaGraphicsDrivers)
  3. Nvidia proprietary drivers are updated in backports repository.  Add it to /etc/apt/sources.list
    deb http://backports.debian.org/debian-backports squeeze-backports main
  4. Install desktop after the fact (http://wiki.debian.org/Gnome)
    apt-get install aptitude tasksel
    tasksel install gnome-desktop --new-install
  5. Remove nouveau (http://forums.debian.net/viewtopic.php?f=6&t=69888 | http://forums.debian.net/viewtopic.php?f=30&t=54330)
    echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
    apt-get purge --remove xserver-xorg-video-nouveau
  6. Use aptitude, and remove every package with the word "nouveau" in it.  However, nouveau.ko is in the linux kernel package, so I can't actually remove it.
  7. Continue, re-install nvidia drivers
    apt-get install --reinstall nvidia-glx
  8. This is a key step (see http://linux.koolsolutions.com/2009/10/11/howto-blacklisting-kernel-module-from-auto-loading-in-debian/)
    depmod -a
    update-initramfs -u -k `uname -r` -v
  9. Reboot.  Success!

Monday, April 02, 2012

Re-installing gelato 

  1. Backup home directory.  Backup etc.  Unplug scratch drives
  2. Boot live cd
  3. Install mdadm and lvm2
  4. Re-assemble the raid partitions
    mdadm --assemble --scan
  5. Run linux mint installer.  The /dev/mdXX partitions are recognised and usable for install.  Re-format existing partitions (except /home). Choose /dev/md1 (/boot partition) as the partition for the boot loader.
  6. I got an error in the install.  Maybe benign?  It says:
    An error occurred while migrating data.  More details may be found in /var/log/syslog.  The installation will continue, but some or all of the documents and settings you requested may not have been transferred to the installed system.
    The error is that it couldn't mount /dev/sdb5 (which belongs to /dev/md5), because it doesn't know the file system "linux raid member".  Click OK to continue.
  7. Choose "continue testing" at the end of the install.
  8. Now we have to set up the newly installed system to recognise the raid.  This is exactly as described in part 5 of this document:
    http://www.howtoforge.com/install-ubuntu-with-software-raid-10
    With the modificaiton of additional required partitions (/usr, /var, etc.), and installing lvm2 as well as mdadm.
  9. Reboot.
  10. Well, the reboot didn't work, because I neglected to update grub.  Here is the error that I got:
    GRUB Loading stage1.5
    GRUB loading, please wait...
    Error 15
  11. Boot off of the live CD again, re-install mdadm & lvm2, re-scan raid, re-mount volumes, enter chroot.
    apt-get install mdadm lvm2
    mdadm --assemble --scan
    mkdir /myraid

    mount /dev/md5 /myraid
    mount /dev/md1 /myraid/boot
    mount /dev/md6 /myraid/usr
    mount /dev/md7 /myraid/var
    mount /dev/md8 /myraid/tmp
    mount --bind /dev /myraid/dev
    mount -t devpts devpts /myraid/dev/pts
    mount -t proc proc /myraid/proc
    mount -t sysfs sysfs /myraid/sys
    chroot /myraid
  12. Follow instructions on this page:
    http://iiordanov.blogspot.com/2011/07/how-to-install-linux-ubuntu-debian-etc.html
    Start at step (10). It goes smoothly.  However, I notice that my swap is not RAID.  I wonder if this is on purpose?  So I left as two swap partitions in the fstab, to be resolved later.
  13. Do step (11), note that I did not have to modify /etc/mdadm/mdadm.conf, since it already had the correct entries.
  14. Do step (12).  This failed.  Note 1: the file /boot/grub/grub.cfg did not exist.  Note 2: grub-install was done to the raw disk, not the raid disk, such as:
    grub-install --recheck --modules="raid" /dev/sda
  15. Reboot.
  16. Now I got a grub menu, which listed a few options including "/dev/md1", "/dev/sda1", and "/dev/sdb1".  Choosting the first option causes a black screen of death.  Choosing "/dev/sda1" yields similar results.  It turns out that something is happening, but nothing is displayed.  Hitting e.g. arrow keys or ESC causes the messages to display.  The boot seems to hang on the following message:
    ** Starting CUPS printer/spooler server **    [ OK ]
  17. Boot off of the live CD again, re-install mdadm & lvm2, re-scan raid, re-mount volumes, enter chroot.
  18. Nothing interesting to see.  Here is boot.log:
    fsck from util-linux 2.19.1^M
    fsck from util-linux 2.19.1^M
    fsck from util-linux 2.19.1^M
    fsck from util-linux 2.19.1^M
    fsck from util-linux 2.19.1^M
    fsck from util-linux 2.19.1^M
    /dev/md5: clean, 9326/305824 files, 123307/1222912 blocks^M
    /dev/md8: clean, 12/305824 files, 54365/1222912 blocks^M
    /dev/md7: clean, 8815/305824 files, 130828/1222912 blocks^M
    /dev/md6: clean, 163285/1221600 files, 772988/4885744 blocks^M
    Reiserfs super block in block 16 on 0x90a of format 3.6 with standard journal^M
    Blocks (total/free): 110268128/33138842 by 4096 bytes^M
    Filesystem is clean^M
    /dev/md1: clean, 246/124928 files, 56798/497856 blocks^M
     * Starting mDNS/DNS-SD daemon^[[154G[ OK ]^M
     * Starting network connection manager^[[154G[ OK ]^M
     * Starting CUPS printing spooler/server^[[154G[ OK ]^M
     * Starting emergency keypress handling^[[154G[ OK ]^M
     * Stopping emergency keypress handling^[[154G[ OK ]^M
     * Starting System V runlevel compatibility^[[154G[ OK ]^M
     * Starting save system clock to hardware clock^[[154G[ OK ]^M
     * Starting save sound card(s') mixer state(s)^[[154G[ OK ]^M
     * Starting eCryptfs^[[154G[ OK ]^M
    Here is the end of kern.log:
    Apr  2 20:28:54 gelato kernel: [   18.535691] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
    Apr  2 20:28:54 gelato kernel: [   18.536853] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Apr  2 20:29:04 gelato kernel: [   28.840999] eth0: no IPv6 routers present
    Apr  2 20:31:14 gelato kernel: Kernel logging (proc) stopped.
    Here is the end of syslog:
    Apr  2 20:29:04 gelato avahi: contact your administrator and convince him to use a different DNS domain,
    Apr  2 20:29:04 gelato avahi: since .local should be used exclusively for Zeroconf technology.
    Apr  2 20:29:04 gelato avahi: For more information, see http://avahi.org/wiki/AvahiAndUnicastDotLocal
    Apr  2 20:29:04 gelato kernel: [   28.840999] eth0: no IPv6 routers present
    Apr  2 20:29:12 gelato ntpdate[1303]: adjust time server 91.189.94.4 offset 0.213605 sec
    Apr  2 20:31:14 gelato kernel: Kernel logging (proc) stopped.
    Apr  2 20:31:14 gelato rsyslogd: [origin software="rsyslogd" swVersion="5.8.1" x-pid="1172" x-info="http://www.rsyslog.com"] exiting on signal 15.

Wednesday, March 14, 2012

Reproducing Kernel Hilbert Spaces 

From Zero to Reproducing Kernel Hilbert Spaces in Twelve Pages or Less" by Hal Daumé III (Unpublished, 2004)
http://hal3.name/docs/daume04rkhs.pdf
Not directly related, but also I'm interested in Wolfe Dual:
http://www.cs.rochester.edu/~gildea/2008_Springwolfe.pdf
http://homepages.rpi.edu/~bennek/class/mmld/

Sunday, March 11, 2012

Github on wormwood 

OK, two things to know.
  1. Need to set up ssh for multiple keys.  See e.g.
    http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys
  2. Need to do this:
    $ ssh-add ~/.ssh/id_rsa_github
  3. On gelato, I need something like this:
    $ exec ssh_agent bash<br />$ ssh-add ~/.ssh/id_rsa_github

Bye.


Friday, March 09, 2012

Using slicer on SPL computers 

When you try to run slicer remotely on the SPL computer, you get something like this:

$ ./Slicer-build/Slicer
Number of registered modules: 94
ERROR: In /home/gcs6/build/slicer-rt/SlicerRt-build/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 404
vtkXOpenGLRenderWindow (0x333a200): Could not find a decent visual

ERROR: In /home/gcs6/build/slicer-rt/SlicerRt-build/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 404
vtkXOpenGLRenderWindow (0x333a200): Could not find a decent visual

X Error: BadValue (integer parameter out of range for operation) 2
  Extension:    135 (Uknown extension)
  Minor opcode: 3 (Unknown request)
  Resource id:  0x21
ERROR: In /home/gcs6/build/slicer-rt/SlicerRt-build/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 629
vtkXOpenGLRenderWindow (0x333a200): Cannot create GLX context.  Aborting.

error: [/workspace/gcs6/build/slicer-rt/SlicerRt-build/Slicer-build/bin/./SlicerQT-real] exit abnormally - Report the problem.

It seems you can workaround by doing this:

$ setenv LIBGL_ALWAYS_INDIRECT y


Saturday, February 18, 2012

Policy for ITK 

Just to remind myself, set policy CMP0012 to avoid scary ITK include warning

Alternative platform testing 

Excellent resource for testing software on different platforms



Wednesday, January 18, 2012

Online course links 

X-ray, CT

MRI

Multi-modal
Anatomy guides (well, not for the course...)
Everything

 


Saturday, December 24, 2011

GoDaddy & SOPA 

GoDaddy is foolish for supporting SOPA.  Gotta change to a new provider, e.g. http://www.hostgator.com/

Tuesday, November 29, 2011

Insert Credit 

Wow.  Great blog.

http://insertcredit.com/

Especially:

http://insertcredit.com/2011/09/22/who-killed-videogames-a-ghost-story/

Monday, November 21, 2011

LDAP on debian 

Well, here is the starting point
http://research.partners.org/wiki/index.php/Active_Directory_on_Unix

But that doesn't quite work.  What is the difference between using ldap:// and ldaps://?  My opensuse box uses ldaps://, which seems to work ok.  But the debian instructions say use ldap://.

Debian has a very useful resource here.

http://www.debian-administration.org/articles/585

If I do "ldapsearch -x", this works using ldap://, but I get an error message "...a successful bind must be completed on the connection."  Possibly this is answered here:

http://forums.techarena.in/active-directory/662084-2.htm

See also this:

http://www.openldap.org/doc/admin24/appendix-common-errors.html

Eventually I learned the reason I get the error about "...a successful bind must be completed on the connection." is that I forgot to use a user name.  For example, the following works:

ldapsearch -v -D 'cn=myuser,cn=users,dc=example,dc=org' -H ldap://ldap.example.org -b dc=example,dc=org -W -x

This even works without "-x" option, which is good news.  But I still get the following error:

$ id myuser
id: myuser: No such user

Aha!  I got it.  I had mistakenly installed "nslcd, libnss-ldap, libpam-ldapd" instead of "nslcd, libnss-ldapd, libpam-ldapd"

How to restrict access to which LDAP users can log in?  See, for example:

http://linux.web.cern.ch/linux/docs/account-mgmt.shtml

The secret was to change the user names into the "filter shadow" line, like this:

filter shadow (!(cn=usr1)(cn=usr2))

Another possible problem is incorrect TLS certificate.  The web page which describes this cannot be found by web search.  Use inside knowledge to find the hidden URL on intranet.

Thursday, November 10, 2011

Pulse audio glitches again 

Maybe it's not pulse, but usually it is.  Time to debug the problem

$ cat /proc/asound/cards
  0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfe8f4000 irq 16
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfe9ec000 irq 44

Not sure what it really means.  Phonon can be configured to use either of them, but they both skip.  My device is some kind of "on motherboard" thing.

$ lspci -v

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
        Subsystem: Dell Device 02e2
        Flags: bus master, slow devsel, latency 64, IRQ 16
        Memory at fe8f4000 (64-bit, non-prefetchable) [size=16K]
        Capabilities:
        Kernel driver in use: snd_hda_intel

01:00.1 Audio device: ATI Technologies Inc RV710/730
        Subsystem: PC Partner Limited R700 Audio Device [Radeon HD 4000 Series]
        Flags: bus master, fast devsel, latency 0, IRQ 44
        Memory at fe9ec000 (64-bit, non-prefetchable) [size=16K]
        Capabilities:
        Kernel driver in use: snd_hda_intel

Then, I read a web page that suggests deleting the ~/.pulse directory, and so I did.  And it fixed it!  But only until the next reboot.

    Tuesday, October 11, 2011

    SBRT references 

    These came in the medphys listserv

    http://www.astro.org/PublicPolicy/WhitePapersAndOtherDocuments/documents/SVReqsUpdate6211.pdf

    http://www.astro.org/PublicPolicy/WhitePapersAndOtherDocuments/documents/SVFAQs0210.pdf

    http://www.astro.org/PublicPolicy/WhitePapersAndOtherDocuments/documents/SBRTMP.pdf

    Saturday, October 08, 2011

    Haiku stuff 

    Virtual box settings

    http://www.haiku-os.org/documents/user/haiku_under_emulation

    https://www.haiku-os.org/guides/virtualizing/virtualbox

    This page is powered by Blogger. Isn't yours?