夏青虫

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2013年1月21日

摘要: 通过软件sam2p将png转换成eps即可:sam2pfig.png fig.eps 阅读全文
posted @ 2013-01-21 11:04 夏青虫 阅读(209) 评论(0) 推荐(0)

摘要: 从光标位置开始,处理单词后半部分capitalize-word (M-c) -- 首字母改为大写upcase-word (M-u) -- 全部改为大写downcase-word (M-l) -- 全部改为小写从光标位置开始,处理单词前半部分negtive-argument; capitalize-word (M-- M-c)negtive-argument; upcase-word (M-- M-u)negtive-argument; downcase-word (M-- M-l)改变选定区域的大小写downcase-region (C-x C-l) -- 选定区域全部改为小写upcase-. 阅读全文
posted @ 2013-01-21 10:59 夏青虫 阅读(2633) 评论(0) 推荐(0)

摘要: screen进入screen模式C-a c在当前screen下建立新的窗口exit退出当前窗口,如果它是此screen的唯一窗口时,此screen也将完全退出。C-a d 暂时断开screen会话screen -ls查看有哪些screen。screen -r id 打开编号为id的screen窗口。C-a w 显示所有窗口列表C-a n 切换到下一个窗口C-a p 切换到前一个窗口(与C-a n相对) 阅读全文
posted @ 2013-01-21 10:57 夏青虫 阅读(170) 评论(0) 推荐(0)

摘要: 有时候表达式或者语句太长,有时候为了美观,需要将一行代码写在几行,这时候就需要换行(续行)符号,...,,空格+三个点+逗号,注意别丢了空格,还有就是英文状态下输入。eg:a=b1+c1+ ..., b2+c2; 阅读全文
posted @ 2013-01-21 10:56 夏青虫 阅读(836) 评论(0) 推荐(0)

摘要: 原文地址:http://bbs.pinggu.org/thread-494423-1-1.html 一、入门教材: 1、曼昆《经济学原理》上下册,88元。梁小民教授翻译。曼昆为哈佛高才生,天才横溢,属新古典凯恩斯主义学派,研究范围偏重宏观经济分析。 该书为大学一年级学生而写,主要特点是行文简单、说理浅显、语言有趣。界面相当友好,引用大量的案例和报刊文摘,与生活极其贴近,诸如美联储为何存在,如何运作,Greenspan 如何降息以应付经济低迷等措施背后的经济学道理。该书几乎没有用到数学,而且自创归纳出“经济学10大原理”,为初学者解说,极其便利完全没有接触过经济学的人阅读。... 阅读全文
posted @ 2013-01-21 10:55 夏青虫 阅读(492) 评论(0) 推荐(0)

摘要: 原文地址:未知为经济学初学者写的读书推荐本版的读者都是高手,我不知道这里是否有初学者来。我假定有,本文是为他们写的。说实话,我至今仍认为我还是一个初学者,尽管我学经济学已经有9年了(十年磨一剑,我还差一年,哈哈)。我想初学经济学大凡都要读萨缪尔森的《经济学》,我那个时候读的是第12版,现在似乎出到第17版了。另一个可供的选择是曼昆的《经济学原理》(人大版)。读完初级就可以开始读中级教材了。就微观而言,平狄克的《微观经济学》(人大版)是不错的选择,涉及了微观经济学的大多数领域,配有案例,没有数学压力;瓦里安的《中级微观经济学》(三联版,即《现代观点》)可以作为提高,其章节是专题式的,有一点数学要 阅读全文
posted @ 2013-01-21 10:53 夏青虫 阅读(559) 评论(0) 推荐(0)

摘要: 原文地址:http://royontechnology.blogspot.com/2012/06/installing-emacs-241.htmlI was excited to see the announcement thatEmacs 24.1 has been released. I wanted to install and try. There were a few glitches that I faced during the installation. I thought it might be useful for someone who might be hitting 阅读全文
posted @ 2013-01-21 10:52 夏青虫 阅读(350) 评论(0) 推荐(0)

