Wednesday, 9 December 2015

Android: Using button and setting up on-click listener

  1. src/com/example/blackVwhite/ contains the code
  2. res/layout/activity_main.xml contains the layout 

  • program to Change the screen color to RGB i.e Red,Green & Blue using buttons

Android: Coming soon ...

android is almost similar to Java ...
no big fuzz, i could code it earlier but starting it right from the Scratch !

Sunday, 20 September 2015

JAVA: String to Star pattern

PS: my friend asked me to do this program and i have just proved that my l0gic was right! i haven't added the all the alphabets as it was time consuming but a string like F###-OFF does work! :P

Monday, 6 July 2015

Top games 2K15


Batman: Arkham Knight :-

The final game in the Arkham series, Arkham Knight is the first new-gen game in Rocksteady’s incredible foray into the Batman universe. It’s also the first time you can drive the Batmobile. It looks amazing, and makes me want to play through all the Arkham games again ahead of time. 


  There aren’t many games on this list that pique my hype as much as Bloodbornethe spiritual successor to From Software’s Souls games. This time around, the game is set in a dark, Gothic world filled with shambling villagers and massive werewolves. The combat is fast and ferocious, and new gameplay elements such as randomly generated dungeons promise to greatly change up a familiar formula, while still keeping the same, distinctive sense of challenge and despair.



 Another Xbox One exclusive, I’m of the mind that you can’t really go wrong with Platinum Games, the developer responsible for games like Devil May Cry, Bayonetta, and Metal Gear Rising: Revengeance. This time around, action-game master Hideki Kamiya brings us a game world populated by massive dragons, and a fighting game that sounds little like his previous work. After the brilliant Bayonetta 2 and charming Wonderful 101, hype is basically a Platinum Games default setting. Scalebound looks very cool. 







Heroes of the Storm:-

It wasn’t going to be long until Blizzard entered the MOBA fray, and Heroes of the Storm is their stab at taking on Dota and League of Legends. Yet this 5v5 arena game isn’t just another Dota clone. Instead Blizzard have made a game that is vastly more accessible than your regular MOBA, whilst still tightly holding on to the core characteristics of the genre such as complex heroes and memorising skill sets. 

Heroes of the storm

PL-1 : All practicals group assignments

PL-1 : All group assignments

DMSA : All units Notes

Data base management all UNITS

GENERAL:Fun with Linux

So here's a common tutorial on how to SHUTDOWN any PC connected to you on your LAN network using LINUX based OS...

  • first you need to get the IP address of those machines ,, inorder to do so you can try ipneigh or arp on your terminal....
  • if that doesn't work you should can always try install nmap an applet application for broadcasting to all the IP's on a network , this will get you a list of IP's
  • so inorder to install nmap here's how its done
  • yum install nmap / apt-get nmap
  • nmap <IP> b
  • suppose <IP> = you should replace the digits with * (the more the * the more is the SCAN TIME) E.G.:- 192.168.*.* will get me a list of all the IP's starting from 192.168. 
  •  now try these again- ip neigh or arp on your terminal....
  • after this you can use various commands like init1,init2 .... , poweroff , reboot ..... along with ssh . 
  • command ssh <IP> poweroff this is supposed to shutdown the other PC , you can also use ssh root@<IP>command
that's all FOLKS

Wednesday, 10 June 2015

JAVA: String and String functions

just put in some string functions,,,,
interested juzz check it out ;)

JAVA: Program to find whether a number is prime or not (with gui)

i've put in a program to find whether a number is prime or not, also added in some GUI,
you can always use it as a simple program by un-commenting the few lines in the file :)

JAVA: Hello world and also dispaly the value of /n(enter) n /t(tab) button

just as the title says i've put the hashcode function 
nothin more than a basic program :)

JAVA: Exception handling

just a basic program to handle exception.....
division program that handles:-

  • divide by zero exception
  • n also invalid data type

JAVA: Employee

just a basic program for starters......
all it does is displays employee name ,salary ,age......


me ami belong to computer stream , often hear my teachers talking about taking important lectures(that i somehow n accidentally happen to skip) on algorithms , so here i am filling up on those missed lectures ;)

so getting back to the TOPIC

what's an algorithm ???

Lets say an algorithm is  any well-defined computational procedure that takes some value, or set of values, as input and produces some value, or set of values, as output.

