One thing that has started to bother me since going to a VS 2010/IIS7 setup is that by default the time-out on the debugger is incredible short. You start looking into a problem and be on the point of realisation when a Message Box pops up saying that the thread is aborting.
Helpful, that is not.
After a little digging about I found that it has something to do with the application pool settings in IIS. To increase the time the thread is available open IIS Manager, open the application pool your site is running on and click "Advanced Settings". In the property dialog that comes up there is an item labelled "Ping Maximum Response Time (seconds)". Set this value to your desired value and click OK.
I have mine now set to 6000 which should be enough for now.
Search...
9 August 2011
8 August 2011
Arch KDE SC 4.7 Missing KDM Background
If after upgrading KDE to 4.7 on Arch you notice that your KDM theme is missing you need to run the following:
pacman -S kde-wallpapers
It turns out the KDM default theme use's an image from the KDE Wallpapers package which has been split out on it's own from 4.7.
pacman -S kde-wallpapers
It turns out the KDM default theme use's an image from the KDE Wallpapers package which has been split out on it's own from 4.7.
3 August 2011
Arch Linux Zope Interface Update Issue
The issue is old now, I have ignored it for about a month of pacman -Syu but in updating to KDE 4.7 tonight I hit it again.
If you pacman -Syu and get
error: failed to commit transaction (conflicting files)
python2-zope-interface: /usr/lib/python2.7/site-packages/zope.interface-3.6.3-py2.7.egg-info/ exists in filesystem
The you need to go to this page and follow the two simple commands.
It would appear to be a simple bug in pacmans conflict resolution handling. It had to happen sometime I guess!!
If you pacman -Syu and get
error: failed to commit transaction (conflicting files)
python2-zope-interface: /usr/lib/python2.7/site-packages/zope.interface-3.6.3-py2.7.egg-info/ exists in filesystem
The you need to go to this page and follow the two simple commands.
It would appear to be a simple bug in pacmans conflict resolution handling. It had to happen sometime I guess!!
Disable Visual Studio 2010 w3wp Warning
So I have finally got to switch to my new laptop (windows 7, i5 lots of RAM!) and reinstalled all my tools.
This first thing that started to really annoy me was that every time I attempted to attach to the w3wp.exe process to debug Visual Studio showed a message telling me it might be a bit dangerous to do so. Clicking OK allows you to attach and debug as usual. I had to find a way to disable that message.
Apparently you can and I have! Thanks to a great little post over at thethoughtfulcoder.com it appears this can be turned off in the registry.
This is great and saved me some keystrokes however, it is the kind of thing you should be able to disable in Visual Studio itself rather than have to dig about in the registry for.
This first thing that started to really annoy me was that every time I attempted to attach to the w3wp.exe process to debug Visual Studio showed a message telling me it might be a bit dangerous to do so. Clicking OK allows you to attach and debug as usual. I had to find a way to disable that message.
Apparently you can and I have! Thanks to a great little post over at thethoughtfulcoder.com it appears this can be turned off in the registry.
This is great and saved me some keystrokes however, it is the kind of thing you should be able to disable in Visual Studio itself rather than have to dig about in the registry for.
9 June 2011
C# Closing A Form In The Constructor
I had an odd need to close an application if a user failed to set some basic user data in a C# application tonight. The flow was that a very simple dialog was displayed during the main windows constructor call and if they dismissed the dialog the application was to end.
After some head scratching I found the only way to do this was with ...
this.BeginInvoke(new MethodInvoker(this.Close));
After some head scratching I found the only way to do this was with ...
this.BeginInvoke(new MethodInvoker(this.Close));
5 June 2011
Install Dropbox in KDE
I set up a new Linux distro today and the first thing I like to do is install Dropbox.
As a KDE user this is slightly more involved than for those that like to play with Garden Ornaments!
I did post previously a simple guide that showed how to do this but the article has gone! So below is how I set up Dropbox.
First download the Dropbox package. The following two links (32 and 64 bit) should point to the latest builds :
Save the file somewhere in your /home directory and the use an extraction tool to extract the contents into your /home/USERNAME directory. (This should be your /home directory as in /home/andy). This will create a folder called .dropbox-dist (note the . character, this is a hidden folder).
Go to the KDE System Settings application and navigate to the "Startup and Shutdown" node and then the "Autostart" node. Click Add Script and use the file dialog to select the dropboxd file within the .dropbox-dist folder (and yes that is the dropboxd and not dropbox, this is a daemon that will be started on each logon).
Once the dropboxd file name is selected click OK. That is the daemon set up and ready to use.
Now to save logging out and back in again, open your file manager and navigate to the /.dropbox-dist/ directory (once again you will have to enable viewing hidden files and directories to see it), and double click the dropboxd file. This will start the daemon running and will display the Dropbox setup wizard. Within the wizard you can choose to create a new account or connect to your existing account.
As a KDE user this is slightly more involved than for those that like to play with Garden Ornaments!
I did post previously a simple guide that showed how to do this but the article has gone! So below is how I set up Dropbox.
First download the Dropbox package. The following two links (32 and 64 bit) should point to the latest builds :
Save the file somewhere in your /home directory and the use an extraction tool to extract the contents into your /home/USERNAME directory. (This should be your /home directory as in /home/andy). This will create a folder called .dropbox-dist (note the . character, this is a hidden folder).
Go to the KDE System Settings application and navigate to the "Startup and Shutdown" node and then the "Autostart" node. Click Add Script and use the file dialog to select the dropboxd file within the .dropbox-dist folder (and yes that is the dropboxd and not dropbox, this is a daemon that will be started on each logon).
Once the dropboxd file name is selected click OK. That is the daemon set up and ready to use.
Now to save logging out and back in again, open your file manager and navigate to the /.dropbox-dist/ directory (once again you will have to enable viewing hidden files and directories to see it), and double click the dropboxd file. This will start the daemon running and will display the Dropbox setup wizard. Within the wizard you can choose to create a new account or connect to your existing account.
openSuse 11.4
Today I have been sorting my work laptops Linux partition.
Up until recently I have been using Kubuntu on Kermit my work laptop. This was down to it being the CD I had to hand when setting the laptop up for some Linux based development work. Kubuntu was OK but it never seemed as fluid as Arch which is the distro I use by choice. When it came to running the upgrade between 10.10 and 4.11, it just failed and bricked the partition. If ever I loved Arch's rolling release model more it was then! So today, wanting a distro that I could just install and use, I opted to try openSuse 11.4. I haven't used Suse since about version 9.3, so it has been a while. So far I am very impressed. It boots fast and looks great. I have set up my standard apps and over the next few days I will get my development environment set up so fingers crossed I can use this for a while without issues.
The KDE implementation seems to be much more polished than Kubuntu. In fact I would say this is the best, most well integrated and polished 4.6 implementation I have seen so far.
The only gotcha I have faced was that the installer defaulted the host name to some standard string. It's easy to fix, open the /etc/HOSTNAME file in your favorite editor as root and change the single entry to the desired host name. Save the file and all is well in the world. Simple fix but it would be nicer if the installer did a better job with regard to this.
Up until recently I have been using Kubuntu on Kermit my work laptop. This was down to it being the CD I had to hand when setting the laptop up for some Linux based development work. Kubuntu was OK but it never seemed as fluid as Arch which is the distro I use by choice. When it came to running the upgrade between 10.10 and 4.11, it just failed and bricked the partition. If ever I loved Arch's rolling release model more it was then! So today, wanting a distro that I could just install and use, I opted to try openSuse 11.4. I haven't used Suse since about version 9.3, so it has been a while. So far I am very impressed. It boots fast and looks great. I have set up my standard apps and over the next few days I will get my development environment set up so fingers crossed I can use this for a while without issues.
The KDE implementation seems to be much more polished than Kubuntu. In fact I would say this is the best, most well integrated and polished 4.6 implementation I have seen so far.
The only gotcha I have faced was that the installer defaulted the host name to some standard string. It's easy to fix, open the /etc/HOSTNAME file in your favorite editor as root and change the single entry to the desired host name. Save the file and all is well in the world. Simple fix but it would be nicer if the installer did a better job with regard to this.
Subscribe to:
Posts (Atom)