Posts

Watching

Image

Photoshoot

Image
Indoor The sun in my eyes Blurrylines

JAVA: Program to check working of OPERATORS

Programming languages typically support a set of operators: constructs which behave generally like functions, but which differ syntactically or semantically from usual functions. Common simple examples include arithmetic (addition with +), comparison (with >), and logical operations (such as AND or &&). More involved examples include assignment (usually = or :=), field access in a record or object (usually .), and the scope resolution operator (often ::). Languages usually define a set of built-in operators, and in some cases allow user-defined operators. ref. google Click to download

JAVA: Program to check if a string is a PALINDROME

Palindrome:- a word, phrase, or sequence that reads the same backward as forward, e.g.,  madam  or  nurses run. Click to Download

JAVA: Program to reverse a String by words

Input:-  The quick brown fox jumped over the lazy dog! Output:-  dog! lazy the over jumped fox brown quick The Click to Download

JAVA: Program to remove comments from String

IP:- //this is a comment OP:- this is a comment Click to Download

JAVA: program to calculate Factorial

the product of an integer and all the integers below it; e.g., factorial four ( 4! ) is equal to 24. Click to Download

JAVA: Program to print FIBONACCI Sequence

a series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. The simplest is the series 1, 1, 2, 3, 5, 8, etc. ref.google Click to Download

How to transfer and received file beagle bone to FTP server in fedora

 How to transfer and received file beagle bone to FTP server in        fedora Server Side: Step 1:In vsftpd.conf file (/etc/vsftpd/vsftpd.conf) editthis lines.  anon_other_write_enable=YES dirmessage_enable=YES dirlist_enable=YES no_anon_password=YES file_open_mode=0777 guest_enable=YES anon_upload_enable=YES Step 2 : start service vsftpd (service vsftpd start) Step 3: stop firewall (systemctl stop firewalld.service) step 4: mount --bind /default directory/ /var/ftp Client side:  Step 1: stop firewall service from ftplib import FTP import os flag = True while(flag):         os.system("ifconfig eth0 192.168.5.2")         ftps = FTP('172.16.1.176')         ftps.login('apcoer','12345678')         print "Select an option for transfering files:\n1.Machine to BBB\n2. BB...

How to connect beaglebone

Image
1) [apcoer@localhost-localdomain ~]$ ssh root@192.168.7.2 The authenticity of host '192.168.7.2 (192.168.7.2)' can't be established. ECDSA key fingerprint is c0:81:1a:f4:58:b9:51:15:00:df:ee:71:c4:d9:fd:54. Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': y Please type 'yes' or 'no': yes Warning: Permanently added '192.168.7.2' (ECDSA) to the list of known hosts. Debian GNU/Linux 7 BeagleBoard.org BeagleBone Debian Image 2014-04-23 Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian Last login: Wed Apr 23 20:27:40 2014 from 192.168.7.1 root@beaglebone:~# vnc -bash: vnc: command not found root@beaglebone:~# vncserver New 'X' desktop is beaglebone:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/beaglebone:1.log root@beaglebone:~# 2) open remote desktop

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