Tuesday, January 26, 2016

How i implemented drag and drop in my Angular App

Hi, Here i am using angular accordion list and codeformer's angular-drag drop to demonstrate the drag and drop feature.Please have a look at  angular-dragdrop and accordion before reading this post.I am using accordion list items as draggable items. I drag the each list item  and drop  into a square shaped droppable area.Here i am posting a screenshot. Here is the fiddle i have created for demo. I explain the fiddle's code in this post.First i go with the draggable list.Here is the code:
<div accordion="" ng-repeat="friend in friends">
          <div accordion-group="" class="accord" heading="{{friend.name}}" data-drag="true" data-jqyoui-options="{revert: 'invalid',helper:cloneHandler}" ng-model="friends" jqyoui-draggable="{index: {{$index}},placeholder:'keep',animate:true, onStart:onDragSuccessok(friend, $index)}"></div>
Here we have two divs one holds the accordion directive and the other have accordion-group directive.They are to generate the accordion list view. In either of these divs we can place our angular-drag drop directives. 1.the data-drag="true" makes the div element draggable. 2.In jqyoui-options revert:'invalid' restores the draggable item, when it is dragged away from its place. 3.The helper option is to customize the clone.So whats the clone? When we drag the draggable item, the clone of the draggable item will be extracted and moved.For that we have to explicitly specify the helper:'clone' option.If we want to customize the clone, we can write our own clone handler like this helper:cloneHandler. The cloneHandler is a function that returns a html template.We can see that in fiddle. 4.In jqyoui-draggable the placeholder option is to keep or remove the draggable element from its position after the clone is moved to droppable Area. In progress.....:P

Friday, August 2, 2013

Checked Exception vs UnChecked Exceptions in java

Checked Exceptions: Exceptions which can be checked by the java compiler are checked Exceptions.These exceptions can be foreseen by the programmer/developer  and they'll be taken care by defining suitable exception classes/by declaring them using throws keyword.

Examples of Checked Exceptions:

Unchecked Exceptions: Exceptions which  cant be checked by java compiler.Unchecked Exceptions mostly arise due to programming errors like accessing method of a null object, accessing element outside an array bonding or invoking method with illegal arguments.

  Examples of UnChecked Exceptions:

Thursday, July 19, 2012


successfully Upgraded to DEBIAN WHEEZY(testing) .Its really mind blowing tat wheezy sets my screen resolution to 1024*764...it did none of the linux distros do including BACKTRACK 5 R2...really awsome DESKTOP and nice UI ...have a look at it here..........^^

Before you do a complete DIST-UPGRADE

Before you do a complete "dist-upgrade" I recommend to upgrade
some essential packages:

  1.  apt-get install debian-keyring debian-archive-keyring   
  2. apt-get install apt apt-utils dpkg aptitude   
  3. apt-get -u install libc6 base-files lsb-base   
  4. apt-get -u install perl perl-base perl-modules bash
  5. apt-get autoremove
  6. apt-get -u install grub-pc #(or lilo)
  7. apt-get -u install linux-base linux-image-3.2.0-3-amd64
      #(or similar kernel package)
 After rebooting you computer you can start:

  #apt-get dist-upgrade


Hi friends!i am on my way to help DEBIAN.Here i am describing the process of upgrading from SQUEEZE to WHEEZY.First of all you   should have DEBIAN SQUEEZE running on your PC to do this upgrade.
You may have third party softwares   installed on your debian,better to remove them for a safe UPGRADE.update your /apt/sources.list   in the following way:
  • replace the word "squeeze" with the word "testing" or "wheezy" .
  • it is just enough to have your mirror(with replaced word as told in step.1)  to perform UPGRADE
  • i am pasting my sources.list here: 
  • ############################
    # Testing US mirror:
    deb http://ftp.us.debian.org/debian/ testing main contrib non-free
    #deb-src http://ftp.us.debian.org/debian/ testing main contrib non-free

    # Testing Security Updates
    deb http://security.debian.org/ testing/updates main contrib non-free

    #Testing Proposed Updates
    deb http://ftp.debian.org/debian/ testing-proposed-updates main contrib non-free

    ## Multimedia ##
    # Marillat For info visit http://www.debian-multimedia.org
    deb http://www.debian-multimedia.org testing main non-free
  • ############################
Then try to run   this command #apt-get update
If you have any  public key errors refer this:

  1. Then run this command  to simulate the upgrade   #apt-get -s dist-upgrade
  2. Next download all the packages for the upgrade:  
  3. #apt-get --download-only    dist-upgrade
  4. then finally reboot your PC and enter in to restore mode
  5. then perform dist UPGRADE using command #apt-get dist-upgrade
if you have any problems in the above please refer this 
or mail me.


HI FRIENDS,  it is not easy as we are thinking(to be a DD).We have to learn every thing from the scrach.We can not be a Debian Developer OVER NIGHT and Here are some steps/There is a hierarchy to be followed.
1.package maintainer(starting level)
2.Debian Maintainer(DM)
3.Debian Developer(DD)
 To reach first stage  first we should be in sync with debian groups.For that
  • we should  subscribe to debian mailing lists to know what's happening in DEBIAN DEVELOPMENT.
  • we  should form a group to develop any package since you  alone can not develop a huge module.
  • you might have testing/unstable version running on your PC to test  bugs
  • Better to register with debian forums: it may  help you in configuring DEbian on your PCs
For further details read this

Monday, July 16, 2012

how to extract .DAA files using POWERISO

hi!i have downloaded linux tutorials from torrentz site and one of the download is in .daa format.I have downloaded  powerISO to extract files.Here is  istructions for just how to do it!

  1. downloaded  poweriso-1.3.tar.gz 
  2. extract it using command  tar -zxvf poweriso-1.2.tar.gz
  3. then u'll see a  poweriso file in  current DIRECTORY
its just a command line tool,don try to open it as u'll see nothing with that

  1. ./poweriso convert image.daa -o image.iso -ot iso
Then   just use   extractor    to extract all files from your ISO file