摘要: 原文地址:http://blog.renren.com/GetEntry.do?id=842366487&owner=242642426需要写的英文邮件多了,就觉得很吃力,尤其是当需要经常写给同一个人时。希望邮件的开头、结尾、一些客套的话能有不同的表达~~邮件的开头:感谢读者是邮件开场白的好办法。感谢您的读者能让对方感到高兴,特别是之后你有事相求的情况下会很有帮助。Thank you for contacting us.如果有人写信来询问公司的服务,就可以使用这句句子开头。向他们对公司的兴趣表示感谢。Thank you for your prompt reply.当一个客户或是同事很快 阅读全文
posted @ 2013-01-21 10:49 夏青虫 阅读(518) 评论(0) 推荐(0)

摘要: C = ControlM = Meta = Alt|EscBasicsC-x C-f"find" file i.e. open/create a file in bufferC-x C-ssave the fileC-x C-wwrite the text to an alternate nameC-x C-vfind alternate fileC-x iinsert file at cursor positionC-x bcreate/switch buffersC-x C-bshow buffer listC-x kkill bufferC-zsuspend emac 阅读全文
posted @ 2013-01-21 10:48 夏青虫 阅读(131) 评论(0) 推荐(0)

摘要: program test real, dimension(5) :: x integer :: n x = (/1., 2., 4., 3., 1./) n = maxloc(x) + 1 print *, nenda.f90(5): error #6366: The shapes of the array expressions do not conform. [N] n = maxloc(x) + 1----^compilation aborted for a.f90 (code 1)因为,maxloc的输出值是数组即使p是一个一维数组即使maxloc(p)输出只有一个值但是... 阅读全文
posted @ 2013-01-21 10:45 夏青虫 阅读(6565) 评论(0) 推荐(0)

摘要: 原文地址:http://blog.sciencenet.cn/home.php?mod=space&uid=588243&do=blog&id=502012 注意:现在计算机产生的随机数都是伪随机数。1.0-1之间均匀分布的随机数random_number(x) 产生一个0到1之间的随机数(x可以是向量),但是每次总是那几个数。用了random_seed ()后,系统根据日期和时间随机地提供种子,使得随机数更随机了。program random implicit none real :: x call random_seed () ! 系统根据日期和时间随机地提供种子 阅读全文
posted @ 2013-01-21 10:44 夏青虫 阅读(2025) 评论(0) 推荐(0)

摘要: You are only adding it to the main target.. I didn't realize. Add it to the mod target as well:set_target_properties(main mod PROPERTIES COMPILE_FLAGS "-fpp")Second option is to name the files .F90 instead of .f90, which will automatically trigger precompilation.Third option is to just 阅读全文
posted @ 2013-01-21 10:43 夏青虫 阅读(676) 评论(0) 推荐(0)

摘要: ./CMakeLists.txt:cmake_minimum_required (VERSION 2.6)project (inversion Fortran)set(CMAKE_Fortran_COMPILER "mpif90")set(CMAKE_AR xiar) # for -iposet(CMAKE_LINKER xild) # for -ipomessage(STATUS "xiar: " ${CMAKE_AR})message(STATUS "xild: " ${CMAKE_LINKER})set(CMAKE_LIBRAR 阅读全文
posted @ 2013-01-21 10:42 夏青虫 阅读(916) 评论(0) 推荐(0)

摘要: Intel(R) Compiler includes compiler options that optimize for instruction sets that are available in both Intel(R) and non-Intel microprocessors, but may perform additional optimizations for Intel microprocessors than for non-Intel microprocessors. In addition, certain compiler options for Inte... 阅读全文
posted @ 2013-01-21 10:42 夏青虫 阅读(825) 评论(0) 推荐(0)

摘要: tkThe problem is that I did not have tk-dev packages before I compiled Python3.2.3. After installing tk-dev and recompiled Python3.2.3 and matplotlib 1.2.x with a `setup.cfg` file and enable `backend = TkAgg`, I can show the picture windows.或者改成qt也可以,做法类似 阅读全文
posted @ 2013-01-21 10:38 夏青虫 阅读(330) 评论(0) 推荐(0)

