<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
	<channel>
<title>JA Computing</title><link>http://www.jacomputing.net/index.php</link><description>All the news from Jesse Almanrode</description><dc:language>en</dc:language><dc:creator>Jesse Almanrode</dc:creator><dc:rights>Copyright Jesse Almanrode</dc:rights><dc:date>2013-03-14T11:05:56-06:00</dc:date><admin:generatorAgent rdf:resource="http://www.realmacsoftware.com/" />
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<lastBuildDate>Thu, 4 Apr 2013 16:25:38 -0600</lastBuildDate><item><title>More Bashness</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2013-03-14T11:05:56-06:00</dc:date><link>http://www.jacomputing.net/files/more-bashness.php#unique-entry-id-17</link><guid isPermaLink="true">http://www.jacomputing.net/files/more-bashness.php#unique-entry-id-17</guid><content:encoded><![CDATA[I figured I would share an awesome little bash function that I wrote recently for verifying an IP address.  

...	&bull;	The first octet must be greater than 0 and less than 255


...	&bull;	The third octet must be less than 256


	&bull;	The fourth octet must be greater than 0 and less than 255


...if [ $firstOctet -eq 0 -o $lastOctet -eq 0 -o $firstOctet -eq 255 -o $lastOctet -eq 255 ]; then
]]></content:encoded></item><item><title>Crazy Bash Redirection Bugs</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2013-03-07T11:49:01-07:00</dc:date><link>http://www.jacomputing.net/files/bash-redirection-bugs.php#unique-entry-id-16</link><guid isPermaLink="true">http://www.jacomputing.net/files/bash-redirection-bugs.php#unique-entry-id-16</guid><content:encoded><![CDATA[The only trouble is that once I have verified their sudo access I need to run a lot of commands using sudo as well as log the output of each commands to a file.  

...It would appear that when using &ldquo;sudo tee&rdquo; and then silencing &ldquo;tee&rsquo;s&rdquo; output by directing standard out to /dev/null causes a second prompt for a sudoers password.  

...echo &ldquo;This is a test&rdquo; | sudo tee -a /tmp/logfile.txt > /dev/null;  # here you will be prompted for your sudo password again, even if you correctly entered it at the line above.


...While the &ldquo;sudo tee&rdquo; command does indeed write the output of the previous piped command to the log file using root privileges it seems that the carrot &ldquo;>&rdquo; for directing &ldquo;tee&rsquo;s&rdquo; output to /dev/null drops back down into your standard users shell and attempts to run the output similar to


...I have tried piping it to &ldquo;echo&rdquo; and &ldquo;cat&rdquo; as a standard user and redirecting their output to /dev/null but to no avail.  ]]></content:encoded></item><item><title>A Letter To Colorado State Senate</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2013-02-22T16:35:57-07:00</dc:date><link>http://www.jacomputing.net/files/colorado-state-gun-control.php#unique-entry-id-15</link><guid isPermaLink="true">http://www.jacomputing.net/files/colorado-state-gun-control.php#unique-entry-id-15</guid><content:encoded><![CDATA[It is important as citizens of the United States to participate in the making of laws and letting our Representatives know what we want and how we would like them to vote.


...I feel that if these bills are passed they will have no effect on the people they are intended for but rather chisel away at the freedoms of people who would never commit violent crimes against their neighbors.    At worst, laws like those proposed in Colorado House Bills 1224, 1226, 1228, and 1229 will force these disturbed individuals to turn to alternative methods of mass killing.  ...  I do not want to see more mass shootings or assaults because law-abiding citizens were unable to defend themselves from criminals who have no regard for the laws being presented.


