Friday, December 05, 2008

Need for constitutional change

So here it is, the day after parliament has been prorogued until the end of January...

Of course, here in Alberta, home of the Conservative Party of Canada (CPC), there has been nothing but anger at the other three parties, with the vast majority supporting Harper and his party. I'd like to think that with my Political Science background that I have a more objective viewpoint than the average citizen, especially as I'm more centre left, despite having gone to the University of Calgary, where the modern ideology of the CPC was determined.

What is the most striking element is the increased regionalism because of this whole thing - mostly due to the methods that Harper used to maintain his hold on power. In invoking the words "separtists", he has isolated Quebec and alienated western Canada from the east in general and Quebec and Ontario specifically.

Personally, I view myself as Canadian. Period. I do not identify myself as a Calgarian, or an Alberta. They are places where I live, but if the right job came to me, I would move to several different regions in this country. And guess what - when I was living in Asia, Canadians identify themselves as Canadians, not "Albertans" or "Torontonians" or "Quebecois".

The fundamental failure of the current first-past-the-post system of government in Canada is that it creates regional differences due to the way power is distrubuted. Seats are distributed by attempting to evenly divide the popluation by a set number of seats. So of course Ontario and Quebec get the lion's share. It is unlikely that Alberta, B.C. or any other province will ever catch up to them and even out the distrubution. As a result, regional grievences have arisen due to unequal sharing of power (I'm ignoring the distrubution of wealth through transfer payments). Parties, such as the Bloc Quebecois and the Alliance Party rose up precisly because of the poor distrubtion of power. In the Bloc's case, it was because the Francaphone population felt isolated from English speaking Canada. The Alliance Party, on the other hand, was an attempt to push policies that a significant number of western Canadian's wanted.

With the current crisis, it seems that the calls for separation, either by Quebec, or by people in the west (despite the fact that they are being hypocritical for calling the Bloc as "traitors" because they want to separate) will be a major issue over the holidays. Maybe the next couple of months will calm people down, but I think that the system as it is is breaking.

I personally don't believe that Canada will be able to have a fully functioning government until these issues are addressed. The Canadian public has become to diverse in it opinions and regional interests are trumping national ones. People who have different opinions than the majority in specific regions (say Liberal or Green supporters in Alberta) are totally marginallized by the current system, and my feelings are that the poor showing for voting in elections is precisily because many people feel that their vote has zero influence on who forms the government or which policies are enacted (the $1.95 for the party voted on notwithstanding).

As such I am personally wanting to see Canada move towards a system of proportional representation (PR). While the Liberal Party and the CPC are against PR, because they both dream of regaining majority governments, both the NDP and Green parties support this system. More info about PR can be found at Fair Vote Canada.

If Canadians can push towards this system, I fully believe that a more cooperative and functional government in Canada can be achieved, with all people in Canada being better represented.

Tuesday, December 02, 2008

Why bother voting again?

Here is a thought for all the people who are arguing that the coalition by the Liberal, NDP and Bloc parties should be voted on (or conversely, that Harper should still be allowed to govern): why bother?

If you take the results from the last election several weeks ago, only 60% of Canadians bothered to vote. Even with the situation as it is, do people really expect the results of the last vote to significantly change? If anything I'd argue that the vote will remain pretty close to what it was.

So, parliament resumes - and it reaches the same point as it currently is at (plus or minus a few seats from each party). It is unlikely that the CPC would gain enough seats to change anything, so again an attempt to form a coalition would occur. All we would've done in this case is wasted another $350 million, and another four to six weeks that could've been used to forumlate plans to manuever the country out financial troubles.

Tuesday, July 08, 2008

Cellular breakdown

Bell and Telus both announced today that they will be charging their cell phone clients a fee of $0.15 per incoming text message starting in August, which of course, and rightly, created a massive outpouring of complaints on both CBC's and Globe and Mail's online forum.

I'm not going to bother complaining about it here - enough have done so already.

