VCPP - Drawing Ellipses & Rectangles

Today finally I could find a way to draw a rectangle & ellipse using mouse event handling, and this code works by pressing left mouse button for a rectangle & the right for an ellipse. Click here to view the code, which may raise some warnings which can be ignored. The latest revised code dt.17th Jan 2007 is over http://www.shortText.com/bp3zr (or) please Click here to view code with inclusion for keyboard events. Please let me know of any comments you may have.

Apple’s iPhone - Battle for the Zune Microsoft Cruxer - All things in a small phone!

The Mac/tech web has been all about the iPhone over the last few days. First it was the hype and exuberance of the new device, then people started to think about the limited information Jobs presented and speculate about the reality of the iPhone — what it is, what it isn’t. For some, this resulted in a pretty dramatic reversal of their opinion on the iPhone; others simply listed some concerns about the device that really were requests for more information rather than some sort of judgment.

We won’t know until June what the iPhone really is. We might see some real-world reviews beforehand, and from there we can start getting a feel for how good (or immature) this device really is.

Phil Schiller demos the iPhone for CBS’ John Blackstone, and it is impressive, especially when you see how well Apple nailed the user interface goals. The GUI and navigation aspects are simply amazing, and the phone seems quite responsive despite all the eye-candy. There’s cross-fading, real-time zooming, and incredibly smooth scrolling. As the iPhone line matures and diversifies, Apple is going to sell millions of these things

VCPP-Window Creation & Handling

Visual Programming Lab Exercise #1
To view code please follow the link Click Here (or) kindly paste on browser window - http://www.shortText.com/ispen. Hope it runs fine without any good errors. Please do comment if this seems crap or turns out errorenous.

la`C2K6 Matrix Effectz

If you were in a avid audince who wonders how in Converita 2K6 presentation - matrix effect of streaming text was displayed, do follow the link for an interesting article prepared by a guy called Phil, for a flash intro for matrix effect on Converita Here or paste this url in your browser - http://www.shortText.com/r1rql.

Its quite interesting to note you need to specify the co-ordinates, intensity, gravity, glow, texture, randomness, point/position each time you get to start the matrix effect. A nice piece of scripting that has caught good background work.

de`RPTM Simulation - doubts

System Perfomance Monitoring - Is it possible in Linux?
Some doubts:
(1) Is it possible that we can run in graphics in Linux, as this is in TC.
(2) Which library holds the cache system variable (…like mem usage)?

Can we access variable for cache memory or current page file usage in Turbo C? In linux it seems good, by using the command ‘free’, but can we access that same as in TC, for system variable which keeps changing every sec/ms. Herein do follow the link Click Here (or) paste the following url in your browser window - http://www.shortText.com/zyldr.

This is a part of a program thought for simulating system performance monitoring, yet I can’t tell if it’s okay. But it’s only for some random values,not original one which I hope to make soon post along. Please extract or make a .c file in //tc/bin and run it,yet this is just a small version, hoping some improvements & comments along.

de`Brute Force

Brute Force Algorithm - Trial
A small version of BFA used to analyse meaningful words from your own jargon - a dictionary file (say ZION/OXFORD.txt). Do make the text dixtionary and check out existing combinations. A simple program made, yet can be made simpler atmost with lesser iterations if Radix sort had been applied. Please check the code over the link - Click here (or) kindly paste the url in your browser window http://www.shortText.com/vheedh and do comment your views.

de’Mysteries resolute

Life seems to take up it’s vortex up all again with quite a world of deceptions and this pattern does resolve to trace up really well, which none probalbly can simulate, to predict possibilites one can encounter in his walk of life, as like a perception on a narrow tight walk, if not in future predictably now it’s really seems endless!

Changes… Alteration… Inconsistency… must be met with up with periodic refinements & re-definitions - but life does seem to resemble as we reach its morbidity. Inputs must be optimal and processisng may seems to burst it’s menacing best far reaching a threshold anyone could imagine out cruxes that seems a pack of cards, persumbaly well-shuflled, hoping to be laid up on. Define your purpose of existence in making things, innovations and plans, as change never is consistent. Change the evolutionary resolutes…. Reframe… Adapt yourself….

de`Foss 3 days

