外汇市场的开市时间

外汇市场的开市时间 外汇市场的开市时间: 伦敦(London) – 美东时间 早上3点到中午12点(夏令时的北京时间下午15点到凌晨24点); 约占总外汇交易量的35% 纽约(New York) – 美东时间早上8点到下午17点(夏令时的北京时间晚上20点到翌日凌晨5点); 约占外汇总交易量的20% 悉尼(Sydney) – 美东时间下午17点到翌日凌晨2点 (夏令时的北京时间早上5点到下午14点); 约占外汇总交易量的4% 东京(Tokyo) – 美东时间晚上19点到翌日凌晨4点 (夏令时的北京时间早上7点到下午16点); 约占外汇总交易量的6%

2013-10-07 · 1 min · 22 words · -

fuser 命令用法详解

fuser 命令用法详解 http://www.ha97.com/category/linux" rel=“category tag http://www.ha97.com/tag/linux 查看哪些进程正在访问特定的文件、目录或端口。它也可以配合选项来终止这些进程。 语法 # fuser [ -c | -d | -f ] [ -k ] [ -u ] [ -x ] [ -V ]文件 … # 查看正在使用 TCP 端口 2222 的进程 fuser 2222/tcp # 终止(kill)正在使用 TCP 端口 2222 的进程 # || true 可以忽略失败,确保整个命令的退出码是 0(成功),防止脚本中断。 sudo fuser -k 2222/tcp || true 描述 此 fuser 命令列出了本地进程的进程号,那些本地进程使用File 参数指定的本地或远程文件。对于阻塞特别设备,此命令列出了使用该设备上任何文件的进程。 每个进程号后面都跟随一个字母,该字母指示进程如何使用文件。 c 将此文件作为当前目录使用。 e 将此文件作为程序的可执行对象使用。 r 将此文件作为根目录使用。 s 将此文件作为共享库 (或其它可装载对象) 使用。 ...

2013-10-06 · 1 min · 156 words · -

raspberry pi eth0 x60s wlan0 squid

raspberry pi eth0 x60s wlan0 squid raspberry pi eth0:192.168.0.59, mask 255.255.255.0 -> x60s eth0:192.168.0.1, mask 255.255.255.0, gateway:192.168.1.1, dns:192.168.1.1 -> x60s wlan0:192.168.1.119 mask:255.255.255.0 gateway:192.168.1.1 dns:192.168.1.1

2013-09-27 · 1 min · 24 words · -

程序计数器, The Program Counter, PC

程序计数器, The Program Counter, PC program counter (PC) 一般也被叫做 instruction pointer (IP), 在intel x86 cpu里有时候也被叫做 instruction address register (IAR), instruction counter, 或者是 instruction sequencer 的一部分, 程序计数器 程序计数器是用于存放执行指令的地方。 为了保证程序(在操作系统中理解为进程)能够连续地执行下去,CPU必须具有某些手段来确定下一条指令的地址。而程序计数器正是起到这种作用,所以通常又称为指令计数器。 在程序开始执行前,必须将它的起始地址,即程序的一条指令所在的内存单元地址送入PC,因此程序计数器 (PC) 的内容即是从内存提取的第一条指令的地址。当执行指令时,CPU将自动修改PC的内容,即每执行一条指令PC增加一个量,这个量等于指令所含的字节数,以便使其保持的总是将要执行的下一条指令的地址。由于大多数指令都是按顺序来执行的,所以修改的过程通常只是简单的对PC加1。 当程序转移时,转移指令执行的最终结果就是要改变PC的值,此PC值就是转去的地址,以此实现转移。有些机器中也称PC为指令指针IP (Instruction Pointer) 。 程序计数器 (Program Counter Register) 是一块较小的内存空间,它的作用可以看做是当前线程所执行的字节码的行号指示器。在虚拟机的概念模型里 (仅是概念模型,各种虚拟机可能会通过一些更高效的方式去实现) ,字节码解释器工作时就是通过改变这个计数器的值来选取下一条需要执行的字节码指令,分支、循环、跳转、异常处理、线程恢复等基础功能都需要依赖这个计数器来完成。 由于Java虚拟机的多线程是通过线程轮流切换并分配处理器执行时间的方式来实现的,在任何一个确定的时刻,一个处理器 (对于多核处理器来说是一个内核) 只会执行一条线程中的指令。因此,为了线程切换后能恢复到正确的执行位置,每条线程都需要有一个独立的程序计数器,各条线程之间的计数器互不影响,独立存储,我们称这类内存区域为"线程私有"的内存 如果线程正在执行的是一个Java方法,这个计数器记录的是正在执行的虚拟机字节码指令的地址;如果正在执行的是Natvie方法,这个计数器值则为空 (Undefined) 。此内存区域是唯一一个在Java虚拟机规范中没有规定任何OutOfMemoryError情况的区域。 以上描述截取自: 《深入理解Java虚拟机:JVM高级特性与最佳实践》 作者: 周志明 Each thread of a running program has its own pc register, or program counter, which is created when the thread is started. The pc register is one word in size, so it can hold both a native pointer and a returnValue. As a thread executes a Java method, the pc register contains the address of the current instruction being executed by the thread. An “address” can be a native pointer or an offset from the beginning of a method’s bytecodes. If a thread is executing a native method, the value of the pc register is undefined. ...

2013-09-27 · 1 min · 170 words · -

How to configure Office applications to run under a specific user account

How to configure Office applications to run under a specific user account This article was previously published under Q288367 SUMMARY We do not recommend or support automation to a Microsoft Office application from an unattended user account. For additional information on why Microsoft does not recommend automation under this context, click the following article number to view the article in the Microsoft Knowledge Base:257757 Considerations for server-side automation of Office If there is no choice but to automate Office from an unattended user account, the following steps can be used to configure the computer to run the Office application as a specific user, giving the application a fixed identity when it is started for Automation. MORE INFORMATION Caution Automation of any Office application from an unattended, non-interactive user account is risky and unstable. A single error in code or configuration can result in a dialog box that can cause the client process to stop responding (hang), that can corrupt data, or that can even crash the calling process (which could bring down your Web server if the client is ASP). Warning Office was not designed, and is not safe, for unattended execution on a server. Developers who use Office in this manner do so at their own risk. Regardless, it may be absolutely required to use Office in this manner. In these cases, special configuration must be done to avoid errors on Office startup. The steps in this article demonstrate how to configure Office to run as a specific user account when it is started for Automation. When you automate under a specific user account, you should be aware of the following problems: Any process that creates an Automation instance of the configured Office application creates the instance under the specific user account, allowing it to run with that user's security credentials. Setting the Distributed Componenet Object Model (DCOM) settings to run as a specific user is global to the system. This setting affects all users and programs that automate the Office application on the system. Terminal Server clients may not be able to use Office appropriately. You should not use this setting and the steps in this article on an application Terminal Server. Component Object Model (COM) creates a unique WinStation for the new instance of the Office application. Any dialog boxes or warnings that may display do not appear on the interactive desktop. If you set the Visible flag for an application, the interactive user will not see that application. For more information about COM and WinStations, see the "References" section. When COM loads a server to run as a specific user account, the registry hive for that user is not loaded. Because the hive is not loaded for that user, the system .DEFAULT hive is used. Because Office has not been run under an account with this hive, you may receive dialog boxes that prompt you for input or the Office CD-ROMs to complete installation. The dialog boxes are not visible on the interactive desktop, so the application appears to stop responding (hang). The dialog boxes may time out and allow the process to continue, but after a noticeable delay in running the program. To work around this situation, install an NT service that runs under the same user account that is set for the DCOM setting. The NT Service Control Manager (SCM) loads the hive for that user when the service starts. Because the changes in DCOM are global, configuring Office in this manner can have negative side effects for other clients on the system that use Office. It is possible that another client application, or Terminal Server clients, will not be able to use the Office application after the settings are made. Consider carefully what impact this has to your server before you make any changes to the DCOM configuration settings. If the problems listed here are too great for your design, or cause other unidentified problems, it is possible to configure Office differently and still allow it to start from an unattended process or service. For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:288366 How To Configure Office Applications to Run Under the Interactive User Account 288368 How To Configure Office Applications for Automation from a COM+/MTS Package Configuring Office as a Specific User To set up an Office Automation server under a specific user account, follow these steps: Log on to the computer as the Administrator and create a new user account that will automate Office. In our example, this account is named OfficeAutomationUser. Create a password for this user account, and select Never expire so that the password does not have to be changed. Add the OfficeAutomationUser account to the Administrators group. Log in to the computer as OfficeAutomationUser and install (or reinstall) Office using a complete install. For system robustness, it is recommended that you copy the contents of the Office CD-ROM to a local drive and install Office from this location. Start the Office application that you intend to automate. This forces the application to register itself. After the application is running, press ALT+F11 to load the Microsoft Visual Basic for Applications (VBA) editor. This forces VBA to initialize itself. Close the applications, including VBA. Click Start, click Run, and then type <kbd>DCOMCNFG</kbd>. Select the application that you want to automate. The application names are listed below:Microsoft Access 97/2002 - Microsoft Access Database Microsoft Access 2003 - Microsoft Office Access Application Microsoft Excel 97/2000/2002/2003 - Microsoft Excel Application Microsoft Word 97 - Microsoft Word Basic Microsoft Word 2000/2002/2003 - Microsoft Word Document Click Properties to open the property dialog box for this application. ...

2013-09-23 · 7 min · 1344 words · -

虚拟机栈(Virtual Machine Stack),栈帧(Stack Frame)

虚拟机栈(Virtual Machine Stack),栈帧(Stack Frame) 栈帧(Stack Frame) 栈帧(Stack Frame)是用于支持虚拟机进行方法调用和方法执行的数据结构,它是虚拟机运行时数据区的虚拟机栈 (Virtual Machine Stack)的栈元素。栈帧存储了方法的局部变量表,操作数栈,动态连接和方法返回地址等信息。第一个方法从调用开始到执行完成,就对应着一个栈帧在虚拟机栈中从入栈到出栈的过程。 每一个栈帧都包括了局部变量表,操作数栈,动态连接,方法返回地址和一些额外的附加信息。在编译代码的时候,栈帧中需要多大的局部变量表,多深的操作数栈都已经完全确定了,并且写入到了方法表的Code属性中,因此一个栈帧需要分配多少内存,不会受到程序运行期变量数据的影响,而仅仅取决于具体虚拟机的实现。 一个线程中的方法调用链可能会很长,很多方法都同时处理执行状态。对于执行引擎来讲,活动线程中,只有虚拟机栈顶的栈帧才是有效的,称为当前栈帧(Current Stack Frame),这个栈帧所关联的方法称为当前方法(Current Method)。执行引用所运行的所有字节码指令都只针对当前栈帧进行操作。 局部变量表 局部变量表是一组变量值存储空间,用于存放方法参数和方法内部定义的局部变量。在Java程序编译为Class文件时,就在方法表的Code属性的max_locals数据项中确定了该方法需要分配的最大局部变量表的容量。 在方法执行时,虚拟机是使用局部变量表完成参数变量列表的传递过程,如果是实例方法,那么局部变量表中的每0位索引的Slot默认是用于传递方法所属对象实例的引用,在方法中可以通过关键字"this"来访问这个隐含的参数,其余参数则按照参数列表的顺序来排列,占用从1开始的局部变量Slot,参数表分配完毕后,再根据方法体内部定义的变量顺序和作用域来分配其余的Slot。局部变量表中的Slot是可重用的,方法体中定义的变量,其作用域并不一定会覆盖整个方法,如果当前字节码PC计算器的值已经超出了某个变量的作用域,那么这个变量对应的Slot就可以交给其它变量使用。 局部变量不像前面介绍的类变量那样存在"准备阶段"。类变量有两次赋初始值的过程,一次在准备阶段,赋予系统初始值;另外一次在初始化阶段,赋予程序员定义的值。因此即使在初始化阶段程序员没有为类变量赋值也没有关系,类变量仍然具有一个确定的初始值。但局部变量就不一样了,如果一个局部变量定义了但没有赋初始值是不能使用的。 操作数栈 Java虚拟机的解释执行引擎被称为"基于栈的执行引擎",其中所指的栈就是指-操作数栈。 和局部变量区一样,操作数栈也是被组织成一个以字长为单位的数组。但是和前者不同的是,它不是通过索引来访问,而是通过标准的栈操作—压栈和出栈—来访问的。比如,如果某个指令把一个值压入到操作数栈中,稍后另一个指令就可以弹出这个值来使用。 虚拟机在操作数栈中存储数据的方式和在局部变量区中是一样的: 如int、long、float、double、reference和returnType的存储。对于byte、short以及char类型的值在压入到操作数栈之前,也会被转换为int。 虚拟机把操作数栈作为它的工作区——大多数指令都要从这里弹出数据,执行运算,然后把结果压回操作数栈。比如,iadd 指令就要从操作数栈中弹出两个整数,执行加法运算,其结果又压回到操作数栈中,看看下面的示例,它演示了虚拟机是如何把两个int类型的局部变量相加,再把结果保存到第三个局部变量的: begin iload_0 // push the int in local variable 0 onto the stack iload_1 // push the int in local variable 1 onto the stack iadd // pop two ints, add them, push result istore_2 // pop int, store into local variable 2 end 在这个字节码序列里,前两个指令 iload_0和iload_1将存储在局部变量中索引为0和1的整数压入操作数栈中,其后iadd指令从操作数栈中弹出那两个整数相加,再将结果压入操作数栈。第四条指令istore_2则从操作数栈中弹出结果,并把它存储到局部变量区索引为2的位置。 操作数栈也常被称为操作栈,它是一个后入先出栈(Last in First out,LIFO)。同局部变量表一样,操作数栈的最大深度也是编译的时候被写入到方法表的Code属性的max_stacks数据项中。操作数栈的每一个元素可以是任意Java数据类型,包括long和double。32位数据类型所占的栈容量为1,64位数据类型所占的栈容量为2。栈容量的单位为"字宽",对于32位虚拟机来说,一个"字宽"占4个字节,对于64位虚拟机来说,一个"字宽"占8个字节。 ...

2013-09-16 · 1 min · 98 words · -

偏向锁(Biased Locking)

偏向锁(Biased Locking) Java偏向锁(Biased Locking) 是Java6引入的一项多线程优化。它通过消除资源无竞争情况下的同步原语,进一步提高了程序的运行性能。 轻量级锁也是一种多线程优化,它与偏向锁的区别在于,轻量级锁是通过CAS来避免进入开销较大的互斥操作,而偏向锁是在无竞争场景下完全消除同步,连CAS也不执行 (CAS本身仍旧是一种操作系统同步原语,始终要在JVM与OS之间来回,有一定的开销) 。 所谓的无竞争场景,举个例子,就是单线程访问带同步的资源或方法。 偏向锁实现原理 偏向锁,顾名思义,它会偏向于第一个访问锁的线程,如果在接下来的运行过程中,该锁没有被其他的线程访问,则持有偏向锁的线程将永远不需要触发同步。 如果在运行过程中,遇到了其他线程抢占锁,则持有偏向锁的线程会被挂起,JVM会尝试消除它身上的偏向锁,将锁恢复到标准的轻量级锁。(偏向锁只能在单线程下起作用) 偏向模式和非偏向模式,在下面的mark word表中,主要体现在thread ID字段是否为空。 挂起持有偏向锁的线程,这步操作类似GC的pause,但不同之处是,它只挂起持有偏向锁的线程 (非当前线程) 。 在抢占模式的橙色区域说明中有提到,指向当前堆栈中最近的一个lock record (在轻量级锁原理一文有讲到,lock record是进入锁前会在stack上创建的一份内存空间) 。 这里提到的最近的一个lock record,其实就是当前锁所在的stack frame上分配的lock record。 整个步骤是从偏向锁恢复到轻量级锁的过程。 偏向锁也会带来额外开销 在JDK6中,偏向锁是默认启用的。它提高了单线程访问同步资源的性能。 但试想一下,如果你的同步资源或代码一直都是多线程访问的,那么消除偏向锁这一步骤对你来说就是多余的。事实上,消除偏向锁的开销还是蛮大的。 所以在你非常熟悉自己的代码前提下,大可禁用偏向锁 -XX:-UseBiasedLocking 。 http://blog.csdn.net/hsuxu/article/details/9472381 http://www.cnblogs.com/paddix/p/5405678.html

2013-09-13 · 1 min · 36 words · -

进入safepoint时如何让Java线程全部阻塞

进入safepoint时如何让Java线程全部阻塞 http://blog.csdn.net/iter_zc/article/details/41892567 在这篇聊聊JVM (六) 理解JVM的safepoint 中说了safepoint的基本概念,VM thread在进行GC前,必须要让所有的Java线程阻塞,从而stop the world,开始标记。JVM采用了主动式阻塞的方式,Java线程不是随时都可以进入阻塞,需要运行到特定的点,叫safepoint,在这些点的位置Java线程可以被全部阻塞,整个堆的状态是一个暂时稳定的状态,OopMap指出了这个时刻,寄存器和栈内存的哪些具体的地址是引用,从而可以快速找到GC roots来进行对象的标记操作。 那么当Java线程运行到safepoint的时候,JVM如何让Java线程挂起呢?这是一个复杂的操作。很多文章里面说了JIT编译模式下,编译器会把很多safepoint检查的操作插入到编译偶的指令中,比如下面的指令来自内存篇: JVM内存回收理论与实现 0x01b6d627: call 0x01b2b210 ; OopMap{[60]=Oop off=460} ;_invokeinterface size ; - Client1::main@113 (line 23) ; {virtual_call} 0x01b6d62c: nop ; OopMap{[60]=Oop off=461} ;_if_icmplt ; - Client1::main@118 (line 23) 0x01b6d62d: test %eax,0x160100 ; {poll} 0x01b6d633: mov 0x50(%esp),%esi 0x01b6d637: cmp %eax,%esi test %eax,0x160100 就是一个safepoint polling page操作。当JVM要停止所有的Java线程时会把一个特定内存页设置为不可读,那么当Java线程读到这个位置的时候就会被挂起 这个回答虽然是没有问题,但是有些点到为止的感觉,有些意犹未尽,我又深挖了一些资料,很多资料连着一起看才能说明问题,下面再深入说说到底JVM是如何让Java线程全部 阻塞的。 Points on Safepoints 这篇文章说明了一些问题。首先是关于一些safepoint的观点 All commercial GCs use safepoints. The GC reigns in all threads at safepoints. This is when it has exact knowledge of things touched by the threads. They can also be used for non-GC activity like optimization. A thread at a safepoint is not necessarily idle but it often is. Safepoint opportunities should be frequent. All threads need to reach a global safepoint typically every dozen or so instructions (for example, at the end of loops). safepoint机制可以stop the world,不仅仅是在GC的时候用,有很多其他地方也会用它来stop the world,阻塞所有Java线程,从而可以安全地进行一些操作。 看一下OpenJDK里面关于safepoint的一些说明 ```java // Begin the process of bringing the system to a safepoint. // Java threads can be in several different states and are // stopped by different mechanisms: // // 1. Running interpreted // The interpeter dispatch table is changed to force it to // check for a safepoint condition between bytecodes. // 2. Running in native code // When returning from the native code, a Java thread must check // the safepoint _state to see if we must block. If the // VM thread sees a Java thread in native, it does // not wait for this thread to block. The order of the memory // writes and reads of both the safepoint state and the Java // threads state is critical. In order to guarantee that the // memory writes are serialized with respect to each other, // the VM thread issues a memory barrier instruction // (on MP systems). In order to avoid the overhead of issuing // a mem barrier for each Java thread making native calls, each Java // thread performs a write to a single memory page after changing // the thread state. The VM thread performs a sequence of // mprotect OS calls which forces all previous writes from all // Java threads to be serialized. This is done in the // os::serialize_thread_states() call. This has proven to be // much more efficient than executing a membar instruction // on every call to native code. // 3. Running compiled Code // Compiled code reads a global (Safepoint Polling) page that // is set to fault if we are trying to get to a safepoint. // 4. Blocked // A thread which is blocked will not be allowed to return from the // block condition until the safepoint operation is complete. // 5. In VM or Transitioning between states // If a Java thread is currently running in the VM or transitioning // between states, the safepointing code will wait for the thread to // block itself when it attempts transitions to a new state. // 可以看到JVM在阻塞全部Java线程之前,Java线程可能处在不同的状态,这篇聊聊JVM (五) 从JVM角度理解线程 说了JVM里面定义的线程所有的状态。 ...

2013-09-13 · 6 min · 1110 words · -

button input, type="button" Which to use?

‘button input, type=“button” Which to use?’ http://web.archive.org/web/20110721191046/http://particletree.com/features/rediscovering-the-button-element/ http://www.peterbe.com/plog/button-tag-in-IE Here’s a page describing the differences (basically you can put html into a <button></button>) And an other page describing why people avoid <button></button> (Hint: IE6) Another IE problem when using <button />: And while we’re talking about IE, it’s got a couple of bugs related to the width of buttons. It’ll mysteriously add extra padding when you’re trying to add styles, meaning you have to add a tiny hack to get things under control. ...

2013-09-08 · 1 min · 83 words · -

OutOfMemoryException Fix

OutOfMemoryException Fix OutOfMemory exceptions are often caused by address space fragmentation in Visual Studio process. For users experiencing excessive OutOfMemory exceptions we provide a tool which overrides Visual Studio’s memory allocation policy to ensure more continuous address space for Common Language Runtime. To use the tool download wrappers.zip file, unpack it and run devenv2005_wrap, devenv2008_wrap and devenv2010_wrap instead of devenv.exe for Visual Studio 2005, 2008 and 2010 correspondingly. In some cases Visual Studio fails to start under wrappers. Check AppInit_DLLs. Rogue DLLs activated from there can interfere with wrappers. Example: wxvault.dll preinstalled with Dell laptops. ...

2013-09-04 · 1 min · 112 words · -

sql 的四舍五入取整问题

sql 的四舍五入取整问题 转自: http://hi.baidu.com/yahuudang/blog/item/4c65ab77f758b01fb151b953.html 经在sql server 2005测试,可以通过 SELECT CAST(‘123.456’ as decimal) 将会得到 123 (小数点后面的将会被省略掉) 。 如果希望得到小数点后面的两位。 则需要把上面的改为 SELECT CAST(‘123.456’ as decimal(38, 2)) ===>123.46 自动四舍五入了! 自己的例子: select CAST(AmountRmb as decimal(38)) as heji,CAST(NotFinFee as decimal(38)) as whx,* from Bill_Tab

2013-08-20 · 1 min · 37 words · -

解决JQuery.trim()函数ie下报错的问题

