Monday, 26 September 2016

Reset Windows 7 Administrator account (or any user account) password

Had some fun on Sunday trying to get access to Admin account on Windows 7 laptop. 
I attempted some other methods but what eventually worked for me was a bit of a hack/trick. Replace sethc.exe (sticky keys) with cmd.exe and trigger sticky keys (sticky keys is run as Administrator). This was done through using Notepad.exe which is run to view logfiles after system recovery. Other techniques to get in on command-line as admin with drive mounted didn't work. This trick is at least quite amusing :-) also simple and portable :-D. 
Background: The Administrator password with laptop was not known. There was a user account with admin privs so users didn't find the need of it. UNTIL the windows login page stopped showing their user! We are guessing the User profile became corrupt or had something bad in it.
I attempted a series of procedures before getting the Notepad+sticky keys replace hack to work. For the record here they are (and the problem I encountered with them):
  1. When trying to log in as Administrator after an incorrect password you are prompted to insert rescue disk (in order to reset password). We had a Windows 7 rescue disk on cd. But the prompt asked for floppy or USB. I had no handy USB stick and was too lazy to go shopping and messing with creating USB boot disk.
  2. Using system repair disk to get in on command-line did not allow the replacing of sethc.exe with cmd.exe trick/hack. Or allow resetting admin password 'net use Administrator *'. The command-line was running as admin but not as the real admin on machine more as the system repair admin and the disk did not seem to be mounted with full access . . . ~ not sure ~
  3. Using linux system rescue cd (https://www.system-rescue-cd.org (version 4.8.2)) I could not mount the drive. I would kindof see it was a GPT partitioned drive - tools ntfs-3g gparted sfdisk should work with GPT but didn't. This computer has a prompt for username + domain + password before windows starts so not sure but maybe there is some extra security (which is needed to mount drive?)
  4. We looked at recovering the User Profile - editing registry - but . . . 
What eventually DID work was follow system recover sequence (no external/additional cd needed) at end view logfile (opens in Notepad). Then do file open - browse to cmd.exe - copy - paste - overwrite sethc.exe. Then reboot - trigger sticky keys - set password using command-line 'net user Administrator *'.
Procedure:
  1. Shutdown and reboot. When Windows starting is seen hold down the power button and power off.
  2. Power on. Windows boot should report that last Windows start up failed so it will give the option of "Launch startup repair". Choose this option.
  3. Cancel the Startup Repair. Cancel the System Restore.
  4. A report dialog will show reporting repair could not be done. In there expand "View problem details". Under problem details a link to x:/windows/... log file is shown. Click on this.
  5. Notepad.exe opens showing the logfile. This Notepad is running as Administrator and the mounted filesystem x: is your hard disk.
    5.1 Notepad: File - Open - browse to X:/Windows/system32 - scroll to sethc.exe
    5.2 Right-click on sethc.exe and rename to sethc-BACKUP.exe
    5.3 Scroll to cmd.exe. Right-click on cmd.exe. Copy. Right click. Paste.
    5.4. When I pasted cmd.exe the command-line ran (as Administrator) so I did 'cd x:/Windows/system32' and then 'copy cmd.exe sethc.exe' on command-line.
    5.4-1 If you prefer not command-line then just use Notepad File Open browser and make a copy of cmd.exe and rename it to sethc.exe
  6. Reboot without any funny stuff.
  7. At login page hit shift key 5 times or more triggering sticky keys. Instead of sticky keys prompt a command-line dialog appears. Running as Administrator. 'net user Administrator *' to set the password.
Good description with screenshots of the procedure here: http://null-byte.wonderhowto.com/how-to/hack-windows-7-become-admin-0160151/

The rsync of old user to new user after successful recover. And a game of blockus :-)


In conclusion, this solution doesn't require you to have any extra boot or repair CD. It is very portable :-) It is pretty simple. So it is probably worth trying as one of the first password recovery methods.
We finished up Sunday with making a new user, failing to copy files from old user -> new user using windows, installing cygwin with rsync, rsyncing from old user -> new user (-avzhP and excluding ntdata files and a few other). Then backing up stuff generally. Took ages (3/4hours?) but successful recover at the end, phew.

Saturday, 24 September 2016

Recipe: Mackerel with spinach and apple

Recipe: Mackerel with spinach and apple

As usual winging it in the kitchen. Successful and tasty soup and fish for tea today.
The selection of ingredients depends often on what is there, what needs to be used.

Apple baked with the mackerel was a nice combination. James & Fionnuala and the girls liked it alot.

