Monday, August 13, 2012

RPM querry packages and there build arch

Most of the time rpm shows is the package name - version, but strips the build arch, ie. i386 or x86_64. Hence what we see are 2 similar package names and we wondering what is going on :)


$ rpm -qf /usr/bin/lsb_release
redhat-lsb-4.0-2.1.4.el5
redhat-lsb-4.0-2.1.4.el5

here is a way to see the arch use '--qf "%{n}-%{v}-%{r}-%{arch}\n"'


$ rpm -qf /usr/bin/lsb_release --qf "%{n}-%{v}-%{r}-%{arch}\n"
redhat-lsb-4.0-2.1.4.el5-x86_64
redhat-lsb-4.0-2.1.4.el5-i386






Friday, May 25, 2012

Google.co.in hacked

searched something and it says

--

FOR ALL THOSE WHO MISSED IT HERE WE GO AGAIN :D XD Anonymous REVENGE / WE OWN YOU
 Told you not to mess with free speech and lesser with Anonymous
Government of India, you know what you did wrong. you caused out twitter account to be blocked now we will show you what anonymous is capable of doing.
--

Wow!

sanjayu@brightstill-l7:~$ lynx --dump 'http://www.google.co.in/search?q=beat+diesel&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest'
   IFRAME:
   [1]http://115.248.224.100:8080/webadmin/deny/index.php?dpid=1&dpruleid=
   56&cat=201,202,203&ttl=-100&groupname=default&policyname=default&userna
   me=-&userip=101.63.181.65&connectionip=1.0.0.127&nsphostname=rel-netsw-
   chennai&protocol=nsef&dplanguage=-&url=http%3a%2f%2fwww%2egoogle%2eco%2
   ein%2fsearch%3fq%3dbeat%2bdiesel%26sourceid%3dopera%26ie%3dutf%2d8%26oe
   %3dutf%2d8%26channel%3dsuggest

References

   1. http://115.248.224.100:8080/webadmin/deny/index.php?dpid=1&dpruleid=56&cat=201,202,203&ttl=-100&groupname=default&policyname=default&username=-&userip=101.63.181.65&connectionip=1.0.0.127&nsphostname=rel-netsw-chennai&protocol=nsef&dplanguage=-&url=http%3a%2f%2fwww%2egoogle%2eco%2ein%2fsearch%3fq%3dbeat%2bdiesel%26sourceid%3dopera%26ie%3dutf%2d8%26oe%3dutf%2d8%26channel%3dsuggest
sanjayu@brightstill-l7:~$ 
sanjayu@brightstill-l7:~$ host 115.248.224.100
Host 100.224.248.115.in-addr.arpa. not found: 3(NXDOMAIN)

sanjayu@brightstill-l7:~$ host google.co.in
google.co.in has address 74.125.236.191
google.co.in has address 74.125.236.183
google.co.in has address 74.125.236.184
google.co.in mail is handled by 10 google.com.s9a2.psmtp.com.
google.co.in mail is handled by 10 google.com.s9b1.psmtp.com.
google.co.in mail is handled by 10 google.com.s9b2.psmtp.com.
google.co.in mail is handled by 10 google.com.s9a1.psmtp.com.
sanjayu@brightstill-l7:~$ host 74.125.236.191
191.236.125.74.in-addr.arpa domain name pointer maa03s16-in-f31.1e100.net.


sanjayu@brightstill-l7:~$ curl -D - http://google.co.in
HTTP/1.1 301 Moved Permanently
Location: http://www.google.co.in/
Content-Type: text/html; charset=UTF-8
Date: Sat, 26 May 2012 04:43:29 GMT
Expires: Mon, 25 Jun 2012 04:43:29 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 221
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN


301 Moved

301 Moved


The document has moved
here.

sanjayu@brightstill-l7:~$

Thursday, March 8, 2012

I thought I have to praise this song

mtv coke link

as sometimes you are touched with a song more than you can say, I am feeling the same right now. God knows the depth of the lyrics and the feeling with which Wadali Brothers can transform it. God bless them.

Reading the wikipedia, I felt like going to Guru ki Wadali, right now and pay my obeisances and sit and hear whatever they have to say for a long time.

Thursday, December 8, 2011

Java/Oracle/JVM

I came back to Java some good 5 years later. last I used JDK was in 2006, when I was in my previous company. Java version was 1.6 (also called as java 6). its Java 7 now, and Oracle has bought Sun and own the JVM/JDK.

I went around for downloading JDK and was going through the licencing terms and found it very interesting.

Tuesday, November 29, 2011

Pidgin installation problem in RHEL 5

Error: Missing Dependency: libsilcclient-1.0.so.1 is needed by package libpurple

all you need is :


rpm -Uvh http://mirror.linux.duke.edu/pub/centos/5/os/x86_64/CentOS/libsmbclient-3.0.33-3.29.el5_6.2.x86_64.rpm
rpm -Uvh http://mirror.linux.duke.edu/pub/centos/5/os/x86_64/CentOS/libsilc-1.0.2-2.fc6.x86_64.rpm

Thursday, November 24, 2011

Ripped off with excessive bills on Airtel blackberry rental plans

Since last year now, I have been paying bills exceeding 2K on a blackberry enterprise plans. After heckling with the Customer service, I came to know of the following blackberry enterprise plans:

1. 899 (unlimited data plan with browsing)
2. 599 (unlimited data plan with browsing)
3. 299 (unlimited mail plan with no browsing)

surprisingly, when I had moved to the blackberry plan the Airtel folks told me there is only one plan which is 899 plan. This time when I threatened that I am going to move to other service provider, he gave me the other two options.

Interestingly, the 899 and 599 plan has no difference and yet they are 300 Rs apart. Shady company for sure. However, very good network. If they want my feedback, who is on airtel since 2001, please be more open and transparent and honest.


VIM issues with powerline

What to do if you get this annoying issue - vi requirements.txt ...