THE CODE WORD…..PHPXml ||a documentery by koyel banerjee

July 20, 2009

DEPLOYMENT OF GITORIOUS IN FEDORA 10

Filed under: Uncategorized — kopecks89 @ 4:06 pm
Tags: , , , , ,

hello everyone,
i am trying to deploy gitorious in f10.I had gone through the google results and came on the hold that such an pursuit can be done with the help of a capfile in gitorious. such an thing is mentioned in the README file in the gitorious source code
http://gitorious.org/gitorious/mainline/blobs/master/README#line264

however it is directed that such an attempted by using capistrano.
Capistrano brings deployment automation to Rails whether you’re working with a single server or on a cluster of dozens. It was extracted from the 37signals tool chain (like Rails) by core alumni Jamis Buck.

although the aletrnative can be done by some activemessaging agent like the activeMQ (which gitorious uses) along with the STOMP(stompserver)
apart from that the requirements to set up such a system can be summed as follows:
**ruby or ruby on rails working version 1.8/1.9 however 1.9 is recommended
** it must be ensured that your rails project must be using the database of your choice.
gitorious uses mysql however you may choose any DB of your choice since there are no mysql codes onboard gitorious.
**the other dependencies required are ImageMagick
**aspell
**now for a few gems installation:(although i haven’t yet managed to install them successfully 😛 )
like the activeMQalong with the stompserver
**Rmagick which generates the non gravator avatars on gitorious

well next ceratain configurations are required to be done in the database.sample.yml file .
will keep updating more as i get to do more and more.

regards,
koyel

July 9, 2009

PRACTICAL SYMFONY

Filed under: Uncategorized — kopecks89 @ 5:07 pm
Tags:

another step ahead i guess.this is an account of my efforts during the past two days.
well no_mind asked me to go through php symfony and thats what i involved myself in during the last two days.it seems that the symfony has quite a trusted number of members!

SYMFONY is a web application project for php.It mainly is used  for creation and web application maintainence with a flavour of just side stepping to overcone the mundane business of repeating codes. So i rather say its a differnt icing on your regular crispy cake!

well and all the ingridients you need in all the world is  1.a unix or windows system

2.a web server

3. and php of course!

with these symfony is easily installable  and configurable.it is compatible with almost every data base.finally since it has a small overhead,thus its benifits are not eclipsed by the costs of hosting .since it doesn’t need one!:p.

well this is a php based framework and counts better than the zend framework of php.the symfony seems to have incorporated all those which made ruby on rails famous!mentionably mvc(model-view-controller)http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller        and scaffolding.

further details about the mailing list and irc channels with the bug reported can be viewed in:http://www.symfony-project.org/community

symfony 1.3 is the upcoming stable release preceede by symfony 1.0 and 1.2 in this arena.even the NetBeans team announced that the next version of their IDE (6.8) will have native support for symfony!

looks like it has got loads to give us.so looking forward to my project with symfony.

once again kudos to the mentors on irc (kushaldas, mbuf,no_mind,mether tuxmanic and co) who are doing this great job of enlighting up ignorant minds.

courtsey,

koyel

July 6, 2009

ENLIGHTENMENT OF AN IGNORANT

Filed under: Uncategorized — kopecks89 @ 3:51 pm
Tags: , , , , ,

well another step ahead.this time the php scripts are actually running.althought i had been very parasitic to zerocool(arun sag) for this still the effort and patience is worth the reward.afterinstalling apache,mysql and php i guessed i was ready to work with it.I was following a php manual by Matt Zandstra and it instructed to do certain modifications in the httpd.conf file to make apache server execute files with .php extensions.i though that is so easy!but i was so so wrong. It actually took me a good 2 days to achieve success with it.Still nevertheless to mention hadn’t zerocool been there to guide me god knows how much longer it would have taken.heres an account of the grim proceedings of the two days mentionably the 3rd,4th and finally 5th of july!

we came along together because i guess no_mind would be mentoring us both and we had this plan to team up for the task.so we just relied on the mail google chat as a source to exchange instructions and commencements.i told him how i had tried to configure and yet the script did not give any output except a blank mozilla page!he let me certain instructions on about what to configure and where….i did the respective configurations namely to add

addtype application/x-httpd-php.php

after the line addtype application/x-gzip.gz.tgz

this was supposed to execute the files with .php executions via the zend engine so that the php scripts would get parsed!but alas the moment i tried to save the configured file i was denied access.the message said something alike that it was READ-ONLY for me.so?i needed to become the root to change it.so again armoured with his set of instructions and help from a

fedora website i changed or rather modified certain parts of the /pam.d/gdm file and now i was supposed to be able to resume my functions as the root .so i logged in as other and signed myself as the root with my root password.the taskbar flashed…WELCOME ROOT.mission accomplished.now i made the changes but again no avail.at this point of time i felt rather frustrated i felt this issue would never be resolved.but zerocool just laughed and said”we could solve the problem together”.i felt the urge to give a try again.this time maybe the main cause was detected.he happened to ask me where was the file i intend to run on apache i said in my disk.he said there lies the problem!”you have got to move it to /var/www/html/ to make it work.ANOTHER OF MY UTTER SILLY THOUGHTS.i confessed that i had no inkling that it had to be that way the manual mentioned nothing suchlike!how was i ever to know? i just thought it would be like an html file with only php scripts imbibed and i can save the file anywhere around the world and make it work when clicked on!like html does.i was ashamed but he was callous or overlooked taking pity on me , whichone i can’t say.nevertheless he never pressed the issue.so the command was written after i logged in as root in the gui

su –

this logged me as the root

next:

