Friday, May 22, 2009

Use Process Lasso to prevent your computer from freezing

When Windows freezes it usually happens for one single application or process taking up all the cycles of the CPU thereby denying other running processes their share of the CPU. The result is that the whole of Windows and all applications become unresponsive and we say that the computer has frozen. One offending application can bring the whole system down because there is no way of monitoring and restricting how much CPU cycle a particular application can consume.

Process Lasso is an application that aims to solve this issue. Process Lasso is a unique new technology intended to automatically adjust the allocation of CPU cycles so that system responsiveness is improved in high-load situations. It does this by dynamically temporarily lowering the priorities of processes that are consuming too many CPU cycles, there-by giving other processes a chance to run if they are in need. This is useful for both single and multi-core processors.

In addition, Process Lasso offers capabilities such as default process priorities, default process CPU affinities, termination of disallowed processes, and logging of processes executed. With Process Lasso you essentially create rules to manage processes running on your system.




The application sits on the system tray and gives an easy access to all settings through a right click menu. Process Lasso allows you to create rules for various programs. For example, you can:

- Make notepad.exe run at below normal priority each time its launched.
- Make firefox.exe run only on CPU #1 each time its launched.
- When any process is consuming 35% or greater of the CPU for 1.5 seconds or more and the total system CPU usage is 95% or greater, lower that process's priority until it returns to 5% CPU utilization.

prevent file copying, deletion and renaming?

On a computer with multiple users some kind of access restriction and sharing permission is essential. The nature of the security permission can vary depending upon who has access to the computer and their experience level. Generally, system administrators or owners like to implement any of the 3 kinds of security restrictions – file copying, deletion and modification. The latter two types of protection is easy to enforce in NTFS formatted drives, but preventing copying can be a little tricky.

Hundreds of articles has been written on NTFS permissions and many of you readers might already know it, but for the sake of completeness I will have to include the basics.
Preventing file reading or execution, modification and deletion

These permissions can be set on NTFS formatted drives. Open Windows explorer and go to Tools >Folder Options, click on the View tab and uncheck the box “Use simple file sharing (Recommended)”.

ntfs-file-permissions

Right click on the folders or files you want to set restrictions to and click on Properties. Under the Security tab you can now set Allow or Deny permissions on a number of files operations like:

* Full Control: Users can modify, add, move, and delete files, as well as their associated properties and directories. In addition, users can change permissions settings for all files and subdirectories.
* Modify: Users can view and modify files and file properties, including deleting and adding files to a directory or file properties to a file.
* Read & Execute: Users can run executable files, including scripts.
* Read: Users can view files and file properties.
* Write: Users can write to a file.

More permissions are available under the Advanced tab.
Preventing file copying

Preventing copying of files is a bit difficult. The most effective way to prevent unauthorized copying of files from your computer is disabling access to takeaway devices, in other words removable drives. Locking optical drives and disabling USB ports or preventing write access to USB devices is the most fool proof way to restrict file copying, provided the user cannot connect to the Internet. Otherwise they can simply upload files to a remote server and download it later from their own computers. Another way to prevent file copying is to use anti-file copy software. We will look at both methods.

1. Preventing file copying by disabling access to optical drives and USB ports

Optical Drives:
Windows does not provide an easy way to disable access to optical drives. The only way to do it is disabling them in the BIOS and then locking the BIOS with a password. Of course you wouldn’t be able to access them either, so it isn’t the most smartest thing to do. The alternative approach is to use an optical drive locker such as the CD/DVD Drive Locker. It lets you disable selected optical drives so that they become unresponsive to the open/close button. CD/DVD Drive Locker is actually intended to prevent kids from playing with the drive tray and provides very feeble protection as it can be easily overridden.

cd-dvd-locker

USB ports:
USB ports can be disabled quite easily using the registry editor. There are two kinds of restrictions you can put on a USB port – a) disable write privileges to USB port or b) completely disable USB ports

A. Disabling write access to USB ports: Open Windows registry editor and navigate to the following key

HKEY_LOCAL_MACHINE\System\CurrentControlSet\ Control\StorageDevicePolicies

Create a new DWORD, name it WriteProtect and put the value as 0. To allow write access change the value to 1.

B. Disabling access to USB ports: Open Windows registry editor and navigate to the following key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet \Services\UsbStor

Double click on the entry Start on the right pane and set it’s value to 4 (Hexadecimal). To enable USB ports again change the value back to 3.

