Skip to main content

Posts

Java Source Code to Change Local IP Address

Hi guys.. Try This code to change your Local IP address. import java.io.IOException; import java.lang.Runtime; public class Chang_Ip { public static void main(String args[]) throws IOException { String str1="192.168.0.201"; String str2="255.255.255.0"; String[] command1 = { "netsh", "interface", "ip", "set", "address", "name=", "Local Area Connection" ,"source=static", "addr=",str1, "mask=", str2}; Process pp = java.lang.Runtime.getRuntime().exec(command1); } }

How to Add User to Samba Server

There are two steps to creating a user. First we'll run the smbpasswd utility to create a samba password for the user. sudo smbpasswd -a username Next, we'll add that username to the smbusers file. sudo gedit /etc/samba/smbusers Add in the following line, substituting the username with the one you want to give access to. The format is = " ". You can use a different samba user name to map to an ubuntu account, but that's not really necessary right now. username = "username" Now you can create samba shares and give access to the users that you listed here

How to change Grub menu background image

Grub is a Linux boot manager that is used to switch between two or more operating systems installed on your machines. By default, Grub's background is plain black with white text. In this article, we will change Grub's default background to any image of your choice. 1 Create the background image Using your favorite image editing software, create a logo or an image that will look good even with very few colors. Save your image as a PNG with only 14 colors and resize it to 640x480 pixels. 2 Convert the PNG to XPM If you use GimpShop or The GIMP, you can directly save your image as XPM. But for Photoshop users, you'll have to use ImageMagick's convert utility to convert your image to the format that GRUB uses (make sure the you have ImageMagick installed). To start converting, open your terminal and issue the following command: $ convert splash.png -resize 640x480 -colors 14 splash.xpm 3 Compress the image file Now that we have our image ready, we will need to compress it ...

SlChart Open source Jsp Tag Library for Creating Data Grids

About SlChart Author: - Chandima prabath ariyarathna SlChart is a Jsp Tag Library for creating data tables in different format. SlChart table can use any jsp project. It is very easy to use. This tag library contains main two attribute. 1. id :- Bean id name 2. viewMode :- Data grid view mode (ex:- html,htmlGrid,xml) More Details Download Tag library with Documentation

English Sinhala Dictionary for the Firefox

University of Colombo School of Computing Language research lab lunched the English-Sinhala dictionary for the Firefox. New release lunch for the firfox3. It is very help full project to all and UCSC language research lab done by other great project for the localize software. It is one of the best language research lab in the Asia. UCSC is the one of the main Foss contributor in the Sri Lanka. There are other lot of open source research are currently doing by the UCSC . This Firefox plug-in is very easy to install. For more Information Visit:- UCSC language reseurch lab Download plug in

Java Source code to print Hello world without semicolon

Try to this code if(System.out.printf("Hello world")==System.out.printf("")) { } Try to this code if (System.out.append("hello world ") instanceof Object) { } Try to this code try { if (System.out.getClass().getDeclaredMethod("println", Class.forName("java.lang.String")).invoke(System.out, "HelloWorld ") ==null) { } } catch (Exception e) { } } } Try to This Code This code wrote by Asanka Priyanjith public class MainClass { public static void main(String[] args) { if(System.out.printf("%s", "Hello world") != null){ } } }