Hi guys,

When i was following the OS module at the university, I had to create a simple Shell Application. With the functionality to handle one pipe. So this is my code. Check it out. (It is a huge mess by the way)

Hi guys,

Sometimes you may have installed openjdk and you may to move to Oracle jdk. When you are, you will have to install oracle jdk and update the alternatives. But sometimes you will not be able to install it properly. So why you don't uninstall java completely and restart the installation process??

I also faced a similar scenario and wasn't be able to uninstall java totally. After quite googling I found an answer in Ubuntu community. Here it is.

Please note that this will uninstall everything related to java(Including Eclipse installations & etc)

sudo apt-get update
apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e 'java-common' | xargs sudo apt-get -y remove
sudo apt-get -y autoremove
 
Purge config files:

dpkg -l | grep ^rc | awk '{print($2)}' | xargs sudo apt-get -y purge
  
Remove Java config and cache directory:

sudo bash -c 'ls -d /home/*/.java' | xargs sudo rm -rf
 
Remove manually installed JVMs:

sudo rm -rf /usr/lib/jvm/*
 
Remove Java entries, if there is still any, from the alternatives:

for g in ControlPanel java java_vm javaws jcontrol jexec keytool mozilla-javaplugin.so orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200 appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc xulrunner-1.9-javaplugin.so; do sudo update-alternatives --remove-all $g; done
 
Search for possible remaining Java directories:

sudo updatedb
sudo locate -b '\pack200'

If the command above produces any output like /path/to/jre1.6.0_34/bin/pack200 remove the directory that is parent of bin, like this: sudo rm -rf /path/to/jre1.6.0_34.


Source :

Go to source link

In this tutorial I'll be describing how to install and configure SVN Server on Ubuntu virtual host. Except for few commands, most of this tutorial will be applicable to various Linux distributions.

Check list for this tutorial. :D :D

VMWare workstation (I use VMWare 9.0). You may wish to use VMWare player as it is free. Only difference you will feel is only one VM at a given time you can use if you use VM Ware player.

Ubuntu Linux ISO (I use 12.04 as it is the long term support available distribution)

Finally a internet connection.


First of all I will describe how to create a virtual host which runs ubuntu.

Open up VMWare.

Click File ==> New Virtual Machine

And then a window will popup.




Select Typical and press next



Select install from a disk. Press brows and select the Ubuntu installation ISO.

Then press next.



Provide the personalize information and press next.



Finally provide a name for the virtual machine and click next and then finish.

Now you have a virtual machine to host your VNC Server. But wait, we forgot to install the OS for the machine. Lets see how can we install the operating system to the virtual machine.

Select the virtual pc you create from the library (Located in the left hand side of the screen).
And then click "Power on the virtual machine" link.

Then the vm will load.



Then the installation window will popup. Select Install from that window



After that a window will popup.



Select "Something else" from that.



Create new partition table like above and press install now.

Then it will popup another window to provide some mandatory data. Fill them and wait till the OS get installed.



Good. Now you have a working virtual machine also. 

Lets go and continue installing SVN Server on the virtual host.

First of all will create a Bridge network connection for our virtual machine.

Click "Edit Virtual machine Settings" and select network adapter. Select the network connection : Bridged.



Then open up the terminal.(Yeah now we are gonna install SVN Server.. finally..)

Type the following code and press enter

"sudo apt-get install subversion"


Finally we are done installing SVN Server to our vm host. To check the svn server type
"svn --version"

If you do exactly as the tutorial mentioned, a description like above will appear.

For now that's enough :D :D .

Let's see how to configure SVN Server from the next article.

Till then.....


Hey guys, just as I promised you earlier, here is the second part of the Windows Phone Apps Blog post series. So here it goes...

First get Visual Studio 2012 opened. Hope you have successfully installed both Visual Studio 2012 and WPSDK on your machines. So lets start working now. To open a Windows Phone App file, go to

File -> New-> Project

Then you will get a screen like follows.

New Project screen



Select Windows Phone in Templates, (where I have marked as number 1), then select Windows Phone App (number 2). Give a proper name (number 3) and hit OK button. (marked as number 4)

If you get a screen like follows, make sure you select 'Windows Phone OS 7.1' from the drop down list before hitting OK button.

OS Version


Now you have opened a new Windows Phone App file. Lets see what kind of files we are going to work with when we are developing a Windows Phone App first. If you take a look at the Solution Explorer, you will see that there are 3 png files and 2 xaml files.

Solution Explorer
Let me tell you about the jpg files first. 

ApplicationIcon - as the name implies it, it's going to be the Icon of our app. 
Background - You all know what this is. It's the background file of the MainPage.
SplashScreenImage - it's the image which will appear for a very short time before the app actually starts running.

(I will attach screen shots of a running app, for each of these png files , so you can understand where they fit in)


MainPage.xaml is the file we are going to work with now. And the MainPage.xaml.cs file inside it holds the code of the MainPage.xaml file.

We can use both of these files to edit our phone app page.

Lets create a simple app first..

Edit the PageTitle (number 2) and the ApplicationTitle (number 1) as you like. To do this you can either double click on the text block in MainPage.xaml file or edit Text under the TextBlock tags in MainPage.xaml.cs file.

MainPage.xaml

MainPage.xaml.cs

I changed the PageTitle to "Hello" and kept ApplicationTitle as it is.

Now we are going to add a Application Icon, Background and a Splash Screen Image to the app. To upload new files, right click on the project name under Solution Explorer. Then select 
Add -> Exsisting item.



Add exsiting item

Then you will get a file browser. There select the files you want and click Add button. Now you can see your images in the solution explorer. Delete the older jpg files and name the new ones to be exactly the same as the older ones. So again you will end up with 3 jpg files named

ApplicationIcon.jpg
SplashScreenImage.jpg
Background.jpg

Now we have finished creating the app. Now click on Emulator WVGA 512MB button right bellow the meu bar.

These are the screen shots I promised earlier..

Application Icon

Application Icon



Splash Screen

Splash Screen


Your first Windows Mobile App sample is done now. Next time, I will tell you how to add an animation to your page. Till then, Take Care...
If you have not still started using Windows 8, it's time for you to get windows 8 installed and start working with pretty colorful themes and apps.

Windows 8 Start Up Screen


 I shifted to Win 8 about a month back and I like it very much. If you are a Windows phone developer, I recommend you to use win 8 as the OS platform where you can install Visual Studio 2012 which has a very good emulator for windows mobile applications.

Once you have successfully installed Windows 8 in your machine, you have to instal Visual Studio 2012 and Windows Phone SDK 7.1 or Windows Phone SDK 8.
 

Visual Studio 2012 Start Up Screen

You can use the links below to download the above mentioned tools which are compulsory for Windows Phone Developing.


Visual Studio 2012 Express Edition for Windows 8 -
http://msdn.microsoft.com/en-us/windows/apps/br229516.aspx

Windows Phone SDK (you can either use Windows Phone SDK 7.1 or Windows Phone SDK 8)
http://dev.windowsphone.com/en-us/downloadsdk


Get these two installed and ready to use. A mobile app developer or a newbie, you are welcome to stay tuned with this series of articles which will cover everything you need to know in order to create a fully functioning, attractive, user friendly and your own unique mobile application.