摘要: 示例:clear all;clc;set(gca,'nextplot','replacechildren','box','off','color','b','xgrid','on');title('Get 20 frames of current window');%%for j=1:20plot(fft(eye(j+16)));axis([-1. 1. -1. 1.]);frame(j)=getframe(gcf); % get the framee 阅读全文
posted @ 2013-01-21 10:36 夏青虫 阅读(538) 评论(0) 推荐(0)

摘要: 原文地址:http://blog.sciencenet.cn/blog-653020-588460.html1.下载matlab的安装文件至主目录下,Mathworks.Matlab.R2012a.UNIX.iso2.挂载iso文件: sudo mount -o loop Mathworks.Matlab.R2012a.UNIX.iso /mnt3.跳转到挂载目录: cd /mnt4.安装: sudo ./install5.出现图形化界面,安装时以系统默认为准。6.窗口界面默认安装位置为 /usr/local/MATLAB/R2012a7.命令行打开matlab: sudo /usr/loca 阅读全文
posted @ 2013-01-21 10:35 夏青虫 阅读(412) 评论(0) 推荐(0)

摘要: cd ~/.emacs.d/elpa/starter-kit****/emacs starter-kit-defuns.el>>;(add-hook 'prog-mode-hook 'esk-turn-on-hl-line-mode);(add-hook 'prog-mode-hook 'idle-highlight-mode)M-x byte-compile-file 阅读全文
posted @ 2013-01-21 10:34 夏青虫 阅读(228) 评论(0) 推荐(0)

摘要: 1. Go tohttp://www.unidata.ucar.edu/downloads/netcdf/index.jsp, downloadThe netCDF C library and utilities, version 4.2.1.1andThe netCDF Fortran 77 and Fortran 90 libraries.2. tar -xzvf netcdf-4.2.1.1 tar -xzvf netcdf-fortran-4.23. cd netcdf-4.2.1.1 ./configure --disable-netcdf-4 --disable-dap In... 阅读全文
posted @ 2013-01-21 10:33 夏青虫 阅读(593) 评论(0) 推荐(0)

摘要: $sudo gedit /opt/Adobe/Reader9/bin/acroread-add a new line on the top of the file:export UBUNTU_MENUPROXY=-save and close it 阅读全文
posted @ 2013-01-21 10:32 夏青虫 阅读(91) 评论(0) 推荐(0)

摘要: 原文地址:http://www.ipgp.fr/~lucas/Contrib/animbeamer.htmlSynopsis:Want to have some animation in your Beamer/LaTeX presentation ? This tutorial will explain how to do thatRequierments:You must have Latex with beamer packages installed on you computer. You will need the animate.sty file. You have to rea 阅读全文
posted @ 2013-01-21 10:31 夏青虫 阅读(493) 评论(0) 推荐(0)

摘要: 原文地址:bbs.ustc.edu.cnComputational Mathematics Interpolation and approximation Polynomial interpolation and least square approximation; trigonometric inter polation and approximation, fast Fourier transform; approximations by ration al functions; splines. Nonlinear equation solvers Convergence of it. 阅读全文
posted @ 2013-01-21 10:30 夏青虫 阅读(1247) 评论(0) 推荐(0)

摘要: 原文地址:http://einsteinliu1986.blog.163.com/blog/static/103289627200982992645945/1.Aki and Richards 1980,<Quantitative Seismology Theory and Method>; 《定量地震学理论和方法》,地震出版社。2.J.F.Claerbout 1985,<Imaging the Earth's Interior>; 《地震成像理论及方法》,石油工业出版社。3.Oz.Yilmaz,<Seismic Data Analysis: Proces 阅读全文
posted @ 2013-01-21 10:28 夏青虫 阅读(631) 评论(0) 推荐(0)