so its just like those maths sums that we've been solving all our lives, 
those are just fool-proof steps that run around in a loop while the computer does the calculations.....
for example:- say a linear search ....
basically its the most basic and the simplest of all....
just to summarize :- we go through the values one-at-a-time in a linear way (be it ascending or descending-but mostly ascending)

say example we need to find number 6 from a given set of numbers(let the numbers be in an array) [8,1,4,9,4,8,7,2,4,2]
here we know each array has index starting from 0.....

             sysout->number present
           sysout->number not found

here the algo will start with a[0] i.e. 8 and keep on incrementing  itself till the end of that array...
output:- number not found 

i'll try to get back with more algorithms as i myself learn them, but as i dont happen to be a nerd this can supposedly take a long time , ask me about the #games and i'm there but these studies ,,, 
whuff - gimme a break :p

Thursday, 9 April 2015

MA: ascii values

Ascii values & characters

MITL: Assignment-1

section .data

tname db "tnx for using code from",10
lname equ $-tname
tcnt db "how many numbers do you wanna add? :-"
lcnt equ $-tcnt
tnum db "Enter number:-"
lnum equ $-tnum
tsum db "the addition of numbers is:-"
lsum equ $-tsum
section .bss

numcnt resb 2
number resb 17
sum resq 1 ;reserve quadword for storing 64 bit result

%macro write 2
mov rax,1
mov rdi,1
mov rsi,%1
mov rdx,%2

%macro read 2
mov rax,0
mov rdi,0
mov rsi,%1
mov rdx,%2
section .text
global _start:

write tname,lname ;displays name
write tcnt,lcnt ;disp enter count
read numcnt,2 ;accepts numcnt

mov qword[sum],0 ;initialize val of sum to 0

;number conversion
;cmp byte[numcnt],7h
;jg onine
;sub byte[numcnt],7h
;onine: cmp byte[numcnt],30h
;jg AZ
;sub byte[numcnt],30h
;AZ: cmp byte[numcnt],37h
;sub byte[numcnt],37h
sub byte[numcnt],30h
write tnum,lnum
read number,17 ;accept hex number

mov ch,10h ;initialize counter values
mov cl,04h
xor rbx,rbx ;clear rbx
mov rdi,number ;moves offset address of number to rdi

shl rbx,cl ;shift left rbx by cl(where cl=4)
mov al,[rdi] ;take first byte from the address of rdi to accumulator
cmp al,39h
jng less
sub al,7h
sub al,30h
and al,0Fh
add bl,al
inc rdi
dec ch
jnz loop
add qword[sum],rbx
dec byte[numcnt]
jnz hexin

mov ch,16
mov cl,4

mov rsi,number
mov rbx,qword[sum]

rol rbx,cl
mov al,bl
and al,0Fh
cmp al,09h
jng lesh
add al,07h
add al,30h
mov [rsi],al
inc rsi
dec ch
write tsum,lsum
write number,16

mov rax,3ch
mov rdi,00

;[Aqua-4@localhost mitl]$
;[Aqua-4@localhost mitl]$ nasm -f elf64 a1.asm
;[Aqua-4@localhost mitl]$ ld -o assignment1 a1.o
;[Aqua-4@localhost mitl]$ ./assignment1
;tnx for using code from
;how many numbers do you wanna add? :-2
;Enter number:-000000125E125F0
;Enter number:-0001521264215FF
;the addition of numbers is:-00015224C233BF04

Sunday, 8 March 2015

new TOPIC coming soon.....

i just cant find a place where i can upload my stuff and get a proper link so as to put up my JAVA PROGRAMS.
Anyways as soon as i figure it out i'll start posting!

Engineering MATHS-3

University of PUNE - not exactly my pride but then again its one of the most reputed universities.
I just cant believe thet our M-3 paper has been post-poned and if they do post-pone it there's this thing that's haunting me :-
 the hell on earth FRIDAY-THE 13th

Saturday, 7 March 2015

Not enough knowledge!

there r too many thought's flooding my mind ATM but there's an ugly side to it- neither can i express them nor can i script/code them to reality!

Sunday, 8 February 2015

Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time.


We can't help everyone, but everyone can help someone.

Suit up!

Keep your face always toward the sunshine - and shadows will fall behind you.

