Great solution to the "terminal server has exceeded max number of allowed connections" message.
Once a server has exceeded 2 connections (in a typical config) you will get the error "terminal server has exceeded max number of allowed connections". I get this all the time after my net drops.I found a cool way to get around this other than logging on locally / rebooting the system. Remote desktop also has an option for a console login (just like if you were to be at the physical system). This will allow you to have a 3rd session in which you can disconnect your expired sessions. To do this type mstsc /v:ServerAddress /f /console(the /f is...
Security Series - Part 2 (IDS Systems)
This is more of a post for you server admin types.
We all know that a server should have these three things at a minimum:
1. Firewall
2. Antivirus
3. Patches and up to date software
But most people do not think about (or even know about) intrusion detection systems.
What an IDS does is monitor all the traffic comming across your network
card and looks for attempts to hack / learn / dos your server. If you
are one of those people who think that there is not a hack attempt on
your computer then install an IDS system right now.
I am currently trying SNORT....
Security Series - Part 1
I think that Cross Site Scripting and SQL Injection Attacks have to be one of the most commonly exploited security holes out there and I see tons of posts to security lists about XSS/SQL Injection holes in all sorts of applications. ASP.NET has a lot of builtin protections for these kinds of things but is not immune. For this article I am going to focus on XSS. I might post about SQL Injection later.For those of you who don't know what XSS is I will give a simple example. Lets say that I put this value into a textbox: <script>Alert('Hello');</script>....
TDD step by step
Jean Paul just posted a great video along with code on doing TDD (along with rhino mocks) on his site. Check it out here
Msdn with comments.... FINALLY!
One thing I have loved about PHP is their website documentation. The documentation has a good system of syntax, examples, and related methods (i.e. the substr documentation has links to ereg, trim, word_wrap, etc.). I have loved this as often I am looking up a method to do a task like word wrapping and see that there is already a function to do this. What I love even more is their 'User Contributed Notes' section that allows users to post notes about the method. I have found lots of helpfull code snippets and tips in these comments as well as...
Lack of posts
Sorry for the lack of posts recently. I am currently working on moving my servers to a new colocation facility and have been creating backup servers and running simulations to make the move as seamless as possible. Hopefully by the end of next week I will have moved them and life will have returned to semi-normality.
SQL Security Script 2
A while back I posted a script someone shared with me to generate grants on functions and stored procs to a user. I discovered it is pretty crappy and convoluted. I built this instead:select 'grant execute on ' + [name] + ' to public'
from sysObjects
where (
xtype = 'P'
or xtype='FN'
)
and [name] not like 'dt_%'
Looking toward the future
I recently attended the Calgary Code Camp and had a few insights into the future of our world.I feel that the need to specialize is comming. As much as I hate specialization as it can make you obsolete pretty quickly (i.e. foxpro specialists are few and far between). I know asp, vb, c#, javascript, sql2000, reporting services, crystal, access, php, networking, and a whole bunch of other stuff. I find that I use a lot of these skills on a regular basis but it is harder and harder to keep up to speed. I feel that I don't know enough...
Rant Victim: Shaw Cable
I used to hate Shaw when they were doing that whole @Home thing. They really sucked and if you remember those days you probably agree. But Shaw is not a dumb company and realized this and urned it around. I have had great customer support. When I moved into my condo Telus screwed me around (My move in date was the 15th and that is the day they shipped my modem to me and I never receeived it and got billed for not returning it). Shaw on the other hand came the next day and had me all up and...