The interesting thing was another story listed on both CBC and CNET about the fact that Apple has essentially turned its back on Roger's days before the release of the IPhone in Canada, apparently in disgust over the pricing of packages that are to be offered to customers.

To me, this indicates that the pricing structures for cellular phones is becoming so out of touch with consumers that the whole system is breaking down. Essentially, all three of the major firms providing nationwide coverage are becoming so hated by consumers in this country, it wouldn't surprise me to see major backlashes in the next few months against the companies. I don't know how it will happen, as mobile communications has become so intrinsicly a part of everyday living that people feel tied to their phones (especially teens), but I think the day of reckoning is coming. Both the federal government and CRTC (those "gaurdians of Canadian cuture") will feel increasing pressure over the fee structures in Canada in the coming months.

While the feds believe that the recent wireless bandwidth auction will allow new entrants into the mobile communications industry, the reality is that many of them are regional networks, and most will take years to fully start up, especially if they must build their own infrastructure.

So, I see two options to resolve this crisis. The first is the separation of infrastructure from service to allow many new entrants in without the crippling cost and time of building a new infrastructure. Better yet, CRTC should dismantle the outdated barriers to that Canada has set up and allow foreign carriers to freely enter the Canadian market.

Wednesday, June 18, 2008

The next revolution in data

I came across a CNET article today discussing Google's challenges in determing what the user actually wants when searching. We have data. We have search engines that can go through vast amounts of data now and return millions of possibilities. The problem of course is that we are drowning in data and it is getting progressively harder for a user to find things that he/she actually wants while at the same time more problematic for companies and individuals to promote their material/products/services within this morass of information.

One of my main interests in the theoretical side of software and computers for the past few years is trying to figure out how to contextualize a user's search so that relevant information is returned. Then, the user can go through a manageable amount of data to find what is needed. This, I think is the next frontier of data and whoever can pull it off will become incredibly wealthy. Hence why I try and think about it...

My own thoughts is that it will take a number of factors, but it will primarily be a combination of the browser that the user is working with, the search service that it is calling upon and the hardware that the browser relies on:
  • The Browser - this will play a key role I think. My guess is that the browser will have to learn what the user is looking for through common search behaviour. For example, in my work I'm often looking for sites & blogs that will solve programming issues that I'm having problems with. Over time, the browser would figure that if I put something like "C#" or "SQL Server" that I'm not looking for training, or wanting to buy products but information specific to programming.
  • The Service - the search engine (Google, MSN, Yahoo, or whoever) would need to communicate with the browser to determine what parameters to search from. As such, this would take cooperation from both the search engines and browser manufactures to create a standard API that would not deviate (hello Microsoft - how close to W3C standards is IE?)
  • Hardware - I threw this in because location is important in searches, and mobile technology is developing at such a fast pace. Really, unless I specifically state otherwise, searches for things such as restaurants, shopping or tourist areas should be within the context of the current physical location that the device is at. If I want to look up fish, either in a buying for pets or for a seafood market, the search should be looking reasonably close to where I am located - say 100km. This also ties back to the browser learning through past behaviour - if I have been in this location before and looking for restaurant it should default to seafood restaurants.
