Wednesday, May 27, 2015
The Secret Sabbatical
With extensive use of examples from the humanities, the book discusses the "loss of imagination" that is currently rampant in most organizations... and more people's lives.
From the website:
"This is the Book with the secrets of The Secret Sabbatical. Up to now this material was only available in one-on-one Course sessions for those asking “What Should I Do With the Rest of my Life?”
Developed over 10 years the Course has been fine-tuned for executives, surgeons, architects, research scientists and other professionals. Now you can read the notes from that Course, which are arranged in a clear sequence that covers how to find your own answer in the needed depth."
Wednesday, April 22, 2015
5 Tips to Make SharePoint Easier for Non-SharePoint People
#1 Simplify Versioning
A quick and easy way to help your users avoid pitfalls is to simplify the version settings for their document libraries. You may have some complicated process in mind that requires specific settings, but if that process is confusing your users, you should consider simplifying the version options. For example, if you don't need versioning, just turn it off completely. If you don't need minor versions, turn them off. People new to SharePoint usually don't know that there minor versions are only visible to them by default.One easy way to prevent conflicting changes is to enforce check out before documents are edited. This is a simple radio button in the version settings.
You would use this if you’re worried about your users making conflicting edits. Requiring that they check out documents before editing will eliminate the problem of conflicting changes, but you’ll need to educate them on checking in the docs when they’re done.
To add the column, go to the doc lib's settings page and find the "Columns" section. From there, choose the "Add from existing site columns" link and then select the "Checked Out To" column from the list.
#2 Add the “checked out to” Column
Since I just mentioned enforcing check-out before editing, the next tip has to be one of my favourites—adding the “Checked Out To” column to the default view. This simple change can make life so much easier for people new to SharePoint.
If you add this column to the default view, it's obvious to everyone which documents are checked out and who has them checked out.
#3 Show draft documents by default
Another option that is related to simplifying versioning is to show draft documents by default. This way you can allow people to see draft documents before they have been checked in. If a user sees a draft, he or she can talk to the person working on the document before making changes that would potentially conflict with the existing draft.
This saves lots of hassle because it's common for users to forget to check in new docs, or simply not understand why it has to be done before other people can see that a file has been added.
#4 Keep the permission model simple and manageable
#5 Show your users how to sync their document libraries to their local folders
Note: You may need to install the install the SharePoint 2013 OneDrive Pro client to get this to work.Many users feel more comfortable working in the Windows file system. They can do this with their SharePoint document libraries by choosing the "Sync" options or the "Open with Explorer" link. Once you have the SharePoint library syncing to a local folder, you can easily do things like paste files into the doc lib to upload them to SharePoint.
#6 Bonus Tip For Admins and Power Users
If you go to the library settings, you can use the "Managed checked out files" option to see all the checked out files and from there, you can even take ownership of them by choosing the "Take Ownership of Selection" option.This is great when a document isn't showing because it only has a draft version and you're not sure who has it checked out.
Tuesday, March 31, 2015
RabbitTxt Text Messages is My First App
I’ve been working with a friend of mine on a simple iOS app called RabbitTxt—you can grab it for free right now from the Apple iOS App Store. The idea is to enable quick, one handed, pre-canned text messages to people or groups. Basically, tap, tap, send. Or if you’re sending the same thing to the same person, just… tap.
The app will remember the last person (or group) you sent a message to and also which message you sent, so you don’t have to select them again.
Unfortunately, my grand idea of the fastest text/SMS messages possible ran into an iOS restriction. Once you tap “Send Text” in RabbitTxt, you’ll need to press send again when the iOS messenger app opens. Sadly, there’s nothing we can do about that. The fastest possible text message interface on iOS is… tap… tap… Shrug.
It was Pat’s idea to add the “Jazzify” feature and it’s pretty snazzy. This feature converts your text message into a flashing image. Perfect to get someone’s attention.
Thursday, February 26, 2015
Fairchild TV Interview about the Vancouver Tech Scene
I was recently interviewed by Fairchild TV (a national Chinese language station) for a segment about the Vancouver tech scene.
If you’re interested in the story, here are links to the video. Note that it’s a Cantonese language station.
(You can download the video if you find it's playing too slowly on the site.)
Part 1:
http://www.fairchildtv.com/newsarchive_detail.php?n=27&topic=375&episode=690
Part 2:
http://www.fairchildtv.com/newsarchive_detail.php?n=27&topic=375&episode=691
Friday, January 23, 2015
Interview for Elements Academy of Martial Arts
Update: Some of their posts have been removed during spring cleaning I assume.
Monday, December 08, 2014
Chromebook 2 Feedback and Review
In general, I'm still thrilled with the machine. It's an inexpensive computer with a full laptop typing experience. The audio and video are good, the battery life and charge times are fantastic, and so much is available via web apps these days that I can almost use it for everything. I also like that the operating system is simpler than a traditional desktop O/S. For all the reasons I mentioned in my previous post (Why I Just Bought a Chromebook), I think it's a fantastic device and I'm recommending it to people.
My issues pretty much stem from the fact that Chrome OS has a tiny web app store at this point. There are two ways to fix these issues, either more web apps in the Chrome Web Store or enabling Android (Google Play) apps on Chromebooks. There are rumours of Google Play capability coming to Chromebooks, but I'm not optimistic that will happen on my Chromebook 2. However, I sincerely hope my pessimism is poorly placed.
Here are the main issues I've encountered:
1. GoToMeeting doesn't work (even the web version only allows you to listen--you can't share your video or talk). This is a deal breaker for using my Chromebook as my only computer. Whether it's GoToMeeting or WebEx, I have to be able to participate in meeting using the technology that my employer and customers are using. Yes, Google Hangouts and Sqwiggle work--that's great--but it doesn't solve the problem. (As I pointed out in my last post, I'm not trying to replace my phone with my laptop and I can actually use WebEx or GoToMeeting on my phone, so that mitigates this problem.)
2. Skype doesn't work. This isn't a work problem for me, so I'm putting it in a different point. I use Skype with family, so I want it on my laptop. (Again, I can use this on my phone.)
3. Torrent files. I'm working on this one, but I have yet to find a good solution for downloading files via torrents. There are apps in the Chrome Web Store, but I tried one and it just didn't work. I'll have to try another. There's one that costs a few dollars--I might have to resort to actually paying for an app.
4. Heat. I'm not actually using a thermometer, but the Chromebook feels hot to me when I'm using it on my lap. By comparison, my wife's MacBook Air doesn't seem to get as warm, but my old Acer laptop is actually hotter than the Chromebook.
5. Google Cloud Print. I was pleased to learn about the Google Cloud Print option. It allows me to print to a printer connected to another machine (because you can't install print drivers on Chrome OS). However, it simply doesn't work very well. My printer isn't that old (it's wireless), but printing with Google Cloud Print results in such bad results that it's almost useless. For example, it's common for my documents to print with the last few characters of every line cut off.
6. SD Card. This is a minor annoyance, but every time I open my Chromebook, I'm told to safely remove my SD card--not on reboot mind you, but literally every time I login. I don't want to remove the card and I shouldn't get that error all the time. I just ignore it, but I'm not the only one seeing this issue and I hope it gets resolved in an update.
Saturday, November 08, 2014
Why I Just Bought a Chromebook
But before I get to that, I think it’s important to mention that I took my time with this decision. What else did I consider? I weighed the pros and cons of many different options: MacBook Air, MacBook Pro, Windows laptop, Ubuntu laptop, Microsoft Surface, Windows tablet, Android tablet, and iPad. We already have a MacBook Air, Windows desktop and iPad in the house, so that also played into my decision.
1. Affordability -- Chromebooks are remarkably affordable. Unlike a MacBook Air, or a Surface 3, they're cheap. I bought my new Toshiba CB35-B3340 Chromebook 2 for $329.99. That's about a third of what I would have paid for the others. Even if it turns out that I don't like the Chromebook, I've made a small investment to find that out.
2. Getting my work done -- I don't care about brands very much and I'm not a zealot when it comes to technology. I just want to get my work done and spend more time with my wife and daughter. If I can do everything I need to do on the Chromebook, I'm happy. These days, I spend most of my time either in email and Word documents. I can use web versions of Outlook, Gmail and Word to do all that. If I need something else, I can remote into my Windows Server at home or my Windows desktop at work, or just use my Wife's MacBook Air. An obvious example is Visual Studio for coding. However, these is a web version that I can try even for that. I'm very curious what the dev experience will be like on a Chromebook.
3. I’m not replacing my phone -- While it's true the Chrome App Store doesn't offer the millions of apps in the iOS Store, or the Google Play store, or even the Windows App Store, that's not what I need in a laptop. I have my phone with me at all times and I don't need to send text messages or play Flappy Bird on my laptop. (BTW -- Angry birds is in the Chrome App Store)
4. ‘Traditional’ operating systems are too much work -- I was already thinking this way, but a few weeks ago, I picked up a Windows 8 tablet I use at work and found that it was running Windows Update. I just wanted to write a note in OneNote, and I couldn't because the operating system is huge and powerful and therefore takes time to update. This is just one example of the ways that large traditional operating systems (Windows, MacOS, Linux) are just too much work for my use case (see "Getting my work done" above). Chrome O/S is simple and I like the sound of that.
Update: Now that I have my Chromebook (I'm writing this update on it), I can say that I'm impressed. I ran into a minor issue during set up (Chromebook setup freezes at Determining Device Configuarion) but restarting was enough to quickly resolve the issue. Since then I haven't hit any hurdles and I'm really enjoying the experience.
Thursday, October 30, 2014
Chromebook setup freezes at "Determining Device Configuration"
Tuesday, September 30, 2014
Leaving the Microsoft MVP Program
In a few days, my time as a Microsoft Most Valuable Professional (MVP) will come to a close. Sad, yes I know… OK, not really so much sad as the natural evolution of things. I first received the MVP award a mere four days before my daughter was born. Even back then, I knew that I would have to eventually bow out of the program. Of course, there are people in the program who successfully juggle their job, home life, and somehow still manage to be excellent MVPs, but I don’t feel I’m one of them, so I’ve asked not to be renewed this year.
The MVP program is excellent and I’ve enjoyed being a part of it. Most of all, I’ll miss going to the MVP Summit and hanging out with the other MVPs. There are other benefits of course—access to early information, free software—but those don’t match the amount of effort it takes to get the award. As I describe in the post mentioned below, you really have to doing community work because you love doing community work—otherwise the time investment just doesn’t make sense.
I already sent the obligatory “so long and thanks for all the fish” message to my fellow MVPs. I wish you all well and keep up the excellent work!
BTW -- If you don’t know what the Microsoft MVP award is, here’s some content from a post I wrote called How do I Become a Microsoft MVP?
First of all, if there is only one thing to remember about the MVP award, it’s this: the Microsoft Most Valuable Professional (MVP) award isn’t a certification. There are no set criteria or steps that someone can take to become an MVP. As the name implies, it’s an award.
“This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in SharePoint Services technical communities during the past year.”
- Microsoft
In practical terms, this means helping with community-focused resources such as contributing to newsgroups, speaking at conferences, writing/blogging about your subject (e.g., SharePoint) and contributing code to CodePlex (an open source site).
Wednesday, August 27, 2014
My ALS Ice Bucket Challenge Video
Here is my ALS Ice Bucket Challenge video. I was challenged by my good friend and advocate for ALS fundraising efforts, Rasool Rayani.
You can contribute online to the Walk for ALS (ALS society of BC).
"Also known as Lou Gehrig's disease, amyotrophic lateral sclerosis is a progressive neurodegenerative disease that affects nerve cells in the brain and the spinal cord. There is no cure and only one medicine to slow its progress has been approved."
http://www.cbc.ca/news/business/ice-bucket-challenge-brings-millions-of-dollars-to-battle-als-1.2739663
Thursday, July 10, 2014
MVPs and the Evolution of Windows
I’ve been mentioned on the Microsoft MVP Award Program blog. The post is about MVPs and the evolution of Windows.
From the article:
For more than two decades, MVPs have been on the forefront of helping people around the world make the most of their Microsoft technologies, including its centerpiece, the Windows operating system, from Windows 3.1 to Windows 8.1 and all the releases in between. Today, with Microsoft’s new rapid release cadence, their expertise is more important than ever…
In Canada, five MVPs produced guidance for the Windows XP End of Life campaign. Here are some highlights:
Brian Bourne | Windows XP End Of Support – Mitigating the Security Concerns
Yannick Plavonil | Chères entreprises, réveillez-vous Windows XP c’est fini dans un mois!
Sean Wallbridge | I Love My Surface Pro 2 and Windows 8.1
Colin Smith | XP End of Support – Do You Need New Hardware?
Stephen Cawood | Windows XP End of Life Is Coming
Turn off Image or Video Prompt in Snagit 12
If you haven’t tried Snagit, you should check it out. It’s much better than relying on the old school screen capture mechanisms. When I was taking screenshots for my books, Snagit saved me a great deal of time. As just one example, try capturing an open dropdown menu using just Windows screen capture shortcuts—it’s like trying to catch a greased pig.
I just upgraded to Snagit 12 and found that every time I take an image capture, I’m prompted to select either a video or image capture (see the big blue buttons in the screenshot below). I rarely use the video capture, so this is a waste of time. Here’s how to turn it off.
First, check if you’ve got an old version of Snagit installed. I had 11 and 12 installed and was not getting the behaviour I wanted. I had to uninstall Snagit 11 to get rid of the old editor.
Next, go to the preferences window and check the hotkey associated with the default capture profile. I like to use print screen, so I’m going to change the “Global capture” shortcut key to something else. To get to the preferences window, you can right-click the icon in the task menu (bottom right corner of your screen with the hidden icons), then choose Preferences and the Hotkeys tab.
After I’ve freed up the right shortcut key, I’m going to associate that key (PrtScn) with a profile that doesn’t ask if I want to take video.
To do this, choose the “Send to Clipboard” profile from the Manage Profiles dialog, and then click the Hotkey button at the bottom to associate this with the keyboard shortcut you’d like to use. Note that I wanted to go directly to the Snagit editor, so I have that enabled.
Now I’m back to the lightning fast capture that I’ve come to love. When I use the hotkey, I go straight to the Snagit editor. If I wanted, I could add styles (such as borders) as part of the profile and they would be automatically applied.
p.s., If you’re wondering how I captured the Snagit windows. I cheated. I used Alt+PrtScn to do it old school.
Wednesday, June 18, 2014
Aquatic Informatics Blog Post: AQUARIUS: Where Smart Water Data Meets the SMART Tunnel
Check out my first blog post on the Aquatic Informatics blog: AQUARIUS: Where Smart Water Data Meets the SMART Tunnel
In this post, I discuss the engineering feat that is the SMART (Stormwater Management and Road Tunnel) Tunnel. It stretches 9.7 km beneath Malaysia’s capital and function both as a roadway as a storm drainage system.
- Image Courtesy: ENTURA, Hydro Tasmania
From the post:
The “Stormwater Management And Road Tunnel” (SMART Tunnel), has been featured in many news stories and television shows such as Extreme Engineering on the Discovery Channel, Build It Bigger on the Science Channel, Megastructures on the National Geographic Channel, and Man Made Marvels on the Science Channel. The reason the Kuala Lumpur tunnel is so amazing starts with its length: it is the second longest storm drainage tunnel in Asia at 9.7 km (6.0 mi). The truly amazing aspect of the SMART tunnel is that it’s the first dual-use storm drainage and road structure in the world. The tunnel is mainly used to ease traffic congestion in Kuala Lumpur, but there is a storm drainage system under the two decks of cars. Essentially, the tunnel acts as a reservoir to decrease the peak of water flows of the Klang river and therefore mitigate the severity of floods. However, that’s not all. In the event of a bad flood, the road decks can also be used to drain the storm water away from the city. That’s right. The car levels can be completely filled with water as well!
Update: It was recently announced that a similar tunnel project is planned for Jakarta:
Jakarta Announces Plan for Integrated Tunnels to Manage Traffic and Floods
Thursday, May 29, 2014
Windows XP End of Life Update: Win a Microsoft Gift Card for Commenting on This Post
Leave a comment below and let me know what you think is the single most important reason to upgrade from Windows XP, or your favourite new feature of Windows 8.1 and you will be entered to a random draw for a $100 Microsoft Store Gift Card. Winners will be selected on July 15th.
Wednesday, April 09, 2014
Add Wikipedia App to Microsoft Word 2013
Office 2013 and SharePoint apps are great, but I have to admit that I haven’t done much with them yet. Today, I found myself wondering what I’d have to do to get Wikipedia to open when I right-clicked on a word or phrase in Word 2013.
To add Wikipedia, all I had to do was choose Insert from the Ribbon menu at the top of the screen and then click the Wikipedia icon. If you click “My Apps,” you can navigate to the Office 2013 app store and check out what other interesting apps are available.
Once you click the icon, you’ll need to confirm that you trust this new app.
After you’ve trusted the app, you can now quickly look up words or phrases from your Word documents in Wikipedia. Very cool!
Switching the app that opens by default when you choose the “Define” option is not obvious. To choose a different app, you first need to hide the Wikipedia app my clicking “My Apps” in the Ribbon and then clicking “Manage My Apps.”
For example, let’s say you wanted to use the Bing dictionary for the Define option. You can add the Bing app, then choose Manage My Apps—which opens a web page—and hide Wikipedia from that page. Once you hide an app, you should be able to click the “Refresh” button in the My Apps view and see that the app is no longer there.
After you’re done, you can unhide Wikipedia. Note that some people have reported that they had to restart Word after hiding Wikipedia.
I should mention that it’s also possible to have multiple apps running. In the screenshot below, I have both the Bing dictionary and the Wikipedia app open.
Saturday, March 22, 2014
U.N. World Water Day 2014
Today is U.N. World Water day!
My smartass Twitter comment was that I’ll spend the day reflecting on things, but seriously… water is our most precious resource and we really need to start taking care of it. Since joining Aquatic Informatics software, I’ve had much more exposure to stories of water-related issues around the world. We’re working to provide the software the world needs to make smart water policies based on actual data rather than speculation or lobbying. We need to let science decide how we can provide better access to clean drinking water and more widespread use of renewable resources for power generation.
From the U.N. Water Day Facebook page:
“Did YOU know that… by 2035, the global energy demand is projected to grow by more than one-third and demand for electricity is expected to grow by 70%.
22nd of March is World Water Day. The theme for this year is Water & Energy.
Share this picture and help us raise awareness about UN-Water World Water Day”
Wednesday, February 26, 2014
Windows XP End of Life is Coming
If you know someone still running XP, you should remind him or her in no uncertain terms that 2001 is over. On April 8th, 2014, Windows XP support will end. After that date, there will not be any updates--most notably security updates--for the O/S that should probably be called Windows Classic at this point.
One of my responsibilities at Aquatic Informatics is the supported systems matrix for our software. We had deprecated support for Windows XP a couple of releases ago, but as of our next release, we'll officially be dropping support. There's no doubt that most software companies have already done the same or will be dropping XP support in the near future. So boldly step into the present and take a look at Windows 8.1.
Update: Microsoft has generously donated a Microsoft Store Gift Card to help get the message out that it's time to upgrade.
Leave a comment on my update post and let me know what you think is the single most important reason to upgrade from Windows XP, or your favourite new feature of Windows 8.1 and you will be entered to a random draw for a $100 Microsoft Store Gift Card. Winners will be selected on July 15th.
Thursday, January 30, 2014
The Mystery of Why People Use SharePoint
Of course SharePoint isn't perfect, but if you require some features that SharePoint provides, then you should run a pilot and try it out; base your decision on your actual use cases. This quote from a white paper that I co-wrote with Colin Spence (he wrote this particular text) sums it up nicely:
“If end users already know how to use SharePoint and have received training on the key tools provided by SharePoint the organization can be more ambitious in the implementation. On the other hand if end users are completely unfamiliar with SharePoint and in general not open to change and not willing to take training, IT should carefully control the complexity of the SharePoint configuration. Projects can be seen as “failures” if a few important end users complain that the SharePoint solution is ‘too complicated,’ or ‘too time consuming.’”
It's a classic case of people believing that there is a perfect system out there and all they need to do is pick the right one. It's simply not reality.
Wednesday, December 18, 2013
Installing Ruby on Rails in Ubuntu 12.04 on Azure
In previous posts, I covered installing Ubuntu on Windows Azure, remotely accessing Linux from Windows Azure, installing LAMP and installing Git on Linux and a few other topics. The next subject I’ll be writing about is the Ruby on Rails web development platform.
There are some great resources out there for learning Ruby and Rails, and when the install goes smoothly, it’s very easy. I’m not an expert on Ruby, but the install didn’t go swimmingly for me, so I’m writing this post.
Step 1 – Install RVM and Ruby
\curl -L https://get.rvm.io | bash -s stable --ruby
Ruby Version Manager (RVM) is a great tool for working with Ruby. You can even run multiple versions of Ruby and easily switch back and forth.
Step 2 – Install Rails
Finally, you can use RubyGems to install rails:
gem install rails (may need sudo, I had to run it with both, see note below)
Note: if you see the error, “ERROR: Error installing rails: activesupport requires Ruby version >= 1.9.3.”, (or some other version) install Ruby 1.9.3 (Yes, even if you have a newer version installed) then use RVM to set the old version as the default using: rvm use ruby-1.9.3. This caused me much angst today. You can use ruby –v to see which version you’re running and rvm list to see the installed versions.
I also ran into this ugly error:
cawood@cawood:~$ rails --version
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [activesupport-4.0.2, atomic-1.1.14, bigdecimal-1.1.0, bundler-1.3.5, bundler-unload-1.0.2, executable-hooks-1.2.6, gem-wrappers-0.9.2, i18n-0.6.9, io-console-0.3, json-1.5.5, minitest-4.7.5, minitest-2.5.1, multi_json-1.8.2, rake-0.9.2.2, rdoc-3.9.5, rubygems-bundler-1.4.2, rvm-1.11.3.8, thread_safe-0.1.3, tzinfo-0.3.38] (Gem::LoadError)
from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/lib/ruby/1.9.1/rubygems.rb:1210:in `gem'
from /usr/local/bin/rails:18:in `<main>'
I had to run gem install rails (with no sudo) to get all the gems to install properly. After I did that, I could see that Rails was installed properly: cawood@cawood:~$ rails --version
Rails 4.0.2
Of course, my list of installed gems was much longer because the missing gems had been installed. It should look like this:
cawood@cawood:~$ gem list
*** LOCAL GEMS ***
actionmailer (4.0.2)
actionpack (4.0.2)
activemodel (4.0.2)
activerecord (4.0.2)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.2)
arel (4.0.1)
atomic (1.1.14)
bigdecimal (1.1.0)
builder (3.1.4)
bundler (1.3.5)
bundler-unload (1.0.2)
erubis (2.7.0)
executable-hooks (1.2.6)
gem-wrappers (0.9.2)
hike (1.2.3)
i18n (0.6.9)
io-console (0.3)
json (1.5.5)
mail (2.5.4)
mime-types (1.25.1)
minitest (4.7.5, 2.5.1)
multi_json (1.8.2)
polyglot (0.3.3)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.2)
railties (4.0.2)
rake (0.9.2.2)
rdoc (3.9.5)
rubygems-bundler (1.4.2)
rvm (1.11.3.8)
sprockets (2.10.1)
sprockets-rails (2.0.1)
thor (0.18.1)
thread_safe (0.1.3)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (0.3.38)
Alternate Method—This didn’t work for me on Ubuntu 12.04
Step 1 – Install Ruby
You can either install the standard version: sudo apt-get install ruby-full build-essential
or the minimal requirements with: sudo aptitude install ruby build-essential libopenssl-ruby ruby1.8-dev (note the version number – you’ll have to update that).
I’m going with the first option to install ruby-full.
Step 2 – Install the Ruby Version Manager
CAUTION: Normally you would just run: sudo apt-get install ruby-rvm
However, there is an issue with the Ubuntu RVM package, so you should run this instead: \curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles
If you do run into issues with RVM. For example, using rvm use doesn’t change to the version you want, you can run these commands to clean your system (see this thread).
sudo apt-get --purge remove ruby-rvm
sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.shThen, open new terminal and validate environment is clean from old RVM settings (should be no output):
env | grep rvmStep 3 – Check that You’re Using the Latest Version of Ruby
ruby –v will show you which version you’re using.
If you’re not using the one you want, you can use RVM to upgrade. This will download the source that is then used by RVM in the next step to compile and install Ruby; it is not a quick command.
sudo rvm install ruby-1.9.3-p125
or
sudo rvm install ruby-1.9.3 (Note version number)
However, if you do the second option, you may need to workaround an issue before updating. If you try to install ruby-1.9.3, you might get the error: “ERROR: The requested url does not exist: 'ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-.tar.bz2' from RVM. You can workaround this by downloading the package yourself.”
sudo curl -o /usr/share/ruby-rvm/archives/ruby-1.9.3-.tar.bz2 \http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.bz2
Check that you’re using the latest Ruby: ruby -v
If not, switch to the latest using RVM: rvm use 1.9.3
Step 4 – Install Rails
Finally, you can use RubyGems to install rails:
sudo gem install rails
Step 5 – Install a Web Server
I use Apache and MySQL, so the LAMP install works for me, but there are other options such as WEBrick or Lighttpd.
Other posts on this topic:
RubyOnRails.org getting started
Ubuntu documentation – Ruby on Rails
Thursday, December 05, 2013
Using Wyzz Web-based HTML editing control in ASP.NET MVC
From their site, “Wyzz is an ultra-small, very light WYSIWYG (What You See Is What You Get) Editor for use in your web applications. It's written in JavaScript, and is free (as in speech and as in beer) for you to use in your web applications and/or alter to your needs (see the license conditions).”
<script language="JavaScript" type="text/javascript" src="~/Home/wyzz.js"></script>
<textarea name="textEditor" id="textEditor" rows="10" cols="40">No file loaded...</textarea><br />
<script language="javascript1.2"> make_wyzz('textEditor');
</script>
<div ng-controller="EditorCtrl">
<form novalidate class="simple-form">
<button ng-click="saveFileContent()">save</button>
</form>
</div>
As you can see in the example above, I’ve chosen to use an AngularJS control to define the behaviour of the save button. In the JavaScript I define a server-side controller function (ASP.NET in this case) and I send it the content of the control by accessing the HTML element that the control is using.
$scope.saveFileContent = function () {
$http.post('/Home/SaveFileContent', { filePath: document.getElementById("multilingualfile").innerHTML, content: document.getElementById("wysiwyg" + "textEditor").contentWindow.document.body.innerHTML, title: document.getElementById("titleHtml").value })
.then(
function (response) {
alert("File Save Result: " + response.data.Result);
},
function (data) {
alert("Error saving file content");
}
);
}
Update: Here’s the basic format of the server-side part:
[HttpPost] public ActionResult SaveFileContent(string filePath, string content, string title) { try { ... return Json ( new { Result = "Success", } ); } catch (Exception ex) { ... return Json ( new { Result = "Error saving content: " + ex.ToString(), } ); } }
To customize your Wyzz controls, you can edit the wyzz.js file. If you have any issues, refer to the Wyzz discussion forum.

