Howtos / Articles

Enable workspaces in Ubuntu 13.04

Since upgrading my Ubuntu desktop from 12.10 to 13.04, my workspaces disappeared. It turns out that Ubuntu 13.04 disables workspaces by default. Thankfully it can easily be enabled again. Follow the steps below to enable workspaces on Ubuntu 13.04.…

Read more [...]

Generate random passwords on Ubuntu

The ‘makepasswd’ package on Ubuntu can be used to easily generate random passwords. This package is part of the Ubuntu repositories, however probably wont be installed by default. It also has the ability to generate MD5 hashes of the random passwords. Install makepasswd: $ sudo apt-get -y install makepasswd Generate a random password: You can now run makepasswd to generate a random password. $ makepasswd Example output: $ makepasswd 6HL5y9F9sC Generate 5 random passwords: $ makepasswd –count=5 Example output: $…

Read more [...]

Database Recovery models for Microsoft SQL Server

Microsoft SQL server provides three recovery models; full, simple, and bulk-logged. Each have their benefits. The details of the three recovery models is outlined below. You will need to choose the best option for your scenario. For a production database that you need to be able to recover from, the best option will generally be the full recover model. Full recovery model: The full recovery model maintains the entire transaction log history up until the point where the database log…

Read more [...]

Fix Database Integrity Errors in Microsoft SQL Server

Sometimes you may encounter data integrity issues with one or more tables on a Microsoft SQL server. These errors may be found during a data integrity check using DBCC CHECKDB, or even via general use of the database. There are 3 options to correct the database integrity issues; safe repair, restore, and non safe repair (in that order). Its always good practice to take an extra backup before any of these commands are run (specifically the non-safe repair option). Safe…

Read more [...]

Automatically shrink database files in Microsoft SQL 2008

Microsoft SQL server 2008 has the ability to automatically shrink database files. By default this option is disabled. With automatic shrinking of database files turned on, the SQL server will periodically check the available free space within the database files, and will automatically shrink the files if needed. If your database has heavy use, it might be best to keep this option disabled to prevent performace degration. To check what the current auto shrink setting: SELECT DATABASEPROPERTYEX(‘<database_name>’, ‘IsAutoShrink’) Replace <database_name>…

Read more [...]



Page 6 of 39« First...234567891011...2030...Last »