Time of Update: 2018-12-04
《Mnesia使用者手冊》中有幾句話:運算式 record_info(fields,record_name)被 Erlang 宏預先處理程式處理後返回記錄的網域名稱列表.定義記錄-record(foo, {x,y,z}), 運算式 record_info(fields,foo)被擴充為列表[x,y,z].所以,record_info/2這個是在編譯時間預先處理的,不是運行時執行,所以如下代碼會報錯的,而且是在編譯的時候就已經報錯:A=foo,record_info(fields, A).事實上,
Time of Update: 2018-12-04
Erlang Abstract Form--產生和擷取 Smerl通過修改Erlang的內部解析樹,並重新編譯這棵解析樹實現meta programming。為了理解Smerl,我們首先需要理解Erlang內部解析樹的產生、表達形式和擷取、修改的方法。Erlang把解析樹稱為Abstract Form,要獲得某一個模組的AbstractForm有兩種方法: * 從已經編譯的beam檔案中擷取Abstract Form * 直接解析原始碼產生Abstract
Time of Update: 2018-12-04
最近學習erlang,看了一些書籍和文檔,對“連結進程”之間的退出機制,一直也不是很明白,今天動手做了一個實驗。大致分為兩種情況:1.process_flag(trap_exit,false),也是預設行為: “A進程”和“B進程”相互連結,(1)如果“A進程”異常退出“B進程”也隨之退出;(2)如果“A進程”正常退出,“B進程”不做任何處理,繼續運行。2.process_flag(trap_exit,true): “A進程”和“B進程”相互連結,“B進程”設定了process_flag(
Time of Update: 2018-12-04
稍微深入研究過一點 java 的同學,恐怕都知道什麼叫做 “反編譯” 。也就是說,隨便拿一個 class 檔案,找一個 jad 來,所有的 “智慧結晶” 就全都 “真相大白” 了,跟原先的 source code 相比,區別只是沒有注釋而已。對於開源軟體開發人員來說,這本是無所謂的事,但對於商業開發人員而言,這簡直就是噩夢。在 java 的世界,道高一尺魔高一丈(及其反覆迭代)的結果是,這件事最終演變得比較詭異,以至於專門誕生了一個名叫 “代碼混淆”
Time of Update: 2018-12-04
1.debugger:start()或im()開啟調試環境。<br>2.把需要調試的模組載入到調試環境中,介面添加和代碼添加兩種方式。<br>注意:eclipse環境下編譯的beam預設是debug_info(猜測源碼沒看,類似c(module,[debug_info]編譯,ii(module)添加)編譯方式)轉載:http://hi.baidu.com/springwu/blog/item/a1f4cf5149c2702842a75b9f.html 調試是每個SW的
Time of Update: 2018-12-04
修改個人使用者佈建 在核心設定層面之上,還有很多個人使用者配置的參數,ulimit命令就是bash下提供的,查看對指定應用的限制值的工具。你可以通過ulimit –a命令顯示當前設定:core file size (blocks, -c) 0data seg size (kbytes, -d) unlimitedscheduling priority (-e) 20file size (blocks, -f) unlimitedpending signals (-i)
Time of Update: 2018-12-04
if three is only one task remianning on the rb-tree and this one is with a very hight nice value.this time the min_vruntime is the vruntime of the large-nice task,seeing dequeue-function.If a new task is inserted into the tree after a wihle,the new
Time of Update: 2018-12-04
經常看到名為BeginXXX和EndXXX的方法,他們是做什麼用的?這是.net的一個非同步方法呼叫名稱規範
Time of Update: 2018-12-04
在做 winform 設計時相關的內容時,需要繼承 IToolboxService 介面, .net 2.0,在system.drawing.design名稱空間下,有實現了IToolboxService介面的類ToolboxService,只需要繼承這個類就可以了,但是有時會發現,找不到 toolboService 這個類(很大可能是因為裝了 .net 1.1 的framework),這時,需要引用下面這個檔案 X:/WINDOWS/Microsoft.NET/Framework/v2.0
Time of Update: 2018-12-04
C# 的 xml 序列化時,文檔總會帶有xmlns:xsd="http://www.w3.org/2001/XMLSchema"andxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"如果想去掉,或者添加自己的命名空間,可以考慮下面的做法 //Create our own namespaces for the outputXmlSerializerNamespaces ns = new XmlSerializerNamespaces();
Time of Update: 2018-12-04
Multiple Journaling Modes in the ext3 FilesystemAside from its compatibility with ext2 filesystem utilities and the ease with which you can convert ext2 filesystems to ext3, the ext3 filesystem also offers several different types of journaling. A
Time of Update: 2018-12-04
首先我們自己編寫一個Result
Time of Update: 2018-12-04
<%@ page contentType="text/html; charset=GB2312"%><%@page import="java.sql.*,java.util.*"%><%@ page import="javax.sql.DataSource,javax.naming.InitialContext,java.sql.*"%><%@
Time of Update: 2018-12-04
作者:北南南北來自:LinuxSir.Org摘要:Linux作業系統中,計劃任務通常由cron來承擔,瞭解或掌握cron,能為我們管理伺服器帶來更多的便利,也能省卻更多的時間。本文也舉了一些簡單明了的例子,為了讓新手上路方便;目錄1、計劃任務概說;2、cron; 2.1 cron 的安裝和啟動; 2.1.1 在Redhat 或 Fedora等RPM包管理的系統的安裝;2.1.2 在Slackware系統中的安裝;2.1.3 cron 的開啟、停止、重新啟動方法; 2.2 cron 設定檔;2.2
Time of Update: 2018-12-04
基礎篇: 怎樣建立一個線程 我只簡單列舉幾種常用的方法,詳細可參考.Net多線程總結(一) 一)使用Thread類 ThreadStart threadStart=new ThreadStart(Calculate);//通過ThreadStart委託告訴子線程講執行什麼方法,這裡執行一個計算圓周長的方法 Thread thread=new Thread(threadStart); thread.Start(); //啟動新線程 public void Calculate(){ double
Time of Update: 2018-12-04
可以簡單地把雙核心技術理解為兩個“物理”處理器,是一種“硬”的方式;而超執行緒技術只是兩個“邏輯”處理器,是一種“軟”的方式。從原理上來說,超執行緒技術屬於Intel版本的多線程技術。這種技術可以讓單CPU擁有處理多線程的能力,而物理上只使用一個處理器。超執行緒技術為每個物理處理器設定了兩個入口─AS(Architecture
Time of Update: 2018-12-04
工作中常常遇到流水號產生的問題,有的客戶要求流水號必須連續,這個我們的開發工作提出了一個小難題。解決方案如下:方法一:採用最大號表的形式在資料庫中建立一個表專門存放其他資料庫的最大流水號,table_maxOrderID
Time of Update: 2018-12-04
部門 表的資料結構/*==============================================================*//* Table: qxgl_dept *//*==============================================================*/create table qxgl_dept ( dept_id
Time of Update: 2018-12-04
struts2和struts2和extremecomponents中文亂碼這個問題鬱悶了我很久。 <filter> <filter-name>extremecomponents</filter-name> <filter-class> org.extremecomponents.table.filter.ExportFilter </filter-class> </filter> <filter>
Time of Update: 2018-12-04
ajaxtag的版本是1.3 beta rc7;package com.work.ganjian;import java.util.List;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.ajaxtags.servlets.BaseAjaxServlet;import