Finally, meta data will need to be much more strictly controlled, especially for websites. As it is easy to overload/fake meta tags for a website, it is very difficult to really organize data in that way (i.e. the reason behind Google's mysterious search algorithms).

Sunday, April 13, 2008

Losing out on the hipster factor

I was reading one of CNET's blogger's posts, which was about the going to a store to buy CDs. As the author noted, this is more and more something which is fading into the past. She then went on to list a number of sites , such as Muxtape, Last FM and The Hype Machine, all of which were new to me, finally destroying my fading claim that was still in the know about new and emerging music trends and fashions (although, as I go through some of these mix tapes on Mux, I've got to say that I have heard the music of most of the artists, even the more obscure ones - a good thing I still listen to CJSW).

I think part of the reason though is just the fact that I've been using the internet for so long - since Netscape 2 in 1994. When a person first starts using the internet, there is a period where one is constantly exploring the vast number of different topics that exist. Nevertheless, after 14 years of using the internet, I've become complacent, only really exploring when need arises (like how does one replace the battery for the key to a Passat?) Being online a lot and dealing with searching for solutions to obscure programming and sys-admin issues, I tend to stick with web pages that I use a lot for information. This of course means that I end of up seeing only a tiny portion of the internet.

Anyway, got to back to exploring these new music sites.

Wednesday, March 12, 2008

Virtual Server 2005 note

Note to self - VS2005 R2 admin page only works in IE, not FireFox...

Thursday, January 17, 2008

The future of democracy?

Another aspect that is becoming clearer as the days go on is the use of networking sites as a quick and to the point method of registering your opinion on a wide range of social, economic and political issues that can arise from obscurity to a big deal with a number of hours. I mentioned the Canadian government backing down against introducing stronger copyright laws yesterday. I've also found a group on Facebook that is protesting the lack of rental controls for the province of Alberta (Alberta now has some of the highest rental rates in Canada).

Will this protest group be noticed by the Alberta government and will it be enough to influence policy? Maybe. But it may be that the federal government's backing down of the copyright laws were coincidental with the creation of the Facebook group - it was after all at the end of the fall sitting for parliament.

Democracy as it is known today is generally through a representative of some type. Direct democracy, although the most pure form is considered impossible and ill-advised. Ill advised because of "tyranny of the majority", but also because of the number of issues which are of low importance to an average citizen and often require the knowledge or experience of a dedicated professional to make an informed choice. And until recently, simultaneous or near simultaneous voting for anything larger than a village or small town was not technically possible.

However, with the modern telecommunications and virtual places that a person can casually drop in on, we have shifted substantially closer to a more pure form of democracy - but only if the politicians are listening...

Wednesday, January 16, 2008

"It's the end of the world as we know it..."


2008 is shaping up to be an interesting year in terms how society uses industries that rely on Intellectual Property (IP). So far, in just a couple of weeks into the new year, the traditional music recording industry is pretty much dead, the strike by television writers in the U.S. is still going three months later and already causing havoc with tv habits, and Facebook is again causing waves with Hasbro demanding that Facebook remove the Scrabulous application. Further, yesterday Apple's Steve Jobs announced that Apple was going to attempt to move into online download-able movies through its ITunes store.

To me this is interesting - what we have here is the degradation of IP. Essentially, with the digitization of information and the means to rapidly obtain (legally or otherwise) free or nearly free copies of this information, the value of the information has plummeted.

What does this mean for the future? Hard to say. In some ways it is hard to feel sympethetic to many of the effected industries - I mean, what really is the "value" of a recording of music that has millions of copies around the world and can be listened to on the radio, in stores, or in someone's home? Value traditionally is derived from scarcity - but how is mass produced media scarce?

Likewise, Hasbro is making a stink about Scrabulous. Is it directly copied from Scrabble? Without a doubt. However, after more than 40 years on the market, sold around the world, is there really justification for holding the protection on a product that is really very basic - marked tiles and a board with squares on it. (Monopoly is worse in my mind - come on - after 70 odd years, shouldn't it be in the public domain?!).

I suspect there is going to be a revolution in the near future for IP - either courts are going to lock it so tight that use for individuals is tightly restricted, or IP will disappear on items that are meant for mass consumption (this doesn't include patents, although I think that will also need to be modified in the near future if patents are to remain relevant). This is pretty much in evidence after the Canadian government backed down from introducing stricter controls over IP in December after a massive protest group sprung up overnight on Facebook.

I think one result out of all of this will be the hardening of protection of information from being released to the public from government and corporate sources. As such, science fiction writers, in particular William Gibson, was prescient about this - information secrecy will be of utmost importance in the near future for things that are to be kept away from the public's eyes.

Thursday, September 20, 2007

Weird things on the net

Occasionally, I'll come across some really odd things while going around on the net. For example, today I was looking up how to open up on Google the following search term:
ASP.NET C# "open csv file in Excel"
The results weren't many, but that is what I expect when refining my searches enough. However the majority of pages that came back were listing pages, such as "http://jl.ucabo.cn/zenwbkv.html" [Don't link to it if you are not prepared for potential security issues], almost all of them from China.

Having enough firewalls, checkers, etc installed on my system, I was curious to see what they were. They are just pages full of text - nothing exciting, just junk words to get search engines to find it... So I looked at the source code, and again, nothing exciting - except that it had a javascript from a server based in Germany (http://goodnserver.info/), near Frankfurt. I then went and looked at the script and found that the script referred a signal to a test page on a server near Washington D.C (http://mystats.name/).

Now, for all the conspiracy theorists out there, isn't it interesting that soon after the U.S. claims that its security systems were breached I find a trail of junk web pages on different servers in China that link back to Washington? Where is my tin hat?

Wednesday, May 23, 2007

ASP.NET Web Apps - Migrating from 1.1 to 2.0

I've spent an afternoon trying to deploy a web application that I've had in ASP.NET v1.1 on a production server to ASP.NET 2.0. The problem has been that after I deployed the application using the method that I had for 1.1 I got an error similar to this:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Namespace.Global'.

Source Error:
Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="Namespace.Global" %>

Source File: /cs/global.asax Line: 1



Now, this was driving me nuts. But thankfully I found the reason in this blog - I thought I'd make note of it and explain it again, so that search engines will be able to find this better. Basically it boils down to this: in ASP.NET 2.0, when using VS2005, you must publish the site. Essentially this compiles everything into a neat package that you can save somewhere to upload it later or transfer directly using FTP.

To publish the site, in the Solution explorer in Visual Studio, right click on the Project and select "Publish...". I did this, saved it to my development machine, uploaded to a production server (albeit a sandbox area) and configured IIS.

Wednesday, May 02, 2007

And so it begins...

Apparently HD-DVD encoding has been cracked and is causing a revolt throughout the web particularly on the Digg.com site. Here is a blog about it:

http://www.theglobeandmail.com/servlet/story/RTGAM.20070502.WBmingram20070502114904/WBStory/WBmingram/

So this is an indirect link to an indirect link to the actual events. Will this send teams of lawyers after me? I doubt it. The problem with info on the net is that once it is disseminated, it is essentially impossible to destroy. The double-edged blade of digital information - it is very easy to replicate and store.

Tuesday, April 03, 2007

More showcasing

Signed up onto Facebook a couple of days ago (so if you are reading this from an RSS/Atom feed on Facebook - hello!) partly out of curiousity. I had heard about it a couple of years ago when it was restricted to U.S. colleges. Now of course, it is the "big thing" in social networking, and is picking up steam for people like me in their 30s, who of course were the ones to really started using the internet in the early 90s. Some things I like, particularly their raison d'être, which is of course the networking. Some things thought seem limited - for example, there is a drop-down list of "political views", which carry run of the mill stuff - "conservative", "libertarian", "very liberal", etc. But I am fiscally conservative, socially liberal with a strong lean towards environmentalism in political governance. I've been voting Green the past few elections and was considering running for Green in Calgary. So where does that leave me on their list? I put "Other"...



Also, there is a note writing area with the ability to put in rudimentary html for styling - like bold or italics, but it does not allow me to use inline CSS styling, which is too bad, as that could really jazz up notes. So Blogger is a much better venue for writing my thoughts and getting some style with it.

On a final note, it is easy for me to know that Facebook is an American based site - you can put your religion in a part of you profile, which would then be used for social networking. As a Canadian, I notice this because in Canada, this would probably not be asked - Canada is much more secular a country than present day America, and we are also too worried about offending people to advertise our religious/spiritual beliefs.

My best news today is I bought a ticket for Interpol! My first live show at the MacEwan ballroom in nearly a decade... I'll feel old (especially as it is an all ages show) but it will be worth it!


Sunday, April 01, 2007

Back on Linux


I finally got a Linux Ubuntu distro to work on my computer. One of my main problems with Linux is trying to get a distro to work on an AMD64 machine with an ATI card. While ATI may be one of the leading video card manufacturers, they suck at getting out Linux drivers. It should not be such a pain to get a system to basic functionallity - even as a professional in computers it is still difficult for me to get things working on Linux. So, after an hour of fighting with the xorg.conf file, I managed to get the desktop working...

Nonetheless, I am impressed at how far Linux desktop has come in the past couple of years. I used to use Red Hats Linux distros as they were easy to install, but because of their refusal to support MP3 players, I've never really thought Red Hat and Fedora were a lot of fun to use. Ubuntu, on the other hand is much more pleasant. One this I thought was really handy was the system automatically found my other hard drive that runs my Window's OS, and places an icon on the desktop that allows me to browse through it - so easy to grab pic, music, etc.

Now back to exploring what this thing can do!

Thursday, January 25, 2007

A Failure of the DRM



I was trying to copy Beth Orton's new CD today (which I might add is legal in Canada, as long as it is for personal use) , however I was foiled by the DRM on the disc. Not only that, I couldn't even play the disc!

It seems that the company who published the cd made an agreement to have the DRM stuff hosted on the site www.musiconline.com. However, the site has been down at least for a couple of weeks. The CD itself does have one of the those autorun "install a piece of junk player without asking you", which I absolutely refuse to do, even before the big Sony scandal that occurred a couple of years ago.

So, I figure this is yet another example of the failure of DRM - if it prevents even basic accessing the content, it is more harmful than good. Really, why would a person go through all the trouble of dealing with this, when one can just go to the many P2P services and download tracks and/or the album?

Thursday, November 09, 2006

My first impressions of .NET 2.0

I'm finally getting around to actually developing with VS 2005 (although having to use an Access db - I'm not an Access fan :p) and now have to learn all the changes that have occurred in it. For the most part it is the same, but there are some things that bug me. I think the biggest disappointment so far is the GridView - the updated version of the powerful DataGrid in .NET 1.0 & 1.1. The nice thing is that sorting, which was a real pain the the DataGrid is automated. The major drawback that I've found is trying to use multiple DropDownLists as filters for the GridView - it takes a lot of extra work to get them functioning properly. Also, if you are using a view form the db to populate GridView and wish to do editing, it is a real pain in the ass. Overall, I've found so far that a lot of the functionality is hidden, so most of the control is a black box, making it extremely difficult to determine what is going on or how to correct errors that are occurring. Another pet peeve is trying to use javascript files within an aspx page - you now have to create a whole separate class to embed the script if you are using a Content tag page within a Masterpage - it is a lot more work and very redundant!

On a different note, I'm now officially a sysAdmin as well as a developer! Although it is still a struggle doing stuff on FreeBSD, I feel that I'm finally making progress...

Thursday, October 19, 2006

Convergence in life

This is off the regular path for this blog but I was fascinated today by a number of stories in the Globe and Mail online today:
  • Conservative Clean Air Act
  • Garth Turner
  • Green Party
  • Pine Beetles
All of these topics relate through an underlying environmental theme. In brief, yesterday Garth Turner was suddenly kicked out of the Conservative Party caucus to sit as an independent. Officially from the Conservative party, it was that his blog betrayed the party rules of confidentiallity. However, rumours are afloat that he was incensed at the Conservative's Clean Air Act, which was tabled today, which really doesn't do anything (come on - 50% reduction of today's emissions - so not counting any new emissions that will happen as the country's economy grows - by 2050!!?? I have to wait until my 70's to have existing pollution cleaned up??).

Then, reports started coming out through the Globe and Mail and CBC about the Green Party making approaches to Mr. Turner, which he seemed open to at the time of my writting this. Of course, the Green Party is salvaiting - a sitting member would instantly gain them recognition with Elections Canada for debates in the next Federal election in Canada.

Coincidently to the above news items was an article pointing out that Pine Beetles were infesting trees in Grand Prairie, far more north than scientists thought the bugs would get. They blamed this on the fact that Alberta has not had a very cold winter in years, and figure that this is a result of global warming.

Odd, isn't it that all these environmental issues are cropping up in the mass media - could it be that people are finally waking up to environmental issues? I just think it interesting to see how many stories converge on a basic theme, one that is generally under-reported by the media in Canada and ignored by politicians.

Tuesday, October 03, 2006

New favourite online word

In a flaming contest on CNET - the "iTroll" - a lesser subspecies of trolls, normally associated with Apple products...

Friday, August 18, 2006

Why I won't see dumb movies

Snakes on a Plane. Just for putting that there, Google will link to it along with the millions of other references on the net to it. But I refuse to go see it, even if it is a result of bloggers building a mass hype around it. I refuse to pay for the crap that Hollywood throws out, even if this movie is a parody. That is to say, I'm not against parodies in general - no, in this case it is because they are not really making fun of anything in particular, other than people will spend a lot of money on purely hype.

Demand better movies people! Demand quality for your money!

Thursday, August 17, 2006

C# hypocrisy and delgates

After spending more time than what it should have, I finally got a delegate to work with an asyncronus thread. The problem wasn't the code so much as not being able to find clear instructions on the net on how to implement it.

One of the problems is that examples on the net often take the shorthand approach of putting multiple classes in a single file (or at least what could be a single file). For example:

namespace blah
{
class firstClass { ... }

class secondClass {...}
}

the compile can deal with this fine. But if you apply it to a windows form to use in a thread as I was attempting to do, the program crashes as soon as you attempt to go to that form, with the error of "System.Resources.MissingManifestResourceException" as explained on MS's support site.

I eventually had to copy and paste to notepad, delete the file and re-create it. I wasn't impressed }:( as this code is being used in production, and although I have backups of it, having to rebuild a file like this shouldn't be necessary.

So I created a class to use for the delegate. The next problem I found was the poor explanation of how a delegate needs prescisly the same parameter names as the method you are going to call (not to mention the same return type). For example:

namespace whatever
{
class Utility
{
...

public void myMethod(TextBox box, string message)
{
box.text = box.text + message;
}
}
}

namespace whatever
{
//I've separated this out to make my point...
class targetClass
{
private System.Windows.Forms.TextBox messageTB;
private string message;
delegate void myDelegate(TextBox box, string message); //notice it matches as above

...

//inside a thread
message = "the message";
myDelegate md = new myDelegate(Utility.myMethod)
this.invoke(md, new object[] {messageTB, message});

...
}
}

This may not be the most elegant solution, but it works. - maybe this will be a bit clearer on how delegates look and operate when being used in threads.

Tuesday, August 15, 2006

WSE and Thread Safety

I love working in .NET sometimes...

For my application that I'm working on, am using Microsoft's Web Service Enhancements (WSE) for ensuring security of uploading and downloading of sensitive data. However, I also need to implement some thread safety on it, so I don't have the users starting multiple worker threads while the first is still running. SO -

I put in a lock as is commonly used. The lock itself works fine, it will only allow one worker thread at a time to try to hit the server that I am connecting to. But then I get back an uncaught exception which causes problems: System.Thread.ThreadStopException. Now this is apparently an exception that is supposed to not be implemented in a developer's code, is not documented in MSDN, and only occurs "*very* occasionally". So apparently, I have a bug, but I am not allowed to see what it is or prevent it from screwing around with the program. Hmm, this is probably something stupid that will take me several hours to find...