<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-28731952</id><updated>2012-02-16T17:25:32.315+08:00</updated><category term='LATEX'/><category term='FIREFOX'/><category term='LINUX'/><category term='LED'/><category term='MEEP'/><title type='text'>路在脚下</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shejun.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-28731952.post-4942271471933085835</id><published>2007-12-12T15:25:00.001+08:00</published><updated>2007-12-13T11:08:38.940+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><title type='text'>It Really is an LED Christmas Season</title><content type='html'>&lt;span style="color:red;"&gt;&lt;h3&gt;&lt;a name="top"&gt;&lt;/a&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span style="color:red;"&gt;&lt;h3&gt;&lt;a name="top"&gt;&lt;span style="font-size:-2;"&gt;Tom Griffiths&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;&lt;/span&gt; http://www.solidstatelighting.net/lightimes/?date=2007-12-11&amp;amp;id=9313#top&lt;br /&gt;&lt;span style=""&gt;&lt;i&gt;November 29, 2007&lt;/i&gt;...For those around the world that celebrate Christmas or coincident holidays    by stringing lights about the house and yard, it seems pretty clear that the    decorative buzz is about LED lighting. The year 2007 seems to be the one where    LED Christmas lights have gone from novelty to "common sense". Interestingly,    they are doing so in spite of the energy payback for LED versions being something    on the order of 4-10 years when a 1-2 year payback is often all the consuming    public can really wrap its arms around. Frankly, if we set aside some of the    local government &lt;a href="http://www.ci.boulder.co.us/files/Environmental%20Affairs/climate%20and%20energy/led_holiday_light_exchange.pdf"&gt;incentives&lt;/a&gt;    that we're seeing, I don't think it yet has a lot to do with the real payback    these tiny solid state lighting alternatives are providing.&lt;/span&gt;&lt;div&gt; &lt;p&gt;&lt;span style=""&gt;For starters, here is a quick numbers run from the resident economist. Incandescent    mini-lights at 40 watts per string, running 5 hours per night, for 30 nights,    adds up to an operating cost for the season of at least $.60/string (assuming    a $.10/kW electricity rate... you can nearly double that in some places). Incandescent    C7s that are most often used for outlining the roof of a house run more like    175 watts per string suggesting a seasonal operating cost of at least $2.50/string.    One year, when we fully outlined the house in the C7s, we enjoyed better than    a $200 uptick in the monthly electric bill, as well as the exciting sounds of    more than one airplane making a go-around when they realized we weren't the    nearby runway (at least that's my version of the story and I'm sticking to it).    By contrast, the comparative LED strings will typically run at 4 watts or less,    which puts them somewhere around $.06 for the season. That's close enough to    free that we might as well just consider the cost of the string as the only    issue. As far as the acquisition costs, $10-$15 seems to be the current "on-season    rate" for something in that typical 25-foot (3-meter) length.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=""&gt;Since us "lighters" are used to buying a certain number of replacement    incandescent strings each year, other than the 1 or 2 impulse strings, I tend    to suspect most serious lighters hit the before- and after-season sales, picking    the strings up for $1 to $2. Preferring simple formulas over precision, I would    round that to being "nearly free" compared to the LEDs. Nearly free    light strings are then head-to-head with virtually free operating costs. The    $.60 to $2.50 per string "old" operating cost stacks up against a    $10-$15 "new" LED purchase cost. Depending upon your choice of big    or small incandescents, the payback is 4 to 20 years! (On the small incandescent    string, the typical 2-3 season lifetime shortens the 20 to maybe 6 or 7 years).&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=""&gt;While there is nothing shameful about a 4 year payback, it is just not typical    of your average Wal-Mart or Home Depot holiday consumer to consider a payback    period at all, much less one of that length. Lots of time, and marketing dollars    have been invested on "awareness initiatives" to sway consumers to    consider CFLs as replacements for Mr. Edison's original invention, and that    relatively short payback has only recently begun to gain real traction in the    US. So what's driving the willingness to spend $10 more for a simple light string?    Two guesses are offered.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=""&gt;The first guess is that they are actually bright enough, believably long-lived    enough and, most importantly, &lt;i&gt;finally priced where they don't seem expensive    &lt;/i&gt;(call it "cheap enough"). With the on-season price of the incandescents    often around $5, a consumer can look at "the usual" few strings they'll    need and reach the conclusion that "the extra $5" per string is probably    worth it to start to eliminate the seasonal dead-bulb hassle. That's a bit of    an impulsive conclusion if we accept that many of those consumers would really    be more likely to pay the off-season price for those needed strings during any    given year, but the holiday season is certainly one that is given to impulse    shopping, so why not go with the flow. The 'by the way' to this guess would    have the shopper adding the thought, &lt;i&gt;"Oh, and I've heard they will save    me a ton in electricity costs."&lt;/i&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=""&gt;The second guess is that the energy saving story that accompanies LED and solid    state lighting is sinking in, due almost exclusively to their presence in the    more ubiquitous daily applications that work including nightlights, flashlights/torches,    automotive CHMLs, tail-lights and traffic signals. The resulting impression    would seem to be somewhat along the lines of, "&lt;i&gt;I'm seeing those LEDs    everywhere... they must really be saving some money somehow or I wouldn't keep    seeing more and more of them.&lt;/i&gt;" Add to that a strong perception of rapidly    increasing energy costs of all types (for the US, the rise in gasoline prices    is a strong driver for that perception), and it likely just takes a different    perception path to arrive at the same "saving me a ton" conclusion.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=""&gt;Either way, what does it mean for the solid state lighting industry? First,    it means LEDs are doing their jobs and the technology is proving itself in key    applications that are causing a recognition with the majority of the the people    out there. Second, the consuming public is beginning to make the logical jump    that if an LED works well for lighting something up in several different types    of applications, it will work well in the next application they find it in.    Third, there's more of it to come. We're just at the tip of the tip of the iceberg    in the start of a wider scale adoption of LED-based lighting technology. Fourth,    there is still plenty of room to make things more difficult by moving too fast    into applications where they might not quite be ready, such as Edison screw-based    incandescent replacements. Pushing something junky into the market will erode    the goodwill built up from #1 and disrupt the otherwise clear thinking that    results in #2, and possibly disrupt the perceptions that is leading impulse    consumerism to actually follow a desirable longer-term path. Niche-to-niche    works!&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-4942271471933085835?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4942271471933085835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4942271471933085835'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/12/it-really-is-led-christmas-season.html' title='It Really is an LED Christmas Season'/><author><name>Jun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-3749908977190650892</id><published>2007-12-11T21:18:00.001+08:00</published><updated>2007-12-11T21:18:04.358+08:00</updated><title type='text'>Matlab的替代</title><content type='html'>Python + numpy + scipy + matplotlib&lt;br&gt;可以代替Matlab的部分功能，对于我来说足够了。&lt;br&gt;&lt;br&gt;等过段时间，我有空了，就把以前的代码改成Python的。&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-3749908977190650892?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/3749908977190650892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/3749908977190650892'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/12/matlab.html' title='Matlab的替代'/><author><name>Jun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-8170337741076003777</id><published>2007-10-22T19:16:00.000+08:00</published><updated>2007-12-13T11:08:27.100+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><title type='text'>INTERNATIONAL LED EVENT 2008</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_4bagvBm-tuo/RxyHqphfDlI/AAAAAAAAAFc/lus7Sb1OLSE/s1600-h/image001.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_4bagvBm-tuo/RxyHqphfDlI/AAAAAAAAAFc/lus7Sb1OLSE/s400/image001.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5124119642811338322" /&gt;&lt;/a&gt;&lt;br /&gt;推荐网站&lt;br /&gt;http://www.led-event.com/&lt;br /&gt;&lt;br /&gt;通过这里可以定阅&lt;br /&gt;http://www.led-event.com/subpages/newsletter.php?selected=222&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-8170337741076003777?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.led-event.com/' title='INTERNATIONAL LED EVENT 2008'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/8170337741076003777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/8170337741076003777'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/10/international-led-event-2008.html' title='INTERNATIONAL LED EVENT 2008'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_4bagvBm-tuo/RxyHqphfDlI/AAAAAAAAAFc/lus7Sb1OLSE/s72-c/image001.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-2964969674154353992</id><published>2007-10-09T09:22:00.000+08:00</published><updated>2007-10-22T19:04:27.843+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LINUX'/><title type='text'>Ubuntu 7.10 Gutsy Gibbon发布倒计时</title><content type='html'>&lt;script type="text/javascript" src="http://www.ubuntu.com/files/countdown/dist/display.js"&gt;&lt;/script&gt;&lt;br /&gt;&lt;noscript&gt;&lt;img id="countdownimage" src="http://www.ubuntu.com/files/countdown/dist/710countdown_default.png" width="199" height="164" alt="Ubuntu 7.10 - Coming soon"&gt;&lt;/noscript&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-2964969674154353992?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/2964969674154353992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/2964969674154353992'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/10/ubuntu-710-gutsy-gibbon.html' title='Ubuntu 7.10 Gutsy Gibbon发布倒计时'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-2807147634221148815</id><published>2007-09-14T11:16:00.001+08:00</published><updated>2007-09-14T11:16:34.046+08:00</updated><title type='text'>索尼社长: 大学应调整博士的培养方针</title><content type='html'>中钵提出了产学结合的3个成功要点:（1）向大学传输"1，10，100"思想；（2）明确企业与大学的角色分担；（3）具有博士水平的理工科人才的培养及使用。 &lt;br&gt;&lt;br&gt;"企业希望取得硕士学位的学生能够直接投入研究开发，然而现实并非如此"（中钵）。另一方面，"由于博士生过于局限于专业，很难在企业中发挥作用，导致大 学与企业之间不合拍的发生"（中钵）。作为对策，中钵提出调整博士培养方针的重要性，"培养出即使改变其课题也能灵活对应的人才"（中钵）。 &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-2807147634221148815?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/2807147634221148815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/2807147634221148815'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/09/blog-post_14.html' title='索尼社长: 大学应调整博士的培养方针'/><author><name>Jun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-3281594878194232498</id><published>2007-08-24T17:03:00.001+08:00</published><updated>2007-10-22T19:05:00.458+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MEEP'/><title type='text'>MEEP中的BUG</title><content type='html'>如果利用并行集群计算色散材料，这时，MEEP会有一个内存管理上的BUG。&lt;br&gt;&lt;pre&gt;On Sat, 30 Sep 2006, João Luis Silva wrote:&lt;br&gt;&amp;gt; I found the problem: When dispersive media is used, the &lt;b style="color: black; background-color: rgb(255, 255, 102);"&gt;memory &lt;/b&gt; related to&lt;br&gt;&amp;gt; the dispersive media is not split by the nodes, but every node has a full&lt;br&gt;&amp;gt; copy of the fields. In my real problem I use a Sellmeier formula for silica&lt;br&gt;&lt;br&gt;Yikes, this is indeed a bug.  Try the following patch: &lt;br&gt;&lt;br&gt;diff -rN old-meep/src/polarization.cpp new-meep/src/polarization.cpp&lt;br&gt;29c29&lt;br&gt;&amp;lt;   if (sc-&amp;gt;pb == NULL) return NULL;&lt;br&gt;---&lt;br&gt;&amp;gt;   if (sc-&amp;gt;pb == NULL || !sc-&amp;gt;is_mine()) return NULL;&lt;/pre&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-3281594878194232498?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/3281594878194232498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/3281594878194232498'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/08/meepbug.html' title='MEEP中的BUG'/><author><name>Jun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-7619572116745546699</id><published>2007-07-05T20:19:00.001+08:00</published><updated>2007-10-22T19:05:00.459+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MEEP'/><title type='text'>关于MEEP的一个小tip</title><content type='html'>MEEP中有个功能是dft-flux，&lt;br&gt;这是个很重要的函数，关于它的定义，要特别注意，只能放在run之前，定义了这个函数之后，再定义其它的东西都没有用了。&lt;br&gt;很奇怪，要和Steven沟通一下。&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-7619572116745546699?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/7619572116745546699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/7619572116745546699'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/07/meeptip.html' title='关于MEEP的一个小tip'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-3602150862675378821</id><published>2007-04-23T10:24:00.001+08:00</published><updated>2007-04-23T10:27:07.420+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LINUX'/><category scheme='http://www.blogger.com/atom/ns#' term='FIREFOX'/><title type='text'>Firefox中的小插件Gspace</title><content type='html'>&lt;a href="http://linuxtoy.org/archives/gspace-make-gmail-your-network-disk.html"&gt;http://linuxtoy.org/archives/gspace-make-gmail-your-network-disk.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Gmail 受到许多人的追捧，其中很大一部分原因就在于它为用户提供了海量的邮箱空间。事实上，对于普通用户而言，仅会占用其很少的容量。或许我们可以将 Gmail 变成自己的网络硬盘以便随处使用。 &lt;/p&gt; &lt;p&gt;要实现上述设想，有一个 Firefox 扩展就可以办到，它的名字是 &lt;a href="http://www.getgspace.com/"&gt;Gspace&lt;/a&gt;。这是一个充满创意，并且非常实用的 Firefox 扩展。我在试用之后很快便喜欢上了它，并成为了我以后必装的 Firefox 扩展之一。&lt;/p&gt; &lt;p&gt;&lt;a href="http://linuxtoy.org/img/2007/04/gspace.jpg"&gt;&lt;img src="http://linuxtoy.org/img/2007/04/gspace_s.jpg" alt="Gspace" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Gspace 可以将 Gmail 变成一个在线存贮空间，方便我们将文件、资料、音乐、图片等存入其中。除了存贮功能之外，使用 Gspace 你也能够直接播放所存贮的音乐，查看所存贮的图片。利用 Gspace，我们就可以把重要的东西存入 Gmail 空间，以做到有备无患。&lt;/p&gt; &lt;p&gt;&lt;strong&gt;安装 Gsapce&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Gspace 的安装过程与其他的 Firefox 扩展并无二致，从 &lt;a href="http://www.getgspace.com/download.html"&gt;Gspace 的下载页面&lt;/a&gt;上点击适用于 Linux 系统的链接，之后按照提示即可完成安装。在安装完成后，需要重新启动 Firefox 方能开始使用。&lt;/p&gt; &lt;p&gt;&lt;strong&gt;建立 Gspace 帐户&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;在使用 Gspace 存贮文件之前，你需要将有效的 Gmail 帐号信息提供给 Gspace。点击"Tools -&amp;gt; Gspace"菜单命令可以打开 Gspace 控制窗口。然后，单击左上角的"Manage Accounts"按钮可以添加一个新的 Gspace 帐号。在建立帐号时，需要输入你的 Gmail 帐号及密码。&lt;/p&gt; &lt;p&gt;&lt;strong&gt;上传文件&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;如果你有使用 FTP 客户端的经历，那么在 Gsapce 中上传文件将不在话下。先选择左边的本地文件，再按中间的上传按钮即可将文件上传到 Gmail 空间中。如果是下载文件，其过程与此类似。&lt;/p&gt; &lt;p&gt;&lt;strong&gt;听音乐，看图片&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;这个首先要保证你的 Gmail 空间中存贮有音乐、图片这些东西。然后只需将 Gspace 的文件传输模式切换成相应的 Player Mode 和 Photo Mode 即可。另外，还有一个 Gmail Drive Mode，不过我在试用时发现存在不小的问题，要慎用。&lt;/p&gt; &lt;p&gt;Gspace 还有一个迷你窗口，可从状态栏中的图标处打开。 &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-3602150862675378821?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/3602150862675378821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/3602150862675378821'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/04/firefoxgspace.html' title='Firefox中的小插件Gspace'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-4477185728361381924</id><published>2007-04-19T21:10:00.001+08:00</published><updated>2007-04-19T21:10:17.724+08:00</updated><title type='text'>Matlab中的reshape</title><content type='html'>&lt;span class="content"&gt;&lt;font class="content"&gt;若要重新安排矩阵的形状，可用&lt;b style="color: black; background-color: rgb(160, 255, 255);"&gt;reshape&lt;/b&gt;命令：&amp;nbsp; &lt;br&gt; &lt;br&gt; B&amp;nbsp;=&amp;nbsp;&lt;b style="color: black; background-color: rgb(160, 255, 255);"&gt;reshape&lt;/b&gt;(A,&amp;nbsp;4,&amp;nbsp;2)&amp;nbsp;%&amp;nbsp;4是新矩阵的列数，2是新矩阵的行数 &amp;nbsp; &lt;br&gt; &lt;br&gt; B&amp;nbsp;=&amp;nbsp; &lt;br&gt; &lt;br&gt; 5&amp;nbsp;8&amp;nbsp; &lt;br&gt; &lt;br&gt; 9&amp;nbsp;12&amp;nbsp; &lt;br&gt; &lt;br&gt; 5&amp;nbsp;6&amp;nbsp; &lt;br&gt; &lt;br&gt; 11&amp;nbsp;5&amp;nbsp; &lt;br&gt; 小提示：&amp;nbsp;A(:)就是将矩阵A每一列堆叠起来，成为一个行向量，而这也是&lt;b style="color: black; background-color: rgb(255, 255, 102);"&gt;MATLAB&lt;/b&gt;变数的内&lt;br&gt; 部储存方式。以前例而言，&lt;b style="color: black; background-color: rgb(160, 255, 255);"&gt;reshape&lt;/b&gt;(A,&amp;nbsp;8,&amp;nbsp;1)和A(:)同样都会产生一个8x1的矩阵。&lt;br&gt;&lt;br&gt;另外移动一个数组，可以如下操作&lt;br&gt;A = [A(51:end) A(1:50)]&lt;br&gt;【 在 snakehope (格物致知) 的大作中提到: 】&lt;br&gt;: 记不起来了，&lt;br&gt;: 想把一个数组的前五十个元素放到最后面，matlab用什么命令，谢谢&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;如果是移动高维数组中的一例，注意矩阵的转置。&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-4477185728361381924?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4477185728361381924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4477185728361381924'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/04/matlabreshape.html' title='Matlab中的reshape'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-4922068712526705216</id><published>2007-04-16T14:00:00.000+08:00</published><updated>2007-04-16T14:03:13.258+08:00</updated><title type='text'>无须翻页　直接显示Google多页搜索结果</title><content type='html'>http://www.gseeker.com/50226711/eceaccgoogleecc_88311.php&lt;br /&gt;&lt;br /&gt;Google的搜索结果一向被认为是更准确、相关度更高的，因此理论上，我们在 Google上面搜索一个关键词，能在进行较少翻页操作的情况下，便可找到想要的结果。然而事实上并不完全如此。由于目前的搜索引擎包括Google在 内，依然没有采用足够的人工智能技术，因此当我们自己都不太清楚自己想搜索什么的时候，我们就需要进行多次翻页，一直浏览数页甚至数十页的结果，可能才能 找到我们想要的答案。比如，当你看到一个人名，你觉得有点熟但又想不起他到底是谁，而实际上他又不是名人，因此你要进行漫游式的搜索及浏览。 &lt;a name="Continue"&gt;&lt;/a&gt; &lt;p&gt;　 　在默认的情况下，Google的搜索结果页会显示10个结果，当然你也可以自行设置为更多，但那样会影响加载速度。但如果每次都要重复点击"下一页"， 你可能会感到厌倦。有没有办法让Google可以在我们滚动页面时，自动在当前页加载并显示下一页的搜索结果呢？这样一来，我们既不用重复点击"下一页 "，也不怕浏览体验受影响。&lt;br /&gt;&lt;br /&gt; 　　答案是肯定的，因为在日本有人写了一个FireFox的&lt;a href="http://www.greasespot.net/" target="_blank"&gt;Greasemonkey&lt;/a&gt;脚本（via &lt;a href="http://googlesystem.blogspot.com/2007/04/infinite-scrolling-in-google-search.html" target="_blank"&gt;GOS&lt;/a&gt;），利用它，我们即可实现上述的功能。&lt;br /&gt;&lt;br /&gt; 　　&lt;a href="http://gimite.ddo.jp/archive/user_js/googleautopager.user.js" target="_blank"&gt;点击这里安装该脚本&lt;/a&gt;（请先安装&lt;a href="http://www.greasespot.net/" target="_blank"&gt;Greasemonkey&lt;/a&gt;）&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;!-- google_ad_client = "pub-3934211875627503"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "010206"; google_color_url = "000000"; google_color_text = "000000"; //--&gt;&lt;/script&gt;  　　这是一个非常实用的脚本。如果你也像我一样，正在使用FireFox浏览器，并且经常会进行Google搜索，强烈推荐使用这个脚本！ &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-4922068712526705216?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4922068712526705216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4922068712526705216'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/04/google.html' title='无须翻页　直接显示Google多页搜索结果'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-4458243348519427507</id><published>2007-04-15T10:48:00.001+08:00</published><updated>2007-04-15T10:53:47.529+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LINUX'/><title type='text'>开机惊魂</title><content type='html'>昨晚回去没关机，早上来发现死机了，重启......&lt;br&gt;结果无法正常启动了，心里一惊，提示我输入root的密码，进入系统，/home下面是空的，手心的汗都出来了。心里那个紧张啊。&lt;br&gt;突然看到要我手动fsck一下，fsck是什么？&lt;br&gt;google了一下，是用来检查系统完整性的。&lt;br&gt;那就fsck吧，然后reboot，ok。&lt;br&gt;&lt;br&gt;还好还好，没出大事。&lt;br&gt;&lt;br&gt;&lt;br&gt;附:&lt;br&gt;&lt;h2&gt;&lt;a name="SECTION00586000000000000000"&gt; 用fsck检查文件系统完整性&lt;/a&gt;&lt;/h2&gt; &lt;p&gt; 文件系统很复杂，因此易于发生错误。可以用&lt;tt&gt;fsck&lt;/tt&gt;&lt;a name="1687"&gt;&amp;nbsp;&lt;/a&gt;命令 检查文件系统是否正确和有效。它可以根据指令修复找到的小错误，并将未修复错误报告用户。 幸运的是，文件系统的代码非常有效，所以根本极少出现问题，并且问题通常原因是电源失败、硬件失败、 或操作错误，例如没有正常关闭系统。 &lt;/p&gt;&lt;p&gt; 大多数系统设置为启动时自动运行&lt;tt&gt;fsck&lt;/tt&gt;&lt;a name="1689"&gt;&amp;nbsp;&lt;/a&gt;， 因此任何错误将在系统使用前被检测到(并根据希望修正)。使用有错误的文件系统可能使问题变得更坏： 如果数据结构有问题，使用这个文件系统可能使之更糟，导致更多的数据丢失。 当然，在大的文件系统上运行&lt;tt&gt;fsck&lt;/tt&gt;&lt;a name="1691"&gt;&amp;nbsp;&lt;/a&gt;会花一定的时间，如果系统正常 关闭，几乎从不发生错误，因此有一些方法可以不进行检查。如果文件&lt;tt&gt;/etc/fastboot&lt;/tt&gt;&lt;a name="1693"&gt;&amp;nbsp;&lt;/a&gt; 存在，就不检查。另外，如果ext2文件系统在超级快中有一个特定的标记告知该文件系统在上次mount后没有正常unmount. 如果标记指出unmount正常完成(假设正常unmount指出没问题)，&lt;tt&gt;e2fsck&lt;/tt&gt;&lt;a name="1695"&gt;&amp;nbsp;&lt;/a&gt;(&lt;tt&gt;fsck&lt;/tt&gt;&lt;a name="1697"&gt;&amp;nbsp;&lt;/a&gt;的ext2文件系统版) 就不检查系统。&lt;tt&gt;/etc/fastboot&lt;/tt&gt;&lt;a name="1699"&gt;&amp;nbsp;&lt;/a&gt;是否影响系统依赖于你的启动手稿， 但ext2标记则在你使用&lt;tt&gt;e2fsck&lt;/tt&gt;&lt;a name="1701"&gt;&amp;nbsp;&lt;/a&gt;时发生作用--基于一个&lt;tt&gt;e2fsck&lt;/tt&gt;&lt;a name="1703"&gt;&amp;nbsp;&lt;/a&gt; 选项(参阅&lt;em&gt;e2fsck&lt;/em&gt;&lt;a name="1705"&gt;&amp;nbsp;&lt;/a&gt;手册页) &lt;/p&gt;&lt;p&gt; 自动检查只对启动时自动mount的文件系统发生作用。 使用&lt;tt&gt;fsck&lt;/tt&gt;&lt;a name="1707"&gt;&amp;nbsp;&lt;/a&gt;手工检查其他文件系统，比如软盘。 &lt;/p&gt;&lt;p&gt; 如果&lt;tt&gt;fsck&lt;/tt&gt;&lt;a name="1709"&gt;&amp;nbsp;&lt;/a&gt;发现为修复的问题，你需要深入了解文件系统的一般工作原理和有问题的文件系统的细节， 或好的备份。最后一个办法容易(虽然冗长)安排，如果你自己不知道，有时可以通过朋友、Linux新闻组、电子邮件列表或其他支持源安排。 我很想告诉你更多，但我对这的学习和实践也并不多。Theodore T&amp;#39;so的&lt;tt&gt;debugfs&lt;/tt&gt;&lt;a name="1711"&gt;&amp;nbsp;&lt;/a&gt;程序应该有用。 &lt;/p&gt;&lt;p&gt; &lt;tt&gt;fsck&lt;/tt&gt;&lt;a name="1713"&gt;&amp;nbsp;&lt;/a&gt;只能运行于未mount的文件系统，不要用于已mount的文件系统(除了启动时的只读根文件系统)。 这是因为它存取原始磁盘，在操作系统不知道的情况下修改文件系统。 There &lt;em&gt;will&lt;/em&gt; be trouble, if the operating system is confused. &lt;/p&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-4458243348519427507?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4458243348519427507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4458243348519427507'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/04/blog-post.html' title='开机惊魂'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-4519026836344813111</id><published>2007-03-19T19:21:00.000+08:00</published><updated>2007-04-24T20:18:48.266+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LATEX'/><category scheme='http://www.blogger.com/atom/ns#' term='LINUX'/><title type='text'>Ubuntu中使用texlive 2007</title><content type='html'>参考http://mailboxpublic.googlepages.com/texlive2007cjkchinesehowto&lt;br /&gt;主要是Yue Wang在水木tex版发的文章&lt;br /&gt;&lt;br /&gt;浙大88上也有texlive2007可以下载&lt;br /&gt;&lt;br /&gt;1. Install texlive 2007&lt;br /&gt;unzip texlive2007-live-20070212.iso.zip&lt;br /&gt;mount -o loop texlive2007-live-20070212.iso /mnt&lt;br /&gt;cd /mnt&lt;br /&gt;sudo ./install-tl&lt;br /&gt;then, press I to install.&lt;br /&gt;&lt;br /&gt;2. Set the path. Take debian GNU/Linux as example, modify your /etc/environment&lt;br /&gt;like this and make a reboot:&lt;br /&gt;[&lt;br /&gt;PATH="/usr/local/texlive/2007/bin/i386-linux:/usr/local/matlab/bin:/usr/local/sb&lt;br /&gt;in:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"&lt;br /&gt;LANG="en_US.UTF-8"&lt;br /&gt;LANGUAGE="en_US.UTF-8"&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;3. 安装字体&lt;br /&gt;&lt;br /&gt;Yue Wang放了一份在&lt;br /&gt;lftp softup@soft.eeatech.org:/texlive2007-zhfonts_yuewang&gt;&lt;br /&gt;文件名texlive-zhfonts.tar.bz2，//他应该还在更新中&lt;br /&gt;首先remove自己的~/.texlive2007&lt;br /&gt;然后,&lt;br /&gt;cd ~&lt;br /&gt;解压缩texlive-zhfonts.tar.bz2&lt;br /&gt;sudo texhash&lt;br /&gt;updmap --enable Map cjkutf8.map&lt;br /&gt;&lt;br /&gt;字体有simsun,simhei,simli,simkai,simyou,simfang，&lt;br /&gt;测试文件&lt;br /&gt;#test.tex&lt;br /&gt;\documentclass{article}&lt;br /&gt;\usepackage{CJKutf8}&lt;br /&gt;\begin{document}&lt;br /&gt;\begin{CJK}{UTF8}{song} &lt;br /&gt;你好, 万岁&lt;br /&gt;\end{CJK}&lt;br /&gt;\end{document}&lt;br /&gt;&lt;br /&gt;latex test.tex&lt;br /&gt;dvipdfmx test.dvi&lt;br /&gt;acroread test.pdf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-4519026836344813111?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4519026836344813111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4519026836344813111'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/03/ubuntutexlive-2007.html' title='Ubuntu中使用texlive 2007'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-6265136529331952805</id><published>2007-02-06T22:21:00.000+08:00</published><updated>2007-02-06T22:23:03.823+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LINUX'/><title type='text'>lftp 用法 教程 大全</title><content type='html'>&lt;p&gt;  lftp&lt;/p&gt; &lt;p&gt;登录 ftp &lt;/p&gt; &lt;p&gt;&gt; open -u &lt;username&gt;  &lt;sites&gt;&lt;/p&gt; &lt;p&gt;下传目录&lt;/p&gt; &lt;p&gt;方法一   &gt; mget -d dirname/* &lt;/p&gt; &lt;p&gt;方法二   &gt; mirror dirname&lt;/p&gt; &lt;p&gt; 上传目录&lt;/p&gt; &lt;p&gt;方法一   &gt;mput -d  dirname/*&lt;/p&gt; &lt;p&gt;方法二   &gt;mirror -R dirname &lt;/p&gt; &lt;p&gt;下传普通文件    &lt;/p&gt; &lt;p&gt;&gt; get filename&lt;/p&gt; &lt;p&gt;下传多个普通文件&lt;/p&gt; &lt;p&gt;&gt; mget *&lt;/p&gt; &lt;p&gt;lftp搜索文件方法&lt;br /&gt;ls -R | grep .iso&lt;br /&gt;find -d 3 | grep .iso&lt;/p&gt; &lt;p&gt;在使用中，多看看帮助 help&lt;/p&gt; &lt;p&gt; bookmark 标签&lt;br /&gt;&lt;br /&gt; cat/more/less       显示文件内容(用cat和more)&lt;br /&gt; zcat/zmore/zless    显示文件内容(用zcat和zmore,区别是zcat和zmore只能直接操作.gz文件)&lt;br /&gt; bzcat/bzmore/bzless 显示文件内容(用bzcat和bzmore,区别是bzcat和bzmore只能直接操作.bz2文件)&lt;/p&gt; &lt;p&gt; get/mget/pget 抓取文件&lt;br /&gt; put/mput/      上传文件&lt;br /&gt; mirror (-R)    下载上传目录&lt;br /&gt; version 显示版本&lt;br /&gt; cache 缓存操作&lt;/p&gt; &lt;p&gt; !ls !rm !rmdir !mkdir  !mv !du !chmod&lt;br /&gt;  ls  rm  rmdir  mkdir   mv  du  chmod&lt;/p&gt; &lt;p&gt; scache 显示登录的站点会话(就是你进入过的并且缓存了的目录)&lt;br /&gt; suspend 相当于 ctrl-z命令，主要是因为lftp不能用ctrl-z命令挂起，然后用fg命令回复&lt;br /&gt; queue  队列 -d -m -v stop start&lt;br /&gt; jobs   (下载任务的显示)&lt;br /&gt; kill 关闭下载任务&lt;br /&gt; wait/fg  将任务放到前台，等待其结束&lt;/p&gt; &lt;p&gt; bye/quit/exit 退出&lt;br /&gt; close 关闭发呆的连接，作用很弱&lt;br /&gt; history 历史控制,history all 显示全部&lt;br /&gt; open/connect 登录&lt;br /&gt; user/login 在同一个ftp中改换用户名和密码登录&lt;br /&gt; find -d 3 | grep .iso&lt;br /&gt; ls -R | grep .iso&lt;br /&gt; get1  获取单个文件(来自man lftp)&lt;/p&gt; &lt;p&gt; sleep  在睡眠阶段的间隔时间?什么时候是睡眠阶段? 不会用&lt;br /&gt; repeat 可能是续传或登录的尝试间隔和次数?不会用&lt;br /&gt; lftp  为什么这里面还有一个lftp?不会用&lt;br /&gt; slot  连接的虚拟控制台,不会用&lt;br /&gt; command  无帮助(几乎不用)&lt;br /&gt; echo  无帮助(几乎不用)&lt;br /&gt; site  (几乎不用)&lt;br /&gt; debug 调试(几乎不用)&lt;br /&gt; source 读取外部lftp设置文件（几乎不用）&lt;br /&gt; set 设置lftp参数（几乎不用）&lt;br /&gt; alias 软链接(几乎不用)&lt;br /&gt; module 读取外部lftp函数模块(几乎不用)&lt;br /&gt; glob   (几乎不用)&lt;br /&gt; quote  (几乎不用)&lt;br /&gt; anon   (匿名登录,几乎不用)&lt;br /&gt; &lt;/p&gt; &lt;p&gt;对于本地的目录改变要用lcd 而不能用!cd，而远程只用cd即可&lt;br /&gt;对于本地目录要用lpwd,而不能用!pwd,而远程只用pwd(-p)即可&lt;/p&gt; &lt;p&gt;put [OPTS] &lt;lfile&gt; [-o &lt;rfile&gt;]&lt;br /&gt;get [OPTS] &lt;rfile&gt; [-o &lt;lfile&gt;]&lt;br /&gt;-c 选项，表示续传&lt;br /&gt;-o 表示指定下传(上载)后得文件名&lt;br /&gt;-E 表示删除远程文件&lt;br /&gt;-a 表示用ascii模式（默认是用 binary模式）&lt;br /&gt;-O 指定下传的文件所处的目录&lt;/p&gt; &lt;p&gt;reget &lt;rfile&gt; [-o &lt;lfile&gt;]&lt;br /&gt;等价与 get -c&lt;/p&gt; &lt;p&gt;mput [OPTS] &lt;lfile&gt; [-o &lt;rfile&gt;]&lt;br /&gt;mget [OPTS] &lt;rfile&gt; [-o &lt;lfile&gt;]&lt;br /&gt;-c 选项，表示续传&lt;br /&gt;XXXXXX  -o 表示指定下传(上载后)得文件名（这一项功能没有了）&lt;br /&gt;-d 表示创建文件夹，使其与远程的文件夹名相同，并将其下的文件放入这个文件夹，如果不用这个命令，远程的文件夹中的内容就存到当前文件夹内了&lt;br /&gt;-E 表示删除远程文件&lt;br /&gt;-a 表示用ascii模式（默认是用 binary模式）&lt;br /&gt;-O 指定下传的文件所处的目录&lt;/p&gt; &lt;p&gt;reput &lt;lfile&gt; [-o &lt;rfile&gt;]&lt;br /&gt;等价于 put -c&lt;/p&gt; &lt;p&gt;bye/quit/exit 退出&lt;br /&gt;用法: exit [&lt;code&gt;|bg]&lt;br /&gt;exit - exit from lftp or move to background if jobs are active&lt;/p&gt; &lt;p&gt;If no jobs active, the code is passed to operating system as lftp&lt;br /&gt;termination status. If omitted, exit code of last command is used.&lt;br /&gt;`bg’ forces moving to background if cmd:move-background is false.&lt;/p&gt; &lt;p&gt;close 关闭发呆的连接，作用很弱&lt;/p&gt; &lt;p&gt;rm -r(删除目录内容和目录) 和 rmdir(只删除空目录)&lt;/p&gt; &lt;p&gt;对于ls的用法有很多&lt;br /&gt;   ls    cls&lt;br /&gt; rels  recls&lt;br /&gt; nlist relist&lt;/p&gt; &lt;p&gt;用法: bookmark [SUBCMD]&lt;br /&gt;bookmark 命令控制书签&lt;/p&gt; &lt;p&gt;支持下面的子命令:&lt;br /&gt;  add &lt;name&gt; [&lt;loc&gt;] - 把当前位置或指定的位置加入书签,并使用给定名字&lt;br /&gt;  del &lt;name&gt;         - 删除指定名字的书签&lt;br /&gt;  edit               - 编辑书签文件&lt;br /&gt;  import &lt;type&gt;      - 导入其他程序的书签&lt;br /&gt;  list               - 列出书签 (默认)&lt;/p&gt; &lt;p&gt;用法: cache [SUBCMD]&lt;br /&gt;cache 命令控制本地的缓存&lt;/p&gt; &lt;p&gt;支持下列子命令:&lt;br /&gt;  stat        - 显示缓存的状态 (默认)&lt;br /&gt;  on|ff       - 打开/关闭缓存&lt;br /&gt;  flush       - 清除缓存&lt;br /&gt;  size &lt;lim&gt;  - 设置内存限制, -1 表示没有限制&lt;br /&gt;  expire &lt;nx&gt; - 设置缓存过期的时间为 N 秒 (x=s)&lt;br /&gt;                分钟 (x=m) 小时 (x=h) 或天(x=d)&lt;/p&gt; &lt;p&gt;open [OPTS] &lt;site&gt; 打开站点&lt;br /&gt;-e &lt;cmd&gt; 在打开执行命令&lt;br /&gt;-u &lt;user&gt;[,&lt;pass&gt;] 指定用户 比如 open -u fff,fffcode  202.xxx.xxx.xxx&lt;br /&gt;-p &lt;port&gt; 指定端口&lt;br /&gt;&lt;site&gt; 主机名，URL或书签名&lt;/p&gt; &lt;p&gt; user/login 在同一个ftp中改换用户名和密码登录,这要求你的ftp服务器有多个用户可以登录&lt;br /&gt;用法: open [OPTS] &lt;site&gt;&lt;br /&gt;选择一个服务器, URL 或书签&lt;br /&gt; -e &lt;cmd&gt;            在选中后执行命令&lt;br /&gt; -u &lt;user&gt;[,&lt;pass&gt;]  使用指定的用户名/口令进行验证&lt;br /&gt; -p &lt;port&gt;           连接指定端口&lt;br /&gt; &lt;site&gt;              主机名, URL 或书签&lt;/p&gt; &lt;p&gt; cache 缓存，在读入一次后，该目录或站点的内容就自动存在本机的缓存中，显示或者其它操作就不用再次下载远程的内容了，如果远程的内容有了变化，那么缓存若没有 更新，就无法显示远程的更新内容。这时需要用cache flush来清空缓存，这样在显示时就会再次登录ftp来更新缓存&lt;/p&gt; &lt;p&gt; du 常用 du -ah; du -sh;  du -ch;若要比较大小变化，不要用h&lt;br /&gt;-h 表示用M kb等表示文件大小&lt;br /&gt;-a 全部显示&lt;br /&gt;-s summrize&lt;br /&gt;-c 最后显示total&lt;/p&gt; &lt;p&gt;mirror [OPTS] [remote [local]]&lt;br /&gt;-c 续传&lt;br /&gt;-e 比较并同步&lt;br /&gt;-R 上传整个目录&lt;br /&gt;-r 不递归目录&lt;br /&gt;-n 只下载较新的档案&lt;br /&gt;-parallel=n 同时下载n个档案(预设一次只下载一个)&lt;/p&gt; &lt;p&gt;用法: rm [-r] [-f] &lt;files&gt;&lt;br /&gt;Remove remote files&lt;br /&gt; -r  recursive directory removal, be careful&lt;br /&gt;     非常可怕，没有任何寻问，直接递归删除指定的文件，太可怕了&lt;br /&gt;     但是rm是不能用通配符的&lt;br /&gt; -f  work quietly（不反馈消息）&lt;/p&gt; &lt;p&gt;用法: mrm &lt;files&gt;&lt;br /&gt;使用通配符展开来删除指定的文件，不同同时和递归一起使用&lt;br /&gt;-r 使用递归删除,这个命令等同于rm -r，这时是无法使用通配符的&lt;br /&gt;-f work quietly&lt;/p&gt; &lt;p&gt;用法: mkdir [-p] &lt;dirs&gt;&lt;br /&gt;建立远程目录&lt;br /&gt; -p  建立各级路径&lt;/p&gt; &lt;p&gt;用法: pwd [-p]&lt;br /&gt;Print current remote URL.&lt;br /&gt; -p  show password(显示路径和密码)&lt;/p&gt; &lt;p&gt;用法: rmdir [-f] &lt;dirs&gt;&lt;br /&gt;删除远程目录,只能删除空目录&lt;/p&gt; &lt;p&gt;用法: chmod [OPTS] mode file…&lt;br /&gt;Change the mode of each FILE to MODE.&lt;/p&gt; &lt;p&gt; -c, –changes        - like verbose but report only when a change is made&lt;br /&gt; -f, –quiet          - suppress most error messages(安静模式)&lt;br /&gt; -v, –verbose        - output a diagnostic for every file processed(冗余模式)&lt;br /&gt; -R, –recursive      - change files and directories recursively(递归处理)&lt;/p&gt; &lt;p&gt;用法: history -w file|-r file|-c|-l [cnt]&lt;br /&gt; -w &lt;file&gt; Write history to file. 写入文件&lt;br /&gt; -r &lt;file&gt; Read history from file; appends to current history. 读入文件&lt;br /&gt; -c  Clear the history. 清除历史&lt;br /&gt; -l  List the history (default).&lt;br /&gt;Optional argument cnt specifies the number of history lines to list,&lt;br /&gt;or "all" to list all entries.(显示全部历史)&lt;/p&gt; &lt;p&gt;用法: kill all|&lt;job_no&gt;&lt;br /&gt;删除指定的任务号为 &lt;job_no&gt; 的任务, 或者所有的任务&lt;/p&gt; &lt;p&gt;flashfxp,用法ftp对传&lt;br /&gt;       ftpcopy&lt;/p&gt; &lt;p&gt;       Obsolete. Use one of the following instead:&lt;br /&gt;            get ftp://… -o ftp://…&lt;br /&gt;            get -O ftp://… file1 file2…&lt;br /&gt;            put ftp://…&lt;br /&gt;            mput ftp://…/*&lt;br /&gt;            mget -O ftp://… ftp://…/*&lt;br /&gt;       or  other  combinations  to  get FXP transfer (directly between two ftp&lt;br /&gt;       servers).  lftp would fallback to plain copy (via client) if FXP trans-&lt;br /&gt;       fer cannot be initiated or ftp:use-fxp is false.&lt;/p&gt; &lt;p&gt;get1用法，表示传送担搁文件，这真是太奇怪了&lt;br /&gt;       get1 [OPTS] rfile&lt;/p&gt; &lt;p&gt;       Transfer a single file. Options:&lt;br /&gt;            -o &lt;lfile&gt;     destination file name (default - basename of rfile)&lt;br /&gt;            -c        continue, reget&lt;br /&gt;            -E        delete source files after successful transfer&lt;br /&gt;            -a        use ascii mode (binary is the default)&lt;br /&gt;            –source-region=&lt;from-to&gt;&lt;br /&gt;                      transfer specified region of source file&lt;br /&gt;            –target-position=&lt;pos&gt;&lt;br /&gt;                      position in target file to write data at&lt;/p&gt; &lt;p&gt;slot用法，对于多个ftp的登录&lt;br /&gt;       slot [name]&lt;/p&gt; &lt;p&gt;       Select specified slot or list all slots allocated. A slot is a  connec-&lt;br /&gt;       tion  to a server, somewhat like a virtual console. You can create mul-&lt;br /&gt;       tiple slots connected to different servers and switch between them. You&lt;br /&gt;       can  also  use  slot:name as a pseudo-URL evaluating to that slot loca-&lt;br /&gt;       tion.&lt;/p&gt; &lt;p&gt;       Default readline binding allows quick switching between slots named 0-9&lt;br /&gt;       using Meta-0 - Meta-9 keys (often you can use Alt instead of Meta).&lt;/p&gt; &lt;p&gt;suspend用法&lt;br /&gt;       suspend&lt;/p&gt; &lt;p&gt;reconnect 是 `close; cache flush; cd .’ 的别名&lt;/p&gt; &lt;p&gt;ls,cls,nlist&lt;br /&gt;rels,recls,renlist(与上面的命令相同，只是忽略cache缓存)&lt;/p&gt; &lt;p&gt;用法: [re]cls [opts] [path/][pattern]&lt;br /&gt;List remote files. You can redirect output of this command to file&lt;br /&gt;or via pipe to external command.&lt;/p&gt; &lt;p&gt; -1                   - single-column output 单列显示&lt;br /&gt; -h, –human-readable - print sizes in human readable format (e.g., 1K) 显示文件大小(可读性好一点)&lt;br /&gt; -l, –long           - use a long listing format 显示长文件信息&lt;br /&gt; -s, –size           - print size of each file (常用cls -sh)&lt;br /&gt;     –filesize       - if printing size, only print size for files&lt;br /&gt; -i, –nocase         - case-insensitive pattern matching(对于通配符很有效果)&lt;br /&gt; -I, –sortnocase     - sort names case-insensitively(对于显示顺序有用)&lt;br /&gt;     –sort=OPT       - "name", "size", "date"( cls –sort="size")(cls –sort="date")&lt;br /&gt; -S                   - sort by file size (cls -S)&lt;br /&gt; –user, –group, –perms, –date, –linkcount, –links (这些是显示所选内容，只加这些值即可比如cls –user pattern)&lt;br /&gt;                      - show individual fields&lt;/p&gt; &lt;p&gt; -q, –quiet          - don’t show status&lt;br /&gt; -d, –directory      - list directory entries instead of contents 只显示文件夹&lt;br /&gt; -F, –classify       - append indicator (one of /@) to entries ？？&lt;br /&gt; -B, –basename       - show basename of files only 只显示文件名，不给全路径名&lt;br /&gt;     –block-size=SIZ - use SIZ-byte blocks&lt;br /&gt;     –si             - likewise, but use powers of 1000 not 1024&lt;br /&gt; -k, –kilobytes      - like –block-size=1024&lt;br /&gt; -D, –dirsfirst      - list directories first(没用)&lt;/p&gt; &lt;p&gt;By default, cls output is cached, to see new listing use `recls’ or&lt;br /&gt;`cache flush’.&lt;/p&gt; &lt;p&gt;The variables cls-default and cls-completion-default can be used to&lt;br /&gt;specify defaults for cls listings and completion listings, respectively.&lt;br /&gt;For example, to make completion listings show file sizes, set&lt;br /&gt;cls-completion-default to "-s".&lt;/p&gt; &lt;p&gt;Tips: Use –filesize with -D to pack the listing better.  If you don’t&lt;br /&gt;always want to see file sizes, –filesize in cls-default will affect the&lt;br /&gt;-s flag on the commandline as well.  Add `-i’ to cls-completion-default&lt;br /&gt;to make filename completion case-insensitive.&lt;br /&gt;       continue the process with shell’s fg or bg commands.&lt;/p&gt; &lt;p&gt;ls用法&lt;br /&gt;ls 相当于 cls -l，不能控制文件大小的显示等等，但是，ls可以用-R命令递归&lt;br /&gt;关键的关键是ls -R 可以输出重定向到grep或more,cat,less等命令来进行内容的筛选&lt;br /&gt;这个功能可以完成ftp上的文件查找，实在是太强大了，不过，如果server不支持ls -R&lt;br /&gt;那么就用传说中的find来实现&lt;/p&gt; &lt;p&gt;ls -R | grep .iso&lt;br /&gt;find | grep .iso 不过find和ls -R 相比有些不足，有时会堵死，这时用 find -d 3 来指定&lt;br /&gt;只搜索3层文件，一般就不会挂了&lt;/p&gt; &lt;p&gt;nlist&lt;br /&gt;显示远程文件名，这个是不能用彩色显示的，功能一般，而且参数也很少&lt;/p&gt; &lt;p&gt;queue jobs  suspend&lt;br /&gt;queue&lt;br /&gt;-m num1 num2&lt;br /&gt;-d num&lt;br /&gt;-n num command&lt;/p&gt; &lt;p&gt;example:&lt;/p&gt; &lt;p&gt;queue get FC4-i386-disc1.iso 任务将立即执行，如果前面没有任务的话&lt;br /&gt;jobs&lt;br /&gt;queue get FC3-i386-disc1.iso 添加这个任务到1号&lt;br /&gt;jobs&lt;br /&gt;queue get FC3-i386-rescuecd.iso 添加这个任务到2好&lt;br /&gt;jobs&lt;br /&gt;queue -n 1 get FC3-i386-disc3.iso 将这个命令添加到队列1号任务&lt;br /&gt;jobs&lt;br /&gt;queue -m 3 1 将排名第3的排到第1&lt;br /&gt;jobs&lt;br /&gt;queue -d 2 将队列中的2号任务删除&lt;br /&gt;jobs&lt;/p&gt; &lt;p&gt;get aaa.iso&lt;br /&gt;在文件传送中用ctrl-z,那么这个传输将被放到后台运行，可以用jobs来查看&lt;br /&gt;实际上命令应当用后台下载，也就是&lt;br /&gt;get aaa.iso &amp;&lt;/p&gt; &lt;p&gt;queue stop将停止队列的执行，但是正在执行的队列不会受影响&lt;/p&gt; &lt;p&gt;queue start 将重新启动队列运行&lt;/p&gt; &lt;p&gt;queue单独的这样一个命令会列出queue的信息&lt;/p&gt; &lt;p&gt;停止运行中的jobs&lt;br /&gt;kill all&lt;br /&gt;kill job_number&lt;/p&gt; &lt;p&gt;当你在一个ftp server中打开了多个文件夹之后，一般你的命令若没有用re前缀的话，都会将当前的内容cache到本地硬盘内，这时你可以用scache看看你到过那些目录，然后可以用这个命令前面的数字，直接进入其目录内，比如&lt;br /&gt;scache&lt;br /&gt;4 ftp://aldfja/asldkfj/&lt;br /&gt;6 ftp://aldfja/asdfasd/asa&lt;/p&gt; &lt;p&gt;scache 6 这时你就进入了ftp://aldfja/asdfasd/asa这个目录中&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-6265136529331952805?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/6265136529331952805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/6265136529331952805'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/02/lftp.html' title='lftp 用法 教程 大全'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-8008557447117663298</id><published>2007-01-17T10:56:00.000+08:00</published><updated>2007-01-17T12:20:53.867+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MEEP'/><title type='text'>如何在MEEP中定义会聚的高斯光束</title><content type='html'>FDTD计算中，经常要用到高斯光束 ，MEEP中没有给出现成的高斯光束的定义。&lt;br /&gt;按浙江大学出版的＜光电子学＞书中的定义，写了一段定义聚焦高斯光束的代码。&lt;br /&gt;&lt;br /&gt;其中，&lt;br /&gt;g_beam_width 是束腰的宽度。&lt;br /&gt;g_beam_freq 是工作频率(归一化的)。&lt;br /&gt;g_beam_xcen, g_beam_ycen 是束腰的中心位置。&lt;br /&gt;调用的方式：&lt;br /&gt;    continuous_src_time src(g_beam_freq, 20);&lt;br /&gt;  &lt;br /&gt;    geometric_volume twist(vec(g_pml,  0),  vec(g_pml, g_y));&lt;br /&gt;    在y方向，源伸入到了pml里，这样可以保证边缘处不发生突变。&lt;br /&gt;               &lt;br /&gt;    f.add_volume_source(Hz, src, twist, gaussian, 1e3);&lt;br /&gt;    f.add_volume_source(Ez, src, twist, gaussian, 1e3);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;complex&lt;double&gt; gaussian(const vec &amp;p) {&lt;br /&gt; &lt;br /&gt;    double width = g_beam_width;&lt;br /&gt;       double lambda = 1./g_beam_freq;&lt;br /&gt;       double y = g_beam_ycen - g_y/2.;&lt;br /&gt;       double z = -g_beam_xcen;&lt;br /&gt;       double z0 = pi * width*width / lambda;&lt;br /&gt;       double wz = sqrt( width*width * ( 1.0 + pow(z/z0, 2) ) );&lt;br /&gt;       double phiz = atan(z/z0);&lt;br /&gt;       double r = sqrt( pow( p.x() - z, 2 ) + pow( p.y() - y, 2 ) );&lt;br /&gt;       double k = 2*pi/lambda;&lt;br /&gt;       double Rz = 0;&lt;br /&gt; &lt;br /&gt;       complex&lt;double&gt; u(0.0, 0.0);&lt;br /&gt; &lt;br /&gt;       if ( abs(z) &gt; 1e-6 ) {   &lt;br /&gt;               Rz = z * ( 1.0 + pow(z0/z, 2) );&lt;br /&gt;               u = width/wz * exp( -r*r / pow(wz, 2) ) * polar(1.0, ( k * (z + r*r/(2*Rz)) - phiz) );&lt;br /&gt;       }&lt;br /&gt;       else {&lt;br /&gt;        Rz = 0;&lt;br /&gt;               u = width/wz * exp( -r*r / pow(wz, 2) );&lt;br /&gt;       }&lt;br /&gt;     &lt;br /&gt;       return u;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/double&gt;&lt;/double&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-8008557447117663298?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/8008557447117663298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/8008557447117663298'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/01/meep.html' title='如何在MEEP中定义会聚的高斯光束'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-2752995604655222390</id><published>2007-01-17T10:20:00.000+08:00</published><updated>2007-01-17T10:40:11.977+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MEEP'/><title type='text'>如何判断一个点在不在三角形内部</title><content type='html'>用MEEP做计算时，初始化epsilon，想做一个三角形，这就需要判断这个点在不在三角形的内部。&lt;br /&gt;写了一小段C++代码来判断一个点是不是在三角形内部。&lt;br /&gt;基本思想：&lt;br /&gt;这个点和三角形三个顶点构成了三个小三角形，&lt;br /&gt;比较这三个小三角形的面积之和与原三角形的面积，如果相等，说明这个点落在三角形内部。&lt;br /&gt;如果三个小三角形的面积之和大于原三角形的面积，则说明这个点落在三角形的外面。&lt;br /&gt;&lt;br /&gt;技术细节：&lt;br /&gt;1、已知三角形三个顶点的坐标，求三角形的面积。1/2*|axb|即是三角形的面积。&lt;br /&gt;a和b分别是两条边。&lt;br /&gt;2、判断大小时，要注意数值误差，也就是1e-6的作用。&lt;br /&gt;&lt;br /&gt;double area(const vec p, const vec p2, const vec p3)&lt;br /&gt;{&lt;br /&gt;   double x = p2.x() - p.x();&lt;br /&gt;   double y = p2.y() - p.y();&lt;br /&gt; &lt;br /&gt;   double x2 = p3.x() - p.x();&lt;br /&gt;   double y2 = p3.y() - p.y();&lt;br /&gt; &lt;br /&gt;   double s = abs(x*y2 - x2*y)/2.;&lt;br /&gt;   return s;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;bool inside(const vec insert, const vec corner, const vec corner2, const vec corner3)&lt;br /&gt;{&lt;br /&gt;   double s = area(corner, corner2, corner3);&lt;br /&gt;   double ss = area(insert, corner, corner2);&lt;br /&gt;   double ss2 = area(insert, corner2, corner3);&lt;br /&gt;   double ss3 = area(insert, corner, corner3);&lt;br /&gt; &lt;br /&gt;   if ( ss + ss2 + ss3 - s &gt; 1e-6 ) return false;&lt;br /&gt; &lt;br /&gt;   return true;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-2752995604655222390?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/2752995604655222390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/2752995604655222390'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2007/01/blog-post_17.html' title='如何判断一个点在不在三角形内部'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-4361050489047899613</id><published>2006-12-25T19:53:00.000+08:00</published><updated>2006-12-25T19:58:24.609+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MEEP'/><title type='text'>computing the extraction efficiency of slab</title><content type='html'>弄了好久，一直没有好的结果，sigh.&lt;br /&gt;&lt;br /&gt;&gt;&lt;i&gt;    In the post "How to calculate the extraction efficiency of spontaneous &lt;/i&gt;&lt;br /&gt;&gt;&lt;i&gt; emission from slabs using C++ interface?" by Jun She, he constructed a &lt;/i&gt;&lt;br /&gt;&gt;&lt;i&gt; geometry without slab and defined the flux through the top surface as total &lt;/i&gt;&lt;br /&gt;&gt;&lt;i&gt; emitted flux, and then put a slab in the geometry and re-compute the flux &lt;/i&gt;&lt;br /&gt;&gt;&lt;i&gt; through the top surface, and the extraction efficiency is the ratio of the &lt;/i&gt;&lt;br /&gt;&gt;&lt;i&gt; later flux to the former flux. The computation looks like that for &lt;/i&gt;&lt;br /&gt;&gt;&lt;i&gt; transmission spectrum. However, you have ever said that "...the same current &lt;/i&gt;&lt;br /&gt;&gt;&lt;i&gt; source puts on a different amount of power depending on its surroundings..." &lt;/i&gt;&lt;br /&gt;Exactly, but this difference is a real physical effect and directly  influences the extraction efficiency.  The reason is that the total power  emitted by a dipole source at a point in a given structure is proportional  to the local density of states at that point, and the local density of  states in turn is proportional to the rate of spontaneous emission (by  Fermi's Golden Rule).  So, the ratio of the emitted flux spectra from a point current source  between two structures (e.g. slab vs. no slab) is proportional to the  ratio of the spontaneous emission extraction efficiency of those two  structures as a function of frequency.&lt;br /&gt; &gt;&lt;i&gt;    In my intuitionistic opinion, the total flux and the flux through top &lt;/i&gt;&lt;br /&gt;&gt;&lt;i&gt; surface should be computed in the same run and in the same geometry.&lt;br /&gt;&lt;/i&gt;It all depends upon what you want to compute.  If you want to compute the  fraction of the power that goes upwards vs. in all directions, then yes  you want to have a single structure and compute both the total flux and  the upwards flux spectra and take the ratio.  If you want to know how much a particular structure enhances spontaneous  emission relative to another structure, including the effect of changes in  the local density of states, then you want to take the ratio of the  upwards ("extracted") flux spectra in the two different structures.  And there might be other questions that you would answer in different  ways.  The point is, you should always keep in mind what reference you  want to compare to when looking at flux spectra.  Steven&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-4361050489047899613?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://ab-initio.mit.edu/pipermail/meep-discuss/2006-November/000554.html' title='computing the extraction efficiency of slab'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4361050489047899613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/4361050489047899613'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/12/computing-extraction-efficiency-of-slab.html' title='computing the extraction efficiency of slab'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-8595963280887216441</id><published>2006-12-22T12:50:00.000+08:00</published><updated>2006-12-22T12:51:55.267+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LINUX'/><title type='text'>Ubuntu中Adobe Reader的中文支持</title><content type='html'>一般从Ubuntu源中安装的Adobe Reader不能正常显示没有内嵌中文字体的PDF。除了直接从Adobe下载安装脚本直接重新安装外，还可以在&lt;a href="http://www.adobe.com/products/acrobat/acrrasianfontpack.html"&gt;http://www.adobe.com/products/acrobat/acrrasianfontpack.html&lt;/a&gt;下载中文支持。运行脚本安装即可。&lt;div class="entry-content"&gt;  &lt;p&gt;注：安装时会提示输入安装路径，一般从Synaptic里安装的Adobe Reader会在&lt;code&gt;/usr/lib/Adobe/Acrobat7.0&lt;/code&gt;&lt;/p&gt;         &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-8595963280887216441?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/8595963280887216441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/8595963280887216441'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/12/ubuntuadobe-reader.html' title='Ubuntu中Adobe Reader的中文支持'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-3186004562302157237</id><published>2006-12-18T20:41:00.000+08:00</published><updated>2006-12-18T20:45:34.419+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><title type='text'>免电灯，另一种投机取巧</title><content type='html'>在88上看了一条新闻，全文转载如下，&lt;br /&gt;&lt;br /&gt;上海一些灯具交易市场和网上商城最近热销一种号称免电的台灯.售价几元、几十元&lt;br /&gt;的“免电灯”不用自家电,因而购者踊跃.&lt;br /&gt;　　“免电灯”实际不免电.上海市通信管理局副局长李振坤说,这种灯用的是电话线&lt;br /&gt;的馈电.“免电灯”虽然没有电源线,却有一根连着插头的电话线,接上就有了“电源&lt;br /&gt;”,灯就亮了.附图&lt;br /&gt;&lt;br /&gt;　　据有关专家介绍,“免电灯”实际用的是电信部门的电,可达到15瓦白炽灯的亮度&lt;br /&gt;.这种灯通过采用超高亮度LED发光管和内设变阻器,利用电话线路就能发出高亮光.目&lt;br /&gt;前电话线的电压在36伏上下,LED发光管刚好能在此范围内工作.&lt;br /&gt;&lt;br /&gt;　　李振坤指出,“免电灯”侵害了电信部门的合法权益,也侵犯了用户正常使用通信&lt;br /&gt;业务的权益.上海市通信管理局和上海市电信公司表示将着手调查此事,对电信设备的&lt;br /&gt;影响、线路损耗要作出评估,然后提出相关管理措施.&lt;br /&gt;&lt;br /&gt;　　“免电灯”偷了电信部门的电,将产生不良后果.首先“免电灯”的使用会影响电&lt;br /&gt;话的通话质量,如果电阻过大,还容易造成电话短路,严重时会影响电话终端设备,加重&lt;br /&gt;电信公司设备负荷,造成系统损害;其次,使用人甚至会因为不付电费而开长明灯,造成&lt;br /&gt;电力浪费.&lt;br /&gt;&lt;br /&gt;　　法律专家认为,按照有关法律的规定,销售和使用这种“免电灯”属违法行为.&lt;br /&gt;&lt;br /&gt;看完了这条新闻，不知道说什么好了，商人的头脑是很精明的，可是，用的地方，似乎不对了。&lt;br /&gt;在淘宝上搜了一下，还真是不少。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-3186004562302157237?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/3186004562302157237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/3186004562302157237'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/12/blog-post_18.html' title='免电灯，另一种投机取巧'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-9217696041287696024</id><published>2006-12-05T12:25:00.000+08:00</published><updated>2006-12-06T12:36:44.766+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><title type='text'>说说LED照明(2)</title><content type='html'>&lt;div style="text-align: left;"&gt;说到LED照明，首先让人想到的就是由GaN为基础的蓝(白)光LED。与此同时，一定会让人联想到一个日本的科学家，中村修二(Shuji Nakamura)先生。这里我全文转载一下Wikipedia上关于中村先生的介绍(检索词条，比Wikipedia方便的比较少了。可惜原因种种，在中国大陆，想查Wikipedia 还是有点小麻烦的)：&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Shuji Nakamura (中村 修二 Nakamura Shūji, born in May 22, 1954, Seto, Ehime, Japan) is a professor at the University of California, Santa Barbara (UCSB).&lt;br /&gt;Nakamura graduated from the University of Tokushima in 1977 with a degree in electronic engineering, and obtained a master's degree in the same subject two years later, after which he joined the Nichia Corporation, also based in Tokushima. It was while working for Nichia that Nakamura invented the first high brightness GaN LED which has the distinctive advantage of producing blue light, and which went into production in 1993. He was awarded a Doctor of Engineering degree from the University of Tokushima in 1994. He left Nichia Corporation in 1999 and took a position as a professor of engineering at the University of California, Santa Barbara.&lt;br /&gt;In 2001, Nakamura sued his former employer Nichia over his bonus for the discovery, which was originally 20,000 Yen (~US$180). Although Nakamura originally won an appeal for 20 billion Yen (~US$180 million), Nichia appealed the award and the parties settled in 2005 for 840 million Yen (~US$7 million), at the time the largest bonus ever paid by a Japanese company.&lt;br /&gt;Nakamura has also worked on green and white LEDs, and blue laser diodes, which will be used in Blu-ray Discs and HD DVDs.&lt;br /&gt;In 2006, Nakamura was awarded the second Finland's Millennium Technology Prize for his continuing efforts to make cheaper and more efficient light sources.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;05年秋天的APOC，我有幸能参加中村先生做的全场报告。当然我只能远远的瞻仰这位在LED照明领域做出了不可磨灭的贡献的科学家。让我印象最深的就是他不停的说I don't know。&lt;br /&gt;&lt;br /&gt;1990年，中村先生开始在日亚(Nichia)研究GaN器件。那一年，36年中村先生只是一位普通的工程师，没有博士学位，没有一篇论文，在整个学术界，他是默默无闻的。不到十年的时间，也就是在上个世纪90年代晚期，因其在氮化物半导体结晶膜的成长，P型氮化镓的制造和氮化镓系化合物结晶成长等方面的杰出贡献，中村修二成为了加州大学圣巴巴拉分校 (UCSB) 的教授，并于06年，获得了千禧技术奖。中村已经成为了LED照明领域举足轻重的学者。因为和日亚的巨额专利费的官司，中村也进入了普通人的视野。真的希望有一天，中国也能出现这样的人物 (袁隆平？)。但从现在的情况来看，似乎很难。&lt;br /&gt;&lt;br /&gt;顺便说个八卦故事，当年斯坦福，HP都想请中村修二，可是中村选择了圣巴巴拉。圣巴巴拉给中村修二的年薪是20万美金，中村不需要钱，他看中的是圣巴巴拉的技术和人材的支撑，所以每到年底就把钱捐给学校。因为他的到来，UCSB得到了数千万美元的捐赠，所以，圣巴巴拉的校长把中村看成是摇钱树了。&lt;br /&gt;&lt;br /&gt;中村修二在圣巴巴拉的小组的主页:&lt;br /&gt;http://ssldc.ucsb.edu/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-9217696041287696024?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/9217696041287696024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/9217696041287696024'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/12/led2.html' title='说说LED照明(2)'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-5631246868436620177</id><published>2006-12-03T20:36:00.000+08:00</published><updated>2006-12-04T12:34:49.528+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><title type='text'>说说LED照明(1)</title><content type='html'>说说LED照明(1)--写在前面的话&lt;br /&gt;&lt;br /&gt;近两年，固体照明(Solid State lighting)的市场发展的非常快，仅仅在江浙一带，就有大量的厂商在开发一些下游的产品。国家也投入了大量的人力物力，研发新型的固体照明材料。感谢ZJU/TUe/Philips Research的合作，我有幸能从事高发光效率的GaN芯片的研发工作。我也是外行，只能把自己所见的写下来，还希望大家来指正其中的错误。&lt;br /&gt;&lt;br /&gt;一个偶然的机会，我在浙大的图书馆借阅了Schubert教授所写的Light-emitting Diodes。&lt;br /&gt;翻了翻，我想试图把这本书的内容简单的翻译一下，借用了老先生的图片，还希望他能谅解。&lt;br /&gt;也不知道有没有人会看，也不知道我能不能坚持写下去。不管怎么样，开个好头总是需要的。&lt;br /&gt;(再次感谢浙大图书馆的工作人员，热心而且耐心)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_4bagvBm-tuo/RXOkrPtT1HI/AAAAAAAAAAg/MYpDLxDwMPI/s1600-h/Screenshot-1.png"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_4bagvBm-tuo/RXOkrPtT1HI/AAAAAAAAAAg/MYpDLxDwMPI/s400/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5004524673796658290" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;由上图，我们可以看到，实现固体(白光)照明，主要有两种方式：&lt;br /&gt;1. 全部由半导体材料构成的发光器件；&lt;br /&gt;主要是由(红、绿、蓝)三种半导体材料构成。大功率LED照明器件似乎主要是通过这种方式来实现的。印象中，浙江省科技厅十一五规化里就列了这种器件的研发工作。这里，问题还是有很多的，一个是发热，发热会导致色温的漂移等很多问题。另外，想做好高效率的绿光的LED也是比较困维的。&lt;br /&gt;&lt;br /&gt;2. 由半导体材料和荧光粉共同构成的器件。&lt;br /&gt;主要通过蓝光LED+荧光粉，UV+荧光粉等方式来实现。现在通常在市场上见到的白光LED都是通过这种实现的。&lt;br /&gt;&lt;br /&gt;固体照明主要的应用：&lt;br /&gt;1. 通用的照明&lt;br /&gt;这个现在应用的还比较少。较为常见的产品只是一些简单的LED灯具。浙赣线上的2185/2186的卧铺车厢的床头灯都是LED的。&lt;br /&gt;2. 车灯&lt;br /&gt;车灯的指示灯用得比较多了，好像广本的前车灯车也采用LED了，看到过广告， 我是穷人，买不起车，也没关心过车。&lt;br /&gt;3. 液晶的背光源&lt;br /&gt;手机里用的很多了，索尼的笔记本也采用了。不过我觉得OLED更适合做显示。液晶显示的原理就决定了它的效率是不高的。当然，现在OLED的技术还远不如液晶成熟。&lt;br /&gt;4. 投影&lt;br /&gt;还没见过。看到过说三星有做的。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;附：&lt;br /&gt;1. 一个很好的网站 http://lighting.sandia.gov/。美国能源部(DOE)似乎安排了不少项目在这里。&lt;br /&gt;&lt;br /&gt;2. LED的上游产业主要是指LED发光材料外延制造和芯片制造。&lt;br /&gt;中游产业是指LED器件封装产业。下游产业是指应用LED显示或照明器件后形成的产业。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-5631246868436620177?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/5631246868436620177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/5631246868436620177'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/12/led.html' title='说说LED照明(1)'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_4bagvBm-tuo/RXOkrPtT1HI/AAAAAAAAAAg/MYpDLxDwMPI/s72-c/Screenshot-1.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-7068145599938498973</id><published>2006-11-30T11:35:00.000+08:00</published><updated>2006-11-30T11:36:48.985+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MEEP'/><title type='text'>Meep for developers</title><content type='html'>If you want to modify the Meep source code, you will want to have a number of additional packages, most importantly:  &lt;ul&gt;&lt;li&gt; The &lt;a href="http://www.darcs.net/" class="external" title="http://www.darcs.net/" rel="nofollow"&gt;Darcs&lt;/a&gt;&lt;span class="urlexpansion"&gt; (&lt;i&gt;http://www.darcs.net/&lt;/i&gt;)&lt;/span&gt; version-control system. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Once you have Darcs, you can grab the latest development version of Meep with: &lt;/p&gt; &lt;pre&gt;darcs get &lt;a href="http://ab-initio.mit.edu/%7Emeep/meep" class="external" rel="nofollow"&gt;http://ab-initio.mit.edu/~meep/meep&lt;/a&gt; &lt;/pre&gt; &lt;p&gt;This gives you a fresh, up-to-date Meep repository in a directory &lt;code&gt;meep&lt;/code&gt;. See &lt;a href="http://www.darcs.net/" class="external" title="http://www.darcs.net/" rel="nofollow"&gt;www.darcs.net&lt;/a&gt; for more information on using Darcs; perhaps the most useful command is &lt;code&gt;darcs pull&lt;/code&gt;, which you can execute periodically to get any new updates to the development version. &lt;/p&gt;&lt;p&gt;Darcs will give you an absolutely minimal set of sources; to create a usable Meep directory, you should run: &lt;/p&gt; &lt;pre&gt;sh autogen.sh&lt;br /&gt;make&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;in the &lt;code&gt;meep&lt;/code&gt; directory.  (And subsequently, if you are editing the sources you should include &lt;code&gt;--enable-maintainer-mode&lt;/code&gt; whenever you reconfigure.)  To do this, however, you will need a number of additional packages beyond those listed above: &lt;/p&gt; &lt;ul&gt;&lt;li&gt; GNU &lt;a href="http://www.gnu.org/software/autoconf/" class="external" title="http://www.gnu.org/software/autoconf/" rel="nofollow"&gt;autoconf&lt;/a&gt;&lt;span class="urlexpansion"&gt; (&lt;i&gt;http://www.gnu.org/software/autoconf/&lt;/i&gt;)&lt;/span&gt;, &lt;a href="http://sources.redhat.com/automake/" class="external" title="http://sources.redhat.com/automake/" rel="nofollow"&gt;automake&lt;/a&gt;&lt;span class="urlexpansion"&gt; (&lt;i&gt;http://sources.redhat.com/automake/&lt;/i&gt;)&lt;/span&gt;, and &lt;a href="http://www.gnu.org/software/libtool/libtool.html" class="external" title="http://www.gnu.org/software/libtool/libtool.html" rel="nofollow"&gt;libtool&lt;/a&gt;&lt;span class="urlexpansion"&gt; (&lt;i&gt;http://www.gnu.org/software/libtool/libtool.html&lt;/i&gt;)&lt;/span&gt; — these are used to create the Makefiles and configure scripts, and to build shared libraries. &lt;/li&gt;&lt;li&gt; The &lt;a href="http://www.haskell.org/ghc/" class="external" title="http://www.haskell.org/ghc/" rel="nofollow"&gt;Glasgow Haskell Compiler&lt;/a&gt;&lt;span class="urlexpansion"&gt; (&lt;i&gt;http://www.haskell.org/ghc/&lt;/i&gt;)&lt;/span&gt; — some of Meep's C++ source code files are actually generated by programs (in the &lt;code&gt;hsrc/&lt;/code&gt; subdirectory) written in a programming language called &lt;a href="http://www.in2play.net/poxy-0.4/index.php?hl=0011101001&amp;q=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9IYXNrZWxs" class="extiw" title="w:Haskell (modified by gladder)"&gt;Haskell&lt;/a&gt;. &lt;/li&gt;&lt;li&gt; &lt;a href="http://www.swig.org/" class="external" title="http://www.swig.org/" rel="nofollow"&gt;SWIG&lt;/a&gt;&lt;span class="urlexpansion"&gt; (&lt;i&gt;http://www.swig.org/&lt;/i&gt;)&lt;/span&gt; — the Scheme/libctl interface to Meep is largely generated by a program called &lt;i&gt;SWIG&lt;/i&gt; (Simple Wrapper and Interface Generator). We currently require SWIG version 1.3.25 or later. Moreover, if you are using 1.3.27 or earlier, you must patch the file &lt;code&gt;Source/Modules/guile.cxx&lt;/code&gt; with &lt;a href="http://cvs.sourceforge.net/viewcvs.py/swig/SWIG/Source/Modules/guile.cxx?r1=1.33&amp;r2=1.34" class="external" title="http://cvs.sourceforge.net/viewcvs.py/swig/SWIG/Source/Modules/guile.cxx?r1=1.33&amp;amp;r2=1.34" rel="nofollow"&gt;this bug fix&lt;/a&gt;&lt;span class="urlexpansion"&gt; (&lt;i&gt;http://cvs.sourceforge.net/viewcvs.py/swig/SWIG/Source/Modules/guile.cxx?r1=1.33&amp;amp;r2=1.34&lt;/i&gt;)&lt;/span&gt;. &lt;/li&gt;&lt;/ul&gt;要干这个了，可是一点都不懂&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-7068145599938498973?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://ab-initio.mit.edu/wiki/index.php/Meep_Installation#Meep_for_developers' title='Meep for developers'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/7068145599938498973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/7068145599938498973'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/11/meep-for-developers.html' title='Meep for developers'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-75269415438984896</id><published>2006-11-29T23:20:00.000+08:00</published><updated>2006-11-29T23:21:06.391+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MEEP'/><title type='text'>Meep中实现平面波的斜入射</title><content type='html'>; This example creates an approximate TM planewave in vacuum&lt;br /&gt;; propagating at a 45-degree angle, by using a couple of current sources&lt;br /&gt;; with amplitude exp(ikx) corresponding to the desired planewave.&lt;br /&gt;&lt;br /&gt;(define-param s 11) ; the size of the computational cell, not including PML&lt;br /&gt;(define-param dpml 1) ; thickness of PML layers&lt;br /&gt;&lt;br /&gt;(define sxy (+ s (* 2 dpml))) ; cell size, including PML&lt;br /&gt;(set! geometry-lattice (make lattice (size sxy sxy no-size)))&lt;br /&gt;&lt;br /&gt;(set! pml-layers (list (make pml (thickness dpml))))&lt;br /&gt;(set-param! resolution 10)&lt;br /&gt;&lt;br /&gt;; pw-amp is a function that returns the amplitude exp(ik(x+x0)) at a&lt;br /&gt;; given point x.  (We need the x0 because current amplitude functions&lt;br /&gt;; in Meep are defined relative to the center of the current source,&lt;br /&gt;; whereas we want a fixed origin.)  Actually, it is a function of k&lt;br /&gt;; and x0 that returns a function of x ...&lt;br /&gt;(define ((pw-amp k x0) x)&lt;br /&gt; (exp (* 0+1i (vector3-dot k (vector3+ x x0)))))&lt;br /&gt;&lt;br /&gt;(define-param fcen 0.8) ; pulse center frequency&lt;br /&gt;(define-param df 0.02) ; turn-on bandwidth&lt;br /&gt;(define-param kdir (vector3 1 1)) ; direction of k (length is irrelevant)&lt;br /&gt;(define k (vector3-scale (* 2 pi fcen)&lt;br /&gt;            (unit-vector3 kdir))) ; k with correct length&lt;br /&gt;(define kxcos (vector3-x (unit-vector3 k))) ; direction cosine of k in x&lt;br /&gt;(define kycos (vector3-y (unit-vector3 k))) ; direction cosine of k in y&lt;br /&gt;&lt;br /&gt;(set! sources&lt;br /&gt;     (list&lt;br /&gt;    &lt;br /&gt;      ; left&lt;br /&gt;      (make source&lt;br /&gt;    (src (make continuous-src (frequency fcen) (fwidth df)))&lt;br /&gt;    (component Ez) (center (* -0.5 s) 0) (size 0 s)&lt;br /&gt;    (amp-func (pw-amp k (vector3 (* -0.5 s) 0))))&lt;br /&gt;&lt;br /&gt;      ; bottom&lt;br /&gt;      (make source&lt;br /&gt;    (src (make continuous-src (frequency fcen) (fwidth df)))&lt;br /&gt;    (component Ez) (center 0 (* -0.5 s)) (size s 0)&lt;br /&gt;    (amp-func (pw-amp k (vector3 0 (* -0.5 s)))))&lt;br /&gt;&lt;br /&gt;      ))&lt;br /&gt;&lt;br /&gt;(define-param T 400) ; run time&lt;br /&gt;(run-until T (at-end output-efield-z))&lt;br /&gt;&lt;br /&gt;过一会儿改成C++版。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-75269415438984896?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/75269415438984896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/75269415438984896'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/11/meep.html' title='Meep中实现平面波的斜入射'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-8807063106407291555</id><published>2006-11-29T10:05:00.000+08:00</published><updated>2006-11-29T10:12:13.729+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><title type='text'>LED取代传统光源，需克服的障碍</title><content type='html'>摘自＜半导体照明＞－－国家半导体照明工程发及产业联盟编著&lt;br /&gt;在通用照明领域，LED取代传统光源从目前来看，还需克服哪些障碍：&lt;br /&gt;（1）发光效率的障碍&lt;br /&gt;（2）价格障碍&lt;br /&gt;（3）功率LED制作技术&lt;br /&gt;         a. 提高外延片内量子效率；&lt;br /&gt;         b. 提高大尺寸芯片的外量子效率；  (我正在做的工作)&lt;br /&gt;         c. 提高封装的取光效率；。&lt;br /&gt;（4） 荧光粉的制作和涂敷技术&lt;br /&gt;          a. 高性能荧光分的制造技术；&lt;br /&gt;         b. 荧光粉的涂敷工艺技术。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-8807063106407291555?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/8807063106407291555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/8807063106407291555'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/11/led.html' title='LED取代传统光源，需克服的障碍'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-116374591173629748</id><published>2006-11-17T14:45:00.000+08:00</published><updated>2006-11-29T10:16:04.405+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><title type='text'>Light-Emitting-Diodes-dot-org home page</title><content type='html'>&lt;a href="http://www.ecse.rpi.edu/schubert/Light-Emitting-Diodes-dot-org/"&gt;Light-Emitting-Diodes-dot-org home page&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-116374591173629748?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.ecse.rpi.edu/schubert/Light-Emitting-Diodes-dot-org/' title='Light-Emitting-Diodes-dot-org home page'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/116374591173629748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/116374591173629748'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/11/light-emitting-diodes-dot-org-home.html' title='Light-Emitting-Diodes-dot-org home page'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-116356735951451249</id><published>2006-11-15T13:09:00.000+08:00</published><updated>2006-11-15T13:09:23.193+08:00</updated><title type='text'>FDTD Solutions | Optimizing the light extraction efficiency of LEDs using FDTD Solutions</title><content type='html'>&lt;a href="http://www.lumerical.com/led_light_extraction_fdtd"&gt;FDTD Solutions | Optimizing the light extraction efficiency of LEDs using FDTD Solutions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-116356735951451249?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.lumerical.com/led_light_extraction_fdtd' title='FDTD Solutions | Optimizing the light extraction efficiency of LEDs using FDTD Solutions'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/116356735951451249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/116356735951451249'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/11/fdtd-solutions-optimizing-light.html' title='FDTD Solutions | Optimizing the light extraction efficiency of LEDs using FDTD Solutions'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-116339467881093323</id><published>2006-11-13T13:11:00.000+08:00</published><updated>2007-10-22T19:05:00.459+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MEEP'/><title type='text'>Meep Introduction - AbInitio</title><content type='html'>&lt;a href="http://ab-initio.mit.edu/wiki/index.php/Meep_Introduction#Maxwell.27s_equations"&gt;Meep Introduction - AbInitio&lt;/a&gt;: "Units in Meep&lt;br /&gt;&lt;br /&gt;You may have noticed the lack of annoying constants like ε0, μ0, c, and 4π — that's because Meep uses 'dimensionless' units where all these constants are unity (you can tell it was written by theorists). As a practical matter, almost everything you might want to compute (transmission spectra, frequencies, etcetera) is expressed as a ratio anyway, so the units end up cancelling.&lt;br /&gt;&lt;br /&gt;In particular, because Maxwell's equations are scale invariant (multiplying the sizes of everything by 10 just divides the corresponding solution frequencies by 10), it is convenient in electromagnetic problems to choose scale-invariant units. That means that we pick some characteristic lengthscale in the system, a, and use that as our unit of distance.&lt;br /&gt;&lt;br /&gt;Moreover, since c = 1 in Meep units, a (or a / c) is our unit of time as well. In particular, the frequency ω in Meep (corresponding to a time dependence e − iωt) is always specified in units of 2πc / a, which is equivalent to specifying ω as 1 / T: the inverse of the optical period T in units of a / c. This, in turn, is equivalent to specifying ω as a / λ where λ is the vacuum wavelength. (A similar scheme is used in MPB.)&lt;br /&gt;&lt;br /&gt;For example, suppose we are describing some nanophotonic structure at infrared frequencies,"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-116339467881093323?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://ab-initio.mit.edu/wiki/index.php/Meep_Introduction#Maxwell.27s_equations' title='Meep Introduction - AbInitio'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/116339467881093323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/116339467881093323'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/11/meep-introduction-abinitio.html' title='Meep Introduction - AbInitio'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-28731952.post-116338314523407633</id><published>2006-11-13T09:59:00.000+08:00</published><updated>2007-10-22T19:06:07.035+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><title type='text'>Light-emitting diode - Wikipedia, the free encyclopedia</title><content type='html'>&lt;a href="http://en.wikipedia.org/wiki/Led"&gt;Light-emitting diode - Wikipedia, the free encyclopedia&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28731952-116338314523407633?l=shejun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://en.wikipedia.org/wiki/Led' title='Light-emitting diode - Wikipedia, the free encyclopedia'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/116338314523407633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28731952/posts/default/116338314523407633'/><link rel='alternate' type='text/html' href='http://shejun.blogspot.com/2006/11/light-emitting-diode-wikipedia-free.html' title='Light-emitting diode - Wikipedia, the free encyclopedia'/><author><name>Jun</name><uri>http://www.blogger.com/profile/15991038937008028574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://photos1.blogger.com/x/blogger2/2608/3507/1600/55318/DSC_3665.jpg'/></author></entry></feed>