...If you vote for Colorado House Bills 1224, 1226, 1228, and 1229 it would be the same as voting to remove cars from the roads to stop drunk driving.  ]]></content:encoded></item><item><title>Testing Root Access</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2013-02-19T10:24:29-07:00</dc:date><link>http://www.jacomputing.net/files/bash-root-access.php#unique-entry-id-14</link><guid isPermaLink="true">http://www.jacomputing.net/files/bash-root-access.php#unique-entry-id-14</guid><content:encoded><![CDATA[Sometimes you want a user to run a script that has root privileges but you don&rsquo;t want the script run directly as root.    I recently built a nifty little process for use in bash scripting that will allow you to require that a script is run as a standard user who has sudo privileges but will not allow the script to run if someone tries to run the script using sudo or as root.


...MY_UID=`id | grep &lsquo;uid=0(root)&rsquo;; # Running as root or using sudo


...	echo &ldquo;You must run this tool as your normal user and not using sudo&rdquo;;


...echo &ldquo;You now have been validated as a user with sudo privileges!&rdquo; 
]]></content:encoded></item><item><title>Stardate 90123.8</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2013-02-13T12:31:42-07:00</dc:date><link>http://www.jacomputing.net/files/stardate-in-bash.php#unique-entry-id-13</link><guid isPermaLink="true">http://www.jacomputing.net/files/stardate-in-bash.php#unique-entry-id-13</guid><content:encoded><![CDATA[Yesterday I posted a bash_profile function that would allow you to get the current Stardate.    While this little bash tweak was cool I really wanted to do something a little more in-depth so I started searching for other ways of calculating the current Stardate.    I eventually stumbled upon a perl script that I would like to share with you all now.


Here is the perl script for you to copy and paste&hellip;


...And here is the original bash_profile function with a tweak that allows you to call the above perl script if it is located in your /usr/local/bin/ directory:
]]></content:encoded></item><item><title>My Stance On Guns</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2013-01-12T19:02:19-07:00</dc:date><link>http://www.jacomputing.net/files/my-stance-on-guns.php#unique-entry-id-12</link><guid isPermaLink="true">http://www.jacomputing.net/files/my-stance-on-guns.php#unique-entry-id-12</guid><content:encoded><![CDATA[I do not believe that the crimes committed with guns need to be dealt with by taking away the guns of every law abiding American.  ...  I recently came across a quote attributed to America&rsquo;s first president, George Washington that put my reasons for keeping guns in perfect perspective:


"A free people ought not only to be armed and disciplined, but they should have sufficient arms and ammunition to maintain a status of independence from any who might attempt to abuse them, which would include their own government."


...For there will come a time, as has been shown in just about every government in history, when the government will take freedoms away from the people and it will be up to the people to decide when enough is enough.   

...If you do not agree with me on this then I respect your opinion but I also ask that you respect mine under the protection of the First Amendment of the Constitution of the United States of America: The Freedom of Speech!]]></content:encoded></item><item><title>AppleScript JSON Project</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-12-22T15:09:16-07:00</dc:date><link>http://www.jacomputing.net/files/applescript-json.php#unique-entry-id-11</link><guid isPermaLink="true">http://www.jacomputing.net/files/applescript-json.php#unique-entry-id-11</guid><content:encoded><![CDATA[Good afternoon,


Been thinking a lot today about trying to get a new open source project started to build a fully functional JSON library entirely in AppleScript.    This project would be similar to the ASObject or ASTwitterLibrary projects that I have worked on in the past and would add a much needed feature to AppleScript on OS X.


If you are interested, or know someone who would be interested in helping code this project, please let me know!  ]]></content:encoded></item><item><title>Random Shootings</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-12-15T12:04:46-07:00</dc:date><link>http://www.jacomputing.net/files/2012-shootings.php#unique-entry-id-10</link><guid isPermaLink="true">http://www.jacomputing.net/files/2012-shootings.php#unique-entry-id-10</guid><content:encoded><![CDATA[Disturbed people who would otherwise just off themselves in their basements see the news and want to top it by doing something worse, and going out in a memorable way. 

...CNN's article says that if the body count "holds up", this will rank as the second deadliest shooting behind Virginia Tech, as if statistics somehow make one shooting worse than another.   Then they post a video interview of third-graders for all the details of what they saw and heard while the shootings were happening. ...  So congratulations, sensationalist media, you've just lit the fire for someone to top this and knock off a day care center or a maternity ward next.


You can help by forgetting you ever read this man's name, and remembering the name of at least one victim. ]]></content:encoded></item><item><title>Giving Bash A Try Statement</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-12-12T13:12:28-07:00</dc:date><link>http://www.jacomputing.net/files/bash-try-statement.php#unique-entry-id-9</link><guid isPermaLink="true">http://www.jacomputing.net/files/bash-try-statement.php#unique-entry-id-9</guid><content:encoded><![CDATA[The try statement is staple to a lot of programming languages, AppleScript included, but the most important one I have seen yet is Python.  ...  I would agree this statement often works in the developer&rsquo;s favor but what if a language doesn&rsquo;t have a &ldquo;try&rdquo; statement, what then?


...You can attempt to ask permission or simply go ahead and run your command (hoping that it doesn&rsquo;t&rsquo; error) but what if you want to keep track of whether or not a command did in fact error and do something about it?


The following is two examples of how to trap an error for a command in bash: 


...And that is it&hellip; now you can have a &ldquo;try&rdquo; statement in bash.]]></content:encoded></item><item><title>Processing Pseudo Arrays In Bash</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-12-12T09:31:53-07:00</dc:date><link>http://www.jacomputing.net/files/pseudo-bash-array.php#unique-entry-id-8</link><guid isPermaLink="true">http://www.jacomputing.net/files/pseudo-bash-array.php#unique-entry-id-8</guid><content:encoded><![CDATA[Normally in bash an array is delimited by any whitespace character(space, newline, tab, etc.) however, I specifically wanted to process an array with the delimiters only being newline characters.   My first attempt at doing this lead me down the path of setting the internal field separators (IFS) in bash to the newline character, then creating my array, and finally resetting the IFS back to its default.   This worked but made the script rather hard to read and, to be honest, I just didn't like doing it that way.   Then, last night, I realized that there is another way to process individual lines in bash that I could use on a &ldquo;pseudo array". 

...And that, my friends, is how to take data that is delimited by a newline character and process it as an array in bash!]]></content:encoded></item><item><title>ASObject 0.8.1 Released</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-08-28T19:52:38-06:00</dc:date><link>http://www.jacomputing.net/files/asobject-0.8.1#unique-entry-id-7</link><guid isPermaLink="true">http://www.jacomputing.net/files/asobject-0.8.1#unique-entry-id-7</guid><content:encoded><![CDATA[Just wanted to drop a quick note and let everyone know that ASObject 0.8.1 has been released.    This is a small update but fixes some bugs that have been around for a while.   However, this update makes the way for some of the other updates I have been working on.


Version 0.8.1 of ASObject contains the following updates:


...	&bull;	Added - Write_To_Log method now logs to system log file as well as specified file!
]]></content:encoded></item><item><title>Coding Underway</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-08-14T14:32:24-06:00</dc:date><link>http://www.jacomputing.net/files/2012-Coding-Underway.php#unique-entry-id-6</link><guid isPermaLink="true">http://www.jacomputing.net/files/2012-Coding-Underway.php#unique-entry-id-6</guid><content:encoded><![CDATA[I just thought I would stop by and let you all know that I have begun coding again on a bunch of the projects here at JA Computing.    Some of you know that I have been staying busy while others I am sure simply thought that I had abandoned the projects.  ...  I hope to have some exciting updates to some of the most loved scripts here on JA Computing coming in the next few weeks.  

...If you have any other scripts you would like me to update or add features to, please let me know!    Sometimes it takes you asking for something for it to get done!
]]></content:encoded></item><item><title>ASTwitterLibrary 2.2</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-04-19T19:52:17-06:00</dc:date><link>http://www.jacomputing.net/files/2ba241f16ef35573956785e39587134a-5.php#unique-entry-id-5</link><guid isPermaLink="true">http://www.jacomputing.net/files/2ba241f16ef35573956785e39587134a-5.php#unique-entry-id-5</guid><content:encoded><![CDATA[I have a small update for you all this evening.    ASTwitterLibrary 2.2.    This update fixes the methods for getting statistics on twitter users, number of followers, friends, tweets, url, location, bio&hellip; etc.    These calls used to parse HTML directly from Twitter but are now using API calls that are much faster and more reliable.    Please let me know if you find any bugs and I will be certain to get right on them!]]></content:encoded></item><item><title>A Stop By My Blog</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-04-17T12:54:57-06:00</dc:date><link>http://www.jacomputing.net/files/5868ba50fdf68c2d72381d76389fad52-4.php#unique-entry-id-4</link><guid isPermaLink="true">http://www.jacomputing.net/files/5868ba50fdf68c2d72381d76389fad52-4.php#unique-entry-id-4</guid><content:encoded><![CDATA[My apologies but I have been keeping rather busy now that I am in the big city of Denver.  

...I know many of you are wondering when I will begin working on all my scripting projects again and believe me when I tell you that they have not fallen by the wayside.     I still work on them as often as I can, even if it is only an hour or two a week.    I do hope to be releasing some updates to all of the scripts soon that will fix many of the bugs that I have had to simply bandaid in the recent months.  

...She is going to be sharing a bunch of yummy food recipes and anything else she can from our new lives in Denver!   ]]></content:encoded></item><item><title>Loving Colorado</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2012-01-19T19:04:39-07:00</dc:date><link>http://www.jacomputing.net/files/loving-CO.php#unique-entry-id-3</link><guid isPermaLink="true">http://www.jacomputing.net/files/loving-CO.php#unique-entry-id-3</guid><content:encoded><![CDATA[Well, I am all moved into my new place and getting used to my new day job with TW Telecom.    It is a definite change of pace bing in the city but one that I am enjoying immensely.    Hopefully I will be getting back into my winter development cycle soon.    That is all for now&hellip; TTYL!]]></content:encoded></item><item><title>Moving to Denver</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2011-12-24T13:32:22-07:00</dc:date><link>http://www.jacomputing.net/files/denver-move-2011.php#unique-entry-id-2</link><guid isPermaLink="true">http://www.jacomputing.net/files/denver-move-2011.php#unique-entry-id-2</guid><content:encoded><![CDATA[I just thought I would drop a quick note to let everyone know that I have taken a new job in Denver Colorado.    Thus, my coding has come to a stop while I prepare to move.    I hope to be renewing my efforts as soon as I am settled.    Continue to keep up with me on Twitter to know what all is going on during the move.]]></content:encoded></item><item><title>Winter Coding Started</title><dc:creator>Jesse Almanrode</dc:creator><dc:subject>Welcome</dc:subject><dc:date>2011-11-30T17:22:49-07:00</dc:date><link>http://www.jacomputing.net/files/Winter-Coding-2011.php#unique-entry-id-1</link><guid isPermaLink="true">http://www.jacomputing.net/files/Winter-Coding-2011.php#unique-entry-id-1</guid><content:encoded><![CDATA[The days are shorter and colder and the nights longer.    The time when I start back into coding all the new feature requests that have come in for ASObject, ASTwitterLibrary, LittleBirdOSX, and Lyricatcher.     Hopefully some of these updates will be coming available soon.    Others will be much longer in the making and I am not even 100% sure if we will see them published by next summer (we shall see how that goes).     As always, if you are good with AppleScript and would like to help contribute to ASObject or ASTwitterLibrary please let me know and I can get you access to our SVN repositories on XP-DEV!
]]></content:encoded></item></channel>
</rss>