howto

How to transition to Functional Programming

It seems that the next major transition / fad will be towards Functional Programming. What resources / experiences are you finding necessary to grok functional programming?...

How do you disable browser Autocomplete on web form field / input tag?

How do you disable Autocomplete in the major browsers for a specific input (or form field)? ...

My website got hacked... What should I do?

My dad called me today and said people going to his website were getting 168 viruses trying to download to their computers. He isn't technical at all, and built the whole thing with a WYSIWYG editor. I popped his site open and viewed the source, and there was a line of Javascript includes at the bottom of the source right before the clo...

How do you create your own moniker (URL Protocol) on Windows systems?

How do you create your own custom moniker (or URL Protocol) on Windows systems? Examples: http: mailto: service: ...

How do you mock a Sealed class?

Mocking sealed classes can be quite a pain. I currently favor an Adapter pattern to handle this, but something about just keeps feels weird. So, What is the best way you mock sealed classes? Java answers are more than welcome. In fact, I would anticipate that the Java community has been dealing with this longer and has a great deal...

Preferred way to use favicons?

I was trying to add a favicon to a website earlier and looked for a better way to implement this than to dump a favicon.ico file in the root of the website. I found this nice little guide: How to Add a Favicon. However, the preferred method did not work in IE (7) and the second method is the old fashioned way (which I resigned myself to...

How do I debug Javascript in Visual Studio 2005?

I just saw this mentioned in this thread and didn't know it could be done. I'm a VS newbie, so how do you do it? Is there a separate debugger for Javascript? I know how to work the one for code-behind pages... I usually use Firebug to deal with debugging JS. EDIT: I'm using VS 2005. ...

HowTo Disable WebBrowser 'Click Sound' in your app only.

The 'click sound' in question is actually a system wide preference, so I only want it to be disabled when my application has focus and then re-enable when the application closes/loses focus. Originally, I wanted to ask this question here on stackoverflow, but I was not yet in the beta. So, after googling for the answer and finding only ...

How to learn Python?

For a beginner's perspective, can you answer the following? Best tool(s) for Python development (for example, Notepad and Vim) Best book to get started Best website for the Python beginner Best problem domain to do a sample project (what are Python-based solutions best suited for?) ...

How to get a pay raise?

Lot's of people have trouble asking for a raise (me included). Post your tips, stories, anything that may help. ...

Developing a online exam application, how do I prevent cheaters?

I have the task of developing an online examination software for a small university, I need to implement measures to prevent cheating... What are your ideas on how to do this? I would like to possibly disable all IE / firefox tabs, or some how log internet activity so I know if they are googling anwsers...is there any realistic way to...

Using CSS how best to display name value pairs?

Should I still be using tables anyway? The table code I'd be replacing is: <table> <tr> <td>Name</td><td>Value</td> </tr> ... </table> From what I've been reading I should have something like <label class="name">Name</label><label class="value">Value</value><br /> ... Ideas and links to online samples greatly a...

How do I enable more than 8-bit colors in Terminal.app?

In the Vim and Emacs terminal apps, the color schemes look horrid. How do I enable the colors to be as vibrant as the GUI version (or more than 8 colors for that matter)? Should I just give up, and move over to their respective GUI applications? And if so, which? ...

MVC C# custom MvcRouteHandler - How to?

Does anyone have experiences in providing a custom MvcRouteHandler? In my application I'd like to implement a globalization-pattern like ">http://mydomain/en/about_ or ">http://mydomain/de/about_. As for persistance, I'd like to have a cookie read as soon as a request arrives and if there is a language setting in this cookie apply it (...

"Expires" in http header for static content? how-to

What is the best way to add "Expires" in http header for static content? eg. images, css, js The web server is IIS 6.0; the language is classical ASP ...

What is a good tutorial/howto on .net / c# socket programming.

I'm porting old VB6 code that uses the Winsock control to C#. I haven't done any socket programming and I wonder if anyone has a good reference/tutorial/howto that I can use to start getting up to speed. I'm appealing to the hive mind while I proceed with my generally unproductive googling. I'm using UDP, not TCP at this time. ...

XNA Game Studio 3D model editor suggestions

I want to create basic low-poly 3D models to use in XNA Game Studio games. What cheap/free tools do people recommend? And does anyone have any links or snippets of code that show how to load 3D models of some sort into XNA and then draw them on the screen? ...

Can anyone recommend a primer to Erlang?

I've recently found myself getting more and more interested in Erlang. I've purchased a book (Programming in Erlang) and started reading up on the basics. Reading books is time consuming so I am looking to shortcut this a bit and go back to the book later. What I lack is a good introductory tutorial. Kind of like, hands on, this is wha...

Running Trac on Windows?

Looking for a guide/tutorial that easily explains how to setup and run trac with subversion on windows. ...

What is the best way to learn C? What next after K&R?

I am able to program in Lisp, Python, Ruby, JavaScript and Prolog and I have been willing to learn how to program in C for a very long time now. I know the syntax and basic concepts (I've actually read Kernigham & Ritchie), but I've never been able to pass through the writing “Hello world!” stage. So, my problem is related not to the l...