⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blog — gary bishop.htm

📁 卡尔曼滤波文章
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0035)http://wwwx.cs.unc.edu/~gb/wp/blog/ -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD 
profile=http://gmpg.org/xfn/11><TITLE>Blog — Gary Bishop</TITLE>
<META content=noindex,follow name=robots>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR><!-- leave this for stats --><LINK media=screen 
href="Blog — Gary Bishop.files/style.css" type=text/css rel=stylesheet><LINK 
title="Gary Bishop RSS Feed" href="http://wwwx.cs.unc.edu/~gb/wp/feed/" 
type=application/rss+xml rel=alternate><LINK 
href="http://wwwx.cs.unc.edu/~gb/wp/xmlrpc.php" rel=pingback><LINK title=RSD 
href="http://wwwx.cs.unc.edu/~gb/wp/xmlrpc.php?rsd" type=application/rsd+xml 
rel=EditURI><LINK 
href="http://wwwx.cs.unc.edu/~gb/wp/wp-includes/wlwmanifest.xml" 
type=application/wlwmanifest+xml rel=wlwmanifest>
<META content="WordPress 2.6.1" name=generator><LINK media=screen 
href="Blog — Gary Bishop.files/dd-formmailer.css" type=text/css 
rel=stylesheet></HEAD>
<BODY>
<DIV id=header>
<DIV id=logo><A title="Gary Bishop" href="http://wwwx.cs.unc.edu/~gb/wp">Gary 
Bishop</A> </DIV></DIV>
<DIV id=headerbar>
<DIV id=logobar>
<P id=tagline>Geeks making the world a <EM>bit</EM> better.</P></DIV></DIV>
<DIV id=container>
<DIV id=content_box>
<DIV id=content>
<H2><A title="Flash 10 ignores files served with Content-Disposition attachment" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/10/21/flash-10-ignores-files-served-with-content-disposition-attachment/" 
rel=bookmark>Flash 10 ignores files served with Content-Disposition 
attachment</A></H2>
<P class=post_date>October 21st, 2008 — <A title="View all posts in Links" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/links/" 
rel="category tag">Links</A>, <A title="View all posts in Programming" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/programming/" 
rel="category tag">Programming</A></P>
<DIV class=entry>
<P>I got a report that <A href="http://tarheelreader.org/">Tar Heel Reader</A> 
wasn’t speaking on some newer computers. Thankfully it also didn’t work on my 
Vista VM. I painfully tracked down the problem to the <CODE>Content-Disposition: 
attachment</CODE> header I had added to make debugging easier. After figuring 
out the problem I found this <A 
href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html#head32">Adobe 
info describing the change</A>.</P></DIV>
<P class=post_meta><SPAN class=add_comment><A 
title="Comment on Flash 10 ignores files served with Content-Disposition attachment" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/10/21/flash-10-ignores-files-served-with-content-disposition-attachment/#comments">1 
Comment</A></SPAN></P>
<H2><A title="AFS disk space on campus servers" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/08/25/afs-disk-space-on-campus-servers/" 
rel=bookmark>AFS disk space on campus servers</A></H2>
<P class=post_date>August 25th, 2008 — <A title="View all posts in Random" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/random/" 
rel="category tag">Random</A></P>
<DIV class=entry>
<P>/afs/isis/depts/compsci/research/assist/</P></DIV>
<P class=post_meta><SPAN class=add_comment><A 
title="Comment on AFS disk space on campus servers" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/08/25/afs-disk-space-on-campus-servers/#respond">No 
Comments</A></SPAN></P>
<H2><A 
title="Making pyibmtts work when ibmtts is installed in a non-standard place" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/08/14/making-pyibmtts-work-when-ibmtts-is-installed-in-a-non-standard-place/" 
rel=bookmark>Making pyibmtts work when ibmtts is installed in a non-standard 
place</A></H2>
<P class=post_date>August 14th, 2008 — <A title="View all posts in Programming" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/programming/" 
rel="category tag">Programming</A></P>
<DIV class=entry>
<P>I needed to get pyibmtts working for the new Tar Heel Reader installation 
over at ibiblio.org. I couldn’t install ibmtts in the usual /opt place over 
there because I don’t have root access (and only I’m authorized to use it 
anyway). To make it work, I installed ibmtts in $HOME/opt and $HOME/var. And I 
hacked the paths in $HOME/var/IBM/ibmtts/cfg/eci.ini to point to the libraries. 
I modified Pete’s setup.py for pyibmtts to add $HOME to the search paths and one 
tricky bit. To help it find the shared libraries that are part of ibmtts I set 
the LD_RUN_PATH environment variable to point to the ibmtts lib folder. I 
understand from <A href="http://www.eyrie.org/~eagle/notes/rpath.html">this 
page</A> that setting this environment variable at compile time causes the 
search path to be encoded into the shared library. </P>
<P>Here is the area of setup.py that I modified:</P><PRE>LIBS = ['ibmeci']