@Express inn

Positive feelings come from being honest about yourself and accepting your personality, and physical characteristics, warts and all; and, from belonging to a family that accepts you without question.

#selfie #parashar using #nokia #n73

When you wake up every day, you have two choices. You can either be positive or negative; an optimist or a pessimist. I choose to be an optimist. It's all a matter of perspective.

Selfie time #parashar

Perfection is not attainable, but if we chase perfection we can catch excellence.

Friday, 6 February 2015

OOMPL: Assignment3(unfinfished)

// Name        : Databass.cpp
// Author      : Parashar
// Version     :
// Copyright   : Have some ORIGINALITY ;p
// Description : Hello World in C++, Ansi-style

#include <iostream>
using namespace std;
#define X 20

class data
    char *name,*blood_grp,*dob;
    long int *liscence_number,*mobile_number;
    double *height,*weight;
    void addCustomer();
    void display();

    this->name=new char[X];
    this->blood_grp=new char[X];
    this->dob=new char[X];
    this->liscence_number=new long int;
    this->mobile_number=new long int;
    this->height=new double;
    this->weight=new double;

void data::addCustomer()
    cout<<"Enter name:-"<<endl;
    cout<<"Enter blood group:-"<<endl;
    cout<<"Enter Date of Birth"<<endl;
    cout<<"Enter Liscence number:-"<<endl;
    cout<<"Enter Mobile number:-"<<endl;
    cout<<"Enter height:-"<<endl;
    cout<<"Enter weight:-"<<endl;

void data::display()
    cout<<name<<" "<<blood_grp<<"\t   "<<dob<<"   \t"<<(*liscence_number)<<"  "<<(*mobile_number)<<"\t"<<(*height)<<"\t"<<(*weight)<<endl;

int main()
    cout << "!!!!Made by PARASHAR!!!!" << endl; // prints !!!!Made by PARASHAR!!!!
    char ans;
    data d;
        char *name,*blood_grp,*dob;
        int *liscence_number;
        long int *mobile_number;
        double *height,*weight;
    cout<<"1)Add Customer \n2)Display Customer Detials "<<endl;
        int choice;
        cout<<"please enter you selection \n";
        switch (choice) {
            case 1:
            case 2:
                cout<<"  NAME  |bloodgrp|  DOB  | liscence no. | mobile no. | height | weight "<<endl;
                cout<<"invalid choice,please choose carefully";
        cout<<"do u waNNa continue?";
    } while (ans=='y'||ans=='Y');

    return 0;

//                     OUTPUT
//!!!!Made by PARASHAR!!!!
//1)Add Customer
//2)Display Customer Detials
//please enter you selection
//Enter name:-
//Enter blood group:-
//Enter Date of Birth
//Enter Liscence number:-
//Enter Mobile number:-
//Enter height:-
//Enter weight:-
//do u waNNa continue?y
//please enter you selection
//  NAME  |bloodgrp|  DOB  | liscence no. | mobile no. | height | weight
//Parashar O+ve       23/8       321654  8149487242    175    60
//do u waNNa continue?

Thursday, 5 February 2015

GENERAL: Top 10 Mst FAMOUS hackers

Found this stuff while i was goofing around the net,as my reputation precedes me ALWAYS DO THE wrong IN THE RIGHT WAY!

