Tag Archives: google

Google forms and regular expressions for response validation

I was kind of shocked with the proliferation of teachers now using Google Classroom to conduct classes, that the documentation for the Quiz sections of the Classwork assignments is quite insufficient (or presumes you’re an IT geek like me, and can just figure out what programming is available to you.)

The example situation is given by this Blog entry related to Google Classroom and students’ answers being marked Incorrect because on Short Text responses, every answer is matched as a “literal” string – that is, upper and lowercase letters MATTER (a lot!)

Link to:
Student’s answers were marked wrongly in a short answer quiz by Google Forms.

https://support.google.com/edu/classroom/thread/39155344

The odd thing is while Google provided a solution for simple e-mail address validation, and various numerical responses, it’s been horrible at dealing with text answers.

The answer is in the 3rd category of Response Validation: Regular Expressions. RegEx’s are commonly used in programming languages and OS shells (like Linux, Unix, HPUX, etc.) since when scripting various commands, we often need to parse parameters and do things with various input like file directory listings, and long lists of things separated by some arbitrary character (like a comma or a vertical bar character.)

Thus here in my example, dealing with a student who was marked with Incorrect answers simply because they didn’t provide the exact case required by the 3 answer versions entered by the instructor (e.g. “Any Dog”, “any dog”, “ANY DOG”) – and the student typed “Any dog” and got it marked Incorrect.

One more typical way to prevent this is specifying in the Quiz preamble the exact format responses you want as an instructor for the short answers. For example, “Please enter all short answers in lowercase letters only, with no leading or trailing space or tab characters.”

But a more practical way is exercising that Regular Expression engine that’s built into Google Forms.

My example question wanting a response from the student like “inner core” (preferably providing a graphic picture of the planet’s layers and just labeling them A/B/C/D/E would have been simpler, but maybe I’m testing vocabulary at this point.)

Selecting the Response Validation type “Regular expression” and using “Matches” the pattern: “^[A-Z]” is interepreted as meaning, “if the Short answer text contains any uppercase letters from A to Z” then display the warning text “Please use all lowercase answers only!” – and do not accept the answer, as submitted.

Regular Expressions can get really complicated, but if you think of them as basically describing what’s in a string of text and matching it as either TRUE or FALSE (and preferably keeping your Answer expectations limited unless you happen to be teaching a course in OS-level scripting, in which case, go ahead and get as complicated as you’d like…) I think you’ll find your student’s will be gently guided into providing the answers in the form you were thinking of when you prepared the Quiz.

And isn’t that what this was all about in the first place?

Here’s a link to a more thorough (and lengthy, and complicated) discussion of the power of Google Forms using Regular Expressions:

Advertisement

SFO Airport Free WiFi and an Android Samsung S4

image

So you might have found it annoying
that your fuzzy new Android phone/tablet doesn’t like to connect to WiFi in certain places with the terms and conditions to accept before allowing you to connect.
For me and my Samsung S4 Mini, it turned out to be a minor issue with Chrome’s pop up blocking.

image

After getting the usual error page like this: [SSL CONNECTION ERROR]
image

or this [WEB PAGE NOT AVAILABLE]
image

I opened another window and happened to be on the flysfo.com

image

website going through the Samsung instructions when I noticed the page suddenly changed and up popped the Accept Terms and Conditions page.
Accepted it and off I went on SFO Free WiFi (yea.)
You’ll also notice the screenshot shows the gateway address for their portal service: http://216.9.98.194/guest
– hitting that link may have helped, too.

Collaborate 2014 Networking Opportunity Events

Where I can keep track of the special events (note: these are not “parties” as so many people are misled to believe) at Collaborate (April 7-11, 2014 – Las Vegas, Nevada).

To attend one of these events:

  1. You’re registered as an Collaborate Attendee.
  2. You’re either a prospect, customer, or goodwill contact for the host.
  3. You visit the host’s booth at Collaborate in order to pick up whatever is required for entry.
  4. Do not just show up at the event and attempt to “crash” it – just spend your time at a regular #C14LV reception the same evening and you’ll still get plenty of party time.
Feel free to post your own additions in the comments. 

Starbucks Does Not Use Two-Phase Commit