cp[space]/media/disk/12.php[space]/var/www/html/

TARGET                               DESTINATION

the output read you have a mail in /var/spool/mail/root

i reported.he said”i guessed we just copied that :p”

next was another setp to restart httpd to make the darn thing work.he explained even if logout the service keeps going.it runs on daemon.real demonish i can say that!so again i typed the commands:

service httpd restrart

httpd started [ok]

huh.mission accomplished.i said”hurrah it worked”.next with loads of prayers on lips i clicked on : httpd://localhost/12.php

and my script ran :p

the program was :

<html>

<body>

<?php

phpinfo();

?>

</body>

</html>

the simplest of all php commands i daresay but i took so much to make it work.SO I DARESAY THIS DEFINITELY HAVE BEEN THE ENLIGHTENMENT OF AN IGNORANT.once again mbuf the briyiani part bestows itself.

July 1, 2009

THE DAILY CHORES

Filed under: Uncategorized — kopecks89 @ 4:47 pm
Tags: ,

well this is a documentation on the advances that i made these two days after deciding on a project.not exactly “a project” for the sense of the word but after i got the category of my project fixed.This is my 1st summer training with dgplug and i learn here loads daily.The irc sessions are really worth attending with experts advicing,guiding and teaching you!this training started on 25th of june at 1900 IST.well again a thanks to my friend ratna deep debnath for channelizing my energies and efforts into something so valuable and meaningful.

The 1st session got me introduced to the other trainees and the mentors present.each had to mention their name,place and domain of interest as their introduction.this session was conducted by mbuf.the 2nd class was also taken up by mbuf(Shakti Kannan)on the etiquettes of an trainee in an IRC session.well few people by this time had already started choosing and finalising the projects they were interested to work in.however being a newbie in such a savvy session i felt quite at sea.i thought i knew nothing much to choose atall a project!however on 1st july when i was hanging about #dgplug and people were off topic .kushal das happened to ask me about the project i was inetersted in pursuing.i was a fool to let down my spirits and exclaim that i was a novice and incapable of handling any developmental project maybe.The result was obvious i got thoroughly scroned by Mbuf and Kushal.these are the things they exactly said:

kushal> kopecks, you can gain that while working on a project
<mbuf> kopecks: idea of doing project is to gain the expertise;
<mbuf> kopecks: nobody has any expertise before doing a project; otherwise there is no fun in it;
<kushal> none of us had that from the time of birth
<kushal> kopecks, you work, you fail, you learn
<kushal> that is how we all learn new things

<mbuf> kopecks: if you expect to eat biriyani every day for breakfast, lunch and dinner, you will feel bored with it;

well thats how i learned that i am capable or atleast can groom up myself enough to do a project.IMPOSSIBLE IS A WORD FOUND IN A FOOL’S DICTIONARY.

while following the mailing list i came to know about Vivek Khurana(no_mind) who was to    mentor web based php projects. since i had already wanted to do such a work i seized my opportunity and mailed him back as to the eligibility required of the candidate.he replied that a good network connection as well as a latest linux version and th ecandidates willingness was enough capability.so i was ready for this job.

the following day i got up right in the morning i guess around 5:30 and clicked on to the internet. i realised my prime necessity was to install lamp in  my system.i went through hoards of websites giving accounts as to what lamp is ,its usability etc.

i got hold of several informmations like the combined usage of LINUX+APACHE+MY-SQL+PHP(PERL/PYTHON) is termed as lamp in a system.

i had been a complete fool to think i will be getting a software called lamp like i had owned a WAMP while attempting this work before.I stumbled across free downloads of lamp claiming to display a colorful lamp at my systems taskbar.it took me sometime before i laughed at my own thoughts!however frustrated ,without getting satisfactory resultsi went through score sof websites giving this instructions and that on how to install lamp on my system.i tried my hands at many but to no avail.NO AVAIL. i felt i could simply break my lappy with rage.however i wrote to my mentor no_mind.he asked me where i was getting stuck.i said the SElinux config part and he said first disable it and then proceed.still i wasn’t successful.what a pity!

on 1st july morning at about 7:00am i came back full with determinationto get the work done.

this day i came across a useful site:http://linux.learnhub.com/lesson/2867-linux-apache-mysql-and -php-lamp-server-configuration

this site was informative but not much.again i was a good old fool here to think  [reinch@introdesk ~]$…….had been a command.it was embaressing.i tried this on my terminnal.command not identified was the output.took me some time to realise that [reinch@introdesk ~]$.

was the authors linux prompt!you people must be having a good laugh.never mind have your day.next i again pinged my mentor and he let me have a unofficial fedora site which finally saved me.i’m going to put up the address in case many may find it useful:   http://www.fedorafaq.org/#installsoftware

no_mind said have you configured your yum ….i said no…….he said then nothing i suppose will work!so i  configured package installation.this site had been immensly helpful.

apart from that i asked no_mind :”how to chk the status of  my software eg:apache?”

he said: run rpm -qa httpd

i got the idea that you need to just type the name of the package which contains the software inplace of httpd in order to check its status.therefore after doing a walloping update and installing of about 26mbs i tried the command    rpm -qa mysql mysql-server  and i got the version number  5.2.0   next i  tried the same with php.i got the result as version 5.Well to be true i never knew all these commands before but i learned it in a day.now i understand mbuf truely.the briyiani part .next i have started learning php programming.went through a tutorial and noe am going through program writing and types.

good to quote frost here:

and miles to go before i sleep”……..I guess i am going to make this php project work.heartiest thanks to mbuf,kushal das,mether,tuxmaniac,no_mind and co.

Create a free website or blog at WordPress.com.