2. Preventing file copying using anti-file copy software

There are a few anti-file copy software in the market, most of them are commercial. I managed to find one freeware among the lot - M File Anti-Copy

M File Anti-Copy prevents copying of files by disabling the Windows clipboard. With the clipboard disabled, you cannot copy and paste files not only to removable drives but even within partitions and folders. And because the clipboard is disabled you cannot even copy text. The protection feature can be activated or deactivated only by providing the correct password.

mfile-anti-copy

When the application is active you are allowed to copy and move files via the built-in file-copier. The software also protects against file deletion and renaming, but this is in a separate section and you have to apply this setting to individual files and folders, which isn’t very helpful.

The program however suffers from a serious flaw – it can’t prevent copying using drag and drop. This is because M File Anti-Copy prevents file copy by disabling the clipboard. Since drag and drop does not use the clipboard, the program fails. You can still use it and just hope the users don’t discover the loophole.

M File Anti-Copy also provides some additional protection like disabling the Task Manager and regedit.

Prevent file copying is never fool proof, there always be some workaround. The best kind of protection will be to disable all removable drives through either the BIOS or the registry editor, and disconnect the computer from the network to prevent file transfer. Or simply deny physical access to the computer when you are not around
Were you the type of kid that would get in trouble because you were always blowing something up or mixing things together that shouldn’t be mixed? Do you now have a boring 9 to 5 job that makes you yearn for those free days in your childhood when all things were possible? If you answered yes to those questions, then this post is for you. I will show you six cool web sites that you can use to unleash the mad scientist within and try fun science experiments at home.

Edible/Inedible Experiments Archive

science experiments

This list of fun and very simple experiments should quickly bring back fond memories from your childhood. The experminents involve simple items that you can find around your house and they should not take too long to setup. My personal favoriites are the Baking Soda Volcano and Soda Geyser.

Evil Mad Scientist

websites for science

This web sites motto is, “Making the World a Better Place, One Evil Mad Scientist at a Time”, and each week they feature a new do it yourself project. These projects are a bit more advanced then the ones from the previous web site and you may have to go out and purchase some things to create your own project, but the ideas are way cool. Since I am a robot nut, I was partial to the Bristlebot, which was a tiny vibrating robot made from the head of a toothbrush.

Joey Green’s Mad Scientist Experiments

These fun and easy experiments involve common materials you will find around the house. Joey Green presents hundreds of little-known uses for well-known products, but his science experiment section is a true treasure.

Mad Scientist Party

Why not get some of your friends together and host a mad scientist party? This site will tell you all you need to know about hosting such a party, including invitations, games, and even an evil eye cake.

PBS Zoom Science

The Public Broadcasting Service (PBS) hosts a very popular kids show called Zoom science. Not only does the associated web site include fun experiments seen on the show, but you can even send in the results from your own wacky science experiment and they may feature it on the show.

Steve Spangler Science Experiments

Steve Spangler performs science experiments for a weekly local television show, but his web site features some really fun and simple science experiments you can do at home. Steve tries really hard to make science fun.

Sunday, April 19, 2009

Search Image Online

Image search is evolving quickly. Today you don’t even need to use words to search images. Now you can use colors!. That’s right you can search images by color.

Let’s search the web for an autumn-like palette (yellow, red, brown) using the following 3 services. Let’s see how the search results are like.

1. PicItUp

PicItUp is a visual image search engine that combines word-based with color based search.

Test it: search for [autumn] and choose any color from the left column (I chose yellow). Now let’s look at the results:

picItUp - search images by color

Impressive, isn’t it?

What the tool lacks: you can’t combine several colors to refine your search (for example you can’t search for a yellow-red palette) - you are only able to search for one color.

2. Multicolr

Unlike the above one, with the Flickr-based Multicolr (already mentioned at Make Use Of) service you can combine as many colors as you want.

Test it: choose several colors and watch how the image list changes with each color added (I combined red and yellow):

Multicolr

What the tool lacks:you can’t combine word-based and color-based searches with this service. You are limited with playing with colors only.

3. Etsy

Etsy, an online shop of handmade products, has developed color search for their own product database.

Test it: It’s real fun to play with. Just browse your mouse across the screen and watch various colors and same-palette products pop up.

Etsy - search images by images

What the tool lacks: here you are unable to either set the color option or the search term. Nonetheless the tool is such fun to use that you definitely need to try it out.

Now, what do you think could be possible practical applications for these tools?

Next Movie ?

If you frequently find yourself cluelessly searching for some good movie to watch, this article is for you.

It will give you a quick overview of two little-known movie recommendation sites, that are easy to use, easy to get started and indeed help you find the movies you’re likely to enjoy.

Tastekid - Quick Movie Recommender

Tastekid gives you a basic search field where you can enter a movie title of your choice and get back a list of similar movies. No need to signup or rate anything, just enter the movie you like and discover similar movies. Quick and easy.

Movie Recommender

When it comes to movie recommendations it might need some improvements though. I’d say only about half of the movies it returns are actually similar to the one you entered. However it still works great for me.

Its killer feature is the ability to get a quick preview window for any listed movie without leaving the page. Simply point your mouse cursor over the ‘?’ mark next to each title and you’ll get a small pop-up window with short movie description and trailer. Very useful.

Tastekid - Movie Recommendations

MovieLens - Personalized Movie Recommendations

As stated above, MovieLens is a personalized movie recommendation engine. What this means is that your recommendations are tailored to your taste and based on your ratings of other movies.

The obvious advantage of it is that you get better recommendations. The disadvantage is that it takes time to setup and get it working. First of all, you have to signup and rate at least 15 titles before it can recommend any movie to you.

Movielens- movie ratings

Now, you should also keep in mind that the more you tell Movielens about the movies you love and hate, the better your recommendations become. So just keep on rating as you browse the site.

Once you have rated your first 15 movies, you will be able to access your account area. Below is a screenshot of my account page (click to enlarge).

Although there are plenty of features here, you will rely upon only 3 things.

    1) Predictions

    Based on your movie ratings, MovieLens generates a so called prediction ratings for movies you haven’t seen yet.

    what movie should I watch next

    The higher predictions are the more likely you will enjoy the movie. Moreover, your search results on Movielens are also sorted based on the prediction ratings.

    2) Search

    The Search feature is what you’re probably going to use the most. MovieLens lets you search for recommended movies by genre, year of release, title and more. Now, let’s say you want to find some good crime movie that you haven’t seen earlier. For that, simpy leave the title field blank, select the crime genre, the year of release and click search. Movielens will then get you all the crime movies matching your criteria, sorted based on prediction ratings.

    There is also an Advanced Search mode where apart from searching for all the “best movies” within a certain domain, you have an option to exclude certain genres. That is to say, you can see what the “best movies” are that are in the crime category but not in Drama. Sweet.

    3) New movies

    Another neat feature, is a quick list of newly released movies along with a prediction for each of them. See a sample below (based on your ratings, your list might be different)

That’s about it. There are some other things you can do at Movielens but I don’t think any of them are really unique enough to be mentioned here.

To sum up, I think both websites offer something useful. Tastekid is more suitable for quick lookups and trailer peaks, movielens on the other hand for more personalized recommendations and for discovering great movies you never knew about. We have also reviewed a service called The Filter, though my personal choice stays with the above ones.

10 Apps !!!

Ubuntu comes pre-installed with a wealth of apps - covering almost every task you need to do, while still managing to fit on a CD. Are you ready to discover some pretty cool Linux apps that don’t get the attention they deserve? Let’s check them out.

You can easily install any of these apps using the ‘Add/Remove Applications’ from the upper panel.

cool ubuntu linux apps

1. Midori

midori - light weight web browser

Midori is a web browser that uses the well-known WebKit rendering engine, providing quite a speed bump from Firefox and standards complying page rendering. Midori is currently packaged into Xubuntu and features include tabs, bookmarks and customizable search engine box. The browser is extensible via Javascript.

2. gDesklets

gDesklets - widgets for linux

gDesklets is a platform for widgets, tiny applets sitting on your desktop in a symbiotic relationship of eye candy and usefulness. You can populate your desktop with status meters, icon bars, weather sensors and news tickers.

I managed to configure gDesklets to emulate the OS X Dashboard feature in addition to the standard placement on the desktop.

3. AcidRip

acidrip - rip and encode DVDs

AcidRip is a GTK application for ripping and encoding DVD’s. It neatly wraps MPlayer and MEncoder, which I think is pretty handy, seeing as MPlayer is by far the best bit of video playing kit around for Linux.

As well as creating a simple Graphical Interface for those nervous of the MEncoders command line interface, it also automates the entire process.

4. Cheese Webcam Booth