解决JQuery.trim()函数ie下报错的问题 经常碰到JQuery里的trim()函数在firefox支持,但是在IE里不支持 其主要原因是写法不对,下面是错误的写法 Java代码 <img alt="收藏代码" src="http://vsp.iteye.com/images/icon_star.png" /> var content = $('#content').val(); if(content.trim() == ") alert('空'); 上面的写法在firefox下不会报错,但在ie下确会报错 正确的写法应该为 Java代码 <img alt="收藏代码" src="http://vsp.iteye.com/images/icon_star.png" /> var content = $('#content').val(); if($.trim(content) == ") alert('空'); 或者为: Java代码 <img alt="收藏代码" src="http://vsp.iteye.com/images/icon_star.png" /> var content = $('#content').val(); if(jQuery.trim(content) == ") alert('空'); http://vsp.iteye.com/blog/1262441

2013-08-10 · 1 min · 46 words · -

正常体温

正常体温 正常体温不是一个具体的温度点,而是一个温度范围。机体深部的体温较为恒定和均匀,称深部体温;而体表的温度受多种因素影响,变化和差异较大,称表层温度。临床上所指的体温是指平均深部温度。一般以口腔、直肠和腋窝的体温为代表,其中直肠体温最接近深部体温。正常值: 口腔舌下温度为37℃ (范围36.2-37.2℃) ,直肠温度37.5℃ (比口腔温度高 (0.3-0.5℃) 。 人体内部的温度称体温。保持恒定的体温,是保证新陈代谢和生命活动正常进行的必要条件。体温是物质代谢的产物。三大营养物质在氧 人体正常体温范围 示意图 化过程中释放的能量,其中50%左右的能量变为体热以维持体温,并以热能的形式不断散发于体外;另有45%的能量转移到三磷酸腺苷 (ATP) 的高能磷酸键中,供机体利用。机体利用的最终结果仍转化为热能散出体外。这就是产生体温的由来。 正常人的体温相对恒定的,它通过大脑和丘脑下部的体温调节中枢调节和神经体液的作用,使产热和散热保持动态平衡。在正常生理状态下,体温升高时,机体通过减少产热和增加散热来维持体温相对恒定;反之,当体温下降时,则产热增加而散热减少,使体温仍维持在正常水平。 每日早晚、人体各个部位及男女之间的体温均存在着差异。人体正常体温有一个较稳定的范围,但并不是恒定不变的。正常人口腔温度(又称口温)为36.2℃~37.2℃,腋窝温度较口腔温度低0.2℃~0.5℃,直肠温度(也称肛温)较口腔温度高0.2℃~0.6℃。一天之中,清晨2~5时体温最低,下午5~7时最高,但一天之内温差应小于0.8℃。另外,女子体温一般较男子高0.35℃左右。女子体温在经期亦有些许变化。 在健康状态时,如饮食正常,衣着适宜,人体的体温一般是比较恒定的,即保持在37℃上下(大致介于36.2℃~37.2℃),而不因外界环境温度的改变而变化。人体正常体温平均在36~37℃之间 (腋窝) ,超出这个范围就是发热,38℃以下是低热,39℃以上是高热。[1] 测量体温一般常用3个部位,即口腔、腋窝及肛门: 儿童正常体温在肛门处为36.5℃~37.5℃之间; 儿童在口腔处为36.2℃~37.3℃之间; 儿童在腋窝处为35.9℃~37.2℃之间。 通过测量后,儿童凡超过正常范围0.5℃以上时,称为发热。不超过38℃称为低热,超过39℃者为高热。

2013-08-09 · 1 min · 24 words · -

Somebody and I

Somebody and I “I and someone are interested” is grammatically correct. It is the convention in English that when you list several people including yourself, you put yourself last, so you really should say “Someone and I are interested.” “Someone and I” is the subject of the sentence, so you should use the subjective case “I” rather than the objective “me”. “Someone and I” clearly means two people, so you should use “are” and not “is”. If it was “Someone or I …” then you would use “is”, because only one person is interested, either “someone” or “I”. ...

2013-08-09 · 2 min · 335 words · -

How to,List Current Keyboard Shortcuts

‘How to,List Current Keyboard Shortcuts’ Use this procedure to create a macro that generates a list of all the commands in the integrated development environment (IDE) and any shortcut keys mapped to those commands according to the current keyboard mapping scheme. Several keyboard mapping schemes are available in the IDE. You can change keyboard mapping schemes on the Keyboard page, under the Environment folder of theOptions dialog box. For more information, see How to: Work with Keyboard Shortcuts. <th> <img id="alert_note" title="Note" alt="Note" src="http://i.msdn.microsoft.com/areas/global/content/clear.gif" />Note </th> The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, clickImport and Export Settings on the Tools menu. For more information, see Working with Settings. To list current keyboard shortcut mappings On the Tools menu, point to Macros, and then click Macros IDE. In Project Explorer, double-click MyMacros. Right-click Module1 and then click Rename. Type KeyboardShortcuts as the new name for the module. Double-click KeyboardShortcuts to open the file in the editor. Paste the following code in the file after Public Module KeyboardShortcuts: Sub GetAllCommands() Dim cmd As Command Dim ow As OutputWindow = DTE.Windows.Item(Constants.vsWindowKindOutput).Object Dim owp As OutputWindowPane Dim exists As Boolean Dim i As Integer Dim sArray() As String sArray = New String() {} i = 1 exists = False For Each owp In ow.OutputWindowPanes If owp.Name = "Macro Output" Then exists = True Exit For End If i = i + 1 Next If exists Then owp = ow.OutputWindowPanes.Item(i) Else owp = ow.OutputWindowPanes.Add("Macro Output") End If owp.Clear() ' Output 1 line per command For Each cmd In DTE.Commands Dim binding As Object Dim shortcuts As String shortcuts = "" For Each binding In cmd.Bindings Dim b As String b = binding If Not shortcuts = "" Then shortcuts += "--OR-- " End If shortcuts = shortcuts + b + " " Next shortcuts = shortcuts.Trim() If Not cmd.Name.Trim().Equals("") And Not shortcuts.Equals("") Then sArray.Resize(sArray, sArray.Length + 1) sArray(sArray.Length - 1) = cmd.Name + vbTab + shortcuts End If Next Array.Sort(sArray) owp.OutputString(String.Join(vbCrLf, sArray)) End Sub ...

2013-08-08 · 3 min · 450 words · -

MT4外汇平台挂单交易四种类型buy limit,sell limit,buy stop,sell stop

MT4外汇平台挂单交易四种类型buy limit,sell limit,buy stop,sell stop 在外汇交易中,使用mt4平台进行挂单交易会根据不同的目的选择交易的四种类型,它们分别是: buy limit,sell limit,buy stop,sell stop,做金融交易必须了解和掌握它们不同的含义和用法。 Buy stop: 止损买进,即是指在相对与目前现价而言高于现价的价格挂单的买进操作指令 例子: Buy stop是一个追涨的行为,比如现在EURUSD是1.4321,你觉得只有向上突破了1.4400,才能确定升势,并进一步上扬,那么你可以使用Buy stop: 1.4410,那么当EURUSD上升到1.4410,你的买单才会成交,如果继续上扬,你将会盈利。 buy limit: 限价买进,即是指相对现价而言,低于现价的价格挂单的买进的操作指令 例子: buy limit是设定为以更低的价格买入 (做多) ,和股票的挂单方式是一样的;比如现在EURUSD是1.4321,你觉得趋势仍然是向上的,但是价格会回调到1.4300,然后还会继续上涨,则你需要使用buy limit: 1.4300,当价格回落到1.4300,你的买单将会成交,如果价格上扬,你将会盈利。 sell stop: 止损卖出,即是指相对现价而言,低于现价的价格挂单的卖出操作指令 例子: sell stop是一个杀跌的行为,比如现在EURUSD是1.4321,你觉得只有向下突破了1.4300,才能确定跌势,并进一步下跌,那么你可以使用sell stop: 1.4290,那么当EURUSD下跌到1.4290,你的卖单才会成交,如果继续下跌,你将会盈利。 sell limit: 限价卖出,即是指相对现价而言,高于现价的价格挂单的卖出操作指令 例子: sell limit是设定为以更高的价格卖出 (做空) ;比如现在EURUSD是1.4321,你觉得趋势仍然是向下的,但是价格会反弹到1.4350,然后还会继续下跌,则你需要使用sell limit: 1.4350,当价格上涨到1.4350,你的卖单将会成交,如果价格下跌,你将会盈利。 限价订单也就是挂单是你强大的交易工具,在实践中,多用就会体会到其强大的功能。

2013-08-07 · 1 min · 48 words · -

Rss

Rss https://rss.mk/ https://rssx.wiloon.com

2013-08-06 · 1 min · 3 words · -

FOR XML PATH

FOR XML PATH http://www.cnblogs.com/doubleliang/archive/2011/07/06/2098775.html FOR XML PATH 有的人可能知道有的人可能不知道,其实它就是将查询结果集以XML形式展现,有了它我们可以简化我们的查询语句实现一些以前可能需要借助函数活存储过程来完成的工作。那么以一个实例为主. 一.FOR XML PATH 简单介绍 那么还是首先来介绍一下FOR XML PATH ,假设现在有一张兴趣爱好表 (hobby) 用来存放兴趣爱好,表结构如下: 接下来我们来看应用FOR XML PATH的查询结果语句如下: SELECT * FROM @hobby FOR XML PATH 结果: 复制代码 1 爬山 2 ...

2013-07-29 · 2 min · 246 words · -

go epoll

go epoll https://colobu.com/2019/02/23/1m-go-tcp-connection/ https://speakerdeck.com/eranyanay/going-infinite-handling-1m-websockets-connections-in-go https://github.com/smallnest/1m-go-tcp-server https://www.freecodecamp.org/news/million-websockets-and-go-cc58418460bb https://github.com/mailru/easygo https://colobu.com/2015/05/22/implement-C1000K-servers-by-spray-netty-undertow-and-node-js/ https://colobu.com/2015/07/14/performance-comparison-of-7-websocket-frameworks/

2013-07-29 · 1 min · 9 words · -

dns PTR记录

dns PTR记录 PTR记录,是电子邮件系统中的邮件交换记录的一种;另一种邮件交换记录是A记录 (在IPv4协议中) 或AAAA记录 (在IP PTR (Pointer Recore),指针记录,是电子邮件系统中的一种数据类型,被互联网标准文件RFC1035所定义。与其相对应的是A记录、地址记录。二者组成邮件交换记录。[1] A记录解析名字到地址,而PTR记录解析地址到名字。 地址是指一个客户端的IP地址,名字是指一个客户的完全合格域名。 PTR记录被用于电子邮件发送过程中的反向地址解析。[2] 当正向域名解析完成后,还应当向您的线路接入商 (ISP) 申请做反向地址解析,以减少被国外机构退信的可能性。 v6协议中) 。PTR记录常被用于反向地址解析。

2013-07-28 · 1 min · 17 words · -