Thursday, March 12, 2009

Error: SAFE MODE Restriction in effect. Ubuntu Intrepid Ibex

I was working on a new application which I will remain nameless, and I was having a strange error, one that I dont normally have at the beginning of a new application. This was the error:
So after going through all the things I thought I had done to cause that error, nothing worked so I went to my bed. When I was walking to work the next day, it hit me "safe mode". So after reaching work, the first thing I did was look for the php.ini file and check to see if safe_mode was on. Did I mention I was using ubuntu intrepid ibex? I am. :) It was. I turned it off and the error went. For those people who do not know where the php.ini file it, it is located here: /etc/php5/apache/. After turning safe_mode on or off, you will need to restart your apache apache. The commands to stop, start and restart your apache server are as follows: sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart.

Hope that solves someone's problem.

Sunday, March 8, 2009

My resume

Jerome A. Bailey

Objective

To be employed in a dynamic organization as an application developer and/or web developer.

Summary

  • Excellent written and verbal communication skills

  • Over 1 year’s experience in web development

  • Strong back end developer with wide skill set

  • Object Oriented PHP 5 web developer

  • PHP, MySQL, Linux, MVC, Zend, P4A, WAMP, and LAMP toolset

Skills

Professional

Web development / Programming, Database Design, Content Management System (CMS) Design.

Technologies

Linux (Ubuntu 8.10 - Intrepid Ibex, 8.04 - Hardy Heron), Windows (95-98, 2000, xp, vista), Java, C, C++, Prolog, SQL, VB .NET, MySQL, ASP .NET, PHP (3, 4 and 5), CSS, XML, WML, AJAX, DHTML, and JavaScript, Zend Framework, MVC (Model, View, Control) P4A (Php for Application), Adobe Photoshop, GIMP.

Applications

Zend Studio Editor, Microsoft FrontPage, Adobe Dreamweaver, Microsoft Excel, Microsoft Word, Microsoft Visio, Microsoft Access, Microsoft Publisher, Notepad.


Professional experience

Contract PHP Application / Web Developer

Chrysalis Communications

November 2008 - Present

Gained and applied knowledge and experience in the building of dynamic websites and applications of various sizes and levels of difficulty. Includes front end web site design, database design, backend development using open source toolset (PHP, MySQL, Linux), front end development with HTML, CSS, AJAX and JavaScript.

PHP Application / Web Developer

au Fait eSolutions

May 2007 – September 2008

Gained a lot of knowledge and experience designing dynamic web sites with the use of PHP, MySQL, HTML, DHTML, CSS and JavaScript. I also assisted with the design of customizable client databases and Content Management Systems (CMS). Designed dynamic web applications with the use of the Zend Framework, and P4A (PHP for Applications).

Education

BA in Computing and Information Technology, 2007

The University of Technology, Jamaica

Additional information

Hobbies include Basketball, Badminton, Chess, playing bass guitar and drums.

References

References can be made available upon request.

Tuesday, March 3, 2009

Reload mask from popup

I have written a module to open a mask (p4a) and add a field value but on adding the value successfully, i want to call the module to reload the mask but it is not working. :(

Monday, March 2, 2009

Informatin Management System created by Me using the P4A framework!!!


login screen of the ims


view of the inside.

its user friendly - quiet easy to add and edit contact. It even allows the user to upload a photo of the contact

Refresh Button with custom code for P4A Applications

I have been using p4a for over a year now and have created several custom codes to do little helpful things whle developing applications in it. One such thing is to create a button that will refresh the mask instead of clearing the cookies using the firefox web developer toolbar. This is a screen shot with the button.


I added the code to refresh the mask here: https://sourceforge.net/forum/message.php?msg_id=6595951 but I have included it below.

The function to create the toolbar is below:

function createToolBar() {

$toolbar = & $this->build('p4a_simple_toolbar', 'toolbar');
//$toolbar = & $this->build('p4a_simple_toolbar', 'toolbar');
$toolbar->buttons->save->setLabel('Save');
//$toolbar->addLabel($toolbar->buttons->save, 'Save Content');
//$toolbar->buttons->save->setTitle('Save Content');
$toolbar->buttons->new->setLabel('New');
$toolbar->buttons->delete->setLabel('Delete');
$toolbar->buttons->print->setLabel('Print Information');
$toolbar->buttons->cancel->setLabel('Cancel');

$toolbar->addSeparator('left');
$refreshMaskDefault = & $toolbar->addButton('refreshMaskDefault', 'reload', 'left');
$refreshMaskDefault->setLabel('Refresh Page');

$this->intercept($refreshMaskDefault, 'onClick', 'doRefreshOriginalPage');

$toolbar->setMask($this);
return $toolbar;
}

The function to refresh the maks is below:

function doRefreshOriginalPage(){
$p4a = & p4a::singleton();
$this->destroy();
$p4a->openMask($this->getName());
}

Anyone can add their image to the button but just use the code and refresh the mask without clearing the cookies. If there are any modifications to the code you can let me know. :) I am open to it.

Saturday, February 28, 2009

Business Card

