<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.7.3">Jekyll</generator><link href="https://tojason.github.io/burning-rock/feed.xml" rel="self" type="application/atom+xml" /><link href="https://tojason.github.io/burning-rock/" rel="alternate" type="text/html" /><updated>2018-05-29T23:29:54+00:00</updated><id>https://tojason.github.io/burning-rock/</id><title type="html">Rurning-Rock</title><subtitle>An amazing website.</subtitle><author><name>Jason Situ</name></author><entry><title type="html">Preparation for interview</title><link href="https://tojason.github.io/burning-rock/interview-prep/" rel="alternate" type="text/html" title="Preparation for interview" /><published>2017-04-17T00:00:00+00:00</published><updated>2017-04-17T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/interview-prep</id><content type="html" xml:base="https://tojason.github.io/burning-rock/interview-prep/">&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;What is the different between &lt;strong&gt;int&lt;/strong&gt; and &lt;strong&gt;float&lt;/strong&gt;?&lt;/p&gt;

    &lt;p&gt;int: 4 bytes&lt;/p&gt;

    &lt;p&gt;float: 4 bytes&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;object-orient-programming&quot;&gt;Object Orient Programming&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;What is a clase?&lt;/li&gt;
  &lt;li&gt;What is an object?&lt;/li&gt;
  &lt;li&gt;What is the different between a class and an object?&lt;/li&gt;
  &lt;li&gt;What is the different between &lt;strong&gt;abstraction&lt;/strong&gt; and &lt;strong&gt;inheritance&lt;/strong&gt;?&lt;/li&gt;
  &lt;li&gt;What is the different between &lt;strong&gt;encapsulation&lt;/strong&gt; and &lt;strong&gt;abstraction&lt;/strong&gt;?&lt;/li&gt;
&lt;/ul&gt;</content><author><name>Jason Situ</name></author><summary type="html">What is the different between int and float?</summary></entry><entry><title type="html">Blinder Key ShortCut Nodes</title><link href="https://tojason.github.io/burning-rock/Blender-key-shortcut/" rel="alternate" type="text/html" title="Blinder Key ShortCut Nodes" /><published>2017-04-04T00:00:00+00:00</published><updated>2017-04-04T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/Blender-key-shortcut</id><content type="html" xml:base="https://tojason.github.io/burning-rock/Blender-key-shortcut/">&lt;p&gt;&lt;strong&gt;Shift + Mouse Middle Button&lt;/strong&gt;: Pan view
&lt;strong&gt;NumPad 5&lt;/strong&gt;: toggle between Orthographic-true right view or Perspective - some angles off view from left/right/top/down&lt;/p&gt;

&lt;p&gt;Select in view port:
&lt;strong&gt;Right Click on an object&lt;/strong&gt;
&lt;strong&gt;A Key&lt;/strong&gt;: select or de-select everything&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Select Multiple Object&lt;/strong&gt;: press shift&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">Shift + Mouse Middle Button: Pan view NumPad 5: toggle between Orthographic-true right view or Perspective - some angles off view from left/right/top/down</summary></entry><entry><title type="html">Fix Federa Mate on Virtual Box auto resize problem</title><link href="https://tojason.github.io/burning-rock/virtual-box-auto-resize-fixed/" rel="alternate" type="text/html" title="Fix Federa Mate on Virtual Box auto resize problem" /><published>2017-03-06T00:00:00+00:00</published><updated>2017-03-06T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/virtual-box-auto-resize-fixed</id><content type="html" xml:base="https://tojason.github.io/burning-rock/virtual-box-auto-resize-fixed/">&lt;p&gt;Try the follow code, see if that works for you.&lt;/p&gt;

&lt;p&gt;First step takes little longer, it is a huge update. Beware of your battery if you using laptop.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;1- &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;dnf update

2- reboot

3- &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;dnf install gcc kernel-devel-&lt;span class=&quot;k&quot;&gt;$(&lt;/span&gt;uname &lt;span class=&quot;nt&quot;&gt;-r&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;)&lt;/span&gt;

4- Insert Guest Additions CD and Run the installer

5- reboot
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Virtualbox version: &lt;em&gt;5.0.32 r112930&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Federa Mate version: &lt;em&gt;Fedora-MATE_Compiz-Live-x86_64-25-1.3&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://ask.fedoraproject.org/en/question/77949/virtualbox-screen-resolution-problem-with-fedora-23/&quot;&gt;Reference&lt;/a&gt;&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">Try the follow code, see if that works for you.</summary></entry><entry><title type="html">Subsequence vs. Substring</title><link href="https://tojason.github.io/burning-rock/subsequence-vs-substring/" rel="alternate" type="text/html" title="Subsequence vs. Substring" /><published>2017-03-04T00:00:00+00:00</published><updated>2017-03-04T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/subsequence-vs-substring</id><content type="html" xml:base="https://tojason.github.io/burning-rock/subsequence-vs-substring/">&lt;p&gt;Just saw a comprehensive definition in an algorithm class&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;subsequence&lt;/strong&gt; of a sequence (for example, an array, linked list, or string), obtained by removing zero or more elements and keeping the rest in the same sequence order.&lt;/p&gt;

&lt;p&gt;A subsequence is called a &lt;strong&gt;substring&lt;/strong&gt; if its elements are contiguous in the original sequence.&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">Just saw a comprehensive definition in an algorithm class</summary></entry><entry><title type="html">玄学公司 校园O1&amp;amp;O2 坐等拒信</title><link href="https://tojason.github.io/burning-rock/%E5%8E%BB%E7%8E%84%E5%AD%A6%E5%85%AC%E5%8F%B8%E6%A0%A1%E5%9B%AD-%E5%90%8E%E6%84%9F/" rel="alternate" type="text/html" title="玄学公司 校园O1&amp;O2 坐等拒信" /><published>2017-03-02T00:00:00+00:00</published><updated>2017-03-02T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/%E5%8E%BB%E7%8E%84%E5%AD%A6%E5%85%AC%E5%8F%B8%E6%A0%A1%E5%9B%AD-%E5%90%8E%E6%84%9F</id><content type="html" xml:base="https://tojason.github.io/burning-rock/%E5%8E%BB%E7%8E%84%E5%AD%A6%E5%85%AC%E5%8F%B8%E6%A0%A1%E5%9B%AD-%E5%90%8E%E6%84%9F/">&lt;p&gt;这周一刚刚去完Amzon校园O1&amp;amp;O2连做。今天才发现了一些东西，看来是我太笨。现在坐等据信.&lt;/p&gt;

&lt;p&gt;现在两个字： 挫折。
已经收不少据信，不少亚麻。&lt;/p&gt;

&lt;p&gt;暑假还是乖乖刷题.&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">这周一刚刚去完Amzon校园O1&amp;amp;O2连做。今天才发现了一些东西，看来是我太笨。现在坐等据信.</summary></entry><entry><title type="html">Git restore missing files from your online branch</title><link href="https://tojason.github.io/burning-rock/Git-Restore-Missing-Files/" rel="alternate" type="text/html" title="Git restore missing files from your online branch" /><published>2017-02-24T00:00:00+00:00</published><updated>2017-02-24T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/Git-Restore-Missing-Files</id><content type="html" xml:base="https://tojason.github.io/burning-rock/Git-Restore-Missing-Files/">&lt;p&gt;Some file was deleted accidently while doing the &lt;em&gt;CS 421&lt;/em&gt; mp.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git checkout &lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Reference: some stackoverflow post&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">Some file was deleted accidently while doing the CS 421 mp.</summary></entry><entry><title type="html">Linux-function to change user privilage</title><link href="https://tojason.github.io/burning-rock/linux-change-privilage/" rel="alternate" type="text/html" title="Linux-function to change user privilage" /><published>2017-02-22T00:00:00+00:00</published><updated>2017-02-22T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/linux-change-privilage</id><content type="html" xml:base="https://tojason.github.io/burning-rock/linux-change-privilage/">&lt;p&gt;setuid();&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">setuid();</summary></entry><entry><title type="html">CS 241 Review</title><link href="https://tojason.github.io/burning-rock/Review-CS241/" rel="alternate" type="text/html" title="CS 241 Review" /><published>2017-02-11T00:00:00+00:00</published><updated>2017-02-11T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/Review-CS241</id><content type="html" xml:base="https://tojason.github.io/burning-rock/Review-CS241/">&lt;h3 id=&quot;deadlock&quot;&gt;Deadlock&lt;/h3&gt;