Saw my dear school friend long days after as now he’s being working in a motor mnc, guessed right as ford. Kapil is now working quite heavy tight on a small new revolutionary Scropio Lxi design in his cad suite today at Ford.
Sounds interesting to note the rounds yet steeper and large LeT for LXi than for DXi. That’s not upward compatible! Thats what they seem to be a management stragedy. Take a compensatory off dear.

Elections around the corner. Blarring speakers and nostaligisa of humurous promises and poems yet surmounts in Township.

Lug meeting #3 was held in the mini auditorium, and every thing seemed quite nice until my witched hands fell on the laptop. Not able to control the screen resolution, all damn monitor turned black. Just could never imagine the presentation could just go bad, and what mage us wonder had been quite a game I played switching between a mix of black and white. Showed the videos on LAFKON trusted computing and XGL. The ultimate sense had percevied up to reach by this video we hope to distribute more off in some manner that could help to make up something …

la`AISC IEEE

TD has finally agreed to managed the revised Bus Routes for tommorrow’s AISC/IEEE meet, due to more turnout entries. Registration will be done at the Auditorium permises. Here lays our proposed bus routes for the AISC IEEE 2006 conference yet to be held tomorrow. Mr.Harish, SRM Easwari Enginering College (IEEE Rockz) seems well happy enough to see the lot. Ajit Thala would co-ordinate until nine. Yet there lays some huge work ahead to manage the show. If rather transport department could consider alloting more buses to direct to other colleges rather than awaiting the delegates at Central.

Route No.2

615am. Poonamalle-Porur-Butt road-Guindy-Pallavaram-Chrompet-Thambaram-New Perungalathur-Vandalur zoo-Kelambakam-College
Route No.3 6.10am Kolathur-Perumbar-Vyasarpadi-Dovedon-Egmore-Royapettah-Luz Mylapore-Mandaveli-Satyastudio-Adyar signal-Adyar depot-Thiruvanmiyur-SRP tools-College
Route No.4 6.00am Avadi-Thirumulaivoyal-Ambattur OT-AMbattur Estate-Wavin-Golden Flats-Collector Nagar-Thirumangalam-Anna Arch-Arumbakkam-Koyambedu Roundana-Vadapalani Signal-Kasi theatre-Anna University-Madyakailash-College
Route No.5 6.00am Ernavoor-ITC-Wimco-Ajax-Periyar Nagar-Thiruvattiyur market-Theradi-Kadalipet-Toll Gate-Kasimedu-Kalmandapam-Royapuram-Beach station-Parrys-7.35am College
Route No.9 6.30am St.Thomas Mount-Nanganallur-Madipakkam-Ramnagar-Pallikaranai-Medavakkam BS-Sholinganallur-College
Route No.15 6.15am Nadhamuni-14 Shops-Anna Roundana-Chindamani-TVK Park-Arun Hotel-Loyala-Valluvarkottam-Thirumalaipillai road-Theynampet-Devar Salai-Saidapet-Chinnamalai-Velachery Checkpost-Vijayanagaram 100′ road- Vijayanagar BS-Tharamani Link road-Sholinganallur-College
Route No.19 6.20am Valasaravakkam-Virugambakkam-KK Nagar-Pillaiyar Nagar-KK Nagar Depot-Ashok Pillar-Samiyarmadam-Liberty-Kodambakkam-North Usman road-T Nagar-Saidapet-IIT-Madyakailash-SRP Tools-Perungudi-Thorapakkam-sholinganallur-College
Route No.20 6.25am Sekar Emporium-Rengarajapuram Main road-Brindavan Street-Panagal Park-Venkatnarayana road-Nandanam Signal-Madyakailash-7.40am College
Route No.29 6.30am Sadras-Sadras Gate-AEC Swimming Pool-hospital-Perumalcheri-Amaipakkam-Thirupporur-Kalavakkam-College
Route No.30 6.10am Thirukazhukundram-Chengalpattu-MM Nagar-Kattangkulathur-Srinivasapuram-Guduvanchery-7.40am College
Route No.32 6.25am Anagaputtur-Pammal-Pallavaram-Chrompet-Sanitorium-East Thambaram-Camp road-Gowrivakkam-Medavakkam-Sholinganallur-College
Route No.33 6.40am Santhome Church-Katchery road-Myalapore Tank-Renga road-Mutt Road-Food World-Mandaveli Bus Depot-Rani Meyyammai-Satyastudio-Besant Nagar-Vannanthurai-Thiruvanmiyur-ECR-Neelankarai-Palavakam-Sholinganallur-college
Route No.40 6.50am Bharath Engg College-Camproad-Gowrivakkam-College
Route No. 41 6.20am Thirumangalam-CPWD quarters-Koyambedu-MMDA-Vadapalani Signal-Ashok Pillar-Kannamapettai-Saidapet Court-Madyakailash-College
Route No.42 6.00am Madavaram Theppal Petti-Perumbur-Jamalia-Ayanavaram Signal-Kellys-Kilpauk Garden-Pachaippa Colege-chetpet Signal-Shashtri Bavan-Nungampakkam HR-Gemioni-Music Academy-Alwarpet-Abiramapuram-Kaliappa-AdayarGateHotel-Kotturpuram-IIT-Madyakailash-College

le`Tribute Irwin