Yeah, Got my business cards done and I am happy with the design. I couldn't have done it but I am glad and I want to give props to the designer, Peter Scott.

Here is the design for the front and back of the my card.



SOLVED!!!!!!!!!! problem with url rewrite and folders

I found out what the problem was... The problem was that, the url represented paths or folder looking path and so I had to reflect that with the folders I was using: css and js.

Depending on how many front slashed '/' are used from the root file, the up folder code had to be used for the folders being used. Example: if your url is: www.mysite.com, all the folders will be read normally but if the url changes to: www.mysite.com/about_us/, then the folders have to use '../' to reflect the change in the url.

That was the problem and now it works fine. Thanks to my co-worker, Peter Scott.

Wednesday, February 18, 2009

url rewrite

scream!!!!!!!!!!!!!

my head hurts! i have been trying to use the url rewrite for a site im developing for hours and it is not working! i have several tabs opened and according to my sight, i have it correct but it doesnt seem to be reading the css and javascrpt files.

Thursday, February 12, 2009

Running asp on ubuntu intrepid

this looks like a relief for me. i havent tried it yet but it looks promising.

i can run asp on my linux without creating another partition to install "a set of windows".

a detailed link to the tutorial is here: http://www.goitexpert.com/entry.cfm?entry=Run-ASP-and-NET-in-UBUNTU--and-Debian-LINUX

thats the beauty of the open source world, there is always an alternative to something. you are used to using one thing on windows, if you plan on using linux, get out of that mentallity. open your mind to alternatives.

i hope this helps somebody who was wondering about using asp on their linux machine.

Tuesday, December 9, 2008

Devotion for Dec 09, 2008 - Blue Christmas

A Blue Christmas is one for those who have been suffering with grief or loss. The reading made mention of Isaiah's prophecy of the Saviour who was to be called, Wonderfull Counselor, Mighty God, Everlasting Father and Prince of Peace, Isa 9:6. The writer of the reading for the above date's devotion, thought that Isa 53, 3-5, should also be included since it mentions that God is a man of sorrow and aquainted with grief.

The passage that was used for the topic was Isa 53, 1-6.

1 Who has believed our message
and to whom has the arm of the LORD been revealed? The question is asked of who has believd our message, but what message? The message there is the Gospel of Jesus Christ that said that He came, died and rose on the third day. It also speaks about the arm of the LORD - arm there refers to the power of God. So, it can now be read as, "Who has believed our message and to whom has the power of the LORD been revealed? ".

He goes on in verse 2, to give more clues about this person. It says "2 He grew up before him like a tender shoot,
and like a root out of dry ground.
He had no beauty or majesty to attract us to him,
nothing in his appearance that we should desire him.". It speaks about Jesus growing up before David's father, Jesse and having humble roots as He was born in a manger. In the second part of verse 2, it says "He had no beauty or majesty to attract us to him", does this mean that Jesus was not attractive? The first thing that comes to mind is the scripture that says that we were all made in the image of God. What is the image of God? The image of God is the characteristics of God, which would include love, kindness, forgiveness, caring, peace, etc. All men were created with these characteristics. On the contrary, verse 2 speaks about how Jesus was brought up or how he came into the world. The Jews thought that as a King or the Messiah, He should have been born in a more royal place with pomp but instead, His coming into the world was lowly. Therefore, Jesus' coming into the world was nothing that would draw people to the prophesied "King".

3 He was despised and rejected by men,
a man of sorrows, and familiar with suffering.
Like one from whom men hide their faces
he was despised, and we esteemed him not. - This further elaborates on verse 2, about Jesus' appearance to men. Jesus was rejected by his own, "he came unto his own and His own received Him not". Jesus's suffering had left scars all over His body from carrying the cross, 82miles to the flogging, Him being spat on, the torture on the cross. So, He knew suffering physically and emotionally.

4 Surely he took up our infirmities
and carried our sorrows,
yet we considered him stricken by God,
smitten by him, and afflicted. - All the suffering that Jesus went through was for me and you, so that we would be free from sin, but Him suffering was seen by others as Him having sin. Jesus has no sin. He is the example that we should follow. I know that we are all humans but, all things are possible with God. We can live sinless lives. Will we?

5 But he was pierced for our transgressions,
he was crushed for our iniquities;
the punishment that brought us peace was upon him,
and by his wounds we are healed. - A further elaboration on verse 4 as it seeks to mention that it was because of our sin that He went through what He did. Today, the price of sin has been paid already by the blood of Jesus. We are saved. Hallelujah! We live each day by grace. Simply put, grace is favour received for doing nothing.

6 We all, like sheep, have gone astray,
each of us has turned to his own way;
and the LORD has laid on him
the iniquity of us all. - This is interesting. God looked in the future and made preparation for ALL the sin that we could ever commit. What was that preparation? The precious lamb, God's only begotten son. We have gone astray, we will go astray and for all the possibilites of us going astray, it has been paid for already by Jesus' suffering, death and resurrection. This does not by no means give us the right to willing sin, presumptious sinning. Sin is a sin and has consequences. Let us all try to live rigtheous.

Amen.