&lt;p&gt;In order for deadlock to occur, Coffman Conditions must present.&lt;/p&gt;

&lt;p&gt;Why need to know Coffman Condition? Deadlock occurs only if all of the following conditons are exist. It looks like these four conditions are difficult to happen at the same time, but it is very likely to be happen.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Mutal Exclusion&lt;/strong&gt; : The resource can only be access to one process at a time.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Hold and Wait&lt;/strong&gt; : A process is requesting a resource while holding a resource.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Circular Wait&lt;/strong&gt; : Process A holding resource X and Process B holding resourcec Y. Meanwhile, Process A requests resouces Y and Process B requests resource X. The meaning is very straight forward, just like the name making circular loop.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;No Preemption&lt;/strong&gt; : A process can not force another process to release its resources.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;prevent-deadlock&quot;&gt;Prevent Deadlock&lt;/h3&gt;

&lt;p&gt;The ways to prevent deadlock happen is simple, breaking one of the Coffman Conditions.&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">Deadlock</summary></entry><entry><title type="html">First Post</title><link href="https://tojason.github.io/burning-rock/first-post/" rel="alternate" type="text/html" title="First Post" /><published>2017-01-11T00:00:00+00:00</published><updated>2017-01-11T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/first-post</id><content type="html" xml:base="https://tojason.github.io/burning-rock/first-post/">&lt;h2 id=&quot;a-first-post-on-jekyll&quot;&gt;A first post on Jekyll.&lt;/h2&gt;

&lt;p&gt;Found Jekyll is an awesome static web generator.&lt;/p&gt;

&lt;p&gt;Will start learning how to use liquid templete -&amp;gt; &lt;strong&gt;Djongo&lt;/strong&gt;.&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">A first post on Jekyll.</summary></entry><entry><title type="html">A Post Jekyll Automatic =)</title><link href="https://tojason.github.io/burning-rock/welcome-to-jekyll/" rel="alternate" type="text/html" title="A Post Jekyll Automatic =)" /><published>2017-01-10T00:00:00+00:00</published><updated>2017-01-10T00:00:00+00:00</updated><id>https://tojason.github.io/burning-rock/welcome-to-jekyll</id><content type="html" xml:base="https://tojason.github.io/burning-rock/welcome-to-jekyll/">&lt;p&gt;You’ll find this post in your &lt;code class=&quot;highlighter-rouge&quot;&gt;_posts&lt;/code&gt; directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run &lt;code class=&quot;highlighter-rouge&quot;&gt;jekyll serve&lt;/code&gt;, which launches a web server and auto-regenerates your site when a file is updated.&lt;/p&gt;

&lt;p&gt;To add new posts, simply add a file in the &lt;code class=&quot;highlighter-rouge&quot;&gt;_posts&lt;/code&gt; directory that follows the convention &lt;code class=&quot;highlighter-rouge&quot;&gt;YYYY-MM-DD-name-of-post.ext&lt;/code&gt; and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.&lt;/p&gt;

&lt;p&gt;Jekyll also offers powerful support for code snippets:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;print_hi&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;Hi, &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;print_hi&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Tom'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#=&amp;gt; prints 'Hi, Tom' to STDOUT.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Check out the &lt;a href=&quot;http://jekyllrb.com/docs/home&quot;&gt;Jekyll docs&lt;/a&gt; for more info on how to get the most out of Jekyll. File all bugs/feature requests at &lt;a href=&quot;https://github.com/jekyll/jekyll&quot;&gt;Jekyll’s GitHub repo&lt;/a&gt;. If you have questions, you can ask them on &lt;a href=&quot;https://talk.jekyllrb.com/&quot;&gt;Jekyll Talk&lt;/a&gt;.&lt;/p&gt;</content><author><name>Jason Situ</name></author><summary type="html">You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.</summary></entry></feed>