I could just gather from bits and srcaps in Discovery.com on the tragic loss of Steve Irwin.

Statement from Billy Campbell, President, Discovery Networks, U.S. Discovery Communications, Inc, “Our entire company is deeply saddened by the tragic and sudden loss of Steve Irwin, the Crocodile Hunter. Steve was beloved by millions of fans and animal lovers around the world and was one of our planet’s most passionate conservationists. He has graced our air since October 1996 and was essential in building Animal Planet into a global brand.”

DCI Founder and Chairman, John Hendricks said, “Steve was a larger than life force. He brought joy and learning about the natural world to millions and millions of people across the globe. He was a true friend to all of us at Discovery Communications. We extend our thoughts and prayers to Terri, Bindi and Bob Irwin as well as to the incredible staff and many friends Steve leaves behind.”

DCI CEO and President, Judith McHale said, “I don’t think we will ever get over the loss of Steve Irwin, a human being of enormous heart, irrepressible enthusiasm and dedication to everything he touched.”

Steve was killed during a filming expedition on the Great Barrier Reef. While we are still collecting specific details, it was a rare accident in which Steve swam over a stingray and was stung by its barb in his chest. A doctor on board Croc One, Steve’s research vessel, was unable to resuscitate Steve and by the time he was reached by the rescue helicopter he had passed away. Steve’s loss has been felt around the world, evident by the hundreds of heartfelt condolences that have already flooded into Steve’s fan site on AnimalPlanet.com. To honor Steve and the enormous contribution he made to the world and to our company, DCI will rename the garden space in front of Discovery’s world headquarters in Silver Spring, Maryland, the “Steve Irwin Memorial Sensory Garden.” If you want to see his CNN news videos just follow up this link on Steve Irwin. May his soul rest in solemn peace.

