Posts

Showing posts from 2015

Android: Using button and setting up on-click listener

src/com/example/blackVwhite/mainactivity.java contains the code res/layout/activity_main.xml contains the layout  Click here to download the program! program to Change the screen color to RGB i.e Red,Green & Blue using buttons or just simply Download

JAVA: String to Star pattern

Click here to View 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

PL-1 : All practicals group assignments

PL-1 : All group assignments click here to download

DMSA : All units Notes

Data base management all UNITS         click here for download

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> = 192.168.1.1 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 ss

JAVA: String and String functions

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

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 pryme.java file :) click here to download

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 :) click here to download

JAVA: Exception handling

just a basic program to handle exception..... division program that handles:- divide by zero exception n also invalid data type click here to download

JAVA: Employee

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

Algorithm

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]

MA: ascii values

Image
Ascii values & characters

MITL: Assignment-1

section .data tname db "tnx for using code from parazhar.blogspot.com",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 syscall %endmacro %macro read 2 mov rax,0 mov rdi,0 mov rsi,%1 mov rdx,%2 syscall %endmacro ;________________________________________________________________________ section .text global _start: _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 ;____________________________________________________________________ ;nu

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

Image
^.-

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

Image
@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.

Image
#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.

Image
Selfie time #parashar

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

Image
+Spine Road   

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 { private:     char *name,*blood_grp,*dob;     long int *liscence_number,*mobile_number;     double *height,*weight; public:     data();     void addCustomer();     void display(); }; data::data() {     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;     cin>>name;     cout<<"Enter blood group:-"<<endl

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. Jonathan James : James gained n

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

Image
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).   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.

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

Image
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)  su; 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 sides

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 { public:     int day,h_temp,l_temp; public:     weather();     void input(int);     void output();     //void average(); }; weather::weather() {     day=99;     h_temp=999;     l_temp=-999; } void weather::input(int counter) {     cout<<"enter high temperature"<<endl;     cin>>h_temp;     cout<<"enter low temperature"<<endl;     cin>>l_temp;     day=counter+1; } void weather::output() {     cout<<"_________________________________"<<endl;     cout<<"|\t"<<day<<"|\t"<<h_temp<<&qu