• Home
  • About
  • Software

Debugging wsps deployed in Sharepoint through Visual Studio

23 10 2008

Compliments of Shashi…a coworker of mine…


  1. Make sure to build your solution in debug mode.
  2. Deploy the debug version wsp (located in wsp/debug folder) to Sharepoint
  3. copy the .pdb file from bin/debug folder of whatever the solution you would like to debug to clipboard
  4. open up the gac folders using – Start-> run -> %systemroot%\assembly\gac_msil
  5. Open the folder of the solution you wish to debug till you find the .dll file
  6. Copy the copied .pdb file
  7. Bring up the site
  8. In Visual studio, click on Debug -> Attach Process (make sure “Show processes in all sessions is checked”)
  9. attach 2 w3wp.exe process and click on Attach if prompted
  10. Set the breakpoints

Go back to site and try to do your activities, if your breakpoint gets hit, it will show you the VS screen and you are good to go….

Date : 23 October 2008 at 21:57
Comments : No Comments »
Categories : Ruby/Rails, SharePoint
del.icio.us:Debugging wsps deployed in Sharepoint through Visual Studio digg:Debugging wsps deployed in Sharepoint through Visual Studio spurl:Debugging wsps deployed in Sharepoint through Visual Studio wists:Debugging wsps deployed in Sharepoint through Visual Studio simpy:Debugging wsps deployed in Sharepoint through Visual Studio newsvine:Debugging wsps deployed in Sharepoint through Visual Studio blinklist:Debugging wsps deployed in Sharepoint through Visual Studio furl:Debugging wsps deployed in Sharepoint through Visual Studio reddit:Debugging wsps deployed in Sharepoint through Visual Studio fark:Debugging wsps deployed in Sharepoint through Visual Studio blogmarks:Debugging wsps deployed in Sharepoint through Visual Studio Y!:Debugging wsps deployed in Sharepoint through Visual Studio smarking:Debugging wsps deployed in Sharepoint through Visual Studio magnolia:Debugging wsps deployed in Sharepoint through Visual Studio segnalo:Debugging wsps deployed in Sharepoint through Visual Studio gifttagging:Debugging wsps deployed in Sharepoint through Visual Studio

DOS Layout Settings

30 09 2008

I think the fact that the DOS prompt is not resizable is a limitation. For a 19″ Dell LCD, the best settings that i’ve found are:

Screen Buffer Size:
Width: 155
Height: 9999

Window Size:
Width: 155
Height: 66

Seems to work well.

Date : 30 September 2008 at 16:04
Comments : No Comments »
Categories : General, Geeky things, Ruby/Rails
del.icio.us:DOS Layout Settings digg:DOS Layout Settings spurl:DOS Layout Settings wists:DOS Layout Settings simpy:DOS Layout Settings newsvine:DOS Layout Settings blinklist:DOS Layout Settings furl:DOS Layout Settings reddit:DOS Layout Settings fark:DOS Layout Settings blogmarks:DOS Layout Settings Y!:DOS Layout Settings smarking:DOS Layout Settings magnolia:DOS Layout Settings segnalo:DOS Layout Settings gifttagging:DOS Layout Settings

Kdiff = Cool Tool

21 04 2008

I just ran into a situation where I had a Ruby on Rails plugin (Substruct) that I am using for a site release a new version. One big disadvantage of plugins vs. gems in the rails world is versioning because you can modify plugin code. Anyhow, I needed to know what changes were made across the entire plugin directory structure, so that i could easily merge the changes I’ve made to the code changes that were released with the update.

Enter Kdiff, an Free, Open Source, Platform agnostic tool for comparing files and directories.

http://kdiff3.sourceforge.net/

