Sunday 18 March 2012

Viewing partitions in FreeBSD

Reformat both disks as UFS

Shell to the device.

freenas:/# gpt show /dev/ad0
       start        size  index  contents
           0           1         PMBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34  5860533101      1  GPT part - FreeBSD UFS/UFS2
  5860533135          32         Sec GPT table
  5860533167           1         Sec GPT header

freenas:/# gpt show /dev/ad1
       start        size  index  contents
           0           1         PMBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34  5860533101      1  GPT part - FreeBSD UFS/UFS2
  5860533135          32         Sec GPT table
  5860533167           1         Sec GPT header

For RAID: format the disks individually as software RAID:

freenas:/# gpt show /dev/ad0
       start        size  index  contents
           0  5860533168

freenas:/# gpt show /dev/ad1
       start        size  index  contents
           0  5860533168

after creating the RAID and formatting it as UFS

freenas:/# gpt show /dev/mirror/RAID1p1
       start        size  index  contents
           0  5860533100

How to use Active Directory shares with FreeNAS

http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=75&t=6813&start=0#p33022

Creating a bootable USB disk from an ISO

This tool allows you to create a bootable USB disk from an ISO:

http://images2.store.microsoft.com/prod/clustera/framework/w7udt/1.0/en-us/Windows7-USB-DVD-tool.exe

Tuesday 13 March 2012

How to access NuGet when it is down

http://www.hanselman.com/blog/HowToAccessNuGetWhenNuGetorgIsDownOrYoureOnAPlane.aspx?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+ScottHanselman+%28Scott+Hanselman+-+ComputerZen.com%29

Sunday 4 March 2012

Firefox 4 defaults new tab to the address bar

To work around this, install NewTabURL, and deselect the "Select location bar after opening the new tab" option.

Ensure that the Firefox setting (about:config) for browser.newtab.url is set to about:blank

Friday 2 March 2012

My local Eclipse configuration

Eclipse Keys
Window > Preferences > General > Keys

Open Declaration     F12
Toggle Breakpoint     F9
Step Over        F10
Step Into        F11
Step Return    SHIFT + F11
Debug        F5
Terminate SHIFT + F5
Goto Matching Bracket CTRL + ]
Goto Line CTRL + G
Delete Line CTRL + L
Find Next  F3
Find Previous SHIFT+F3
Resume F5
Show View (View:Breakpoints) ALT+F9
Remove All Breakpoints  CTRL + ALT + F9
Font: Consolas 12

JVS in Endur

To open Eclipse for OpenLink, select C:\OpenLink\eclipse\eclipse.exe.

Adding JVS projects into Eclipse
In Eclipse, select File > Import > General > Existing Projects into Workspace
Select the root folder. Do not Copy projects into Workspace.

Publishing JVS
Select OpenLink > Associate project to session. This will associate the Java workspace with a running Endur session.

To save the plug-in JVS script to Endur, select
OpenLink > Save Plugin to DB

Debugging JVS
To debug a JVS project:

In Endur select System Monitor



select New Engine to create a JVM engine. Right-click on the engine and select Init Java VM. This will create a JVM and tell you the port being used.

In Eclipse, select OpenLink > Debug Local Project and select the Script Engine with the port that was just created.

You can also select Trading Manager if you want to debug a UI task.