Wednesday, 8 May 2013

City Of Toronto scam schemas

City of Toronto seems is working on inventing yet better scam schemas to take a buck out of pockets its residents and parking tickets are one of the favorite city budget sources.

In April 2011 I bought a new motorcycle. Toronto's motorcycle owners know that parking in the city is free on designated paid parking spots as long as your motorcycle parked perpendicular to the curb and don't violate other sings and regulations.
Those were my first days riding a motorcycle, even more, any kind of a vehicle in Toronto. Early morning I rode to the work (174 Spadina Ave.) being first on the parking I parked by bike right against the pole that shows end of the parking area in the way that pole visually would split my bike in halves.

In the end of the day around 6pm going back home I approached the bike and found a parking ticket attached to the tank cap. Time on the ticket said that it was issued just a few minutes ago. That meant that a single one parking enforcement officer didn't see an infringement in the way I parked my bike except that very special one. Address of infringement on the ticket was wrong and infringement description also was wrong. It would be very easy to defend that ticket in the court.Next day I brought ticket to a court.

Since then nobody sent my anything regarding to that ticket. Until April 2013 when I went to get a new license validation sticker, I was told that there is a ticket on my license plate and they won't sell me sticker until I pay or resolve in other way this ticket. I paid fine, because a day of going around the city and waiting in the lines will cost me more than that. But this is not right, after 2 years without any notice from the court and hearing, without real infringement from my side I had to pull money out of my pocket and give them to the government? Why...???

Monday, 28 January 2013

Galaxy Nexus Glass Screen

My 7 months old Galaxy Nexus fell out from my jacket's pocket when I was tying shoe lasses. ~70 cm height on ceramic floor tile .

Wednesday, 23 January 2013

Object reflection and parameters querying

Note: post is in progress var product = new GasProduct(); // get object property tree to map values on its properties Type productType = product.GetType(); PropertyInfo[] properties = productType.GetProperties(); for (int col = 1; col <= sheetRange.Columns.Count; col++) { try { // Cells names only in the first row of the spreadsheet if (row == 1) { // collect defined names of the collumns var cellName = sheetRange.Cells[row, col].Name.Name; columnNameMap.Add(col, cellName); } else { var cellValue = sheetRange.Cells[row, col].Value2 != null ? sheetRange.Cells[row, col].Value2.ToString() : null; // if "Processed" attribute is not equal "N" (not processed) skip the entire row if (col == 1 && cellValue != "N") break; var prop = (from p in properties where p.Name == columnNameMap[col] select p).FirstOrDefault(); prop.SetValue(product, cellValue, null); } } catch (Exception ex) { string error = "log exception"; } } if (product.IsValid()) { // add product to a bag to fullfill templates lately lately if (_products == null) _products = new List>(); _products.Add(product); } }

Friday, 21 August 2009

If government becomes a lawbreaker, it breeds contempt for law; itinvites every man to become a law unto himself; it invites anarchy.

Louis Brandeis 1856-1941
Supreme Court Justice