Team Schmooze crowned as winners !

May 11, 2015

It was my second Hackathon in Outware on 1st May, 2015.  And I’m happy to announce that my team are the winners for the ‘Most Innovative’ category ! Not only did we come out as winners out of the 17 competing teams, we were also the first ever team of Automation test engineers (dominated by) that made the cut.

Schmooze

Schmooze

More about the challenges here.

The Fantastic Four:

Except Celal who is a hardcore iOS specialist others are test engineers specialized in automating mobile apps.

Hari –  Middleware developer

Balaji – Middleware developer

Sivaranjini – App Designer

Celal – iOS developer

The verdict:

This award not only showcases the creative and the technical talent exists in Outware, but also shows what a bunch of individuals who are driven by passion for innovation with lot of hard and team work can do if they chose to wear a different hat for a change.

What an inspiration week !

More about the winners, here.

 

 


Introducing patternchecker

January 24, 2010

Often I need a small utility script/program to check the matched results of regex pattern against known text. So I dont have to execute my lengthy main script/program multiple times to get the correct pattern.

I’ve used the following patternchecker script (PERL) & program (JAVA) while coming up with patterns and for demonstration in my previous posts.

Usage:
# java patterncheck
Enter pattern : (x*)(x)(x+)
Enter string:foxxxxx
Matched : fo<<< xxxxx >>>
group 1 = xxx
group 2 = x
group 3 = x

Perl and Java uses the same regex engine and thus would behave similarly while matching patterns, I’ve listed here the sourcecode in perl and java out of my curiosity although you just need any one of them,

i) perl

#!/usr/bin/perl
print "Enter pattern :";
### Read the regex pattern
chomp($pattern=<STDIN>);

### count the number of paranthesis
$cnt++ while( $pattern =~ /\(/g );
print "Enter string :";
chomp($input=<STDIN>);

### read the string to be tested against
if ( $input =~ /$pattern/ ){

      ### print prematch, match, postmatch
      print "Matched: $`<<< $& >>> $'\n";

      ### print $1, $2, etc
      foreach $i (1..${cnt}) { print "\$",$i," = ",${$i},"\n";}
} else {
      print "No Match\n";
}
<div>

ii) java

import java.lang.*;
import java.io.*;
import java.util.regex.*;

public class patterncheck{
	public static void main(String args[]){
		String pattern, str;
		int groups;

		//Read pattern and string from the console
		Console c = System.console();
		pattern=c.readLine("%s","Enter pattern :");
		str=c.readLine("%s","Enter string:");

		//compile and associate the pattern with the text
		Pattern p = Pattern.compile(pattern);
		Matcher m = p.matcher(str);

		//if there is a match
		if (m.find()){
			// print prematch, match & postmatch
			System.out.println("Matched : "+str.substring(0,m.start())+"<<< "+ m.group() +" >>>"+str.substring(m.end()));

			// print what captured in paranthesis
			if (m.groupCount() != 0) {
				groups=m.groupCount();
				for (int i=1;i<=groups;i++){
					System.out.println("group "+i+" = "+m.group(i));
				}
			}
		}
		else {
			System.out.println("No Match");
		}
	}
}

Modify attribute properties in Active Directory

October 5, 2009

Long long ago, I did an active directory configuration with minor tweaking ( yet not widely documented ) for converting a single-valued attribute to multi-valued attribute. And automated couple of testcases for adding multiple values to an attribute using ldap eway and was living happily till last week.

Last week was when one of those unfortunate event had happened ie. the automated tests were failing and with the few minutes of investigation revealed I need to redo the ADS setup in a different m/c due to multiple reasons. 

Everything went cool, duplicating the domain data, SSL configuration till I tried to add multiple values to the attribute and only to see the below error in the ldap client,

the attribute cannot be modified because its owned by the system

 I searched my documents in vain for the tiny-secret-formulae which helped me long back. I was struggling, googling, bing(l)ing for hours and desperately installing few third-party tools hoping it would do the job, finally I stumbled on it,

Down here the steps to convert single-valued attribute to multi-valued attribute,

  1. Login as a member of Schema Admins
  2. Launch LDP.EXE
  3. Connect to the Schema Master using LDP.EXE
  4. Bind to the Schema Master using an account with Schema Admin permissions.
  5. From the Browse menu, choose Modify
  6. In the Modify dialog box, leave the DN field blank, and type schemaUpgradeInProgress in the Attribute field. In the Value field, enter the number 1. Click the Enter button, then click the Run button.
  7. Close the Modify dialog box.
  8. Launch ADSIEDIT.MSC and goto the properties of the attribute here its ‘sn’
  9. Check for the property name ‘isSingleValued’ and change the value to False. Click on Apply and close the property window.
  10. Run LDP again, and change the value of schemaUpgradeInProgress from 1 to 0.
  11. From the Active Directory Schema console, right click on the console and choose "Reload the Schema"
Check with your favorite ldap client adding multiple values for the same attribute.


100 Pushups

July 22, 2008

‘You’ve sort of less committed to prolong anything’ heard this many times from my family. So many times that even I started believing it. Eg.Whenever I enroll for gym, one/all in the family used to say lets see how many days will you go this time? So powerful the spell was, I never continued the gym more than a month. Long since I renewed any subscriptions for the subsequent months since my school days.

 But here today,  ‘I’ve proved them all wrong’. By

1. Starting to write in this space after a really long time and will continue doing so ( few of many I missed to ink here : Java CAPS R6 release, momentum on GlassFish ESB, game and movie reviews )

2. Have been working out in the gym for almost 2 months ( pat on my back ) and  will continue doing so . And enrolled here to accomplish doing 100 consecutive pushups after 7th week from now. Oops, I just said that.

BTW, I fell into Rank 3 by completing 20 consecutive pushups. My result would be honestly published here after 7 weeks.

Advantage of committing in the crowd, I need to try hard to pursue them to avoid humiliation of failure.

PS: Its coincidence Sun announced corporate deals for fitness training for its employees.


Restore your message filters in Thunderbird

February 11, 2008

         Inspite of being over cautiously having all the safeguarding measures I lost my system to unknown virus which affected my boot-sector ( according to my pc support person ). And I’d to get my laptop reinstalled one more time. Generally in similar situations, I would have a problem in getting configured my huge list of Thunderbird message filters after reinstalling the system.  So here is the crack for this tedious step of reconfiguring message filter in Thunderbird.

1.  Take a backup of the file ‘msgFilterRules.dat’ from the location

C:\Documents and Settings\admin\Application Data\Thunderbird\Profiles\oovf4lha.default\ImapMail\<your-mail-server>

2. Post re-installation and configuration of account in the Thunderbird, overwrite the file ‘msgFilterRules.dat’ to the above mentioned location

3. Restart the Thunderbird

 Enjoy mailing.



Now download StarOffice from Google !!!

August 14, 2007

 

No … You heard it right. Its Google pack now bundled with the Sun Microsystem’s office productivity suite StarOffice. Read it again. Its StarOffice not the Sun sponsored free opensource OpenOffice.

Read more …
 


How do I change timezone on my Solaris box ?

August 9, 2007

Changing timezone in Solaris 10 – x86:

1. Edited the /etc/TIMEZONE file, changed the value for TZ to the zone I want,

Eg.     TZ=US/Pacific        ### for PDT
        TZ=Asia/Calcutta     ### for IST

for full list, refer /usr/share/lib/zoneinfo

 2.  Run the following command in the prompt,

#rtc -z Asia/Calcutta                 ### replace "Asia/Calcutta" with your valid zonename
#rtc -c

 

3. reboot the system to effect the change and issue "date" command to verify

# date
Sat May 12 12:13:56 IST 2007