The reality, however, is that hackers are a very diverse bunch, a group simultaneously blamed with causing billions of dollars in damages as well as credited with the development of the World Wide Web and the founding of major tech companies. In this article, we test the theory that truth is better than fiction by introducing you to ten of the most famous hackers, both nefarious and heroic, to let you decide for yourself.
Black Hat Crackers
The Internet abounds with hackers, known as crackers or "black hats," who work to exploit computer systems. They are the ones you've seen on the news being hauled away for cybercrimes. Some of them do it for fun and curiosity, while others are looking for personal gain. In this section we profile five of the most famous and interesting "black hat" hackers.
  1. Jonathan James: James gained notoriety when he became the first juvenile to be sent to prison for hacking. He was sentenced at 16 years old. In an anonymous PBS interview, he professes, "I was just looking around, playing around. What was fun for me was a challenge to see what I could pull off."
    James's major intrusions targeted high-profile organizations. He installed a backdoor into a Defense Threat Reduction Agency server. The DTRA is an agency of the Department of Defense charged with reducing the threat to the U.S. and its allies from nuclear, biological, chemical, conventional and special weapons. The backdoor he created enabled him to view sensitive emails and capture employee usernames and passwords.
    James also cracked into NASA computers, stealing software worth approximately $1.7 million. According to the Department of Justice, "The software supported the International Space Station's physical environment, including control of the temperature and humidity within the living space." NASA was forced to shut down its computer systems, ultimately racking up a $41,000 cost. James explained that he downloaded the code to supplement his studies on C programming, but contended, "The code itself was crappy . . . certainly not worth $1.7 million like they claimed."
    Given the extent of his intrusions, if James, also known as "c0mrade," had been an adult he likely would have served at least 10 years. Instead, he was banned from recreational computer use and was slated to serve a six-month sentence under house arrest with probation. However, he served six months in prison for violation of parole. Today, James asserts that he's learned his lesson and might start a computer security company.
  2. Adrian Lamo: Lamo's claim to fame is his break-ins at major organizations like The New York Times and Microsoft. Dubbed the "homeless hacker," he used Internet connections at Kinko's, coffee shops and libraries to do his intrusions. In a profile article, "He Hacks by Day, Squats by Night," Lamo reflects, "I have a laptop in Pittsburgh, a change of clothes in D.C. It kind of redefines the term multi-jurisdictional."
    Lamo's intrusions consisted mainly of penetration testing, in which he found flaws in security, exploited them and then informed companies of their shortcomings. His hits include Yahoo!, Bank of America, Citigroup and Cingular. When white hat hackers are hired by companies to do penetration testing, it's legal. What Lamo did is not.
    When he broke into The New York Times' intranet, things got serious. He added himself to a list of experts and viewed personal information on contributors, including Social Security numbers. Lamo also hacked into The Times' LexisNexis account to research high-profile subject matter.
    For his intrusion at The New York Times, Lamo was ordered to pay approximately $65,000 in restitution. He was also sentenced to six months of home confinement and two years of probation, which expired January 16, 2007. Lamo is currently working as an award-winning journalist and public speaker.
  3. Kevin Mitnick: A self-proclaimed "hacker poster boy," Mitnick went through a highly publicized pursuit by authorities. His mischief was hyped by the media but his actual offenses may be less notable than his notoriety suggests. The Department of Justice describes him as "the most wanted computer criminal in United States history." His exploits were detailed in two movies: Freedom Downtime and Takedown.
    Mitnick had a bit of hacking experience before committing the offenses that made him famous. He started out exploiting the Los Angeles bus punch card system to get free rides. Then, like Apple co-founder Steve Wozniak, dabbled in phone phreaking. Although there were numerous offenses, Mitnick was ultimately convicted for breaking into the Digital Equipment Corporation's computer network and stealing software.
    Mitnick's mischief got serious when he went on a two and a half year "coast-to-coast hacking spree." The CNN article, "Legendary computer hacker released from prison," explains that "he hacked into computers, stole corporate secrets, scrambled phone networks and broke into the national defense warning system." He then hacked into computer expert and fellow hacker Tsutomu Shimomura's home computer, which led to his undoing.
    Today, Mitnick has been able to move past his role as a black hat hacker and become a productive member of society. He served five years, about 8 months of it in solitary confinement, and is now a computer security consultant, author and speaker.
  4. Kevin Poulsen: Also known as Dark Dante, Poulsen gained recognition for his hack of LA radio's KIIS-FM phone lines, which earned him a brand new Porsche, among other items. Law enforcement dubbed him "the Hannibal Lecter of computer crime."
    Authorities began to pursue Poulsen after he hacked into a federal investigation database. During this pursuit, he further drew the ire of the FBI by hacking into federal computers for wiretap information.
    His hacking specialty, however, revolved around telephones. Poulsen's most famous hack, KIIS-FM, was accomplished by taking over all of the station's phone lines. In a related feat, Poulsen also "reactivated old Yellow Page escort telephone numbers for an acquaintance who then ran a virtual escort agency." Later, when his photo came up on the show Unsolved Mysteries, 1-800 phone lines for the program crashed. Ultimately, Poulsen was captured in a supermarket and served a sentence of five years.
    Since serving time, Poulsen has worked as a journalist. He is now a senior editor for Wired News. His most prominent article details his work on identifying 744 sex offenders with MySpace profiles.
  5. Robert Tappan Morris: Morris, son of former National Security Agency scientist Robert Morris, is known as the creator of the Morris Worm, the first computer worm to be unleashed on the Internet. As a result of this crime, he was the first person prosecuted under the 1986 Computer Fraud and Abuse Act.
    Morris wrote the code for the worm while he was a student at Cornell. He asserts that he intended to use it to see how large the Internet was. The worm, however, replicated itself excessively, slowing computers down so that they were no longer usable. It is not possible to know exactly how many computers were affected, but experts estimate an impact of 6,000 machines. He was sentenced to three years' probation, 400 hours of community service and a fined $10,500.
    Morris is currently working as a tenured professor at the MIT Computer Science and Artificial Intelligence Laboratory. He principally researches computer network architectures including distributed hash tables such as Chord and wireless mesh networks such as Roofnet.