Ingredients:
    2 plums
    2-3 tomatoes
    4 mushrooms (optional but good especially if you have a wife who loves them!)
    half a red onion
    mackerel - 3 fillets (Aldi's best)
    apple - tart(as in a bit sour) (my Mum and Dad brought some up from Cobh this Monday)
    spinach - we got a bag with the organic fruit & veg box
    oil, salt, pepper
    squeeze of lemon

Method:
   Turn on oven ~190 degrees.
   De-stone and slice plums, slice tomatoes, slice & dice onion, remove stalk from mushrooms.
   Put those in pyrex baking dish (some oil in first) and mix and put in oven.
   Shred/Chop some spinach - add spinach to dish in oven and mix in.
      (this was done a while after the rest baked a bit as I was making soup @ the same time).
   Add a small amount of lemon juice to dish in oven.
   Stir the dish in oven once or twice.
   Keep 3 large spinach leaves aside for the fish.

   Slice apple into wedges (quarter the apple, remove core/pips, slice).
   Take fish out of packet, rinse.
   Lay fish on a dish(I had it in a jug), season, put on oil, put apple on top.
   Squeeze on a small amount of lemon juice.
 
   13 mins to serving time put on the fish:
       Lay each fillet on a spinach leaf and lay wedges of apple on top.
       Lay side by side on top of the dish in oven.

   The apple stuck to top of mackerel and spinach stuck under.
   The spinach+fish+apple were easy to lift off and put on plate.
   Serve the mix underneath beside the fish.

https://en.wikipedia.org/wiki/Mackerel

--------------------------------------
We had soup with fish (and for he who didn't fancy fish):

Soup with 3 potatoes diced, half a butternut squash (deseeded but with skin) diced, 1 leek, 2 small carrots diced, some turmeric (the real root - small slices), grated ginger, chopped spinach, a black chilli pepper, a jug of vegetable broth(or stock), water, seasoning (salt, pepper, curry powder)
In that order (more or less) add ingredients and fry with oil first. Stirring frequently. If taking too long dicing and there is danger of burning then add some broth. You want to fry/broil the hard veg for a bit. I had broth from cooking potatoes + carrot + onion earlier in day. Add enough water at end to give a nice soup consistency not too thick. Spinach was added at end after heat was turned off.
After all cooked then buzz to smooth.

Serve with toast & butter.

--------------------------------------
Earlier on we had mash potato with black pudding, brocolli and eggs. (and some beans)

Mashed potato.
Potatoes roughly chopped. Carrot diced. Onion diced.
Boil potatoes with a small amount of salt in water. (some brine from an olive jar does nicely)
Add carrot and onion.
When potatoes  cooked (not soft/disentegrating) drain.
Keep the broth for making soup later.
Add some butter and a splash on milk.
Mash.

Serve with black pudding, egg, brocolli stalk and head fried with turmeric.
--------------------------------------

Friday, 5 August 2016

Major and minor chord notes and positions on guitar fretboard.

Useful for when you figure out nots in a tune and wish to fit chords to play along.


Major and Minor chord notes

A  Major chord  A   C#  E   A
A  Minor chord  A   C   E   A
A# Major chord  A#  D   F   A#
A# Minor chord  A#  C#  F   A#
B  Major chord  B   D#  F#  B
B  Minor chord  B   D   F#  B
C  Major chord  C   E   G   C
C  Minor chord  C   D#  G   C
C# Major chord  C#  F   G#  C#
C# Minor chord  C#  E   G#  C#
D  Major chord  D   F#  A   D
D  Minor chord  D   F   A   D
D# Major chord  D#  G   A#  D#
D# Minor chord  D#  F#  A#  D#
E  Major chord  E   G#  B   E
E  Minor chord  E   G   B   E
F  Major chord  F   A   C   F
F  Minor chord  F   G#  C   F
F# Major chord  F#  A#  C#  F#
F# Minor chord  F#  A   C#  F#
G  Major chord  G   B   D   G
G  Minor chord  G   A#  D   G
G# Major chord  G#  C   D#  G#
G# Minor chord  G#  B   D#  G#

Major chords on the fretboard:

 
A Major:
||| E |   |   |   |   | A |   |   |   | C#|   |   | E |   |   |   |   | A |   |   |
|||   |   | C#|   |   | E |   |   |   |   | A |   |   |   | C#|   |   | E |   |   |
|||   |   | A |   |   |   | C#|   |   | E |   |   |   |   | A |   |   |   | C#|   |
|||   |   | E |   |   |   |   | A |   |   |   | C#|   |   | E |   |   |   |   | A |
||| A |   |   |   | C#|   |   | E |   |   |   |   | A |   |   |   | C#|   |   | E |
||| E |   |   |   |   | A |   |   |   | C#|   |   | E |   |   |   |   | A |   |   |
A# Major:
|||   | F |   |   |   |   | A#|   |   |   | D |   |   | F |   |   |   |   | A#|   |
|||   |   |   | D |   |   | F |   |   |   |   | A#|   |   |   | D |   |   | F |   |
|||   |   |   | A#|   |   |   | D |   |   | F |   |   |   |   | A#|   |   |   | D |
||| D |   |   | F |   |   |   |   | A#|   |   |   | D |   |   | F |   |   |   |   |
|||   | A#|   |   |   | D |   |   | F |   |   |   |   | A#|   |   |   | D |   |   |
|||   | F |   |   |   |   | A#|   |   |   | D |   |   | F |   |   |   |   | A#|   |
B Major:
|||   |   | F#|   |   |   |   | B |   |   |   | D#|   |   | F#|   |   |   |   | B |
||| B |   |   |   | D#|   |   | F#|   |   |   |   | B |   |   |   | D#|   |   | F#|
|||   |   |   |   | B |   |   |   | D#|   |   | F#|   |   |   |   | B |   |   |   |
|||   | D#|   |   | F#|   |   |   |   | B |   |   |   | D#|   |   | F#|   |   |   |
|||   |   | B |   |   |   | D#|   |   | F#|   |   |   |   | B |   |   |   | D#|   |
|||   |   | F#|   |   |   |   | B |   |   |   | D#|   |   | F#|   |   |   |   | B |
C Major:
||| E |   |   | G |   |   |   |   | C |   |   |   | E |   |   | G |   |   |   |   |
|||   | C |   |   |   | E |   |   | G |   |   |   |   | C |   |   |   | E |   |   |
||| G |   |   |   |   | C |   |   |   | E |   |   | G |   |   |   |   | C |   |   |
|||   |   | E |   |   | G |   |   |   |   | C |   |   |   | E |   |   | G |   |   |
|||   |   |   | C |   |   |   | E |   |   | G |   |   |   |   | C |   |   |   | E |
||| E |   |   | G |   |   |   |   | C |   |   |   | E |   |   | G |   |   |   |   |
C# Major:
|||   | F |   |   | G#|   |   |   |   | C#|   |   |   | F |   |   | G#|   |   |   |
|||   |   | C#|   |   |   | F |   |   | G#|   |   |   |   | C#|   |   |   | F |   |
|||   | G#|   |   |   |   | C#|   |   |   | F |   |   | G#|   |   |   |   | C#|   |
|||   |   |   | F |   |   | G#|   |   |   |   | C#|   |   |   | F |   |   | G#|   |
|||   |   |   |   | C#|   |   |   | F |   |   | G#|   |   |   |   | C#|   |   |   |
|||   | F |   |   | G#|   |   |   |   | C#|   |   |   | F |   |   | G#|   |   |   |
D Major:
|||   |   | F#|   |   | A |   |   |   |   | D |   |   |   | F#|   |   | A |   |   |
|||   |   |   | D |   |   |   | F#|   |   | A |   |   |   |   | D |   |   |   | F#|
|||   |   | A |   |   |   |   | D |   |   |   | F#|   |   | A |   |   |   |   | D |
||| D |   |   |   | F#|   |   | A |   |   |   |   | D |   |   |   | F#|   |   | A |
||| A |   |   |   |   | D |   |   |   | F#|   |   | A |   |   |   |   | D |   |   |
|||   |   | F#|   |   | A |   |   |   |   | D |   |   |   | F#|   |   | A |   |   |
D# Major:
|||   |   |   | G |   |   | A#|   |   |   |   | D#|   |   |   | G |   |   | A#|   |
|||   |   |   |   | D#|   |   |   | G |   |   | A#|   |   |   |   | D#|   |   |   |
||| G |   |   | A#|   |   |   |   | D#|   |   |   | G |   |   | A#|   |   |   |   |
|||   | D#|   |   |   | G |   |   | A#|   |   |   |   | D#|   |   |   | G |   |   |
|||   | A#|   |   |   |   | D#|   |   |   | G |   |   | A#|   |   |   |   | D#|   |
|||   |   |   | G |   |   | A#|   |   |   |   | D#|   |   |   | G |   |   | A#|   |
E Major:
||| E |   |   |   | G#|   |   | B |   |   |   |   | E |   |   |   | G#|   |   | B |
||| B |   |   |   |   | E |   |   |   | G#|   |   | B |   |   |   |   | E |   |   |
|||   | G#|   |   | B |   |   |   |   | E |   |   |   | G#|   |   | B |   |   |   |
|||   |   | E |   |   |   | G#|   |   | B |   |   |   |   | E |   |   |   | G#|   |
|||   |   | B |   |   |   |   | E |   |   |   | G#|   |   | B |   |   |   |   | E |
||| E |   |   |   | G#|   |   | B |   |   |   |   | E |   |   |   | G#|   |   | B |
F Major:
|||   | F |   |   |   | A |   |   | C |   |   |   |   | F |   |   |   | A |   |   |
|||   | C |   |   |   |   | F |   |   |   | A |   |   | C |   |   |   |   | F |   |
|||   |   | A |   |   | C |   |   |   |   | F |   |   |   | A |   |   | C |   |   |
|||   |   |   | F |   |   |   | A |   |   | C |   |   |   |   | F |   |   |   | A |
||| A |   |   | C |   |   |   |   | F |   |   |   | A |   |   | C |   |   |   |   |
|||   | F |   |   |   | A |   |   | C |   |   |   |   | F |   |   |   | A |   |   |
F# Major:
|||   |   | F#|   |   |   | A#|   |   | C#|   |   |   |   | F#|   |   |   | A#|   |
|||   |   | C#|   |   |   |   | F#|   |   |   | A#|   |   | C#|   |   |   |   | F#|
|||   |   |   | A#|   |   | C#|   |   |   |   | F#|   |   |   | A#|   |   | C#|   |
|||   |   |   |   | F#|   |   |   | A#|   |   | C#|   |   |   |   | F#|   |   |   |
|||   | A#|   |   | C#|   |   |   |   | F#|   |   |   | A#|   |   | C#|   |   |   |
|||   |   | F#|   |   |   | A#|   |   | C#|   |   |   |   | F#|   |   |   | A#|   |
G Major:
|||   |   |   | G |   |   |   | B |   |   | D |   |   |   |   | G |   |   |   | B |
||| B |   |   | D |   |   |   |   | G |   |   |   | B |   |   | D |   |   |   |   |
||| G |   |   |   | B |   |   | D |   |   |   |   | G |   |   |   | B |   |   | D |
||| D |   |   |   |   | G |   |   |   | B |   |   | D |   |   |   |   | G |   |   |
|||   |   | B |   |   | D |   |   |   |   | G |   |   |   | B |   |   | D |   |   |
|||   |   |   | G |   |   |   | B |   |   | D |   |   |   |   | G |   |   |   | B |
G# Major:
|||   |   |   |   | G#|   |   |   | C |   |   | D#|   |   |   |   | G#|   |   |   |
|||   | C |   |   | D#|   |   |   |   | G#|   |   |   | C |   |   | D#|   |   |   |
|||   | G#|   |   |   | C |   |   | D#|   |   |   |   | G#|   |   |   | C |   |   |
|||   | D#|   |   |   |   | G#|   |   |   | C |   |   | D#|   |   |   |   | G#|   |
|||   |   |   | C |   |   | D#|   |   |   |   | G#|   |   |   | C |   |   | D#|   |
|||   |   |   |   | G#|   |   |   | C |   |   | D#|   |   |   |   | G#|   |   |   |

Minor chords on the fretboard

A Major:
||| E |   |   |   |   | A |   |   | C |   |   |   | E |   |   |   |   | A |   |   |
|||   | C |   |   |   | E |   |   |   |   | A |   |   | C |   |   |   | E |   |   |
|||   |   | A |   |   | C |   |   |   | E |   |   |   |   | A |   |   | C |   |   |
|||   |   | E |   |   |   |   | A |   |   | C |   |   |   | E |   |   |   |   | A |
||| A |   |   | C |   |   |   | E |   |   |   |   | A |   |   | C |   |   |   | E |
||| E |   |   |   |   | A |   |   | C |   |   |   | E |   |   |   |   | A |   |   |
A# Major:
|||   | F |   |   |   |   | A#|   |   | C#|   |   |   | F |   |   |   |   | A#|   |
|||   |   | C#|   |   |   | F |   |   |   |   | A#|   |   | C#|   |   |   | F |   |
|||   |   |   | A#|   |   | C#|   |   |   | F |   |   |   |   | A#|   |   | C#|   |
|||   |   |   | F |   |   |   |   | A#|   |   | C#|   |   |   | F |   |   |   |   |
|||   | A#|   |   | C#|   |   |   | F |   |   |   |   | A#|   |   | C#|   |   |   |
|||   | F |   |   |   |   | A#|   |   | C#|   |   |   | F |   |   |   |   | A#|   |
B Major:
|||   |   | F#|   |   |   |   | B |   |   | D |   |   |   | F#|   |   |   |   | B |
||| B |   |   | D |   |   |   | F#|   |   |   |   | B |   |   | D |   |   |   | F#|
|||   |   |   |   | B |   |   | D |   |   |   | F#|   |   |   |   | B |   |   | D |
||| D |   |   |   | F#|   |   |   |   | B |   |   | D |   |   |   | F#|   |   |   |
|||   |   | B |   |   | D |   |   |   | F#|   |   |   |   | B |   |   | D |   |   |
|||   |   | F#|   |   |   |   | B |   |   | D |   |   |   | F#|   |   |   |   | B |
C Major:
|||   |   |   | G |   |   |   |   | C |   |   | D#|   |   |   | G |   |   |   |   |
|||   | C |   |   | D#|   |   |   | G |   |   |   |   | C |   |   | D#|   |   |   |
||| G |   |   |   |   | C |   |   | D#|   |   |   | G |   |   |   |   | C |   |   |
|||   | D#|   |   |   | G |   |   |   |   | C |   |   | D#|   |   |   | G |   |   |
|||   |   |   | C |   |   | D#|   |   |   | G |   |   |   |   | C |   |   | D#|   |
|||   |   |   | G |   |   |   |   | C |   |   | D#|   |   |   | G |   |   |   |   |
C# Major:
||| E |   |   |   | G#|   |   |   |   | C#|   |   | E |   |   |   | G#|   |   |   |
|||   |   | C#|   |   | E |   |   |   | G#|   |   |   |   | C#|   |   | E |   |   |
|||   | G#|   |   |   |   | C#|   |   | E |   |   |   | G#|   |   |   |   | C#|   |
|||   |   | E |   |   |   | G#|   |   |   |   | C#|   |   | E |   |   |   | G#|   |
|||   |   |   |   | C#|   |   | E |   |   |   | G#|   |   |   |   | C#|   |   | E |
||| E |   |   |   | G#|   |   |   |   | C#|   |   | E |   |   |   | G#|   |   |   |
D Major:
|||   | F |   |   |   | A |   |   |   |   | D |   |   | F |   |   |   | A |   |   |
|||   |   |   | D |   |   | F |   |   |   | A |   |   |   |   | D |   |   | F |   |
|||   |   | A |   |   |   |   | D |   |   | F |   |   |   | A |   |   |   |   | D |
||| D |   |   | F |   |   |   | A |   |   |   |   | D |   |   | F |   |   |   | A |
||| A |   |   |   |   | D |   |   | F |   |   |   | A |   |   |   |   | D |   |   |
|||   | F |   |   |   | A |   |   |   |   | D |   |   | F |   |   |   | A |   |   |
D# Major:
|||   |   | F#|   |   |   | A#|   |   |   |   | D#|   |   | F#|   |   |   | A#|   |
|||   |   |   |   | D#|   |   | F#|   |   |   | A#|   |   |   |   | D#|   |   | F#|
|||   |   |   | A#|   |   |   |   | D#|   |   | F#|   |   |   | A#|   |   |   |   |
|||   | D#|   |   | F#|   |   |   | A#|   |   |   |   | D#|   |   | F#|   |   |   |
|||   | A#|   |   |   |   | D#|   |   | F#|   |   |   | A#|   |   |   |   | D#|   |
|||   |   | F#|   |   |   | A#|   |   |   |   | D#|   |   | F#|   |   |   | A#|   |
E Major:
||| E |   |   | G |   |   |   | B |   |   |   |   | E |   |   | G |   |   |   | B |
||| B |   |   |   |   | E |   |   | G |   |   |   | B |   |   |   |   | E |   |   |
||| G |   |   |   | B |   |   |   |   | E |   |   | G |   |   |   | B |   |   |   |
|||   |   | E |   |   | G |   |   |   | B |   |   |   |   | E |   |   | G |   |   |
|||   |   | B |   |   |   |   | E |   |   | G |   |   |   | B |   |   |   |   | E |
||| E |   |   | G |   |   |   | B |   |   |   |   | E |   |   | G |   |   |   | B |
F Major:
|||   | F |   |   | G#|   |   |   | C |   |   |   |   | F |   |   | G#|   |   |   |
|||   | C |   |   |   |   | F |   |   | G#|   |   |   | C |   |   |   |   | F |   |
|||   | G#|   |   |   | C |   |   |   |   | F |   |   | G#|   |   |   | C |   |   |
|||   |   |   | F |   |   | G#|   |   |   | C |   |   |   |   | F |   |   | G#|   |
|||   |   |   | C |   |   |   |   | F |   |   | G#|   |   |   | C |   |   |   |   |
|||   | F |   |   | G#|   |   |   | C |   |   |   |   | F |   |   | G#|   |   |   |
F# Major:
|||   |   | F#|   |   | A |   |   |   | C#|   |   |   |   | F#|   |   | A |   |   |
|||   |   | C#|   |   |   |   | F#|   |   | A |   |   |   | C#|   |   |   |   | F#|
|||   |   | A |   |   |   | C#|   |   |   |   | F#|   |   | A |   |   |   | C#|   |
|||   |   |   |   | F#|   |   | A |   |   |   | C#|   |   |   |   | F#|   |   | A |
||| A |   |   |   | C#|   |   |   |   | F#|   |   | A |   |   |   | C#|   |   |   |
|||   |   | F#|   |   | A |   |   |   | C#|   |   |   |   | F#|   |   | A |   |   |
G Major:
|||   |   |   | G |   |   | A#|   |   |   | D |   |   |   |   | G |   |   | A#|   |
|||   |   |   | D |   |   |   |   | G |   |   | A#|   |   |   | D |   |   |   |   |
||| G |   |   | A#|   |   |   | D |   |   |   |   | G |   |   | A#|   |   |   | D |
||| D |   |   |   |   | G |   |   | A#|   |   |   | D |   |   |   |   | G |   |   |
|||   | A#|   |   |   | D |   |   |   |   | G |   |   | A#|   |   |   | D |   |   |
|||   |   |   | G |   |   | A#|   |   |   | D |   |   |   |   | G |   |   | A#|   |
G# Major:
|||   |   |   |   | G#|   |   | B |   |   |   | D#|   |   |   |   | G#|   |   | B |
||| B |   |   |   | D#|   |   |   |   | G#|   |   | B |   |   |   | D#|   |   |   |
|||   | G#|   |   | B |   |   |   | D#|   |   |   |   | G#|   |   | B |   |   |   |
|||   | D#|   |   |   |   | G#|   |   | B |   |   |   | D#|   |   |   |   | G#|   |
|||   |   | B |   |   |   | D#|   |   |   |   | G#|   |   | B |   |   |   | D#|   |
|||   |   |   |   | G#|   |   | B |   |   |   | D#|   |   |   |   | G#|   |   | B |


G Major: G A B C D E F#

    0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15  16
||| E |   | F#| G |   | A |   | B | C |   | D |   | E |   | F#| G |   | A |   | B |
||| B | C |   | D |   | E |   | F#| G |   | A |   | B | C |   | D |   | E |   | F#|
||| G |   | A |   | B | C |   | D |   | E |   | F#| G |   | A |   | B | C |   | D |
||| D |   | E |   | F#| G |   | A |   | B | C |   | D |   | E |   | F#| G |   | A |
||| A |   | B | C |   | D |   | E |   | F#| G |   | A |   | B | C |   | D |   | E |
||| E |   | F#| G |   | A |   | B | C |   | D |   | E |   | F#| G |   | A |   | B |
           xxxxxxxxxxxxxxx
            Ionian key G => G(3)
                   xxxxxxxxxxxxxxxxxxx
                    Dorian key G => A(5)
                               xxxxxxxxxxxxxxx
                                Phyrgian key G => B(7)
                               xxxxxxxxxxxxxxx
                                Lydian key G => C(8)
                                       xxxxxxxxxxxxxxxxxxx
                                        Mixolydian key G => D(10)
                                               xxxxxxxxxxxxxxxxxxx
                                                Aeolian key G => E(12)
           xxxxxxxxxxxxxxx                                 xxxxxxxxxxxxxxx
                                                            Locrian key G => F#(14)



Mode name       Notes (all natural)
ionian mode     C, D, E, F, G, A, B, C
dorian mode     D, E, F, G, A, B, C, D
phrygian mode   E, F, G, A, B, C, D, E
lydian mode     F, G, A, B, C, D, E, F
mixolydian mode G, A, B, C, D, E, F, G
aeolian mode    A, B, C, D, E, F, G, A
locrian mode    B, C, D, E, F, G, A, B

e.g. G ionian mode(normal G major): G, A, B, C, D, E, F#, G.   g-ionian-mode g-major-scale
e.g. G phrygian mode: G, Ab, Bb, C, D, Eb, F, G.   g-phrygian-mode

e.g. A7 is A mixolydian: A, B, C#, D, E, F#, G, A    Root,3rd,5th,7th: A C# E G    on guitar: 002020 = EAEGC#E  (Rx1 3x1 5x3 7x1)  7th note is played (duhrr A7)

A  Major:  A   B   C#  D   E   F#  G#  A             Root,3rd,5th,7th: A C# E G#   on guitar: 002220 = EAEAC#E  (Rx2 3x1 5x3)
 major = ionian mode

A  Minor:  A   B   C   D   E   F   G   A             Root,3rd,5th,7th: A C E G     on guitar: 002200 = EAEACE   (Rx2 3x1 5x3)
 natural minor = aeolian mode

Friday, 22 July 2016

rough rpm (and dpkg-query) quickref

HOWTO rpm quickref, -ql list files in packages, -qf show rpm source of files



Syntax Debian/Ubuntu/.. Description Example(s)
rpm -ivh [--force] {rpm-file(s)}  apt-get install Install the package rpm -ivh ~/Downloads/wireshark-1.99.0-1.i686.rpm
rpm -Uvh {rpm-file} Upgrade package rpm -Uvh ~/Downloads/wireshark-1.99.0-1.i686.rpm
rpm -Uvh --test ~/Downloads/wireshark-1.99.0-1.i686.rpm
rpm -ev {package} Erase/remove/ an installed package rpm -ev wireshark
rpm -ev --nodeps {package} Erase/remove/ an installed package without checking for dependencies rpm -ev --nodeps wireshark
rpm -ev --noscripts {package} Erase/remove/ an installed package without running script
## sometimes needed when the pre/post install/uninstall script has error
rpm -ev --noscripts `rpm -qg OMN`
rpm -qa  dpkg-query -S {file-pattern} Display list all installed packages rpm -qa
rpm -qa | less
rpm -qi {package} Display installed information along with package version and short description rpm -qi wireshark
rpm -qf {/path/to/file}  dpkg-query -S {file-pattern} Find out what package a file belongs to i.e. find what package owns the file rpm -qf /apps/omn/bin
dpkg-query -S $(which bono)
rpm -ql p {rpm-file} // rpm -ql {package}  dpkg-query -L {package} List files packaged in rpm file. rpm -ql wireshark
rpm -qlp ~/Downloads/wireshark-1.99.0-1.i686.rpm
rpm -ql -p ~/Downloads/wireshark-1.99.0-1.i686.rpm
dpkg-query -L bono
rpm --rebuilddb Sometimes necessary if problems, rpm db has become corrupt.
rpm -qa --last Display list of all recently installed RPMs rpm -qa --last
rpm -qa --last | less
rpm -qpR {.rpm-file}
rpm -qR {package}
Find out what dependencies a rpm file has rpm -qpR ~/Downloads/wireshark-1.99.0-1.i686.rpm
rpm -qR wireshark
rpm -qg {group}  dpkg-query -g OMN
 dpkg-query -G OMN
List all packages in group rpm -qg "System Environment/Libraries"
rpmquery -l -p {rpm-file} // rpmquery -l {package} List files packaged in rpm file. Same as rpm -ql.



sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key




yum install `cat /tmp/rpm.list`



$ rpm --help
Usage: rpm [OPTION...]

Query/Verify package selection options:
  -a, --all                         query/verify all packages
  -f, --file                        query/verify package(s) owning file
  -g, --group                       query/verify package(s) in group
  -p, --package                     query/verify a package file
      --pkgid                       query/verify package(s) with package identifier
      --hdrid                       query/verify package(s) with header identifier
      --triggeredby                 query the package(s) triggered by the package
      --whatrequires                query/verify the package(s) which require a dependency
      --whatprovides                query/verify the package(s) which provide a dependency
      --nomanifest                  do not process non-package files as manifests

Query options (with -q or --query):
  -c, --configfiles                 list all configuration files
  -d, --docfiles                    list all documentation files
  -L, --licensefiles                list all license files
      --dump                        dump basic file information
  -l, --list                        list files in package
      --queryformat=QUERYFORMAT     use the following query format
  -s, --state                       display the states of the listed files

Verify options (with -V or --verify):
      --nofiledigest                don't verify digest of files
      --nofiles                     don't verify files in package
      --nodeps                      don't verify package dependencies
      --noscript                    don't execute verify script(s)

Install/Upgrade/Erase options:
      --allfiles                    install all files, even configurations which might otherwise be skipped
      --allmatches                  remove all packages which match (normally an error is generated if specified
                                    multiple packages)
      --badreloc                    relocate files in non-relocatable package
  -e, --erase=+            erase (uninstall) package
      --excludedocs                 do not install documentation
      --excludepath=          skip files with leading component
      --force                       short hand for --replacepkgs --replacefiles
  -F, --freshen=+      upgrade package(s) if already installed
  -h, --hash                        print hash marks as package installs (good with -v)
      --ignorearch                  don't verify package architecture
      --ignoreos                    don't verify package operating system
      --ignoresize                  don't check disk space before installing
  -i, --install                     install package(s)
      --justdb                      update the database, but do not modify the filesystem
      --nodeps                      do not verify package dependencies
      --nofiledigest                don't verify digest of files
      --nocontexts                  don't install file security contexts
      --noorder                     do not reorder package installation to satisfy dependencies
      --noscripts                   do not execute package scriptlet(s)
      --notriggers                  do not execute any scriptlet(s) triggered by this package
      --nocollections               do not perform any collection actions
      --oldpackage                  upgrade to an old version of the package (--force on upgrades does this automatically)
      --percent                     print percentages as package installs
      --prefix=

                relocate the package to , if relocatable
      --relocate==        relocate files from path to
      --replacefiles                ignore file conflicts between packages
      --replacepkgs                 reinstall if the package is already present
      --test                        don't install, but tell if it would work or not
  -U, --upgrade=+      upgrade package(s)

Common options for all rpm modes and executables:
  -D, --define='MACRO EXPR'         define MACRO with value EXPR
      --undefine=MACRO              undefine MACRO
  -E, --eval='EXPR'                 print macro expansion of EXPR
      --macros=           read instead of default file(s)
      --nodigest                    don't verify package digest(s)
      --nosignature                 don't verify package signature(s)
      --rcfile=           read instead of default file(s)
  -r, --root=ROOT                   use ROOT as top level directory (default: "/")
      --dbpath=DIRECTORY            use database in DIRECTORY
      --querytags                   display known query tags
      --showrc                      display final rpmrc and macro configuration
      --quiet                       provide less detailed output
  -v, --verbose                     provide more detailed output
      --version                     print the version of rpm being used

Options implemented via popt alias/exec:
      --scripts                     list install/erase scriptlets from package(s)
      --setperms                    set permissions of files in a package
      --setugids                    set user/group ownership of files in a package
      --conflicts                   list capabilities this package conflicts with
      --obsoletes                   list other packages removed by installing this package
      --provides                    list capabilities that this package provides
      --requires                    list capabilities required by package(s)
      --info                        list descriptive information from package(s)
      --changelog                   list change logs for this package
      --xml                         list metadata in xml
      --triggers                    list trigger scriptlets from package(s)
      --last                        list package(s) by install time, most recent first
      --dupes                       list duplicated packages
      --filesbypkg                  list all files from each package
      --fileclass                   list file names with classes
      --filecolor                   list file names with colors
      --fscontext                   list file names with security context from file system
      --fileprovide                 list file names with provides
      --filerequire                 list file names with requires
      --filecaps                    list file names with POSIX1.e capabilities

Help options:
  -?, --help                        Show this help message
      --usage                       Display brief usage message
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Interrupted system call)
warning: waiting for transaction lock on /var/lib/rpm/.rpm.lock
$ for p in $(rpm -qa); do rpm -qi $p; done |less
Name        : wireshark
Version     : 1.99.0
Release     : 1
Architecture: i686
Install Date: Fri 20 Jun 2014 13:09:02 IST
Group       : Applications/Internet
Size        : 132408893
License     : GPL+
Signature   : (none)
Source RPM  : wireshark-1.99.0-1.src.rpm
Build Date  : Fri 20 Jun 2014 11:34:04 IST
Build Host  : nebraska.ie.openmindnetworks.com
Relocations : (not relocatable)
Packager    : Gerald Combs
URL         : http://www.wireshark.org/
Summary     : Network protocol analyzer
Description :
Wireshark is a free network protocol analyzer for Unix and Windows. It
allows you to examine data from a live network or from a capture file
on disk. You can interactively browse the capture data, viewing summary
and detail information for each packet. Wireshark has several powerful
features, including a rich display filter language and the ability to
view the reconstructed stream of a TCP session.

This package contains command-line utilities, plugins, and documentation for
Wireshark. A GTK+ and a Qt graphical user interface are packaged separately.


Name        : wireshark-gnome
Version     : 1.10.6
Release     : 1.fc19
Architecture: i686
Install Date: Fri 09 May 2014 10:20:48 IST
Group       : Applications/Internet
Size        : 2608072
License     : GPL+
Signature   : RSA/SHA256, Sun 09 Mar 2014 17:36:55 GMT, Key ID 07477e65fb4b18e6
Source RPM  : wireshark-1.10.6-1.fc19.src.rpm
Build Date  : Sat 08 Mar 2014 18:01:27 GMT
Build Host  : buildvm-10.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.wireshark.org/
Summary     : Gnome desktop integration for wireshark
Description :
Contains wireshark for Gnome 2 and desktop integration file


$ for p in $(rpm -qa); do rpm -qi $p; done |grep Group |sort |uniq
compression standard from the Joint Photographic Experts Group (JPEG).
font that was released to the TeX Users Group under a liberal license.
generously donated to the TeX Users' Group when Y&Y closed its
Group       : Amusements/Games
Group       : Amusements/Graphics
Group       : Applications/Archiving
Group       : Applications/Communications
Group       : Applications/Databases
Group       : Applications/Editors
Group       : Applications/Emulators
Group       : Applications/Engineering
Group       : Applications/File
Group       : Applications/Internet
Group       : Applications/Multimedia
Group       : Applications/Productivity
Group       : Applications/Publishing
Group       : Applications/System
Group       : Applications/Text
Group       : Development/Debuggers
Group       : Development/Documentation
Group       : Development/Java
Group       : Development/Languages
Group       : Development/Libraries
Group       : Development/Libraries/Java
Group       : Development/System
Group       : Development/Tools
Group       : Development/Tools/Building
Group       : Documentation
Group       : OMN
Group       : Productivity/Networking/Email/Utilities
Group       : Public Keys
Group       : System/Boot
Group       : System Environment/Base
Group       : System Environment/Daemons
Group       : System Environment/Kernel
Group       : System Environment/Libraries
Group       : System Environment/Shells
Group       : System/Libraries
Group       : Text Editors/Integrated Development Environments (IDE)
Group       : Text Processing/Markup/XML
Group       : Unspecified
Group       : User Interface/Desktops
Group       : User Interface/X
Group       : User Interface/X Hardware Support
Group       : Utilities
Summary     : NFSv4 User and Group ID Mapping Library
the GraphicsMagick Group to significantly improve the quality and performance
the Internet. It is designed by the IETF Codec Working Group and incorporates
TrouSerS is an implementation of the Trusted Computing Group's Software Stack
Users Group NTG.
Yahoo!, Jabber, Bonjour, Gadu-Gadu, ICQ, IRC, Novell Groupwise, QQ,


Friday, 3 June 2016


Good to see the Japanese boy who was lost in the woods has been found.
Hope people are not too hard on him and his family!

Looks like the hut where Yamato was found: https://www.google.com/maps/@42.0725169,140.764528,447m/data=!3m1!1e3
http://www.openstreetmap.org/#map=14/42.0700/140.7402&layers=N
geo:42.0700,140.7509?z=14

Matches the aerial shot here http://www.bbc.com/news/world-asia-36441612

Looks like it is not too far from some other houses.

It would be interesting to know where he started from . . . http://www.japantimes.co.jp/news/2016/06/05/national/misguided-search-hokkaido-boy-testament-unpredictability-children-rescuers-say/


Japanese missing boy Yamato Tanooka found alive in Hokkaido

http://www.bbc.com/news/world-asia-36441612

Missing Hokkaido boy, 7, found alive but hungry in hut on SDF base






Friday, 13 May 2016

submission on the plans for College Green.

See the rough plan overview in the public consultation doc:
http://www.dublincity.ie/college-green
http://www.dublincity.ie/sites/default/files/content/Planning/Documents/CollegeGreenConsultationDocument.pdf

I would like to make a submission on the plans for College Green.
Hopefully to give positive input and offset negative input by lobby groups like the Dublin parking lobby.
Send your submissions to: traffic@dublincity.ie

I very much welcome the plans for College Green.
These aspects of the plans I think are the right things to do:
 simplify traffic, public transport links for bus and luas
 free up space for civic plaza (safe and pleasant area for pedestrian/tourist/shoppers/students/workers/...)
 safer segregated bike lanes

My family live in the Leopardstown area.
I commute daily to Pearse St. for work. I primarily use bike, also use Luas and Dublin bike scheme.
We all visit town regularly (public transport and car and bike).
We have children who are becoming teenagers and are now starting to use bus and Luas and cycle to visit city centre.
I am also a scout leader and we use public transport to visit the city with youth groups.

So, speaking as bike, public transport and car users:
 we welcome anything done to make Dublin a safer and more family friendly city with less car traffic.

Events like culture night where the city is much more pedestrian friendly show what a pleasant place the city can be and how easy it can be to get around without traffic.

Pedestrian and traffic crossings
=========================
On the outskirts of scheme and for crossings for public transport corridors:
In general in many areas of the city more pedestrian friendly crossings would be nice.
Traffic calming and raised ~pedestrianised zone~ Zebra crossings are good:
  safer for pedestrian users
  do not waste time with red traffic lights and nobody crossing
  many (able bodied) pedestrians will cross roads at any point anyway as there are too few traffic light crossings
Very wide pedestrian crossing areas would be appropriate in the plaza area.

Pedestrian and bike shared space, Education of road/space users
====================================================
Cyclists and pedestrians can work really well together if everyone plays nicely.
Also design of the pedestrian space and cycle track can help people to play nicely together.
Visual cues and good design connecting cyclists and pedestrians to routes in scheme and on outskirts of scheme is important.
There is loads of space so hopefully it can be used and there will not be any problem sharing.
I am talking in childish terms here a little bit as a small few pedestrians, bike users (and vehicle drivers) do not seem to have learned how to share.

It would be nice if this could be a mixed bike and pedestrian area.
Maybe bikes can flow through the space no problem.
Design allowing moving pedestrians and bikes to manoeuver freely around slower or stopped plaza users would make the space work well.

Width of bike lanes ?
=================
Note that there is a good volume of bike traffic through the area already.
Traffic generally moves slowly or is stuck in the area.
Bikes make use of the full road (all lanes) in the area currently due to passing obstacles.
Cycle lanes joining on to or moving through the civic area should not be made too narrow.
The usual width of cycle lanes around the city is just about sufficient for one cyclist to pass another (if both squeeze in to either side of lane).
It would be great if consideration is given to this.

Encourage walking and cycling
========================
I can access any area in city centre in 10 or 15 mins - by bike.
I am an experienced bike user though.
More safe bike routes are needed to make this possible for all users.
More bike use will reduce the danger from traffic (and allow traffic to flow better!)
So please take opportunity to provide more Dublin bike scheme stations and more bike parking where possible.


Thursday, 28 April 2016

more eventful than usual commute to work: bike crash run


Maeve & I grand off to school.
Rain had fallen, roads a bit wet but warmer than last 2 days.

On way down past the goat traffic moving a bit slow.
Just before left turn traffic started moving.
A car turned on indicator and went left right in front of me (I was just level with his rear). 
Cut straight across in front of me. Crash. Totally took me out. 
Wet morn, my brakes v good but he just drove straight into my side.
I would have been on his bonnet only he stopped.
I fell fine: left wrist, right elbow/hand, left knee
  jumped up and down so physically v good
Bike  ok too apart from scrapes
Driver was ok. At least he stopped & checked I was ok.
He was also ok  but clueless - I'm not to worry about the scrapes on his car!! :-E
His left wing mirror was bent forward so now he cannot use it to check for bikes from behind. :-7
Anyway. I'm too nice.

Front brake disc rubbed on way in.
So I brought it to think bike for service (due it's new bike 5 week service). The guy fixed the front wheel immediately - was just misaligned. Thanks http://www.thinkbike.ie


No dublin bike card. Oop! So 3k run to work.

Crash just after the 5k mark.

yay. I can still run.
with bumpy bag on back.
adjusting shove jacket into bag to stop tools and lunchbox whacking my lower back.
and oops a fence climb at one spot.


I'm cautious enough undertaking and usually can stop but the timing of this - car turned right into me - I couldn't do anything.
I have bright flashing light facing forward which helps cars see me.
I also wear a yellow jacket - good chunk of bright colour which helps drivers.


Work work work. Cdrs.
OMNOM NOM lunch. Scout texts phone calls whatsapp facebook.
Work work (bash scripts. Jenkins. Traffic control tests.

Quite an eventful day! Evening was busy too. Legged it home. Run. Fun poking @ 3 dub bike terminals, FenianSt and MerrionSqEast don't have credit card terminals contrary to map? FitzWilliamSt one gave me bike. But not a 3 day ticket. Bike. Mad weather. Blustery wind. Spitting rain. Run. Collect my bike. Bike home. Lovely rainbow. A bike catches up with me. "Here's pant your wallet pant you dropped it pand last traffic lights pant". THANK YOU! Hi to visitors Fionns Mum and Dad. Fionn gives me food. I go with Kate to scout den. Loaded van. Up to larch hill. Gear on site. Marquee up. Home.




I have left alot out! Busy day.