M$ Power pointz la`Anime

To get the same Animation in M$ Office Powerpoint 2003 as in Office 2000,try out the following hacks:

1. Use double picture as a template
2. Dont use the pictures as placeholder.Just paste both the picturesn on an empty space.
3. Adjust size if required.
4. After completing all the pastings,from MS photo editor,take the first slide. Select the object and Choose Custom animation,select the desired animation.Then select the second picture and choose the desired animation.
5. Chech the play movie.
6.Double Click Format tool and apply to all other slides.

This seems the only we can get along doing some crap.Other wise we have to use Powerpoint 2000 (or) Staroffice to run the show.(Again it was checked it is not working!).The animation works only for a single copy and not even for multiple
copies.
Click here to see some great photos by my senior Aanjhan during his workshop on Embedded linux.

BangPypers

Some LDTP devloper who i just can recall as Ravi Shankar from Anna Universty, (a final year Linux desktop testing devloper) had a few words of contribution at our college on the AULug meet today.Fact is we got to know some stuff on GPL ,Copyleft LGPL and other kind of BSDL was just paced up.Jolted up but could not see what a GPL enforcemnt could stand up for?

Is the GPL legally enforceable? The short & long answer is ‘no’. Indian law is damn specific in that no contract/license is legally enforceable in a court of law if it is not backed by consideration. About Consideration it’s legalese for money in cash or kind. So if I write an application, license it under GPL and you use it, I can always cancel the license and prevent you from using it, even if you have not violated and provision of the license. You have no remedy in court. But if you violate any of the conditions, I have a remedy in court - not based on GPL, but based on copyright. Heads I win, tails you lose. On the other hand, EULA’s backed by consideration are enforceable both ways. And since the fundamental principles of law are the same the world over, this holds good in most jurisdictions. So it it necessary to spend much time on refining the GPL?

And a simple summary of today’s seminar was GPL - you do your jogging and modification while your stuff is gonna be really a FOSS one.The user of the GPLed software is making a promise to bundle the source code along with the software when he is distributing it/its derivative work, is not that the consideration of this contract between the creator/copyright owner and the user,and with regards to LGPL(Copyleft) you gotta stuff your work based on the legal dirs and that you take up from some GPL libraries for professional works.And with regards to the license you must not change the codes you borrowed from.In BSDL some fellow from Breckly University seems busy doing up his kind of service to contirbute in some licenses up.

The title just seems bit irrelvant to the context but this lug seems to be a very active group up the parts in banglore as BangPypers · Bangalore Python Users Group (BPUG).Just hoped it made a humourous sense.

Further got much inspired by google’s free source code section. Heard the buzz slogan - Make new versions : Release early & Release Often.Hope to join the run on soon. Some good link to start up with code.google.com/hosting/ on the popular search engine.

Stacks ‘n Algos

/*——————–*/
include”stdio.h”
define MAX 25

void push(int t);
int pop(void);
int top=-1,t,rt,lt,c,val;
int stack[MAX];
void push(int t)
{
top++;
stack[top]=t;
}
int pop(void)
{
int r;
if(top==-1)
{
printf(”stack empty\n”);
return 0;
}
else
{
r=stack[top];
top–;
return r;
}
}
/*——————–*/

/* To implement a stack using linked list - MAIN FILE*/

/* Header file inclusion */
#include “STACKLINK.h”

/* Global variables */
int message;

/* MAIN FUNCTION */
void main(void)
{
int option;
create();
do
{
clrscr();
userinfo(message);
printf(”\n#######MENU#######\n”);
printf(”\n1.Push\n2.Pop\n3.Print stack\n4.Exit”);
printf(”\nType in your options\t:”);
scanf(”%d”,&option);
switch(option)
{
case 1:
push();
break;
case 2:
pop();
break;
case 3:
print();
break;
default:
message=3;
break;
}
}while(option!=4);
}

/*——————–*/

/* Implementation of stack using linked list - HEADER FILE */
#include
#include

/* THE NODE STRUCTURE */
struct NodeStack
{
int content;
struct NodeStack *link;
};

/* Global variables */
int count=0,message;
/* Nodes used */
struct NodeStack *head,*s,*s1,*temp;

/* Functions used */
void push();
void pop();
void print();
void userinfo();
void create();

/* Create a head node */
void create()
{
head=(struct NodeStack*)malloc(sizeof(struct NodeStack));
head->content=0;
head->link=NULL;
}

/* Push */
void push()
{
int value;
printf(”\nEnter the value\t:”);
scanf(”%d”,&value);
if(count==0)
{
s1=(struct NodeStack*)malloc(sizeof(struct NodeStack));
head->link=s1;
s1->content=value;
s1->link=NULL;
count++;
message=1;
}
else
{
s=(struct NodeStack*)malloc(sizeof(struct NodeStack));
s1=head;
while(s1->link!=NULL)
{
s1=s1->link;
}

s->content=value;
s->link=NULL;
s1->link=s;
count++;
message=1;
}
}

/* Pop */
void pop()
{
int temp;
s1=head;
if(count==0)
{
message=4;
}
else
{
while(s1->link!=NULL)
{
s=s1;
s1=s1->link;
}
temp=s1->content;
s1->content=NULL;
s->link=NULL;
free(s1);
count–;
printf(”\n%d will be popped out of the stack “,temp);
getch();
message=2;
}
}

/* Print the stack */
void print()
{
if(count==0)
printf(”Stack empty”);
else
{
s=head;
while(s->link!=NULL)
{
s=s->link;
printf(”\n%d”,s->content);
}
printf(”\t\t
#include
#include
#define max 20
int top=-1;
int stack[max];
int size;
int isFull();
int isEmpty();

void create();
int makeEmpty(int *stack);
int push(int *stack,int data);
int pop(int *stack);
int print(int *stack);

void create()
{
int i;
printf(”\nEnter the no. of elements limit upto 10″);
scanf(”%d”,&size);
top++;
for(i=0;i=0;i–)
printf(”%d “,stack[i]);
return 1;
}
}

int makeEmpty(int *stack)
{
int a;
if(isEmpty(stack))
return 0;
else
{
while(isEmpty()!=1)
a=pop(stack);
return a;
}
}

Sans`Edgy Eft (U6.10) drift

