Category: howto

  • gist embed

    I just noticed that you can embed gists by pasting the url to the gist into the post editor on a line of its own. This uses the shortcode module of the Jetpack plugin so you need to Active the plugin and then the shortcode module.

    this example is an applescript that creates auto-complete gifs for google searches. Not something many folk would need.


    –needs gifsicle http://www.lcdf.org/gifsicle/
    — updated for retina screen
    set thetext to text returned of (display dialog "What do you want to autocomplete?" default answer "I hate")
    set theFileName to change_case_of(thetext, "lower") & ".gif"
    set tempdir to POSIX path of (path to temporary items from user domain) & "autogifs/"
    try
    do shell script "mkdir " & tempdir
    end try
    set alphabet to {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
    set vowels to "aeiou"
    tell application "Safari"
    activate
    tell application "System Events"
    tell process "Safari"
    click menu item "New Private Window" of menu "File" of menu bar 1
    end tell
    end tell
    set bounds of window 1 to {0, 0, 800, 600}
    set the URL of the front document to "http://google.co.uk"
    delay 5
    tell application "System Events"
    keystroke thetext
    end tell
    repeat with letter in alphabet
    set typing to " " & letter
    set tfile to tempdir & letter & ".gif"
    tell application "System Events"
    keystroke typing
    delay 1
    do shell script "screencapture -t GIF " & tfile
    keystroke (ASCII character 8)
    keystroke (ASCII character 8)
    end tell
    end repeat
    end tell
    if isRetina() then
    do shell script "/usr/local/bin/gifsicle –delay 90 –colors 128 –loopcount –crop 0,200+1600×320 –resize 800×160 " & tempdir & "* > ~/Desktop/" & theFileName
    else
    do shell script "/usr/local/bin/gifsicle –delay 90 –colors 128 –loopcount —crop 0,100+800×160 " & tempdir & "* > ~/Desktop/" & theFileName
    end if
    –clean up
    do shell script "rm -rf " & tempdir
    –do shell script "open " & tempdir
    on isRetina()
    set ret to (do shell script "system_profiler SPDisplaysDataType | awk '/Retina:/{print $2}'")
    if ret is "Yes" then
    return true
    else
    return false
    end if
    end isRetina
    on change_case_of(this_text, this_case)
    if this_case is "lower" then
    set the comparison_string to "ABCDEFGHIJKLMNOPQRSTUVWXYZ "
    set the source_string to "abcdefghijklmnopqrstuvwxyz_"
    else
    set the comparison_string to "abcdefghijklmnopqrstuvwxyz"
    set the source_string to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    end if
    set the new_text to ""
    repeat with thisChar in this_text
    set x to the offset of thisChar in the comparison_string
    if x is not 0 then
    set the new_text to (the new_text & character x of the source_string) as string
    else
    set the new_text to (the new_text & thisChar) as string
    end if
    end repeat
    return the new_text
    end change_case_of

  • Scratch

    Scratch

    Glow Blogs now support the embedding of scratch, just paste in the URL to a project.

     

     

    Here is a gif showing how I added this. It is so quick you don’t see the URL I paste in.

    scratch

    Scratch is becoming more popular in Scottish classrooms all the time, now glow users can display their projects on their blogs.

     

  • Multiple image uploads on iOS

    It is now possible to upload multiple photos on iOS using Mobile Safari to Glow Blogs. I am not sure when this change happened and if it is due to upgrades to iOS/Safari or the recent WordPress upgrade on Glow Blogs.

    Here is a gallery uploaded from my iPad.

    And here is another one showing the steps taken to produce the one above.

    This slideshow requires JavaScript.

  • Embed Slideshare Example

    I used the embed code copied from slideshare:

    [slideshare id=10543066&doc=31interestingwaystouseaudioinyourclass-111210091035-phpapp01]

     

    This is a quick example of how to use the slideshare embed code. You can upload PowerPoints and other presentations to slideshare.net to share. These can then be embedded.

    To find the code to embed a slideshare slideshow:

    1. Visit the page on slideshare.
    2. Click the Share button
    3. Copy the WordPress shortcode
    4. In the post or page editor of your blog paste in the code. When the post or post is published and viewed the slideshow will be embedded like the one above.

    Screenshots:

    (more…)

  • Adding a Word Doc

    Uploading a word doc to you blog will let visitors download it.

    Example Word Doc

    word-doc

     

     

  • Flickr Video

     

    A test of flickr oEmbed, just paste the url to a flickr video into the post editor.

     

    Or usingthe Jetpack embed feature lets you set a height and /or width:
    [flickr video=19369323048 w=500 ]

     

    [flickr video=19369323048 w=480 show_info=no]

     

  • Example Gallery

    This slideshow requires JavaScript.

Report a Glow concern
Cookie policy  Privacy policy