Windows NTFS Permissions To Allow Create File Access But Not Modify Files

February 23rd, 2011

Generally speaking, NTFS permissions for creating files and modifying data are one and the same, that is, Create files / write data are a single item in the Advanced Security Settings -> Permissions Entry dialog.

However, it is possible to grant create file access separately to write data access. This is done by granting the following permissions (assume the group to apply this to is called CreateOnlyGroup):

Name Permission Apply To
CreateOnlyGroup Read & Execute This folder, subfolders and files
CreateOnlyGroup Create files / write data This folder and subfolders
CREATER OWNER Read & Execute Files only

If you wanted to allow the CreateOnlyGroup to then be able to modify the files that they created but not ones that they didn’t, just change the CREATER OWNER permissions to allow that.

Popularity: 27% [?]

Eclipse IDE – New Project, No Android Build Targets Available

January 25th, 2011

Installed the Andorid SDK on Windows as per guide at http://developer.android.com, all pretty straight forward. Decided to also use the Eclipse IDE for developing apps since it seems to be the recommended way of doing this (haven’t really done any Java development in the past).

Installed Eclipse 3.6 (Helios) and installed the ADT plugin for it, as detailed here.

Following that, tried to build a new project following the guide here.

Got to the New Project page but there were no Build Targets available in the list.

For me, the issue was that Eclipse didn’t know where the Android SDK was located, so it didn’t know what builds were available. To fix:
1. In Eclipse go to Window -> Preferences
2. Click on Android
3. Browse to the path of the SDK (for me, on Windows, this was default C:\Program Files\Android\android-sdk-windows)
4. Click Apply, then OK

The builds that have been added to the SDK will appear in the list. Go to File -> New -> Project again and this time the Build Targets list is there:

Popularity: 14% [?]

VMware PowerCLI for Host and Guest CPU Details, Includes OS and Power State

January 25th, 2011

The following will get CPU (num of cores) counts from hosts and will also get vCPU counts from VM’s. It will also get the operating system of each VM, its power state and the average CPU for the past week. The end of each section also has a count of the number of objects (hosts and VMs) in the environment.

Connect-VIServer <Your_vCenter_Server>
# define start and finish days (1 week period)
$startdate=(get-date).addDays(-7)
$finishdate=(get-date).addDays(-1)
# initialise counters
$vmcount=0
$hostcount=0

ForEach ($esxhost in (Get-VMHost | Sort Name)){
	Write-Host $esxhost.Name","$esxhost.NumCPU
    $hostcount++
}
Write-Host "Total Hosts:" $hostcount

ForEach ($vm in (Get-VM | Sort Name)){
    If ($vm.PowerState -eq 'PoweredOn'){
        $vstats = (Get-Stat -entity $vm -stat cpu.usage.average -Start $startdate -Finish $finishdate | measure-object -property value -average)
        # round to two decimal places
        $vavg = [system.math]::round($vstats.average,2)
    }Else{
        $vavg = 0
    }
	Write-Host $vm.Name","$vm.Guest.OSFullName","$vm.PowerState","$vm.NumCPU","$vavg
    $vmcount++
}

Write-Host "Total VM's:" $vmcount

Popularity: 35% [?]

Idea: Twitter Search – Random User Profile Image

January 12th, 2011

Its a random scatter of user profile images based on search criteria. Where? Here (suggest using Chrome for this):

http://danejeffrey.com/projects/twitsearch.php 

Using: Twitter Search API, JavaScript, jQuery and some CSS (also ref: http://johnmc.co/llum/using-json-to-access-the-twitter-search-api/ for use of $.getJSON).

Popularity: 8% [?]

VMware Packages – Where to Download VMware Tools for Your OS

January 6th, 2011

This is a digital mental note of where VMware Tools can be downloaded from

http://www.vmware.com/download/packages.html

or direct to the tree:

http://packages.vmware.com/tools/index.html

Also, this is my 50th post. Woohoo! A ridiculous rant might have to wait until the 100th post. Yeah, that makes sense.

Popularity: 6% [?]