Something from geek history blog-wise: http://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html

Since it came up this week while discussing Database 12c:

“All of these strategies are different than a two-phase commit that relies on separate prepare and execute steps. In the Starbucks example, a two-phase commit would equate to waiting at the cashier with the receipt and the money on the table until the drink is finished. Then, the drink would be added to the mix. Finally the money, receipt and drink would change hands in one swoop. Neither the cashier nor the customer would be able to leave until the “transaction” is completed. Using such a two-phase-commit approach would certainly kill Starbucks’ business because the number of customers they can serve within a certain time interval would decrease dramatically. This is a good reminder that a two-phase-commit can make life a lot simpler but it can also hurt the free flow of messages (and therefore the scalability) because it has to maintain stateful transaction resources across the flow of multiple, asynchronous actions.”

Gregor is a software architect with Google. He is a frequent speaker on asynchronous messaging and service-oriented architectures and co-authored Enterprise Integration Patterns (Addison-Wesley). His mission is to make integration and distributed system development easier by harvesting common patterns and best practices from many different technologies.
www.eaipatterns.com

Collaborate 2013 Networking Opportunity Events

Where I can keep track of the special events (note: these are not “parties” as so many people are misled to believe) at Collaborate (April 7-11, 2013 – Denver, Colorado):

  • IOUG Volunteers Event, Saturday 6:30p-8:30p, Wynkoop Brewery
  • IOUG 20th Anniversary Welcome, 5:00p-7:00p MHB Foyer
  • Keste Cust. Appr, Sunday 5:30-7:30p, Green Russell
  • Oracle ACE Dinner, Sunday 7p-9p, <tbd>
  • PiTTS/ECS/OraPlayer Forms Recp, Tuesday 5-8:00p, Exhibit Hall D
  • DSI/CSS Cust.Appr, Tuesday, 7:30-10:30p, Biscuits & Blues
  • Rimini Street Cust. Appr, Tuesday, 7:00-9:30p, Ocean Prime
  • Fishbowl Cust. Appr, Tuesday, 7:00-9:00p, Peaks Lounge
  • Noetix Cust. Appr, Tuesday, 7:00-9:00p, Marlowe’s
  • Collab13 Urban Revival Party, Wed 7:30-10:30p, Exh Hall D
Feel free to post your own additions in the comments. 

A little Klout produces a bunch of Tea (samples)

https://i0.wp.com/kcdn3.klout.com/static/images/header-logo.png

Klout is a Twitter sub-system designed to gather statistics about “reach” or basically how big of a network does your individual tweets, Facebook comments, and Google+ streams add up to, if combined.

Interestingly enough, a couple of days ago I received a puffy envelope in the mail

10-packs of Lipton Instant Tea & Honey, and a Notecard from Klout

with the following contents: 10-packs of Lipton Instant Tea & Honey (Mango Pineapple flavored) with coupons and a little notecard that reads:

Dear Influencer –

A little bird told me you’ve got a ton of Klout! Your audience trusts you to create great content, and you tell it like it is. Your influence has earned you this Klout Perk! Enjoy and let us know if you have any feedback.

Thanks,

Joe Fernandez, Founder & CEO and the Klout team

At 5 calories per 8 ozs. mixed beverage, it’s light, but a lot sweeter than I care for

Yamaha A-series Acoustic Guitar from Facebook Contest 2011

– so I use them at 1/3 concentration (1 packet per 24 ozs. water). But the ingredients are natural-ish, and every so often being on the Internet leads to quite surprising rewards (e.g. I won an A-series Yamaha acoustic guitar on a Facebook contest last year, which was a first for me.)

Stopping Cell SMS Text Spam (7726)

Cellular phone carriers seem to be a little imbalanced when it comes to marketing.  They over-indulge us with offers to switch, get better phones, go faster, be more hip and stylish.

But when it comes to something actually useful, you have to learn about it by Google‘ing it?

Register your received Spam SMS text messages that get sent to your phone with your local carrier by forwarding it to 7726 (SPAM, if you actually had letters on your phone number buttons)

Because of how SMS was implemented, it’s near impossible to block a specific Spam sender, but at least you can help raise visibility of where they are coming from (even though, the source addresses are probably being spoofed, as well.)

2012-April Shinnyo-en Buddhism Monthly Focus Podcast

2012-April Shinnyo-en Buddhism Monthly Focus Podcast
Five Behavioral Ideals for 2012 (+3 bonus ones)
Month of Rebirth and Departure from Suffering

Shinnyo-en Monthly Focus Podcast 2012-April 

Subscribe to Shinnyo-en Podcasts (RSS) or in iTunes or via Flipboard

In this month of April, 2012, also the centennial year of our dharma mother, Shojushin’in-sama, we are reminded that one of her most treasured ways of communicating the Teaching to us was through her kitchen sermons, outlined in-detail within her two Wisteria Cluster books.

There were a total of seventeen such ideals she created, to remind each of us in a simple way how to remain solid on your path towards enlightenment.

On the sange petal papers being issued during several key services throughout this year will be the following five ideals from those seventeen teachings:

Be gentle, yet strong.

Be a person whom others miss.

Do not fight.

Treat people with respect.

And Always smile when meeting people.

Her Holiness Keishu-sama has also provided two rephrased versions of the ideals to be better interpreted in our modern eenvironment.

They are:
To Bring out your true self – referring to the buddha nature that lies within each of us, and encouraging you to express this goodness at every opportunity. Learning to act with kindness and wisdom and letting go of anger, jealousy and other attachments transforms your perceptions from suffering into appreciation for each opportunity to adapt and improve yourself, and others.

Next is, Always keep in mind that you are a Shinnyo practitioner. Some situations may require calm acceptance, while others need candid and truthful advice, but both should be performed without giving into your emotions, but rather with compassion towards the other person. Sometimes we need to support others by providing silence and listening, but others may need strong leadership and for you to set the example of how to behave in a better manner.

Keishu-sama’s last reminder this month is to Avoid gossip. Period. This means stepping into the other person’s place and reminding yourself that being the subject of someone else’s gossip about you is painful and hard to understand. If you have opinions of others, think of how you would want to be approached by someone else thinking the same of you. How would you want to be informed of something confusing or questionable that others saw? Hopefully you would prefer someone confiding directly to you, and using kind words or supportive thoughts and suggestions.

April, the month of Buddha‘s birth, is known affectionately as the month of rebirth, and departure from suffering. Each of these ideals is meant to give you a way to measure your own progress along the way through life. And hopefully as you hold yourself to higher ideals, others will be inspired by your efforts to polish your own actions and behavior.

Tuesday’s Here! It’s Geeks! The Podcast! (MP3 – 1 minute)

Geeks! The Podcast!

It’s stereo-rific!

www.geeksthemusical.com

(note to self: getting an MP3 on a WordPress blog is easier to do it as a Google Site page attachment than a Google Doc requiring 3 fewer clicks)

Ever Wonder Why Web Ads Seem to be Following You?

http://www.aboutads.info/choices/#optout-all

Google search technology is using cookies to determine what you search for the most, and then passing that on to lots of advertising companies to further target you with what you seem to be visiting.

Visit here (when signed in to Google or GMail) and see what you’ve signed up for: http://www.google.com/settings/ads/onweb

And finally, if you’re on Chrome, you may want to add this little plug-in, just to keep cleaning out those piled up cookies that are getting stored even though you through you just opted-out of all that Advertising shadowing:

Keep My Opt-Outs plugin

I was wondering why visiting a Sur La Table site, rather mysteriously resulted in my next visit to AOL Mail to display a bunch of Sur La Table sales items in all the banner and side-bar ads, which were usually much more random.

Then a few days later, visiting some digital virtual musical instrument vendors, resulted in both my Yahoo Mail and GMail banners changing into ads for various sequencer software and more music packages.

Neat, huh?

All things web privacy and personal information related aside, is it weirder to have your ISP block your content (like in some asian countries), or instead silently log all of it and later use it to poke junk mail advertisements into your web world surreptitiously?

Read a little more at Huffington Post‘s article: http://www.huffingtonpost.com/2012/01/27/google-ap-preference_n_1237054.html

p.s. That last URL actually looked like this before I truncated off a few more cookie tracking elements:

http://www.huffingtonpost.com/2012/01/27/google-ap-preference_n_1237054.html?<10-digit session ID to trackback> &ncid=<sourcecode information so we know where you found the embedded link>

Tweet from: @leight0nn

From: @leight0nn
Sent: Jan 26, 2012 3:54p

A Tour of Btrfs – I Can’t Believe This is Butter!: http://t.co/qECgXori

A Copy on Write FileSystem (fault tolerance) for Linux, courtesy of @Oracle for GNU!

Moving off of Microsoft Office Live Small Business (Website Hosting)

Microsoft is one of those “Great relationship while it lasted” kind of things. Missed in one of my live.com honeypot e-mail Inboxes was a missive about “At Microsoft we love you …but we’re discontinuing Office Live Small Business starting February 2012.

Read more on this OLSB blog while it’s still up: http://small-business.web.officelive.com/default.aspx#O365replaceOLSB Image

Anyway, so I went about figuring out how to move this massively IIS-oriented site which leveraged tons of pre-built widgets in OLSB:

To somewhere else: https://sites.google.com/site/jhlui12/

Image

Open the OLSB website in a browser. Save each page using File -> Save… [Webpage, complete]
This creates a copy of the base page, with a folder containing all of the images and CSS sheets in-use. (e.g. default.aspx.htm and [default.aspx_files])

Fix the References:
Using Firefox was more successful and IE8/9, which complained about being unable to save everything properly.

Open the HTML file (e.g. default.aspx.htm) in a text editor:
Search for jameslui.org -> replace with “.” (make current domain dynamic)
Search for .aspx” -> .aspx.htm” (change to HTML file reference)
Search for %_files/ -> images/ (migrated all *_files directories to a single images/ folder for ease of transport)

Needed to freeze the header as a banner.jpg for the time being until figuring out how to code the header.

Easiest so far seems to be to open the html version in another browser.

Set the new page layout to be sort of close to the original (Layout -> 1/2/3-column w/Left or Right sidebars).

Copy/paste from the html version frames to the new frame in Google Sites. Some images come over, but usually need to be re-uploaded into Google sites to get the references correct.

Forms are registered as data entry forms in Google Docs Spreadsheet Forms (which are spreadsheets with a single-row data entry page); Once re-created as a Spreadsheet Form, you can use Insert Spreadsheet Form to place it into the website.

Change Site Layout:

Horizontal navigation (checked) – have to add each page to go across the menu individually.

Sidebar (unchecked) – gets rid of the menu on the side.

Couldn’t really embed a WAV audio file. Can upload to Google Docs and create a Share link for it. Or attach files as Attachments to the page.

Sub-Tab/Sub-Menus
Layout Left-Sidebar to insert a Sub-page navigator that floats correctly.
Used 100 pixel width; no Title <leave blank>; Appearance: Traditional TOC

Fast text reformat – place “–” delimiters in proper paragraph break places. Replace ^p with <space>, Replace “–” with ^p^p, Replace ^p<space> with ^p

Forms are semi-editable. To Change Field Order, Open the Spreadsheet (SS), Open the Form Edit Window (but don’t close either one).
Return to the SS, Form -> Delete, Return to the Form Editor, change something, Save, the SS version should update accordingly and re-connect itself. Cannot do much about spacing or field width so far.

The Google Sites editor isn’t exactly WYSIWYG – getting those widgets and images to stay put where you want them can be a little daunting unless you crack open the raw HTML and disconnect the Themes and Templates from the site. But keep playing with Left/Right/Center Justification on an object, usually with Wrap ON and it will flow better.

One strength of Google Sites is that it is pre-built for designing Mobile-compatible sites. So the emphasis is NOT on making everything 800×600 pixel formatted automatically anymore. You should be able to re-size the browser and still be able to read the page regardless of browser window size. That’s a Mobile-ready configuration.

One page/sub-page at a time, some easier than others, and eventually it’s done!  Have patience!

Another example, here’s the migrated version of the Southwest Regional Oracle Applications Users Group (SROAUG) site:

http://www.sroaug.org

versus the OLSB version:

http://southwestregionaloracleapplicationsusergroup.tech.officelive.com