Wednesday, December 4, 2013

Protect your eyes with RedShift

If you are anything like me and spends a good amount of time on computer, your eyes may say you soon that "Hey! it's fantastic. Give me some comfort or else I'll take yours". You may soon face dry-eyes or sleeping dis-orders. Let's take some precautions to save them.
Now I'm not gonna discuss something like don't stare without blinking your eyes or maintain some distance from monitor, but here is a way to optimize your monitors brightness automatically according to the time-of-the-day and temperature.
Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
To install it in Ubuntu:
sudo add-apt-repository ppa:jonls/redshift-ppa
sudo apt-get update && sudo apt-get install redshift
To start the application, first find the coordinates of your location (lat:long). Then
redshift -l lat:long (eg: redshift -l 17.033:55.20)
For latest version and also Windows installation, visit the official website.

Saturday, November 9, 2013

Java: Use BigInteger in for-loop

In my previous post, I mentioned a way to handle large integers by using BigInteger. Now I'm going to provide a very important usage of it. We often use for-loop. So here is the way to use it:

Ordinary integers:
for(int i = 1; i <= n; i++) {
 //Task to do
}

BigInteger:
for (BigInteger bi = BigInteger.valueOf(1);
                bi.compareTo(n) <= 0;
                bi = bi.add(BigInteger.ONE)) {
//Task to do
}
here n is a BigInteger variable.

Java: BigInteger

java

Many of you might have wondered, as I did, how to deal with integers of say more than 50 digits or so. And might have thought about breaking the integer into parts or storing it in a string and parse letter-by-letter.
Java provides a class for such large numbers: BigInteger.
You can find it in the package: java.math.BigInteger
We can do some operations like addition, subtraction, multiplication, division etc, but slightly in a different way.
For detailed information on its usage, have a look at this.

Wednesday, November 6, 2013

Eclipse: No Applicable Items on File | New

Today I tried to a new project in eclipse and on clicking
File>New> 
I found
<No Applicable Items>
I'm not able to create any kind of project. Then I found a solution on ecipse discussion group.
There are some selections in the IDE in the upper right corner; Java, JAVA EE and Resource etc. It was set to Java EE. When I selected JAVA, I can now create new projects again

Wednesday, October 23, 2013

OSX Mavericks for free

Today Apple released much awaited update cum upgrade OSX Mavericks as a free update.

You can download it from App Store. Here is the list of new features:

iBooks
• Download and read books from the iBooks Store.
• Pick up right where you left off. iCloud keeps your current page up to date across all your devices.
• Swipe through Multi-Touch books with interactive features, diagrams, photos, videos, and more.
• Keep multiple books open while using other apps — great for writing a paper or doing research.

Maps
• Send directions from your Mac to your iPhone and use voice navigation when you’re on the go.
• Explore select cities in stunning, photo-realistic 3D with Flyover.
• See detailed directions, real-time traffic, and alternate routes.
• Find restaurants, stores, and other places of interest with local search in Maps.

Calendar
• Create new events in a snap with the new, streamlined event inspector.
• Enter event locations fast with address autocompletion.
• Add walking or driving travel time to your event so you know when to leave.
• See a map of your event’s location, as well as the weather forecast for that day.
• See holidays and Facebook events in Calendar.

Safari
• Use Shared Links to discover new, interesting links posted by people you follow on Twitter and LinkedIn.
• Browse longer thanks to new core technologies that boost energy efficiency.
• Easily access your bookmarks, Reading List, and Shared Links in the new Sidebar.
• Protect your online privacy with new tracking-prevention features.

iCloud Keychain
• Don’t worry about remembering passwords — iCloud Keychain fills them in so you don’t have to.
• Keep your website passwords, credit card numbers, and Wi-Fi passwords up to date across your trusted devices. Robust 256-bit AES encryption helps keep your information safe.
• Sign in once to all of your mail, contacts, calendar, and other internet accounts, and iCloud pushes them to all your Mac computers.

Multiple Displays
• Just plug in a second display to use it with your Mac — no configuration required.
• Access the Dock and the menu bars on each display.
• Use full-screen apps on any or all of your displays.
• Use your HDTV as a second display with Apple TV.

Notifications
• Reply to mail or messages right from a notification, without having to leave the app you’re using.
• Receive notifications for incoming FaceTime calls and reply with an iMessage or set a callback reminder.
• Receive notifications from websites, even when Safari isn’t running.

Finder Tabs
• Declutter your desktop by consolidating multiple Finder windows into one.
• Move files between your tabs by simply dragging and dropping them.
• Select a custom view — icon, list, or column — for each of your tabs.
• Use tabs with full-screen Finder to organize and access all your files and folders.

Tags
• Organize files with tags no matter where they’re located — in iCloud or on your Mac.
• Give a document as many tags as you want.
• Click a tag in the Finder sidebar to see all the files with that tag.

