Skip to main content

This Week's Experiments

Experimenting LEOXSYS-nano wifi adapter:

Recently bought this tiny wifi adapter from flipkart.
Making this wifi-adapter able to work is wont be problem under windows. But in LINUX it need some
patience. Linux Kernel doesn't have the supportive drivers to make it workable on linux. Thank god they gave one small disc which contains the drivers for this wifi-adapter.
Inside the disk there are various folders and finally found one Linux folder in it. Make sure you
copy that into your home directory not to any others. (We are going to make it and install it. It needs a folder permission to execute some utility programs) then make it and install it, and it works
just fine in my LinuxMint 14. Soon to register for a wifi connection in my campus :-)

Making Balance enquiry of the usb modem from Terminal

This one is my favourite trick to know the balance amount of my 3g dongle.
All you need is one tiny little program called gammu.

Launch your terminal and pass

$ sudo apt-get install gammu

to install gammu. Then we have to configure the gammu by

$ sudo gammu-config

after the successful configuration of gammu we have to pass the ussd code by sending

$ gammu getussd *123*11#

here *123*11# is the ussd code to check the 3g balance of airtel network.


Very simple way to create a bootable usb disk

This one is a pretty awesome trick. We don't need to search for the unetbootin, startupdisk creator and
other utilities.

There is a built in utility called 'dd' is here to the rescue.

make sure you unmount your usb drive by

$ sudo umount /dev/sdb1

after that we are going to write the iso file to the usb device

$ sudo dd if=/home/mani/Downloads/ubuntu-13.10-desktop-i386.iso of=/dev/sdb
1832960+0 records in
1832960+0 records out

938475520 bytes (938 MB) copied, 338.764 s, 2.8 MB/s

note: in dd command if=*location of the iso file* of=*location of the usb device*

that's it your live usb drive is hot to be served.

for more info about dd in tamil : http://gnutamil.blogspot.in/2014/03/dd-startup-disk-creator-tool.html

Comments

Post a Comment

Popular posts from this blog

ARP/RARP full simulation program

server.c #include "stdio.h" #include "stdlib.h" #include "string.h" #include "sys/types.h" #include "sys/socket.h" #include "arpa/inet.h" #include "netinet/in.h" #define SA struct sockaddr struct IPmac { char ip[100]; char mac[100]; }; int main() { int sockfd,len,i; struct sockaddr_in servaddr; char buff[30],temp[30],ip[30],mac[30];

Configure opendns in ubuntu 12.04

Today i have changed my dns server name to opendns. which is alternative to default dns and it provide more secure, faster browsing experience. What is opendns? OpenDNS is the leading provider of Internet security and DNS services Industry leading malware and botnet protection Award winning Web filtering Faster, reliable, more secure DNS Ultra-reliable, globally distributed cloud network Simple, Smart, Easy How to configure opendns in ubuntu 12.04: open terminal and type sudo nano /etc/resolv.conf enter your password and change these lines   nameserver 208.67.222.222  nameserver 208.67.220.220 to use google public dns use 8.8.8.8, 8.8.4.4 instead of 208.67.222.222, 208.67.220.220 simple isn't..! now see your facebook load faster than before. opendns comes with parental control, so never worry about unwanted websites, and your childrens are safe now. to check your dns changed successfully goto welcome.opendns.com

Given a string, reverse only vowels in it; leaving rest of the string as it is

/* Given a string, reverse only vowels in it; leaving rest of the string as it is. Input : abcdef Output : ebcdaf */ import java.io.*; import java.util.*; public class VowelReverse { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); String vowels = ""; String ans = ""; int arr[] = new int[str.length()]; for(int i=0;i<str.length();i++) { if(str.charAt(i)=='a' || str.charAt(i)=='e' || str.charAt(i)=='i' || str.charAt(i)=='o' || str.charAt(i)=='u') { vowels+=str.charAt(i); arr[i]=1; } } String revVowels = new StringBuffer(vowels).reverse().toString(); int j=0; for(int i=0;i<str.length();i++) { if(arr[i]!=1) { ans+=str.charAt(i); } else { ans+=revVowels.charAt(j); j++; } } System.out.println(ans); } }