Monday, December 1, 2014

TD-W8961ND V3 stopped to connect to Bell DSL

All of a sudden TD-W8961ND V3 stopped to connect to Bell DSL internet.
Shows DSL connection ok, works in bridge mode 100%, but cannot connect PPPoE.

Wednesday, October 29, 2014

McAfee - epic fail

If you have anything from McAfee - trash it.
And don't use their services.
They are stupid idiots.

Wednesday, April 9, 2014

We all GO there!

Should use GO instead of PHP and SH combined.

Free DynDNS no more ...

Got a notice - free DynDNS will be shut down in 30 days...
No more freeloading ...

Thursday, April 3, 2014

Open source sucks big way

Whatever you try - it will fail.
Fails on configuration, compilation, link and installation.
And run.

Thursday, November 28, 2013

C# - avoid recursion on class creation

Ok, we need the following class:
public class User
 public int Id; // Identifier
 public User UserCreated; // Reference to User object - user who created this User object
 public User UserUpdated; // Reference to User object - user who last updated this User object
 // Now instantiation
 // Variant 1 - bad because UserCreated and UserUpdated are both nulls on instantiaton, and getting  User from DbContext requires objects to be not null
 public User()
 // any other init but UserCreated / UserUpdated
// Variant 2 public User() - bad because of apparent flaw - endless recursion , so program will run out of memory and will crash
  UserCreated = new User();
  UserUpdated = new User();
// Variant 3 - how I did it. We postpone creation of references until they are actually used
// add internal variables
internal User _userCreated;
internal User _userUpdated;
// Properties and Accessors
public User UserCreated
      return _userCreated;
      if ( _userCreated == null )
        _userCreated = new User();
     _userCreated = value;
public User UserUpdated
      return _userUpdated;
      if ( _userUpdated == null )
         _userUpdated = new User();
       _userUpdated = value;
 public User() // like variant 1
  // any other init but UserCreated / UserUpdated

Monday, January 28, 2013

Kobo Vox died just after one year

Kobo Vox coviniently died just after one year - exactly one month after manufacturer warranty is expired.

Tuesday, August 21, 2012

TrendNET TEW-652BRP is crap

Trying to do something - changed to 801 B/G mode. And set channel to 7.

Now what?

Vacuum or transportation?

Sunday, February 26, 2012

WPF MVVM RelayCommand - Lambda expression for Execute

Like this: // Get ViewModel - provided it is set on init or in XAML MainWindowViewModel viewModel= (this.DataContext as MainWindowViewModel); // aboutCommand lives in ViewModel viewModel.AboutCommand = new RelayCommand( () => { About p=new About(); p.ShowDialog(); } );

Sunday, February 19, 2012

Gets them every time ... in WCF


Tuesday, January 24, 2012

C# Entity Framework Code First

The task is - create two SQL tables.
Where second table has foreign key from the first table as part of primary key.
Like this - in MS SQL :
Table Currency
Code char(3) Primary Key, Not null
Description varchar(50) Not null

Table ExchangeRate
Currency_Code char(3) Primary Key, Not Null, Foreign Key reference Currency(Code)
EffectiveDate Date Primary Key, Not Null
Rate Decimal (17,2)

Problem is how to make it in C# - Code First.
I did it this way.

public class Currency
public string Code { get; set; }
public string Description { get; set; }
public virtual ICollection ExchangeRates { get; set; }

public class ExchangeRate
public decimal Rate { get; set; }
public DateTime EffectiveDate { get; set; }
public Currency Currency { get; set; }
internal string Currency_Code { get { return this.Currency.Code; } set { this.Currency.Code=value; } }
public ExchangeRate() { Currency = new Currency(); } }

public class CurrencyConfiguration : EntityTypeConfiguration
public CurrencyConfiguration()
Property(d => d.Code).IsRequired().HasMaxLength(3).IsFixedLength();
Property(d => d.Description).IsRequired().HasMaxLength(50);
HasKey(d => d.Code);

public class ExchangeRateConfiguration : EntityTypeConfiguration
public ExchangeRateConfiguration()
Property(d => d.Currency_Code).IsRequired().HasMaxLength(3).IsFixedLength();
Property(d => d.EffectiveDate).IsRequired();
Property(d => d.Rate).IsRequired();
HasKey(d => new { d.Currency_Code, d.EffectiveDate } ); // Combined primary key
HasRequired(d => d.Currency).WithMany(e => e.ExchangeRates).HasForeignKey(d => d.Currency_Code);

Tuesday, November 22, 2011

Get Windows serial number

Sometimes you need that Windows serial number you entered when you activated your computer. Hard to find - this thing is not used very often. So I made small program - use it. Works for Windows-7, Windows Server 2008 , Windows XP, virtual machines . Enjoy! Let me know if it helps.

Wednesday, September 7, 2011

Traditional - what sucks now, HP software for scanner.

When using feature "Scan to PDF" for MFP1212, page size is set to idiotic 87cm x 115 cm.
Resulting file size is gigantic.
HP sucks big way - can not solve the problem.

Wednesday, August 31, 2011

Fraud alert

Somebody located in Thorold / St.Catharines trying to impersonate legitimate trucking company and steal freight.
Their phone 1-905-346-8175 and fax 905-225-0175.
So stay alert!

Tuesday, August 23, 2011

TrendNET TEW-652BRP is crap

Don't buy this router.
Unless you don't want to use wireless.
Wired working ok, wireless drops connection all the time.

Tuesday, April 5, 2011

LJ is down again

LiveJournal under DoS attack second day in a row.
Russian users are all screaming ...

Saturday, October 9, 2010


Try DropBox - useful to have same set of smallish files synchronized between computers.
If you sign-up via this link - you will get extra 250Mb of space , and me too!

Monday, July 5, 2010

How to fix disk size for embedded SIL31512A SATA Raid controller

What we have:
Old Shuttle ST61G motherboard with embedded SATARaid controller Sil 3512
When big SATA disks connected to SATA - BIOS hangs.
Shuttle provides no motherboard updates - ST61G discontinued.
So what we do?
We integrate updated BIOS for SIL3512A into system BIOS using CBROM tool.
Like this:
CBROM217.exe ft61s02d.bin /pci 4384.BIN
where ft61s02d.bin - system BIOS
and then we flash updated ft61s02d.bin file to system BIOS.

Sunday, December 6, 2009

Friday, January 23, 2009

Google ads gone ...

So the story of this blog ends or not?
How about this?

Tuesday, January 20, 2009

Today - Obama inauguration

Obama is new guy in White House.
Let's wait and see what is going to happen.
The sooner the better.

Thursday, January 15, 2009

NORTEL files chapter 11

And how did they managed to get into debt to the tune of 9 billions?
Here they are - fat cats & greedy idiots

Tuesday, January 6, 2009


Now I know more about "content insurance".
In general, average Canadian should have 5 different policies.