Advanced Technologies
• With energy-saving core technologies in OS X Mavericks, you can surf the web longer on a single charge.
• Watching iTunes HD video is now more efficient, so you can watch more video when you’re not plugged in.
• App Nap regulates applications you’re not using so they consume less energy.

iCloud Keychain on iPhone, iPad, and iPod touch requires iOS 7.0.3.

Multiple Display with Apple TV and an HDTV works with Apple TV (2nd generation or newer), iMac (mid 2011 or newer), Mac mini (mid 2011 or newer), MacBook Air (mid 2011 or newer), MacBook Pro (early 2011 or newer), and Mac Pro (late 2013).

[Source] : https://itunes.apple.com/us/app/os-x-mavericks/id675248567?mt=12&ls=1

Thursday, October 10, 2013

New section on web development, plugins and templates

Hello guys,
I planned to start this section a long back, but due to some of the reasons, which even I don't know, hadn't made it.
From now onwards, along with the regular workarounds, tips and tuts, I would like to blog some of the good web development tutorials, plugins etc and also good templates I came across.
So keep visiting...............

Thursday, September 26, 2013

Ubuntu: Mount remote directories on a local machine


Today I'm searching for a way to mount a remote directory on my local machine, such that it acts like a local machine. The sole reason is to run the remotely compiled code locally.
I've found a nice article on it and would like to blog it here.
Here we go:
  • Install SSHFS:
sudo apt-get install sshfs
  • Add root to the fuse group: 
sudo adduser root fuse 
  • Create the local backup director

mkdir backup
  • Then mount the remote /home directory to backup:
sshfs -o idmap=user <username>@<remote system's ip>:/home backup
  • Let's check if the remote directory got mounted to /backup:
mount
df -h
  • To unmount the directory
fusermount -u backup
Check the backup folder to see your remote directory...

Source: howtoforge

Tuesday, September 24, 2013

Java : Redirect/Write console output to a file

java
Sometimes we would like to save the output from console into a file and to do this we use some stream writer/reader to read from console and write to a file.

But this can be done in much easier way as follows. Add the following code at the beginning of the program:
PrintStream out = new PrintStream(new FileOutputStream("output.txt"));
System.setOut(out);
Now the default behaviour of out is changed to PrintStream out, and the output is redirected to the file provided above.

Edit:
To reset the standard behaviour, add the following code
System.setOut(stdout);

Tuesday, July 9, 2013

Ubuntu : Bugs and workarounds

ubuntu bug

Quite often we ran into some bug on Ubuntu. Thanks to such a huge community which provides solutions to many of them. Today I found a thread which includes most of the bugs and their workarounds. Here is the link.
Known Hardy bugs and workarounds

Monday, June 24, 2013

Ubuntu : Upgrade Git

git

Sometimes simply updating from "Ubuntu update" won't update/upgrade some of the required packages. We need to to it manually by adding necessary repositories. To upgrade git:
sudo add-apt-repository ppa:voronov84/andreyv
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
If the first command result in error "couldn't connect to host"

Ubuntu : Java alternatives

java alternative

Ubuntu will include openJDK by default. If you install some other version or Sun JDK, then the first installation is set to be the default one.

To check if there are any other java installations:

update-java-alternatives -l
Change the default to any of them:
update-java-alternatives -s NAME-OF-IT

Ubuntu : Install Sun java 6

java 6

Ubuntu has dropped including Sun/Oracle Java in its repository, and added OpenJDK. But, the former is more reliable than latter, and is also must for some applications.
Here is a way to add Sun java 6:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
Possible error : "couldn't connect to host"

To make this version as default: here.

If you want to install java 7, instead of last command try
sudo apt-get install oracle-java7-installer
If you are under proxy network or seen a error like
Cannot add PPA: 'ppa:webupd8team/java'.
Please check that the PPA name or format is correct.
and if you are sure that the PPA is working, the try
sudo -E add-apt-repository ppa:webupd8team/java
and proceed with remaining commands.

Ubuntu : Error "couldn't connect to host"


This error will be resulted mostly because of the user permissions. To go through it, we need the simulate the initial login mode:
sudo -i
Now run the commands which resulted in the above error, but without prefixing with 'sudo'. Remember to go out of this mode after running your commands. To go out:
exit

Ubuntu : Adding a new repository (PPA)

ubuntu

To add a repository ppa:
sudo add-apt-repository ppa:user/ppa-name
sudo apt-get update
Sometimes adding a repository may result in error related to missing key. Then copy that key and run following command

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com KEY
Do this for each of the missing keys.
Now re-run the above two commands.

If you are under proxy network or seen a error like
Cannot add PPA: 'ppa:user/ppa-name'.
Please check that the PPA name or format is correct.
and if you are sure that the PPA is working, the try
sudo -E add-apt-repository ppa:user/ppa-name