take pics using webcam

Cheese is a Photobooth-inspired GNOME application for taking pictures and videos from a webcam. It also includes fancy graphical effects based on the gstreamer-backend.

5. Gmount-iso

image

Gmount-iso is a small tool written using PyGTK and Glade. It allows you to easily mount your CD images.

6. KGRUBEditor

GRUB editor

A tool to view and edit the menu.lst file of the GRUB boot manager. It offers many features and it is the perfect solution for those who want to change the way GRUB works, without messing with the menu.lst file.

7. Flickr Uploader

Flick uploader linux

Postr is a small app that lets you upload photographs to Flickr, with tight integration into the GNOME desktop.

8. DOS Emulator

DOS emulator

DOSEMU stands for DOS Emulation, and allows you to run DOS and many DOS programs, including many DPMI applications such as DOOM and Windows 3.1, under Linux.

Features include:

  • word size and addressing modes of the iAPX86 processor family’s “real mode,” while still running within the full protected mode environment
  • simulate a hardware environment over which DOS programs are accustomed to having control.
  • provides DOS services through native Linux services; dosemu can provide a virtual hard disk drive which is actually a Linux directory hierarchy.

9. E-book reader

ebook reader for linux

FBReader is an e-book reader with a lot of great features:

  • supports several open e-book formats: fb2, html, chm, plucker, palmdoc, ztxt, tcr (psion text), rtf, oeb, openreader, non-DRM’ed mobipocket, plain text, epub
  • reads directly from tar, zip, gzip, bzip2 archives (you can have several books in one archive)
  • supports a structured view of your e-book collection
  • automatically determines encodings
  • automatically generates a table of contents
  • keeps the last open book and the last read positions for all open books between runs
  • automatic hyphenation (patterns for several languages are included)

10. HomeBank

homebank for linux

HomeBank is a fast, simple and easy to use program to manage your bank accounts. It differs from gnucash for the better look and feel, and for the faster start-up speed. It has a lot of features such as easy analysis with graphical charts (statistics, budget, overdrawn, car cost), multi-accounts support, budget management, reminders, import from OFX/QFX-CSV files, visual status of operations. It is based on GTK2.

Shell Commands LINUX

Hollywood movies often have a tech geek entering commands and doing amazing things. While it may not be that easy to hack into public transport systems or or control the world like Eagle Eye, the command line is certainly a geeks playground.

Want to show off your command line prowess to your geeky friends but don’t know any cool tricks? Well you are in luck. The following websites will give you plenty of tricks and tips to satiate your hunger:

shell-fu

shellfu - learn linux command line

“Fu” is defined as possessing superior skills related to an art. Aptly named “Shell fu” houses user-submitted command line goodies, tips and tricks. You can vote entries up if you like them and vote them down if you find they are harmful or do not work as advertised.

If you have some tricks of your own you can even submit them and they will be added to the site after the moderators have a look at them.

command-line-fu

command line fu

Shell fu and Command-line fu are almost identical in concept. Command-line fu allows users to share their CLI wisdom with others and also vote up and down on submitted snippets.

Both shell-fu and command-line fu allow you to follow snippets through RSS and Twitter although I did find command-line fu offers a bit of extra control on RSS feeds.

snipt

snipt - linux command line tips

Snipt is the “long term memory for coders”. Snipt is a collection of frequently used commands and code snippets. You can share these snippets with your co-workers or make them public. Public snippets are viewable to everyone and for our specific case, we are interested in the bash section. However feel free to browse other sections as well.

good coders code, great reuse

good coder code

While all the other resources mentioned utilize the power of the crowds to build up content, this one is different. It is Peteris Krumins blog about programming, software and hacking.

What’s so special about it? The famous sed, awk one liners, vim tips, plugins and cheat sheets that Peteris has fabricated over time. The occasional musical geek friday is fun as well.

While it may not be updated as often as the others, but more often than not the content is worth the wait.

Pick up the basics

While the places mentioned above have plenty of content to keep you busy learning, they are not the best places to start your journey. If you want to start with basics have a look at Introduction to the Linux Command Line published on MakeUseOf earlier. You may also find command line basics here and here. For advanced topics you can read the Advanced Shell Scripting Guide.

That’s plenty of information to keep you involved and build up your Linux-fu! Do you know of any good sites to learn Linux commands? Or have you referred to a Linux command line tutorial that you really like? Share with the world in the comments!