Difference between revisions of "DPS909 & OSD600 Winter 2019"

From CDOT Wiki
Jump to: navigation, search
(Week 2)
Line 81: Line 81:
  
 
* Open Source and Code Reading
 
* Open Source and Code Reading
** [https://blog.safia.rocks/post/169466425525/node-module-deep-dive-fs Deep Dive on the node fs module] by [https://blog.safia.rocks/ Safia Abdalla]
+
** truncate
 +
*** <code>echo "data" > file</code>
 +
*** <code>> file</code>
 
** <code>fs.truncate()</code>
 
** <code>fs.truncate()</code>
*** [https://github.com/nodejs/node/blob/8a86d9c1cf35fe4f892d483e3673083f5d8f42cf/lib/fs.js node.js source for truncate]
+
*** [https://nodejs.org/api/fs.html#fs_fs_truncate_path_len_callback docs]
*** [https://github.com/search?q=truncate+repo%3Anodejs%2Fnode+path%3A%2Ftest+language%3AJavaScript+language%3AJavaScript&type=Code Search results in nodejs/node's test/* directory for JavaScript files including 'truncate']
+
*** [https://github.com/nodejs/node/blob/6b7b8276d196ea5a0e6dcee4e63c548b7938e8f4/lib/fs.js#L618 JS src]
*** [https://coverage.nodejs.org/coverage-3bdc61d4d194e205/root/fs.js.html#L612 Code Coverage for fs.truncate]
+
*** [http://docs.libuv.org/en/v1.x/fs.html?highlight=truncate#c.uv_fs_ftruncate libuv docs]
*** [https://github.com/filerjs/filer/blob/master/src/filesystem/implementation.js#L2353 Filer source for truncate]
+
*** [https://github.com/nodejs/node/blob/8a86d9c1cf35fe4f892d483e3673083f5d8f42cf/deps/uv/src/unix/fs.c#L1229 POSIX C src]
*** [https://github.com/filerjs/filer/blob/master/tests/spec/fs.truncate.spec.js Filer tests for truncate]
+
**** Uses [http://man7.org/linux/man-pages/man2/truncate.2.html ftruncate() system call]
 +
*** [https://github.com/nodejs/node/blob/8a86d9c1cf35fe4f892d483e3673083f5d8f42cf/deps/uv/src/win/fs.c#L2318 Windows C src]
 +
**** Uses [https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/ntifs/nf-ntifs-ntsetinformationfile NtSetInformationFile() system call]
 +
*** [https://github.com/filerjs/filer/blob/master/src/filesystem/implementation.js#L2375 Filer source for truncate]
 +
** A great blog doing something similar: [https://blog.safia.rocks/post/169466425525/node-module-deep-dive-fs Deep Dive on the node fs module and fs.access()] by [https://blog.safia.rocks/ Safia Abdalla]
  
 
* [[DPS909/OSD600 Winter 2019 Lab 1|Lab 1]]
 
* [[DPS909/OSD600 Winter 2019 Lab 1|Lab 1]]

Revision as of 13:36, 18 January 2019

Week 1

  • Course introduction

Week 2

  • Licenses
    • Rights, privileges, responsibilities, etc. applicable to someone other than the work's creator
    • "Terms and Conditions"
    • These must be granted by a copyright holder