Archive

Archive for the ‘Uncategorized’ Category

Cousins Night Out

September 27th, 2009 Austin Leave a comment

It was really a great night with cousins and friends.
We were playing music and also watching the Cricket Match (India vs Pakistan – India Lost).

 But it was fun talking and dancing and eating yummmyy food…..

we all had a blast, but i would like to share this small video that plays the Birdy Dance Song and we all dancing to its beats… enjoy!!!

Lets all dance on the Oldest and Enjoyable Song – The Birdy Dance

The Birdy Dance – Enjoy it!!

Compress Javascript and CSS Files Using PHP

September 25th, 2009 Austin Leave a comment

Enhance your Javascript and CSS resources:

I have been doing some web applications lately, and wanted to compress my Javascript and CSS files so that page loads are quicker and also the files are cached at all times.

So i thought to myself, that we could truncate the JS and CSS files by removing the unwanted spaces and characters.

So i began writing a script that does the following:

  1. Reads JS or CSS files(s) from a particular folder called either js or css.
  2. Removes all the unwanted characters and blank spaces.
  3. Creates a new file in a new directory called js_cache or css_cache.
  4. Wallla!! we have done it, you have successfully reduced the file file size.

The script will allow you to manage easily your Javascript and CSS resources and to reduce the amount of data transferred between the server and the client.

Performances:

We can say that the performance is better but not the best, but it works.

You would see a slight reduce in time between the server and the client.

Restrictions:

In CSS files there are no problems, but in case of Javascript there may some problems where single line comments are used like ‘// comment ‘.

Therefore always use multi line comments like /* comment */ if you want to use this script

Requirements:

  1. Create a folder for you project
  2. Dump all the js files in js folder and css files in css folder
  3. Then create two more folders js_cache and css_cache
  4. Copy and paste this script in the project directory
  5. Edit the script by changing the constant FILE_TYPE as js or css only
  6. Run the script
  7. New files will be created in js_cache and css_cache
  8. Wow, its done now use these file instead of the original one

ALL THE BEST…

HAPPY SCRIPTING…..

Do keep sharing!!!

Download file:

Compress Javascript and CSS Files Using PHP

Bandra Fair 2009 – Mount Mary

September 12th, 2009 Austin 1 comment
mount mary church

mount mary church

The Basilica of Our Lady of the Mount, more commonly known as Mount Mary, is a Roman Catholic church in the city of Mumbai, India.

The church is one of the most visited churches in the city located in the suburb of Bandra. Every September, the feast of St. Mary is celebrated on the Sunday following 8 September, the birthday of the Virgin Mary. This is a week long celebration known as the Bandra Fair and is visited by thousands of people.

The church stands on a hillock about 80 metres above sea level overlooking the Arabian Sea. It draws lakhs of devotees and pilgrims annually. Many faithful attest to the miraculous powers of St. Mary.

During the Bandra Fair, tens of thousands visit the shrine. The shrine attracts people from all faiths who pray to the statue for thanksgiving or requesting of favors.

In 1760, the church was rebuilt and the statue was substituted with a statue of Our Lady of Navigators in St. Andrew’s church nearby.

This statue has an interesting legend. It goes that a Koli fisherman dreamt that he would find a statue in the sea. The statue was found floating in the sea between 1700 and 1760. A Jesuit Annual Letter dated to 1669 and published in the book St. Andrew’s Church, Bandra (1616–1966) supports this claim.

The Bandra Fair 2009

This is the most awaited event of the year is come up. Popularly known as the Bandra Fair, the festival is celebrated on Mother Mary’s birth anniversary and people of all faiths throng to seek her blessing.

The streets take on a carnival-like atmosphere, with shops and mini-bazaars offering everything from food (yummy), shopping opportunities (@ good prices) and joyrides (super enjoyment).

Street plays, musical concerts, book readings and food festivals also become a part of the celebrations.

2009 : This year the fair starts from 13th Sunday 2009 to 20th Sunday 2009, Its basically for one week.

Mangalore – Simply The Best

July 18th, 2009 Austin 2 comments

Manglore - Nariyals(Coconuts)

Mangalore - Nariyals(Coconuts)

Mangalore (pronounced maengalor ; Tulu: Kudla, Kannada: Mangaluru; Konkani: Kodial, Beary: Maikala) is the chief port city of the Indian state of Karnataka. Bounded by the Arabian Sea and the Western Ghat mountain ranges, Mangalore is the administrative headquarters of the Dakshina Kannada (formerly South Canara) district in southwestern Karnataka.

Mangalore derives its name from the local Hindu deity Mangaladevi. It developed as a port on the Arabian Sea – remaining, to this day, a major port of India. Lying on the backwaters of the Netravati and Gurupura rivers, Mangalore is often used as a staging point for sea traffic along the Malabar Coast. The city has a tropical climate and lies on the path of the Arabian Sea branch of the South-West monsoons. Mangalore’s port handles 75% of India’s coffee exports and the bulk of the nation’s cashew exports.

How to go to Mangalore?

By plane:

Mangalore International Airport , at Bajpe, about 20 km from the city centre. Currently there are daily flights to Mumbai, Bangalore, Goa, Kochi and Calicut in the domestic segment and weekly/bi-weekly flights to Dubai, Abu Dhabi, Muscat (Oman), Doha (Qatar), Kuwait and Bahrain in the international segment.

Filghts: Air India, Jet Airways, Kingfisher Airlines, and Air India Express currently operate flights to Mangalore.

By train:

Mangalore has two big railway stations.

  • Mangalore Central (IR station code : MAQ) is located at Hampankatta, in the heart of the city. It is a terminus and is used only by the trains which terminate at Mangalore.
  • Mangalore Junction (IR station code : MAJN) is situated in Kankanady, about 5 km from the city centre. Most long-distance trains and all trains not terminating at Mangalore stop at this station.

I prefer the Private BUS ’s or the Train cause you can enjoy the Konkan Greenary and Lots more!!

How to get around in Mangalore?

By bus
There are numerous private bus companies which run bus services within the city of Mangalore and its suburbs. Public and Private Bus’s. The minimum bus fare is Rs. 3.25 .  In addition city bus service, there is limited stop (usually called express) .
By cab
White Ambassador Cabs / Indicas are available – usually used by passengers on long-haul routes.  Prepaid cabs are available from the airport to the city – this is generally at a flat rate of Rs. 350-400.
By Autorickshaws
They are available all throughout Mangalore City – starting fare is Rs.13. Pre-paid autos were available from the City Railway Station and the KSRTC bus stand at Bejai, but not any more.

I prefer the CELL ONE private pre-paid cabs. They are much more reasonable and the drivers are very friendly!!

Yummy Ice Creams !!!!

Ideals ice cream parlour

Ideals ice cream parlour

Ice creams - banana split, Gadbad, tiramisu

Ice creams - banana split, Gadbad, tiramisu

Ideals @ Hampankatta. There are three parlours (2 ideals, proximity located 200 metres of one another. One is located near the Milgres junction and the other one is near the next junction heading towards the market) 3rd one Pabba’s, at Lalbagh diagonally facing Saibeen Complex . Ideals is marked as one of the best ice cream in DK, when you are in mangalore this is a must try place. You have to try out “GADBAD” ice cream which is only available in Ideals and the best of all ice creams. Gadbad icecream is an old favorite which has dry fruits and fresh ones chopped up with nuts, layered with icecream (strawberry and vanilla) and topped off with Jello. Hot favorites are “CHOCOLATE DAD” and “TIRAMISU“.

If your one of the HIGH SPIRITS then !!!

The Liquid Lounge (Balmatta Road – the general youth hangout!) : Good music, good ambiance, good beer!

