DNS problems with routers

Posted by: admin  :  Category: Windows Developers

i have a router for more than 1 year now, never had much problems with it a TRENDnet router.

A while ago i started experincing problems with the DNS, some pages cannot be loadded because no server was found and after 3 min they worked, belive it or not even yahoo got me a “no server found” error. This was getting wery annoying!!

I tried the ipconfig /flushdns  /release remove temp files, tried also with internet explore nothing worked, the problem was not constant and i could not reproduce it because now it worked and after 2 min didnt. Other computers in my netwrok had no problems except me (or maybe they were lucky not to get the error, i spent much time on the net so i was more exposed).

Anyway, i could not find a right DNS server because most of them are private or not good, after some time googling i found

www.opendns.org !! very good dns servers free. It also teaches you how to set up mosts of the routers and if your router is not listed there you can get general instructions.

If you have the same problem, go for it!!! i never had any of those problems from then.

C# use .TTF fonts. Unregisterd with windows

Posted by: admin  :  Category: Windows Developers
Use PrivateFontCollection for unregistered fonts

To use a font that isn’t installed on a Windows system, use the PrivateFontCollection class to load the font from a file or from a resource. For example:

   1: // Be sure to dispose your PrivateFontCollection
   2: // and Font to avoid an easy leak!
   3: System.Drawing.Text.PrivateFontCollection privateFonts = new PrivateFontCollection();
   4: privateFonts.AddFontFile("mycustomfont.ttf");
   5: System.Drawing.Font font = new Font(privateFonts.Families[0], 12);
   6: this.label1.Font = font;

Finally, SnagIt plugin works!!!

Posted by: admin  :  Category: Windows Developers

I was really glad that someone made this plugin, truly helpfully!!, but then bang!! some idiot exception that i don’t have snag it installed .. LOL i was watching it with my own eyes.. and the stupid plugin was telling i don’t have it installed…

I was really dissapointed i wanted i needed that plugin, but then all mighty google  told me that the plugins and wrriten in c# and also the source code is avaible. and stared coding.

I really dont know what happend to the original version or why now it’s not working, maybe Snagit change something in COM, anyway wasn’t that interesting to me coz i knew i have to build one myself.

Usually i dont make such kind of things, i dont have time to investigate the problem and fix it. but i needed this plugin working like you if you are reading this.

Half of credits goes to it`s original developer! and some of the credits for makeing it work goes to me!

HOW TO INSTALL

I didnt have time to make an intaller, just install the old one, and copy paste the following files in:  

C:\Program Files\Windows Live Writer\Plugins

and there it goes!

Download files:

   

Original source, from west-wind

Windows Live writer

Posted by: admin  :  Category: Windows Developers

Truely, one of those great things yet  simple. Windows live writer the tool in which me and others write our blog with a very good WYSIWYG editor and lots of plugins which you can write in C# .Net (use its SDK)

Here is how it looks:wlivew

As you can see in the write LOTS of free plugins, i am really thinking in creating one for myself.

You can coonect to wordpress, blogger and other top blog engines. really cool. You can also retrive design layput of your page, and set the date to publish, insert images, tables, videos(plugin) But the most of all its very fast, and you dont have to open ypur browser wait to load each page, so no more connection timeout on big posts.. and i am sure it has other great things yet to come

Give it a try.