<?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-6552089426911494359</id><updated>2024-10-24T12:27:41.020-06:00</updated><category term="php"/><category term="0x80300024"/><category term="Woodworking"/><category term="configuration"/><category term="easy to build"/><category term="my video buzz roku"/><category term="myvideobuzz roku"/><category term="remove roku channel"/><category term="remove roku private channel"/><category term="roku channel cannot remove"/><category term="roku channel stuck"/><category term="ternary operator"/><category term="win7 install error"/><category term="workbench stool"/><title type='text'>Seldom Short</title><subtitle type='html'>Computers, Tech, Woodworking, Fun!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://seldomshort.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://seldomshort.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>H3K</name><uri>http://www.blogger.com/profile/03293817156442369637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1aEk9xjNxqPSTx-Y_CQltVMeiWgiWrdSHGnV952NrCxHRYEx24qv615G5uFW2qNPU1sIpOSbdoA7plwgQgSJ0T3IaetI9rc5xw0fEV19Ky17Z-VmbyKmSlGfiY7cu_IM/s220/me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6552089426911494359.post-6434422298043269791</id><published>2014-10-18T09:37:00.002-06:00</published><updated>2014-10-18T10:13:13.644-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="my video buzz roku"/><category scheme="http://www.blogger.com/atom/ns#" term="myvideobuzz roku"/><category scheme="http://www.blogger.com/atom/ns#" term="remove roku channel"/><category scheme="http://www.blogger.com/atom/ns#" term="remove roku private channel"/><category scheme="http://www.blogger.com/atom/ns#" term="roku channel cannot remove"/><category scheme="http://www.blogger.com/atom/ns#" term="roku channel stuck"/><title type='text'>Roku channel is stuck, cannot remove</title><content type='html'>Have you found yourself in a predicament, where you have a channel on your roku device with no possible way visible to remove it? Well read on, I had this same problem and found a way to remove the channel.&lt;br /&gt;
&lt;br /&gt;
Back in the day we installed the &quot;my video buzz&quot; ( myvideobuzz ) channel/application on our Roku device. During a year or two of having that channel on our box, Roku was going through some turbulence with youtube and at the time did not have the youtube channel on the Roku. Apparently the myvideobuzz channel was streaming youtube content as a private channel, we found it&#39;s recommendation online somewhere. Roku eventually shut them down, claiming violation of some terms of use. Now that roku officially has youtube on the Roku 2, that wasn&#39;t a big deal for us.&lt;br /&gt;
&lt;br /&gt;
We were cleaning out our channels on the roku, and noticed that when we hit the asterisk key (*) on our roku remote for the my video buzz channel, there was no &quot;remove channel&quot; option to be found. Apparently when roku removed/shut down the channel, our roku box disconnected that app from the roku mothership, removing our ability to remove the channel directly from the roku. Ahhhhh, how can I get rid of this channel?&lt;br /&gt;
&lt;br /&gt;
I will tell you how I removed this channel. Here is a quick overview of the steps, with a detailed explanation below.&lt;br /&gt;
&lt;br /&gt;
Summary:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;activate development mode on your roku&lt;/li&gt;
&lt;li&gt;go to development panel on your roku from your computers web browser&lt;/li&gt;
&lt;li&gt;login to developer panel&lt;/li&gt;
&lt;li&gt;delete the custom application that is there&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Detailed explanation:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Activate the Roku Development Mode on your roku. When you activate it, you will see a username and a password, remember the username and password for the next steps. To activate development mode, you will need to enter in a special remote sequence; this reminded me of the good old days on the nintendo entering cheat codes. At any rate, the key sequence that worked for me was:&amp;nbsp;Home 3x, Up 2x, Right, Left, Right, Left, Right. After choosing to install, your roku will restart. After it restarts go to the next step.&lt;/li&gt;
&lt;li&gt;In your web browser from your computer, go to your Roku box IP address in your address bar. You can find your roku&#39;s ip address by going into the Settings menu on the roku then the about sub menu. There you will see a line that says IP address. Type that in your browser ( example, mine is http://192.168.0.7 in my browser, yours will be different ).&lt;/li&gt;
&lt;li&gt;Type in your username and password setup from the first step. The username looks to be standard, it set mine as &quot;rokudev&quot;&lt;/li&gt;
&lt;li&gt;You now see a screen for installing applications that you would build as a developer, don&#39;t worry though if you have no intention of uploading your own custom built app. You should focus on the area where it shows a long line of goobly glop and an option to delete. Although I never installed a custom application, there was one there waiting to be deleted; this must be the &quot;my video buzz&quot; app. So I clicked delete and crossed my fingers, gave it a few seconds and then checked my Roku. HAHA the my video buzz app is gone from my roku, &lt;span style=&quot;color: #274e13;&quot;&gt;SUCCESS!&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Disclaimer: Although this worked for me, it may not work for you. In my experience the Roku can be a little finicky, so the problem you are having may not be the same as mine. Don&#39;t get me wrong, I love my Roku, it&#39;s a great inexpensive device for streaming on my tv. Heck, I even use the roku over the included &quot;smart&quot; features of my tv, because the roku interface and responsiveness is just plain better than my smart tv interface feel.</content><link rel='replies' type='application/atom+xml' href='http://seldomshort.blogspot.com/feeds/6434422298043269791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://seldomshort.blogspot.com/2014/10/roku-channel-is-stuck-cannot-remove.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/6434422298043269791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/6434422298043269791'/><link rel='alternate' type='text/html' href='http://seldomshort.blogspot.com/2014/10/roku-channel-is-stuck-cannot-remove.html' title='Roku channel is stuck, cannot remove'/><author><name>H3K</name><uri>http://www.blogger.com/profile/03293817156442369637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1aEk9xjNxqPSTx-Y_CQltVMeiWgiWrdSHGnV952NrCxHRYEx24qv615G5uFW2qNPU1sIpOSbdoA7plwgQgSJ0T3IaetI9rc5xw0fEV19Ky17Z-VmbyKmSlGfiY7cu_IM/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552089426911494359.post-631245113326681198</id><published>2014-03-02T20:27:00.003-07:00</published><updated>2014-03-02T20:27:59.891-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="easy to build"/><category scheme="http://www.blogger.com/atom/ns#" term="Woodworking"/><category scheme="http://www.blogger.com/atom/ns#" term="workbench stool"/><title type='text'>Simple construction workbench stool</title><content type='html'>I needed an easy to build stool to give my feet a rest while standing at my workbench. I wanted it to be simple and quick to build, while just using scrap wood from around my garage.&lt;br /&gt;
&lt;br /&gt;
Low and behold, my simple and easy to build workbench stool. See instructions below the photos.&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbr1C16OWEqoiqAcYw2FIxthVI-OEXBn6RXzCnX9WIPsV9LPZZ32yhmP2LVyYr4sVE1guVAB2V445aE4XpYcI0gLOL9d5GBMlPEJ6Z4xUp9cIcrDYLV5HzOlVnfmktCqqCVB2fvqhZqRI/s1600/2014-03-02+17.31.39.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaSkIlfeJp5M5U3Fful1lJHy5it8JxIVZjJpzFrcY3PZPHZAtPXsZynMuTlnOt9cSmiPATVY7LftGe6uK5_qZYr6GrWUkwCYhRSB0Cc3K-LqKGaTCTkOn5-JPEO8bvNu6JBXJqWHuHctQ/s1600/2014-03-02+17.31.55.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaSkIlfeJp5M5U3Fful1lJHy5it8JxIVZjJpzFrcY3PZPHZAtPXsZynMuTlnOt9cSmiPATVY7LftGe6uK5_qZYr6GrWUkwCYhRSB0Cc3K-LqKGaTCTkOn5-JPEO8bvNu6JBXJqWHuHctQ/s1600/2014-03-02+17.31.55.jpg&quot; height=&quot;320&quot; title=&quot;workbench stool top down look&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbr1C16OWEqoiqAcYw2FIxthVI-OEXBn6RXzCnX9WIPsV9LPZZ32yhmP2LVyYr4sVE1guVAB2V445aE4XpYcI0gLOL9d5GBMlPEJ6Z4xUp9cIcrDYLV5HzOlVnfmktCqqCVB2fvqhZqRI/s1600/2014-03-02+17.31.39.jpg&quot; height=&quot;320&quot; title=&quot;workbench stool small enough to fit on a workbench&quot; width=&quot;180&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk5g0rzHv0eQMc15ySQbP0JcpNPJNe-f2xmc1sJqL2hq0so9szW6ywbPgoVt7XiDe-S5ubl-5e7PcgGac36VUG3S_XTeOmxbwe7H-z05OieBJT2s50ZghCJulgeSHsxyZlW5YwttNiuq0/s1600/2014-03-02+17.32.11.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk5g0rzHv0eQMc15ySQbP0JcpNPJNe-f2xmc1sJqL2hq0so9szW6ywbPgoVt7XiDe-S5ubl-5e7PcgGac36VUG3S_XTeOmxbwe7H-z05OieBJT2s50ZghCJulgeSHsxyZlW5YwttNiuq0/s1600/2014-03-02+17.32.11.jpg&quot; height=&quot;320&quot; title=&quot;simple support for the legs on the workbench stool to keep them square&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
I put together this stool from scrap laying around my garage. I had some 3x3 stock laying around from a previous project that I used for the legs and cross support. I had a left over board about 6&quot; or 8&quot; wide.&lt;br /&gt;
&lt;br /&gt;
The only tools and hardware you absolutely need:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;drill with appropriate bit to make pilot holes for your screws&lt;/li&gt;
&lt;li&gt;saw ( I used a circular saw, however a table saw would give you more accur&lt;/li&gt;
&lt;li&gt;10 screws ( unless you want to do some more fancy joinery work )&lt;/li&gt;
&lt;li&gt;tape measure&lt;/li&gt;
&lt;li&gt;sand paper ( a sanding block will also make your life easier )&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
To make my stool be a little more finished I also used a countersink bit and a handheld router with a round over bit ( to round the top edges of the stool ).&lt;/div&gt;
&lt;br /&gt;
I determined the height of the legs by measuring from the floor to just under my rear end, which would give me a sitting position high enough to still work at the workbench. I settled on 29 inches for the legs, cut your legs to length, then clamp your legs into a 2x2 bundle and gang sand to make them all the same length.&lt;br /&gt;
&lt;br /&gt;
I cut the board for the seat just wider than my hips, no measurement needed just put the board behind you and place a thumb just a little wider than your hips. Mark with a pencil and cut the board to length, clean up any rough edges by sanding.&lt;br /&gt;
&lt;br /&gt;
Place the seat on the workbench perpendicular to the first leg, aligning your first leg in the corner. Pre-drill your hole, then use the countersink bit ( if you have one ) to prep for the screw. Screw the leg loosely to the seat ( we will tighten everything up later ). Continue rotating the seat and attaching the legs.&lt;br /&gt;
&lt;br /&gt;
Stand the stool seat down on the workbench. Measure the distance between the legs on the side of the stool. Cut two pieces of 3x3 to length of the gap between the legs. Use these pieces to keep the legs square. Attach the pieces between the legs on either side toward the bottom of the stool, pre-drilling and using screws to attach ( one from each side ). If you wish you could also use dowels and wood glue, or some other suitable joinery.&lt;br /&gt;
&lt;br /&gt;
Now measure between the two legs along the back of the stool and cut another piece of 3x3 to that length. This will keep the side legs square. Attach similar to the other 2 supporting pieces. I attached mine slightly below the other 2 supports, just my preference. I put this piece at a height that felt good to rest my feet on while sitting on the stool.&lt;br /&gt;
&lt;br /&gt;
Now tighten the top screws in the seat, clean up and do any sanding/finish work you&#39;d like.&lt;br /&gt;
&lt;br /&gt;
My stool happens to fit just underneath the workbench when not in use ( as I recessed the shelf under my workbench ). I chose not to put a second length of supporting bar on the stool so that it reduced the chance of stubbing my toe when I store the stool under the workbench.&lt;br /&gt;
&lt;br /&gt;
Here are a couple more pics, showing the bottom of the seat and the stool tucked nicely underneath the workbench.&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHXD9AWvqLmOSPbf5vD7VVx5EhJwba-NVTrSVZVJCcf_lqemerFXvY4hIP3kdt9Lp_JDs7uR-FIhUoGeXcxwpXheztGRNsnp5z63D4X2V-zu7C7dV47b1z6Kg_UBqv17QBJUShjCii2PU/s1600/2014-03-02+17.32.19.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHXD9AWvqLmOSPbf5vD7VVx5EhJwba-NVTrSVZVJCcf_lqemerFXvY4hIP3kdt9Lp_JDs7uR-FIhUoGeXcxwpXheztGRNsnp5z63D4X2V-zu7C7dV47b1z6Kg_UBqv17QBJUShjCii2PU/s1600/2014-03-02+17.32.19.jpg&quot; height=&quot;320&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhed36lpCjXWA5QkXnmJrp_C3FI3eHfTxKmW4HWcs0OYu4ahidfd09tOqojKYZgxyGb_QWVcslp7oaO38wdZs9KoVw59l7hfbkEWN8XBA7XbSwPq1T44X36MtA1hyphenhyphenooAH4PlC2zotRhxU/s1600/2014-03-02+17.32.39.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhed36lpCjXWA5QkXnmJrp_C3FI3eHfTxKmW4HWcs0OYu4ahidfd09tOqojKYZgxyGb_QWVcslp7oaO38wdZs9KoVw59l7hfbkEWN8XBA7XbSwPq1T44X36MtA1hyphenhyphenooAH4PlC2zotRhxU/s1600/2014-03-02+17.32.39.jpg&quot; height=&quot;320&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://seldomshort.blogspot.com/feeds/631245113326681198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://seldomshort.blogspot.com/2014/03/simple-construction-workbench-stool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/631245113326681198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/631245113326681198'/><link rel='alternate' type='text/html' href='http://seldomshort.blogspot.com/2014/03/simple-construction-workbench-stool.html' title='Simple construction workbench stool'/><author><name>H3K</name><uri>http://www.blogger.com/profile/03293817156442369637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1aEk9xjNxqPSTx-Y_CQltVMeiWgiWrdSHGnV952NrCxHRYEx24qv615G5uFW2qNPU1sIpOSbdoA7plwgQgSJ0T3IaetI9rc5xw0fEV19Ky17Z-VmbyKmSlGfiY7cu_IM/s220/me.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaSkIlfeJp5M5U3Fful1lJHy5it8JxIVZjJpzFrcY3PZPHZAtPXsZynMuTlnOt9cSmiPATVY7LftGe6uK5_qZYr6GrWUkwCYhRSB0Cc3K-LqKGaTCTkOn5-JPEO8bvNu6JBXJqWHuHctQ/s72-c/2014-03-02+17.31.55.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552089426911494359.post-726718925416072318</id><published>2012-12-12T21:27:00.000-07:00</published><updated>2012-12-12T21:27:38.562-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>PHP configuration files by environment</title><content type='html'>Ever want to define a configuration file for your code that is different on each of your servers automatically?&lt;br /&gt;
&lt;br /&gt;
At bare minimum you may want to create a configuration file for your local development environment and your live server.&lt;br /&gt;
&lt;br /&gt;
If you aren&#39;t using a framework like symfony or codeigniter and you&#39;d like an easy way to make your configurations solid, then here is the trick for you.&lt;br /&gt;
&lt;br /&gt;
It all comes down to defining a custom variable in the php ini file on your local environment. Simply open up your php.ini file, toss in the below code in there just below the [PHP] tag&lt;br /&gt;
&lt;br /&gt;
server_environment = &quot;local&quot;&lt;br /&gt;
&lt;br /&gt;
Then it&#39;s up to your programming to read this variable to decide what configuration to include. I use a general file named conf.php that gets included in my base controller class.&lt;br /&gt;
&lt;br /&gt;
conf.php defines some pretty standard things like database connection strings, a site notification email address, and sometimes path information.&lt;br /&gt;
&lt;br /&gt;
define(&#39;COOKIE_SALT&#39;,&#39;81234SupPotato99!!&#39;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$server_environment = get_cfg_var(&#39;server_environment&#39;);&lt;br /&gt;
if ( $server_environment &amp;amp;&amp;amp; file_exists(dirname(__FILE__). &#39;/conf.&#39;. $server_environment .&#39;.php&#39;) ) {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;include dirname(__FILE__). &#39;/conf.&#39;. $server_environment .&#39;.php&#39;;&lt;br /&gt;
} else {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;define(&#39;BASE_WEB&#39;, &#39;/&#39;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;define(&#39;NOTIFY_EMAIL&#39;,&#39;email@email.com&#39;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$db_config = array(&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;username&#39; =&amp;gt; &#39;codebase&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;password&#39; =&amp;gt; &#39;zigzag&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;database&#39; =&amp;gt; &#39;codebase&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;host&#39; =&amp;gt; &#39;localhost&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;debug&#39; =&amp;gt; false,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then you can create a file in the same folder as your conf.php file, name it conf.local.php and then you can define separate configuration parameters in there:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define(&#39;BASE_WEB&#39;, &#39;/development/website/&#39;);&lt;br /&gt;
define(&#39;NOTIFY_EMAIL&#39;,&#39;email@anotheremail.com&#39;);&lt;br /&gt;
&lt;br /&gt;
$db_config = array(&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;username&#39; =&amp;gt; &#39;codebase&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;password&#39; =&amp;gt; &#39;&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;database&#39; =&amp;gt; &#39;codebase&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;host&#39; =&amp;gt; &#39;localhost&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;debug&#39; =&amp;gt; true,&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
It&#39;s as easy as that, now you have a configuration file that will automatically be included for your local development environment with different parameters from your production configuration file.&lt;br /&gt;
&lt;br /&gt;
If you need global configuration that applies to both your production and local environments, then just put the configuration parameters outside of your conditional statement in conf.php ( just like the cookie salt ).&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://seldomshort.blogspot.com/feeds/726718925416072318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://seldomshort.blogspot.com/2012/12/php-configuration-files-by-environment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/726718925416072318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/726718925416072318'/><link rel='alternate' type='text/html' href='http://seldomshort.blogspot.com/2012/12/php-configuration-files-by-environment.html' title='PHP configuration files by environment'/><author><name>H3K</name><uri>http://www.blogger.com/profile/03293817156442369637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1aEk9xjNxqPSTx-Y_CQltVMeiWgiWrdSHGnV952NrCxHRYEx24qv615G5uFW2qNPU1sIpOSbdoA7plwgQgSJ0T3IaetI9rc5xw0fEV19Ky17Z-VmbyKmSlGfiY7cu_IM/s220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552089426911494359.post-913680603313475779</id><published>2012-04-19T22:37:00.002-06:00</published><updated>2012-12-12T21:28:10.367-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="ternary operator"/><title type='text'>PHP Ternary Operator</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPesVlOwklhCe-Ym8ssrhchTfweL7-Tv0oqUZ8QfK0RCODMc-uSH3zJqB0tUCssX0XX2jqQbHN3c5XQktV3AQJd6HYI4i6FMs8OjySeTHYkyDcuX-mSaUg8AVHUrHCkKmX1MSo4iOQmxc/s1600/Screen+shot+2012-04-19+at+10.47.27+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPesVlOwklhCe-Ym8ssrhchTfweL7-Tv0oqUZ8QfK0RCODMc-uSH3zJqB0tUCssX0XX2jqQbHN3c5XQktV3AQJd6HYI4i6FMs8OjySeTHYkyDcuX-mSaUg8AVHUrHCkKmX1MSo4iOQmxc/s200/Screen+shot+2012-04-19+at+10.47.27+PM.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Ever want a short way to quickly evaluate a conditional and set a variable based on it&#39;s result? You could do it the long way and do something like:&lt;br /&gt;
&lt;br /&gt;
if ( $var == 1 ) $moo = 2; else $moo = 3;&lt;br /&gt;
&lt;br /&gt;
Or you could use a ternary operator, for example&lt;br /&gt;
&lt;br /&gt;
$moo = ( $var == 1 ? 2 : 3 );&lt;br /&gt;
&lt;br /&gt;
It evaluates the conditional before the question mark, if it&#39;s true it gives you the first item before the colon, otherwise it gives you the item after the colon. This is useful for many situations such as showing a quick representation of a boolean:&lt;br /&gt;
&lt;br /&gt;
echo ( $var ? &#39;Yes&#39; : &#39;No&#39; );&lt;br /&gt;
&lt;br /&gt;
It makes booleans more&amp;nbsp;digestible&amp;nbsp;to those users who may not know that a 1 is &quot;Yes&quot;, in situations like pulling a boolean value from a table and displaying it to an admin.</content><link rel='replies' type='application/atom+xml' href='http://seldomshort.blogspot.com/feeds/913680603313475779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://seldomshort.blogspot.com/2012/04/php-ternary-operator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/913680603313475779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/913680603313475779'/><link rel='alternate' type='text/html' href='http://seldomshort.blogspot.com/2012/04/php-ternary-operator.html' title='PHP Ternary Operator'/><author><name>H3K</name><uri>http://www.blogger.com/profile/03293817156442369637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1aEk9xjNxqPSTx-Y_CQltVMeiWgiWrdSHGnV952NrCxHRYEx24qv615G5uFW2qNPU1sIpOSbdoA7plwgQgSJ0T3IaetI9rc5xw0fEV19Ky17Z-VmbyKmSlGfiY7cu_IM/s220/me.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPesVlOwklhCe-Ym8ssrhchTfweL7-Tv0oqUZ8QfK0RCODMc-uSH3zJqB0tUCssX0XX2jqQbHN3c5XQktV3AQJd6HYI4i6FMs8OjySeTHYkyDcuX-mSaUg8AVHUrHCkKmX1MSo4iOQmxc/s72-c/Screen+shot+2012-04-19+at+10.47.27+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6552089426911494359.post-6397895779774697444</id><published>2012-04-02T22:36:00.006-06:00</published><updated>2012-12-12T21:29:25.139-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="0x80300024"/><category scheme="http://www.blogger.com/atom/ns#" term="win7 install error"/><title type='text'>windows 7 windows is unable to install to the selected location 0x80300024</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYFfvX0uuXyT-W5fYkdy9yACu2G6V4EPW0aITPSxvRPSKHLGjjc1er7ik-vndwjv1R9jmrCFj-_ywq6LRN95B2xWrYGu-tYR_qH_dUQLsc1d15WqUrevH7omCZv_XkAABH-AAxcAzDnZA/s1600/evil_lemon.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYFfvX0uuXyT-W5fYkdy9yACu2G6V4EPW0aITPSxvRPSKHLGjjc1er7ik-vndwjv1R9jmrCFj-_ywq6LRN95B2xWrYGu-tYR_qH_dUQLsc1d15WqUrevH7omCZv_XkAABH-AAxcAzDnZA/s320/evil_lemon.jpg&quot; width=&quot;212&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Lemon!&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Recently my desktop computer had an SSD drive go out. The said SSD had the installation of windows 7 on it. Out of no where the drive would not boot. I tried a few times to get it to boot, eventually it got through and gave me the classic blue screen of death, referencing some problem about disk reads.&lt;br /&gt;
&lt;br /&gt;
After a few more tries I was able to get it to boot, however the system had many corrupted files. This SSD is not even a year old yet. I don&#39;t know if I will have much trust for SSD&#39;s for a while; on the other hand I have had regular disks go out on me in the same time frame.&lt;br /&gt;
&lt;br /&gt;
At any rate, I had a backup of my files, and as the system had a couple of 2 TB drives I had a place to install win7 to get back up and running. I removed the SSD drive, popped in the Windows 7 install disk and rebooted. I was greeted by the installation screen and the options for choosing a drive. Beforehand I had moved all my files over to one of the drives, and cleared one off in prep to install win 7.&lt;br /&gt;
&lt;br /&gt;
I selected my unallocated drive and hit go, expecting that the install would soon be under way. I was greeted by an error message &quot;windows 7 windows is unable to install to the selected location 0x80300024&quot;. Microsoft sure does love their cryptic error messages. After a bit of googling I decided that I&#39;d give a try at loading some drivers from the motherboard driver disk, in a ditch effort that it might be a missing driver. After no luck with the driver and win 7 installer still throwing some&amp;nbsp;&lt;u&gt;0x80300024&lt;/u&gt; at me.&lt;br /&gt;
&lt;br /&gt;
In another ditch effort, I figure well perhaps the installer is easily confused by me having multiple hard drives. I shut down the system, unplugged the drive that had data leaving only the unallocated drive plugged in. I fired up the windows installer again, clicked the disk, low and behold my installation is underway.&lt;br /&gt;
&lt;br /&gt;
This goes to show you, the windows 7 installer is easily &lt;i&gt;confused&lt;/i&gt;. &lt;b&gt;If you are having problems try unplugging all extra disks except the one you are installing to.&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://seldomshort.blogspot.com/feeds/6397895779774697444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://seldomshort.blogspot.com/2012/04/windows-7-windows-is-unable-to-install.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/6397895779774697444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6552089426911494359/posts/default/6397895779774697444'/><link rel='alternate' type='text/html' href='http://seldomshort.blogspot.com/2012/04/windows-7-windows-is-unable-to-install.html' title='windows 7 windows is unable to install to the selected location 0x80300024'/><author><name>H3K</name><uri>http://www.blogger.com/profile/03293817156442369637</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1aEk9xjNxqPSTx-Y_CQltVMeiWgiWrdSHGnV952NrCxHRYEx24qv615G5uFW2qNPU1sIpOSbdoA7plwgQgSJ0T3IaetI9rc5xw0fEV19Ky17Z-VmbyKmSlGfiY7cu_IM/s220/me.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYFfvX0uuXyT-W5fYkdy9yACu2G6V4EPW0aITPSxvRPSKHLGjjc1er7ik-vndwjv1R9jmrCFj-_ywq6LRN95B2xWrYGu-tYR_qH_dUQLsc1d15WqUrevH7omCZv_XkAABH-AAxcAzDnZA/s72-c/evil_lemon.jpg" height="72" width="72"/><thr:total>2</thr:total></entry></feed>