Date : 21 April 2008 at 19:45
Comments : No Comments »
Categories : Geeky things
del.icio.us:Kdiff = Cool Tool digg:Kdiff = Cool Tool spurl:Kdiff = Cool Tool wists:Kdiff = Cool Tool simpy:Kdiff = Cool Tool newsvine:Kdiff = Cool Tool blinklist:Kdiff = Cool Tool furl:Kdiff = Cool Tool reddit:Kdiff = Cool Tool fark:Kdiff = Cool Tool blogmarks:Kdiff = Cool Tool Y!:Kdiff = Cool Tool smarking:Kdiff = Cool Tool magnolia:Kdiff = Cool Tool segnalo:Kdiff = Cool Tool gifttagging:Kdiff = Cool Tool

Allocate more memory to Eclipse

18 04 2008

C:\eclipse\eclipse.exe -clean -vargs -vmargs -Xms256m -Xmx512m -XX:MaxPermSize=128m

Date : 18 April 2008 at 14:58
Comments : No Comments »
Categories : Java
del.icio.us:Allocate more memory to Eclipse digg:Allocate more memory to Eclipse spurl:Allocate more memory to Eclipse wists:Allocate more memory to Eclipse simpy:Allocate more memory to Eclipse newsvine:Allocate more memory to Eclipse blinklist:Allocate more memory to Eclipse furl:Allocate more memory to Eclipse reddit:Allocate more memory to Eclipse fark:Allocate more memory to Eclipse blogmarks:Allocate more memory to Eclipse Y!:Allocate more memory to Eclipse smarking:Allocate more memory to Eclipse magnolia:Allocate more memory to Eclipse segnalo:Allocate more memory to Eclipse gifttagging:Allocate more memory to Eclipse

TiltViewer

21 02 2008

Every once in a while i come across a pretty sweet flash/flex application…and what makes TitleViewer really cool is that it’s free and configurable.

Overview:

http://www.airtightinteractive.com/projects/tiltviewer/ 

Demo:

http://www.airtightinteractive.com/projects/tiltviewer/app/

Date : 21 February 2008 at 18:32
Comments : No Comments »
Categories : Flash, Flex
del.icio.us:TiltViewer digg:TiltViewer spurl:TiltViewer wists:TiltViewer simpy:TiltViewer newsvine:TiltViewer blinklist:TiltViewer furl:TiltViewer reddit:TiltViewer fark:TiltViewer blogmarks:TiltViewer Y!:TiltViewer smarking:TiltViewer magnolia:TiltViewer segnalo:TiltViewer gifttagging:TiltViewer

Search for a file within a JAR that contains a certain criteria

21 02 2008

Recently i had to search within a couple of hundred JAR files to locate which Java package needed to be included in my build path. Fortunately this isn’t too difficult with the help of Cygwin and a little command line script.

export search="search string"; for file in 'find . -name "*.jar"'; do echo $file; jar -tvf $file|grep $search; done

Date : 21 February 2008 at 18:25
Comments : 1 Comment »
Categories : Geeky things, Java
del.icio.us:Search for a file within a JAR that contains a certain criteria digg:Search for a file within a JAR that contains a certain criteria spurl:Search for a file within a JAR that contains a certain criteria wists:Search for a file within a JAR that contains a certain criteria simpy:Search for a file within a JAR that contains a certain criteria newsvine:Search for a file within a JAR that contains a certain criteria blinklist:Search for a file within a JAR that contains a certain criteria furl:Search for a file within a JAR that contains a certain criteria reddit:Search for a file within a JAR that contains a certain criteria fark:Search for a file within a JAR that contains a certain criteria blogmarks:Search for a file within a JAR that contains a certain criteria Y!:Search for a file within a JAR that contains a certain criteria smarking:Search for a file within a JAR that contains a certain criteria magnolia:Search for a file within a JAR that contains a certain criteria segnalo:Search for a file within a JAR that contains a certain criteria gifttagging:Search for a file within a JAR that contains a certain criteria

Migrating to Rails 2.0 (and 2.0.2)

18 02 2008

I recently migrated one of my rails apps from 1.2.6 to 2.0.2. I found that several things have changed or are no longer supported.

For example:

<%start_form_tag%>
...
<%end_form_tag%>

is now just
<%form_tag do %>
...
<%end%>