摘要: 原文地址:http://bbs.pfan.cn/post-256197.html一).一般问题 二进制文件与我们通常使用的文本文件储存方式有根本的不同。这样的不同很难用言语表达,自己亲自看一看,理解起来会容易得多。因此,我推荐学习二进制文件读写的朋友安装一款十六进制编辑器。这样的编辑器有很多,在我们的CVF附带的集成开发环境下就可以(将二进制文件拖动到IDE窗口后松开)。VisualStudio2005也是可以的。(不过需要在File菜单下Open,File) 另外推荐一款使用较多的软件,叫做UltraEdit(以下简称UE)。是很不错的文本编辑器,也能做十六进制编辑器使用。 为什么要用... 阅读全文
posted @ 2013-01-21 10:25 夏青虫 阅读(386) 评论(0) 推荐(0)

摘要: $: sudo vim ~/.bashrc这个文件记录了用户终端配置找到if [ "$color_prompt " = yes ]; then PS1 ='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W \[\033[00m\]\$ ' else PS1 ='${debian_chroot:+($debian_chroot)}\u@\h:\W \$ '将红色的w由小写改成大写,可以表示只显示当前目录名称. 阅读全文
posted @ 2013-01-21 10:22 夏青虫 阅读(237) 评论(0) 推荐(0)

摘要: 体积模量(K) •杨氏模量(E) •拉梅参数(λ) •剪切模量(G) •泊松比(ν) •P波模量(M)换算公式均质各向同性线弹性材料具有独特的弹性性质,因此知道弹性模量中的任意两种,就可由下列换算公式求出其他所有的弹性模量。体积模量可由下式定义:其中为压强, 为体积, 是压强对体积的偏导数,单位Pa也就是帕斯卡。体积模量的倒数即为一种物质的压缩率。还有其他一些描述材料对应变的反应的物理量。比如剪切模量描述了材料对剪切应变的反应;而杨氏模量则描述了材料对线性应变的反应。对流体而言,只有体积模量具有意义。而对于不具有各向同性的固体材料(如纸、木等),上述三种弹性模量则不足以描述这些材料对应变的反应 阅读全文
posted @ 2013-01-21 10:20 夏青虫 阅读(7318) 评论(0) 推荐(0)

摘要: Channel DescriptionEHZ/EHN/EHE Short Period 100 spsBHZ/BHN/BHE Broad Band 20 spsLHZ/LHN/LHE Long Period 1 spsVHZ/VHN/VHE Very Long Period 0.1 spsBCI Broad Band Calibration SignalECI Short Period CalLOG Console LogACE Administrative Clock ErrorLCQ 1hz Clock QualityOCF Opaque... 阅读全文
posted @ 2013-01-21 10:07 夏青虫 阅读(741) 评论(0) 推荐(1)

摘要: 原文地址:未知上大学以后,我开始有了拖延的毛病。立下目标无数,但时常却动力奇缺,常常在网上浏览着各色的小说和帖子,或是玩很无聊的弱智在线小游戏,却不愿碰专业书本或文献一下,甚至哪怕deadline就在几天之后,只有在deadline之前一点点时间才会因紧迫感而开始着手学习任务。这样下来,学业上总体来说算是马马虎虎,但却离自己的理想越来越远。总之,就是无法完全地上进,又不愿彻底地堕落。拖延的基础,实际上是对自身很高甚至不切实际的期望。如果说完成任务是走过一块一人宽、十米长的厚木板,那么当它放在地面上时,几乎人人都可以轻松地走过。 但对结果的高期望则像是将这块木板架到了两座高楼间十层楼高的地方,于 阅读全文
posted @ 2013-01-21 10:05 夏青虫 阅读(121) 评论(0) 推荐(0)

摘要: 代码如下:#!/usr/bin/python3.2## Josh Lifton 2004## Permission is hereby granted to use and abuse this document# so long as proper attribution is given.## This Python script demonstrates how to use the numarray package# to generate and handle large arrays of data and how to use the# matplotlib package to 阅读全文
posted @ 2013-01-21 09:13 夏青虫 阅读(475) 评论(0) 推荐(0)