White Hat Hackers
Hackers that use their skills for good are classified as "white hat." These white hats often work as certified "Ethical Hackers," hired by companies to test the integrity of their systems. Others, operate without company permission by bending but not breaking laws and in the process have created some really cool stuff. In this section we profile five white hat hackers and the technologies they have developed.
  1. Stephen Wozniak: "Woz" is famous for being the "other Steve" of Apple. Wozniak, along with current Apple CEO Steve Jobs, co-founded Apple Computer. He has been awarded with the National Medal of Technology as well as honorary doctorates from Kettering University and Nova Southeastern University. Additionally, Woz was inducted into the National Inventors Hall of Fame in September 2000.
    Woz got his start in hacking making blue boxes, devices that bypass telephone-switching mechanisms to make free long-distance calls. After reading an article about phone phreaking in Esquire, Wozniak called up his buddy Jobs. The pair did research on frequencies, then built and sold blue boxes to their classmates in college. Wozniak even used a blue box to call the Pope while pretending to be Henry Kissinger.
    Wozniak dropped out of college and came up with the computer that eventually made him famous. Jobs had the bright idea to sell the computer as a fully assembled PC board. The Steves sold Wozniak's cherished scientific calculator and Jobs' VW van for capital and got to work assembling prototypes in Jobs' garage. Wozniak designed the hardware and most of the software. In the Letters section of, he recalls doing "what Ed Roberts and Bill Gates and Paul Allen did and tons more, with no help." Wozniak and Jobs sold the first 100 of the Apple I to a local dealer for $666.66 each.
    Woz no longer works full time for Apple, focusing primarily on philanthropy instead. Most notable is his function as fairy godfather to the Los Gatos, Calif. School District. "Wozniak 'adopted' the Los Gatos School District, providing students and teachers with hands-on teaching and donations of state-of-the-art technology equipment."
  2. Tim Berners-Lee: Berners-Lee is famed as the inventor of the World Wide Web, the system that we use to access sites, documents and files on the Internet. He has received numerous recognitions, most notably the Millennium Technology Prize.
    While a student at Oxford University, Berners-Lee was caught hacking access with a friend and subsequently banned from University computers. reports, "Whilst [at Oxford], he built his first computer with a soldering iron, TTL gates, an M6800 processor and an old television." Technological innovation seems to have run in his genes, as Berners-Lee's parents were mathematicians who worked on the Manchester Mark1, one of the earliest electronic computers.
    While working with CERN, a European nuclear research organization, Berners-Lee created a hypertext prototype system that helped researchers share and update information easily. He later realized that hypertext could be joined with the Internet. Berners-Lee recounts how he put them together: "I just had to take the hypertext idea and connect it to the TCP and DNS ideas and – ta-da! – the World Wide Web."
    Since his creation of the World Wide Web, Berners-Lee founded the World Wide Web Consortium at MIT. The W3C describes itself as "an international consortium where Member organizations, a full-time staff and the public work together to develop Web standards." Berners-Lee's World Wide Web idea, as well as standards from the W3C, is distributed freely with no patent or royalties due.
  3. Linus Torvalds: Torvalds fathered Linux, the very popular Unix-based operating system. He calls himself "an engineer," and has said that his aspirations are simple, "I just want to have fun making the best damn operating system I can."
    Torvalds got his start in computers with a Commodore VIC-20, an 8-bit home computer. He then moved on to a Sinclair QL. Wikipedia reports that he modified the Sinclair "extensively, especially its operating system." Specifically, Torvalds hacks included "an assembler and a text editor…as well as a few games."
    Torvalds created the Linux kernel in 1991, using the Minix operating system as inspiration. He started with a task switcher in Intel 80386 assembly and a terminal driver. After that, he put out a call for others to contribute code, which they did. Currently, only about 2 percent of the current Linux kernel is written by Torvalds himself. The success of this public invitation to contribute code for Linux is touted as one of the most prominent examples of free/open source software.
    Currently, Torvalds serves as the Linux ringleader, coordinating the code that volunteer programmers contribute to the kernel. He has had an asteroid named after him and received honorary doctorates from Stockholm University and University of Helsinki. He was also featured in Time Magazine's "60 Years of Heroes."
  4. Richard Stallman: Stallman's fame derives from the GNU Project, which he founded to develop a free operating system. For this, he's known as the father of free software. His "Serious Bio" asserts, "Non-free software keeps users divided and helpless, forbidden to share it and unable to change it. A free operating system is essential for people to be able to use computers in freedom."
    Stallman, who prefers to be called rms, got his start hacking at MIT. He worked as a "staff hacker" on the Emacs project and others. He was a critic of restricted computer access in the lab. When a password system was installed, Stallman broke it down, resetting passwords to null strings, then sent users messages informing them of the removal of the password system.
    Stallman's crusade for free software started with a printer. At the MIT lab, he and other hackers were allowed to modify code on printers so that they sent convenient alert messages. However, a new printer came along – one that they were not allowed to modify. It was located away from the lab and the absence of the alerts presented an inconvenience. It was at this point that he was "convinced…of the ethical need to require free software."
    With this inspiration, he began work on GNU. Stallman wrote an essay, "The GNU Project," in which he recalls choosing to work on an operating system because it's a foundation, "the crucial software to use a computer." At this time, the GNU/Linux version of the operating system uses the Linux kernel started by Torvalds. GNU is distributed under "copyleft," a method that employs copyright law to allow users to use, modify, copy and distribute the software.
    Stallman's life continues to revolve around the promotion of free software. He works against movements like Digital Rights Management (or as he prefers, Digital Restrictions Management) through organizations like Free Software Foundation and League for Programming Freedom. He has received extensive recognition for his work, including awards, fellowships and four honorary doctorates.
  5. Tsutomu Shimomura: Shimomura reached fame in an unfortunate manner: he was hacked by Kevin Mitnick. Following this personal attack, he made it his cause to help the FBI capture him.
    Shimomura's work to catch Mitnick is commendable, but he is not without his own dark side. Author Bruce Sterling recalls: "He pulls out this AT&T cellphone, pulls it out of the shrinkwrap, finger-hacks it, and starts monitoring phone calls going up and down Capitol Hill while an FBI agent is standing at his shoulder, listening to him."
    Shimomura out-hacked Mitnick to bring him down. Shortly after finding out about the intrusion, he rallied a team and got to work finding Mitnick. Using Mitnick's cell phone, they tracked him near Raleigh-Durham International Airport. The article, "SDSC Computer Experts Help FBI Capture Computer Terrorist" recounts how Shimomura pinpointed Mitnick's location. Armed with a technician from the phone company, Shimomura "used a cellular frequency direction-finding antenna hooked up to a laptop to narrow the search to an apartment complex." Mitnick was arrested shortly thereafter. Following the pursuit, Shimomura wrote a book about the incident with journalist John Markoff, which was later turned into a movie.

Sunday, 18 January 2015

Fix “Windows update cannot currently check for updates because the service is not running” error

How resolve “Windows Update cannot currently check for updates – Service not running” error:

Step 1: Stop Windows Update Service.
  • Open Windows Services control panel: To do that:
    • Press “Windows” + “R” keys.
    • In the Search box, type: services.msc & click OK.
(Accept any UAC prompt that appears).

Windows_update_cannot_currently_check_for updates 

  • In Services control panel (at the right pane) find the Windows Update Service.
  • Right-click on Windows Update service and select “Stop”.

Step 2: Delete SoftwareDistribution folder.
  • Open Windows Explorer and navigate to: C:\Windows\ folder.
  • Find and Delete (or Rename) the “SoftwareDistribution” folder.

Step 3: Start Windows Update Service.
  • Now go back to Windows Services control panel:
  • Right-click on Windows Update service and select “Start”.
Finally, check for Updates again.

NOTE: However it works but i did not have PERMISSION to change the folder name or delete it
 so i had to do it from linux based OS.

Wednesday, 7 January 2015

Time to have some fun.........

Tired of programming on FEDORA 20 'o' some other linux platform?
try these commands
(might differ from os to os & you need to login as su or try sudo)


yum install abe

yum install xcowsay

yum install nsnake

