<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>databasically, inc</title>
	<atom:link href="http://www.databasically.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.databasically.com</link>
	<description>i write programs</description>
	<pubDate>Wed, 12 Nov 2008 16:06:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Destination Host Unreachable error</title>
		<link>http://www.databasically.com/2008/11/12/destination-host-unreachable-error/</link>
		<comments>http://www.databasically.com/2008/11/12/destination-host-unreachable-error/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 16:05:35 +0000</pubDate>
		<dc:creator>wes</dc:creator>
		
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=42</guid>
		<description><![CDATA[I came in to a maddening issue this morning.
The server in question wasn&#8217;t available over the network.  Troubleshooting:

The server could ping the loopback and static IP it was assigned.
The server could not ping the gateway or any other computers on the network, returning the error &#8220;Destination Host Unreachable&#8221;.
The network connection said &#8220;Connected&#8221; and the [...]]]></description>
			<content:encoded><![CDATA[<p>I came in to a maddening issue this morning.</p>
<p>The server in question wasn&#8217;t available over the network.  Troubleshooting:</p>
<ul>
<li>The server could ping the loopback and static IP it was assigned.</li>
<li>The server could not ping the gateway or any other computers on the network, returning the error &#8220;Destination Host Unreachable&#8221;.</li>
<li>The network connection said &#8220;Connected&#8221; and the network cable was switched just in case.</li>
<li>The switch and router were both power-cycled.</li>
</ul>
<p>Looking at the System event log, I saw this:</p>
<blockquote><p>Event 4292 (IPSec): The IPSec driver has entered Block mode. IPSec will discard all inbound and outbound TCP/IP network traffic that is not permitted by boot-time IPSec Policy exemptions.</p>
<p>User Action: To restore full unsecured TCP/IP connectivity, disable the IPSec services, and then restart the computer.  For detailed troubleshooting information, review the events in the Security event log.</p></blockquote>
<p>The security log wasn&#8217;t helpful at all.</p>
<p>I found this <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;870910" target="_blank">MSKB that fixed the issue of IPSec being corrupted</a>. Repairing IPSec and restarting restored network connectivity. I&#8217;m not sure that this had anything to do with the original problem, but it showed up after installing Blackberry Enterprise Server 4.1 and rebooting for that installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.databasically.com/2008/11/12/destination-host-unreachable-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WSUS 3.0 memory usage and how to adjust it</title>
		<link>http://www.databasically.com/2008/11/10/wsus-30-memory-usage-and-how-to-adjust-it/</link>
		<comments>http://www.databasically.com/2008/11/10/wsus-30-memory-usage-and-how-to-adjust-it/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 15:52:54 +0000</pubDate>
		<dc:creator>wes</dc:creator>
		
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=27</guid>
		<description><![CDATA[I set up a new Windows 2003 R2 Small Business Server (SBS) last week and I&#8217;m going over it and tweaking things.
While looking at the task manager, I noticed a process that was using 1.6 GB of RAM.  This sqlserver.exe process was going wild!
I turned on the process IDs in Task Manager (View &#62; Select [...]]]></description>
			<content:encoded><![CDATA[<p>I set up a new Windows 2003 R2 Small Business Server (SBS) last week and I&#8217;m going over it and tweaking things.</p>
<p>While looking at the task manager, I noticed a process that was using 1.6 GB of RAM.  This sqlserver.exe process was going wild!</p>
<p>I turned on the process IDs in Task Manager (View &gt; Select Columns) so I could get a process ID for the offending process.  For me, it was process id <strong>1664</strong>.  Then, I turned to the console for some troubleshooting:</p>
<pre name="code" class="vb:nogutter">C:\tasklist /svc /fi "PID eq 1664"</pre>
<p>You should change your process id to match if you&#8217;re running this at home.</p>
<pre name="code" class="vb:nogutter">Image Name                     PID Services
========================= ======== =======================
sqlservr.exe                  1664 MSSQL$MICROSOFT##SSEE</pre>
<p>﻿﻿﻿<br />
Microsoft SSEE shows in the services panel as Windows Internal Database, which is the database for Windows Software Update Services.  Now that we know the instance name, we can reconfigure it:</p>
<pre name="code" class="vb:nogutter">C:\osql -E -S <servername>MICROSOFT##SSEE
﻿1> sp_configure ’show advanced options’, 1;
2> reconfigure;
3> go
Configuration option ’show advanced options’ changed from 0 to 1.
  Run the RECONFIGURE statement to install.
1> sp_configure ‘max server memory’, 512;
2> reconfigure;
3> go
Configuration option ‘max server memory (MB)’ changed from
  2147483647 to 512. Run the RECONFIGURE statement to install.
1> exit</servername></pre>
<p>While you&#8217;re at it, you may want to reconfigure the SBSMONITORING database instance if you&#8217;re running SBS.  I set mine to 70 MB.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.databasically.com/2008/11/10/wsus-30-memory-usage-and-how-to-adjust-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Group Policy for Windows XP Visual Effects</title>
		<link>http://www.databasically.com/2008/11/02/group-policy-for-windows-xp-visual-effects/</link>
		<comments>http://www.databasically.com/2008/11/02/group-policy-for-windows-xp-visual-effects/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 21:49:19 +0000</pubDate>
		<dc:creator>wes</dc:creator>
		
		<category><![CDATA[Group Policy]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=25</guid>
		<description><![CDATA[I wanted to alter the setting in this GUI box with a Group Policy, so all users in the domain would have this setting applied automatically:
Start -&#62; Settings -&#62; Control Panel -&#62; System -&#62; Tab “Advanced” and then “Settings” in the “Performance” box -&#62; Adjust for Best Performance
I dug around and discovered that those options are stored [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to alter the setting in this GUI box with a Group Policy, so all users in the domain would have this setting applied automatically:</p>
<p><strong>Start -&gt; Settings -&gt; Control Panel -&gt; System -&gt; Tab “Advanced” and then “Settings” in the “Performance” box -&gt; Adjust for Best Performance</strong></p>
<p>I dug around and discovered that those options are stored in the registry key <strong>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ Explorer\VisualEffects\VisualFXSetting</strong> - where 0 is &#8220;let Windows choose&#8221;, &#8220;2&#8243; is “adjust to best performance&#8221; and &#8220;3&#8243; is &#8220;adjust to best appearance&#8221;.</p>
<p>I adjusted this registry key with Group Policy.  The registry gets changed and the GUI recognizes that, but it doesn&#8217;t actually change the appearance!</p>
<p>Turns out that there&#8217;s <a href="http://groups.google.com/group/microsoft.public.windowsxp.general/browse_thread/thread/9b78f3c86fed6311/d34da0876e2878e4?lnk=st&amp;q=VisualFXSetting+Group+Policy&amp;rnum=6" target="_blank">an API call that must occur to change the visual settings</a>, which has to be done via a program that doesn&#8217;t exist.  Guess I&#8217;ve got a reason to learn C# now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.databasically.com/2008/11/02/group-policy-for-windows-xp-visual-effects/feed/</wfw:commentRss>
		</item>
		<item>
		<title>IE7 update hangs after reboot on SBS 2003</title>
		<link>http://www.databasically.com/2008/10/11/ie7-update-hangs-after-reboot-on-sbs-2003/</link>
		<comments>http://www.databasically.com/2008/10/11/ie7-update-hangs-after-reboot-on-sbs-2003/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 04:37:04 +0000</pubDate>
		<dc:creator>wes</dc:creator>
		
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=23</guid>
		<description><![CDATA[While applying service packs for a Windows 2003 SBS today, I installed IE7.  After the requisite reboot, I tried logging in and the usual &#8220;Setting up personalized settings for Internet Explorer&#8221; dialog came up.
It stayed there.  And stayed there.  It was hung up.
After a little hunting (on my laptop, since the server wasn&#8217;t going anywhere!), [...]]]></description>
			<content:encoded><![CDATA[<p>While applying service packs for a Windows 2003 SBS today, I installed IE7.  After the requisite reboot, I tried logging in and the usual &#8220;Setting up personalized settings for Internet Explorer&#8221; dialog came up.</p>
<p>It stayed there.  And stayed there.  It was hung up.</p>
<p>After a little hunting (on my laptop, since the server wasn&#8217;t going anywhere!), I found this tip that suggested:</p>
<ul>
<li>Control - Alt - Delete</li>
<li>Log off</li>
<li>Log back in</li>
</ul>
<p>And voila!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.databasically.com/2008/10/11/ie7-update-hangs-after-reboot-on-sbs-2003/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rake list tasks</title>
		<link>http://www.databasically.com/2008/08/03/rake-list-tasks/</link>
		<comments>http://www.databasically.com/2008/08/03/rake-list-tasks/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 05:37:53 +0000</pubDate>
		<dc:creator>wes</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[rake]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=10</guid>
		<description><![CDATA[I can never remember the exact name of a rake task, so I use this all the time:
&#62; rake -T
You can also filter the list of tasks that&#8217;s shown. For instance, if you only want to see the database tasks:
&#62; rake -T db
The -T option is handy when you just need to remember the exact [...]]]></description>
			<content:encoded><![CDATA[<p>I can never remember the exact name of a rake task, so I use this all the time:</p>
<pre class="ruby">&gt; rake -T</pre>
<p>You can also filter the list of tasks that&#8217;s shown. For instance, if you only want to see the database tasks:</p>
<pre class="ruby">&gt; rake -T db</pre>
<p>The -T option is handy when you just need to remember the exact wording.  It&#8217;s not so handy when you&#8217;re trying to figure out what the rake task list description is.  For that, use -D:</p>
<pre class="ruby">&gt; rake -D
....
rake test:units
    Run tests for units / Run the unit tests in test/unit
....
</pre>
<p>The output is longer, but you can see the full description. You can also filter by the task name to limit the output so you don&#8217;t have to scroll through the full list of tasks.</p>
<p>On Rails 2.1.0, here&#8217;s the full <code>rake -T</code> output:</p>
<pre class="ruby">rake db:abort_if_pending_migrations  # Raises an error if there are pending...
rake db:charset                      # Retrieves the charset for the curren...
rake db:collation                    # Retrieves the collation for the curr...
rake db:create                       # Create the database defined in confi...
rake db:create:all                   # Create all the local databases defin...
rake db:drop                         # Drops the database for the current R...
rake db:drop:all                     # Drops all the local databases define...
rake db:fixtures:identify            # Search for a fixture given a LABEL o...
rake db:fixtures:load                # Load fixtures into the current envir...
rake db:migrate                      # Migrate the database through scripts...
rake db:migrate:redo                 # Rollbacks the database one migration...
rake db:migrate:reset                # Resets your database using your migr...
rake db:reset                        # Drops and recreates the database fro...
rake db:rollback                     # Rolls the schema back to the previou...
rake db:schema:dump                  # Create a db/schema.rb file that can ...
rake db:schema:load                  # Load a schema.rb file into the database
rake db:sessions:clear               # Clear the sessions table
rake db:sessions:create              # Creates a sessions migration for use...
rake db:shell                        # Launches the database shell using th...
rake db:structure:dump               # Dump the database structure to a SQL...
rake db:test:clone                   # Recreate the test database from the ...
rake db:test:clone_structure         # Recreate the test databases from the...
rake db:test:prepare                 # Prepare the test database and load t...
rake db:test:purge                   # Empty the test database
rake db:version                      # Retrieves the current schema version...
rake doc:app                         # Build the app HTML Files
rake doc:clobber_app                 # Remove rdoc products
rake doc:clobber_plugins             # Remove plugin documentation
rake doc:clobber_rails               # Remove rdoc products
rake doc:plugins                     # Generate documentation for all insta...
rake doc:rails                       # Build the rails HTML Files
rake doc:reapp                       # Force a rebuild of the RDOC files
rake doc:rerails                     # Force a rebuild of the RDOC files
rake log:clear                       # Truncates all *.log files in log/ to...
rake notes                           # Enumerate all annotations
rake notes:fixme                     # Enumerate all FIXME annotations
rake notes:optimize                  # Enumerate all OPTIMIZE annotations
rake notes:todo                      # Enumerate all TODO annotations
rake rails:freeze:edge               # Lock to latest Edge Rails or a speci...
rake rails:freeze:gems               # Lock this application to the current...
rake rails:unfreeze                  # Unlock this application from freeze ...
rake rails:update                    # Update both configs, scripts and pub...
rake rails:update:configs            # Update config/boot.rb from your curr...
rake rails:update:javascripts        # Update your javascripts from your cu...
rake rails:update:scripts            # Add new scripts to the application s...
rake routes                          # Print out all defined routes in matc...
rake secret                          # Generate a crytographically secure s...
rake stats                           # Report code statistics (KLOCs, etc) ...
rake test                            # Test all units and functionals
rake test:functionals                # Run tests for functionalsdb:test:pre...
rake test:integration                # Run tests for integrationdb:test:pre...
rake test:plugins                    # Run tests for pluginsenvironment / R...
rake test:recent                     # Run tests for recentdb:test:prepare ...
rake test:uncommitted                # Run tests for uncommitteddb:test:pre...
rake test:units                      # Run tests for unitsdb:test:prepare /...
rake tmp:cache:clear                 # Clears all files and directories in ...
rake tmp:clear                       # Clear session, cache, and socket fil...
rake tmp:create                      # Creates tmp directories for sessions...
rake tmp:pids:clear                  # Clears all files in tmp/pids
rake tmp:sessions:clear              # Clears all files in tmp/sessions
rake tmp:sockets:clear               # Clears all files in tmp/sockets</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.databasically.com/2008/08/03/rake-list-tasks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Deleting old files</title>
		<link>http://www.databasically.com/2008/06/01/deleting-old-files/</link>
		<comments>http://www.databasically.com/2008/06/01/deleting-old-files/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 04:48:18 +0000</pubDate>
		<dc:creator>wes</dc:creator>
		
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=6</guid>
		<description><![CDATA[Oftentimes, I like to backup SQL databases to a local folder, then include that folder in my backup to tape/disk/network.  That way, the backup software doesn&#8217;t have to be database aware; it&#8217;s just backing up files.
SQL Server allows you to schedule backups and there&#8217;s an option to clear out the old backup files, but [...]]]></description>
			<content:encoded><![CDATA[<p>Oftentimes, I like to backup SQL databases to a local folder, then include that folder in my backup to tape/disk/network.  That way, the backup software doesn&#8217;t have to be database aware; it&#8217;s just backing up files.</p>
<p>SQL Server allows you to schedule backups and there&#8217;s an option to clear out the old backup files, but I&#8217;ve found it doesn&#8217;t always work quite right.  I&#8217;d always struggled with a way to do this until I found the FORFILES command.</p>
<p>Now, I&#8217;m not sure what version of Windows this appeared it, but I know it&#8217;s in Windows Server 2003.</p>
<p>
<pre name="code" lang="vb">forfiles /p e:\backup /m *.bak /d -2 /c "cmd /c del @file"</pre>
</p>
<p>The /c option allows you to run any command, so I&#8217;m using the del command to delete all files older than a certain date.  Certainly, you could do whatever you want, like move them or copy or print their attributes.</p>
<p>The /d is where you specify a date or a number of days. A plus gives you files after that date and a minus gives you files before that date.  In my example, files more that two days old are selected to be deleted.</p>
<p>I never had a good way to do this before, so I was always resorting to a script written in another language or a customized batch file (and batch programming is not fun!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.databasically.com/2008/06/01/deleting-old-files/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Turn off email logging in Rails</title>
		<link>http://www.databasically.com/2008/05/27/turn-off-email-logging-in-rails/</link>
		<comments>http://www.databasically.com/2008/05/27/turn-off-email-logging-in-rails/#comments</comments>
		<pubDate>Tue, 27 May 2008 06:48:08 +0000</pubDate>
		<dc:creator>wes</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.databasically.com/?p=5</guid>
		<description><![CDATA[Oftentimes, I don&#8217;t need every single email saved into the log file.  When I&#8217;m developing, they get in the way. In a production environment, they take up a lot of room make the log harder to read.
So, I normally put this in my environment.rb:
ActionMailer::Base.logger = nil
]]></description>
			<content:encoded><![CDATA[<p>Oftentimes, I don&#8217;t need every single email saved into the log file.  When I&#8217;m developing, they get in the way. In a production environment, they take up a lot of room make the log harder to read.</p>
<p>So, I normally put this in my environment.rb:</p>
<pre name="code" class="ruby">ActionMailer::Base.logger = nil</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.databasically.com/2008/05/27/turn-off-email-logging-in-rails/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
