<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GhettoBSD Thoughts</title>
	<atom:link href="http://www.ghettobsd.org/new-and-improved/pensamientos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghettobsd.org/new-and-improved/pensamientos</link>
	<description>Now with web 3.0!</description>
	<lastBuildDate>Tue, 07 Jun 2011 23:43:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Example of expect with ftp &amp; telnet</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2011/06/07/example-of-expect-with-ftp-telnet/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2011/06/07/example-of-expect-with-ftp-telnet/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 23:43:04 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[Man GhettoBSD]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=103</guid>
		<description><![CDATA[In the past I’ve had the need to use expect, but it wasn’t exactly easy to get going, so I went back to something I was more familiar with. Eventually I had another need and finally got it going. Here are two examples of how to use expect. Access an FTP server to upload a [...]]]></description>
			<content:encoded><![CDATA[<p>In the past I’ve had the need to use expect, but it wasn’t exactly easy to get going, so I went back to something I was more familiar with. Eventually I had another need and finally got it going. Here are two examples of how to use expect.</p>
<p>Access an FTP server to upload a file. This is a daily job that was setup as follows:</p>
<blockquote><p><strong>#!/bin/sh</strong></p>
<p><strong>uname= h39dj31</strong></p>
<p><strong>passwd= jd83812</strong></p>
<p><strong>ip=172.16.247.36</strong></p>
<p><strong> </strong></p>
<p><strong># Opens ftp with auto-login turned off, and take input from the program until it sees EOF.</strong></p>
<p><strong>ftp -n &lt;&lt; EOF</strong></p>
<p><strong># Connects to IP address specified.</strong></p>
<p><strong>open $ip</strong></p>
<p><strong># Turns passive mode off.</strong></p>
<p><strong>passive off</strong></p>
<p><strong># Sends the user name and password in plain text!</strong></p>
<p><strong>user $uname $passwd</strong></p>
<p><strong># ls’ a directory (you should be logged in by now.)</strong></p>
<p><strong>ls</strong></p>
<p><strong># cd’s to specified directory.</strong></p>
<p><strong>cd daily-reports</strong></p>
<p><strong># Uploads daily report.</strong></p>
<p><strong>send daily-report.csv</strong></p>
<p><strong># Terminates ftp script/session.</strong></p>
<p><strong>EOF</strong></p></blockquote>
<p><strong> </strong></p>
<p>Here’s the same script but using expect instead:</p>
<blockquote><p><strong>#!/bin/sh</strong></p>
<p><strong>uname= h39dj31</strong></p>
<p><strong>passwd= jd83812</strong></p>
<p><strong>ip=172.16.247.36</strong></p>
<p><strong> </strong></p>
<p><strong># Launches expect.</strong></p>
<p><strong>expect &lt;&lt; EOF</strong></p>
<p><strong># Starts ftp.</strong></p>
<p><strong>spawn ftp</strong></p>
<p><strong># Connects to ftp server.</strong></p>
<p><strong>send &#8220;open $ip\r&#8221;</strong></p>
<p><strong># Tells the program what to expect.”</strong></p>
<p><strong>expect :</strong></p>
<p><strong># Sends the username.</strong></p>
<p><strong>send $uname\r</strong></p>
<p><strong>expect Password:</strong></p>
<p><strong># Sends the password.</strong></p>
<p><strong>send $passwd\r</strong></p>
<p><strong>expect ftp&gt;</strong></p>
<p><strong># Sends a command.</strong></p>
<p><strong>send ls\r</strong></p>
<p><strong>expect ftp&gt;</strong></p>
<p><strong>send &#8220;cd daily-reports\r&#8221;</strong></p>
<p><strong>expect ftp&gt;</strong></p>
<p><strong># Uploads daily report.</strong></p>
<p><strong>send daily-report.csv</strong></p>
<p><strong>send EOF\r</strong></p></blockquote>
<p><strong> </strong></p>
<p>Here’s another example using expect, this is to connect to all cisco devices and get some info:</p>
<blockquote><p><strong>#!/bin/sh</strong></p>
<p><strong> uname= h39dj31</strong></p>
<p><strong>passwd= jd83812</strong></p>
<p><strong>ip=172.16.124.37</strong></p>
<p><strong> </strong></p>
<p><strong>expect &lt;&lt; EOF</strong></p>
<p><strong>spawn telnet $ip</strong></p>
<p><strong>expect Username:</strong></p>
<p><strong>send $uname\r</strong></p>
<p><strong>expect Password:</strong></p>
<p><strong>send $passwd\r</strong></p>
<p><strong>expect #</strong></p>
<p><strong>send &#8220;show version\r&#8221;</strong></p>
<p><strong>expect #</strong></p>
<p><strong>send quit\r</strong></p></blockquote>
<p><strong> </strong></p>
<p>Some notes:</p>
<p>-          You need to add the return character “\r” at the end of each command you send in expect.</p>
<p>-          You only need to use double quotes “” in expect when you have a space in what&#8217;s send. For example, if you send <strong>ls</strong> you don’t need double quotes, but if you send “<strong>rm filename</strong>” then that will need to have double quotes.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2011/06/07/example-of-expect-with-ftp-telnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10+ years and still going</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2011/04/20/10-years-and-still-going/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2011/04/20/10-years-and-still-going/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 22:58:48 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[Man GhettoBSD]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=95</guid>
		<description><![CDATA[GhettoBSD.org is now 10 years old, and boy have things changed. Originally my first experience with FreeBSD was in the late 90&#8242;s. I ran it on junk hardware and that is how I ended getting and naming my systems GhettoBSD. BSD has been such a great asset in my life in both personal and professional [...]]]></description>
			<content:encoded><![CDATA[<p>GhettoBSD.org is now 10 years old, and boy have things changed. Originally my first experience with FreeBSD was in the late 90&#8242;s. I ran it on junk hardware and that is how I ended getting and naming my systems GhettoBSD. BSD has been such a great asset in my life in both personal and professional functions. From setting up my first website/mail/DNS server to writing programs that do 3 weeks of work in about 5 minutes. One of the most useful programs I&#8217;ve written was to backup my audio CDs. Something that would have taken weeks or months was done in about a week. Most think and would be correct that opening the cd/dvd drive, inserting the disc, closing it, ripping it, ejecting the CD and starting over would take a lot of time. But when all you do is write a small script and let it run, this is heaven compared to what you&#8217;d have to do otherwise. Thanks to those examples and many, many more, BSD has been something that I&#8217;ve recommended to countless people. More recently I&#8217;ve been using PC-BSD. I first tried them out early in their development and liked what they were aiming for, but always had some issue. I recently (more than 6 months ago) checked in to see how they were doing and wow, what a difference! I run their system on a computer at work and am loving most of it. Sure I have some issues with it, but it was the same with Win7. But with BSD as my workstation I now have the added benefits of everything else that comes along with it. And more importantly, I can test out my programs on it before implementing them on my server.</p>
<p>Almost at the same time, GhettoBSD.org has completed 1 year of uptime. That might not sound like a big deal to most people, but it is for me. I knew it was possible, but when you&#8217;ve dealt with junk only, it was almost impossible. As stated in the about section, the junk that BSD ran on wasn&#8217;t too unreliable, but whether something went bad or the power went out or even the machines over heated, I never reached one year of uptime. I would be up against my friends on Win98 machines who would also run into the same problems. For the most part, the Win machine won! It was a Win98 SE that wasn&#8217;t used for anything, just left idle while my BSD&#8217;s would keep on chugging along with many websites, services and a few users.</p>
<p>But now with backup power, very nice low power consuming hardware and a little TLC I&#8217;ve easily reached 1 year. What&#8217;s next? 2 years &#8211; as long as the hardware holds up!</p>
<p>The one thing I try to tell everyone about, is the ports collection. It is simply one of the most useful things that can come on a system `by default.` (It can be installed or not at first install or later on). Many people don&#8217;t know about it, and more importantly, many in the linux world. The ports collection is a system of categorized directories that contain a lot of commonly used programs. For example, in /usr/ports/irc you can find many IRC and IRC related programs such as Irssi and BitchX. To install, you just cd /usr/ports/irc/irssi and make install clean. When that&#8217;s done, you should be able to rehash and fire up Irssi just like that.</p>
<p>I&#8217;ve tried many different systems over the years and have to say that for me, nothing compares to the BSDs. My favorite linux distribution is Suse, though I have tried RedHat in different times, as well as slackware, debian, mandrake and even ubuntu once, just to name a few. They&#8217;ve made real advances with their .deb and .rpm&#8217;s, but nothing compares to the ports collection. It&#8217;s also worth mentioning that the ports collection is not the only way to install programs (they&#8217;re compiled from source), you can also use pkg_add which downloads and runs pre-compiled binaries. Thus avoiding having to compile programs on your local machine.</p>
<p>Interestingly enough, PC-BSD is coming out with a system to rival the .exe&#8217;s of the Windows world. They&#8217;re pre-packaged ports in binaries that install on your system. What makes their way of going about it great is they use a sort of market to deploy them in. Need a graphical editor? Go to their graphics section. Word processing or editing? Head on over to that area. This is a major stride in useability because many people are scared of console (my primary way of working on BSDs). So maybe someday, that could be the default in the BSD OS&#8217;.</p>
<p>In the end, whatever works best for you and your situation is the best solution for you. From the beginning, FreeBSD just worked for me (no kernel panics like with RedHat lol). And throughout the years its proven to be just as reliable as they claim, Rock Solid. So head on over to FreeBSD or OpenBSD and give it a try. And with NetBSD, you just never know what you could end up putting it or FINDING it running on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2011/04/20/10-years-and-still-going/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup a tunnel in BSD for Firefox</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/12/30/setup-a-tunnel-in-bsd-for-firefox/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/12/30/setup-a-tunnel-in-bsd-for-firefox/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 18:03:39 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[Man GhettoBSD]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=89</guid>
		<description><![CDATA[There are lots of reasons to set up tunnels; mine is to avoid having to click &#8220;are you sure you want to proceed to this website&#8221; every time I go to a legit site. As a bonus, everything else is allowed as well! 1) Establishing the tunnel to the outside in a terminal. You want [...]]]></description>
			<content:encoded><![CDATA[<p>There are lots of reasons to set up tunnels; mine is to avoid having to click &#8220;are you sure you want to proceed to this website&#8221; every time I go to a legit site. As a bonus, everything else is allowed as well!</p>
<p><strong>1) Establishing the tunnel to the outside in a terminal. </strong></p>
<p>You want to use the following to connect to your filter free server:</p>
<ul>
<li><strong>ssh -D local-port usernam@ip-or-domain-name -p 00000</strong></li>
</ul>
<p>The -D is used to specify a dynamic application-level port forwarding. This is the port on your local BSD machine that will be used for passing information through to and from the tunnel.</p>
<p>username@bsd-machine is self explanatory</p>
<p>-p 00000 is a non-default ssh port on the target BSD system. Why would this not be port 22? If you want to make it a little harder for people who don&#8217;t know what they&#8217;re doing.</p>
<p><strong>So, a working example of this might look like: ssh -D 5923 wizard@pcbsd.org -p 2222</strong></p>
<p>Once you have your tunnel set up, you&#8217;re ready to configure firefox!</p>
<p><strong>2) Configure Firefox to use the proxy.</strong></p>
<p>In my current version of Firefox, I <strong>go to: Edit -&gt; Preferences -&gt; Advanced -&gt; network -&gt; &#8220;Configure how Firefox connects to the Internet&#8221; Settings</strong></p>
<p>Now in Connection Settings, you want to select &#8220;Manual proxy configuration:&#8221;</p>
<p>Go down to SOCKS Host: and enter 127.0.0.1, and for port enter the local -D port you chose earlier, 5923 in  our example. It should look like this: SOCKS Host: 127.0.0.1 Port: 5923</p>
<p>Hit OK, then Close and test it out! You can go to: <a href="http://www.whatsmyip.org" target="_blank">www.whatsmyip.org</a> to see what IP address you are using! If you set it up properly, you should see your remote BSDs IP.</p>
<p><strong>3) Additional options.</strong></p>
<p>Usually, that&#8217;s where most others will end.</p>
<p>Here are some other things you can do with your tunnel and Firefox.</p>
<p>In your tunnel, you can add these flags</p>
<ul>
<li><span style="font-family: mono;">-f</span> Requests ssh to go to background just before command execution.</li>
<li><span style="font-family: mono;">-N</span> Do not execute a remote command.</li>
</ul>
<p>So now your command could look like: ssh -f -N -D 5923 wizard@pcbsd.org -p 2222</p>
<p>This is good if you just want to establish the tunnel and forget about it. Without -f &amp; -N, you can actively use the remote BSD machine while establishing a tunnel at the same time. So why not just use one or the other? Well, for example, maybe I have my &#8216;remote user&#8217; for remote shell login, and I also have a &#8216;tunnel user&#8217; just for establishing tunnels. This could be for &#8216;security&#8217; reasons.</p>
<p>If you&#8217;re like me, you might need access to local resources. So, say for example, I want to connect to pcbsd.org without having to click &#8220;are you sure you want to proceed to this website.&#8221; I establish the tunnel and configure Firefox. Later on I want to connect to 192.168.1.35. I will be able to pull up pcbsd.org, but not 192.168.1.35 because that is on a local network, and my home connection isn&#8217;t routed back to my local network.</p>
<p>To fix this, go back to Edit -&gt; Preferences -&gt; Advanced -&gt; network -&gt; &#8220;Configure how Firefox connects to the Internet&#8221; Settings. Towards the bottom there is a field named: &#8220;No proxy for:&#8221; and it will always have the default populated: &#8220;localhost, 127.0.0.1.&#8221; So, whatever local address you need, such as 192.168.1.35, you add it there. It should look like this: &#8220;localhost, 127.0.0.1, 192.168.1.35&#8243; Now, click ok, close and test it out!</p>
<p>You can specify specific IPs or blocks/ranges of IPs in that field should you need access to MANY IPs (as I do).</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/12/30/setup-a-tunnel-in-bsd-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Tokyoflash design</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/10/25/my-tokyoflash-design/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/10/25/my-tokyoflash-design/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 02:54:26 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=86</guid>
		<description><![CDATA[Tokyoflash has been making &#8216;special&#8217; watches for a while. They&#8217;re generally not for everyone because they aren&#8217;t practical. The reason being you need to &#8220;learn&#8221; how to read time for each watch and they can be VERY different from 1 model to the next. I just recently found out they have a contest to design [...]]]></description>
			<content:encoded><![CDATA[<p><strong></strong>Tokyoflash has been making &#8216;special&#8217; watches for a while. They&#8217;re generally not  for everyone because they aren&#8217;t practical. The reason being you need to &#8220;learn&#8221;  how to read time for each watch and they can be VERY different from 1 model to  the next.</p>
<p>I just  recently found out they have a contest to design watches that they *could* make  if they get good approval ratings. If they do, then they will be moved to  technical assessment to see if and how they could be made.</p>
<p>If my  design gets there, then it&#8217;s possible that it&#8217;s made. If it goes into production  then Tokyoflash will offer $20,000 for my design, or royalties on a per-sale  basis. Either way it&#8217;s pretty cool!</p>
<p>If you  can, please check out the watch and vote yes if you like it!</p>
<p><strong>Go here to vote:</strong> <a href="http://www.tokyoflash.com/blog/2010/10/cross-time-watch-concept/">http://www.tokyoflash.com/blog/2010/10/cross-time-watch-concept/</a></p>
<p>Click  on &#8220;Yes&#8221; (green button) under &#8220;Would you buy this product?&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/10/25/my-tokyoflash-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automating copying from CDROM to HDD</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/08/21/76/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/08/21/76/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 22:40:23 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=76</guid>
		<description><![CDATA[Today I decided to back up my CDs. I already have them backed up as MP3s burned to CD-Rs, but I finally have time to put them on my server&#8230; Some of these discs are old and the drives are unable to read the files (yes, I&#8217;ve been buying music for a while now) So [...]]]></description>
			<content:encoded><![CDATA[<p>Today I decided to back up my CDs. I already have them backed up as MP3s burned to CD-Rs, but I finally have time to put them on my server&#8230;</p>
<p>Some of these discs are old and the drives are unable to read the files (yes, I&#8217;ve been buying music for a while now) So in windows when it was trying to copy a file over it would open a window and ask what to do. This is not good as it kept interrupting my other work. So I go to BSD to solve my problem.</p>
<p>1) I had to make sure that I can see what&#8217;s going on. So the copying had to be verbose.</p>
<p>2) I didn&#8217;t want to have to do a whole lot. The least amount of interaction possible is desired.</p>
<p>So I ended up making a script that:</p>
<ul>
<li>Closes the drive tray</li>
<li>Mounts the cd drive</li>
<li>Copies all the desired files to a specified directory</li>
<li> Umounts the cd drive</li>
<li> Ejects the drive tray</li>
</ul>
<p>I&#8217;ll put the code and script on the forum for review &amp; download.</p>
<p>So far I&#8217;m 1/2 way done and haven&#8217;t had a problem.</p>
<p>Sometimes BSD is just that great!</p>
<p>As to the reason I want them on my server&#8230; I am learning to program Android applications so I can stream my music to my phone via inet (since it&#8217;s a 4G Evo). It&#8217;ll take a while, but as always, I am sure I can do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/08/21/76/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making it safer for people with Alzheimer&#8217;s at night</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/08/16/making-it-safer-for-people-with-alzheimers-at-night/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/08/16/making-it-safer-for-people-with-alzheimers-at-night/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 22:57:08 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/2010/08/16/making-it-safer-for-people-with-alzheimers-at-night/</guid>
		<description><![CDATA[I tell people: &#8220;The best way to learn about Alzheimer&#8217;s is to read about it.&#8221; Some, like myself, could argue that things are best learned first hand. But this is something that you don&#8217;t want to have to learn &#8220;first hand.&#8221; In taking care of someone who has Alzheimer&#8217;s, I&#8217;ve discovered something a few years [...]]]></description>
			<content:encoded><![CDATA[<p>I tell people: &#8220;The best way to learn about Alzheimer&#8217;s is to read about it.&#8221; Some, like myself, could argue that things are best learned first hand. But this is something that you don&#8217;t want to have to learn &#8220;first hand.&#8221;</p>
<p>In taking care of someone who has Alzheimer&#8217;s, I&#8217;ve discovered something a few years back that is VERY useful. Here&#8217;s some background first.</p>
<p>Those who take care of people with Alzheimer&#8217;s, more specifically those who have them in their homes (like family members) know that the night time can be VERY difficult. It&#8217;s not unusual to say my loved one walks like a ghost in the night only to frighten anyone who sees them because they creep so quietly that you have no idea they&#8217;re there until they&#8217;re on top of you!</p>
<p>Leaving a light on can be a problem because it can keep other family members up. Leaving no lights on can be dangerous as the person with Alzheimer&#8217;s could wake up and walk around (as they all do) and fall and hurt themselves. Many will just put a night light in the socket and hope for the best. Those lights generally don&#8217;t provide enough light to get around safely (especially if the person has cataracts). So I looked for a better solution. You could always put a stronger bulb in the night light&#8230; But that bothers those who are sleeping (and caring/watching the person at night).</p>
<p>I came across a motion sensor for about $20 at Harbor Freight &amp; Tools one day. I didn&#8217;t expect it to work well for the price, but it did surprisingly well! I plugged the stronger bulbed night light into the motion sensor and Voilà! Now there is enough light to safely see a ghost walking around in the middle of the night AND it&#8217;ll only turn on when it detects motion. But as you can imagine, this can still bother others sleeping in the same room with the constant on and off. So I had to come up with another device&#8230;</p>
<p>A few years ago I bought some lamps that had a translucent blue glass shade with an additional transparent glass shade outside of that. It&#8217;s a modern looking lamp, and the shades look like a cylinder in another cylinder. So when you turned the lamp on, it looked awesome! So awesome, that the light blinded you because the blue glass wasn&#8217;t thick/dense/dark enough to diffuse the light enough to not hurt your eyes. So I ended up modifying it. I cut some aluminum foil to the exact size of the inside cylinder and wrapped it around about 1/4 &#8211; 1/3 of the way around. This in effect blocked the light from coming at you directly and actually made the lamp look better as the lamp really lit up blue instead of blinding sky blue. This also helped with more directional light as the foil served as a reflector. (A friend even told me I should try to sell the design hah!).</p>
<p>So using that experience/knowledge, I bought some Japanese style paper lamps (the round ones). I hung the blue paper lamp (can you spot the trend?) just off from the corner of the bedroom. I cut some aluminum foil to size of the supporting metal bracket (a little frame that props the paper lamp &#8220;open&#8221;) and wrapped that around the bulb about 80%-90% so that only a little light comes out the back. I purchased a very low watt soft florescent bulb (like 8 or 10 watts) and threw that in there.</p>
<p>The motion sensor I mounted in the very top corner of the bedroom and angled it downward. It helps that the person with Alzheimer&#8217;s bed is in direct line of sight (this is useful). So whenever they move *in* bed, the light goes on. Just seeing the light is on puts them at ease and actually prevents them from getting out of bed to &#8220;see where they are.&#8221; Obviously, when they DO get out of bed (naughty!) they&#8217;re safe as they can see well enough to make out where to walk and what to avoid.</p>
<p>The best benefit of this set up, is because of the way the sensor is mounted and the lamp is hung, the person who sleeps in the same room and takes care of them can&#8217;t trigger the motion sensor because the lamp is blocking them from it. So they can move about (even use their laptop when they should be sleeping! Naughty!) and not worry about turning the light on and waking up the sleeping person.</p>
<p>You would think such a thing would be the first thing that comes to mind when dealing with a person who has Alzheimer&#8217;s, but it&#8217;s not. Alzheimer&#8217;s is something that can happen so quickly to some, that you really never have time realize/learn how to manage it until it&#8217;s too late. You would also think that it&#8217;d be easy to find some sort of device that works just like this but isn&#8217;t such a hassle. There isn&#8217;t.</p>
<p>While searching for night lights that have motion detectors, day light sensor, battery back up and other random features I noticed that nothing like that exists. So for those of you who are hardware hackers, theres a freebie for you. Contact me if you want the designs!</p>
<p>Hopefully, someone somewhere will be able to use my ideas here and help make their life easier and safer for both them and their loved ones.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/08/16/making-it-safer-for-people-with-alzheimers-at-night/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wisdom</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/07/21/wisdom/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/07/21/wisdom/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 23:17:51 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=52</guid>
		<description><![CDATA[I found this on the net. I particularly like what is in bold because I have that mind set with many things I do. I am often told &#8220;Flash isn&#8217;t for this/that/anything else but&#8230;&#8221; but I regularly use it for MANY things. Leonardo da Vinci is usually credited as a painter, sculptor, architect, polymath, and [...]]]></description>
			<content:encoded><![CDATA[<p>I found this on the net. I particularly like what is in bold because I have that mind set with many things I do. I am often told &#8220;Flash isn&#8217;t for this/that/anything else but&#8230;&#8221; but I regularly use it for MANY things.</p>
<blockquote><p>Leonardo da Vinci is usually credited as a painter, sculptor, architect,  polymath, and inventor.  Hacker is an appropriate designation to add to  the list.  The techniques he used were so far ahead of his time that we  still marvel at his insight.  For example, his art was shaped by his  study of optics, perspective, anatomy, and even psychology.  He solved  problems by adding knowledge from unexpected places. One fine example of a Leonardo hack is his journals.  Most of them are  written in mirror image cursive.  This has often been credited as a type  of &#8220;security by obscurity&#8221; since it would be difficult for a casual  glance from an apprentice to reveal the master&#8217;s secrets.  However, a  hacker would look at this result and see a great example of mental and  physical dexterity.  <strong>Someone who is left-handed knows the problem of  writing left-to-right.  The result is generally smudged script and  ink-stained hands.  So why not change the rules and write right-to-left?   <span style="text-decoration: underline;">The key to the solution is to ignore the rules</span></strong><strong></strong><strong><span style="text-decoration: underline;">.</span></strong></p></blockquote>
<p>For more visit this link: <a href="http://www.defcon.org/html/links/dc-speakerscorner.html#wiseman-street" target="_blank">http://www.defcon.org/html/links/dc-speakerscorner.html#wiseman-street</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/07/21/wisdom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Step by step: Starting with Android SDK, Eclipse, &amp; Java</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/25/step-by-step-starting-with-android-sdk-eclipse-java/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/25/step-by-step-starting-with-android-sdk-eclipse-java/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 04:21:14 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=39</guid>
		<description><![CDATA[So I thought I&#8217;d elaborate a little bit more on how to get started with Android&#8217;s SDK using Eclipse &#38; Java. After downloading these files Get the Android SDK: http://developer.android.com/sdk/index.html Download Java 6 SDK: http://java.sun.com/javase/downloads/index.jsp Get Eclipse IDE for Java: http://www.eclipse.org/downloads/ do this: 1) Install Java JDK. I have the following file: jdk-6u20-windows-i586.exe 2) Unzip [...]]]></description>
			<content:encoded><![CDATA[<p>So I thought I&#8217;d elaborate a little bit more on how to get started with Android&#8217;s SDK using Eclipse &amp; Java.</p>
<p>After downloading these files</p>
<ul>
<li><strong>Get the Android SDK:</strong> <a href="http://developer.android.com/sdk/index.html" target="_blank">http://developer.android.com/sdk/index.html</a></li>
<li><strong>Download Java 6 SDK</strong>: <a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">http://java.sun.com/javase/downloads/index.jsp</a></li>
<li><strong>Get Eclipse IDE for Java:</strong> <a href="http://www.eclipse.org/downloads/" target="_blank">http://www.eclipse.org/downloads/</a></li>
</ul>
<p>do this:</p>
<p>1) Install Java JDK. I have the following file: jdk-6u20-windows-i586.exe</p>
<p>2) Unzip the Android SDK. I have the following archive: android-sdk_r06-windows.</p>
<p>Go into the newly created file and run: SDK Setup.exe</p>
<p>If you see an error message like: &#8220;Failed to fetch URL https://dl-&#8221;&#8230; It&#8217;s ok, don&#8217;t worry. Hit the close button. Another window pops open: &#8220;Choose Packages to Install.&#8221; Cancel that one as well.</p>
<p>In the main window &#8220;Android SDK and AVD Manager&#8221; go to Settings. Click under Misc: &#8220;Force https://&#8221;&#8230;</p>
<p>Go to &#8220;Available packages&#8221;</p>
<p>Click on Accept All then click Install.</p>
<p>It&#8217;ll now start downloading a lot of stuff! So wait a bit. When it&#8217;s done click on close.</p>
<p>3) Unzip the Eclipse archive. I have this file: eclipse-java-galileo-SR2-win32. Go into the directory and run eclipse.exe</p>
<p>Next, taken from: <a href="http://developer.android.com/sdk/eclipse-adt.html">http://developer.android.com/sdk/eclipse-adt.html</a></p>
<p>In Eclipse, open the help menu, then click on &#8220;Install New Software.&#8221;</p>
<p>Click &#8220;Add.&#8221;</p>
<p>For name enter Android plugin, and url enter: https://dl-ssl.google.com/android/eclipse/</p>
<p>In the check box item that appears, click a check in it! Then hit next, then next again. Check &#8220;I accept the terms of the license agreements&#8221; and hit Finish. This might take a little while! During the process you might get a message asking if you want to continue with unsigned content. Click ok! Accept the certificates and continue. Just like that, you&#8217;re done. Allow the program to restart itself.</p>
<p>Go to Window -&gt; Preferences.</p>
<p>Go to Android and browse to the location of the Android SDK step #2. Hit apply and then ok.</p>
<p>You should now be good to start a new android project!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/25/step-by-step-starting-with-android-sdk-eclipse-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make my own programs for Android</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/23/how-to-make-my-own-programs-for-android/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/23/how-to-make-my-own-programs-for-android/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 17:55:05 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[Todo]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=32</guid>
		<description><![CDATA[So I recently went from an HTC Hero to an HTC Evo. Now that I have a phone with an LED flash again, I can use it as a flash light! Unfortunately, many of the programs available on the market are for making a screen white. Not what I&#8217;d say is good use of the [...]]]></description>
			<content:encoded><![CDATA[<p>So I recently went from an HTC Hero to an HTC Evo. Now that I have a phone with an LED flash again, I can use it as a flash light! Unfortunately, many of the programs available on the market are for making a screen white. Not what I&#8217;d say is good use of the flash. But of course there is a reason for that; most android phones don&#8217;t have LEDs yet.</p>
<p>Trying to find out how to start wasn&#8217;t as simple as I&#8217;d like. It seems like you have to go through the trenches and most don&#8217;t want to make it easy. So forget all that stuff, this is what you do:</p>
<ul>
<li><strong>Get the Android SDK:</strong> <a href="http://developer.android.com/sdk/index.html" target="_blank">http://developer.android.com/sdk/index.html</a></li>
<li><strong>Download Java 6 SDK</strong>: <a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">http://java.sun.com/javase/downloads/index.jsp</a></li>
<li><strong>Get Eclipse IDE for Java:</strong> <a href="http://www.eclipse.org/downloads/" target="_blank">http://www.eclipse.org/downloads/</a></li>
</ul>
<p>Unzip both Android and Eclipse. Install Java 6. Then let Java update itself.</p>
<p>Fire up the Android SDK, fire up Eclipse.</p>
<p>Check out this site for how to get started:</p>
<ul>
<li><a href="http://www.vogella.de/articles/Eclipse/article.html" target="_blank">http://www.vogella.de/articles/Eclipse/article.html</a></li>
<li><a href="http://www.vogella.de/articles/Android/article.html" target="_blank">http://www.vogella.de/articles/Android/article.html</a></li>
</ul>
<p>Those might not be as easy as I&#8217;d like, but it&#8217;s better than I&#8217;m prepared to offer myself (for now).</p>
<p>A word of caution, it may seem that part of the reason there isn&#8217;t such a direct way of explaining how to go about getting, installing, creating everything android is because it&#8217;s really not for just anyone. Not in the same way it was with html.</p>
<p>Some might have the assumption that you can just buy a book and get going. Most who have tried and are seasoned in different languages have said they&#8217;ve had problems when their backgrounds wasn&#8217;t in Java. As for me? I have been working with ActionScript for many years which is a comparable OOP. As a matter of fact, taking a quick look on the web showed that they go hand in had as far as languages go. Even so far as to be able to write in Java and have an interpreter compile flash files! Now that&#8217;s pretty bad ass.</p>
<p>So we&#8217;ll see where I end up. Having read the reviews on amazon about android books hasn&#8217;t been helpful. Most say the books weren&#8217;t good, but also that they didn&#8217;t have Java experience. Others who are Java geeks say they were good books, it&#8217;s just that they needed introductory Java first, THEN beginning android. Well, as has been with other languages/systems/problems, no better way than to jump in and see if I can indeed swim!</p>
<p>My goal: make a program that&#8217;ll just turn the light on and off. So far I&#8217;ve learned to add color, text, buttons and fields. Now where do I put the graphics?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/23/how-to-make-my-own-programs-for-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now with web 3.0!</title>
		<link>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/09/now-with-web-3-0-2/</link>
		<comments>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/09/now-with-web-3-0-2/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:41:20 +0000</pubDate>
		<dc:creator>GhettoBSD</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ghettobsd.org/new-and-improved/pensamientos/?p=20</guid>
		<description><![CDATA[If you’ve found this post, then you might be happy to read that we have a new version of gbsd coming up! Check back soon. Make sure you sign up! Still working on ironing out themes for the forum and blog. Also the new home page is up at www.ghettobsd.org Update: Looks like I might [...]]]></description>
			<content:encoded><![CDATA[<p>If you’ve found this post, then you might be happy to read that we have a new version of gbsd <span style="text-decoration: line-through;">coming </span>up! <span style="text-decoration: line-through;">Check back soon.</span> Make sure you sign up!</p>
<p>Still <span style="text-decoration: line-through;">working on</span> ironing out themes for the forum and blog.</p>
<p>Also the new home page is up at <a href="http://www.ghettobsd.org">www.ghettobsd.org</a></p>
<p>Update: <span style="text-decoration: line-through;">Looks like I might have damaged the forum. Will have to reinstall db to correct problem. That means I might lose all posts thus far. Trying to avoid it. I messed up and I don&#8217;t even know where!</span></p>
<p><span style="text-decoration: line-through;">There seems to be a bug where when you type, for example: &#8220;I&#8217;m&#8221; it posts &#8220;I/&#8217;m&#8221; No idea why. If you know, shoot me a line. </span>Fixed!</p>
<p><span style="text-decoration: line-through;">But now, when you use the &lt;code&gt; tags, it gets nutty sometimes with random characters. So I guess &lt;blockquote&gt; will have to do!</span></p>
<p>Give up!<span style="text-decoration: line-through;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghettobsd.org/new-and-improved/pensamientos/2010/06/09/now-with-web-3-0-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