Ubuntu: Set Network proxy system-wide including Terminal

ubuntu

Set the proxy in "Network Proxy" setings and click "apply system-wide", and also at the following locations. Some terminal applications need them.

sudo gedit /etc/apt/apt.conf.d/95proxies
Acquire::http::proxy "http://username:passwd@proxy:port/";
Acquire::ftp::proxy "ftp://username:passwd@proxy:port/";
Acquire::https::proxy "https://username:passwd@proxy:port/";
sudo gedit .bashrc
export http_proxy=http://username:passwd@proxy:port
export https_proxy=http://username:passwd@proxy:port
export HTTP_PROXY=http://username:passwd@proxy:port
export HTTPS_PROXY=http://username:passwd@proxy:port

Requires both CAPITALS and small ones. Some applications accepts only CAPITALS.

Wednesday, June 19, 2013

Openlogic : Open Source Software Database

Ol

Here is a open source software repository, which contains almost every version of the packages. This will be useful for all those who need any older version of the package, which sometimes is difficult to find. So, I'm sharing the link here:
http://olex.openlogic.com/
Type the package name in search field and select the version you need.

Tuesday, June 18, 2013

Ubuntu : Mount a volume with ROOT privileges

ubuntu

My system is having multiple internal hard disks and due to some memory concerns I have to work on the second drive(hdd2). Then on visiting "/mnt/hdd2", I found entire drive  is protected by root. To change the privileges, I tried the normal way:
sudo chmod 755 /mnt/hdd2
Result : NO CHANGE.
Then tried
sudo chmod a+x /mnt/hdd2
Result : NO CHANGE.
No I googled I find:
sudo chmod -R 755 /mnt/hdd2
Result : To my surprise NO CHANGE
Here is the solution:
sudo chown -R chaithanya:chaithanya /mnt/hdd2
Result : SUCCESS ('chaithanya' is the username).

Monday, June 17, 2013

Setting up / Working with Android Source code

ubuntuandroid

1. Install Ubuntu 10.04, as the Android root is built on it.

2. Update the system - Run Update manager and install new packages

3. Update the system settings:
4. Install sun java 6
5. Installing required packages:
sudo apt-get install git-core gnupg flex bison gperf build-essential \zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \libxml2-utils xsltproc
6. Upgrade git
7. Installing Repo:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
8. Initialising a Repo client:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
If any error saying "HTTP request failed", open file "~/bin/repo" and change "https" in the beginning to "http".
If the error "GnuTLS recv error (-9): A TLS packet with unexpected length was received" occurs, try http instead of https above. i.e.,
repo init -u http://android.googlesource.com/platform/manifest -b android-4.0.1_r1

9. Download Android Source
repo sync
10. Add Git tags:
$ gpg --import
Copy and paste the following code and press Ctrl-D:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

mQGiBEnnWD4RBACt9/h4v9xnnGDou13y3dvOx6/t43LPPIxeJ8eX9WB+8LLuROSV
lFhpHawsVAcFlmi7f7jdSRF+OvtZL9ShPKdLfwBJMNkU66/TZmPewS4m782ndtw7
8tR1cXb197Ob8kOfQB3A9yk2XZ4ei4ZC3i6wVdqHLRxABdncwu5hOF9KXwCgkxMD
u4PVgChaAJzTYJ1EG+UYBIUEAJmfearb0qRAN7dEoff0FeXsEaUA6U90sEoVks0Z
wNj96SA8BL+a1OoEUUfpMhiHyLuQSftxisJxTh+2QclzDviDyaTrkANjdYY7p2cq
/HMdOY7LJlHaqtXmZxXjjtw5Uc2QG8UY8aziU3IE9nTjSwCXeJnuyvoizl9/I1S5
jU5SA/9WwIps4SC84ielIXiGWEqq6i6/sk4I9q1YemZF2XVVKnmI1F4iCMtNKsR4
MGSa1gA8s4iQbsKNWPgp7M3a51JCVCu6l/8zTpA+uUGapw4tWCp4o0dpIvDPBEa9
b/aF/ygcR8mh5hgUfpF9IpXdknOsbKCvM9lSSfRciETykZc4wrRCVGhlIEFuZHJv
aWQgT3BlbiBTb3VyY2UgUHJvamVjdCA8aW5pdGlhbC1jb250cmlidXRpb25AYW5k
cm9pZC5jb20+iGAEExECACAFAknnWD4CGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIX
gAAKCRDorT+BmrEOeNr+AJ42Xy6tEW7r3KzrJxnRX8mij9z8tgCdFfQYiHpYngkI
2t09Ed+9Bm4gmEO5Ag0ESedYRBAIAKVW1JcMBWvV/0Bo9WiByJ9WJ5swMN36/vAl
QN4mWRhfzDOk/Rosdb0csAO/l8Kz0gKQPOfObtyYjvI8JMC3rmi+LIvSUT9806Up
hisyEmmHv6U8gUb/xHLIanXGxwhYzjgeuAXVCsv+EvoPIHbY4L/KvP5x+oCJIDbk
C2b1TvVk9PryzmE4BPIQL/NtgR1oLWm/uWR9zRUFtBnE411aMAN3qnAHBBMZzKMX
LWBGWE0znfRrnczI5p49i2YZJAjyX1P2WzmScK49CV82dzLo71MnrF6fj+Udtb5+
OgTg7Cow+8PRaTkJEW5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/M
pK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDgpqt7Y7s
KZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phb
N8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior6b8LrZrAhkqDjA
vUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmUtkBszwo
G1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQ
hN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0l
EXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM=
=Wi5D
-----END PGP PUBLIC KEY BLOCK-----
11. Setup ccache:
export USE_CCACHE=1
export CCACHE_DIR=<path-to-your-cache-directory>
prebuilts/misc/linux-x86/ccache/ccache -M 50G
12. Initialize the build:
$ . build/envsetup.sh
13. Choose the target:
$ lunch full-eng
14. Build the code: (-j4 : 4 threads. Change the value as per your system configuration)
$ make -j4
15. Run:
$ emulator

