- 博客(14)
- 资源 (2)
- 收藏
- 关注
转载 Page Replacement
Notes(from here)Local vs. global replacementWhen a process incurs a page fault, a local page replacement algorithm selects for replacement some page that belongs to that same process (or a group of pro
2016-03-04 23:14:27 647
原创 JavaScript String split() Method
Syntaxstring.split(separator,limit)Example 1var str = "How are you doing today?";var res = str.split();The result of res will be an array with only one value:How are you doing today?Example 2var str =
2016-02-29 01:12:59 386
原创 JavaScript String length Property
Return the number of characters in a string:var str = "Hello World!";var n = str.length;The result of n will be:12
2016-02-29 01:08:54 297
原创 html - get the id of onclick(this), onfocus(this) or whatever(this)
<html> <head> function myOnclick(x){ var iddddd = x.id;//iddddd -> abcd } </head> <body> <input type="text" id="abcd" onclick="myOnClick(this)"...>...</i
2016-02-28 22:47:56 330
原创 Password Validation using regular expressions(JavaScript)
Including digit check, uppercase check, lowercase check, the length of password check, blank check.<script type="text/javascript"> function checkForm(form) { if(form.username.value == "") {
2016-02-28 22:42:48 995
原创 Basic C++ Container classes summary(Array, Vector, List)
ContainersArrayConstructorarray<int,10> arr;Iterate//approach 1for(auto s = arr.begin(); s != arr.end(); s++){ cout << *s;}//approach 2for(const auto & s: arr){ cout << s;}Sortsort(arr.b
2016-02-26 23:12:26 316
原创 Bridges and Frame Filtering
A 要发送给B,但不知道B的位置,所以发给了两个Segment的所有电脑,同时bridge现在知道了A的确切位置B要发送给A,已经知道A的位置,同时也知道B的位置,都在Segment 1 里面,所以只在Segment 1里面运行其他同理
2016-02-25 22:47:09 370
原创 JavaFx Notes
源文章(国内不知道要不要用梯子)Change sub fxml gui parts at runtime with Button ClickMainApp.javaLoads the MainView.fxmlMainView.fxml<?import javafx.scene.control.*?><?import javafx.scene.layout.*?> <BorderPane xml
2016-02-25 21:35:40 457
原创 Processes and Memory Organisation
Processes and Memory OrganisationCODE(静态存储区域)Also known as the TEXT SegmentUsually starts at or near address 0 and does not change size during the lifetime of the processContains: the machine instr
2016-02-24 00:28:46 299
原创 Memory Management(1)
Memory management (1)Memory HierarchiesComputers typically have memory hierarchiesRegisters, L1/L2/L3 cacheMain memoryDisks“Higher memory” is faster, more expensive and volatile, “lower
2016-02-23 22:34:14 330
原创 Memory Management(2)
Relocation and ProtectionPrinciplesRelocation: when a program is run, it does not know in advance which partition/addresses it will occupyCannot simply generate static addresses that are a
2016-02-23 22:31:51 451
原创 Pointers
PointersVariables:HasA nameAn addressA sizeA value Address of: & Pointers: *Used to denote a pointerA variable which will hold the address of some other variableRemem
2016-02-21 03:34:32 321
原创 Inheritance and virtual functions
What is inheritance?models the ‘is-a’ relationshipWhy do it?Get all member functions and data of the base classes, for free, without having to (re-)write them yourselfUsing inherit
2016-02-19 21:59:16 435
原创 Basic C++ Container classes summary(Array, Vector, List)
Containersarrayconstructorarray arr;iterateapproach 1 for(auto s = arr.begin(); s != arr.end(); s++){ cout }
2016-02-19 21:20:03 276
WEKA Revised:Data Mining Practical Machine Learning Tools and Techniques(3rd)
2015-04-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人