Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use straight HTML blockquote for quoting

  • Loading branch information...
commit f56a29377910075592681f11f9d018caaf378956 1 parent 98c96d1
@cwgem authored
View
6 python/class-methods-and-self.html
@@ -198,7 +198,9 @@ <h3 id="_base_classes_and_overrides" class="sect2">Base Classes and Overrides</h
methods directly.</p>
<h3 id="_syntactic_assignment_issue" class="sect2">Syntactic Assignment Issue</h3>
<p class="paragraph">The final reason is more of a design explanation, so I&#8217;ll quote it here instead:</p>
-<pre class="listingblock"><code>Finally, for instance variables it solves a syntactic problem with assignment: since local variables in Python are (by definition!) those variables to which a value is assigned in a function body (and that aren’t explicitly declared global), there has to be some way to tell the interpreter that an assignment was meant to assign to an instance variable instead of to a local variable, and it should preferably be syntactic (for efficiency reasons). C++ does this through declarations, but Python doesn’t have declarations and it would be a pity having to introduce them just for this purpose. Using the explicit self.var solves this nicely. Similarly, for using instance variables, having to write self.var means that references to unqualified names inside a method don’t have to search the instance’s directories. To put it another way, local variables and instance variables live in two different namespaces, and you need to tell Python which namespace to use.</code></pre>
+<blockquote>
+Finally, for instance variables it solves a syntactic problem with assignment: since local variables in Python are (by definition!) those variables to which a value is assigned in a function body (and that aren’t explicitly declared global), there has to be some way to tell the interpreter that an assignment was meant to assign to an instance variable instead of to a local variable, and it should preferably be syntactic (for efficiency reasons). C++ does this through declarations, but Python doesn’t have declarations and it would be a pity having to introduce them just for this purpose. Using the explicit self.var solves this nicely. Similarly, for using instance variables, having to write self.var means that references to unqualified names inside a method don’t have to search the instance’s directories. To put it another way, local variables and instance variables live in two different namespaces, and you need to tell Python which namespace to use.
+</blockquote>
<h2 id="_conclusion" class="sect1">Conclusion</h2>
<p class="paragraph">This in conclusion is the logic behind explicitly indicating <code>self</code> in a
method argument, as well as using it within the method. The logic behind the
@@ -209,7 +211,7 @@ <h2 id="_conclusion" class="sect1">Conclusion</h2>
<div id="footer">
<p id="footer-text">
Version 1.0<br />
-Last updated 2013-03-24 18:48:28 PDT
+Last updated 2013-03-24 21:29:58 PDT
</p>
<div id="footer-badges">
<a href="http://validator.w3.org/check?uri=referer">
View
11 security/secure-workstation.html
@@ -48,12 +48,9 @@ <h2 id="_distribution" class="sect1">Distribution</h2>
<p class="paragraph">This easily combines the two profiles giving the benefits of the hardened toolchain, with the requirements for having a suitable KDE desktop. Finally the stable keyword branch of Gentoo was utilized to remain as solid as possible. The main exception to that was using a non-stable marked kernel and a few other required packages to be as up to date as possible and keep in line with the latest Grsecurity patches.</p>
<h2 id="_kernel" class="sect1">Kernel</h2>
<p class="paragraph">The kernel used is hardened-sources-3.7.8, which includes the <a href="http://grsecurity.net/">Grsecurity patchset</a>, as well as a few other security related patchsets. The importance of utilizing this patchset can be addressed by this quote from the project website:</p>
-<div class="quoteblock">
-<div class="content">
-<p class="paragraph">Unlike other expensive security "solutions" that pretend to achieve security through known-vulnerability patching, signature-based detection, or other reactive methods, grsecurity provides real proactive security. The only solution that hardens both your applications and operating system, Grsecurity is essential for public-facing servers and shared-hosting environments.</p>
-</div>
-<div class="attribution">
-</div></div>
+<blockquote>
+Unlike other expensive security "solutions" that pretend to achieve security through known-vulnerability patching, signature-based detection, or other reactive methods, grsecurity provides real proactive security. The only solution that hardens both your applications and operating system, Grsecurity is essential for public-facing servers and shared-hosting environments.
+</blockquote>
<p class="paragraph">While keeping the system up to date is important, it&#8217;s often hard to keep up with complete accuracy. Grsecurity comes in by providing protection against common attack vectors that most exploits utilize. Configuring Grsecurity in the kernel is incredibly easy, and can be achieved by simply using auto configuration and setting to Desktop accordingly:</p>
<div class="listingblock">
<div class="content"><div class="highlight"><pre>[*] GRsecurity
@@ -220,7 +217,7 @@ <h2 id="_conclusion" class="sect1">Conclusion</h2>
</div>
<div id="footer">
<p id="footer-text">
-Last updated 2013-03-24 18:51:31 PDT
+Last updated 2013-03-24 21:24:27 PDT
</p>
<div id="footer-badges">
<a href="http://validator.w3.org/check?uri=referer">
View
8 sources/python/class-methods-and-self.asciidoc
@@ -208,10 +208,12 @@ methods directly.
The final reason is more of a design explanation, so I'll quote it here instead:
-[quote]
-----
+[subs="none"]
+++++
+<blockquote>
Finally, for instance variables it solves a syntactic problem with assignment: since local variables in Python are (by definition!) those variables to which a value is assigned in a function body (and that aren’t explicitly declared global), there has to be some way to tell the interpreter that an assignment was meant to assign to an instance variable instead of to a local variable, and it should preferably be syntactic (for efficiency reasons). C++ does this through declarations, but Python doesn’t have declarations and it would be a pity having to introduce them just for this purpose. Using the explicit self.var solves this nicely. Similarly, for using instance variables, having to write self.var means that references to unqualified names inside a method don’t have to search the instance’s directories. To put it another way, local variables and instance variables live in two different namespaces, and you need to tell Python which namespace to use.
-----
+</blockquote>
+++++
== Conclusion
View
8 sources/security/secure-workstation.asciidoc
@@ -40,10 +40,12 @@ This easily combines the two profiles giving the benefits of the hardened toolch
The kernel used is hardened-sources-3.7.8, which includes the http://grsecurity.net/[Grsecurity patchset], as well as a few other security related patchsets. The importance of utilizing this patchset can be addressed by this quote from the project website:
-[quote]
-____
+[subs="none"]
+++++
+<blockquote>
Unlike other expensive security "solutions" that pretend to achieve security through known-vulnerability patching, signature-based detection, or other reactive methods, grsecurity provides real proactive security. The only solution that hardens both your applications and operating system, Grsecurity is essential for public-facing servers and shared-hosting environments.
-____
+</blockquote>
+++++
While keeping the system up to date is important, it's often hard to keep up with complete accuracy. Grsecurity comes in by providing protection against common attack vectors that most exploits utilize. Configuring Grsecurity in the kernel is incredibly easy, and can be achieved by simply using auto configuration and setting to Desktop accordingly:
Please sign in to comment.
Something went wrong with that request. Please try again.