Using Notebook As a Web Server

by Dmitry Kirsanov 16. January 2012 22:35

notebooksThere are many reasons why people decide to host their web projects on notebooks. Either way, the question is not why, but how. Like everywhere else, there are pros and cons in hosting of your web application on notebook hardware, so we are going to discuss here how to do it properly and get most out of it.

Possible reasons to host your web server on a notebook

Usually people think about hosting on notebook, for one or many of these reasons:

  • The price of hosting is higher than expected revenue, or no profit is expected.
  • There are less than 1000 users expected to use this web project.
  • The web application is not consuming much of resources.
  • Notebook is powerful enough.
  • You can’t sell this old notebook, but also don’t want to refurbish it, as it is still working as designed. And now you have this web project of yours that needs cheap hosting.
  • Your internet connection is fast and reliable and you see no reason or have no resources to acquire new hardware and data center (DC) allocation.
  • You want to host the web application on-site but want to keep your electricity bill at minimum.
  • You have to make your server mobile.

More...

ExecuteAs utility

by Dmitry Kirsanov 28. October 2011 01:50

Well, yet another useful command line utility. This one is for system administrators in need to run some command on behalf of another user.

Why bother, if there is a command in Windows, called runas? Well, mainly because it doesn’t accept the password as command line parameter, and also because I wanted to add more features to such simple process.

This is the help text you get when running this program without parameters:

Syntax: executeas.exe /u:UserName /p:Password /x:Priority /d:Domain /a:Affinity /quiet /hide /noprofile /wait /t:60 [program name]
Where t is a timeout in seconds to wait for program completion.
The only required parameter is program name. You can place command line arguments after the program name.

As you can understand, UserName is the user name of target user without the domain name,
Password is his password,
Priority is the priority at which you want this program to be executed (1 – idle, 2 – below normal, 3 – normal, 4 – above normal, 5 – high),
Domain is the domain part of the user name, if needed,
Affinity is how many CPU cores you’d like to use,
Quiet won’t produce any output,
Hide will hide the target program, so it will not be displayed to user,
NoProfile means that profile of target user won’t be loaded,
Wait will wait until the target program will be completed – useful when running from batch file.

So, here it is and have fun!

As  always, .net framework is required for this program to run. This time it’s .net 3.5, which is installed by default on Windows 7 and is available as feature on Windows Server 2008.

ExecuteAs.zip (3.99 kb)

Windows Live is alive

by Dmitry Kirsanov 12. September 2011 03:10

Do you remember such thing as Outlook Express? A lightweight e-mail client from Microsoft which was the part of operating system since the stone age. It was separated from Windows for good, so unlike in Windows XP, we don’t have to cut it from the distribution DVD anymore. However, once separating some applications from the system, Microsoft added a few more tools to the Live family.

One of them is the one I am using at this particular moment – Windows Live Writer. The thing looks like a Microsoft Office 2010 product, something similar to FrontPage, but it’s about blogging. Whatever platform you are using for your blog, it can connect to it and you can use this wonderful editor without ever having to log into your blog. Styles, working with resources - everything is here. And it’s free.

Another one is irreplaceable for me and it is called Live Mesh. Once you’ve got your free 5Gb space at Windows Live, called SkyDrive, you can synchronize folders between your multiple computers. Like, for example, between home and work machine, so you can make sure that two folders on these machines are equal. Works perfectly for source code sharing for my notebooks and desktop, as having multiple versions of hundreds of files is a pain.
Another feature of Live Mesh is remote desktop, which works also through proxy and is just great when you want to log into your home computer but don’t want to set the remote desktop NAT rules. At some point it is more secure, as you won’t forget to switch off your rules later.

I know how hard it is to find a gem in a pile of software and services, so if you have a problem that any of these two programs solve, try them out!


Month List