Tuesday, June 4, 2013

Clean-up GRUB entries


grub
Whenever a kernel update is installed, your system adds an entry into GRUB. And while booting you can see a very long list, depending on how many updates you have installed. Here is a simple way to clean the GRUB.
  • Open Synaptics package manager.
  • Remove "linux-image-2.6.xxxx" and "linux-headers-2.6.xxxx" corresponding to old kernel images.
  • Update the grub using: "update-grub"

If you wish to set a background image for your GRUB, then goto "/etc/grub.d/" and open the theme file(debian_theme) and set "use_bg=false" to "true". Change the WALLPAPER, to point to the desired image(Better use .png file).

To apply the changes to the grub: "update-grub"

Monday, June 3, 2013

SVN Error: "OPTIONS of 'https://…' could not connect to server (…)"

SVN

Today when I tried to download source-code of an application from a repository on googlecode, an error saying "could not connect to server xxxx.googlecode.com" occurred. I thought the repository might have been down and not available for download. Then I tried the same URL in web browser and it worked.
On searching for a while, I found that this problem is created by proxy settings. SVN needs the proxy settings, apart from that you applied system-wide settings. Then I came to know a solution which worked perfectly. Here it is:
svn --config-option servers:global:http-proxy-host=MY_PROXY_HOST --config-option servers:global:http-proxy-port=MY_PROXY_PORT checkout http://xxxx.googlecode.com/yyyyy/
If the proxy server needs authentication, then try this:
svn --config-option servers:global:http-proxy-host=MY_PROXY_HOST --config-option servers:global:http-proxy-port=MY_PROXY_PORT --config-option servers:global:http-proxy-username=USERNAME --config-option servers:global:http-proxy-password=PASSWORD checkout http://xxxx.googlecode.com/yyyyy/
For various available options:
http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.1

Thursday, May 30, 2013

Problems importing Android Source Code into Eclipse


Errors on the project build path when using Eclipse
When I debug the framework source using Eclipse, there are some errors on the project build path.
Error messages I saw are the following :
  1. Project 'Android' is missing required library: 'out/target/common/obj/JAVA_LIBRARIES/google-common_intermediates/javalib.jar'
  2. Project 'Android' is missing required library: 'out/target/common/obj/JAVA_LIBRARIES/gsf-client_intermediates/javalib.jar'
Solution:
Goto Project>Properties and libraries section and edit first one to
"out/target/common/obj/JAVA_LIBRARIES/android-common_intermediates/javalib.jar" 
and remove second one.

Missing required library when import the android source 4.0 to Eclipse
After this, the build path errors were gone, but I got about 200 errors referring to missing types. This could only be another classpath problem for Eclipse. Here are the extra libraries, that we have to add to the .classpath file:
  1. <classpathentry kind="lib" path="out/target/common/obj/JAVA_LIBRARIES/android-support-v13_intermediates/javalib.jar"/>
  2. <classpathentry kind="lib" path="out/target/common/obj/JAVA_LIBRARIES/filterfw_intermediates/classes-jarjar.jar"/>

or add these two files as externals jars in the above mentioned area, i.e., libraries section in Project>Properties

Hope this solves your problem...

System running in low graphics mode (nVidia)


This problem can be occurred at two instances.
1. Fresh installation:
1. Download the driver from nVidia website
2. Copy the file to the disk. (It looks like "NVIDIA-Linux-x86_64-319.17.run", depends on your version)
3. Now just type the following command from terminal:
    sudo sh ./NVIDIA-Linux-x86_64-319.17.run
4. Follow the on-screen instructions and finally reboot.
2. Problem after upgrade:
1. Login into command prompt
2. Run the following command:
    sudo sh ./NVIDIA-Linux-x86_64-319.17.run