yum install nethack

yum install ularn

yum install crossfire

yum install raidem

yum install neverputt

similarly the command remains the same but you can type in other games

  • 0 A.D. - A free, open-source game of ancient warfare 
  • Battle for Wesnoth - Turn-based Tactics and Strategy Game with a Fantasy Theme!
  • warzone2100 - 3D single and multiplayer realtime strategy... formerly commercial 
  • freeciv - World conquest 
  • freecol - Colonization-like strategy game 
  • megaglest - 3D real time strategy game 
  • gnugo - Text-based Go program 
  • grhino - Reversi game for GNOME 
  • quarry - Multi-purpose board game GUI 
  • qascade - Classic puzzle game 
  • netpanzer - An Online Multiplayer Tactical Warfare Game222 
  • OpenClonk - 2D sidescroller with sandbox landscapes 
  • spring - Multiplayer, 3D realtime strategy combat game
  • uqm - The Ur-Quan Masters, a port of the classic game Star Control II - Needs large amount of data downloaded from a third party to run 

  • nazghul - An old-school RPG engine
  • prboom - Doom/Doom2/Heretic game engine 3D Cube Icon.png
  • deutex - Doom wad file manipulator
  • yadex - Doom level editor

Friday, 2 January 2015

OOMPL :Weather report

// Name        : weather_rep.cpp
// Author      : Parashar
// Version     :
// Copyright   : Do not try this at home :p
// Description : Hello World in C++, Ansi-style

#include <iostream>
using namespace std;

class weather
    int day,h_temp,l_temp;
    void input(int);
    void output();
    //void average();


void weather::input(int counter)
    cout<<"enter high temperature"<<endl;
    cout<<"enter low temperature"<<endl;


void weather::output()


int main()
    cout << "!!!Made by PARASHAR!!!" << endl; // prints !!!Made by PARASHAR!!!

    float avg_ht,avg_lt,high_sum=0,low_sum=0;
    char ans;
    int counter=0,day=0;

    weather w[30];
        int choice;
        cout<<"enter your choice"<<endl;
        case 1:
            cout<<"please enter data for day "<<day<<endl;

        case 2:
        cout<<"the entered values are"<<endl;
        cout<<"|   day\t  |   High temp\t| Low temp|"<<endl;
        for(int i=0;i<counter;i++)
            for(int i=0;i<counter;i++)

                        cout<<endl<<"average high temp:- "<<avg_ht<<endl;;

                    for(int i=0;i<counter;i++)


                        cout<<endl<<"average low temp:- "<<avg_lt<<endl;;

                                                    cout<<"you have already entered data for 30 days /n"<<endl<<" now exiting program....";

                cout<<"do u wanna continue? \n if yes please press y";

    }while(ans=='y' || ans=='Y');
    return 0;

 *             OUTPUT
 *!!!Made by PARASHAR!!!
enter your choice
please enter data for day 1
enter high temperature
enter low temperature
do u wanna continue?
 if yes please press yy
enter your choice
please enter data for day 2
enter high temperature
enter low temperature
do u wanna continue?
 if yes please press yy
enter your choice
the entered values are
|   day      |   High temp    | Low temp|
|    1|    20    |10    |
|    2|    40    |20    |

average high temp:- 30

average low temp:- 15
do u wanna continue?
 if yes please press yy
enter your choice
please enter data for day 3
enter high temperature
enter low temperature
do u wanna continue?
 if yes please press yy
enter your choice
the entered values are
|   day      |   High temp    | Low temp|
|    1|    20    |10    |
|    2|    40    |20    |
|    3|    10    |0    |

average high temp:- 23.3333

average low temp:- 10
do u wanna continue?
 if yes please press y