Free 1000 mb SVN Repository Hosting at xp-dev.com

Wednesday, 25 March 2009 21:38 by myro

You know best links  always comes from people's blogs... and now is my turn:

http://xp-dev.com

gives you 1000 mb free subversion hosting and project tracking. Give it a try...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Developer Life
Actions:   Bookmark and Share | Permalink | Comments (4) | Comment RSSRSS comment feed

Recover DLL from GAC

Tuesday, 24 March 2009 20:14 by myro
Let's say you have lost your project's source code, and you have your project compiled and deployed in your GAC. That'a a bad situation... right? What can you do if you want to recover it?
The first thing you need is to retrive you DLL and then disassemble it:
Open cmd, and move to C:\WINDOWS\ASSEMBLY\

C:\WINDOWS\assembly>dir /p

 Volume in drive C has no label.

 Volume Serial Number is 7875-6475

 

 Directory of C:\WINDOWS\assembly

 

29/03/2008  16.21    DIR          GAC

26/04/2008  20.05    DIR          GAC_32

04/05/2008  22.53    DIR          GAC_MSIL

28/03/2008  04.59    DIR          NativeImages1_v1.1.4322

29/03/2008  20.24    DIR          NativeImages_v2.0.50727_32

04/05/2008  22.53    DIR          temp

04/05/2008  22.47    DIR          tmp

              0 File(s)              0 bytes

              7 Dir(s)  25.301.377.024 bytes free

 

C:\WINDOWS\assembly>

As you can see, you can access to all your .NET dll, moving to GAC_MSIL folder. Locate your DLL (you see it as a folder), and export it in this way:

C:\WINDOWS\assembly\GAC_MSIL>cd Microsoft.SharePoint

 

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SharePoint>dir

 Volume in drive C has no label.

 Volume Serial Number is 7875-6475

 

 Directory of C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SharePoint

 

26/04/2008  20.04    DIR          .

26/04/2008  20.04    DIR          ..

26/04/2008  20.03    DIR          12.0.0.0__71e9bce111e9429c

              0 File(s)              0 bytes

              3 Dir(s)  25.300.611.072 bytes free

 

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SharePoint>copy 12.0.0.0__71e9bce111e9429c c:\tmp

12.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.dll

        1 file(s) copied.

 

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SharePoint>

In this example i have copied the Microsoft.SharePoint DLL to my c:\tmp folder. Now using Reflector you can easly disassembly it.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   Developer Life
Actions:   Bookmark and Share | Permalink | Comments (2) | Comment RSSRSS comment feed

Internet Explorer 6 and the blank spaces in TD element

Thursday, 5 March 2009 11:15 by myro

Every web designer knows how much Internet Explorer 6 sucks, but i didn't expect this: Internet Explorer renders the html differently if you open and close the TD element on the same line or not. If you write a TD element on more than one line, you will notice blank borders and you won't be able to remove them, unless you rewrite your element on a single line:
HTML table with blank borders:

 <table style="width:100%" cellpadding="0" cellspacing="0">
  <tr>
    <td class="menu">
      <a href="/default.aspx">
        <img src="images/home.gif" alt="Home"/>
      <a>
    <td>
    <td class="menu">
      <a href="/chisiamo.aspx">
        <img src="images/chisiamo.gif" alt="Chi siamo"/>
      <a>
    <td>
    <td class="menu">
      <a href="/NegoziInsegnanti.aspx">
        <img src="images/negozi.gif" alt="Negozie"/>
      <a>
    <td>
    <td class="menu">
      <a href="/Galleria.aspx">
        <img src="images/Galleria.gif" alt="Galleria"/>
      <a>
    <td>
  <tr>
<table>

Same table with the correct rendering in Internet Explorer 6.

<table style="width:100%" cellpadding="0" cellspacing="0">
  <tr>
    <td class="menu"><a href="/default.aspx"><img src="images/home.gif" alt="Home"/><a>td>
    <td class="menu"><a href="/chisiamo.aspx"><img src="images/chisiamo.gif" alt="Chi siamo"/><a>td>
    <td class="menu"><a href="/NegoziInsegnanti.aspx"><img src="images/negozi.gif" alt="Negozi"/><a>td>
    <td class="menu"><a href="/Galleria.aspx"><img src="images/Galleria.gif" alt="Galleria"/><a>td>
  <tr>
<table>

So, if want to create an Internet Explorer 6 compatibile HTML template, remember to write TD tags on a same line.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Developer Life
Actions:   Bookmark and Share | Permalink | Comments (0) | Comment RSSRSS comment feed

myrocode now runs on BlogEngine!

Thursday, 5 March 2009 00:05 by myro
  myrocode i is now running on BlogEngine and the old version is dismissed. What? You didn't even notice it? You'ill better start to check my site more often: code snippets are comming.... 
   

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Developer Life
Actions:   Bookmark and Share | Permalink | Comments (3) | Comment RSSRSS comment feed