Search

Friday, 27 September 2019

Excel hidden sheets, unhide all macro button

This short guide contains the instructions on how to create a menu ribbon button that unhides all hidden sheets.
The button actually triggers a macro, details of which are below.
  1. Open a new excel workbook
  2. Start to record a new macro

    1. Give the macro a name “unhide_all_sheets”, and store the macro in “Personal Macro Workbook”
    2. Type a short string into any cell, then stop the macro recording


  3. Now, lets edit the macro.
    Via the keyboard, press “ALT + F11”.
  4. In the “Microsoft Visual Basic for Applications” window,
    in the “Project” pane, find and open the newly created module in the “PERSONAL.XLSB” VBAProject.

  5. Replace the code with the code below
  6. Sub unhide_all_sheets()
    For Each sh In Worksheets: sh.Visible = True: Next sh
    End Sub

  7. Close the window, and confirm that the macro is available by clicking on the menu options
    View > Macros


  8. To add this macro as a button in the excel ribbon, click on the “Customize Quick Access Toolbar” button at the top of excel, and then click on the “More Commands” option
  9. Add the macro to the toolbar
    1. In the “Choose commands from” change the dropdown to show “Macros”
    2. Click on the “PERSONAL.XLSB!unhide_all_sheets” macro
    3. Click on “Add” to add this macro onto the right-side window
    4. Optionally click on the “Modify” button to change the icon for the macro, and then click OK to save changes
  10. Test the button by creating and hiding new excel sheets in the same workbook to show that the hidden sheets are unhidden.

Wednesday, 18 September 2019

Youtube Keyboard Shortcuts

Youtube keyboard shortcuts are shown in the table below.

These are copied from the page:
https://sites.google.com/a/umich.edu/u-m-google-170816/accessibility/google-keyboard-shortcuts---youtube




Action Shortcut
Toggle play/pause the video
k or Spacebar
Go back 5 seconds
Left arrow
Go back 10 seconds
j
Go forward 5 seconds
Right arrow
Go forward 10 seconds
l
Skip to a particular section of the video (e.g., 5 goes to the video midpoint)
Numbers 1-9 (not the keypad numbers)
Restart video
0 (not the keypad number)
Go to Full Screen mode f
Exit Full Screen mode
Escape
Go to beginning of video
Home
Go to end of video
End
Increase volume 5%
Up arrow
Decrease volume 5%
Down arrow
Increase speed
Shift+> (may not work in all browsers) or Shift+. (period)
Decrease speed
Shift+< (may not work in all browsers) or Shift+, (comma)
Move forward 1 frame when video is paused . (period)
Move backward 1 frame when video is paused , (comma)
Mute/unmute video m
Turn captions on/off c
Cycle through options for caption background color b
Move to the previous video in a playlist Shift+p
Move to the next video in a playlist Shift+n

How to record VOICEOVER AUDIO for gameplay notes

Notes of FXhome's "How to record VOICEOVER AUDIO for gameplay"
https://www.youtube.com/watch?v=iMS4xzd_-yY




Use Audacity to optimise the audio
(download from https://www.audacityteam.org/)

1) highlight section of background noise > effects > noise reduction > get noise profile
2) highlight everything (ctrl+a) > effects > noise reduction > ok
3) ctrl+a > effects > compressor
     threshold = how much of the audio will be compressed
     ratio = how much compression will be applied
4) ctrl+a > effect > limiter > -0.1 dB
5) file > export > export as wave
6) use the exported WAV file in HITFILM Express, or other video editor

Wednesday, 11 September 2019

Talend Component crib sheet

Here’s a handy reference table for the common Talend components.

Use this document as a reference to understand what types of flows act as input and output.
InputComponentComponent DescriptionOutput
· Row.Iterate
· Trigger
clip_image001tPostgressqlConnection· Trigger
· Row.Mainclip_image002tMap
map input to output columns
derive columns
perform transformations


· Row.Main
· Row.Mainclip_image003tLogRow
used as data viewer and debugging
print input data in the Run window

· Row.Main
· Trigger
· Row.Mainclip_image004tPostgresqlOutput
used to insert input data into the database
· Row.Main
· Trigger
· Row.Iterate
· Trigger
clip_image005tFileList
This outputs an iterative list of files read from a location.
The input can be from a trigger or from another row.iterate.

· Row.Main
· Trigger
· Row.Iterate
· Trigger
clip_image006tFileInputDelimited
reads data into the job so that the field attributes / schema can be further transformed
· Row.Main
· Row.Iterate
· Trigger

· Row.Iterate
· Trigger
clip_image007tFileInputJSON
reads data from a location.
presents this data / schema to the job for further transformations.

· Row.Main
· Row.Iterate
· Trigger

· Row.Mainclip_image008tFileOutputDelimited
used to write data to a file in a specified location
· Row.Main
· Trigger
· Row.Iterate
· Row.Main
· Trigger

clip_image009tJava
used to run arbitrary java code, to help with bespoke transformations.
can be used to set values to context variables, or to print messages back to the run window to help debugging the job.

· Row.Main
· Row.Iterate
· Trigger

· Row.Iterate
· Row.Main
clip_image010tExtractJSONField
used to split key:value pair data from a field / string
· Row.Main
· Row.Iterate
· Trigger

· Row.Iterateclip_image011tIterateToFlow
converts row.iterate to a row.main
· Row.Main
· Trigger
· Row.Mainclip_image012tFlowToIterate
converts row.main to a row.iterate
· Row.Iterate
· Trigger
· Row.Iterate
· Trigger
clip_image013tS3Connection
creates a connection to AWS S3
· Trigger
· Row.Iterate
· Trigger
clip_image014tS3List
used to list the objects in S3 bucket
outputs this list for iteration

· Row.Iterate
· Trigger
· Row.Iterate
· Trigger
clip_image015tS3Get
used to download the objects from s3 to a location
· Trigger
· Row.Iterate
· Trigger
clip_image016tHashOutput
used to load row.main data flow into local cache
· Row.Iterate
· Row.Main
· Trigger

· Row.Mainclip_image017tHashInput
used to retrieve data from local cache for further transformation within the job
· Row.Main
· Trigger

AWS Redshift notes

SQL Clients


Script resources