Lets be on the Safer Side!!

Three things will do more to prevent an upset stomach or other traveling aliments than anything else:

  1. Always choose water from filters (Aquaguard water) or bottled mineral water, just to be on the safe side.
  2. Carrying water free hand sanitizer is a must (Germ-X, Purell, etc.) Go ahead and eat with your hands like everyone else! Once you use your hand sanitizer your hands are cleaner than the silverware that was washed with water you don’t want to drink.
  3. Always choose foods that are steaming hot. Food is often prepared ahead of time so you want to see it cooked or see the steam coming of the food.

Best Churches !!!

St Lwarence Shurch

St Lwarence Shurch

St Lwarence statue

St Lwarence statue

St Lwarence - mass timings

St Lwarence - mass timings

St Lwarence Church - Address and Website

St Lwarence Church - Address and Website

  • St. Lawrence Church (A place of Miracle)
    Karkal-Attur,
    Attur North P.O. – 576 117
    Karkala Taluk, Udupi District
  • St. Aloysious, Milagris

In Brief:

  • Mangalore is a port city and the headquarters of Dakshina Kannada district in the coastal region of Karnataka State in India.
  • Mangalore is the gateway to Karnataka.
  • It is one of the five talukas (other than Bantwal, Puttur, Sullia, Belthangady taluks) of the Dakshina Kannada District. This District formerly had 8 talukas, but these were split in August 1997 and the remaining talukas, namely Udupi, Kundapur and Karkala then formed a part of the Udupi district,but there is no division found in the living of two cities.
Mangalore is named after the Goddess Mangaladevi. Other names used by the locals are ‘Mangalooru’ (Kannada), ‘Kudla’ (Tulu), ‘Kodial’ (Konkani), ‘Mikala’ (Beary) and ‘Mangalapuram (Malayalam),’Manjarun’(sanskrith).

Regular Expressions

June 5th, 2009 Austin 2 comments

Regular Expressions with PHP:

Regular Expressions is a powerful tool where in one can match for a particular string with set of rules defined. One can also match and replace a given string, replacing is an optional functionality.

In short, Regular Expressions are very useful in:

  1. Validating forms and end results.
  2. Searching for a particular string or value.
  3. Search and Replace a particular string or value.
  4. It returns precise results.

 

PHP supports two different types of regular expressions: POSIX-extended and Perl-Compatible Regular Expressions (PCRE). The PCRE functions are more powerful than the POSIX ones and faster too.

 

For example:

If you search for the regular expression “dance” in the string “Sam dances to the street beats!” you get a match because ” dance” occurs in that string and hence will return true or the given string.

 

Let’s now start in understanding the advanced part. There are many special characters that give different meaning to the regular expression. It helps us to match a string with wildcards or special characters and we can mix and match any string we like.

 

The characters that match themselves are called literals. The characters that have special meanings are called metacharacters.

 

Let us understand them better:

  1. caret (^) : A caret (^) character at the beginning of a regular expression indicates that it must match the beginning of the string. 
  2. dollar sign ($): A dollar sign ($) is used to match strings that ends with the given pattern. 
  3. dot (.) : A dot (.) metacharacter matches any single character only. 
  4. vertical pipe (|) : A vertical pipe (|) metacharacter is used for alternatives in a regular expression. Its just like an ‘or’ condition. 
  5. backslash (\): If you want to match a literal metacharacter in a pattern, you have to escape it with a backslash. 
  6. plus (+) : The plus sign means match one or more of the preceding expression.
  7. asterix (*): An asterix sign means match zero or more of the preceding expression.
  8. question (?): The question sign means match zero or one of the preceding expression.
  9. curly braces ({}): The curly braces can be used differently as it servers more than one purpose, like:  

 

 

 

  • {x} : match exactly x occurrences of the preceding expression. 
  • {x,} : match x or more occurrences of the preceding expression. 
  • {x,y}: match x or more occurrences of the preceding expression but not more than y times.

 

 

 

We can group the characters inside a pattern like this:

  • Normal characters which match themselves like hello
  • Start and end indicators as ^ and $
  • Count indicators like +,*,?
  • Logical operator like |
  • Grouping with {},(),[]

 

Impressive!!!!!

So now you are ready to mix and match some regular expressions, lets start with some simple examples:

 

Regular Expression

Meaning

 A  Will match string having character uppercase A
 a  Will match string having character lowercase A
 [a-z]   Will match string having characters between the  a to z
 [0-9]   Will match string having numbers between the 0  to 9
 ^[a-z]  Will match string having characters between the  a to z and must start with an alphabet
 [a-z]$  Will match string having characters between the  a to z and must end with an alphabet
 [a-z]+  Will match string having characters between the  a to z and must have atleast one alphabet
 [a-z]?  Will match string having characters between the  a to z and may have zero or more alphabets

 

Programming PHP and Regular Expression

PHP provides functions to find matches in text, to replace each match with other text (a la search and replace), and to find matches among the elements of a list. The functions are:

  • preg_match()
  • preg_match_all()
  • preg_replace()
  • preg_replace_callback()
  • preg_grep()
  • preg_split()
  • preg_last_error()
  • preg_quote()
[Note: We will take the examples based on preg_match() function.]

Lets us first understand the basic meaning and usage of preg_match:

This is used to perform a regular expression match (PHP 4, PHP 5)

Syntax:

int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] )

Searches subject for a match to the regular expression given in pattern.

Lets us go a lttle deeper in understanding the parameters passed:

pattern

         The pattern to search for, as a string.

subject

        The input string.

matches

        If a match is provided, then it is filled with the results of search. $matches[0] will contain the text that matched the full pattern, $matches[1] will have the text that matched the first captured parenthesized sub pattern, and so on.

flags

       Flags can be the following flag:

       PREG_OFFSET_CAPTURE

       If this flag is passed, for every occurring match the appendant string offset will also be returned.

       Note that this changes the return value in an array where every element is an array consisting of the

       matched string at index 0 and its string offset into subject at index 1.

offset

        Normally, the search starts from the beginning of the subject string.

        The optional parameter offset can be used to specify the alternate place from which to start the search (in bytes).

 

So let’s start with a small example:

<?php
     
$subject = "abcdef";
     
$pattern = '/^def/';
     
preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 3);
     
print_r($matches);
?>

 

The above example will output:

Array
(
)

While this example

 

<?php
     
$subject = "abcdef";
     
$pattern = '/^def/';
     
preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE);
     
print_r($matches);
?>

 

Will produce

Array
(
   [0] => Array
       (
           [0] => def
           [1] => 0
       ) 

)

 

Reference:-

  1. regular expressions info
  2. web cheat sheet
  3. PHP Manual : preg_match
  4. phpro regex
  5. ibm developerworks
  6. practical php regular expression recipes

 

There is another surprise for all of you’ll!!!!

We have faced many difficulties in implementing or understand complex regular expressions and we had to test it over and over and over again to get it right.

So to lessen the burden I have written a script that will test the regular expression and the string to be matched and return the Boolean (true / false) with the first occurrence of the string.

It’s really helped me in mastering my skills and techniques in regular expression.

So do try it out………..

Also share in your tips and techniques regarding regular expressions and PHP.

Requirements:

  • Any server having PHP installed
  • That’s it!!!!

You can find the script here:

regular_expression_php

 

Preview:

 

Regular Expression and Preg Match

Regular Expression and Preg Match

Indian Premier League (IPL) 2009 Schedule

February 15th, 2009 Austin 15 comments

IPL 2009, the major cricket fights in game of cricket will be held from 18th April 2009 to 1st June 2009. The major matches between the great teams will be held at Banglore(Bangaluru) and Kolkata. The final and the semi final match will be held at Mumbai.

IPL Cricket Teams

IPL Cricket Teams

The Highest paid players are England’s Kevin Pietersen and Andrew Flintoff and the prize id US$ 1.55 million and they both were bought by Banglore Royal Challengers and Chennai Super Kings, but many other star cricketers not sold yet.

IPL 2008 Team Ratings:-

IPL Teams Ratings

IPL Teams Ratings

Match Schedule:-

1. Bangalore Royal Challengers Vs Kolkata Knight Riders
Date : April 18, 2009
Time: 8:00 PM
Ground: Bangalore

2. Kings XI Punjab Vs Chennai Super Kings
Date : April 19, 2009
Time: 5:00 PM
Ground: Mohali

3. Delhi Daredevils Vs Rajasthan Royals
Date : April 19, 2009
Time: 8:30 PM
Ground: Delhi

4. Kolkata Knight Riders Vs Deccan Chargers
Date : April 20, 2009
Time: 4:00 PM
Ground: Kolkata

5. Mumbai Indians Vs Bangalore Royal Challengers
Date : April 20, 2009
Time: 8:00 PM
Ground: Mumbai

6. Rajasthan Royals Vs Kings XI Punjab
Date : April 21, 2009
Time: 8:00 PM
Ground: Jaipur

7. Deccan Chargers Vs Delhi Daredevils
Date : April 22, 2009
Time: 8:00 PM
Ground: Hyderabad

8. Chennai Super Kings Vs Mumbai Indians
Date : April 23, 2009
Time: 8:00 PM
Ground: Chennai

9. Deccan Chargers Vs Rajasthan Royals
Date : April 24, 2009
Time: 8:00 PM
Ground: Hyderabad

10. Kings XI Punjab Vs Mumbai Indians
Date : April 25, 2009
Time: 8:00 PM
Ground: Mohali

11. Bangalore Royal Challengers Vs Rajasthan Royals
Date : April 26, 2009
Time: 8:00 PM
Ground: Bangalore

12. Chennai Super Kings Vs Kolkata Knight Riders
Date : April 26, 2009
Time: 4:00 PM
Ground: Chennai

13. Mumbai Indians Vs Deccan Chargers
Date : April 27, 2009
Time: 8:00 PM
Ground: Mumbai

14. Kings XI Punjab Vs Delhi Daredevils
Date : April 27, 2009
Time: 4:00 PM
Ground: Mohali

15. Bangalore Royal Challengers Vs Chennai Super Kings
Date : April 28, 2009
Time: 8:00 PM
Ground: Bangalore

16. Kolkata Knight Riders Vs Mumbai Indians
Date : April 29, 2009
Time: 8:00 PM
Ground: Kolkata

17. Delhi Daredevils Vs Bangalore Royal Challengers .
Date : April 30, 2009
Time: 8:00 PM
Ground: Delhi

18. Deccan Chargers Vs Kings XI Punjab
Date : May 1, 2009
Time: 8:00 PM
Ground: Hyderabad

19. Rajasthan Royals Vs Kolkata Knight Riders
Date : May 1, 2009
Time: 4:00 PM
Ground: Jaipur

20. Chennai Super Kings Vs Delhi Daredevils
Date : May 2, 2009
Time: 8:00 PM
Ground: Chennai

21. Bangalore Royal Challengers Vs Deccan Chargers
Date : May 3, 2009
Time: 4:00 PM
Ground: Bangalore

22. Kings XI Punjab Vs Kolkata Knight Riders
Date : May 3, 2009
Time: 8:00 PM
Ground: Mohali

23. Mumbai Indians Vs Delhi Daredevils
Date : May 4, 2009
Time:4:00 PM
Ground: Mumbai

24. Rajasthan Royals Vs Chennai Super Kings
Date : May 4, 2009
Time: 8:00 PM
Ground: Jaipur

25. Bangalore Royal Challengers Vs Kings XI Punjab
Date : May 5, 2009
Time:8:00 PM
Ground: Bangalore

26. Chennai Super Kings Vs Deccan Chargers
Date : May 6, 2009
Time: 8:00 PM
Ground: Chennai

27. Mumbai Indians Vs Rajasthan Royals
Date : May 7, 2009
Time: 8:00 PM
Ground: Mumbai

28. Delhi Daredevils Vs Chennai Super Kings
Date : May 8, 2009
Time: 4:00 PM
Ground: Delhi

29. Kolkata Knight Riders Vs Bangalore Royal Challengers
Date : May 8, 2009
Time: 8:00 PM
Ground: Kolkata

30. Rajasthan Royals Vs Deccan Chargers
Date : May 9, 2009
Time:8:00 PM
Ground: Jaipur

31. Chennai Super Kings Vs Kings XI Punjab
Date : May 10, 2009
Time: 8:00 PM
Ground: Chennai

32. Deccan Chargers Vs Kolkata Knight Riders
Date : May 11, 2009
Time: 4:00 PM
Ground: Hyderabad

33. Rajasthan Royals vs Delhi Daredevils
Date : May 11, 2009
Time: 8:00 PM
Ground: Jaipur

34. Kings XI Punjab Vs Bangalore Royal Challengers
Date : May 12, 2009
Time: 8:00 PM
Ground: Mohali

35. Kolkata Knight Riders Vs Delhi Daredevils
Date : May 13, 2009
Time: 8:00 PM
Ground: Kolkata

36. Mumbai Indians Vs Chennai Super Kings
Date : May 14, 2009
Time: 8:00 PM
Ground: Mumbai

37. Delhi Daredevils Vs Deccan Chargers
Date : May 15, 2009
Time: 8:00 PM
Ground: Delhi

38. Mumbai Indians Vs Kolkata Knight Riders
Date : May 16, 2009
Time: 8:00 PM
Ground: Mumbai

39. Delhi Daredevils Vs Kings XI Punjab
Date : May 17, 2009
Time: 8:00 PM
Ground: Delhi

40. Rajasthan Royals Vs Bangalore Royal Challengers
Date : May 17, 2009
Time: 4:00 PM
Ground: Jaipur

41. Deccan Chargers Vs Mumbai Indians
Date : May 18, 2009
Time: 8:00 PM
Ground: Hyderabad

42. Kolkata Knight Riders Vs Chennai Super Kings
Date : May 18, 2009
Time: 4:00 PM
Ground: Kolkata

43. Bangalore Royal Challengers Vs Delhi Daredevils
Date : May 19, 2009
Time: 8:00 PM
Ground: Bangalore

44. Kolkata Knight Riders Vs Rajasthan Royals
Date : May 20, 2009
Time: 8:00 PM
Ground: Kolkata

45. Mumbai Indians Vs Kings XI Punjab
Date : May 21, 2009
Time: 4:00 PM
Ground: Mumbai

46. Chennai Super Kings Vs Bangalore Royal Challengers
Date : May 21, 2009
Time: 8:00 PM
Ground: Chennai

47. Delhi Daredevils Vs Kolkata Knight Riders
Date : May 22, 2009
Time: 8:00 PM
Ground: Delhi

48. Kings XI Punjab Vs Deccan Chargers
Date : May 23, 2009
Time: 8:00 PM
Ground: Mohali

49. Delhi Daredevils Vs Mumbai Indians
Date : May 24, 2009
Time: 8:00 PM
Ground: Delhi

50. Chennai Super Kings Vs Rajasthan Royals
Date : May 24, 2009
Time: 4:00 PM
Ground: Chennai

51. Deccan Chargers Vs Bangalore Royal Challengers
Date : May 25, 2009
Time: 4:00 PM
Ground: Hyderabad

52. Kolkata Knight Riders Vs Kings XI Punjab
Date : May 25, 2009
Time: 8:00 PM
Ground: Kolkata

53. Rajasthan Royals Vs Mumbai Indians
Date : May 26, 2009
Time: 8:00 PM
Ground: Jaipur

54. Deccan Chargers Vs Chennai Super Kings
Date : May 27, 2009
Time: 8:00 PM
Ground: Hyderabad

55. Bangalore Royal Challengers Vs Mumbai Indians
Date : May 28, 2009
Time: 4:00 PM
Ground: Bangalore

56. Kings XI Punjab Vs Rajasthan Royals
Date : May 28, 2009
Time: 8:00 PM
Ground: Mohali

May 29 is the day For Rest

First semi-final
Date : May 30, 2009
Time: 8:00 PM
Ground: Mumbai

Second semi-final
Date : May 31, 2009
Time: 8:00 PM
Ground: Mumbai

Final
Date : June 1, 2009
Time: 8:00 PM
Ground: Mumbai

ICC 20-20 World Cup 2009

February 15th, 2009 Austin Leave a comment

ICC World Twenty20 2009 Time Table and Team Fixtures.

In the upcoming season of ICC T20 World Cup 2009, 12 teams are going to participates for the tournament and all the teams are divides in the four groups as given Below :

  • Group A : India, Bangladesh, Ireland
  • Group B : Pakistan, England, Netherlands
  • Group C : Australia, Sri Lanka, West Indies
  • Group D : South Africa, New Zealand, Scotland

The ICC T20 World Cup 2009 will be starting from Friday, June 5, 2009 and the first match is between the team England and Netherlands, which are from Group B at London and the same match is Day night.

The same tournament ends on Sunday, June 21, 2009 with the Final match, which is held at London.

Match Schedule , Time and Venue

Date June 2009 Time (GMT) Match Details Venue
Fri 05 16:30 England v Netherlands, 1st Match, Group B, ICC World Twenty20, 2009 London (D/N)
Sat 06 09:00 New Zealand v Scotland, 2nd Match, Group D, ICC World Twenty20, 2009 London
Sat 06 12:30 Australia v West Indies, 3rd Match, Group C, ICC World Twenty20, 2009 London
Sat 06 16:30 India v Bangladesh, 4th Match, Group A, ICC World Twenty20, 2009 Nottingham (D/N)
Sun 07 12:30 South Africa v Scotland, 5th Match, Group D, ICC World Twenty20, 2009 London
Sun 07 16:30 England v Pakistan, 6th Match, Group B, ICC World Twenty20, 2009 London (D/N)
Mon 08 12:30 Bangladesh v Ireland, 7th Match, Group A, ICC World Twenty20, 2009 Nottingham
Mon 08 16:30 Australia v Sri Lanka, 8th Match, Group C, ICC World Twenty20, 2009 Nottingham (D/N)
Tue 09 12:30 Pakistan v Netherlands, 9th Match, Group B, ICC World Twenty20, 2009 London
Tue 09 16:30 New Zealand v South Africa, 10th Match, Group D, ICC World Twenty20, 2009 London (D/N)
Wed 10 12:30 Sri Lanka v West Indies, 11th Match, Group C, ICC World Twenty20, 2009 Nottingham
Wed 10 16:30 India v Ireland, 12th Match, Group A, ICC World Twenty20, 2009 Nottingham (D/N)
Thu 11 12:30 D1 v A2, 13th Match, Group F, ICC World Twenty20, 2009 Nottingham
Thu 11 16:30 B2 v D2, 14th Match, Group E, ICC World Twenty20, 2009 Nottingham (D/N)
Fri 12 12:30 B1 v C2, 15th Match, Group F, ICC World Twenty20, 2009 London
Fri 12 16:30 A1 v C1, 16th Match, Group E, ICC World Twenty20, 2009 London (D/N)
Sat 13 12:30 C1 v D2, 17th Match, Group E, ICC World Twenty20, 2009 London
Sat 13 16:30 D1 v B1, 18th Match, Group F, ICC World Twenty20, 2009 London (D/N)
Sun 14 12:30 A2 v C2, 19th Match, Group F, ICC World Twenty20, 2009 London
Sun 14 16:30 A1 v B2, 20th Match, Group E, ICC World Twenty20, 2009 London (D/N)
Mon 15 12:30 B2 v C1, 21st Match, Group E, ICC World Twenty20, 2009 London
Mon 15 16:30 B1 v A2, 22nd Match, Group F, ICC World Twenty20, 2009 London (D/N)
Tue 16 12:30 D1 v C2, 23rd Match, Group F, ICC World Twenty20, 2009 Nottingham
Tue 16 16:30 D2 v A1, 24th Match, Group E, ICC World Twenty20, 2009 Nottingham (D/N)
Thu 18 16:30 1st Semi-Final, ICC World Twenty20, 2009 Nottingham
Fri 19 16:30 2nd Semi-Final, ICC World Twenty20, 2009 London (D/N)
Sun 21 14:00 Final, ICC World Twenty20, 2009 London

So lets PLAY BALL!!!

Best Hosting Plans for India

October 6th, 2008 Austin Leave a comment

http://hosting.b4uindia.com/

http://www.brainpulse.com

Categories: Uncategorized

MCA Sem 3 Syllabus 2008

October 2nd, 2008 Austin 1 comment

Hi guys,

MCA Sem 3 Syllabus has been given.

I am uploading them please have it downloaded and start studying cause as you know we have our exams starting from 2nd December.

Syllabus:-

or

ooc

mis

dcn

dbms

se

Categories: MCA, free, friends Tags: , , ,

How to Upload Images from a Directory & MySQL table

September 11th, 2008 Austin Leave a comment

Upload Images from a Directory & PHP & MySQL table:-

//This will automatically refresh the page so timeout wont be an issue.

function set_update_images()
{
$next = get_param(‘next’);
$next = ($next) ? $next:0;

$dir_images = “images folder path”;

$sql_query = “SELECT *
FROM table_name
ORDER BY id
LIMIT $next , 10
” ;
$next+=2;
$uqid = db_query($sql_query);
if(db_num_rows($uqid) > 0)
{
while($arr = db_fetch_array($uqid))
{
$file_info = $dir_images.$arr['pcode'].’.jpg’;
if(is_file($file_info))
{
echo ‘<hr>’;
echo $file_info .’<br>’;
$id = $arr['id'];
echo ‘<br>’.$arr['pcode'];
$_FILES['image']['name'] = $arr['pcode'].’.jpg’;
$_FILES['image']['tmp_name'] = $file_info;
$_FILES['image']['type'] = ‘image/jpeg’;
$_FILES['image']['error'] = 0;

echo ‘<hr>’;
echo $name = $_FILES["image"]["name"];
$name1 = explode(“.”,$name);
echo ‘<pre>’;
print_r($name1);
echo ‘</pre>’;

$file_name = remove_illegals($name1[0]);
echo ‘<hr>’;
echo $fname = $file_name .”_”.$id.”.”.$name1[1];
echo ‘<hr>’;

//Thumbnail image
$resizeImg->resize($_FILES,’image’,$CFG->thumb_w,$CFG->thumb_h);
if($resizeImg->saveTo($fname, $CFG->dirproducts.”thumb/”))
{
$flag_for_upload_t=1;
}

$updt_qry = “UPDATE table_name SET image= ‘”.$fname.”‘ WHERE id =’”.$id.”‘”;

$uqid1 = db_query($updt_qry);

}
}

?>
<script language=”javascript” type=”text/javascript”>
//alert(“Next batch of <?php //echo $next; ?> starting now!”);
window.location= “products/products.php?next=<?php echo $next; ?>”;
</script>
<?php
}
}