Archive for the ‘annoying’ Category

A Web Based Adding Machine

Monday, December 13th, 2010

We have Perceptus’ Web Tools at the top of mind lately.  We’ve created another new tool, our minimal web based adding machine.

Have you ever had a half-hazardly formatted list of numbers to add up (maybe from an email?) and you didn’t want to do this:

  • open up Excel (or other spreadsheet program)
  • create a new file
  • paste the values
  • tidy them up so that they are  recognized  as numbers
  • create the SUM() function

Well, we have, and now we have created a tool to save us, and hopefully you, some time.

Visit our new web based adding machine tool and try pasting in a set of numbers like this:

10
-7.8
8 000
(92)
30.1

And be impressed when you get results like this:

Add Running Total
+0 0
+10 10
-7.8 2.2
+8000 8002.2
-92 7910.2
+30.1 7940.3

Impressed?  Did you notice that it handles negative numbers in (brackets) magically?  Or how about that awkward space in “8 000″?  We’re pretty proud of ourselves – even if you’re not impressed.

Comments and feedback is always appreciated!

 

Google Chrome Built-in PDF Viewer Incompatibility with IFRAME and a Workaround

Saturday, December 11th, 2010

With the recent automatic upgrade of Google Chrome to version 8, Google made their built in PDF viewer the default viewer *.  I.e. there is now no need to separately download Adobe Reader or Adobe Flash Player to browse the web with Google Chrome.

Generally, I like this addition to Google Chrome; however, it caused some work for us.  Our web based bingo card generator, print-bingo.com, is highly dependent on PDF’s.  That’s the sole reason why our bingo cards are dead-easy to print out by the hundreds.  Unfortunately, Chrome’s built-in PDF renderer does not display PDFs that are in an IFRAME tag properly.

For the last few days, this is what users of print-bingo.com would see after generating 5 pages of bingo cards on print-bingo.com:

 

Broken PDF rendering in an IFRAME in Google Chrome 8 - screenshot from print-bingo.com

Broken PDF rendering in an IFRAME in Google Chrome 8 - screenshot from print-bingo.com

Chrome tries to scale the parent page to fit everything in… and it fails badly.

We were not able to get things working 100% the way we would like, but we have a workable situation now.

The basic steps that we had to take:

  • Change from IFRAME to OBJECT tag.  For whatever reason, this fixes the zooming issue.  And it was quite simple.  In our case, there wasn’t much difference between the two HTML tags.
  • Unfortunately, we can’t find a way to get Chrome to print the contents of the object tag without printing the rest of the page (though, perhaps using CSS  might work).
  • Instead, we added some bold warning text that gives Chrome users instructions to use the manual download links. We use a little function to identify Chrome users – the two key lines of code are: 
    $u_agent = $_SERVER['HTTP_USER_AGENT']; 
    if(preg_match(‘/Chrome/i’,$u_agent)) { $ub = “Chrome”; }

So, we ended up with a workaround.  We sincerely hope that Google will add the missing interface elements that will make things just work, but until then, we are doing some other site improvements as we prepare to bump up the price of Premium Access to $12 in 2011.

* If you want to go back to using Adobe Reader in Google Chrome, you can turn off the  built-in viewer by going to the special address about:plugins and change Chrome PDF Viewer to Disable.  Of course, website owners should not depend on end-users to do this just to visit your site!

 

 

Canada.com Email is Shutting Down… it’s a good time to move to a vanity domain.

Tuesday, November 30th, 2010

I was mildly surprised when a relative mentioned to me that her free Canada.com email address was being shut down.  She’s had that email address for years – though, I know she hasn’t been using it for day-to-day email for most of that time.

For those individuals who are actively using their Canada.com email addresses still, here are a few suggestions from us at Perceptus:

  • Do NOT move to the email provided by your internet service provider.  Choose one of the major webmail providers such as Hotmail.com, Gmail.com or Yahoo.com – these services are all well run, and more importantly, they will probably be around for a long, long time.  Of these three, I recommend Google’s Gmail.com service.  I’ve written about this in a previous post: Picking an Email Address – Don’t use a Free Account from your ISP.
  • This is a great excuse to move to a vanity domain.  It’s cheap.  You can buy the rights to a .com domain for <$10 per year and have Google host the email for you.  If you have a few family members or friends, you can share a domain.  We use Google’s Apps for Domains  for all email to perceptus.ca – it’s excellent.
  • You do not have to lose your saved Canada.com email.  Read their own migration instructions here.  You can move your email to Google’s Gmail service easily.  These instructions can be adapted for all other major web email providers, and also, to download your email using POP3 to your own computer to software like Outlook or Thunderbird.
  • Remember to update all of your 3rd party logins.  eBay, PayPal.com, Amazon, everything.  You will not have an easy time getting access to your accounts once canada.com webmail goes offline.
  • Do this ASAP.  Canada.com really did a disservice to their users by providing such a small amount of notice.

I wonder if the email being shut down is related to the recent change in ownership of the site’s publisher, Postmedia Network Inc.  Seriously, couldn’t they find a way to make a buck on this by partnering with a 3rd party webmail provider and sharing ad revenue, rather than shutting it down?

Comments are encouraged.

Troubleshooting “server-manager” in SME Server

Friday, November 19th, 2010

Originally this post was going to document my troubleshooting of my login problem with the web based administrative interface of SME Server 7 after my bare (virtual) metal restore. In the end, I gave up fixing the problem, and did the upgrade via CD to SME Server 8 beta 6.  This didn’t turn out to be an easy fix, and I also had my eye on some nice benefits to upgrading to SME8, such as PHP5 and MySQL5 (finally!)

The following now serves as a review of how I think the “server-manager” interface is delivered in SME’s architecture.  It’s elegant, but complex.

The exact error was:

Forbidden
You don’t have permission to access /server-manager on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Unfortunately, I just didn’t know how to troubleshoot this error.  A lot of the problem was that SME is more complex than your normal web server do to  security precautions.

This is how I think the “server-manager” GUI is hosted:

  • You normally go to https://192.168.81.1/server-manager (or whatever your server’s local IP is)
  • The web server, “httpd”, which runs as user www and group www (which I assume has minimal permissions) then reverse proxies to a second httpd process, httpd-admin
  • The second Apache server, httpd-admin, runs on port 980, and runs as user admin and group admin.
  • The 2nd web server has it’s own configuration files.
  • The web scripts are in this folder: /etc/e-smith/web/panels/manager/
  • On a fresh install, the Linux admin user is group id 101, and the admin group is id 101 (my restored server had a different group id)

Open .pages file for Printing from Windows

Sunday, August 29th, 2010

A little while ago someone asked me for help in viewing and printing a .pages file that they had received by email.  In this case, there was no intention of editing the document, she really just needed to print it.

Here’s the deal:

- A .pages file is produced by one of the applications in Apple’s iWorks office productivity suite.
- A .pages file is actually a zip file with a few files in it.
- If you rename the file from .pages to .zip, then open the zip you will see some files and folders.
- Inside one of the folders you will find a PDF file preview (and JPEG)
- View and print this PDF.

And you’re done!

Sure, sometimes you need to edit the file, the right way to do this would be to get the sender to export the file from Apple iWorks to a format that a Windows user would be able to use, such as Rich Text Format (.rtf) or Microsoft Word (.doc).

Get used to receiving these files, Apple computers are everywhere…