Karl’s Blog
msgbartop
msgbarbottom

09 May 12 How to Create a RAM Disk in Mac OSX

This is a useful example of how to create a RAM disk in Mac OSX. The number 1165430 represents the number of sectors to allocate; each sector contains 512 bytes. The example below will create a RAM disk named ramdisk with 569.06 MB of space.

diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`

25 Apr 12 How to Hard Reset Samsung 10.1 Tablet

I have the developer version of the tablet given to the attendees of GoogleIO 2011, if you have a comercial version of the tablet these instructions probably do not apply. The model number I’m working with is GT-P7510.

In order to reset the table you will need to download the android sdk; be sure to include the optional platform tools package. The platform package will install the fastboot utility we will use later on.

Step 1 – Place the Tablet into fastboot mode

  1. Power off the tablet
  2. Hold down the power and volume down (left) buttons
  3. When the USB and Download icons appear, choose the USB icon. Volume down button will toogle selection and the volume up will activate the mode.

Your tablet will now be in the fastboot mode.

Step 2 – Factory Reset

  1. Open a terminal
  2. Change directory to android sdk installation folder/platform-tools
  3. Execute fastboot -w

Should only take a few seconds and you’re done.

Tags: , , ,

10 Apr 12 How to reindex every table with SQL Server

A useful script I’ve used to reindex every table in an SQL Server database.

EXEC sp_MSforeachtable 'DBCC DBREINDEX (''?'', '' '', 80)'
GO
EXEC sp_updatestats
GO