TECH GUIDE BLOG

Tech Guide Programming Tutorial Tips Tricks

Archive for July, 2009

Fast Recovery Windows without Formatting

Posted by Admin On July - 26 - 2009

Does Windows XP or Vista not running as usual? Some missing shortcut and Windows wallpapers could make people feel uneasy and annoying. Maybe you’ve installed some programs but not successfully installed on your computer. After you’ve installed it, Windows can’t get itself run normally. Can’t run Task Manager, Windows always displaying error messages, you don’t have to format Windows. Windows has the built-in System Scan to check the current system files with the original files of Windows.

sfc/scannow

sfc/scannow

For XP you have to insert your XP installation CD to do scan and for Windows Vista, you have to run cmd.exe as Administrator to do this (both XP and Vista run this scan with Command Prompt). After you open it, type sfc/scannow and click enter to start the scan. It will takes some time. I tried this a long ago and it’s quicker, easier and safer than you do format.

This trick is kinda old, but for me this trick is one of the best way to recover and fix your Windows besides formatting. I once used it when still running XP and I lost my Windows wallpapers. I’m feeling uneasy when some of files of Windows are missing although they’re not so important, even not used by me. So I tried this trick and it’s work, feel relieve don’t have do format to get back my Windows wallpapers. Most of you maybe saying to me “You can copy your friend’s wallpapers, can’t you?”

Popularity: 7% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

Circular Queue C++

Posted by Admin On July - 16 - 2009

Let’s get to the point, what’s the different beetwen Circular and Linear? Just like previous post, the different is the head is always move around or you can say dynamic. The first and the last data is likely become linked to another one. If we do enqueue, the tail will be point to the new data. If you can see the picture below, you will know that the data are never move like linear queue, but the head node. This head node always move when you do dequeue and enqueue new data.

Circular Queue

Circular Queue

While we using circular queue, we can use mod (%) to help us for the head movement. Here is the example of Circular Queue. This code is the class of Queue, it’s just made for keep integer data up to small size, it’s just for simple example program of Circular Queue.

#include <iostream.h>
#include <conio.h>
#include <windows.h>

#define MAX 5

class Cqueue
{
private:
	int element[MAX];
	int head;
	int tail;
public:
	Cqueue()
	{
		head=0;
		tail=0;
	}
	void enqueue(int x)
	{
		if(!full())
		{
			element[(head+tail)%MAX]=x;
			tail++;
		}
	}
	int dequeue()
	{
		if(!empty())
		{
			int temp;
			temp=element[head];
			head++;
			head=head%MAX;
			tail--;
			return temp;
		}
	}
	int full()
	{
		if(tail==MAX)
			return 1;
		else
			return 0;
	}
	int empty()
	{
		if(tail==0)
			return 1;
		else
			return 0;
	}
	void view()
	{
		for(int i=0;i<tail;i++)
			cout<<element[(i+head)%MAX]<<endl;
		getch();
	}
};

Popularity: 43% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

LG W1953S-PF

Posted by Admin On July - 9 - 2009
w1953s-pf

w1953s-pf

Yes, it is an LCD monitor that has reasonable price with low consumption energy and also for me has an elegant design. It has some differents with 1953T, such as connection port, W1953S-PF only with analog-RGB connection that I think LG can cut the price just for only est. USD 125 now. For response time, W1953S-PF is set to 5 ms, while w1953T has 2 ms, this is the main factor that can drop the price of W1953S below W1953T. For W1953S, it is 18.5″ and W1953T is 19″.

This LCD has a touch sensor menu, this feature can make your friend to be jealous that with the price about USD 125, it brings beautiful design and feature. Also with contrast ratio of 50000:1 (DFC), it also brings nice color to your desktop. It also has a SMART function and FUN, it has an auto-bright feature that can measure and set the brightness depend of your room environment.

I’ve bought this about 1 month ago and what disappoint me are the connector available is just only analog-RGB port. Well, I just want LCD like this has a DVI port. Beware of the accessories they give to you. Check the warranty card and also the ’sticker’. This sticker is needed to be placed with the card and has the serial number if your LCD. For the first time I buy an LCD, I don’t know a thing about sticker that is needed to replacement warranty. I didn’t find any sticker when I was checking the box. Unfortunately, when I was checking the LCD at home, I found a dead pixel. How come at the store I couldn’t find it? Always check the sticker if you are planning to buy this LCD.

Well well, but at last, I can replace it, but without the sticker, the process is very frustrating me. I have to talk to the distributor itself and their superior of course. Just for info, they will replace the LCD that has dead pixel for 3 months only without any requirement of dead pixel count. I have only 1 dead pixel and they replace my panel.

Conclusion, this LCD is nice and has great feature for the price. With only 22 watt output max brings you an energy-saving monitor and money-saving monitor. 3 months zero dead pixel warranty is also good one, but if you want to replace it with more than 3 months usage, I’m afraid it will use ISO policy or their policy with dead pixel problem. My friend talk to the distributor itself and says that if your LCD has 1 or more dead pixel, before 3 months, they will replace it.

If you have more information about this product, you can share it below.

Popularity: 84% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter