<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4055985264948933402</id><updated>2026-05-22T20:25:16.918-06:00</updated><category term="News Summary"/><category term="ben stein"/><category term="consoles"/><category term="gaming"/><category term="linux"/><category term="mime"/><category term="ps3"/><category term="rdesktop"/><category term="rdp"/><category term="remote desktop"/><category term="test"/><category term="tsclient"/><category term="ubuntu"/><title type='text'>Andrew&#39;s Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default?start-index=26&amp;max-results=25'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-6443366531160159980</id><published>2011-05-26T19:29:00.006-06:00</published><updated>2011-05-26T19:44:01.625-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="test"/><title type='text'>Add an element before the last element of it&#39;s kind in jQuery  wiht insertBefore()</title><content type='html'>&lt;code&gt;&lt;br /&gt;// Add the new tag (li element) before the last tag (li element)&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;br /&gt;$(&#39;&amp;lt;li&amp;gt;this is a test 3&amp;lt;/li&amp;gt;&#39;).insertBefore($(&#39;li&#39;).last());&lt;br /&gt;&lt;br /&gt;In an unordered list such as&lt;br /&gt;&lt;br /&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;li&amp;gt;this is a test 1&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;li&amp;gt;this is a test 2&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;li&amp;gt;this is a test 4&amp;lt;/li&amp;gt;&amp;#160;&amp;#160;&amp;lt;------ last element&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&lt;br /&gt;The above jQuery statement will insert it before the last li element -&lt;br /&gt;&lt;br /&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;this is a test 1&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;this is a test 2&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;this is a test 3&amp;lt;/li&amp;gt;&amp;#160;&amp;#160;&amp;lt;------ inserted here&lt;br /&gt;&amp;lt;li&amp;gt;this is a test 4&amp;lt;/li&amp;gt;&amp;#160;&amp;#160;&amp;lt;------ still the last element&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://api.jquery.com/insertBefore/&lt;br /&gt;&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/6443366531160159980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/6443366531160159980' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6443366531160159980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6443366531160159980'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2011/05/add-element-before-last-element-of-its.html' title='Add an element before the last element of it&#39;s kind in jQuery  wiht insertBefore()'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-7019677237202487836</id><published>2010-08-08T22:37:00.005-06:00</published><updated>2010-08-08T22:52:23.586-06:00</updated><title type='text'>Get event keycode in both Firefox and Internet Explorer</title><content type='html'>This solution should work in both IE and Firefox.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;JS -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;function getCharCode(event)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;   var charCode = (event.which) ? event.which : event.keyCode&lt;/span&gt;;&lt;br /&gt;  &lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;  // Might want to get the character representation of the Unicode keycode - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:georgia;&quot;&gt;      &lt;span style=&quot;font-family:courier new;&quot;&gt;var character = String.fromCharCode(keycode);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;HTML -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;input_ onkeypress=&quot;getCharCode(event)&quot; type=&quot;textarea&quot;&gt;&lt;/input_&gt;&lt;/span&gt;Just put an onkeypress=&quot;getCharCode(event)&quot; event handeler in your input code (textarea, whatever)</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/7019677237202487836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/7019677237202487836' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/7019677237202487836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/7019677237202487836'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2010/08/get-event-keycode-in-both-firefox-and.html' title='Get event keycode in both Firefox and Internet Explorer'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-8927023622934431582</id><published>2010-07-14T13:17:00.004-06:00</published><updated>2010-07-14T13:21:55.407-06:00</updated><title type='text'>Open files in a folder recursively with Notepad++</title><content type='html'>Open Explorer and drag the folder on top of the Notepad++ window (somewhere in the main window).&lt;br /&gt;&lt;br /&gt;I&#39;m posting this because I could not find out how to do this quickly with a simple Google search -- hopefully someone else will have this question and stumble on this post through the keywords.</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/8927023622934431582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/8927023622934431582' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/8927023622934431582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/8927023622934431582'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2010/07/open-files-in-folder-recursively-wiht.html' title='Open files in a folder recursively with Notepad++'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-1117083093382868729</id><published>2010-06-04T15:33:00.004-06:00</published><updated>2010-06-04T16:01:21.537-06:00</updated><title type='text'>Installing Canon MF3240 on Windows 7 64 bit (x64)</title><content type='html'>You probably inserted the CD that came with this printer and got a dialog box during the driver installation that complained about 64-bit incompatibility. Thanks, Canon, for providing the 64 bit drivers on the CD! (/sarcasm)&lt;br /&gt;&lt;br /&gt;Anyway -- here&#39;s how you install the scanner and printer drivers for this device on Windows 7 64-bit machines --&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Detach the printer from the computer.&lt;/li&gt;&lt;li&gt;Visit the follow link (&lt;a href=&quot;http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&amp;amp;tabact=DownloadDetailTabAct&amp;amp;fcategoryid=335&amp;amp;modelid=12943&quot;&gt;http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&amp;amp;tabact=DownloadDetailTabAct&amp;amp;fcategoryid=335&amp;amp;modelid=12943&lt;/a&gt;) &lt;/li&gt;&lt;li&gt;Find the &quot;Select OS&quot; dropdown and select &quot;Windows 7 (x64)&quot; from the list.&lt;/li&gt;&lt;li&gt;Click the red download link (MF3200_MFDrivers_Win_x64_us_EN_7.exe). &lt;/li&gt;&lt;li&gt;Scroll to the bottom of the next page and click &quot;I agree -- begin download&quot;. &lt;/li&gt;&lt;li&gt;Save the executable to an easy to remember location on your computer. Browse to the folder in Explorer and run it. It will extract the drivers to a subdirectory in the same directory as the executable called &quot;MF3200_MFDrivers_Win_x64_us_EN_7&quot;. &lt;strong&gt;Remember the location of this folder for later.&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Attach the printer to the computer. &lt;/li&gt;&lt;li&gt;Ignore or cancel out of any automatic prompts that Windows tries to open. It will not be able to find the right drivers on Windows Update or elsewhere.&lt;/li&gt;&lt;li&gt;Click the Start menu button and search for &quot;Device Manager&quot;. Open it. &lt;/li&gt;&lt;li&gt;Under both the &quot;Imaging devices&quot; and &quot;Other Devices&quot; tree menu subitems, you will see CanonMF3200 devices (there should be a CanonMF3200 entry in both tree menu subitems). They should have question marks or exclimation marks next to them, meaning they are not functioning or are not installed.&lt;/li&gt;&lt;li&gt;Right click on both of these devices and select &quot;Update Driver Software&quot;. Click&lt;br /&gt;Browse my computer from driver software&quot; and browse to the driver folder ( that you extracted to earlier (called &quot;MF3200_MFDrivers_Win_x64_us_EN_7&quot;). Again, you will need to do this two times -- for both devices (scanner / fax and printer).&lt;/li&gt;&lt;li&gt;You should be done.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Let me know if you need clarification or this does not work.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/1117083093382868729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/1117083093382868729' title='214 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/1117083093382868729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/1117083093382868729'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2010/06/installing-canon-mf3240-on-windows-7-64.html' title='Installing Canon MF3240 on Windows 7 64 bit (x64)'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>214</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-6473742838004028073</id><published>2010-04-16T15:27:00.000-06:00</published><updated>2010-04-16T15:28:45.853-06:00</updated><title type='text'>7-zip not in context menu 64-bit Windows 7</title><content type='html'>This is a known problem.&lt;br /&gt;&lt;br /&gt;Solution / Workaround: Download 7-zip 32 bit version. This version should put items in the context menu.</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/6473742838004028073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/6473742838004028073' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6473742838004028073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6473742838004028073'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2010/04/7-zip-not-in-context-menu-64-bit.html' title='7-zip not in context menu 64-bit Windows 7'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-8771777622295858604</id><published>2010-03-25T18:03:00.003-06:00</published><updated>2010-03-25T18:11:29.255-06:00</updated><title type='text'>MagpieRSS question marks</title><content type='html'>If you are trying to use MagpieRSS, you might encounter an issue where quotation marks (single and double quotation marks), and other characters, are simply displayed as questions marks (?) in the RSS output.&lt;br /&gt;&lt;br /&gt;The issue is an charset issue. 1) You need to tell Magpie to output in utf-8. 2) Additionally, your HTML page needs to be in the same charset.&lt;br /&gt;&lt;br /&gt;For 1)&lt;br /&gt;&lt;br /&gt;Before any of your MagpieRSS code ... include these PHP statements.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;define(&#39;MAGPIE_INPUT_ENCODING&#39;, &#39;UTF-8&#39;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;define(&#39;MAGPIE_OUTPUT_ENCODING&#39;, &#39;UTF-8&#39;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For 2)&lt;br /&gt;&lt;br /&gt;Make sure your page has this at the top ... you might need to replace whatever is already defined on the page.&lt;br /&gt;&lt;br /&gt;EDIT: Blogger doesn&#39;t like META tags ... here is what you need at the top of your page: http://pastebin.ca/1852343&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks to http://forums.digitalpoint.com/showthread.php?t=309378 for the tips.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/8771777622295858604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/8771777622295858604' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/8771777622295858604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/8771777622295858604'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2010/03/magpierss-question-marks.html' title='MagpieRSS question marks'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-3686640858339089717</id><published>2010-03-06T22:56:00.001-06:00</published><updated>2010-03-06T22:57:44.033-06:00</updated><title type='text'>Concatenate Date and Time From Two Fields -- MySQL</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Example&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;In this example, I&#39;m checking whether a time slot in a schedule table is in the future.&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;SELECT * FROM table&lt;br /&gt;WHERE concat(date(appt_date),&quot; &quot;,time(start_time)) &gt; NOW( )&lt;br /&gt;ORDER by appt_date  desc, start_time desc, end_time desc&lt;/span&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/3686640858339089717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/3686640858339089717' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/3686640858339089717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/3686640858339089717'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2010/03/concatenate-date-and-time-from-two.html' title='Concatenate Date and Time From Two Fields -- MySQL'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-3555107679156700581</id><published>2010-01-24T16:19:00.001-06:00</published><updated>2010-01-24T16:20:23.059-06:00</updated><title type='text'>Change essays, application after submission of Common Application (CommonApp)</title><content type='html'>Copy and paste this is your browser --&lt;br /&gt;&lt;br /&gt;&lt;span id=&quot;bodyfont&quot; style=&quot;font-size: 10pt; font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:black;&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:black;&quot;&gt;&lt;a title=&quot;https://commonapp.org/Application/ApplicantLogin.aspx?allowcopy=true&quot; href=&quot;https://commonapp.org/Application/ApplicantLogin.aspx?allowcopy=true&quot;&gt;https://www.commonapp.org/CommonApp/Default.aspx?allowcopy=true&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then sign in and follow the instructions. You&#39;ll want to click the &quot;Replicate&quot; button on this page.</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/3555107679156700581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/3555107679156700581' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/3555107679156700581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/3555107679156700581'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2010/01/change-essays-application-after.html' title='Change essays, application after submission of Common Application (CommonApp)'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-8114166116363569672</id><published>2010-01-23T17:26:00.001-06:00</published><updated>2010-01-23T17:27:00.791-06:00</updated><title type='text'>Bottled water - wasteful, expensive, and unsanitary</title><content type='html'>Bottled water has three general problems -- it&#39;s wasteful, expensive,  and unsanitary.&lt;br /&gt;&lt;br /&gt;Source: http://www.onlineeducation.net/bottled_water/&lt;br /&gt;&lt;br /&gt;Wasteful&lt;span class=&quot;text_exposed_hide&quot;&gt;&lt;span class=&quot;text_exposed_link&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;text_exposed_show&quot;&gt;&lt;br /&gt;-----------&lt;br /&gt;&lt;br /&gt;a) They are horrible  for the environment (17 million barrels of oil are used in the  production of water bottles every year).&lt;br /&gt;&lt;br /&gt;b) It takes 3 times the  amount of water to produce the bottle as it does to fill it.&lt;br /&gt;&lt;br /&gt;Expensive&lt;br /&gt;-----------&lt;br /&gt;&lt;br /&gt;c)  Bottled water is extremely costly relative to tap water (up to 10,000x  as expensive) -- .0015 cents / gallon vs $10 / gallon). In some  alternate universe, this might actually be worth it if the water was  sanitary, but it&#39;s not (points d, e, and f).&lt;br /&gt;&lt;br /&gt;Unsanitary&lt;br /&gt;-----------&lt;br /&gt;&lt;br /&gt;d)  40% of bottled water has been taken from municipal water sources (i.e.  40% of bottled water IS tap water).&lt;br /&gt;&lt;br /&gt;e) 22% of bottled water  contains chemical contaminants at levels above strict state health  limits.&lt;br /&gt;&lt;br /&gt;f) Bottled water isn&#39;t regulated like tap water is. It  doesn&#39;t have to be checked for E Coli, it is not subject to quality  reports, the companies that produce it are not required to provide the  source of the water, and it can still be distributed when tap water  standards (which are deplorable and outdated it and of themselves) are  not met.&lt;br /&gt;&lt;br /&gt;Basically, bottled water is even worse than tap water,  on almost every count. Except, I think it tastes better, (but certainly  not because it&#39;s cleaner)&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/8114166116363569672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/8114166116363569672' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/8114166116363569672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/8114166116363569672'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2010/01/bottled-water-wasteful-expensive-and.html' title='Bottled water - wasteful, expensive, and unsanitary'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-2446577011973238990</id><published>2009-09-26T17:04:00.005-06:00</published><updated>2009-09-26T17:31:50.009-06:00</updated><title type='text'>Liberal Misrepresentation of the Tea Party events (smear tactics) -- what are the Tea Parties really about?</title><content type='html'>I found this statement in a community college newspaper (Hutchinson Community College in Kansas) the other day --&lt;br /&gt;&lt;br /&gt;&lt;blockquote style=&quot;font-style: italic;&quot;&gt;People aren’t willing to find out facts behind their beliefs, instead blindly accepting whatever they hear or read as fact, or fiction depending on said beliefs.&lt;br /&gt;&lt;br /&gt;Take a look at the people that are involved in the Tea Party movement, an organization filled with angry people who believe that their disparaging comments and actions are going to bring about change in America. Simply reading some of their signs shows their lack of reasoning and information. These slogans range from “Abort Obama”, “F@#$ The Poor” and the classy “I’m not your ATM Obama.”&lt;/blockquote&gt;&lt;br /&gt;I was a little teed off after reading this because I have personally attended Tea Party events, and I know they are not &quot;full&quot; of fringe, radical right-wing crazies trying to push their ideology of religion, anti-abortionism, etc down people&#39;s throats with violence and hateful signs. Yes, there are some isolated instances of this, but that is hardly the entire story, as anyone who rises above the cable chatter knows. I tried to make this clear to the author. Here is my response --&lt;br /&gt;&lt;br /&gt;******************************&lt;br /&gt;&lt;br /&gt;I find this article highly offensive and ignorant on several levels. However, for how, I just want to focus on the comment ___ made about the Tea Party movement. Let me address several of his ideas about the movement point by point –&lt;br /&gt;&lt;br /&gt;I want to discuss a) my personal experience with the tea parties, b) the actual principles of the tea party movement, d) the cause of the limited extremism at the tea parties, and d) the reality of what goes on at the vast majority of the tea parties.&lt;br /&gt;&lt;br /&gt;a) My personal experience: I have personally attended a Tea Party event (the 4th of July Dallas Tea Party event, specifically), and I did not find the people to be &quot;angry&quot; in the slightest, or their comments to be negatively &quot;disparaging&quot; in the least (there is a difference between constructive criticism and pure disparagement). The Dallas Tea Party event on the 4th of July of this year was a calm, docile event filled with reasoned (and enthusiastic) participants standing for what they believe. Your disparaging comments about the character and disposition of the people at these events are typical of the blatantly misrepresentative smear tactics that have been used by far-left persons even since the Tea Parties began. You have gone too far when you begin maligning the thousands of responsible, average citizens involved in grass-roots small-government activism with some of the more radical, unrepresentative instances you cited (such as the signs with “Abort Obama”, etc). Your generalization (events being “filled” with radical people) personally offends me as I was a part of one of these events, and I believe myself to be an open-minded and civil person, not a racist, ignorant, and narrow-minded one. Not only does it offend me because it’s not true of me, but it’s not true in general. What you have claimed is blatantly contradicted by what actually happens at these events. I will get back to that after discussing the principles of the tea party.&lt;br /&gt;&lt;br /&gt;b) The actual principles of the tea party movement: The Dallas Tea Party and the majority of the other tea Parties (nearly all of them, I dare say) stand for the same basic principles – limited government, fiscal responsibility, personal responsibility, the rule of law, and national sovereignty. For example, the platform for the Dallas Tea Party as of a few months ago (was on their website) were as follows --&lt;br /&gt;&lt;br /&gt;1. Limited Government – As our Founding Fathers recognized, restraint of government is necessary to protect the liberties of the people.&lt;br /&gt;2. Fiscal Responsibility – Government at all levels must learn to live within its means. To saddle future generations with the crushing burden of our excess spending is unconscionable.&lt;br /&gt;3. Personal Responsibility – Liberty is unsustainable without responsibility. Each citizen must take responsibility for the consequences of his or her own actions while respecting the rights and dignity of others.&lt;br /&gt;4. The Rule of Law – Consistent, independent and uniform application of the law is critical to a free and prosperous society.&lt;br /&gt;5. National Sovereignty – We must maintain a strong national defense, effective security for our borders, and sole control over our land and our laws.&lt;br /&gt;&lt;br /&gt;These principles are what the Tea Party movement is really about. There are radical extremes in every movement, and these surely must be contained – but it is not useful, instructive, or fair to focus on the excessively negative examples and ignore the positive aspects of the movement. Yes, there have been crazy people touting crazy signs at some limited number of Tea Party events, but as a recent opinion article in the Dallas Morning news said, the reality is that that the events are filled with a wide variety of people espousing different points of view, “united in their fear of the future and bedrock belief that Washington is not to be trusted”, not a “rabble-rousing mob of right-wing hotheads and religious nuts”.&lt;br /&gt;&lt;br /&gt;The Humble Libertarian website summarizes some reasonable Teabagger principles on their website – which are –&lt;br /&gt;&lt;br /&gt;* Voting out each and every single incumbent up for re-election in 2010 who voted for the Stimulus Package and/or the 2008 Wall Street Bailout.&lt;br /&gt;* Electing to office only candidates who promise to support a balanced budget amendment to the Constitution (without any exceptions -e.g. in the case of war, emergency, or a 3/5ths vote in Congress) in an act that also requires spending reductions only (no raising taxes) for the first four years to balance the budget, as well as:&lt;br /&gt;* The transition of Social Security from a mandatory pay-as-you go system to an optional system of private pensions.&lt;br /&gt;* A permanent repeal of the payroll tax.&lt;br /&gt;&lt;br /&gt;c) The repugnant signs you mention are the result of a lack of leadership in the Tea Party movement -- as the Dallas Morning news opinion article says, “the tea partiers&#39; main problem is lack of responsible leadership to bring focus, coherence and moderation to their movement.” The policing of the radical fringes of the movement is not something that is really being taken seriously at the moment, and this is why some have gotten a skewed perspective about what we are all about (the media misrepresentation does not help, either). Yes, the Tea Parties have leadership issues that need to be addressed, but this does not imply the issues being discussed at the events are irrelevant or should be completely dismissed. Liberals have every right to recognize and be outraged at the problem with the Tea Parties (fringe protestors touting repugnant signs), but they do not have the right to ignore the actual substantive issues the Tea Party wants addressed.&lt;br /&gt;&lt;br /&gt;d) What really happens at the tea parties: I have already given you anecdotal evidence about what goes on at the Tea Parties from my own personal experience. The same experience I mentioned has been repeated at thousands of other events as well. Bryon York describes a Tea Party event in Virginia as follows – “If you listened to the speeches at the Tax Day tea party held in the courthouse square of this northern Virginia town, population 25,733, you might not have caught the name of the man in the White House. Among many denunciations of high taxes and out-of-control government spending, there were just a couple of mentions of Barack Obama -- one when a local activist criticized the administration&#39;s cap-and-trade energy plan, and the other when a city businessman said he prays for the president … Here in Winchester, Tax Day was a serious and well-meaning affair. For the people here, there are principles at stake in this fight, and, as much as they can, they intend to stand up for what they believe.” Instances like this reinforce the notion that this movement is not based out of ignorance and racism – but people shocked at the expansion of the role of government in our daily lives (runaway federal spending, etc).&lt;br /&gt;&lt;br /&gt;Conclusion: Your view of the Tea Party is misrepresentative of reality. The events have problems with fringe protestors, but this does not mean you can dismiss the thousands of reasoned, principled citizens participating in acceptable ways and trying to change their country for the better.&lt;br /&gt;&lt;br /&gt;Sources&lt;br /&gt;&lt;br /&gt;http://www.humblelibertarian.com/2009/03/american-tea-party-2009-goals.html&lt;br /&gt;http://www.dallasnews.com/sharedcontent/dws/dn/opinion/editorials/stories/DN-march_0917edi.State.Edition1.281f723.html&lt;br /&gt;http://www.washingtonexaminer.com/politics/Small-town-rally-shows-true-meaning-of-tea-parties-43078082.html</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/2446577011973238990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/2446577011973238990' title='158 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/2446577011973238990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/2446577011973238990'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/09/liberal-misrepresentation-of-tea-party.html' title='Liberal Misrepresentation of the Tea Party events (smear tactics) -- what are the Tea Parties really about?'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>158</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-6742742811197650738</id><published>2009-09-11T10:42:00.006-06:00</published><updated>2009-09-11T11:03:30.561-06:00</updated><title type='text'>Internet Sharing fix for Sprint HTC devices (HTC Snap, etc) -- resolve error code 67</title><content type='html'>Are you getting error code 67 when you try to share the Sprint Vision network on your phone with your computer (via USB or Bluetooth?) Here is the fix that actually works (tested on HTC Snap).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;1)&lt;/span&gt; Download and install CE Registry Editor at &lt;a href=&quot;http://ceregeditor.mdsoft.pl/ceregedit_setup.exe&quot;&gt;http://ceregeditor.mdsoft.pl/ceregedit_setup.exe&lt;/a&gt;&lt;br /&gt;[Mirror: &lt;a href=&quot;http://www.4shared.com/file/131961139/a8a6fa59/ceregedit_setup.html&quot;&gt;http://www.4shared.com/file/131961139/a8a6fa59/ceregedit_setup.html&lt;/a&gt;]&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;2)&lt;/span&gt; Connect your phone to your computer via USB.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;3)&lt;/span&gt; Run CE Registry Editor. In the top menu, click Connection -&gt; Connect.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;4)&lt;/span&gt; Navigate to the key &quot;HKEY_LOCAL_MACHINE\Comm\InternetSharing\Settings&quot;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;5)&lt;/span&gt; The key &quot;ForceCellConnection&quot; should be set to &quot;Phone as Modem&quot;. That is bad. Right click on the key, click &quot;edit&quot;, and change the value to &quot;Sprint PCS&quot; (no quotes).&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;6)&lt;/span&gt; Click OK.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;7)&lt;/span&gt; On the top menu, select File -&gt; Save.&lt;br /&gt;&lt;br /&gt;This should allow you to tether your HTC devices to your computer (like I said, tested on HTC Snap)</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/6742742811197650738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/6742742811197650738' title='23 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6742742811197650738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6742742811197650738'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/09/internet-connection-sharing-fix-for-htc.html' title='Internet Sharing fix for Sprint HTC devices (HTC Snap, etc) -- resolve error code 67'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>23</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-6766125975223734976</id><published>2009-08-04T02:24:00.004-06:00</published><updated>2009-08-04T02:27:39.003-06:00</updated><title type='text'>PHP - Get a list of a particular day of the week between two dates</title><content type='html'>This is a modified version of function in the previous post. I had to modify it for a project I was doing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;****************************************************************************&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;&lt;br /&gt;function dayOfWeekListDateRange($start, $end, $day_of_week) &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    $range = array();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    if (is_string($start) === true) $start = strtotime($start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    if (is_string($end) === true ) $end = strtotime($end);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    if(!empty($day_of_week))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        do &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;            if(strcmp(strtolower(strftime(&quot;%A&quot;,$start)),&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;strtolower(&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;$day_of_week)) == 0)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;                $range[] = date(&#39;Y-m-d&#39;, $start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;                $start = strtotime(&quot;+ 1 day&quot;, $start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;                &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;            else $start = strtotime(&quot;+ 1 day&quot;, $start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        } &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        while($start &lt;= $end);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        do &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;            $range[] = date(&#39;Y-m-d&#39;, $start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;            $start = strtotime(&quot;+ 1 day&quot;, $start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;        while($start &lt;= $end);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;    return $range;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;}&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/6766125975223734976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/6766125975223734976' title='83 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6766125975223734976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6766125975223734976'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/08/php-get-list-of-particular-days-of-week.html' title='PHP - Get a list of a particular day of the week between two dates'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>83</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-6540008327268752086</id><published>2009-08-04T02:22:00.002-06:00</published><updated>2009-08-04T02:24:02.917-06:00</updated><title type='text'>PHP - Get a range of dates between two dates</title><content type='html'>&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;function dateRangeArray($start, $end) &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    $range = array();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    if (is_string($start) === true) $start = strtotime($start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    if (is_string($end) === true ) $end = strtotime($end);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    do {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    $range[] = date(&#39;Y-m-d&#39;, $start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    $start = strtotime(&quot;+ 1 day&quot;, $start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    } while($start &lt;= $end);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    return $range;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Credit: http://boonedocks.net/mike/archives/137-Creating-a-Date-Range-Array-with-PHP.html</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/6540008327268752086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/6540008327268752086' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6540008327268752086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6540008327268752086'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/08/php-get-range-of-dates-between-two.html' title='PHP - Get a range of dates between two dates'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-8954358682435374577</id><published>2009-08-04T02:14:00.003-06:00</published><updated>2009-08-04T02:19:00.473-06:00</updated><title type='text'>PHP - Serialize an array for use in a MySQL table</title><content type='html'>This is the function I made to &quot;serialize&quot; a PHP array for dumping into a MySQL table into a readable, searchable format. It separates each value with an uncommon character , &quot;|&quot;.&lt;br /&gt;&lt;br /&gt;When you grab the &quot;serialized&quot; data out of the DB later, you should run the following to convert it back to an array --&lt;br /&gt;&lt;br /&gt;$values_array = explode(&quot;|&quot;, $seralizedValues);&lt;br /&gt;&lt;br /&gt;I&#39;m aware that there is a PHP function to serialize data, but I wanted to make my own simpler, easier version that did not insert the array keys or any other junk into the array. Take it to leave it.&lt;br /&gt;&lt;br /&gt;*******************************************************&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;function serializeArray($arr)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    $temp = &quot;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    if(!empty($arr))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    {     &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    $iter = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    $arr_size = count($arr);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    foreach ($arr as $item)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;        $iter++;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;        $temp.=$item;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;        if($iter!==$arr_size) $temp.=&quot;|&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;    return $temp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;}&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/8954358682435374577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/8954358682435374577' title='228 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/8954358682435374577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/8954358682435374577'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/08/php-serialize-array-for-use-in-mysql.html' title='PHP - Serialize an array for use in a MySQL table'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>228</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-7052408376477083598</id><published>2009-08-04T02:11:00.002-06:00</published><updated>2009-08-04T02:19:24.075-06:00</updated><title type='text'>PHP - Format a variable for a MySQL query</title><content type='html'>This is my personal, very simple function I use to get a variable ready for use in a MySQL query.&lt;br /&gt;&lt;br /&gt;*****************************************************&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;function sqlformat($var)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;{   &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;   return &quot;&#39;&quot;.addslashes(trim($var)).&quot;&#39;&quot;;       &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-family: courier new;&quot;&gt;}&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/7052408376477083598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/7052408376477083598' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/7052408376477083598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/7052408376477083598'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/08/php-format-variable-for-mysql-query.html' title='PHP - Format a variable for a MySQL query'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-4827342636186999173</id><published>2009-08-04T01:57:00.004-06:00</published><updated>2009-08-04T02:06:19.584-06:00</updated><title type='text'>PHP - Find min and max values in an array</title><content type='html'>&lt;code style=&quot;white-space: nowrap;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;&lt;span style=&quot;color: rgb(255, 128, 0);&quot;&gt;/**&lt;br /&gt;signature&lt;br /&gt;  array getMinMax( array )&lt;br /&gt;&lt;br /&gt;returns an associative array with:&lt;br /&gt;  &#39;min&#39; -&gt; smallest value in the given array&lt;br /&gt;  &#39;max&#39; -&gt; greatest value in the given array&lt;br /&gt;&lt;br /&gt;if the array is empty both fields are NULL&lt;br /&gt;*/&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;getMinMax&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;reset&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;);&lt;br /&gt;  if(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;FALSE &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;=== &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;))&lt;br /&gt;  {&lt;br /&gt;      return array(&lt;/span&gt;&lt;span style=&quot;color: rgb(221, 0, 0);&quot;&gt;&#39;min&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;=&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: rgb(221, 0, 0);&quot;&gt;&#39;max&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;=&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$min &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$max &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;current&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;);&lt;br /&gt;  &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$val &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;next&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;);&lt;br /&gt;&lt;br /&gt;  while(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;NULL &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;!== &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;))&lt;br /&gt;  {&lt;br /&gt;      if(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$val &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$max&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;)&lt;br /&gt;      {&lt;br /&gt;          &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$max &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$val&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;;&lt;br /&gt;      }&lt;br /&gt;      elseif(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$val &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;&lt; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;)&lt;br /&gt;      {&lt;br /&gt;          &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$min &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$val&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;;&lt;br /&gt;      }&lt;br /&gt;      &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$val &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;next&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;);&lt;br /&gt;  }&lt;br /&gt;  return array(&lt;/span&gt;&lt;span style=&quot;color: rgb(221, 0, 0);&quot;&gt;&#39;min&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;=&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$min&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: rgb(221, 0, 0);&quot;&gt;&#39;max&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;=&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 187);&quot;&gt;$max&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;Usage:&lt;br /&gt;&lt;br /&gt;&lt;code style=&quot;white-space: nowrap;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;$min_max_arr = getMinMax($myarray);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;code style=&quot;white-space: nowrap;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;$min_val = $min_max_arr[&#39;min&#39;&lt;span style=&quot;font-family:Georgia,serif;&quot;&gt;];&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;code style=&quot;white-space: nowrap;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 119, 0);&quot;&gt;$max_val = $min_max_arr[&#39;max&#39;&lt;span style=&quot;font-family:Georgia,serif;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;(found here -- http://www.codingforums.com/showthread.php?t=130494)&lt;br /&gt;&lt;br /&gt;Example application -- If you had an array of dates, you could turn each entry into a timestamp, run the array of timestamps through this function, and get the minimum and maximum timestamps. Then you could simply convert the min and max timestamps back to a string (using something like &lt;span style=&quot;font-style: italic;&quot;&gt;strftime).&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/4827342636186999173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/4827342636186999173' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/4827342636186999173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/4827342636186999173'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/08/php-find-min-and-max-values-in-array.html' title='PHP - Find min and max values in an array'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-2389003330355375602</id><published>2009-04-29T22:07:00.002-06:00</published><updated>2009-04-29T22:11:06.279-06:00</updated><title type='text'>Why the Swine Flu is more dangerous than the regular flu</title><content type='html'>&lt;b&gt;Why is this strain dangerous?&lt;br /&gt;***********************&lt;/b&gt;********&lt;br /&gt;&lt;br /&gt;There are three reasons why this issue is more serious than the regular flu.&lt;br /&gt;&lt;br /&gt;a) The main issue with this strain is that no one has a natural immunity to it, because it has never really been seen before this point in time in it&#39;s current genetic form. And a vaccine can take months to develop. Vaccines generally take at least 9 months to develop under normal conditions, and even the accelerated development of the vaccines for this strain will take until at least September to develop. You can see where problems are going to arise. People are just going to keep on catching it and not fighting it of effectively, and then pass it on to others, because we have nothing to fight it off completely yet. To be more specific, this new strain has taken on genetic elements from animal viruses, potentially making it (genetically) unique enough to pose a pandemic threat. Experts say that our current seasonal flu vaccines are not going to be effective against this strain at all.&lt;br /&gt;&lt;br /&gt;b) This particular strain seems to attack the young and healthy, rather than the sickly, old, or extremely young. The people who died in Mexico were younger (healthy people in their 20s, 30s, and 40s). The problem with this is that when a virus attacks healthy people preferentially, it suggests that the strain is completely new and is causing overreactions in the immune system. Basically, the logic is that this strain is causing the body to create abnormally large numbers of normally helpful inflammatory antibodies, which are so abundant that they actually end up causing more harm than good. This is exactly what happened with the bird flu fairly recently.&lt;br /&gt;&lt;br /&gt;c) It&#39;s all about the potential ... it&#39;s not about what&#39;s happening right now. Even though most of the cases so far in the United States have not been very serious (except for that one kid who died), the virus spreading across the U.S. is identical to the strain of the virus that is killing people in Mexico (genetically speaking), meaning that the possibility that there could be similar deaths in the U.S. is not completely unfathomable.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is the main alarm bell?&lt;br /&gt;&lt;/b&gt;&lt;b&gt;***********************&lt;/b&gt;*******&lt;br /&gt;&lt;br /&gt;Sudden onset fever. Watch out for this in particular.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Are there are signs of hope?&lt;br /&gt;***********************&lt;/b&gt;*****&lt;br /&gt;&lt;br /&gt;Influenza strains don&#39;t like the heat of summer. So this issue is going to die out somewhat (or significantly) during the summer months. This gives us a short window of a few months to develop a vaccine as rapidly as possible.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What&#39;s the best way to prevent getting this?&lt;br /&gt;&lt;span&gt; **************************&lt;/span&gt;&lt;wbr&gt;&lt;span class=&quot;word_break&quot;&gt;&lt;/span&gt;**********&lt;/b&gt;*********&lt;br /&gt;&lt;br /&gt;All we can really do is use hand sanitizers and wash our hands with soap whenever we touch a public surface. Also, if you suspect someone has the flu around you, get at least 3 - 6 feet the heck away from them.</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/2389003330355375602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/2389003330355375602' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/2389003330355375602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/2389003330355375602'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/04/why-swine-flu-is-more-dangerous-than.html' title='Why the Swine Flu is more dangerous than the regular flu'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-4674840797816532794</id><published>2009-03-29T10:57:00.000-06:00</published><updated>2009-03-29T10:58:04.294-06:00</updated><title type='text'>Creating Samba shares with no username or password in Ubuntu Linux</title><content type='html'>Samba sometimes frustrates me. It seems to be very picky about under what circumstances it will actually let you broadcast the existence of your Linux machine on your LAN, and share a folder with read and write permissions for other Linux or Windows users to see.&lt;br /&gt;&lt;br /&gt;After a little tinkering, here&#39;s how I went about doing just that.&lt;br /&gt;&lt;br /&gt;(thanks to http://www.debuntu.org/guest-file-sharing-with-samba) for most of the tips)&lt;br /&gt;&lt;br /&gt;********&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(1)&lt;/span&gt;&lt;/span&gt; Make sure you have Samba installed. As far as I remember, it is included with most distributions, but just in case, try this --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;sudo apt-get install samba&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(2)&lt;/span&gt;&lt;/span&gt; Now you need to modify the Samba configuration file located at&lt;span style=&quot;font-style: italic;&quot;&gt; /etc/samba/smb.conf &lt;/span&gt;and make some changes to remove the necessity to type in a username and password every time you wish to access a share. Run --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;sudo gedit /etc/samba/smb.conf&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(3)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;/span&gt;At some point, you might want to share a folder that does not belong to you on the network. To allow this, under the [global] section of this file, add (copy + paste) the following line --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;usershare owner only = False&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(4)&lt;/span&gt;&lt;/span&gt; Find the variable &quot;security&quot; (in the global section) and ensure that it is set to &quot;share&quot;. The security line should look like this --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;security = share&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;(if you absolutely can&#39;t find the security variable anywhere, add it to the file under the global section)&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(5)&lt;/span&gt;&lt;/span&gt; Find the variable &quot;guest account&quot; (in the global section) and ensure that is set to &quot;nobody&quot;. The guest account line should look like this --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;guest account = nobody&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(if you absolutely can&#39;t find the guest account variable anywhere, add it to the file under the global section)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(6)&lt;/span&gt;&lt;/span&gt; One guide I found said that since you are making Samba security insecure, you should ensure that only your local network can access the Samba service. I personally did not end up keeping this line in my smb.conf, because I did not seem to have any success getting Samba up and running by adding this to the config file, but you can (and probably should) at least try this to make sure it works. So go ahead and add this in, and if you can&#39;t access Samba/any shares after finishing the guide, remove the line altogether (or make sure you have permitted the right interface to bind).&lt;br /&gt;&lt;br /&gt;To try this, you need to set the &lt;em&gt;interfaces&lt;/em&gt; variable to &lt;em&gt;lo&lt;/em&gt; and your local network interface (e.g &lt;em&gt;eth0, eth1, wlan0) &lt;/em&gt; and you need to specify that only these interfaces can bind&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;interfaces = lo eth0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;bind interfaces only = true&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(7)&lt;/span&gt;&lt;/span&gt; Now, smb.conf should be set. Restart the samba daemon like this --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;sudo service samba restart&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(8)&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;At this point, you have two options to add a shared folder on your machine. There&#39;s the easy way, that actually seems to work, and there&#39;s the hard, theoretical way, that I havn&#39;t had any sucess why. I&#39;ll go over the easy way first.&lt;br /&gt;&lt;br /&gt;The easy way to share a folder is similar to the way you share a folder in Windows. All you need to do is right click on the folder in the question, press &quot;Sharing Options&quot;, and fill out the resulting dialog. I recommend the following options --&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://i41.tinypic.com/opmwqa.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;At this point, you should be done. Congratulations. You should be able to access your shared folder by browsing your workgroup from another machine (Windows or Linux-based).&lt;br /&gt;&lt;br /&gt;As far as I know, the name of your server is the host name of your computer, truncated to 15 characters. For example, the host name of my computer is andrew-laptop-mint. I can access my samba shares from Windows, for example, with \\andrew-laptop-m\Share (for example). You can get your host name by simply opening up a terminal and typing in &lt;span style=&quot;font-weight: bold;&quot;&gt;hostname.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;EXTRA: Here&#39;s the hard, theoretical way to add a shared folder in Samba --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(1) &lt;/span&gt;&lt;/span&gt;Run the following --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;sudo gedit /etc/samba/smb.conf&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(2) &lt;/span&gt;&lt;/span&gt;Near the bottom of the file, or where the other entires of this sort seem to be, add the following text (replacing generic items I&#39;ve written in with your own variables, of course)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;[generic-share]&lt;br /&gt;path = /folder/to/share&lt;br /&gt;comment = Insert comment here&lt;br /&gt;read only = no&lt;br /&gt;available = yes&lt;br /&gt;browseable = yes&lt;br /&gt;writable = yes&lt;br /&gt;guest ok = yes&lt;br /&gt;public = yes&lt;br /&gt;printable = no&lt;br /&gt;share modes = no&lt;br /&gt;locking = no&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(3)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span&gt;Run this -- &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;sudo service samba restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(4)&lt;/span&gt;&lt;/span&gt; You should have a shared folder now, although I can&#39;t say I&#39;ve had any success with this. What&#39;s even more interesting is that the &quot;Sharing options&quot; method I described above doesn&#39;t seem to add anything of this sort to smb.conf. I don&#39;t know what&#39;s going on, maybe someone can enlighten me.&lt;br /&gt;&lt;br /&gt;Good luck!&lt;br /&gt;&lt;iframe id=&quot;AnswersBalloonIframe&quot; src=&quot;javascript:;&quot; style=&quot;border: medium none ; z-index: 99998; position: absolute; width: 490px; height: 306px; visibility: hidden; background-color: transparent; top: 421px; left: 593px; margin-left: 10px; margin-top: 10px;&quot;&gt;&lt;/iframe&gt;&lt;div style=&quot;width: 490px; position: absolute; visibility: hidden; z-index: 99999; text-align: left; top: 397px; left: 593px;&quot; id=&quot;AnswersBalloon&quot;&gt;&lt;div class=&quot;AnswersHeader&quot;&gt;&lt;div class=&quot;AnswersHeaderInner&quot; id=&quot;AnswersHandle0&quot; style=&quot;cursor: move;&quot; handlefor=&quot;AnswersBalloon&quot;&gt;&lt;div class=&quot;AnswersHeader1&quot;&gt;&lt;a style=&quot;float: right;&quot; onclick=&quot;var ac = document.getElementById(&#39;answertipClose&#39;); if (ac) ac.innerHTML=&#39;close&#39;; else window.status=&#39;close&#39;; return true;&quot;&gt;&lt;img id=&quot;AnswersCloseImage&quot; style=&quot;margin-right: 10px; position: relative; cursor: pointer;&quot; alt=&quot;Close&quot; src=&quot;http://www.answers.com/main/images/close.gif&quot; align=&quot;top&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a id=&quot;AnswertipMore&quot; target=&quot;AnswersQueryWindow&quot; onclick=&quot;var ac = document.getElementById(&#39;answertipClose&#39;); if (ac) ac.innerHTML=&#39;close&#39;; else window.status=&#39;close&#39;;return true;&quot; style=&quot;float: right; text-decoration: none; visibility: hidden; padding-right: 10px; margin-top: 9px; cursor: pointer;&quot;&gt;&lt;span class=&quot;AnswersHeader3&quot;&gt; Read more &gt;&gt;  &lt;/span&gt;&lt;/a&gt;&lt;a id=&quot;AnswertipOptions&quot; onclick=&quot;var ac = document.getElementById(&#39;answertipClose&#39;); if (ac) ac.innerHTML=&#39;options&#39;; else window.status=&#39;options&#39;;return true;&quot; style=&quot;float: right; text-decoration: none; padding-right: 10px; margin-top: 9px; cursor: pointer;&quot;&gt;&lt;span class=&quot;AnswersHeader3&quot;&gt; Options &gt;&gt;  &lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a style=&quot;float: left; cursor: pointer;&quot; href=&quot;http://www.answers.com/?initiator=FFANS&quot;&gt;&lt;img id=&quot;AnswersLogoImage&quot; style=&quot;&quot; alt=&quot;Visit Answers.com&quot; src=&quot;http://www.answers.com/main/images/answers-logo.gif&quot; align=&quot;top&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;Answers_frame&quot; class=&quot;AnswersContentFrame&quot;&gt;&lt;table id=&quot;Balloontable2&quot; class=&quot;donotmoveme&quot; style=&quot;width: 480px; float: left;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class=&quot;AnswersFooter&quot; id=&quot;Answers_footer&quot;&gt;&lt;div style=&quot;width: 471px; height: 22px; float: left;&quot;&gt;&lt;iframe id=&quot;AnswersAds&quot; allowtransparency=&quot;true&quot; style=&quot;border: 0px none ; padding: 0px; width: 100%; height: 22px;&quot; src=&quot;http://www.answers.com/main/tip2.jsp?s=Samba%2520sometimes%2520frustrates%2520me.%2520It%2520seems%2520to%2520be%2520very%2520picky%2520about%2520under%2520what%2520circu&amp;amp;wt=1&amp;amp;nafid=&amp;amp;cobrand=&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;gt;&lt;/iframe&gt;&lt;/div&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/4674840797816532794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/4674840797816532794' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/4674840797816532794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/4674840797816532794'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/03/creating-samba-shares-with-no-username_29.html' title='Creating Samba shares with no username or password in Ubuntu Linux'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://i41.tinypic.com/opmwqa_th.png" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-5804673708413124615</id><published>2009-01-10T16:35:00.002-06:00</published><updated>2009-01-10T17:25:39.687-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="News Summary"/><title type='text'>News Summary: Israel tells Gazans to brace for war escalation</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot; class=&quot;headline&quot;&gt;Israel tells Gazans to brace for war escalation    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;http://hosted.ap.org/dynamic/stories/M/ML_ISRAEL_PALESTINIANS?SITE=VACUL&amp;amp;SECTION=HOME&amp;amp;TEMPLATE=DEFAULT&lt;br /&gt;&lt;br /&gt;Basically, Israel is warning the people of Gaza to brace for more bloodshed in Gaza. The Israelis issued this note to the Gazans --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;The IDF (Israeli Defense Forces) is not working against the people of Gaza but against Hamas and the terrorists only,&quot; the leaflets said in Arabic. &quot;Stay safe by following our orders.&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Meanwhile many are protesting Israel&#39;s increasing violence against the region.&lt;br /&gt;&lt;br /&gt;The other side of the story? Some say that Hamas is doing everything in its power to provoke Israel into killing as many Palestinian civilians as possible, in order to generate condemnation against the Jewish state. (http://www.nationalpost.com/news/story.html?id=1149129&amp;amp;p=3)</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/5804673708413124615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/5804673708413124615' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/5804673708413124615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/5804673708413124615'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/01/news-summary-israel-tells-gazans-to.html' title='News Summary: Israel tells Gazans to brace for war escalation'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-3120411070139182795</id><published>2009-01-02T15:05:00.020-06:00</published><updated>2009-01-03T10:12:38.539-06:00</updated><title type='text'>How to recover most/all of your JournalSpace posts/images using Google Cache</title><content type='html'>Hey all --&lt;br /&gt;&lt;br /&gt;I just read on Slashdot how JournalSpace.com has had a serious database issue, resulting in the loss of all their users posts, images, personal data, and more.&lt;br /&gt;&lt;br /&gt;Immediately, I thought, &quot;Google cache probably took snapshots of may users posts, and maybe even some of their images. It&#39;s worth a shot running a sample query...&quot;&lt;br /&gt;&lt;br /&gt;So I ran a sample Google query on someone&#39;s JournalSpace username, and I was correct. It looks like all, if not most of your posts and maybe even images have been preserved by our big brother Google. For one sample query I did on a user, I got pages and pages of results!&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Unfortunately, this method only works for people who did not have their blogs/journals set to be viewable only by other JournalSpace members, or set to Friends &amp;amp;/or Favorites only, and for other entries that were not set to private. Also, if people configured their blogs so that the googlebot, or other bots were blocked, they may have limited success in resurrecting old entries from the cache&lt;/span&gt; (thanks Charm for this info). So a lot of people may have limited or no success with these methods. For that group, I extend my sympathies. I know the feeling of losing so much personal data.&lt;br /&gt;&lt;br /&gt;Assuming you didn&#39;t do any of the things above, try running a Google search like so --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;site:your_journalspace_username.journalspace.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then, look for the link labeled &quot;Cached&quot; under any particular result, and you&#39;ll get  Google&#39;s cached version.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0VSyuMtcdAOVQ5bIHho9xP0fbUyIvKAVEV0f8Uh-mTv7svDiyYikRPriXYDzddbF0IKqOPBG7Oscb6XjpTx_4CDFZB9AB0lmn3r9VEZaDuvd5PiqdIUZkgSZcxxDznSBy-DkXYv2VnRU/s1600-h/cached.bmp&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 187px; height: 17px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0VSyuMtcdAOVQ5bIHho9xP0fbUyIvKAVEV0f8Uh-mTv7svDiyYikRPriXYDzddbF0IKqOPBG7Oscb6XjpTx_4CDFZB9AB0lmn3r9VEZaDuvd5PiqdIUZkgSZcxxDznSBy-DkXYv2VnRU/s320/cached.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5287100195068334226&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For example, if I had a JournalSpace, I&#39;d simply type in Google --&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;site:andrewtheart.journalspace.com&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Other ideas for Google searches:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Get a particular post from an entryid (thanks Class Factotum)--&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;entryid &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;site:your_username.journalspace.com&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Get posts by date (examples)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-weight: bold;&quot; class=&quot;postbody&quot;&gt;site:your_username.journalspace.com &quot;m=12&quot; &quot;y=2008&quot;&lt;br /&gt;site:&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot; class=&quot;postbody&quot;&gt;your_username.&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot; class=&quot;postbody&quot;&gt;journalspace.com &quot;y=2008&quot;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Get comments from cached entries (thanks Charm) --&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;         &quot;your_username.journalspace.com&quot; displaycomments&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Get any page on JournalSpace with a reference to your name (may not work as intended/expected) -- &lt;/li&gt;&lt;/ul&gt;&lt;span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;            your_user_name site:journalspace.com&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;There may be better ways to search Google for your cached posts. Experiment a bit and post your results here.&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Some have also recommended using the Web Archive to look up old posts (thanks Frederick and Anon) -- &lt;a href=&quot;http://www.archive.org/web/web.php&quot; target=&quot;_blank&quot;&gt;http://www.archive.org/web/web.php&lt;/a&gt;. I tried using this, but it appears like the webmaster has blocked access to JournalSpace archives (at least temporarily). Maybe they couldn&#39;t handle the traffic. Give it a shot anyway.&lt;br /&gt;&lt;br /&gt;You may want to try the Google cache trick quickly. I have a sinking suspicion Google may not like all this traffic.&lt;br /&gt;&lt;br /&gt;You saw it here first. Good luck.&lt;br /&gt;&lt;br /&gt;Andrew&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/3120411070139182795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/3120411070139182795' title='251 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/3120411070139182795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/3120411070139182795'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2009/01/how-to-recover-mostall-of-your.html' title='How to recover most/all of your JournalSpace posts/images using Google Cache'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0VSyuMtcdAOVQ5bIHho9xP0fbUyIvKAVEV0f8Uh-mTv7svDiyYikRPriXYDzddbF0IKqOPBG7Oscb6XjpTx_4CDFZB9AB0lmn3r9VEZaDuvd5PiqdIUZkgSZcxxDznSBy-DkXYv2VnRU/s72-c/cached.bmp" height="72" width="72"/><thr:total>251</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-6829165993216506460</id><published>2008-12-23T16:29:00.004-06:00</published><updated>2008-12-24T12:41:26.417-06:00</updated><title type='text'>Blank screen on startup after installing Ubuntu 8.10? Try this fix</title><content type='html'>Compiz (a fancy window manager for Linux) is probably causing the problem.&lt;br /&gt;&lt;br /&gt;Reboot your computer. When GRUB pops up, it may say &quot;Press ESC to enter menu&quot;, or alternatley you may be kicked to the menu if you have multiple OS&#39;s installed. Either way, when you get to the OS selection menu, select the menu option (kernel choice) that has the word &quot;Recovery&quot; in it.&lt;br /&gt;&lt;br /&gt;Once that&#39;s loaded, choose the &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;drop to&lt;/span&gt; &lt;b&gt;root terminal&lt;/b&gt;&quot; option (to that effect, the exact wording may be different) from the imtimidating blue menu that pops up.&lt;br /&gt;&lt;br /&gt;From there, type the following command.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;margin: 5px 20px 20px;&quot;&gt;  &lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;Code:&lt;/div&gt;  &lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;&quot;&gt;sudo apt-get purge compiz compiz-core&lt;/pre&gt; &lt;/div&gt;Now reboot your computer just in case.&lt;br /&gt;&lt;br /&gt;Hope that works...</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/6829165993216506460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/6829165993216506460' title='27 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6829165993216506460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6829165993216506460'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2008/12/blank-screen-on-startup-after.html' title='Blank screen on startup after installing Ubuntu 8.10? Try this fix'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>27</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-5656101427271190837</id><published>2008-08-19T20:28:00.008-06:00</published><updated>2008-08-19T21:01:47.731-06:00</updated><title type='text'>Download a YouTube video using C#</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;I&#39;ve posted the code to download a YouTube video using C# at PasteBin -&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href=&quot;http://pastebin.com/f396257b6&quot;&gt;http://pastebin.com/f396257b6&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Original credit goes here - http://krishnan.co.in/blog/post/download-videos-from-youtube-(C).aspx</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/5656101427271190837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/5656101427271190837' title='49 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/5656101427271190837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/5656101427271190837'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2008/08/ive-posted-code-to-download-youtube.html' title='Download a YouTube video using C#'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>49</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-7325420784359784881</id><published>2008-08-09T18:26:00.004-06:00</published><updated>2008-08-09T18:33:52.288-06:00</updated><title type='text'>Visual C# 2008 Express Edition Setup Error - Setup has encountered a problem while trying to copy...</title><content type='html'>Recently, I was attempting to install Visual C# Express 2008 Edition on my Windows XP computer and got this error message after downloading the &quot;Web Installer: -&lt;br /&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;br /&gt;Screenshot -&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;file:///tmp/moz-screenshot-1.jpg&quot; alt=&quot;&quot; /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi19HMh_nL66Hr-3v7iyXdfSR06bYbGb3XAHzVFBdga8BEZ_y-QNTweU5rtCvgOIrxJ2ntdszPIdX_cz0OvrOVdL9I4GOYhPm385kCwgze7FS6fOBKe5Bi1AWZYZkHpSYfLyfVNWqgtel4/s1600-h/setup_error.JPG&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi19HMh_nL66Hr-3v7iyXdfSR06bYbGb3XAHzVFBdga8BEZ_y-QNTweU5rtCvgOIrxJ2ntdszPIdX_cz0OvrOVdL9I4GOYhPm385kCwgze7FS6fOBKe5Bi1AWZYZkHpSYfLyfVNWqgtel4/s320/setup_error.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5232679563806897266&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;img alt=&quot;&quot; src=&quot;file:///tmp/moz-screenshot.jpg&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Error Text -&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Setup has encountered a problem while trying to copy:&lt;br /&gt;m:\&lt;long&gt;\$shtdwn$.req&lt;br /&gt;Press Retry to attempt the copy again. Press Cancel to cancel setup.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;After reading some forum (can&#39;t find the web page again!), I determined that it was probably related to the fact that Windows had decided to use my ext3 formatted hard disk drive (mounted locally using &lt;a href=&quot;http://www.google.com/url?sa=t&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fwww.fs-driver.org%2F&amp;amp;ei=cTCeSMjAAYye8QTllcWiBQ&amp;amp;usg=AFQjCNF0ECxOZzZPou5IxvZ5ewrIF91Ntw&amp;amp;sig2=WqNHQwseIbWL4Tv_FbkCPg&quot;&gt;Ext2 IFS&lt;/a&gt;) to extract temporary files to, and this was causing some issues with the installer. The easy solution is to simply download the Visual Studio Express Editions DVD ISO (link &lt;a href=&quot;http://www.microsoft.com/express/download/#webInstall&quot;&gt;here&lt;/a&gt; should work, if not Google for &quot;Offline Install), and either burn it to a DVD and run the installer that way, or use a ISO mounting utility like &lt;a href=&quot;http://www.google.com/url?sa=t&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fwww.daemon-tools.cc%2F&amp;amp;ei=LjGeSJ_vCKCk8ASg07imBQ&amp;amp;usg=AFQjCNGJZaHeohxEukd87Ktixsgiojbuuw&amp;amp;sig2=VIZagXvO6ohSy1iLfR2tzQ&quot;&gt;Daemon Tools&lt;/a&gt; to mount it in a virtual DVD Drive.&lt;br /&gt;&lt;br /&gt;Hope this saves someone a little time.&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/7325420784359784881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/7325420784359784881' title='79 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/7325420784359784881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/7325420784359784881'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2008/08/visual-c-2008-express-edition-setup_2637.html' title='Visual C# 2008 Express Edition Setup Error - Setup has encountered a problem while trying to copy...'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi19HMh_nL66Hr-3v7iyXdfSR06bYbGb3XAHzVFBdga8BEZ_y-QNTweU5rtCvgOIrxJ2ntdszPIdX_cz0OvrOVdL9I4GOYhPm385kCwgze7FS6fOBKe5Bi1AWZYZkHpSYfLyfVNWqgtel4/s72-c/setup_error.JPG" height="72" width="72"/><thr:total>79</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-459884914886713512</id><published>2008-07-02T19:16:00.006-06:00</published><updated>2008-07-02T19:46:11.199-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mime"/><category scheme="http://www.blogger.com/atom/ns#" term="rdesktop"/><category scheme="http://www.blogger.com/atom/ns#" term="rdp"/><category scheme="http://www.blogger.com/atom/ns#" term="remote desktop"/><category scheme="http://www.blogger.com/atom/ns#" term="tsclient"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Fixing rdp MIME type in Ubuntu Linux</title><content type='html'>If you&#39;ve ever been presented with the problem of downloading a dynamically generated (or even static) rdp (Remote Desktop) file from within Firefox in Linux and you were optimistically expecting Firefox to recognize it and open it in some graphical interface like tsclient, you were probably sorely disappointed - you might have gotten a message like -&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;You have chosen to open&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;example.rdp&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Which is a: BIN file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this instance, you are only granted the option to Save the file to your computer.&lt;br /&gt;&lt;br /&gt;To fix this, you need to configure Linux to automatically recognize this MIME type so that Firefox recognizes the file type as something besides binary (for some reason you can&#39;t directly add the recognition in Firefox without extensions).&lt;br /&gt;&lt;br /&gt;To do this, you need to add the rdp MIME info into the file /etc/mime.types. Run the following two commands to quickly achieve this -&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;sudo -i&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;echo &quot;application/x-rdp rdp&quot; &gt;&gt; /etc/mime.types&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This simply appends the rdp MIME info to the file.&lt;br /&gt;&lt;br /&gt;Trying download a rdp file from Firefox now (you don&#39;t need to restart it). When the Save dialog pops up (and actually recongnizes the file type!), press the &quot;Browse...&quot; button to open the Application Helper selection dialog.&lt;br /&gt;&lt;br /&gt;In the resulting window, locate the &quot;Location&quot; bar and type /usr/bin/tsclient (for example, if you have this installed). Press &quot;Open&quot; to continue. Firefox should now associate .rdp files with tsclient. Press &quot;OK&quot; on the open dialog to proceed.&lt;br /&gt;&lt;br /&gt;The Terminal Services Client GUI will open. You may wish to change the various options using the tabular interface provided. This application is richer than the built in Windows Terminal Services client itself!&lt;br /&gt;&lt;br /&gt;The next time you click on a n RDP file, Firefox should remember the association and ask you if you want to open the file in tsclient. If the &quot;Open with&quot; field in Firefox&#39;s Open dialog on attempts subsequent to this tutorial is blank, press &quot;OK&quot; regardless. tsclient should still launch.&lt;br /&gt;&lt;br /&gt;Side note: to use tsclient, you need the packages&lt;br /&gt;&lt;br /&gt;* tsclient&lt;br /&gt;* rdesktop&lt;br /&gt;&lt;br /&gt;So just&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;sudo apt-get install rdesktop tsclient&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/459884914886713512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/459884914886713512' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/459884914886713512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/459884914886713512'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2008/07/fixing-rdp-mime-type-in-ubuntu-linux.html' title='Fixing rdp MIME type in Ubuntu Linux'/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4055985264948933402.post-6483362851322083334</id><published>2008-04-20T15:20:00.000-06:00</published><updated>2008-04-20T15:21:37.383-06:00</updated><title type='text'></title><content type='html'>&lt;h2&gt;Ubuntu 8.04 Notes and Tips&lt;/h2&gt; &lt;p&gt;I currently run Ubuntu 8.04 on an old eMachines desktop, and on my Toshiba A215-4767 laptop. &lt;/p&gt; &lt;p&gt;Here I will update the Linux community with my experiences installing and maintaining this crazy operating system on two machines.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.andrewsteinhome.com/public_html/misc/linux/index.html#gen&quot;&gt;General Notes&lt;/a&gt;     &lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.andrewsteinhome.com/public_html/misc/linux/index.html#gen&quot;&gt;Getting VirtualBox set up&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://monkeyblog.org/ubuntu/installing/&quot;&gt;Installing anything in Ubuntu&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.andrewsteinhome.com/public_html/misc/linux/index.html#toshiba&quot;&gt;Toshiba A215-4767 Specific Notes&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.andrewsteinhome.com/public_html/misc/linux/index.html#wireless&quot;&gt;Wireless&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.andrewsteinhome.com/public_html/misc/linux/index.html#sound&quot;&gt;Sound&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt; &lt;p class=&quot;style1&quot;&gt;&lt;u&gt;&lt;a name=&quot;gen&quot; id=&quot;gen&quot;&gt;&lt;/a&gt;Getting VirtualBox set up&lt;/u&gt;&lt;/p&gt; &lt;p&gt;For getting VirtualBox properly set up and configured, &lt;a href=&quot;http://n00buntu.blogspot.com/2007/11/howto-ubuntu-compiz-virtualbox-part-1.html&quot;&gt;this&lt;/a&gt; guide will point you in the right direction. The steps are pretty much the same for 8.04 (Hardy Heron).&lt;/p&gt; &lt;p&gt;The highlights of the guide are these - &lt;/p&gt; &lt;p&gt;&lt;strong&gt;(1)&lt;/strong&gt; &lt;strong&gt;Two versions to choose from - OSE vs Non-Free&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&quot;There are two versions of &lt;a href=&quot;http://www.virtualbox.org/&quot;&gt;VirtualBox,&lt;/a&gt; the OSE (opensource edition) and the closed source, binary one. The OSE edition is the one you will find in the Ubuntu repositories (add/remove programs), but it lacks some features of the binary one, most notably, USB support. For this reason, I would advice using the binary. For Hardy, download it &lt;a href=&quot;http://cds-esd.sun.com/ESD39/innotek/virtualbox_1.5.6-28266_Ubuntu_gutsy_i386.deb?AuthParam=1208152331_95b4b759600a18486371b3deb8512554&amp;amp;TicketId=co04K0//RTw2OSrsOUA9gnOXPig=&amp;amp;GroupName=CDS&amp;amp;FilePath=/ESD39/innotek/virtualbox_1.5.6-28266_Ubuntu_gutsy_i386.deb&amp;amp;File=virtualbox_1.5.6-28266_Ubuntu_gutsy_i386.deb&quot;&gt;here&lt;/a&gt; (link many change eventually)&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;(2)&lt;/strong&gt; &lt;strong&gt;Add yourself to vboxusers group&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;After installing, you will get a warning that you need to add users to the vboxusers group. Let&#39;s do so now:&lt;br /&gt; &lt;br /&gt;  System menu &gt; administration &gt; users and groups &gt; manage groups&lt;br /&gt; &lt;br /&gt;  Select the “vboxusers” group &gt; properties &gt; check any users you want to be able to use VB.&lt;br /&gt; &lt;br /&gt;  Now log out, and log in again for these changes to become effective.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;(3)&lt;/strong&gt; &lt;strong&gt;Fix USB error #1&lt;/strong&gt; &lt;strong&gt;- VERR_FILE_NOT_FOUND&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You may at some point get the error - &quot;Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND)&quot;:&lt;/p&gt; &lt;p&gt;To fix it, we need to enable usbfs. Open a terminal and type:&lt;br /&gt; &lt;br /&gt;  &lt;em&gt;sudo gedit /etc/init.d/mountdevsubfs.sh&lt;/em&gt;&lt;br /&gt; &lt;br /&gt;Find this part:&lt;br /&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;em&gt;# Magic to make /proc/bus/usb work&lt;br /&gt;  #&lt;br /&gt;  #mkdir -p /dev/bus/usb/.usbfs&lt;br /&gt;  #domount usbfs &quot;&quot; /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644&lt;br /&gt;  #ln -s .usbfs/devices /dev/bus/usb/devices&lt;br /&gt;  #mount --rbind /dev/bus/usb /proc/bus/usb&lt;/em&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;remove the # sign in front of the last 4 lines so it looks like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;em&gt; # Magic to make /proc/bus/usb work&lt;br /&gt;  #&lt;br /&gt;  mkdir -p /dev/bus/usb/.usbfs&lt;br /&gt;  domount usbfs &quot;&quot; /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644&lt;br /&gt;  ln -s .usbfs/devices /dev/bus/usb/devices&lt;br /&gt;  mount --rbind /dev/bus/usb /proc/bus/usb&lt;/em&gt;&lt;/blockquote&gt; &lt;p&gt;Reboot Ubuntu.&lt;br /&gt;   &lt;br /&gt;  Restart virtualbox, select your VM, then click settings. You should have no error messages now.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;(4)&lt;/strong&gt; &lt;strong&gt;Fix USB Error #2&lt;/strong&gt; - &lt;strong&gt;Permissions&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You might also encounter a USB permissions problem with VirtualBox. (see &lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=341740&amp;amp;page=4&quot;&gt;here&lt;/a&gt;)&lt;/p&gt; &lt;p&gt;The fix? Open up a terminal and type in the following - &lt;/p&gt; &lt;p&gt;&lt;em&gt;sudo &lt;/em&gt;&lt;em&gt;gedit /etc/fstab&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Add the following to the bottom of the text file - &lt;/p&gt; &lt;pre dir=&quot;ltr&quot;&gt; none  /proc/bus/usb  usbfs  devgid=46,devmode=664  0  0&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;(This assumes the group &lt;em&gt;plugdev &lt;/em&gt;is group ID 46 on your machine - that&#39;s the default group ID for pulgdev anyway, so it shoulden&#39;t be a problem)&lt;/p&gt; &lt;p&gt;Now, plugdev, which handles plugable devices, can interact correctly with VirtualBox (after a reboot, probably)&lt;/p&gt;&lt;br /&gt;&lt;p class=&quot;style1&quot;&gt;&lt;u&gt;&lt;a name=&quot;toshiba&quot; id=&quot;gen&quot;&gt;&lt;/a&gt;Toshiba A215-4767 Specific Notes&lt;/u&gt;&lt;/p&gt;Installing Ubuntu 8.04 on the Toshiba A215-4767 is a fairly simple process. There are only two components that take any real configuration - the wireless and sound setup.&lt;br /&gt;&lt;br /&gt;Be sure to attach an Etherent wired connection to your laptop before the install or directly after it. You need to do this because you need to install ndiswrapper to get wireless access, and the simplest way to get it is from the online repositories. (You can install it from the installer CD, but I have been unable to determine how to set that up properly)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;a name=&quot;wireless&quot;&gt;&lt;/a&gt;(1) Wireless setup &lt;/span&gt;(per &lt;a href=&quot;http://drewwithers.com/2007/12/ubuntu-linux-710-gutsy-on-toshiba.html&quot;&gt;this&lt;/a&gt; site)&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;strong&gt;Instructions for Atheros wireless card:&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Download drivers:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.atheros.cz/download.php?atheros=AR5006EG&amp;amp;system=1&quot;&gt;XP 32-bit&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.atheros.cz/download.php?atheros=AR5006EG&amp;amp;system=2&quot;&gt;XP 64-bit&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Extract the drivers and take note of where you extracted them.&lt;br /&gt;Open a terminal a type in the following -&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;       &lt;div class=&quot;codetitle&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;Code: &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;blockquote&gt;sudo -i&lt;br /&gt;echo &quot;blacklist ath_pci&quot; &gt;&gt; /etc/modprobe.d/blacklist&lt;br /&gt;rmmod ath_pci&lt;br /&gt;&lt;br /&gt;apt-get install ndiswrapper-utils-1.9 ndiswrapper-common&lt;br /&gt;&lt;br /&gt;ndiswrapper -i net5211.inf&lt;br /&gt;&lt;br /&gt;ndiswrapper -l&lt;br /&gt;&lt;em&gt;look for something like this:&lt;br /&gt;net5211 : driver installed&lt;br /&gt;device (168C:001C) present (alternate driver: ath_pci)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;modprobe ndiswrapper&lt;br /&gt;echo &quot;ndiswrapper&quot; &gt;&gt; /etc/modules&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/span&gt;          &lt;/div&gt; &lt;span style=&quot;font-size: 100%;&quot;&gt;After a reboot wireless should work. You should see available wireless networks in the network manager. Note: every few bootups, Ubuntu doesn&#39;t get the MAC Address for the wireless card correctly. &lt;span style=&quot;font-style: italic;&quot;&gt;(Andrew&#39;s note - haven&#39;t noticed this problem yet) &lt;/span&gt;So far it looks like the easiest way to correct this is to go into /etc/ndiswrapper/net5211 and look for the file with a symbolic link. Edit it and replace the line that says&lt;br /&gt;&lt;blockquote&gt;mac_address|XX:XX:XX:XX:XX:XX&lt;/blockquote&gt;and replace the X&#39;s with your MAC address.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;a name=&quot;sound&quot;&gt;&lt;/a&gt;(2) Sound setup &lt;/span&gt;(per &lt;a href=&quot;http://ubuntuforums.org/showpost.php?p=4220157&amp;amp;postcount=5&quot;&gt;this&lt;/a&gt; site)&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;After the inital boot and some updates, but you notice that the sound stops working after a reboot.&lt;br /&gt;&lt;br /&gt;To fix this issue, you need to upgrade to the cutting edge version of Alsa. The easiest way to do this is to just use the backports modules.&lt;br /&gt;&lt;br /&gt;1) Enable backports in software sources (System Menu&gt; Administration&gt; Software Sources--&gt; Updates--&gt; check &quot;Enable Backports&quot;)&lt;br /&gt;&lt;br /&gt;2)Then open a terminal and type in uname -r (&lt;i&gt;this will tell you what kernel you&#39;re running (eg 386 or generic)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2) In a terminal, type -&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt; sudo aptitude install linux-backports-modules-hardy&lt;/span&gt;-&lt;span style=&quot;font-style: italic;&quot;&gt;generic&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                     OR&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;sudo aptitude install linux-backports-modules-hardy-386&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;depending on what kernel you have.&lt;br /&gt;&lt;br /&gt;4) In a terminal&lt;br /&gt;sudo gedit /etc/modprobe.d/alsa-base&lt;br /&gt; this will open a file in gedit(the text editor). scroll down the page and&lt;br /&gt;add this as the last line&lt;br /&gt;options snd-hda-intel model=toshiba&lt;br /&gt;&lt;br /&gt;(5) Reboot. This will upgrade your alsa to the 1.0.15RC3 and your sound will be fixed.&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;p class=&quot;style1&quot;&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://andrewtheart.blogspot.com/feeds/6483362851322083334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4055985264948933402/6483362851322083334' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6483362851322083334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4055985264948933402/posts/default/6483362851322083334'/><link rel='alternate' type='text/html' href='http://andrewtheart.blogspot.com/2008/04/ubuntu-8.html' title=''/><author><name>Name: Andrew</name><uri>http://www.blogger.com/profile/03632213317218891096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='20' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBY-8nR9gb_f19aAGyd3ZftpMEcf9PeqTLMhW-IoB4XUkxFu0_C7eG9nZRaNYTn-b5Hv_4JCN1WJgqTwadp243QOzTIR8PYblQgbl_VSTayutTm7kNKKmifLXW6Y27g/s20/RightArrow.png'/></author><thr:total>1</thr:total></entry></feed>