From vchacko at cybersurfers.com Mon Sep 23 10:52:50 2013 From: vchacko at cybersurfers.com (Varghese Chacko) Date: Mon, 23 Sep 2013 23:22:50 +0530 Subject: [Kochi-pm] We got web space!! Message-ID: <52407FF2.2000109@cybersurfers.com> Dear Mongers, I am glad to announce that we got web space at from one of our friends (He doesn't want to disclose his name) The space is now at http://kochipm.wealex.com/ I am not sure what to do with the space, but only thing I know is that we need a website. May be a blog, or may be a website or whatever. What I have in mind is 1. We must be able to say what we are 2. We must be able to list our activities like meetings 3. We must help learning Perl. I met few enthusiastic programmers who wish if they had someone to help them in mastering perl 4. Need Meetings * Occasional events for both Knowledge and fun * Small 1 hour or less meetings within small locality which will be mostly a knowledge sharing sessions like we did earlier 5. Need proper follow ups and get in touch with all 6. Have some nice time together So I Requesting For Comments! May be we can schedule a meeting on Oct 2nd or similar days Please respond with your current location and availability. -- Regards Varghese Chacko ===================================================================== Remembering you're going to die, is the best way I know, to avoid the trap of thinking you have something to loose. You are already naked, there is no reason, not to follow your heart. Stay hungry, stay fool. ~ Steve Jobs WARNING: Please do not print this e-mail unless absolutely necessary. Printing e-mail is a waste. Do not print, Save trees, go Green. Add this warning to your e-mail Signature and spread the word. From vctheguru at gmail.com Mon Sep 23 11:08:30 2013 From: vctheguru at gmail.com (Varghese Chacko) Date: Mon, 23 Sep 2013 23:38:30 +0530 Subject: [Kochi-pm] We got web space !!! Message-ID: <5240839E.3070405@gmail.com> Dear Mongers, I am glad to announce that we got web space at from one of our friends (He doesn't want to disclose his name) The space is now at http://kochipm.wealex.com/ Currently its on shared server and he is ready to give dedicated space if needed. I am not sure what to do with the space, but only thing I know is that we need a website. May be a blog, or may be a website or whatever. What I have in mind is 1. We must be able to say what we are 2. We must be able to list our activities like meetings 3. We must help learning Perl. I met few enthusiastic programmers who wish if they had someone to help them in mastering perl 4. Need Meetings * Occasional events for both Knowledge and fun * Small 1 hour or less meetings within small locality which will be mostly a knowledge sharing sessions like we did earlier 5. Need proper follow ups and get in touch with all 6. Have some nice time together So I Requesting For Comments! May be we can schedule a meeting on Oct 2nd or similar days Please respond with your current location and availability. -- Regards Varghese Chacko ===================================================================== Remembering you're going to die, is the best way I know, to avoid the trap of thinking you have something to loose. You are already naked, there is no reason, not to follow your heart. Stay hungry, stay fool. ~ Steve Jobs WARNING: Please do not print this e-mail unless absolutely necessary. Printing e-mail is a waste. Do not print, Save trees, go Green. Add this warning to your e-mail Signature and spread the word. From adarshtp at gmail.com Mon Sep 23 11:54:24 2013 From: adarshtp at gmail.com (Adarsh TP) Date: Tue, 24 Sep 2013 00:24:24 +0530 Subject: [Kochi-pm] We got web space!! In-Reply-To: <52407FF2.2000109@cybersurfers.com> References: <52407FF2.2000109@cybersurfers.com> Message-ID: Can we have some kind of hackthons ? On Mon, Sep 23, 2013 at 11:22 PM, Varghese Chacko wrote: > Dear Mongers, > > I am glad to announce that we got web space at from one of our friends (He > doesn't want to disclose his name) > The space is now at http://kochipm.wealex.com/ > > I am not sure what to do with the space, but only thing I know is that we > need a website. May be a blog, or may > be a website or whatever. What I have in mind is > > 1. We must be able to say what we are > 2. We must be able to list our activities like meetings > 3. We must help learning Perl. I met few enthusiastic programmers who wish > if they had someone to help them in mastering perl > 4. Need Meetings > * Occasional events for both Knowledge and fun > * Small 1 hour or less meetings within small locality which will be > mostly a knowledge sharing sessions like we did earlier > 5. Need proper follow ups and get in touch with all > 6. Have some nice time together > > So I Requesting For Comments! May be we can schedule a meeting on Oct 2nd > or similar days > > Please respond with your current location and availability. > > -- > Regards > Varghese Chacko > > > ==============================**==============================**========= > Remembering you're going to die, is the best way I know, to avoid the > trap of thinking you have something to loose. You are already naked, > there is no reason, not to follow your heart. Stay hungry, stay fool. > > ~ Steve Jobs > > > WARNING: > Please do not print this e-mail unless absolutely necessary. > Printing e-mail is a waste. Do not print, Save trees, go Green. > > Add this warning to your e-mail Signature and spread the word. > > > ______________________________**_________________ > Kochi-pm mailing list > Kochi-pm at pm.org > http://mail.pm.org/mailman/**listinfo/kochi-pm > -- Regards Adarsh TP adarshtp at gmail.com http://www.kutts.in/ +91 9745343345 ** -------------- next part -------------- An HTML attachment was scrubbed... URL: From shibu.pu at gmail.com Mon Sep 23 23:48:01 2013 From: shibu.pu at gmail.com (Shibu P U) Date: Tue, 24 Sep 2013 12:18:01 +0530 Subject: [Kochi-pm] Script to adjust timings of plane srt subtitles Message-ID: #!/usr/bin/perl use strict; use DateTime; print 'Enter the subtitle file name: '; my $file = ; chomp $file; print "No file name given.\n\n" and exit if !$file; print "No file exists.\n\n" and exit if !-e $file; print 'Enter the time diff to add in seconds: '; my $delta = ; chomp $delta; print "No time diff given.\n\n" and exit if !$delta; print "Not a valid time diff.\n\n" and exit if $delta !~ /^ \d+ $/x; print 'Enter 1 to add or 2 to subtract: '; my $option = ; chomp $option; print "No option given.\n\n" and exit if !$option; print "Not a valid option.\n\n" and exit if $option != 1 && $option != 2; my $op = ($option == 1) ? '+' : '-'; my @splits = split /\//, $file; my ($file_name, $extension) = split /\./, $splits[-1]; my $new_file = "${file_name}_new.$extension"; open my $in, '<', $file or die "Unable to open $file : $!"; open my $out, '>', $new_file or die "Unable to open $new_file : $!"; while (my $line = <$in>) { if ($line =~ / (\d{2}) : (\d{2}) : (\d{2}) , (\d{3}) \s --> \s (\d{2}) : (\d{2}) : (\d{2}) , (\d{3}) /x ) { my ($start_hour, $start_minute, $start_second, $start_millisecond, $end_hour, $end_minute, $end_second, $end_millisecond) = ($1, $2, $3, $4, $5, $6, $7, $8); my $start_time = DateTime->new( year => 2013, hour => $start_hour, minute => $start_minute, second => $start_second, nanosecond => $start_millisecond ); my $end_time = DateTime->new( year => 2013, hour => $end_hour, minute => $end_minute, second => $end_second, nanosecond => $end_millisecond ); my $start_time_new = $start_time->add(seconds => "$op$delta"); my $end_time_new = $end_time->add(seconds => "$op$delta"); print $out sprintf "%02d:%02d:%02d,%03d --> %02d:%02d:%02d,%03d\n", $start_time_new->hour, $start_time_new->minute, $start_time_new->second, $start_time_new->nanosecond, $end_time_new->hour, $end_time_new->minute, $end_time_new->second, $end_time_new->nanosecond; } else { print $out $line; } } close $in; close $out; print "New subtitle file $new_file created in the current directory.\n\n"; -------------- next part -------------- An HTML attachment was scrubbed... URL: