-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.xml
58 lines (36 loc) · 30.1 KB
/
search.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title>Jetbrains Quest 2</title>
<link href="/2020/03/13/JetbrainsQuest2/"/>
<url>/2020/03/13/JetbrainsQuest2/</url>
<content type="html"><![CDATA[<h1 id="Jetbrains-Quest-2"><a href="#Jetbrains-Quest-2" class="headerlink" title="Jetbrains Quest 2"></a>Jetbrains Quest 2</h1><p><img src="https://i.loli.net/2020/03/11/yCjqozNmV42fblB.png" alt="yCjqozNmV42fblB"></p><p>这句话是反过来的。reverse()一下:</p><blockquote><p>The product domain-specific languages are specified, is where the next of quest hides. The case where Dutch tax is processed, is a place you should show interest. Look hard as when text is white, sometimes it is out of sight. Cmd/Ctrl+A helps.</p></blockquote><p>这句话里面有两个线索,”Domain specific language” 还有“Dutch tax”</p><p>打开jetbrains产品页,可以看到MPS的简介就是Domain specific language。</p><p><img src="https://i.loli.net/2020/03/11/1wi5d346aj9lvMG.png" alt="1wi5d346aj9lvMG"></p><p><img src="https://i.loli.net/2020/03/11/5ho2sqpDGmgxTaF.png" alt="5ho2sqpDGmgxTaF"></p><p>可以在Who is using里面看到第一个用户有提到”Dutch tax”, 还有一个作弊的方法就是在developer tools里面搜索quest,可以看到指向这个链接。</p><p>打开是一个PDF文件,还记得第一条线索里面,提到字是白色的,ctrl/cmd+A全选可能会有帮助,可以看到:</p><p><img src="https://i.loli.net/2020/03/11/n9oKiRzxkLtU3Zd.png" alt="n9oKiRzxkLtU3Zd"></p><p>选中复制,可以看到这句话:</p><blockquote><p>This is our 20th year as a company, we have shared numbers in our JetBrains Annual report, sharing the section with 18,650 numbers will progress your quest. </p></blockquote><p>打开<a href="https://www.jetbrains.com/company/annualreport/2019/" target="_blank" rel="noopener">年度报告</a>,继续偷个懒直接搜索</p><p><img src="https://i.loli.net/2020/03/11/N42HSDhcXgMIPCZ.png" alt="N42HSDhcXgMIPCZ"></p><blockquote><p>I have found the JetBrains Quest! Sometimes you just need to look closely at the Haskell language, Hello,World! in the hackathon lego brainstorms project <a href="https://blog.jetbrains.com/blog/2019/11/22/jetbrains-7th-annual-hackathon/" target="_blank" rel="noopener">https://blog.jetbrains.com/blog/2019/11/22/jetbrains-7th-annual-hackathon/</a></p></blockquote><p>打开这个hackthon网站,搜索lego brainstorms,看到一张图,右键:</p><p><img src="https://i.loli.net/2020/03/11/OlUDegoR4FaQsH2.png" alt="OlUDegoR4FaQsH2"></p><p>图片的alt tag里面包含新的线索:</p><blockquote><p>d1D j00 kN0w J378r41n2 12 4lW4Y2 H1R1N9? ch3CK 0u7 73h K4r33r2 P493 4nD 533 1f 7H3r3 12 4 J08 F0r J00 0R 4 KW357 cH4LL3n93 70 90 fUr7h3r @ l3457.</p></blockquote><p>这句话其实是英语火星文:</p><blockquote><p>Did you know Jetbrains is always hiring? Check out the kareers(careers) page and see if there is a job for you or for kwest(quest) challenge to go further atleast.</p></blockquote><p>打开<a href="https://www.jetbrains.com/careers/jobs/" target="_blank" rel="noopener">Jetbrains Jobs</a>,在网页上搜索quest可以看到一个“职位”:</p><p><img src="https://i.loli.net/2020/03/11/9WXghYeDMVCUdyx.png" alt="9WXghYeDMVCUdyx"></p><p>点进这个网页,可以看到里面有再往下一步的要求:</p><blockquote><h3 id="To-progress-with-your-quest-what-you’ll-need"><a href="#To-progress-with-your-quest-what-you’ll-need" class="headerlink" title="To progress with your quest what you’ll need:"></a>To progress with your quest what you’ll need:</h3><ul><li>To check out what we have for game developers.</li><li>Be geeky enough to remember how you used to cheat at Konami games.</li><li>Try cheating on the page.</li></ul></blockquote><p>搜索了一下jetbrains game development, 得到<a href="https://www.jetbrains.com/gamedev/" target="_blank" rel="noopener">https://www.jetbrains.com/gamedev/</a></p><p>不知道Konami作弊码的可以搜索一下,提示一下就是上下左右那个,不然也可以像我一样继续右键->搜索’quest’</p><p>最后一步不说啦,还挺有意思的,又有3个月免费全家桶啦!</p><p><img src="https://i.loli.net/2020/03/11/N4tV9RGIfyEku28.png" alt="N4tV9RGIfyEku28"></p>]]></content>
</entry>
<entry>
<title>A simple example of Express + MongoDb</title>
<link href="/2018/09/23/AIPBlog/"/>
<url>/2018/09/23/AIPBlog/</url>
<content type="html"><![CDATA[<h1 id="A-simple-example-of-Express-MongoDb"><a href="#A-simple-example-of-Express-MongoDb" class="headerlink" title="A simple example of Express + MongoDb"></a>A simple example of Express + MongoDb</h1><h2 id="Introduction"><a href="#Introduction" class="headerlink" title="Introduction"></a>Introduction</h2><p><a href="https://nodejs.org/en/" target="_blank" rel="noopener">Node.js</a> is a JavaScript runtime environment. It is a popular and perfect way to run data intensive real-time applications across distributed devices.<br><a href="https://expressjs.com/" target="_blank" rel="noopener">Express.JS</a> is a popular Node.js framework for building web services and applications.<br><a href="https://www.mongodb.com/" target="_blank" rel="noopener">MongoDb</a> is a cross-platform document-oriented database. It is classified as NoSQL and uses JSON like documents with schemata.</p><h2 id="Example"><a href="#Example" class="headerlink" title="Example"></a>Example</h2><p>This tutorial gives you a simple example of connecting express with mongodb database and display the data on the page.<br><img src="https://i.loli.net/2018/09/23/5ba688f241853.png" alt=""></p><h2 id="1-Install-node-js-and-npm"><a href="#1-Install-node-js-and-npm" class="headerlink" title="1. Install node.js and npm"></a>1. Install node.js and npm</h2><p>Follow the instructions on <a href="https://nodejs.org/en/download/" target="_blank" rel="noopener">node.js download</a> website and download the suitable installer for your computer.</p><h2 id="2-Install-MongoDb"><a href="#2-Install-MongoDb" class="headerlink" title="2. Install MongoDb"></a>2. Install MongoDb</h2><p>Follow the instructions and download MongoDb community server from <a href="https://www.mongodb.com/download-center#community" target="_blank" rel="noopener">MongoDb download center</a>.</p><h2 id="3-Start-the-MongoDb-server-and-client"><a href="#3-Start-the-MongoDb-server-and-client" class="headerlink" title="3. Start the MongoDb server and client"></a>3. Start the MongoDb server and client</h2><h4 id="Start-the-server-using"><a href="#Start-the-server-using" class="headerlink" title="Start the server using*"></a>Start the server using*</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">C:\Users\lisa1>mongod</span><br></pre></td></tr></table></figure><h4 id="Start-the-client-using"><a href="#Start-the-client-using" class="headerlink" title="Start the client using*"></a>Start the client using*</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">C:\Users\lisa1>mongo</span><br></pre></td></tr></table></figure><h5 id="Run-these-commands-in-two-separate-command-window"><a href="#Run-these-commands-in-two-separate-command-window" class="headerlink" title="Run these commands in two separate command window."></a>Run these commands in two separate command window.</h5><p>*For Windows users, add mongo’s bin folder to your path environment variables. Detailed instructions can be found <a href="https://dangphongvanthanh.wordpress.com/2017/06/12/add-mongos-bin-folder-to-the-path-environment-variable/" target="_blank" rel="noopener">here</a>. </p><h2 id="4-Create-and-insert-data-into-the-database"><a href="#4-Create-and-insert-data-into-the-database" class="headerlink" title="4. Create and insert data into the database"></a>4. Create and insert data into the database</h2><p>In your command window which runs the <code>mongo</code> command:<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">//create a database called 'blog'</span><br><span class="line">> use blog </span><br><span class="line">switched to db blog</span><br><span class="line"></span><br><span class="line">//Insert the data into the database, this will also create the collection if it doesn't exit.</span><br><span class="line">>db.users.insert({"name":"Name","email":"[email protected]","age":"20"})</span><br><span class="line"></span><br><span class="line">//View the data</span><br><span class="line">db.users.find()</span><br><span class="line">{ "_id" : ObjectId("5ba67ecce973e7f30e427a8e"), "name" : "name", "email" : "[email protected]", "age" : "20" }</span><br></pre></td></tr></table></figure></p><h2 id="5-Install-express-using-npm-and-generate-a-project"><a href="#5-Install-express-using-npm-and-generate-a-project" class="headerlink" title="5. Install express using npm and generate a project"></a>5. Install express using npm and generate a project</h2><p>Install express globally<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install express -g</span><br></pre></td></tr></table></figure></p><p>Install express-generator globally<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install express-generator -g</span><br></pre></td></tr></table></figure></p><p>Create a express project called ‘blog’ under current directory and use ejs template<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">express -e blog</span><br></pre></td></tr></table></figure></p><p>Change your working directory into that folder and install all dependencies<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cd blog</span><br><span class="line">npm install</span><br></pre></td></tr></table></figure></p><p>Run your project<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm start</span><br></pre></td></tr></table></figure></p><p>Check the result in your browser window, default URL is <code>http://localhost:3000/</code></p><h2 id="6-Install-Mongoose"><a href="#6-Install-Mongoose" class="headerlink" title="6. Install Mongoose"></a>6. Install Mongoose</h2><p><a href="https://www.npmjs.com/package/mongoose" target="_blank" rel="noopener">Mongoose</a> is a MongoDB object modelling tool.<br>Install mongoose and save it to the dependency list.<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install mongoose --save</span><br></pre></td></tr></table></figure></p><p>Check your <code>package.json</code> file to make sure you have all required packages<br><figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">{</span><br><span class="line"> <span class="attr">"name"</span>: <span class="string">"blog"</span>,</span><br><span class="line"> <span class="attr">"version"</span>: <span class="string">"0.0.0"</span>,</span><br><span class="line"> <span class="attr">"private"</span>: <span class="literal">true</span>,</span><br><span class="line"> <span class="attr">"scripts"</span>: {</span><br><span class="line"> <span class="attr">"start"</span>: <span class="string">"node ./bin/www"</span></span><br><span class="line"> },</span><br><span class="line"> <span class="attr">"dependencies"</span>: {</span><br><span class="line"> <span class="attr">"cookie-parser"</span>: <span class="string">"~1.4.3"</span>,</span><br><span class="line"> <span class="attr">"debug"</span>: <span class="string">"~2.6.9"</span>,</span><br><span class="line"> <span class="attr">"ejs"</span>: <span class="string">"~2.5.7"</span>,</span><br><span class="line"> <span class="attr">"express"</span>: <span class="string">"~4.16.0"</span>,</span><br><span class="line"> <span class="attr">"http-errors"</span>: <span class="string">"~1.6.2"</span>,</span><br><span class="line"> <span class="attr">"mongoose"</span>: <span class="string">"^5.2.17"</span>,</span><br><span class="line"> <span class="attr">"morgan"</span>: <span class="string">"~1.9.0"</span></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure></p><h2 id="6-Connect-Express-with-MongoDb"><a href="#6-Connect-Express-with-MongoDb" class="headerlink" title="6. Connect Express with MongoDb"></a>6. Connect Express with MongoDb</h2><h4 id="Modify-routes-index-js"><a href="#Modify-routes-index-js" class="headerlink" title="Modify routes/index.js"></a>Modify <code>routes/index.js</code></h4><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> express = <span class="built_in">require</span>(<span class="string">'express'</span>);</span><br><span class="line"><span class="keyword">var</span> router = express.Router();</span><br><span class="line"></span><br><span class="line"><span class="comment">//mongodb</span></span><br><span class="line"><span class="keyword">var</span> mongoose = <span class="built_in">require</span>(<span class="string">'mongoose'</span>);</span><br><span class="line">mongoose.Promise = global.Promise;</span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> conn = mongoose.connect(<span class="string">'mongodb://127.0.0.1:27017/blog'</span>);</span><br><span class="line"><span class="keyword">var</span> User = <span class="keyword">new</span> mongoose.Schema ({</span><br><span class="line">name:<span class="built_in">String</span>,</span><br><span class="line">email:<span class="built_in">String</span>,</span><br><span class="line">age:<span class="built_in">String</span>,</span><br><span class="line">});</span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> myModel = mongoose.model(<span class="string">'user'</span>, User);</span><br><span class="line"><span class="comment">/* GET home page. */</span></span><br><span class="line">router.get(<span class="string">'/'</span>, <span class="function"><span class="keyword">function</span>(<span class="params">req, res, next</span>) </span>{</span><br><span class="line">myModel.findOne({<span class="attr">name</span>:<span class="string">"name"</span>}, <span class="function"><span class="keyword">function</span> (<span class="params">err, user</span>)</span>{</span><br><span class="line"><span class="built_in">console</span>.log(user);</span><br><span class="line">res.render(<span class="string">'index'</span>, { <span class="attr">title</span>: <span class="string">'Express'</span>, <span class="attr">user</span>: user });</span><br><span class="line">});</span><br><span class="line"> </span><br><span class="line">});</span><br><span class="line"></span><br><span class="line"><span class="built_in">module</span>.exports = router;</span><br></pre></td></tr></table></figure><h4 id="Modify-view-index-ejs"><a href="#Modify-view-index-ejs" class="headerlink" title="Modify view/index.ejs"></a>Modify <code>view/index.ejs</code></h4><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE html></span></span><br><span class="line"><span class="tag"><<span class="name">html</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span><span class="tag"><<span class="name">%=</span> <span class="attr">title</span> %></span><span class="tag"></<span class="name">title</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">link</span> <span class="attr">rel</span>=<span class="string">'stylesheet'</span> <span class="attr">href</span>=<span class="string">'/stylesheets/style.css'</span> /></span></span><br><span class="line"> <span class="tag"></<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">h1</span>></span><span class="tag"><<span class="name">%=</span> <span class="attr">title</span> %></span><span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">p</span>></span>Name: <span class="tag"><<span class="name">%=</span> <span class="attr">user.name</span> %></span><span class="tag"></<span class="name">p</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">p</span>></span>Email: <span class="tag"><<span class="name">%=</span> <span class="attr">user.email</span> %></span><span class="tag"></<span class="name">p</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">p</span>></span>Age: <span class="tag"><<span class="name">%=</span> <span class="attr">user.age</span> %></span><span class="tag"></<span class="name">p</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure><h2 id="Restart-the-server-and-you-should-see-the-result-shown-in-the-example"><a href="#Restart-the-server-and-you-should-see-the-result-shown-in-the-example" class="headerlink" title="Restart the server and you should see the result shown in the example!"></a>Restart the server and you should see the result shown in the example!</h2>]]></content>
</entry>
<entry>
<title>有用的网站</title>
<link href="/2018/06/17/sites/"/>
<url>/2018/06/17/sites/</url>
<content type="html"><![CDATA[<h2 id="IP代理"><a href="#IP代理" class="headerlink" title="IP代理"></a>IP代理</h2><p><a href="http://cn-proxy.com/" target="_blank" rel="noopener">cn-proxy.com</a><br><a href="http://tools.rosinstrument.com/proxy/" target="_blank" rel="noopener">tools.rosinstrument.com/proxy</a></p><h2 id="百度网盘下载"><a href="#百度网盘下载" class="headerlink" title="百度网盘下载"></a>百度网盘下载</h2><p><a href="https://github.com/proxyee-down-org/proxyee-down" target="_blank" rel="noopener">Proxyee-down</a></p>]]></content>
</entry>
<entry>
<title>LinuxGym Chapter 1</title>
<link href="/2018/06/13/linuxgymchapter1/"/>
<url>/2018/06/13/linuxgymchapter1/</url>
<content type="html"><![CDATA[<h4 id="1-Create-a-file"><a href="#1-Create-a-file" class="headerlink" title="1. Create a file"></a>1. Create a file</h4><p>Create a file called “hello.world” (without the quotes).<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">touch hello.world</span><br></pre></td></tr></table></figure></p><h4 id="2-Create-a-directory"><a href="#2-Create-a-directory" class="headerlink" title="2. Create a directory"></a>2. Create a directory</h4><p>Create a directory called “otherworld” (without the quotes) within your ch1-fdr directory.<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mkdir otherworld</span><br></pre></td></tr></table></figure></p><h4 id="3-Store-a-calendar"><a href="#3-Store-a-calendar" class="headerlink" title="3. Store a calendar"></a>3. Store a calendar</h4><p>Store the 2008 calendar produced by the “cal” command in the file “calendar” with no modifications to the output of the “cal” command.<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cal 2008</span><br></pre></td></tr></table></figure></p><h4 id="4-List-visible-files"><a href="#4-List-visible-files" class="headerlink" title="4. List visible files"></a>4. List visible files</h4><p>List all (non-hidden) files in the directory “/usr/local/linuxgym-data/gutenberg” and store this list into a file called “listvis”. Ensure that this is exactly the output of the command “ls”.<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ls -a /usr/<span class="built_in">local</span>/linuxgym-data/gutenberg</span><br></pre></td></tr></table></figure></p><h4 id="5-List-all-files"><a href="#5-List-all-files" class="headerlink" title="5. List all files"></a>5. List all files</h4><p>List all files in the directory “/usr/local/linuxgym-data/gutenberg” (including hidden files, but NOT including directories) and store this list into a file called “allfiles”. Ensure that this is exactly the output of the command “ls”. It may be helpful to consider the “all” and “almost-all” options in the ls manual page.<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ls -A /usr/<span class="built_in">local</span>/linuxgym-data/gutenberg</span><br></pre></td></tr></table></figure></p><h4 id="6-Top-of-file"><a href="#6-Top-of-file" class="headerlink" title="6. Top of file"></a>6. Top of file</h4><p>The “cat” function prints out the contents of a file. For example “cat /usr/local/linuxgym-data/census/a-j_malenames.txt” shows you an alphabetically ordered list of male names recorded by the US Census Bureau. Because the list scrolls off the top of the screen, you can not easily read the first 10 names. The “head” command solves this problem. Experiment with the “head” command and store the first 10 lines from the file a-j_malenames.txt into a file called “first-ten-names.txt”.<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">head -10 /usr/<span class="built_in">local</span>/linuxgym-data/census/a-j_malenames.txt</span><br></pre></td></tr></table></figure></p><h4 id="7-Merging-files"><a href="#7-Merging-files" class="headerlink" title="7. Merging files"></a>7. Merging files</h4><p>The “cat” function which prints out the contents of a file, can be used to print the contents of several files by giving it more than one argument. In the directory /usr/local/linuxgym-data/census/ there are two files: a-j_malenames.txt and k-z_malenames.txt.</p><p>Use “cat” to print out both of these files and store the output in a file called “a-z_malenames.txt” in the correct order.<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat /usr/<span class="built_in">local</span>/linuxgym-data/census/a-j_malenames.txt /usr/<span class="built_in">local</span>/linuxgym-data/census/k-z_malenames.txt</span><br></pre></td></tr></table></figure></p><h4 id="8-File-size"><a href="#8-File-size" class="headerlink" title="8. File size"></a>8. File size</h4><p>Look at the files in the directory /usr/local/linuxgym-data/teeny and indentify which is the smallest file. Copy this file into your ch1-fdr directory.<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">ls -lh /usr/<span class="built_in">local</span>/linuxgym-data/teeny </span><br><span class="line">``` </span><br><span class="line">output: </span><br><span class="line">>student@linuxgym:~/ch1-fdr$ ls -lh /usr/<span class="built_in">local</span>/linuxgym-data/teeny </span><br><span class="line">total 16K </span><br><span class="line">-rwxr-xr-x 1 root root 5.4K 2008-05-15 12:08 1mwsm10.txt </span><br><span class="line">-rwxr-xr-x 1 root root 4.8K 2008-02-22 04:00 2mwsm10.txt </span><br><span class="line">-rwxr-xr-x 1 root root 2.0K 2008-05-15 12:11 3mwsm10.txt </span><br><span class="line">-rwxr-xr-x 1 root root 2.1K 2008-05-15 12:15 4mwsm10.txt </span><br><span class="line"></span><br><span class="line">```bash </span><br><span class="line">cp /usr/<span class="built_in">local</span>/linuxgym-data/teeny/3mwsm10.txt 3mwsm10.txt</span><br></pre></td></tr></table></figure></p>]]></content>
<tags>
<tag> 31068 Web Systems </tag>
</tags>
</entry>
<entry>
<title>Hello World</title>
<link href="/2018/06/13/hello-world/"/>
<url>/2018/06/13/hello-world/</url>
<content type="html"><![CDATA[<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="noopener">Deployment</a></p>]]></content>
</entry>
</search>