3. It will ask to delete previous installation. Accept all the prompts and also the one to edit xconf file.
4. Finally it will reboot and system boots normally.
After successful boot, you can configure your driver in the System>Preferences section.

Other work-arounds:
1. When prompted the low graphics mode, select the "Restart X" option. This will work in some cases. But every time you boot, perform the same.
2. Also try blacklisting "nouveau" (if you find 'nouveau' by running the command 'lsmod'). To do this, type the following command:
    sudo gedit /etc/modprobe.d/blacklist.conf
This will open a document. Add this line at the bottom:
    blacklist nouveau
3. Reboot to get some relief.

Monday, May 27, 2013

Setting JVM Heap size at runtime

To set the JVM heap size, compile the program normally.
For example, consider Runtime.java program.
Compilation: javac Runtime.java
Now, to set minimum heap size(let, 16 MB) required by JVM, run the program as follows :
java -Xms16m Runtime 
We can also restrict maximum size(let 512 MB) utilized by JVM:
java -Xmx512m Runtime
 Both these options can also be combined to specify upper and lower bounds of JVM heap size:
java -Xms16m -Xmx512m Runtime
Now you can run a program that requires huge computational space.

Saturday, April 27, 2013

Fotor Windows 8 app - photo editing tool

Looking for a app can do your work better with little/no effort, then here it is.
Fotor is the best all-in-one photo editing application!
Perfectly combine the windows 8 user experience with cutting-edge tools including Basic Editing Tools, Brilliant Visual Effects, Frames, 1-Tap Enhance, Collage, Text, Tilt Shift and Raw Converter, all bundled together in one powerful package! 

Features:
  • Collage :  Enjoy the freedom to arrange your pictures however you want with three different modes of collage: Template Collage, Photo Stitching and Shuffle Collage.
  • Add Text : Input plain text or choose a stylish text template, personalize your photos by adding your own commentary, thoughts and messages for others to see, or just add notes to help you remember. 
  • Raw Converter : RAW converter with tone mapping supports over 100 camera RAW formats. Import the RAW files and Fotor will take care of the rest.
  • Powerful Editing : Fotor contains some of the most powerful and easy to use photography editing tools for adjusting brightness, contrast, saturation, sharpen/blur, temperature, tint, cropping, flipping and rotation etc.
  • Effects & Frames : Stretch your creativity further with Fotor's huge palette of Effects designed with input from experienced graphic designers and photographers. Fotor provides over 60 effects in various categories, including Classic, Lomo, B & W, Art and Vignettes, plus choose from 23 different styles of frames!
  • 1-Tap Enhance : 1-Tap Enhance quickly transforms "dull" or "bad" photos with a pixel by pixel enhancement, all with only one touch. Analyzing brightness, contrast, saturation and exposure value, Fotor optimizes the source image to become an even more amazing photo!
  • Tilt Shift : Tilt Shift gives your images the depth-of-field and other visual effects normally seen only on professional grade DSLR cameras. Magically unleash your creative inspiration, while using a mix of clear focus and selective blurring to create magnificent photos.
  • Scene Function : This function allows you to select the “Scene” in order to adjust to almost any conditions of your environment while taking a photo, and it will restore its true colors. You can also select One-Tap Enhance to quickly beautify your photos.
  • Correction Feature : The new crop feature helps you straighten the picture on a pixel-by-pixel basis.
  • Printing Features : You can now connect to the printer through the right side of the Windows 8 device, choose the print size you need, and then print your work. You can also use the sliding menu or click the right button that appears below, then click “Print” in the accessibility panel and print the photos.
  • Image Stitching storage changes : We offer three volume sizes for the image mosaic storage, respectively, corresponding to print, greeting cards and sharing purposes. According to the transverse the stitching and longitudinal stitching the smallest aspect ratio picture storage.
To install it click here or search it in Windows Store.

Fresh Paint - Windows 8 app

I recently found this great app, really superb. Give it a try. Here is the official description:
Meet Fresh Paint – a delightfully realistic and fun painting application for you and your family.
Fresh Paint is an easy-to-use, free app that includes oil paint and all the tools you need to paint.
Whether you are an aspiring artist, parent or child (or child at heart), Fresh Paint will help you unleash your inner creativity.
We believe that brilliant, creative ideas can come from anyone, anytime. It’s time to set your creativity free.
Welcome to Fresh Paint – the canvas for your big ideas.

Fresh paint windows 8 app screenshot

