This blog is for web developers and latest trends seekers. This is a blog for Web Development tutorials, Learn PHP, PHP tricks and tips, JavaScript, CSS, Framework, CodeIgniter etc as well as Job interview tips and much more...
Tuesday, March 21, 2017
Developer Paradize - A Lot of tutorials
It covers tutorials related to following areas:
• JavaScript
• Symfony & Doctrine
• Codeigniter Articles
• PHP and Mysql Articles
• jQuery Articles
Follow http://developer-paradize.blogspot.com/ for latest updates for tutorials.
Tuesday, February 19, 2013
Simple Jquery Ajax with Codeigniter (Video tutorial)
Wednesday, December 21, 2011
PHP to Drupal: Get up to speed with drupal from a php developer background
Saturday, July 2, 2011
CodeIgniter from Scratch, Day 10: The Calendar Library
In this tenth episode of the CodeIgniter From Scratch screencast series, we will be exploring the Calendar library. We are also going to utilize the database class and jQuery AJAX. I will show you how to build a simple and CSS-styled calendar page, which will have the ability to store and display content for each day.
Day 10: The Calendar Library
Wednesday, June 29, 2011
CodeIgniter from Scratch, Day 9 : File Uploading and Image Manipulation
In lesson nine of our CodeIgniter series, we’ll build a small image gallery that allows you to upload files, and automatically create thumbnails.
Day 9 : File Uploading and Image Manipulation
Monday, June 27, 2011
CodeIgniter from Scratch: Day 8 – AJAX
The CodeIgniter from Scratch series was unexpectedly, and significantly popular. Today, I’m pleased to announce that, with the help of one of my best authors, Burak, we’ll be continuing the series! Additionally, the most often requested topic is the subject for today’s screencast: combining CodeIgniter and jQuery.
Remember, it is not required that you watch the previous lessons in order to understand today’s screencast. It’s a self-contained article. However, if you’re new to CodeIgniter, we do recommend that you start from the beginning!
Day 8: AJAX
CodeIgniter from Scratch Day 7: Pagination
In these last two weeks, I’ve received bunches of requests for a CodeIgniter pagination screencast; so that’s what we’ll be reviewing today! As a bonus, we’ll also take a look at the super convenient HTML Table class.
Day 7: Pagination
Sunday, June 26, 2011
CodeIgniter From Scratch: Day 6 – Login
In today’s hour long video tutorial, we’ll be doing a lot! We’ll implement a login and signup form that will allow us to lock down certain sections of our fictional site. As you’ll find, working with sessions in CodeIgniter is a cinch!
Day 6
Watch the video here!
P.S. The Logout Button
I forgot to add the “logout” button during the screencast. There was so much to cover, that I was bound to forget something! Luckily, it’s really easy. Simply add a link, to the “members” area, which links to the login class, and a “logout” method (login/logout). Then, all we must do is destroy the user’s session, and redirect them back to the login form. Download the source code if confused.
function logout()
{
$this->session->sess_destroy();
$this->index();
}
Hope you Enjoy it!
Keep in mind that we’re just scratching the surface, in terms of flexibility and security. We can – and very well may – take things much further. But this should get you started!
Saturday, June 25, 2011
CodeIgniter From Scratch: Day 5 – CRUD
The most requested tutorial for day five of our CodeIgniter screencast series was for an introduction to CRUD operations. We’ll review how to easily create, read, update, and delete records using CI’s active-records class.
Day 5: CRUD Operations
Friday, June 24, 2011
CodeIgniter From Scratch: Day 4 – Newsletter Signup
@(http://net.tutsplus.com/articles/news/codeigniter-from-scratch-day-4-newsletter-signup/)
Continuing on from Day 3, we’ll expand our little application into a simple newsletter signup form. This will allow us to taker a closer look at both the email and the form_validation classes. Learn it all in this 30 minute screencast.
Day 4
CodeIgniter From Scratch: Day 3. Sending Emails
source: http://net.tutsplus.com/articles/news/codeigniter-from-scratch-day-3/
At the request of some of our readers, this week, we’ll examine just how easy it is to send emails with attachments using Gmail. With raw PHP, this would be a long and tedious task. However, with CodeIgniter, it’s a cinch! I’ll show you how in this eighteen minute video tutorial.
Day 3
Thursday, June 23, 2011
CodeIgniter From Scratch: Day 2
source: http://net.tutsplus.com/articles/news/codeigniter-from-scratch-day-2/
Continuing on from day 1, today, I’ll teach you five different ways to write select statements for your database. If you haven’t watched the first entry in this video series, don’t worry; each video can function on its own as a single tutorial. Having said that, I highly recommend that you watch each screencast.
DAY 2
CodeIgniter From Scratch: Day 1
Source: http://net.tutsplus.com/articles/news/codeigniter-from-scratch-day-1/
After numerous requests, today we are launching a new screencast series on Nettuts+ that will focus exclusively on the CodeIgniter PHP framework. Over the course of about 10 videos, I’ll teach you exactly how to use this framework. Ultimately, we’ll work our way up to building a custom CMS. Without further ado, here’s day one!
Day 1
Thursday, January 20, 2011
Ten Tough Interview Questions and Ten Great Answers
1. Tell me about yourself.
It seems like an easy interview question. Its open ended. I can talk about whatever I want from the birth canal forward. Right?
Wrong. What the hiring manager really wants is a quick, two- to three-minute snapshot of who you are and why youre the best candidate for this position.
So as you answer this question, talk about what youve done to prepare yourself to be the very best candidate for the position. Use an example or two to back it up. Then ask if they would like more details. If they do, keep giving them example after example of your background and experience. Always point back to an example when you have the opportunity.
Tell me about yourself does not mean tell me everything. Just tell me what makes you the best.
2. Why should I hire you?
The easy answer is that you are the best person for the job. And dont be afraid to say so. But then back it up with what specifically differentiates you.
For example: You should hire me because Im the best person for the job. I realize that there are likely other candidates who also have the ability to do this job. Yet I bring an additional quality that makes me the best person for the job--my passion for excellence. I am passionately committed to producing truly world class results. For example . . .
Are you the best person for the job? Show it by your passionate examples.
2. What is your long-range objective?
Make my job easy for me. Make me want to hire you.
The key is to focus on your achievable objectives and what you are doing to reach those objectives.
For example: Within five years, I would like to become the very best accountant your company has on staff. I want to work toward becoming the expert that others rely upon. And in doing so, I feel Ill be fully prepared to take on any greater responsibilities which might be presented in the long term. For example, here is what Im presently doing to prepare myself . . .
Then go on to show by your examples what you are doing to reach your goals and objectives.
3. How has your education prepared you for your career?
This is a broad question and you need to focus on the behavioral examples in your educational background which specifically align to the required competencies for the career.
An example: My education has focused on not only the learning the fundamentals, but also on the practical application of the information learned within those classes. For example, I played a lead role in a class project where we gathered and analyzed best practice data from this industry. Let me tell you more about the results . . .
Focus on behavioral examples supporting the key competencies for the career. Then ask if they would like to hear more examples. Enhance your career opportunities by getting the training you need, find top degrees and schools near you!
4. Are you a team player?
Almost everyone says yes to this question. But it is not just a yes/no question. You need to provide behavioral examples to back up your answer.
A sample answer: Yes, Im very much a team player. In fact, Ive had opportunities in my work, school and athletics to develop my skills as a team player. For example, on a recent project . . .
Emphasize teamwork behavioral examples and focus on your openness to diversity of backgrounds. Talk about the strength of the team above the individual. And note that this question may be used as a lead in to questions around how you handle conflict within a team, so be prepared.
5. Have you ever had a conflict with a boss or professor? How was it resolved?
Note that if you say no, most interviewers will keep drilling deeper to find a conflict. The key is how you behaviorally reacted to conflict and what you did to resolve it.
For example: Yes, I have had conflicts in the past. Never major ones, but there have been disagreements that needed to be resolved. I've found that when conflict occurs, it helps to fully understand the other persons perspective, so I take time to listen to their point of view, then I seek to work out a collaborative solution. For example . . .
Focus your answer on the behavioral process for resolving the conflict and working collaboratively.
6. What is your greatest weakness?
Most career books tell you to select a strength and present it as a weakness. Such as: I work too much. I just work and work and work. Wrong. First of all, using a strength and presenting it as a weakness is deceiving. Second, it misses the point of the question.
You should select a weakness that you have been actively working to overcome. For example: I have had trouble in the past with planning and prioritization. However, Im now taking steps to correct this. I just started using a pocket planner . . . then show them your planner and how you are using it.
Talk about a true weakness and show what you are doing to overcome it.
8. If I were to ask your professors to describe you, what would they say?
This is a threat of reference check question. Do not wait for the interview to know the answer. Ask any prior bosses or professors in advance. And if theyre willing to provide a positive reference, ask them for a letter of recommendation.
Then you can answer the question like this:
I believe she would say I'm a very energetic person, that Im results oriented and one of the best people she has ever worked with. Actually, I know she would say that, because those are her very words. May I show you her letter of recommendation?
So be prepared in advance with your letters of recommendation.
9. What qualities do you feel a successful manager should have?
Focus on two words: leadership and vision.
Here is a sample of how to respond: The key quality in a successful manager should be leadership--the ability to be the visionary for the people who are working under them. The person who can set the course and direction for subordinates. The highest calling of a true leader is inspiring others to reach the highest of their abilities. I'd like to tell you about a person whom I consider to be a true leader . . .
Then give an example of someone who has touched your life and how their impact has helped in your personal development.
10.If you had to live your life over again, what one thing would you change?
Focus on a key turning point in your life or missed opportunity. Yet also tie it forward to what you are doing to still seek to make that change.
For example: Although Im overall very happy with where Im at in my life, the one aspect I likely would have changed would be focusing earlier on my chosen career. I had a great internship this past year and look forward to more experience in the field. I simply wish I would have focused here earlier. For example, I learned on my recent internship… …then provide examples.
Stay focused on positive direction in your life and back it up with examples.
In reviewing these responses, please remember that they are only to be viewed samples. Please do not rehearse them verbatim or adopt them as your own. They are meant to stir your creative juices and get you thinking about how to properly answer the broader range of questions that you will face.
wrote by : http://www.linkive.com, CollegeGrad.com
dreamhost review
Friday, January 29, 2010
25 things girls dont realize
25 things girls dont realize
You HAVE to read all of them and if you don't your going to come across with problems in your relationship for the next month!
1. Guys may be flirting around all day, but before they go to sleep, they always think about the girl they truly care about....
2. Guys are more emotional then you think, if they loved you at one point, it'll take them a lot longer then you think to let you go, and it hurts every second that they try.
3. Guys go crazy over a girl's smile.
4. A guy who likes you wants to be the only guy you talk to.
5. Boyfriends need to be reassured often that they're still loved.
6. Guys don't care how gorgeous you are.
7. Giving a guy a hanging message like 'You know what?..uh...nevermind..' would make him jump to a conclusion that is far from what you are thinking. And he'll assume he did something wrong and he'll obsess about it trying to figure it out.
8. If a guy tells you about his problems, he just needs someone to listen to him. You don't need to give advice.
9. A usual act that proves that the guy likes you is when he teases you.
10. Guys love you more than you love them
11. Guys use words like hot or cute to describe girls. They rarely use beautiful or gorgeous. If a guy uses that, he loves you or likes you a whole heck of a lot.
12. No matter how much guys talk about whats on the outside, personality is key.
13. Guys think WAY too much. One small thing a girl does, even if she doesn't notice it can make the guy think about it for hours, trying to figure out what it meant but some know that it was just prolly nothing so if it is supposed to mean something then make that meaning noticable so that they can react on the spot.
14. If the guy does something stupid in front of the girl, he will think about it for the next couple days or until the next time he spends time with the girl.
15.If a guy looks unusually calm and laid back, he's probably faking it and he is really thinking about something
16. When a guy says he is going crazy about the girl, he really is. Guys rarely say that.
17.When a guy asks you to leave him alone, he's just actually saying, 'Please come and listen to me
18. If a guy starts to talk seriously, listen to him. It doesn't happen that often, so when it does, you know something's up.
19. When a guy looks at you for longer than a second, he's definitely thinking something.
20. Guys really think that girls are strange and have unpredictable decisions and are MAD confusing but somehow are drawn even more to them.
22. No guy can handle all his problems on his own. He's just too stubborn to admit it.
23.NOT ALL GUYS ARE JACKASSES
Just because ONE is a jackass doesnt mean he represents ALL of them
24.When a guy sacrifices his sleep and health just to be with you, he really likes you and wants to be with you as much as possible
25.Even if you dump a guy months ago and he loved you he probably still does and if he had one wish it would be you to come back into his life
Saturday, April 25, 2009
Love And Life
Love means to commit oneself without guarantee, to give oneself completely in the hope that our love will produce love in the loved person. Love is an act of faith, and whoever is of little faith is also of little love.
True happiness and a fullness of joy can be found only in the tender and intimate relationships of the family. However earnestly we may seek success and happiness outside the home through work, leisure activities, or large bank accounts, we will never be fully satisfied emotionally until we develop deep and loving relationships.
Love grows by giving. The love we give away is the only love we keep. The only way to retain love is to give it away.
The person who tries to live alone will not succeed as a human being. His heart withers if it does not answer another heart. His mind shrinks away if he hears only the echoes of his own thoughts and finds no other inspiration.
Romantic love is a passionate spiritual-emotional-sexual attachment between a man and a woman that reflects a high regard for the value of each other's person.
But true love is a durable fire,
In the mind ever burning,
Never sick, never old, never dead,
From itself never turning.
Some people come into our lives and quickly go.
Some people move our souls to dance. They awaken us to new understanding with the passing whisper of their wisdom.
Some people make the sky more beautiful to gaze upon.
They stay in our lives for awhile, leave footprints on our hearts, and we are never ever the same.
You will never know true happiness
until you have truly loved,
and you will never understand
what pain really is
until you have lost it.
Thursday, October 2, 2008
How To Prevent Hotlinking Using .htaccess
A very easy way to
- RewriteEngine on
- RewriteCond %{HTTP_REFERER} !^$
- RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+\.)?geekpedia\.com [NC]
- RewriteRule \.(gif|jpe?g|png)$ - [F,NC,L]
Friday, August 29, 2008
How to read XML using PHP DOM This tutorial will demonstrate the use of DOM extension in PHP to read contents of a XML file.
This tutorial is for PHP starters as well as for those who are using XML parser functions to read/write XML files. This tutorial will not go into details on XML. The focus will be more on the Document Object Model (DOM) extension.
This should not be confused with DOM XML extension, which is not packaged into PHP5 and will never be (according to php.net). DOM extension allows PHP users to use the DOM functions. The function then allow users to read, write, rename tags and do all types of crazy stuff with XML documents.
First we need a XML document to experiment with. I have created a simple XML document and named it test.xml
test.xml
This XML document stores notes on things to do. You can create one for your library, restaurant, news or book inventory. Every note in this XML
file beings with
Next step is to read this XML and display the results on a web page.
Create another file and call it test.php. Copy the following code into it and run it.
// DOMElement->getElementsByTagName() -- Gets elements by tagname
// nodeValue : The value of this node, depending on its type.
// Load XML File. You can use loadXML if you wish to load XML data from a string
$objDOM = new DOMDocument();
$objDOM->load("test.xml"); //make sure path is correct
$note = $objDOM->getElementsByTagName("note");
// for each note tag, parse the document and get values for
// tasks and details tag.
foreach( $note as $value )
{
$tasks = $value->getElementsByTagName("tasks");
$task = $tasks->item(0)->nodeValue;
$details = $value->getElementsByTagName("details");
$detail = $details->item(0)->nodeValue;
echo "$task :: $detail
";
}
?> The output on your webpage will be something like this:
Validate data :: Validate data in SQL2005 Database with SQL manager
Download Music :: Download latest music from site abc
I have documented some of the built-in functions in the code. For more details please refer to the php manual.
This tutorial is a kick start for beginners. You can retreive data from a database and create a XML document on-the-fly with DOM functions, rename tabs in an existing XML document and validate format.
Wednesday, August 20, 2008
Put watermark on images using PHP
If you are a professional or a newbie photographer you will probably want to protect your photos from being stolen and used for free. Using PHP you can create different types of watermarks on all of your images. I am going to show you a way how to dynamically put a text messages on your images. What you need is a JPG image file and a font file used for generate the watermark message. I am going to use arial font which you can also download.
Below you can find a watermarkImage() image function which takes 3 parameters ($SourceFile, $WaterMarkText, $DestinationFile) and creates an watermarked image from the source image specified. The first parameter - $SourceFile - is the full server path to the JPG image that you are going to watermark. The second one - $WaterMarkText - is the text message that you want to use for the watermark. And the last parameter - $DestinationFile - can either be blank or full server path to a new file which will be the source file with watermark text on it. What this function does is to read the source file, then create a new image object (using the imagecopyresampled() function). Then using the Arial.ttf font file and the imagettftext() function it writes the WaterMarkText onto the image. The last IF statement checks if it should save a new watermarked file or should just display it on the screen.
function watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile) {
list($width, $height) = getimagesize($SourceFile);
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($SourceFile);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width, $height);
$black = imagecolorallocate($image_p, 0, 0, 0);
$font = 'arial.ttf';
$font_size = 24;
imagettftext($image_p, $font_size, 0, 10, 20, $black, $font, $WaterMarkText);
if ($DestinationFile<>'') {
imagejpeg ($image_p, $DestinationFile, 100);
} else {
header('Content-Type: image/jpeg');
imagejpeg($image_p, null, 100);
};
imagedestroy($image);
imagedestroy($image_p);
}
You need to download the arial.ttf file and upload it on your server. Then create a new PHP file and copy and paste the above function in it. Next 4 lines are used to set the Source file, Watermark text message and Destination file. If you want to just display the watermarked image you need to leave the $DestinationFile variable empty ($DestinationFile=''; ). Also please make sure that for source file and destination file you include the full server path and the image file name. If you want to change the position of the watermark message on your images you can chage that line imagettftext($image_p, $font_size, 0, 10, 20, $black, $font, $WaterMarkText);
$SourceFile = '/home/user/www/images/image1.jpg';
$DestinationFile = '/home/user/www/images/image1-watermark.jpg';
$WaterMarkText = 'Copyright anupfound.blogspot.com';
watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile);
?>