GNOME 2.16 Beta has been in Edgy Eft (Ubuntu 6.10) for the past few days [or even a week or so]. It is functioning extremely well. I’ve seen some occasional crashes with Epiphany and Nautilus but I hope that it will be fixed soon. Other than that, there are lots of new things in GNOME 2.16:

Speed Improvements:
Nautilus, Evolution, Tomboy, GEdit all have had great speed improvements. Evolution used to use around ~45M on my machine and now it uses barely 25M. Its functionality has improved as well. Nautilus uses less memory. Tomboy/Mono have had some speed improvements as well. As usual, GNOME Terminal has also undergone some speed improvements.
Features:
Tomboy has the functionality and stability to be accepted to the GNOME 2.16 Release. It has been proposed and will be accepted granted a few changes be made to Gtk# Bindings. Evolution now has a Vertical View for those who are accustomed to MS Outlook. GEdit is also very stable now and it has a much faster startup time (again speed/memory improvements) and I have been using more of its diverse features such as the python console, the file browser in the left, all of which are fantastic and fast. Baobab has been added and it is an extremely useful tool for those who would like to see Disk Usage Analysis. GNOME System Monitor’s “Devices” tab has been renamed more aptly to “File Systems”. Rhythmbox has also improved in terms of speed. Banshee, although not an official part of GNOME, is awesome.

As for Ubuntu Edgy 6.10, there have been speed improvements in terms of booting, but it still needs some work, and I am sure that it will be optimized by the release date. It has recognized my USB Camera and my USB Flashdrive out of the box, without any work. I had never tested it but it’s amazing - as hardware support is increasing for Linux and I’m extremely happy about that. NetworkManager has recognized my Wired Network connection, which makes me all the more excited. Firefox 2.0 Beta (Bon Echo) is in the Repositories right now, and it is functioning quite well. Epiphany is also functioning quite well but I have experienced some crashes - which I had never experienced before. As for OpenOffice.org, it has the latest 2.0.3 Version.So, without further ado, here are the screenshots: