Category: Life

Every other post.

  • Korgi

    Korgi

    I’m working on Korgi, a program that will let you create your own software using a visual approach. Instead of writing lines of code to define how your application will behave, you’ll be manipulating blocks in a flow chart.

    While what I’m working on will work on Windows, Linux, and Mac, the primary target for this software is the Raspberry Pi. The latter is a $35 computer the size of a credit card intended for the educational sector. As part of a deal with Nokia, I and about four hundred other developers will be shipped one of these in exchange for writing software using Nokia’s still-in-active-development Qt 5.0 platform.

    Because of limitations with regards to what Qt 5.0 can do on the device, it came to be that I needed to write my own widget library before I could proceed. It’s kind of like of how GIMP necessitated the creation of GTK+. If you are familiar with Qt you’ll find this a rather odd statement, but the fact is that Qt 5.0 will only present an interface on the Raspberry Pi using QML or HTML via WebKit. Neither of these were intended for traditional desktop-oriented widgets or give the kind of flexibility I’d need. So I’ve been writing my own library, which runs on top of WebKit.

    I chose HTML over QML because its behaviour is well defined and is not apt to change over the next little while, removing me from the volatility of Qt 5.0 specific features. The above diagram is the abstractions I’ve implemented in order to simplify and modularize the library. From the perspective of the coder using my library, adding buttons, line inputs, and all those things is the same as any other widget library. You define a window/form, add widgets to it, then start the event loop.

    A coder can also use the lower abstractions of my library to simplify the task of directly drawing onto the canvas, or obtaining user input (mouse/keyboard events.) I’ve taken the headache out of the matter. It isn’t as good as other specific libraries, but they are better suited for my needs.

    Once the widget library is ready, I’ll use it to design the interface for my program. Logic will be implemented in JavaScript, the back-end which will handle things one cannot do in a sandbox (namely writing to the filesystem) will be done in C++ using Qt. The web front-end and back-end will communicate using WebSockets. This also opens up the opportunity for Korgi to reside online with a Python+MySQL backend, but I digress.

    I have a few external motivators to see this project through to the end. First and foremost is the Raspberry Pi project itself. Then there’s also the fact that my only other open-source project using web technologies, Solaire, would make any JavaScript programmer weep with shame. It’s not good should any prospective employer check out my past work. Korgi rectifies the matter.

    If you want to keep tabs on the project, I have a repository set up on both BitBucket and GitHub. I’ve been using Mercurial for code revisionning and Google Chrome to debug the web portion of the code.

  • A Retrospective

    A Retrospective

    It’s interesting to look back on the last five years of my life, and see what has changed. Five years ago I was 21 and in university. I was still living with my parents; I wouldn’t move into the townhouse with two roommates for another seven months. I was selling DVDs for the On Piracy documentary, Rice Tea was in the form of this script idea for a movie called H4CK3R5, and Docks was in pre-production.

    My first con was only the summer before, where I had gone to New York City to give a talk with Jason Scott. Not long after, I went overseas for my first time to visit my sister in the UK. I paid for my tuition by being a tour guide, and later, by being the guy who drove the tour boats up and down the canal. I would also get a job working at Starbucks.

    I was single, and firmly of the belief that I was straight. I had two main interests: computer security and foreign affairs. I read everything I could on the latest exploits, attended 2600 meetings religiously, and was so proud of myself when I found a security flaw with the university website.

    I didn’t read anything of substance on the side, other than PC Gamer magazines and mangas. I had caught the book reading bug, but the heavy demands of university killed it. I wouldn’t get it again for another few years.

    Fast forward to where I am now. I graduated from university and got my first career job. I discovered I wasn’t straight. I found a wonderful man who I’ve now been with for some two years. I’ve been to a few more cons, did a few road trips including a gargantuan one, went to Argentina, France, the UK, and South Africa.

    My creative projects have shifted from film to software, with a few larger projects such as solaire and korgi. My interest in computer security still persists, but level of devotion to it has not. I took a liking to the question of LGBT rights and cooking. My love of foreign affairs continues, and I’m currently reading Dancing in the Glory of Monsters which is about one of the world’s deadliest wars in the Congo.

    Life is good. I’d like it more if I could be as productive with regards to my creative endeavours as I was in those university years, but I’m not complaining. And then there’s you guys, my friends and family. You’re as awesome now as you’ve always been. Life would be empty if it weren’t for the others that are a part of it, so I’m thankful for the wonderful times I’ve had cooking with you, going out with you, catching up with you at cons, and just shooting the shit.

    To another five years.

     

  • Book Review: So Damn Much Money by Robert Kaiser

    Book Review: So Damn Much Money by Robert Kaiser

    I just finished So Damn Much Money, the 416 page opus on the rise of money and its repercussions for American politics by Robert Kaiser. Kaiser has worked for the Post for nearly fifty years and is currently its associate editor.

    The author uses the fascinating narrative of the rise of Gerald Cassidy, a key player in the rise of contemporary lobbying in Washington. Cassidy started off as as a political aide to a Democrat with presidential aspirations before venturing off into the world of “government relations.” He spearheaded the use of earmarks to grant public funds to the specific projects of his clients. An institution paying Cassidy’s firm a monthly retainer fee could find itself the recipient of tends of millions of tax-payer dollars, the result of a government official inserting a few lines into an appropriation bill.

    Intertwined with Cassidy’s story are the events that led to the ever-increasing costs of elections, culminating into the phenomenon of politicians being in a “perpetual campaign.” As new approaches such as astroturfing, polling, television ads and the political agents that used them came into play to win votes, the price tags of campaigns rose and rose. American politicians have now come to devote a significant amount of their time to soliciting funds, especially the large amounts that special interests can provide. In exchange for the investment in their campaign, politicians offer these interests influence over the legislative process. To the political actors, it’s a means to secure the potential for additional funding. Though transactions involving the exchange of private wealth for government power were nothing new, its pervasiveness was.

    Kaiser shows, through his methodical reporting, that despite efforts to make it appear otherwise, money did buy policy. One of the more interesting cases in the book is the use of Washington lobbying firms by Taiwan to alter U.S. foreign policy to be in its favour. There is a fine line between bribery and campaign contributions, the author notes.

    With politicians in a mode of perpetual campaigning, the interests of the people took a backseat to the interests of those that would give the politicians money. If only the poor were able to afford lobbyists, Kaiser quips through a quote, something would be done to help them.

     

  • Update on the Gay-Straight Alliance ban

    Update on the Gay-Straight Alliance ban

    The saga of the ban on Gay-Straight Alliances in this province’s Catholic schools continues. However, there is much cause to be optimistic.

    This past November, the McGuinty government introduced Bill 13, also known as the “Accepting Schools Act.” Among the provisions in the bill is the following:

    Every board shall support pupils who want to establish and lead,

    (a)  activities or organizations that promote gender equity;

    (b)  activities or organizations that promote anti-racism;

    (c)  activities or organizations that promote the awareness and understanding of, and respect for, people with disabilities; or

    (d)  activities or organizations that promote the awareness and understanding of, and respect for, people of all sexual orientations and gender identities, including organizations with the name gay-straight alliance or another name.

    In other words, if this passes, Catholic boards would no longer be able to block support groups for queer students. If you want a reminder as to why Catholic representatives oppose these support groups to begin with, Teresa Pierre, director of Ontario Catholic Parent Advocates, says it best:

    [Pierre] said her group believes that Dalton McGuinty, the Premier of Ontario, wants to force Catholic schools to allow groups like gay-straight alliances that would end up promoting homosexuality as acceptable, something that goes against official Church teaching.

    Bill 13 passed second reading in December and is awaiting third reading. I’m pleased at the wording of this legislation and at the rapid evolution of the party behind it. How far the Liberal Party of Ontario has come in only a year.

    As noted earlier, the bill does face opposition. The Ottawa Sun had an op-ed piece on the matter, calling the legislation “gay rights being forced on religious schools.” Another writer, this time for the National Post, stated that in lifting the ban on the support groups would constitute a “violation of Canada’s Charter of Rights and Freedoms.” These writers are not alone in their views.

    The opponents are framing this as a question of rights, but I suspect that it’s just the most convenient explanation to justify underlying prejudice. The rights argument itself is a shaky one, as the right being claimed here is the right to marginalize children because they’re born different. I believe that such frivolous invocation of infringement of religious liberties erodes the public’s perception of real violations of religious freedoms that do take place.

    In other news, the Ontario Catholic Schools Trustees Association released their guidelines for the diversity groups they wish to have queer students join instead of the banned GSA. According to those very guidelines, however, any discussion on gender identity would be “inappropriate” to discuss in the forums and gay students would be viewed as “intrinsically disordered.” Not exactly what I’d consider support, and a reminder of why this provincial legislation is necessary.

    Update February 7th 2012: I’m not sure what to make of the interview with Education Minister Laurel Broten on TVO’s The Agenda yesterday. In the last minutes of the show, its host, Steve Paikin, asked the education minister some questions about GSAs and the “diversity groups” I derided above.

    Her responses made me question whether the government would in fact end the ban, or whether they would allow it to continue as long as these false support groups were present.

  • Joy of Cooking

    Joy of Cooking

    If you were to ask me what my hobbies are, cooking would be in there somewhere. I’ve really taken to it.

    Every weekend I’ll try to make something new. Tonight, it’s New York style cheesecake (pictured on the right.) Last week, it was perogies. The week before, linguini. I find these culinary moments therapeutic, and I particularly like learning how to make the things I enjoy most from base ingredients. There’s a little voice in the back of my head that tells me that it’s a useful skill to have should I be shipped off to the middle of nowhere.

    It’s also nice on the wallet. We had some guests over the other day. I was able to make three home-made pizzas (dough included), a fresh loaf of bread, two batches of shortbread cookies, a salad, and an apple pie. It took only a few hours to prepare, and the whole affair cost less than $20 in ingredients.

    I’m still very much a newbie. There are some incredible cooks at my workplace, and I have some very talented friends (looking at you Jeremy & Tina.) I’ll keep at it though – I can only get better, right?