Saturday 8 December 2012

Change the border width in Windows 8

The border size and padding could be customized using "Advanced appearance settings" option present in Desktop Personalization window in Windows Vista and Windows 7 but Microsoft removed this option from Windows 8.

However it can be done as follows:-


1. Press "WIN+R" key combination to launch RUN dialog box then type regedit and press Enter. It'll openRegistry Editor and go to following key:
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
2. In right-side pane, look for following 2 Strings:
  • BorderWidth
  • PaddedBorderWidth
By default, BorderWidth string is set to -15 and PaddedBorderWidth is set to -60.
3. Right click and choose Modify to change the values of  BorderWidth and PaddedBorderWidth.
For thinner border set the values of both to 0.
To restore them, set their default value.
4. Now close the Registry Editor. Logoff your account and logon to apply the changes.

Problem with installing apps form windows store in Windows 8

Windows 8 users are facing problems with downloading and installing the apps from windows store. On clicking the install button, it shows downloading or pending and no more progress. Are you experiencing the same problem???

There is a solution for this...

1.Go to control panel.
2.Search for Troubleshooting and click it.
3.Click Troubleshoot problems with windows updates.
4.In the troubleshoot window, select Advanced options and Run as administrator.

Now windows will find the problem and solve it. Try installing the apps now.

Add JPEG Toolbox to Matlab in windows 7

Jpeg toolbox contains Matlab routines for manipulating JPEG files. While Matlab's built-in IMREAD and IMWRITE functions provide basic conversion between JPEG files and image arrays, they do not provide access to the details of the JPEG image, such as the JPEG coefficients or the quantization tables.

The routines in this package provide additional functionality for directly accessing the contents of JPEG files from Matlab, including the Discrete Cosine Transform (DCT) coefficients, quantization tables, Huffman coding tables, color space information, and comment markers. The toolbox can be added to Matlab to use the functions.

First check whether the following are installed in your system.

1.Microsoft windows sdk7
2.Microsoft visual c++ 2010 express

if they are not installed, Download and install them in the order specified.

Note: Before installing windows sdk, uninstall any redistributalbe packages of  visual c++ 2010.  Else windows sdk produces problem during installation and the install fails. During installation dont forget to check the 'x64 Libraries' for 64bit OS and 'x86 Libraries' for 32bit OS, under Windows Headers and Libraries. This allows to use compiler tools for 64 bit operating systems. Once it overs, install visual c++.  These tools are free and available at microsoft website. Both online and offline installers are available.



Now comes the real integration process

Step 1: Download the jpeg toolbox and extract it to a separate folder (eg. jpeg)


Step 2: Download jpeg source files and extract it to a separate folder (eg.jpegsrc). In the folder jpeg-6b which is in jpegsrc, rename jconfig.vc to jconfig.h and makefile.vc to makefile


Step 3: From start->All programs-> Microsoft windows sdk , open the command prompt. This opens the 'windows x64 debug environment'. Navigate to the jpeg-6b folder which is inside the jpegsrc folder which is extracted at step 2. Run the command 'nmake clean all' without quotes. This creates the libjpeg.lib file in the same folder.

Step 4: Now open the matlab and choose the workfolder as jpeg, created in step 1.

Now in the command windows run the following commands,
mex -I<IJGPATH> jpeg_read.c <LIBJPEG>
mex -I<IJGPATH> jpeg_write.c <LIBJPEG>

Replace <IJGPATH> with the path to the IJG jpeg-6b directory created in step 2, and
<LIBJPEG> with the full path to the IJG code library file (libjpeg.lib).

To use the jpeg_read and jpeg_write functions copy jpeg_read.mexw64 and jpeg_write.mexw64 files created above to your work directory. Dont uninstall visual c++ compiler or it wont work.