<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>shadowing &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/shadowing/</link>
	<description>Feed of posts on WordPress.com tagged "shadowing"</description>
	<pubDate>Sat, 30 Aug 2008 07:58:21 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Shadowing]]></title>
<link>http://ssem.wordpress.com/?p=15</link>
<pubDate>Wed, 09 Jul 2008 02:18:09 +0000</pubDate>
<dc:creator>jsebooth</dc:creator>
<guid>http://ssem.wordpress.com/?p=15</guid>
<description><![CDATA[shadowing here.
]]></description>
<content:encoded><![CDATA[<p>shadowing here.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Shadowing Variables in Java Demystified]]></title>
<link>http://javaforyou.wordpress.com/?p=46</link>
<pubDate>Fri, 27 Jun 2008 00:30:33 +0000</pubDate>
<dc:creator>Mohd Sanaulla</dc:creator>
<guid>http://javaforyou.wordpress.com/?p=46</guid>
<description><![CDATA[One of the meanings of the word &#8220;Shadow&#8221; in the Oxford Dictionary is &#8220;a weak or le]]></description>
<content:encoded><![CDATA[<p>One of the meanings of the word "Shadow" in the Oxford Dictionary is "a weak or less good version". Shadowing in Java is also something similar. One can shadow a variable in several ways. I would try to describe the one most comman ways which would trip most of us i.e. "Hiding an instance variable by shadowing it with a local Variable". What exactly is Shadowing in Java? Shadowing is nothing but redeclaring a variable that's already been declared somewhere else. The effect of Shadowing is to hide the previously declared variable in such a way that it may look as though you're using the hidden variable, but you're actually using the shadowing variable (The Code Snippet below will make it more clear). This most of the times happens by accident and causes hard-to-find bugs.</p>
<p><!--more--></p>
<p><span style="color:#008000;">/*<br />
This Code Snippet shows shadowing an Instance Variable by declaring a local variable of the same name either directly or in the argument<br />
*/</span></p>
<p>class <span style="color:#003366;"><strong>Person</strong></span><br />
{</p>
<p style="padding-left:30px;">static int <span style="color:#ff0000;">age</span>=20;<br />
static void adjustAge(int age)<br />
{</p>
<p style="padding-left:60px;"><span style="color:#800000;"><strong>age=age+20;</strong></span><br />
System.out.println(<span style="color:#800080;">"The Age in adjustAge() is "+ age</span>);</p>
<p style="padding-left:30px;">}<br />
public static void main(String[] args)<br />
{</p>
<p style="padding-left:60px;">Person p = new Person();<br />
System.out.println(<span style="color:#800080;">"Age is: " +<span style="color:#ff0000;">age</span></span>);<br />
adjustAge(age);<br />
System.out.println(<span style="color:#800080;">"Adjusted Age is: " +<span style="color:#ff0000;">age</span></span>);</p>
<p style="padding-left:30px;">}</p>
<p>}</p>
<p>The above code snippet is trying to change the age of the person, adding 20 to the existing age, which is done by the static method <strong>adjustAge()</strong>. So what will be the output? Any Gusses?</p>
<p><strong>Output:</strong></p>
<p><span style="color:#333399;">Age is: 20<br />
The Age in adjustAge() is 40<br />
Adjusted Age is:20</span></p>
<p><strong>Code Demystified:</strong></p>
<p>The line in the code which is bold and read in color is the main culprit i.e "<strong>age=age+20;</strong>". Can anyone guess what is the line exactly doing? It is actually updating the local variable "age" and not the instance variable "<span style="color:#ff0000;"><strong>age</strong></span>", i.e the instance variable is shadowed by the Local Variable. And the scope of the Local Variable is the block of code in which it is declared. So, the last Print Statement actually access the unchanged instance variable "<span style="color:#ff0000;"><strong>age</strong></span>". Shadowing can also involve object references, in which case it becomes even more interesting to deal with.</p>
<p>For people preparing for SCJP, you can expect few questions on Shadowing.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Shadowing and Scriptorium]]></title>
<link>http://snezhnost.wordpress.com/?p=57</link>
<pubDate>Sun, 27 Apr 2008 12:38:30 +0000</pubDate>
<dc:creator>snezhnost</dc:creator>
<guid>http://snezhnost.wordpress.com/?p=57</guid>
<description><![CDATA[I was going to do some experiments with shadowing (more information about what that is can be found ]]></description>
<content:encoded><![CDATA[<p>I was going to do some experiments with <strong>shadowing </strong>(more information about what that is can be found <a href="http://learnanylanguage.wikia.com/wiki/Shadowing">here</a>), but living in a small apartment in the centre of town kind of makes that one a little bit difficult. I've got 42m^2 to wander around on, unless I want to look like a complete freak among people. And if I'm not home alone, I don't really feel like doing it either ^^ However, the time I tried it, I did feel that it was very efficient. Not only did it make me wide awake and got my heart beating faster (talking in a loud voice while walking very quickly is harder than one may think), but it did help me remember better than when I sit down. And it is quite logic. When you sit down, you're not very far from lying down, and when you lie down, sleep is what comes to mind. So your brain kind of goes "aah, relaxation...", while if you run around, you need to be alert for various reasons (not only to keep your body moving, but to look out for things and so on), so your brain goes into active mode. And when in active mode, it will absorb and process knowledge better than when in a semi comatose one. That's the way I see it!</p>
<p>Just a quick recap in case someone was too much in a choma to look at those links:</p>
<p>1) Get a recorded text.</p>
<p>2) Put it on your mp3-player.</p>
<p>3) Listen to it WHILE repeating what the person says. At the same time or as best you can.</p>
<p>4) Walk fast and talk loudly, don't sit still and mumble.</p>
<p>Of course, it helps tremendously to know the text by heart first ;)</p>
<p>I'm kind of guessing this does wonders for your intonation!</p>
<p>I've noticed that when I ride my bicycle to work, I listen more attentively to the songs/texts on my iPod than when I take the tram. I only dare listen to music in the morning though, when I'm practically alone on the road. In the afternoon the cruel car drivers of Oslo will just run me down if I don't respectfully stay on my 20 cm of allocated space. &#62;:[</p>
<p>Now, the <strong>Scriptorium</strong>. Look <a href="http://learnanylanguage.wikia.com/wiki/Scriptorium">here</a>. Speak, write + speak, speak. Focus. I like this technique as well, even though it does get a bit tedious. However, when you only write down something, you do tend to rush it. Unless you're an extreme beginner, cause then you have to look at every letter of the word ;) With Russian I tend to rush it. Trying to slow down now, to get it to enter my brain and perhaps... stay there? I did this for Мошенники поневоле yesterday, and I'm going to listen to the audio five times now. Yes, you heard me.</p>
<p>And oh! Do note that I would never have discovered these things without the excellent <a href="http://how-to-learn-any-language.com/forum">Forum</a>, which now has a <a href="http://learnanylanguage.wikia.com/wiki/Learn_Any_Language">Wiki </a>(unofficial, I know) attached to it!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Reference Log for April 1st]]></title>
<link>http://destatballard.wordpress.com/?p=4</link>
<pubDate>Mon, 07 Apr 2008 21:24:36 +0000</pubDate>
<dc:creator>destinario</dc:creator>
<guid>http://destatballard.wordpress.com/?p=4</guid>
<description><![CDATA[No foolin&#8217;, I spent April 1st shadowing Pamela at the reference desk. Here are some of the que]]></description>
<content:encoded><![CDATA[<p>No foolin', I spent April 1st shadowing Pamela at the reference desk. Here are some of the questions I heard:</p>
<ul>
<li>What is the average salary for someone running an assisted-living center?</li>
<li>Do you have any books about running a non-profit?</li>
<li>I want to learn more about starting a co-op.</li>
<li>Do you have any Boxcar Children books?</li>
<li>I need non-fiction books about hunting ghosts.</li>
<li>I'm looking for plays I could do with a group of 3rd graders.</li>
</ul>
<p>I paid attention to how Pamela and the other librarians handled these and other questions so that I can start answering questions in the near future. The library was super busy, so I felt a little guilty standing around while people waited in line for help. Pamela picked up on how this might look (i.e., like I'm lazy) and told a staff member that I wasn't really "there" I was just shadowing. This turned into quite the joke. Now, I'm officially The Shadow. Doesn't this look just like me:</p>
<p><img src="http://www.shadowsanctum.net/screen/screen_1994/The_Shadow-Mist.jpg" alt="" width="311" height="396" /></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[I Believe the Children Are Our Future]]></title>
<link>http://charlestonphilosopher.wordpress.com/?p=71</link>
<pubDate>Fri, 22 Feb 2008 15:13:12 +0000</pubDate>
<dc:creator>aeqvitas</dc:creator>
<guid>http://charlestonphilosopher.wordpress.com/?p=71</guid>
<description><![CDATA[The following is an actual Thank You letter I received from a local student, who took part in a shad]]></description>
<content:encoded><![CDATA[<p>The following is an actual Thank You letter I received from a local student, who took part in a shadowing program at her high school. She an several others came over to the park to learn about the Hospitality and Tourism industry, and they were required, I'm guessing, to write thank you letters to us for helping them with their future careers. Again, this is the letter, word for word, exactly as it exists - sans the student's name, of course.</p>
<p><em>Mr Daniel<br />
Thank You<br />
Charleston Parks and Recreation</em></p>
<p><em>Dear Mr Daniel:<br />
Thank you for allowing to shadow you at Charleston County Parks enjoy meeting with you and learning about your position as a James Island office/campground. I understand that your responsibilities include answering phones and making reservations.</em></p>
<p><em>During my shadowing experience, I learned: that u have to have a good attitude, and a good personality. I need to develop my skills in the following areas to be successful in this career fields: Nursing.</em></p>
<p><em>I would like to continue studying in this field because it is what I need.</em></p>
<p><em>Name of Student</em></p>
<p>Again, I'm not lying. However, it is hard working being an office/campground at the same time.</p>
<p>And I feel I need to explain the final sentence of the second paragraph. This was the girl who thought that Hospitality dealt with Hospitals. That's all I'm going to say about that.</p>
<p>I also liked the header for the letter. Classy.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Top 10 Linux FUD Patterns, Part 5]]></title>
<link>http://linuxfud.wordpress.com/?p=219</link>
<pubDate>Mon, 18 Feb 2008 13:29:21 +0000</pubDate>
<dc:creator>brinkleybw</dc:creator>
<guid>http://linuxfud.wordpress.com/?p=219</guid>
<description><![CDATA[Linux FUD Pattern #5: Linux is not secure
There are some out there who would like for you to believe]]></description>
<content:encoded><![CDATA[<p><b>Linux FUD Pattern #5: Linux is not secure</b></p>
<p>There are some out there who would like for you to believe that Linux is unsafe.  What better way to instill fear than to form doubt in your mind about a system's abilities to protect your data?</p>
<p>A reason for the supposed lack of security often cited in FUD is the origin and maintenance of Linux in the “hacker” community.  The term “<a href="http://en.wikipedia.org/wiki/Hacker">hacker</a>” has evolved from a term of endearment to one associated almost exclusively with <a href="http://en.wikipedia.org/wiki/Cybercrime">cybercrime</a>.  To say that Linux was created and is supported by hackers gives the impression that the OS and its related applications are riddled with built-in security holes, <a href="http://en.wikipedia.org/wiki/Backdoor_%28computing%29">backdoors</a> for gaining system access, <a href="http://en.wikipedia.org/wiki/Spyware">spyware</a> for purposes of identity theft, hidden network tools that help intruders cover their footprints as they travel from machine to machine through cyberspace, and any other sort of <a href="http://en.wikipedia.org/wiki/Malware">malicious software</a> for various and sundry purposes.  To “hack” no longer means to “tinker” or to “fiddle with”, but to “break into” and “cause harm”.  The term may conjure mental images of a scene from a horror movie, an evil man with an axe about to hack his way through the door to the house protected by the dark of night.  Such is the imagery used to spawn fear.</p>
<p><b>Let's examine Linux security by answering two questions.  Do security components exist?  And, can they be trusted?</b></p>
<p>The components required to make a system secure depends on many factors, because different systems are used in different ways by different people.  Moreover, a weakness in a system's security may be mitigated by strengths in some other compensating controls.  There are some basic options that are commonly used to secure systems, <i>all of which are available on Linux</i>.</p>
<p><a href="http://en.wikipedia.org/wiki/Password">Password</a> protected login is the hallmark form of authentication.  It is easy to implement, easy to use, can be highly effective, doesn't require additional/expensive hardware and the expectations and conventions surrounding it are already present in modern culture.  Sure, there are more advanced <a href="http://en.wikipedia.org/wiki/Biometric">biometric</a> devices such as palm readers and retina scanners, but the relative cost in money <i>and</i> effort of implementing these safeguards for the average home user and for most business desktops is prohibitively high.  There are two aspects to password security: the strength of the password itself, and the authentication scheme behind it.  <a href="http://en.wikipedia.org/wiki/Password_strength">Password strength</a> is the responsibility of the user, not the OS.  Most Linux distros either require password protection or at least have it enabled by default.  Usually, the passwords are protected on the local system by <a href="http://en.wikipedia.org/wiki/Shadow_password">shadowing</a> and various schemes such as <a href="http://en.wikipedia.org/wiki/Kerberos_%28protocol%29">Kerberos</a> can be used to protect the transmission of login information over a network.</p>
<p>Related to password authentication is the <a href="http://en.wikipedia.org/wiki/File_system_permissions">file system permissions</a> granted to users once they've logged in.  Linux and Unix use file-based permissions, denoting how the owner, members of the owner's primary work group and the “world” of users on the system can interact with <i>each</i> file or directory.  Privileges do not cascade as they do with other operating systems that use <a href="http://en.wikipedia.org/wiki/Access_control_list">Access Control Lists</a>.</p>
<p><a href="http://en.wikipedia.org/wiki/Network_security">Network security</a> is a broad topic encompassing the combined abilities of the OS, applications, network devices, administrators and users to detect and/or prevent a breach attempted across a network connection.  A basic way to accomplish this is to disallow certain types of messages from reaching the computer; this function is usually performed by a <a href="http://en.wikipedia.org/wiki/Firewall_%28networking%29">firewall</a> server or program that monitors network traffic and filters communications based on predefined rules.  Every computer that communicates over the Internet uses the TCP protocol, which allows for approximately 65,000 possible “<a href="http://en.wikipedia.org/wiki/TCP_and_UDP_port">ports</a>”.  These ports are similar to radio stations or TV channels; each application that needs to communicate does so using one port.  Ports that are not used by an application but are still available for use (“open”) can be exploited.  <a href="http://en.wikipedia.org/wiki/Port_scan">Port scans</a> are a good way to determine if a system has any open ports that are not being used.  <a href="http://en.wikipedia.org/wiki/Ipchains">Firewall capabilities are built into the Linux Kernel</a> and several good front-end packages are available for configuration, monitoring and reporting purposes.</p>
<p>All of the safeguards discussed above constitute protection <i>around</i> the data.  What about protection <i>of</i> the data?  A data file can be <a href="http://en.wikipedia.org/wiki/Encryption">encrypted</a> thereby changing the contents to an encoded, unreadable format.  The content is usually restored using a <a href="http://en.wikipedia.org/wiki/Cryptographic_key">key</a> or a password.  E-mail can also be encrypted prior to transmission.  <a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard">GNU Privacy Guard</a> (GPG) is a <a href="http://en.wikipedia.org/wiki/Pretty_Good_Privacy">Pretty Good Privacy</a> (PGP) compliant application that implements <a href="http://en.wikipedia.org/wiki/Public-key_cryptography">public key cryptography</a> on multiple OS platforms, including Linux.  Of course, constantly having to decrypt and encrypt every individual data file before and after use would be painful; instead, <a href="http://en.wikipedia.org/wiki/Filesystem-level_encryption">entire file systems can be encrypted</a> by the system and <a href="http://en.wikipedia.org/wiki/List_of_cryptographic_file_systems">several cryptographic file systems exist for Linux</a>.  It is also possible to create a <a href="http://en.wikipedia.org/wiki/Loopback_device">loopback device</a>, which is a file that can be mounted as an encrypted file system similar to the commercial product <a href="http://www.cypherix.com/cryptainerle/">Cryptainer LE</a> by Cypherix.</p>
<p>So, the components <i>do</i> exist.  Now, the question remains, can these components be trusted?</p>
<p>FUDsters will argue that any security software for which the source code is freely available to the public is inherently <i>not</i> secure.  This is based on the assumption that the source code will either reveal the <i>secret functionality</i> that makes the security software work or expose bugs in the security software itself that can be exploited as well.</p>
<p>First, if someone cannot open their source because they are afraid it may reveal secret functionality, then it wasn't properly designed from the start.  The worst-possible example of this is <a href="http://en.wikipedia.org/wiki/Hard_coding">hardcoding</a> passwords in programs, especially if they are scripts stored in <a href="http://en.wikipedia.org/wiki/Plaintext">clear text</a>.  Good security schemes, such as encryption, rely <i>directly</i> on information the user provides, and often make use of <a href="http://en.wikipedia.org/wiki/One-way_function">one-way functions</a>.</p>
<p>Second, Open Source software is available for public scrutiny.  If you cannot read and understand the code yourself, rest assured that there are many folks out there that can and do.  Why? Because many businesses do actually use Open Source software and have everything to lose if they don't test it out first.  That being said, I consider many corporate “testimonials” sponsoring one OS or another based on security or other factors to be FUD, mainly because they often appear in <i>paid</i> advertisements and seldom reveal the details of tests performed to lead to such conclusions.  Independent certification and research performed by government or other nonprofit entities are usually the most objective and reliable.</p>
<p>Aside from learning the code, another way to test an application's security strength or to see if it transmits private data is to watch (or “<a href="http://en.wikipedia.org/wiki/Packet_sniffer">sniff</a>”) the port on which it communicates using a network monitoring tool.  Such data may be encrypted, but the (data) size and timing of requests made by the client software should be consistent and reasonable.  This is a technical task, but a bit easier than learning how the code works.  Just remember, sniffing outside of your own network may be <a href="http://en.wikipedia.org/wiki/Telephone_tapping">considered illegal</a>.</p>
<p>Finally, there are many Linux opponents that would jump at the chance to expose <i>real</i> security weaknesses in Linux and its applications.  These are often vendors of competing software and have both the money and channels to make themselves heard.  When such a claim appears on the Web, look for specific details about the vulnerability.  If there are none, it may be FUD.  Also, check the software website to see if the vulnerability has been acknowledged or refuted as well as any status on its repair.  Never take such claims at face value.</p>
<p><b>Here's a few tips to remember to help protect yourself.</b></p>
<p>Any security expert worth his salt will tell you that <i>physical security is the most important aspect of system security</i>.  If physical access to a computer is available, then it is usually just a matter of time before the system will be compromised, <i>regardless of operating system</i>.  Obviously, the probability of such breaches skyrockets for laptop users, especially when so few (based on my own observations) choose to utilize even the most primitive of safeguards, <a href="http://www.computersecurity.com/laptop/cables_e.htm">cable locks</a>.  Also, I've not seen any major headlines on this so far, but <a href="http://en.wikipedia.org/wiki/Live_cd">Live CDs</a>, as wonderfully useful as they can be, are ginormous threats to the security <i>if</i> physical access is available.  This is because most Live CDs provide superuser access to a system and all of its devices.  It is best to keep computers under lock &#38; key whenever possible.</p>
<p>One of my friends from university used to work in an engineering lab on campus.  He had set up a Linux box on the network, with full consent of the administrators of course.  But one of the the permanent staff members approached him one day, asking how he managed to cloak his machine from the nightly <a href="http://en.wikipedia.org/wiki/SATAN">SATAN</a> network scans.  The answer was simple!  He turned the machine off before he left each day!  Turning a machine off or at least disconnecting it from the Internet when not in use will deprive the would-be attacker the time needed to successfully break in using a <a href="http://en.wikipedia.org/wiki/Brute_force_attack">brute force attack</a>.</p>
<p>And, as always, be careful what you download.  There is always a chance that someone will write spyware or malware for Linux.  Stick with applications that have large communities and good reputations if you can.  Search the Internet for evidence that an app may not be secure before downloading it.  To quote the the <a href="http://en.wikipedia.org/wiki/Ronald_Reagan">Gipper</a>, “trust, but verify”.</p>
<p>Cheers!<br />
-Brandon</p>
<table border="0" width="100%">
<tr>
<td align="left" width="50%"><a href="http://linuxfud.wordpress.com/2008/02/04/top-10-linux-fud-patterns-part-4/">&#60;&#60; Go To Part 4</a></td>
<td align="right" width="50%"><a href="http://linuxfud.wordpress.com/2008/03/26/top-10-linux-fud-patterns-part-6/">Go To Part 6 &#62;&#62;</a></td>
</tr>
</table>
]]></content:encoded>
</item>

</channel>
</rss>
