About
Profile picture Gokhan Demir,
a computer geek in Istanbul.

E-mail me Send mail


Photo Of The Day


  • Virtual Surgery, NASA Ames Research Center, California, 2001

Calendar

<<  July 2008  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Pages


    Recent posts


    Recent comments


    Archive


    Authors


    Tags


    Categories


    Blogroll


    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in

    Running Multiple Versions Of Internet Explorer

    by Gokhan Demir 2/12/2008 8:52:00 AM

    I have been using ie7 for a long time. But for most cases, i need to check out my applications in ie6 for cross browser circumstances. I used to make ie6 tests on an another machine which's browser is not upgraded to ie7. Yesterday i found this entry which ends this pain. After install it, you will be able to use all ie versions on the same machine. WinXP users will get the gift, but for some reason this software is not working properly on Vista.

    Read the original entry

    Download It ! 

     

     

     

    MySql Blog Provider For BlogEngine.NET

    by Gokhan Demir 12/10/2007 10:52:00 AM

    I'm using MySql server for the BlogEngine.NET back-end. Current version of the BlogEngine.NET supports XML and MS SQL as data storages. But my hosting plan has a limited option for MS SQL databases so i don't want to use it. And XML data provider option saves every post to individual files. Also i have some performance concerns about XML data storages. So i decide to use MySql. It's not very populer in ASP.Net community. But if you give it a chance, you will see how powerful and portable it is. I'm using MySql Connector/Net version 1.0, cause latest version of the connector has some trust level problems on Godaddy. Here are the steps that you need to follow for MySql data provider integration. (I'm assuming you're using BlogEngine.NET 1.2.x.x)

    - Create a database and change connection string on the sql.config file.
       Download MySql Script (2.43 kb)

    <connectionStrings>
    <add name="BlogEngine" 
    connectionString="Server=localhost; 
    Port=3306; 
    Database=databasename;
    Uid=username;
    Pwd='password';"
    providerName="MySql.Data.MySqlClient" /> 
    </connectionStrings>
    



    - Add MySql Connector dll to BlogEngine.Core References
       Download MySql Connector (54.92 kb)





    - Add MYSQLBlogProvider.cs file to Providers folder which on the BlogEngine.Core project. Download MYSQLBlogProvider (4.16 kb)


     



    - Add MySql provider to BlogEngine's provider tag on the web.congfig file.



     That's all..You can press F5 and test it ;)

     

     

    Organizing Using Statements

    by Gokhan Demir 12/7/2007 10:59:00 AM

    Class files may become bloated and difficult to read because of unnecessary and unorganized using directives.Visual Studio 2008 comes with a solition for this. Just right click anywhere on the class file, and you will see the "Organize Usings" on context menu. Hope it helps ;)




    Stay Hungry Stay Foolish

    by Gokhan Demir 12/3/2007 10:21:00 AM
    Steve Jobs's Commencement Speech at Stanford

    Tags:

    Life

    SQL Database Publishing Wizard Is Integreted Into VS2008

    by Gokhan Demir 11/21/2007 5:25:00 PM

    You can point to a database on your local machine, and then automatically create a sql script file. This sql script includes everything needed to create the database data and schema (tables, views, sprocs, triggers, full-text catalogs, roles, rules, etc) . It's a painkiller future that you find very useful when publishing applications to remote machines.

    Tags:

    .Net | Sql

    LINQ Beta2 to RTM Key Changes

    by Gokhan Demir 11/21/2007 12:11:00 AM

    I start to play with .Net framework 3.5 RTM. When i build my project which is developed with .net framework 3.5 beta 2 , i got some  weird linq errors. DataContext's add and remove methods causes these errors. These methods are renamed because they are confusing or misleading for many users. In linq model, until you call dataContext's SubmitChanges method nothing will removed or added even you previously mention it. Here is list of the changes :

    Previous Method
    (VS Beta1 and VS Beta2)

    Renamed Method
    (VS 2008 RTM)

    Add()

    InsertOnSubmit()

    AddAll()

    InsertAllOnSubmit()

    Remove()

    DeleteOnSubmit()

    RemoveAll()

    DeleteAllOnSubmit()


    For other changes, please read  Dinesh Kulkarni's post.

    Tags:

    .Net | C# | Linq

    Visual Studio 2008 Released

    by Gokhan Demir 11/20/2007 4:59:00 PM

    Visual Studio 2008 is now available to download for MSDN subscribers.For non-MSDN subscribers it's possible to download trail editions.

    Here is the download links of trails :

    Enjoy it ;)

     

    Tags:

    ASP.NET | .Net | C#

    Attaching Methods To Window Load Event

    by Gokhan Demir 11/16/2007 1:42:00 PM

    On the client side, if i want to attach some function for page load event, i used to implement the window.onload event :

    window.onload = func;
    
    But this approach has some difficulties. Because this will completely overwrite any other functions that were attached. So I began to search for a better solition. After visiting some saint google links, i got the answer. window.addEventListener (for mozilla,gecko, safari and konqueror), window.attachEvent (for internet explorer) and document.addEventListener (for opera 7) methods can be used for attaching any kind of method in a safe way. All i need to wrap these nifty methods into a function. Here is the code snippet that you can use :
    function AddOnload(func){
    if(window.addEventListener) 
    window.addEventListener('load', func, false);
    else if(document.addEventListener)
    document.addEventListener('load', func, false);
    else if(window.attachEvent)
    window.attachEvent('onload', func);
    }
    
    Happy codings ;)

    .NET Framework 3.5 Namespaces Poster

    by Gokhan Demir 11/16/2007 11:19:00 AM

    Microsoft released a new poster  that provides a nice view of common types and namespaces in the .NET Framework 3.5. You can download a PDF version of the pster here.

    Tags:

    .Net

    Watch It : Persepolis

    by Gokhan Demir 11/4/2007 9:24:00 AM
    Persepolis
    This great animation tells the story of an Iranian girl's life between the Iran/Iraq war. The story covers from the point of view of a young pro-Western culture radical, and is told with humor and intelligence. She laughs at herself as much as at the semi-lunatic Guards of the Revolution. It's the portrait of an unusual girlhood. Unfortunately we did not learn a lot about close history of the world in schools. So if you want to learn how and why Iran comes to this point, go ahead and watch this.




    Powered by BlogEngine.NET
    Designed by FYFI, Adapted by Gokhan Demir