HOME = os.environ['HOME']

os.environ['LD_RUN_PATH'] = os.path.join(HOME, 'opt/IBM/ibmtts/lib')

if sys.platform.startswith('linux'):
  INC_DIRS = [os.path.join('../'),
              os.path.join(HOME, 'opt/IBM/ibmtts', 'inc'),
              os.path.join(HOME, 'opt/IBM/ibmtts-devel', 'inc')]
  LIB_DIRS = [os.path.join('../'),
              os.path.join(HOME, 'opt/IBM/ibmtts', 'lib'),
              os.path.join(HOME, 'opt/IBM/ibmtts-devel', 'lib')]
elif sys.platform == 'win32':
</PRE>
<P>I also had to link eci.ini into the folder with my python code in order to 
properly find it. I bet updateECI is supposed to fix that but I couldn’t figure 
out how to run it.</P></DIV>
<P class=post_meta><SPAN class=add_comment><A 
title="Comment on Making pyibmtts work when ibmtts is installed in a non-standard place" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/08/14/making-pyibmtts-work-when-ibmtts-is-installed-in-a-non-standard-place/#comments">1 
Comment</A></SPAN></P>
<H2><A title="How far should I drive to save on gas?" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/07/30/how-far-should-i-drive-to-save-on-gas/" 
rel=bookmark>How far should I drive to save on gas?</A></H2>
<P class=post_date>July 30th, 2008 — <A title="View all posts in Random" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/random/" 
rel="category tag">Random</A></P>
<DIV class=entry>
<P>I’ve thought about this several times (that’s how geeky I am, when I can’t 
work, I think about things like this). Thinking about it the other day, I 
suddenly hit on a simple approximation made possible by the current prices.</P>
<P>The fuel tank of my truck holds 25 gallons. One cent per gallon would save me 
25 cents. How far can I drive on 25 cents of gas? At $4/gallon, 25 cents buys 
one sixteenth of a gallon. If my vehicle got 16 miles per gallon, I could drive 
1 mile on 25 cents. My truck actually gets about 18 miles per gallon and gas is 
not quite $4/gallon right now, but I’m just approximating.</P>
<P>So, if I drive 1 mile to save 1 penny per gallon I wasted my time (not to 
mention the wear on tires and such). My son’s car only requires about half as 
much gas to fill up but he can go twice as far on a gallon of gas so the result 
is the same. 1 mile, 1 penny.</P>
<P>The bottom line is you can’t drive very far out of your way to save on 
gas…</P></DIV>
<P class=post_meta><SPAN class=add_comment><A 
title="Comment on How far should I drive to save on gas?" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/07/30/how-far-should-i-drive-to-save-on-gas/#comments">1 
Comment</A></SPAN></P>
<H2><A title="Outfox: speech, sound, and more for Firefox" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/07/27/outfox-speech-sound-and-more-for-firefox/" 
rel=bookmark>Outfox: speech, sound, and more for Firefox</A></H2>
<P class=post_date>July 27th, 2008 — <A 
title="View all posts in Enabling Technology" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/et/" 
rel="category tag">Enabling Technology</A>, <A title="View all posts in Mac" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/mac/" 
rel="category tag">Mac</A>, <A title="View all posts in Programming" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/programming/" 
rel="category tag">Programming</A>, <A title="View all posts in Ubuntu" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/ubuntu/" 
rel="category tag">Ubuntu</A>, <A title="View all posts in Windows" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/windows/" 
rel="category tag">Windows</A></P>
<DIV class=entry>
<H3>Quick net</H3>
<P><A href="https://addons.mozilla.org/en-US/firefox/addon/8283">Outfox</A> is a 
<A href="http://www.mozilla.com/en-US/firefox/">Firefox</A> extension that 
allows in-page JavaScript to access local platform services and devices such as 
text-to-speech synthesis, sound playback and game controllers. You can read all 
about it at its <A href="http://code.google.com/p/outfox/">Google Code page</A> 
and discuss it in its <A 
href="http://groups.google.com/group/outfox-discuss/topics">Google 
Group</A>.</P>
<H3>Motivation</H3>
<P>In our continuing pursuit of the best platform for delivering accessible 
games and tools to people with disabilities we are now focusing on Firefox to 
see what we can accomplish from inside the browser. Up until recently, we’ve 
used Python. Its a great language and we’ve delivered thousands of copies of our 
apps to people all over the world but I kept thinking we could do better. For 
example, the ability to author games in <A 
href="http://wwwx.cs.unc.edu/~gb/wp/research/hark-the-sound/">Hark the Sound</A> 
has enabled teachers to do things we never imagined but sharing games is so 
complicated that is almost never happens. In contrast, the exciting response 
we’ve seen to <A href="http://gb-cs.cs.unc.edu/TarHeelReader">Tar Heel 
Reader</A> with 419 books in 3 languages after just 10 weeks online has 
convinced me that browser-based apps can have a big place in our work.</P>
<P>Firefox is a nearly perfect platform; it runs everywhere we want to be and it 
is easy to program but it has a few deficiencies that limit what we can do. Many 
of our users are blind or visually impaired. For these kids, speech and sound 
are a must. Speech and sound are important for kids who can see as well. For 
example, many beginning readers benefit from having text read to them. 
Unfortunately, sound in the browser gets little respect. </P>
<P>We used <A 
href="http://www.schillmania.com/projects/soundmanager2/">SoundManager2</A> with 
a web-based text-to-speech server in Tar Heel Reader. It works well enough but 
the delays associated with fetching speech as mp3s over the web and the 
requirement to be online to get speech look bad in comparison locally hosted 
program.</P>
<H3>Outfox</H3>
<P>Outfox provides a simple programming interface to JavaScript running in the 
browser so it can access services on the computer that aren’t normally 
available. In this first release, we enable access to speech and multi-channel 
sound with callbacks into JavaScript at the beginning and ends of words and 
sounds. Soon we expect to extend it to include joysticks, DDR pads, and such. 
With access to these capabilities I believe we can implement browser-based 
versions of our most popular games such as <A 
href="http://wwwx.cs.unc.edu/~gb/wp/research/hark-the-sound/">Hark the 
Sound</A>, Sonic Zoom, and Descent into Madness. If things work as I hope, 
teachers will have access to hundreds of curriculum-related games and a simple 
way to write and share their own. I hope we’ll get cross-over between the 
amazing community behind Tar Heel Reader and the community of teachers of the 
visually impaired and orientation and mobility teachers who use our games for 
blind children. When we start seeing books about games and games about books, 
we’ll know that synergy is taking hold.</P>
<P>I’m excited about offering Firefox with speech and sound to my students to 
see what amazing things they’ll think of doing. How about self-voicing web pages 
and maps? How about books with interactive, switch-accessible games 
embedded?</P>
<P>This initial version is likely buggy on at least one of the three operating 
systems we’re supporting. Please give it a <A 
href="http://www.cs.unc.edu/Research/assist/outfox">try</A>. Or better yet, 
download the source, and help us make it better. </P>
<P>Also, help us get it out of the sandbox at Mozilla Addons by trying and 
commenting on it.</P></DIV>
<P class=post_meta><SPAN class=add_comment><A 
title="Comment on Outfox: speech, sound, and more for Firefox" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/07/27/outfox-speech-sound-and-more-for-firefox/#comments">2 
Comments</A></SPAN></P>
<H2><A title="Trying out SVN" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/07/03/trying-out-svn/" 
rel=bookmark>Trying out SVN</A></H2>
<P class=post_date>July 3rd, 2008 — <A title="View all posts in Random" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/random/" 
rel="category tag">Random</A></P>
<DIV class=entry>
<P>I really ought to use source code control. I know it. But my laziness 
combined with my poor memory, makes it hard.</P>
<P>I’m trying out subversion. I’ll make some notes here to help me remember.</P>
<P>To create a new project myproject in my repository I need to:</P><PRE>cd ~/Desktop
mkdir myproject
cd myproject
mkdir trunk tags branches
cp -r path_to_myproject_files/* trunk/
clean up any junk files
svn import ~/Desktop/myproject svn+ssh://gb@cvs.cs.unc.edu/cvs/user/gb/svn/myproject -m "initial import"
cd place_to_work
mv path_to_myproject_files out of the way if necessary
svn checkout svn+ssh://gb@cvs.cs.unc.edu/cvs/user/gb/svn/myproject/trunk myproject
</PRE>
<P>Then in that working directory the commands to know are: <CODE>svn 
add</CODE>, <CODE>svn update</CODE>, and <CODE>svn commit</CODE>.</P></DIV>
<P class=post_meta><SPAN class=add_comment><A title="Comment on Trying out SVN" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/07/03/trying-out-svn/#comments">4 
Comments</A></SPAN></P>
<H2><A title="atool enables DDR pad or webcam input" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/2008/06/12/atool-enables-ddr-pad-or-webcam-input/" 
rel=bookmark>atool enables DDR pad or webcam input</A></H2>
<P class=post_date>June 12th, 2008 — <A title="View all posts in Blind" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/et/blind/" 
rel="category tag">Blind</A>, <A title="View all posts in Enabling Technology" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/et/" 
rel="category tag">Enabling Technology</A>, <A 
title="View all posts in Motor impaired" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/et/motor-impaired/" 
rel="category tag">Motor impaired</A>, <A title="View all posts in Programming" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/programming/" 
rel="category tag">Programming</A>, <A title="View all posts in Random" 
href="http://wwwx.cs.unc.edu/~gb/wp/blog/category/random/" 
rel="category tag">Random</A></P>
<DIV class=entry>
<P>Atool is an extension to our previous <A 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -