Archive

Archive for August, 2007

Micromouse contest – on the way!!!!

August 27, 2007 5 comments

This was on my mailbox and i just felt the need to keep my readers aware of it.

Welcome to MindSpark 07! MindSpark is the annual technical festival of College of Engineering Pune. MindSpark will be conducted this year on 5th, 6th and 7th October. We have a host of events lined up as part of MindSpark including Robotics, Paper Presentation, Business Plan contest, programming contests, Contraptions and Circuit design competitions. COEP is proud to associate with IITBombay Techfest in their Nexus initiative.

The Robotics event has three competitions - Micromouse (the standard autonomous robot competition), Dogfight (Manual robots slug it out against each other in a pick-and-place competition) and IITB Techfest Nexus. The preliminary round for Techfest Vertigo will be held at COEP under Nexus, the winner gaining a direct entry at the IITB Techfest in January.

The prize money for Micromouse and Dogfight is a cool total of Rs.70,000 (20k + 15k for each event). Accomodation facilities will also be provided on the college campus with a nominal fee of Rs.150 per participant for three days. Online registrations for the competitions has started. Register yourself as early as possible.

See you at MindSpark!

for more details -
www.mind-spark.org
www.robotics.mind-spark.org

Contact – Vineet 09823743030 (Co-ordinator, Robotics)

My friend pratap is one of the co-ordinators of this event, and he is a very friendly person so i take the liberty of posting his contact too.Guys have fun participating!!!

Pratap Tokekar
Co-ordinator, Events
MindSpark 07
COEP
09423234455

Categories: Tech News

Php to Excel

August 17, 2007 1 comment

This is one sweet code to export your variables and pass it on to a downloadable excel file. As of now i am working on an resume maintenance project and that needs this aspect. I googled for the simplest and efficient code.

I use a wamp localhost and faced warnings with all classes and codes that use the fopen(xls://FILENAME) format. This particular code was so cool enough to not read and open any existing file but just provide a  new file that you’ll name at runtime and download.

Its  more like writing the file on flyby!!

If you were one among those who googled for excel to php/php to excel/php write excel files/write excel files in php  and came here, trust me its a standalone simple code below. Just copy paste and it will start working.

<?php
$line1=”ID\tProduct\tColor\tSales\t”;
$line2=”1\tPrinter\tGrey\t13\t”;
$line3=”2\tCD\tBlue\t15\t”;
$line4=”3\tDVD\tRed\t7\t”;
$line5=”4\tMonitor\tGreen\t4\t”;
$line6=”5\tTelephone\tBlack\t2\t”;
$data=”$line1\n$line2\n$line3\n$line4\n$line5\n$line6\n”;

header(“Content-type: application/x-msdownload”);
header(“Content-Disposition: attachment; filename=extraction.xls”);
header(“Pragma: no-cache”);
header(“Expires: 0″);
print “$header\n$data”;

?>

The code is pretty self explanatory with /t for column break and \n for line break.

Cya
Madan

Categories: php
Follow

Get every new post delivered to your Inbox.