Pagination:

I got the error: undefined method `paginate’ … this is because pagination was ripped out.

The fix is to install the following plugin:

ruby script/plugin install svn://errtheblog.com/svn/plugins/classic_pagination 

Auto_Complete:

I got the error: Undefined method `auto_complete_field’ for #
The fix is to install the following plugin:

ruby script/plugin install http://svn.rubyonrails.org/rails/plugins/auto_complete 

Date : 18 February 2008 at 4:39
Comments : No Comments »
Categories : Ruby/Rails
del.icio.us:Migrating to Rails 2.0 (and 2.0.2) digg:Migrating to Rails 2.0 (and 2.0.2) spurl:Migrating to Rails 2.0 (and 2.0.2) wists:Migrating to Rails 2.0 (and 2.0.2) simpy:Migrating to Rails 2.0 (and 2.0.2) newsvine:Migrating to Rails 2.0 (and 2.0.2) blinklist:Migrating to Rails 2.0 (and 2.0.2) furl:Migrating to Rails 2.0 (and 2.0.2) reddit:Migrating to Rails 2.0 (and 2.0.2) fark:Migrating to Rails 2.0 (and 2.0.2) blogmarks:Migrating to Rails 2.0 (and 2.0.2) Y!:Migrating to Rails 2.0 (and 2.0.2) smarking:Migrating to Rails 2.0 (and 2.0.2) magnolia:Migrating to Rails 2.0 (and 2.0.2) segnalo:Migrating to Rails 2.0 (and 2.0.2) gifttagging:Migrating to Rails 2.0 (and 2.0.2)

Getting Apache working with JBOSS

11 02 2008

Ok, you’ve probably seen my other posts on how to get JBOSS up and debugging with Eclipse, if note here are the links:

http://jharbs.com/blog/?p=110 and http://jharbs.com/blog/?p=107

To get Apache working with JBOSS you will need to do the following:

You first need to download the Apache webserver version 2.2. You will want to start by installing this version of Apache, currently 2.2.8.

Install this to c:\apache2.2\, you may have to use the advanced / custom install option during your installation.

Once installed, you will need to download these apache and jboss helper files.

The contents includes:

  • mod_jk.so which you will need to place in C:\apache2.2\modules
  • modk.conf, httpd.conf, and workers.properties which will all need to be placed in C:\apache2.2\conf

cheers.

Date : 11 February 2008 at 17:51
Comments : No Comments »
Categories : Java
del.icio.us:Getting Apache working with JBOSS digg:Getting Apache working with JBOSS spurl:Getting Apache working with JBOSS wists:Getting Apache working with JBOSS simpy:Getting Apache working with JBOSS newsvine:Getting Apache working with JBOSS blinklist:Getting Apache working with JBOSS furl:Getting Apache working with JBOSS reddit:Getting Apache working with JBOSS fark:Getting Apache working with JBOSS blogmarks:Getting Apache working with JBOSS Y!:Getting Apache working with JBOSS smarking:Getting Apache working with JBOSS magnolia:Getting Apache working with JBOSS segnalo:Getting Apache working with JBOSS gifttagging:Getting Apache working with JBOSS

Sick of Browser Incompatibilities with IE6/IE7?

8 02 2008

Check out the ie7-js javascript library. It helps with a bunch of css, layout, hover, PNG support, etc.

 Project Site - http://code.google.com/p/ie7-js/

Demos -  http://ie7-js.googlecode.com/svn/test/index.html

Date : 8 February 2008 at 16:23
Comments : No Comments »
Categories : CSS, AJAX, Javascript
del.icio.us:Sick of Browser Incompatibilities with IE6/IE7? digg:Sick of Browser Incompatibilities with IE6/IE7? spurl:Sick of Browser Incompatibilities with IE6/IE7? wists:Sick of Browser Incompatibilities with IE6/IE7? simpy:Sick of Browser Incompatibilities with IE6/IE7? newsvine:Sick of Browser Incompatibilities with IE6/IE7? blinklist:Sick of Browser Incompatibilities with IE6/IE7? furl:Sick of Browser Incompatibilities with IE6/IE7? reddit:Sick of Browser Incompatibilities with IE6/IE7? fark:Sick of Browser Incompatibilities with IE6/IE7? blogmarks:Sick of Browser Incompatibilities with IE6/IE7? Y!:Sick of Browser Incompatibilities with IE6/IE7? smarking:Sick of Browser Incompatibilities with IE6/IE7? magnolia:Sick of Browser Incompatibilities with IE6/IE7? segnalo:Sick of Browser Incompatibilities with IE6/IE7? gifttagging:Sick of Browser Incompatibilities with IE6/IE7?

Getting JBoss Server up, running and debuggin in Eclipse Part 2

8 01 2008

I assume that you’ve seen my last post about how to get JBoss Server setup in Eclipse. Now here is a quick tutorial to get JBoss debugging up and running.

Click on Window>Show View>Other…

Select Server>Servers

In the Servers Tab of Eclipse right click

New>Server

For the options use:

Server’s host name: localhost

Select the server type: JBoss v4.0 ***Not JBoss, a division of Red Hat

JRE: jdk1.5.0_12

Application Server Directory: c:/jboss

On the next screen accept the defaults…

jboss server 2

If you plan on using Service Capture to capture net traffic on your local machine, then you should install the server on your LAN IP address, not 127.0.0.1.

Now you just need to make sure that you have your EAR deployed to your JBoss deploy directory.

Click Finish

Now for the grand finally right click on the Server and click on Debug. Done.

Date : 8 January 2008 at 21:33
Comments : No Comments »
Categories : Java
del.icio.us:Getting JBoss Server up, running and debuggin in Eclipse Part 2 digg:Getting JBoss Server up, running and debuggin in Eclipse Part 2 spurl:Getting JBoss Server up, running and debuggin in Eclipse Part 2 wists:Getting JBoss Server up, running and debuggin in Eclipse Part 2 simpy:Getting JBoss Server up, running and debuggin in Eclipse Part 2 newsvine:Getting JBoss Server up, running and debuggin in Eclipse Part 2 blinklist:Getting JBoss Server up, running and debuggin in Eclipse Part 2 furl:Getting JBoss Server up, running and debuggin in Eclipse Part 2 reddit:Getting JBoss Server up, running and debuggin in Eclipse Part 2 fark:Getting JBoss Server up, running and debuggin in Eclipse Part 2 blogmarks:Getting JBoss Server up, running and debuggin in Eclipse Part 2 Y!:Getting JBoss Server up, running and debuggin in Eclipse Part 2 smarking:Getting JBoss Server up, running and debuggin in Eclipse Part 2 magnolia:Getting JBoss Server up, running and debuggin in Eclipse Part 2 segnalo:Getting JBoss Server up, running and debuggin in Eclipse Part 2 gifttagging:Getting JBoss Server up, running and debuggin in Eclipse Part 2

« Previous Entries

Navigation

  • AJAX (5)
  • ASP (1)
  • Comedy (2)
  • CSS (4)
  • Digital Media (3)
  • Firefox Plugins (1)
  • Flash (26)
  • Flex (23)
  • Friends/Family (5)
  • Geeky things (13)
  • General (5)
  • Java (5)
  • Javascript (5)
  • Real Estate (1)
  • Ruby/Rails (7)
  • SharePoint (1)
  • Things to Do (1)
  • Travels (2)
  • Uncategorized (12)
  • Vongo (4)
  • Windows Media Center (1)
  • Wine (1)

Search

Links

  • Blogroll
    • Danny Patterson
    • Sean Gage
    • Steve DeRidder
    • Steve Ogden (Chop)
    • TJ Moretto
  • Archives

    • October 2008
    • September 2008
    • April 2008
    • February 2008
    • January 2008
    • November 2007
    • October 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
    • August 2006
    • July 2006
    • June 2006
    • May 2006

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox