Posts

Showing posts from July, 2014

HTML/CSS Basics

Styles within HTML tags:
<p style="font-family: Arial; font-size: 20px; color: blue">A truly spectacular paragraph!</p>

<ol style="background-color: yellow;">
<li style="text-align:left">The Hawthorn Football Club</li>
</ol>

<strong> -- bold
<em> -- to italicize

<table style="border-collapse:collapse;">
<thead>
<tr>
<th colspan="2">test</th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding:5px;border-left:1px solid black;">1</td>
<td style="padding:5px;border-left:1px solid black;">2</td>
</tr>
</tbody>
</table>

Following div will create a 50px X 50px rectangular block of red color:
<div style="width:50px; height:50px; background-color:red"></div>

A very long <span style="color:red;">text</span>!

CSS:
<head>
<link type="text/css&qu…

Python 2 by example

Python 2.7 syntax examples: Code samples at : https://github.com/rwatsh/python 

1.Math: 2**3 = 8 , where, ** is exponent operator +, -, *, / = math operators % = modulo operator 2.Comments: # - single line comment
“”” my multi line comment “”” 3.Print: print(“%.2f”, total) -> will print total rounded to 2 decimal places. 4.Escape char: 'There\'s a snake in my boot!' Not required when using double quotes for string. 5.String: fifth_letter = "MONTY"[4] print fifth_letter => prints Y parrot = "Norwegian Blue" print len(parrot) print parrot.lower() print parrot.upper() pi = 3.14 print str(pi) => str() converts non-strings to string Methods that use dot notation only work with strings. On the other hand,len()andstr()can work on other data types. print "Spam " + "and " + "eggs" print "The value of pi is around " + str(3.14) string_1 = "Camelot" string_2 = "place"
print "Let's not go to %s. 'Tis a silly %s…

WebLogic Administration: WLS Scripting Tool (WLST) Tutorial

Book Review: Pro Git

Image
Very nicely explained and author has a sound understanding of the fundamentals of the Git version control system is evident from his writing. I did not need to buy the dead tree version of the book since the ebook for my kindle was available for free. It delves into the basic topics first so that if you have read the first 4 chapters, then that knowledge will be sufficient to get you to start using git on a day 2 day basis. The remaining chapters can be browsed over and read on an as needed basis. Since the book is available in several formats it is very easy to access it at work on a PC and at home on my kindle. Scott Chacon has done an excellent job explaining Git concepts very clearly and the illustrations in the book are also very well done and aid in the understanding of the text and the subject matter. Highly recommended.

Concise Git Reference for everyday use

This is compilation of all Git commands referring to "Pro Git" book by Scott Chacon. Git config files:/etc/gitconfig - config applicable to all users./.gitconfig - specific to a user.~/.git/config - config per git repo.Typical configs:git config --global user.name "Watsh Rajneesh"git config --global user.email "rwatsh@gmail.com"git config --global color.ui truegit config --global push.default simplegit config alias.last=log -1 HEADgit config -l => shows the current config.git [command]  --helpe.g. git commit --helpCreate a new git repo from existing directory:git initgit add *git commit -m 'my comment'Cloning an existing repo:git clone https://github.com/rwatsh/MyGit.gitwill create a local .git directory which will hold the entire repo with all the history known at the time of cloning.will create a tracking branch "master" which will track the "master" branch on remote (or origin/master - see below point)will save the https:…

MyGit repo - Some of my code samples

rwatsh/MyGit - https://github.com/rwatsh/MyGit

I have pushed some sample code which i had written recently covering various areas of Java programming (maven, OSGI, JUnit, Annotations, REST, JSF, Design patterns, algorithms, data structures, Java EE etc.).

sjsucohort6 - https://github.com/sjsucohort6

My MSSE projects (i will be making them public as and when i am done with the exams).

Reset the AdminServer Password in WebLogic 11g and 12c

ORACLE-BASE - Reset the AdminServer Password in WebLogic 11g and 12c



Reset the AdminServer Password in WebLogic 11g and 12cIf you forget the AdminServer password for your WebLogic 11g domain, you can reset it from the command line using the following process. Set up the following environment variables. They are not necessary for the process itself, but will help you navigate. In this case my domain is called "ClassicDomain". Remember to change the value to match your domain.

export MW_HOME=/u01/app/oracle/middleware export DOMAIN_HOME=$MW_HOME/user_projects/domains/ClassicDomainShut down the WebLogic domain.

$ $DOMAIN_HOME/bin/stopWebLogic.shRename the data folder.

$ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-oldSet the environment variables.

$ . $DOMAIN_HOME/bin/setDomainEnv.shReset the password using the following command. Remember to substitute the appropriate username and password.

$ cd $DOMAIN_HOME/security $ java weblogic.security.utils.Adm…

Book Review: The Complete Tales of Winnie The Pooh by A.A.Milne

Image
The Complete Tales and Poems of Winnie-the-Pooh by A.A. Milne
My rating: 5 of 5 stars

Read it to my about-to-be 7 years old son, who generally likes science fiction chapter books to be read to him, but for a change, one day picked up this book and to my surprise we read chapter after chapter for a few days in succession during bed time. He was particularly delighted by the humor in the book and it was a great fun reading him this classic by A.A.Milne. Christopher Robin in the stories is author's son and author is narrating the stories as if he is reading it to his son and then at times he will come out of the hundred acre woods to the real world and respond to his son's questions. Most children who have watched disney's rendition of Pooh's world already will be familiar with the characters in the stories - from Pooh, to piglet, to owl, eeyore, rabbit, kanga, roo and tigger. The book and its prose may be more suited to a child 5yrs and above as then they will be able to…