Features
  • Experience highly realistic oil paint. It works just like real oil on a canvas, but just a little easier.
  • Paint without the mess, clean-up and costly supplies.
  • Help your kids be creative and explore their imagination.
  • Blend and mix paints to get just the colour you want.
  • Turn your photos into paintings with Fresh Paint. Import a photo, and then just brush and blend the colours to transform your picture into a beautiful oil painting.
  • Purchase painting templates to help you improve your skill, or purchase colouring pages to help your kids explore their imagination.
  • Choose from different brushes and change your brush size.
  • Erase paint with the eraser and correct any mistakes with the Undo button.
  • Click the Fan button to instantly dry all the paint on your canvas.
  • Paint in the way that is most natural for you. Get hands-on and finger paint, use a stylus or even a mouse or purchase a capacitive paint brush and paint.
  • Easily share your paintings with people you care about. Just swipe from the right edge of the screen and tap “Share.”
  • More than just a digital painting program; Fresh Paint helps you bring your imagination to life.
  • Now available – Disney•Pixar Finding Nemo Pack!
I find it difficult to paint using mouse(may be need little more experience), but really impressive with trackpad.
To install it click here or search it in Windows Store.

Tuesday, March 26, 2013

Dial-up connection using Command prompt

Connecting to internet using mobile partner or some other program is simple. But it consumes your system resources(around 200 MB of RAM). You can simply save your resources by using command prompt. This method is applicable only on Windows platform.

First, install the device driver and create the dial-up connection, or just install the mobile partner(or software that came along with your modem) and connect using it(it will automatically create the dial-up connection). now you can exit that program.

Here is the procedure to connect using command prompt:

  • Open command prompt
  • Type the following command
rasdial "CONNECTION NAME"
Ex: rasdial "TATA DOCOMO INTERNET"

To disconnect,
rasdial "CONNECTION NAME" /Disconnect

You can also automate this process by creating batch file.
Connect
Open any text editor and copy the following code

:Redial
rasdial "CONNECTION NAME"
if %errorlevel% == 0 exit
goto Redial;
Replace the CONNECTION NAME with your connection name(you can rename it) and save it as connect.bat

Disconnect
Open any text editor and type the following
rasdial "CONNECTION NAME" /Disconnect
exit

Replace the CONNECTION NAME with your connection name(you can rename it) and save it as disconnect.bat

Save them at the location of your convenience and just double click them to connect and disconnect a dial-up connection.

Keyboard keys not working


Recently I faced an issue with my laptop keyboard. Some of the keys are not working.
As it is still under warranty, I thought of replacing the keyboard.
When I contacted customer support, after listening to the problem he asked whether I tried DRAINING.
Then he explained me the procedure, and guess what - it's working perfectly again.

Here is the procedure of DRAINING:

  • First shut down the laptop/notebook
  • Remove the battery
  • Also unplug the adapter
  • Now press and hold the power button for about 25-30 seconds
  • Insert the battery again
  • Now power on the laptop by pressing power button(normal booting)

Now your keyboard will work again normally.
If the problem still persists, consider replacing the keyboard.

Wednesday, March 6, 2013

Porting LEWA ROM to any device(NOOBS guide)


PREREQUISITES :
adb- This will help you out in deadly conditions
winRAR - For opening zip files
Notepad++ - For editing text

ROMS YOU WILL NEED :
Base ROM : CM7/MiUi/old Lewa(didn't tried on stock rom) For Your Device
LewaOS ROM : Get it from official site.




STEPS TO PORT :
  1. Open both ROMs using winRAR in two windows..No Need To Extract
  2. Go to '/system' and delete '/system/app', '/system/framework' and '/system/media' folder from Base ROM (CM7)
  3. Copy '/system/app' , '/system/framework' and '/system/media' folder from LewaOS to Base ROM.
    Copying can be done by simply drag and drop between the winRAR windows
  4.  Go To '/system/bin' of Base ROM
    --Copy all files present in '/system/bin' to LewaROM.
    --Now from LewaROM copy all files from '/system/bin' folder to '/system/bin' of Base ROM
    --This replaces all existing files of same name and adds missing files
  5.  Go To '/system/etc' of Base ROM
    --Copy all files (except the folders) from '/system/etc' of BaseROM to '/system/etc' of LewaROM
    --Now from LewaROM copy all files from '/system/etc' folder to '/system/etc' of Base ROM
    --This also replaces all existing files of same name and adds missing files
  6.  Go To '/system/etc/init.d' of Base ROM
    --Copy all files '/system/etc/init.d' of LewaROM to '/system/etc/init.s' of BaseROM
  7.  Go To '/system/etc/permissions' of Base ROM
    --Copy all files from '/system/etc/permissions' of BaseROM to '/system/etc/permissions' of LewaROM
    --Now from LewaROM copy all files from '/system/etc/permissions' folder to '/system/etc/permissions' of Base ROM
  8.  Go To '/system/lib' of Base ROM
    --Copy all '*.so' from '/system/lib' of BaseROM to '/system/lib' of LewaROM
    --Now from LewaROM copy all files from '/system/lib' folder to '/system/lib' of Base ROM
  9.  Go To /system/xbin of Base ROM
    --Copy all files present in '/system/xbin' folder to '/system/xbin' of LewaROM.
    --Now from LewaROM copy all files from '/system/xbin' folder to '/system/xbin' of Base ROM
  10. Open 'build.prop' from both ROM using Notepad++
     Add these lines below 'ro.cm.device=YOUR_DEVICE_NAME'
    ro.lewa.version=YOUR_ROM_NAME
    ro.lewa.device=YOUR_DEVICE_NAME
    Add these lines in # ADDITIONAL_BUILD_PROPERTIES below 'ro.com.android.dataroaming='
    ro.compcache.default=0
    ro.lewa.swapper.part_path=/dev/block/mmcblk1p3
    ro.lewa.swapper.flash_swappiness=99
    ro.lewa.swapper.sd_swappiness=60
    ro.error.receiver.system.apps=com.lewa.fc
    ro.error.receiver.default=com.lewa.fc
    persist.sys.notif-speaker=1
    persist.sys.ring-speaker=1
    persist.sys.alarm-speaker=1
    Remove the following lines
    ro.config.ringtone=Playa.ogg
    ro.config.notification_sound=regulus.ogg
    ro.config.alarm_alert=Alarm_Beep_03.ogg
    persist.sys.themeId=Cyanbread
    persist.sys.themePackageName=com.tmobile.theme.Cyanbread
Now Your Device has LewaOS
Source: I tried this method from Blinddumb and it worked.

Tuesday, January 22, 2013

No bootable device Insert bootable device

Don't get panic when you see this thing, and also don't consult customer care or some other repair shop to waste some bucks.

Usually this error will be found when you made a unsuccessful attempt of dual booting your Mac with Windows.

To fix this error, restart your Mac and hold down option key, after hearing chime on booting.

If you don't want to install windows, then select the Mac Recovery partition. Then from the menu on the top, select the boot disk option and select the drive in which Mac is present. Restart and enjoy...

If you wish to install Windows, then insert bootable disk and select the Windows partition that you had created using boot camp, and proceed with installation.

In both cases you will be able to boot normally.

Tuesday, January 8, 2013

Windows 8 Metro Apps Proxy settings

Case 1: If you are on a internet connection that doesn't require any proxy settings, everything works fine.

Case 2: If your internet connection requires some proxy settings(without authentication), then try this method:
Open internet explorer and set the proxy under Internet Options>Connections>Lan Settings.

Now open Command Prompt with Administrative privileges(On start screen type "command prompt", right click on the command prompt app and click on "Run as administrator" which is visible on the bottom of the screen). Now type the following command and press enter.

netsh winhttp import proxy source=ie

Restart the PC and check out.

Case 3: If your internet connection requires some proxy settings with username and password, then try this method:
  1. Install fiddler
  2. Now please install this addon
  3. Open fiddler and click on Win8 config, then click "Excempt All"
  4. Restart your system
  5. Set the proxy details in proxyfier or proxyfire
  6. Always open fiddler first and you can use it in tray with CTRL+M, then proxyfier(remove from startup)

Now you are ready to use metro apps with proxy settings.

Monday, January 7, 2013

Activate Windows 8 Enterprise Using key

I tried to activate my Windows 8 Enterprise, and to my surprise I can't find a way to enter the product key. I later found this method to be useful.

First open the command prompt. To do so, press Windows + r key and type cmd and press enter, or just press Windows key and type command prompt and hit it. Now type the following command and press enter:
SLUI.EXE 3

Now you will see a window prompting you to enter the key. Enter the key and press activate. Bingo...

Sunday, January 6, 2013

Windows 8 - Safe mode

Safe Mode is a great way to get into your system when something won't allow you to start up normally. Troubleshooting becomes a breeze when corrupted drivers and files aren't loaded that prevents a system from functioning. It used to be as easy as pressing F8 when the system starts up, but doing so with Windows 8 will take you to Automatic Repair Mode. The trick to getting back to good old fashioned Safe Mode? Hold down the Shift key and press F8 while booting up.

This takes you to the Recovery mode. Select "advanced options," then "troubleshoot," then the "advanced options" again (there are a lot of advanced options). Select Windows Startup Settings and finally the Restart button. This will reboot the computer and give you the option to boot into Safe Mode.

If you need to get into Safe Mode from within Windows, open the dialog box (the Windows key + R) and type "msconfig" (no quote marks). Select the Boot tab and check the Safe boot box. The system will continually boot into Safe Mode until you go back and uncheck the box.

Shutdown shortcut for Windows 8

Create a shortcut on your desktop (right-click, go to New, then Shortcut). Enter "shutdown.exe /s /t 00" as the location of the item, and press Next. Now name the shortcut (prefereably "Shutdown") and press Finish.

Right-click the shortcut, and navigate to Properties. Choose Change Icon in the Shortcut tab, and then OK to leave the warning box. Choose an icon of your choice from the list. In the screenshot above, you'll see we chose a Power button.

Right-click the shortcut again, and select Pin to Start. You can place the icon on your Start screen wherever it's convenient. Clicking it will instantly shut down your computer.
For shutdown : shutdown.exe /s /t 00

For restart : shutdown.exe /r /t 00

For Hibernating: shutdown.exe /h

Boot directly to the desktop in Windows 8

One of biggest complaints about Windows 8 is that it boots straight to the Start screen—an annoyance for many committed desktop users.
Boot directly to the desktop in Windows 8

To boot into the Desktop directly, just follow this simple procedure. Go to the start screen and type in schedule to search for Schedule tasks in Settings. Click on Task Scheduler Library to the left, and select Create Task. Name your task something like "Boot to desktop." Now select the Triggers tab, choose New, and use the drop-down box to select starting the task "At log on." Click OK and go to the Actions tab, choose New, and enter "explorer" for the Program/Script value.

Press OK, save the task, and restart to test it out!

Windows 8 : Customise the Start screen


Customise the Start screen

The Start Screen is full of nice, big, chunky tiles that represent all your apps. The tiles are easy to see in small groups, but what if you have hundreds of apps installed? Most will be hidden from view, unless you want to do a lot of scrolling. Enter the new semantic zoom feature. If you’re using a touch display, squeeze the Start screen with two fingers to receive a bird’s eye view of your entire screen contents. And the feature is also available to mouse and keyboard users: Simply hold down the Ctrl button, and use your mouse wheel to zoom in and out. Also holding Ctrl button and pressing + or – will work.

Categorize your apps 


Customise the Start screen

Your Start screen can become a cluttered mess if you collect too many apps and other elements that have been pinned to the screen as tiles, so take advantage of built-in organization tools that let you divide everything into labeled groups.

First, drag all the tiles you want to assign to a single group to the far right-hand side of your Start screen in vacant territory; the OS should sequester the tiles together. Once you're satisfied with your assembly, use semantic zoom (described above) to get a bird's eye view of your desktop. Now right-click the group, and select the "Name group" option on the left of the bar that appears below. Type in the name, and enjoy your newly organized Start screen!

Windows 8 Shorcuts




Using Windows 8 is painful unless you are on a touch screen device. If you feel Windows 8 is really complicated and it’s hard to find the things on it, then you must try some shortcuts instead of moving your mouse here and there and keeps on clicking to find them. Here is a list of shortcuts you might find useful:


  • Press the Windows key to enter the tiled Start screen.

  • When on start screen, to search a setting or file or app, just type its name. If you are in Desktop mode, just press Windows Key and start typing.

  • Windows Key + C: Displays Charms menu.

  • Windows Key + X: Brings up a menu of advanced system options, including Windows Control Panel, Command Prompt, Task Manager and File Explorer.

  • Windows Key + I: Displays the Settings menu for the current app. For example, if you’re in Internet Explorer 10, this key shows Internet options. If you’re on the Start menu, it shows general OS settings.

  • Windows Key + Q: Brings up the apps search menu that allows you to search your list of installed programs.

  • Windows Key + D: Activates desktop mode.

  • Windows Key + Tab: Brings up the Task Switcher and toggles between Windows 8-style apps.

  • Windows Key + H: Brings up Share menu for the current app. For example, hitting Windows Key + H in Bing Maps, lets you email or share map information on social networks.

  • Windows Key + M: Opens desktop mode and minimizes all windows.

  • Windows Key + W: Opens universal search menu and sets it to search settings.

  • Windows Key + F: Opens universal search menu and sets it to search files.

  • Windows Key + R: Opens Run menu where you can launch programs by typing in their executable file names.

  • Windows Key + E: Opens File Explorer to the “My Computer” view which shows all your drives.

  • Windows Key +Number Key (1-9): Switch to desktop mode and make the Nth application on the task bar active where N is the number key you hit and 1 is the furthest taskbar icon to the left.

  • Windows Key + . (period key): Docks the current Windows 8-style application to the right or left, depending on how many times you hit it.

  • The Windows key + "," (that's the comma sign!) makes all current windows transparent, giving you a peek at the desktop as long as you hold down the Windows key.

  • Windows Key + Z: Brings up app menu, which shows contextual options for the active app.

  • Windows Key + L: Locks your computer and shows the lock screen.

  • Alt + F4: Close currant app.

  • The Windows key + Print Screen takes a screenshot and saves it in a Screenshots folder nested in your Pictures folder.

  • To take a screenshot on a Windows 8 tablet, simultaneously press the Windows button and the volume-down button on the tablet chassis.

  • The Windows key + Pause opens the system properties page to show you a quick rundown of your specs

  • Windows key + K - List available devices, for example a second screen.

  • Press Ctrl + Shift + Esc to start exploring the new Task Manager.