<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>: Lamp Technologies: Lamp Technologies</title>
	<atom:link href="http://www.lamp-technologies.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lamp-technologies.com</link>
	<description>We don&#039;t do different things, we do things differently.</description>
	<lastBuildDate>Fri, 02 Sep 2011 05:39:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<meta name="generator" content=" unknown" />
		<item>
		<title>My entrepreneurial experience</title>
		<link>http://www.lamp-technologies.com/my-entrepreneurial-experience/</link>
		<comments>http://www.lamp-technologies.com/my-entrepreneurial-experience/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 17:14:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Entrepreneurship]]></category>
		<category><![CDATA[Inspirational]]></category>

		<guid isPermaLink="false">http://www.lamp-technologies.com/?p=389</guid>
		<description><![CDATA[We have recently completed 3 years (we started Lamp in July 2008). I think its good time to share my entrepreneurial experience till date. Before you start reading further, I want to let you know that, we are service based start-up. On many start-up blogs, &#8230;<div class="continue_reading_link"><a href="http://www.lamp-technologies.com/my-entrepreneurial-experience/"><img src="http://www.lamp-technologies.com/wp-content/themes/simplybiz/library/images/more.png"  alt="More"></a></div>]]></description>
			<content:encoded><![CDATA[<p>We have recently completed 3 years (we started Lamp in July 2008). I think its good time to share my entrepreneurial experience till date. Before you start reading further, I want to let you know that, we are service based start-up. On many start-up blogs, you read about product based start-ups and people hardly talk about service industry. So, I though to share our experience for &#8216;wanna-be&#8217; entrepreneurs and for those who wants to live their life for a cause.</p>
<h2 class="entry-title" style="color:#4073B0">So, why we decided to start Lamp?</h2>
<p>(1) I had an itch to start my own company since long. I was not sure about what it takes to start your own company, but I was very much sure that I can do far better than what I was doing. I always felt that, things can be done different ways, things can be changed, things can be manageable. Some time you get chance to make things proper and some time you need to accept what others believe is true. Certainly, the later part was not so convincing for me. So, starting our own company was one solution for me to control my professional life and fortunately I have friends and partners with me who believed &#038; supported the same idea.</p>
<p>(2) There are two types of people in this world. </p>
<ul>
<li>One, who spent their entire life; doing job, making money, getting married, having children and live happily ever after. Now nothing is wrong in that. that’s what normal people do, seek for stable life.</li>
<li>Others (like me), who don&#8217;t want to die with regret of not doing something, which their heart tell them to do.</li>
</ul>
<p>When I was in college, I read somewhere</p>
<div class="blue_box" style="padding:10px;font-weight:bold">Dream what you want to dream, go where you want to go, be what you want to be. Because you have only one life and one chance to do all the things you want to do.</div>
<p>Bit philosophical, but its driving factor for me to make decisions. Seriously, if we have only one life, do we need to do what other people, community think right or what our heart says is right? Simply I follow my dreams.</p>
<h2 class="entry-title" style="color:#4073B0">I always wanted to be entrepreneur&#8230; Of course not!</h2>
<p>I belong to a middle class family and in India, every parent thinks that their child become engineer, doctor or do government job. my parents (my father was bank clerk and my mother is housewife) thought same for me.</p>
<p>When I was in college, I didn&#8217;t have good academic record until final year and by the end of final year, it was clear to me that getting a good job is not easy. After struggling for 2 and half year, finally I ended up in Yahoo!, a dream company for me to work at that time. Eventually I realized, Yahoo was not final destination, I was looking for something more. Finally I no longer had a question in my mind: Should I Startup or Continue a Job? I knew what I wanted next.</p>
<h2 class="entry-title" style="color:#4073B0">Was it hard to leave job?</h2>
<p>Once you start earning handsome money and at the end of the month bank message in your cell phone makes you smile, its hard to make such decision like kicking your well paid job.</p>
<p>But remember that <i>you have only one life</i> quote, I mentioned above, that’s what helped me to make my decision.</p>
<h2 class="entry-title" style="color:#4073B0">Was it right time?</h2>
<p>Frankly, there is no right time. You just need to believe in your self.</p>
<p>When we decided to start our own company in July 2008, world was all set to welcome economy crisis. Recession was already started. We thought, its right time to see if we can survive in economy collapse. <img src='http://www.lamp-technologies.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Another reason, I was single (Ok, I&#8217;m still single) and my parents wanted to get me married. Somehow, I had a feeling that, once I get married, I wont be able to take such hard decisions. So, at least it was right time for me.</p>
<h2 class="entry-title" style="color:#4073B0">What it takes to be an entrepreneur?</h2>
<p>As I said earlier; you need to believe in your self. My parents advised not to start any business and I also got some free advise on everything regarding why job is more secure and what not from relatives and friends. OK guys, that may be true. Every one has their own version of truth and believes and we must respect that. I respected my own version of truth.</p>
<p>If you want to start your own business, don&#8217;t ask everyone around whether you should start business or not. Ask yourself first: Are you ready to compromise with your current life, life style? If you wont get handsome salary, will it be OK? And there you go. If you are all set for entrepreneur life; money and risk wont bother you.</p>
<p>In fact, you must be ready to take risk and must accept the fact that, you might get failed. So, what? Its not end of world. Failing is necessary to learn some important lessons of life. If you are not ready to fail, entrepreneurship is not for you.</p>
<p>I will be lying if I say, personal relationship doesn&#8217;t get affected. During those initial two years, I was heavily engaged with business and had very less interaction with my family. Not intentionally but accidentally. I have to admit that, I failed to balance my personal life with professional life. You can’t change the past. Just learn from your mistakes and move on. that’s entrepreneurial spirit.</p>
<h2 class="entry-title" style="color:#4073B0">Why we decided service based start-up?</h2>
<p>If you have great product idea and if someone is backing you then you can easily invest your time making products and even if you fail, you don&#8217;t have to worry. But if no one is backing you and if you don&#8217;t have that killer idea, you need to make sure money is keep rolling so that your organization survive. Its not like we don&#8217;t like product based start-up but you need to make right choice at right time. You need to make right choice even if time is not right.</p>
<h2 class="entry-title" style="color:#4073B0">We didn&#8217;t had any projects/clients&#8230;</h2>
<p>Many of you might think that, we already had some clients / projects when we decided to start. that’s not true. We didn&#8217;t had a single project in our hand when I left Yahoo! But what really matters at that time was taking first step (which was to leave job and start following dream) and once you take your first step, you will find out next step eventually. Of course we got two good projects in first month it self through friends reference.</p>
<h2 class="entry-title" style="color:#4073B0">Partners</h2>
<p>You need to find like minded people, people you can trust and people who believe in your potentials. If the partner is your friend that’s plus point. As an entrepreneur you must avoid 3 type of people as your  partners.</p>
<ul>
<li>Those who want quick money.</li>
<li>Those who don&#8217;t believe in team work.</li>
<li>Those who want to invest money without adding significant values.</li>
</ul>
<h2 class="entry-title" style="color:#4073B0">Relationship matters</h2>
<p>Every relationship is important. In small &#038; medium size organizations I used to see people (including some of my friends) leaving an organization without serving notice period. People just call project manager or HR to inform that they are not coming from today Or some time people just send email Or some time they don&#8217;t even bother to inform.</p>
<p>People don&#8217;t realize that every single contact is important. We don&#8217;t know what future has for us. When we started Lamp, we used to get good  projects from one of our old employers for more than a year time and that’s only because of our good relationship.</p>
<h2 class="entry-title" style="color:#4073B0">Was is easy to hire first few employees?</h2>
<p>When you are a service based start-up, hardest part is to convey others about your vision and goal. If you want to get good developers while having a office setup in one room in some residential area, its hard. So, look in your social circle. Find people who are not too demanding and same time help you to move forward.</p>
<h2 class="entry-title" style="color:#4073B0">Hard Time?</h2>
<p>Yes, we had hard time, many times! In first two months of starting Lamp, one of our partner ditched us for some issues and that too totally unethically. I don&#8217;t blame him. As I said, every one has their own version of truth. It was bad and depressing time. But if you choose entrepreneur life, you need to move, move alone if time demands.</p>
<p>Some clients didn&#8217;t pay on time so I had to use my personal savings for developers salary. Its really frustrating to keep reminding people for payment for work you did three-four months back and they make false promises. But that’s how we learn some valuable business lessons (fyi &#8211; none of us have MBA degree or management background, we are bunch of techies so learning business lessons with every single mistake is important to us)</p>
<h2 class="entry-title" style="color:#4073B0">So, where we stand now?</h2>
<p>We are learning, failing and progressing. Entrepreneurship is not about to reach somewhere or to achieve something. Its journey. As an entrepreneur, you must be ready to fail, get up and move on. You need to set one goal, reach there and make another goal and work to complete your goal.</p>
<div class="blue_box" style="padding:10px;font-weight:bold">Life is like a box of chocolates&#8230; you never know what you&#8217;re gonna get. (Tom Hanks &#8211; Forrest Gump)</div>
<p>If you have reach so far reading this post, thanks for reading. Some of you may not agree with some points, but hey, remember? its my version of truth <img src='http://www.lamp-technologies.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So keep posting your comments.</p>
<p><i><b>Nilesh Gamit<br />
Lamp Technologies</b></i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/my-entrepreneurial-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some quick tips</title>
		<link>http://www.lamp-technologies.com/some-quick-tips/</link>
		<comments>http://www.lamp-technologies.com/some-quick-tips/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 13:23:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.lamp-technologies.com/?p=377</guid>
		<description><![CDATA[Find and replace text within all files within a directory find PATH_TO_DIRECTORY -type f &#124; xargs perl -pi -e 's/SEARCH_KEYWORD/REPLACE_KEYWORD/g' Find a text in files in a directory and subdirectories find PATH_TO_DIRECTORY -exec grep -l 'SEARCH_KEYWORD' {} \; Find all modified file in last few &#8230;<div class="continue_reading_link"><a href="http://www.lamp-technologies.com/some-quick-tips/"><img src="http://www.lamp-technologies.com/wp-content/themes/simplybiz/library/images/more.png"  alt="More"></a></div>]]></description>
			<content:encoded><![CDATA[<p><strong>Find and replace text within all files within a directory</strong></p>
<pre class="brush: bash">find PATH_TO_DIRECTORY -type f | xargs perl -pi -e 's/SEARCH_KEYWORD/REPLACE_KEYWORD/g'</pre>
<p><strong>Find a text in files in a directory and subdirectories</strong></p>
<pre class="brush: bash">find PATH_TO_DIRECTORY -exec grep -l 'SEARCH_KEYWORD' {} \;</pre>
<p><strong>Find all modified file in last few days within a directory</strong> (exclude some sub-directory for e.g. CVS)</p>
<p>Create 2 files as below under DIRECTORY (e.g. find all modified files between 1st July 2011 and 31st July 2011)</p>
<pre class="brush: bash">touch -t 201107010000.01 FILE_1 /* 2011[year]07[month]01[day] */
touch -t 201107312359.59 FILE_2 /* 2011[year]07[month]31[day] */
find PATH_TO_DIRECTORY -type f -newer FILE_1 ! -newer FILE_2 -exec ls -ogh {} \; | grep -vw 'EXCLUDE_SUB_DIRECTORY' | cut -f4,5,6 -d' '</pre>
<p><strong>Batch resize image using ImageMagick</strong></p>
<pre class="brush: bash">
cd PATH_TO_IMAGE_DIRECTORY
mogrify -resize WIDTHxHEIGHT *
mogrify -resize WIDTHxHEIGHT -quality 80 * (to reduce quality)
</pre>
<p><strong>Copy directory structure without the files</strong></p>
<pre class="brush: bash">find * -type d -exec mkdir PATH_TO_DIRECTORY/\{\} \;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/some-quick-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Himanshu&#8217;s Birthday Celebration</title>
		<link>http://www.lamp-technologies.com/himanshus-birthday-celebration/</link>
		<comments>http://www.lamp-technologies.com/himanshus-birthday-celebration/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 13:28:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Celebrations]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.lamp-technologies.com/?p=356</guid>
		<description><![CDATA[@ Lamp Development Center]]></description>
			<content:encoded><![CDATA[<p><iframe width="600" height="450" src="http://www.youtube.com/embed/J-3ynS-a5to?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p><strong>@ Lamp Development Center</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/himanshus-birthday-celebration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jimish&#8217;s Birthday Celebration</title>
		<link>http://www.lamp-technologies.com/jimishs-birthday-celebration/</link>
		<comments>http://www.lamp-technologies.com/jimishs-birthday-celebration/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 13:27:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Celebrations]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.lamp-technologies.com/?p=354</guid>
		<description><![CDATA[@ Lamp Development Center]]></description>
			<content:encoded><![CDATA[<p><iframe width="600" height="480" src="http://www.youtube.com/embed/hX71-XWA2n8" frameborder="0" allowfullscreen></iframe></p>
<p><strong>@ Lamp Development Center</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/jimishs-birthday-celebration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testimonial: Erich Gombocz, Ontrackteaching.net, USA</title>
		<link>http://www.lamp-technologies.com/lamp-technologies-testimonial-erich-gombocz-ontrackteaching-net-usa/</link>
		<comments>http://www.lamp-technologies.com/lamp-technologies-testimonial-erich-gombocz-ontrackteaching-net-usa/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 13:20:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.lamp-technologies.com/?p=348</guid>
		<description><![CDATA[&#8220;I am very pleased with the responsiveness and dedication to this project.&#8221; Erich Gombocz &#038; Eva Cortez Ontrackteaching.net, USA]]></description>
			<content:encoded><![CDATA[<p><iframe width="600" height="480" src="http://www.youtube.com/embed/Wq3GHB8u9eU" frameborder="0" allowfullscreen></iframe></p>
<p>&#8220;I am very pleased with the responsiveness and dedication to this project.&#8221;</p>
<p><strong>Erich Gombocz &#038; Eva Cortez</strong><br />
<em>Ontrackteaching.net, USA</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/lamp-technologies-testimonial-erich-gombocz-ontrackteaching-net-usa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testimonial: Eva Cortez, Ontrackteaching.net, USA</title>
		<link>http://www.lamp-technologies.com/testimonial-eva-cortez-ontrackteaching-net-usa/</link>
		<comments>http://www.lamp-technologies.com/testimonial-eva-cortez-ontrackteaching-net-usa/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 13:16:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.lamp-technologies.com/?p=344</guid>
		<description><![CDATA[&#8220;Lamp &#8216;s professionalism and dedication to this project has been an excellent experience which is rare among developers. The responsiveness to unexpected, yet important changes and the solutions for implementing those have been remarkable. We will use Lamp again for our next projects.&#8221; Erich Gombocz &#8230;<div class="continue_reading_link"><a href="http://www.lamp-technologies.com/testimonial-eva-cortez-ontrackteaching-net-usa/"><img src="http://www.lamp-technologies.com/wp-content/themes/simplybiz/library/images/more.png"  alt="More"></a></div>]]></description>
			<content:encoded><![CDATA[<p><iframe width="600" height="480" src="http://www.youtube.com/embed/ogDu0LoQ70k" frameborder="0" allowfullscreen></iframe></p>
<p>&#8220;Lamp &#8216;s professionalism and dedication to this project has been an excellent experience which is rare among developers. The responsiveness to unexpected, yet important changes and the solutions for implementing those have been remarkable. We will use Lamp again for our next projects.&#8221;</p>
<p><strong>Erich Gombocz &#038; Eva Cortez</strong><br />
<em>Ontrackteaching.net, USA</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/testimonial-eva-cortez-ontrackteaching-net-usa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webpage screen capturing using khtml2png</title>
		<link>http://www.lamp-technologies.com/webpage-screen-capturing-using-khtml2png-2/</link>
		<comments>http://www.lamp-technologies.com/webpage-screen-capturing-using-khtml2png-2/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 10:01:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nileshgamit.wordpress.com/2010/04/14/webpage-screen-capturing-using-khtml2png</guid>
		<description><![CDATA[Recently, we were working on one PHP project, where we required to have &#8220;webpage screen capturing&#8221; functionality. I googled and found some tools&#8230; some window based, some paid&#8230; obviously I was looking for *FREE* tool . As we are working on Lamp (Linux, Apache, MySQL &#8230;<div class="continue_reading_link"><a href="http://www.lamp-technologies.com/webpage-screen-capturing-using-khtml2png-2/"><img src="http://www.lamp-technologies.com/wp-content/themes/simplybiz/library/images/more.png"  alt="More"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Recently, we were working on one PHP project, where we required to have &#8220;webpage screen capturing&#8221; functionality. I googled and found some tools&#8230; some window based, some paid&#8230; obviously I was looking for *FREE* tool <img src='http://www.lamp-technologies.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . As we are working on Lamp (Linux, Apache, MySQL &amp; PHP), I was wondering if I get some Linux based tool.</p>
<p>One solution I found was, using html2ps and then ps2png/ps2jpg/ps2gif to convert it to image. Then ImageMagicK for image manipulation. Somehow I stuck with some weird memory related errors, some package conflicts, some formatting issues etc. So, after spending one day on nothing; I dropped this solution.</p>
<p>Then I tried khtml2png (<a href="http://khtml2png.sourceforge.net/" target="_blank">http://khtml2png.sourceforge.net</a>) and after some r&amp;d, it worked for us.</p>
<p><span style="font-weight:bold;">Some points to remember&#8230;</span><br />
- You need to have VPS/dedicated hosting to setup these tools. On shared hosting, its not possible to install due to various restrictions by hosting providers.</p>
<p>- This tool requires, some libraries and tools: g++, KDE 3.x, kdelibs for KDE 3.x, zlib (zlib1g-dev) and cmake</p>
<p>- This tool uses KDE (K Desktop Environment), that means whenever you use khtml2png tool, it will open one window for *a while* at time of capturing webpage screenshot. We can remove this by using &#8220;Xvfb&#8221;. We will see how to install and configure it later.</p>
<p>- These links will be helpful, if you are planning to develop web application with webpage screen capturing using khtml2png<br />
<a href="http://khtml2png.sourceforge.net/index.php?page=faq" target="_blank">http://khtml2png.sourceforge.net/index.php?page=faq</a><br />
<a href="http://www.mysql-apache-php.com/website_screenshot.htm" target="_blank">http://www.mysql-apache-php.com/website_screenshot.htm</a></p>
<p>Here is step by step guide to install various dependencies and packages. (I installed these tools on Fedora7 &amp; RHEL5 successfully)</p>
<p>I used &#8220;yum&#8221; command to install and auto-configure these tools. If &#8220;yum&#8221; is not available on your machine, get if from <a href="http://yum.baseurl.org/" target="_blank">http://yum.baseurl.org/</a> and install it.</p>
<p>Step:1</p>
<pre class="brush: bash">
yum install ImageMagick

yum install Xvfb

yum install gcc gcc-c++ automake autoconf nano zlib zlib-devel

yum groupinstall "X Window System" "KDE (K Desktop Environment)"

yum install kdelibs kdelibs-devel

yum install Xvfb xorg xorg-x11-font*
</pre>
<p>Step:2 Install *cmake*<br />
Go to share directory by typing command</p>
<pre class="brush: bash">
cd /usr/local/share/
</pre>
<p>or any preferred directory where you want to download package. (check <a href="http://www.cmake.org" target="_blank">http://www.cmake.org</a>for latest &#8220;cmake&#8221; version)</p>
<pre class="brush: bash">
wget http://www.cmake.org/files/v2.8/cmake-2.8.1.tar.gz

tar -xzvf cmake-2.8.1.tar.gz

cd cmake-2.8.1

./bootstrap

make

make install
</pre>
<p>Step:3 Download &amp; Install *khtml2png* on your server as per instructions in this link.<br />
<a href="http://khtml2png.sourceforge.net/index.php?page=download" target="_blank">http://khtml2png.sourceforge.net/index.php?page=download</a></p>
<p>Step:4 Check if *khtml2png* is working</p>
<pre class="brush: bash">
/usr/local/bin/khtml2png2 'http://www.yahoo.com' yahoo.png
</pre>
<p>(this will capture yahoo homepage in yahoo.png)</p>
<p>Step:5 Install *khtmld* (a daemon which will be required to run khtml2png in background)<br />
<a href="http://wiki.goatpr0n.de/projects/khtmld" target="_blank">http://wiki.goatpr0n.de/projects/khtmld</a></p>
<p>I faced couple of problems while setting up *khtmld*, but it got solved by reading suggestions from above link.</p>
<p>I installed above all tools as *root* user.</p>
<p>Once you are done with above steps, lets play with *khtml2png*</p>
<p><span style="font-weight:bold;">How to start?</span><br />
Run following command to run khtml2png without a visible X session</p>
<pre class="brush: bash">
Xvfb :2 -screen 0 1024x768x24&amp; export DISPLAY=localhost:2.0
</pre>
<p>(you can put above 2 lines in rc.local so it will start automatically whenever server restarts)</p>
<p>Then start *khtmld* daemon as your webserver user (for me it is *apache*) so that PHP script can have permission to talk with this daemon. (run below command after login as *root* user)</p>
<pre class="brush: bash">
khtmld -K /usr/local/bin/khtml2png2 -c /etc/khtmldrc --user apache&amp;
</pre>
<p>&#8220;-K /usr/local/bin/khtml2png2&#8243; is path to khtml2png2 as by default &#8220;khtmld&#8221; will look for old &#8220;khtml2png&#8221; (khtml2png2 is latest version). Find khtml2png2 path using</p>
<pre class="brush: bash">
whereis khtml2png2
</pre>
<p>&#8220;-c /etc/khtmldrc&#8221; is config file path for khtmld (you can create this config file if its not already there)<br />
Sample content for khtmldrc</p>
<pre class="brush: plain">
width=1024height=768display=:0.0
</pre>
<p>Capture image using *khtmld*</p>
<pre class="brush: bash">
echo "http://www.yahoo.com /tmp/yahoo.png" &gt;/tmp/khtmldspool
</pre>
<p>(for more details &#8211; <a href="http://wiki.goatpr0n.de/projects/khtmld" target="_blank">http://wiki.goatpr0n.de/projects/khtmld</a>)</p>
<p>We have also used ImageMagicK command &#8220;convert&#8221; (<a href="http://www.imagemagick.org/script/convert.php" target="_blank">http://www.imagemagick.org/script/convert.php</a>) to trim the image for removing whitespace.</p>
<pre class="brush: bash">
convert /tmp/yahoo.png -fuzz 1% -trim /tmp/new.yahoo.png
</pre>
<p>Sample PHP code for capturing &amp; displaying PNG image using &#8220;khtml2png&#8221;</p>
<pre class="brush: php">
&lt;?php
ob_clean();
header("Cache-Control: no-cache");
header("Pragma: no-cache");
header("Content-type: image/png");

$webpage_url= "http://www.yahoo.com";

$out_put_file = "/tmp/yahoo.png"; //captured screen
$new_out_put_file = "/tmp/new.yahoo.png"; //whitespace removed

$cmd = "echo '".$webpage_url." ".$out_put_file."' &gt;/tmp/khtmldspool";
exec("$cmd");

// some delay till khtml2png capture screen
while(!file_exists($out_put_file)) { sleep(3); }

exec("convert $out_put_file -fuzz 1% -trim $new_out_put_file");

while(!file_exists($new_out_put_file)) { sleep(1); }

// display image on browser
echo file_get_contents($new_out_put_file);

unlink($out_put_file);
unlink($new_out_put_file);
exit;
?&gt;
</pre>
<p>Hope this will be helpful.</p>
<p>That&#8217;s all for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/webpage-screen-capturing-using-khtml2png-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web development tech talks @ Lamp on 13th Feb, 2010</title>
		<link>http://www.lamp-technologies.com/web-development-tech-talks-lamp-on-13th-feb-2010-2/</link>
		<comments>http://www.lamp-technologies.com/web-development-tech-talks-lamp-on-13th-feb-2010-2/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 08:01:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Talks]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://lamp-technologies.com/blog/?p=21</guid>
		<description><![CDATA[We had a successful tech talk event on 13th Feb 2010 @ LDC (from 10:30 a.m. to 6: 30 p.m.). There were 6 tech talks held on that day Div based design PDO library JSON OPEN ID PHP web services &#38; AI in PHP and &#8230;<div class="continue_reading_link"><a href="http://www.lamp-technologies.com/web-development-tech-talks-lamp-on-13th-feb-2010-2/"><img src="http://www.lamp-technologies.com/wp-content/themes/simplybiz/library/images/more.png"  alt="More"></a></div>]]></description>
			<content:encoded><![CDATA[<p>We had a successful tech talk event on 13th Feb 2010 @ LDC (from 10:30 a.m. to 6: 30 p.m.). There were 6 tech talks held on that day</p>
<ol>
<li>Div based design</li>
<li>PDO library</li>
<li>JSON</li>
<li>OPEN ID</li>
<li>PHP web services &amp;</li>
<li>AI in PHP</li>
</ol>
<p>and we got to learn so many things. Thanks to all participants for all your hard work to make this event a success.</p>
<p>That&#8217;s all for now.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/web-development-tech-talks-lamp-on-13th-feb-2010-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming contest for Lamp developers</title>
		<link>http://www.lamp-technologies.com/programming-contest-for-lamp-developers-2/</link>
		<comments>http://www.lamp-technologies.com/programming-contest-for-lamp-developers-2/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 12:06:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Contest]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://lamp-technologies.com/blog/?p=9</guid>
		<description><![CDATA[Hello all, We didn&#8217;t have open training session at Lamp on 30th Jan (Saturday), instead we organized &#8220;Programming contest for Lamp developers&#8221;. It was surprised event for developers. The idea was to check  our developer&#8217;s proficiency in  &#8216;Problem solving skill&#8217;, &#8216;Technical skills&#8217;, &#8216;Adoption of new &#8230;<div class="continue_reading_link"><a href="http://www.lamp-technologies.com/programming-contest-for-lamp-developers-2/"><img src="http://www.lamp-technologies.com/wp-content/themes/simplybiz/library/images/more.png"  alt="More"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Hello all,</p>
<p>We didn&#8217;t have open training session at Lamp on 30th Jan (Saturday), instead we organized &#8220;Programming contest for Lamp developers&#8221;. It was surprised event <img src='http://www.lamp-technologies.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  for developers.</p>
<p>The idea was to check  our developer&#8217;s proficiency in  &#8216;Problem solving skill&#8217;, &#8216;Technical skills&#8217;, &#8216;Adoption of new tool/technology&#8217;, &#8216;Coding practice&#8217;, &#8216;Requirement understanding&#8217; and &#8216;Quality of work&#8217;. It was 7 hours long contest (from 12:30 p.m. to 7:30 p.m.).</p>
<p>It was quite helpful event as we got to know some of our limitations and area of improvement.</p>
<p>Here is the problem statement, if any one wants to try @ home.</p>
<p><strong>Problem Statement:</strong> Create a site search module from scratch (without Lamp framework / any other ready made php framework) using PHP &amp; MySQL.</p>
<p>What is required?</p>
<p>An interface where a user can search for a string and result will be listed on same page using AJAX (use YUI javascript library for AJAX call).<br />
- Result will include title of page having link to the page, 140 characters description, highlighted search term(s).   No pagination required.<br />
- Display count for no. of times particular page appear in search result for any search query.<br />
- Display total time your script took for displaying result.</p>
<p>An interface where a user can submit the site URL and script will index first 50 pages of the site URL (1st level crawling).<br />
- Script will not crawl any pages which has different domain then submitted.<br />
- Script will not crawl any link which has reference to same page.<br />
- Crawler will not index JS &amp; CSS.<br />
- Indexed page will not store any HTML tags, JS, CSS in description.<br />
- Whenever crawling is done for a URL, display it on webpage and display total time taken for crawling<br />
- At the end display total time taken for crawling 50 pages.<br />
- Store all indexed pages in MySQL.</p>
<p>[Question] What changes are required so that same script will run from command line?<br />
[Question] List few well known ready made site search scripts with URL.<br />
[Question] Have you heard about Yahoo! BOSS APIs, Google Search &amp; Lucene? If yes, can you tell difference between all 3?</p>
<p>NOTE:<br />
- Develop your code so that base scripts will be used by any developer as reusable components with easy instructions.<br />
- Do not use any 3rd party script or ready made php script except YUI library.</p>
<p>That&#8217;s all for now.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/programming-contest-for-lamp-developers-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open training program at Lamp</title>
		<link>http://www.lamp-technologies.com/open-training-program-at-lamp-2/</link>
		<comments>http://www.lamp-technologies.com/open-training-program-at-lamp-2/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 17:24:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://lamp-technologies.com/blog/?p=4</guid>
		<description><![CDATA[Hello all, Finally we started our first &#8220;open training program&#8221; at Lamp, Surat. We were having training programs every first and third saturday, but as time passed, people lost interest. So, we decided to invite outside people (who are ready to learn new things) to &#8230;<div class="continue_reading_link"><a href="http://www.lamp-technologies.com/open-training-program-at-lamp-2/"><img src="http://www.lamp-technologies.com/wp-content/themes/simplybiz/library/images/more.png"  alt="More"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Hello all,</p>
<p>Finally we started our first &#8220;open training program&#8221; at Lamp, Surat. We were having training programs every first and third saturday, but as time passed, people lost interest. So, we decided to invite outside people (who are ready to learn new things) to attend training at Lamp development center (ldc).</p>
<p>The idea behind this initiative is to provide higher level technical training, free of cost to php developers  and students (B.E./B.Tech Comp/IT, M.Sc I.T., MCA), living in Surat. This will help them to stay in touch with latest technologies and upgrade their knowledge. This will also help us to meet new people and share our idea with them.</p>
<p>In Surat, we can find good developers but their base is not concrete and not all developers are spending enough time to learn new/upcoming technlogies. This is needed to develop high quality &amp; high performance applications. We feel that, just educational knowledge is not enough to sharpen your domain skills. It requires that, people know right things from right people <img src='http://www.lamp-technologies.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Our first training was held on 16th Jan 2008 (Saturday) from 6:00 p.m. to 8:30 p.m. The topic was &#8220;<span style="text-decoration: underline;">Inside memcache &#8211; develop highly scalable and high performance websites using memcache</span>&#8220;. It was very helpful training and everyone enjoyed it. If you are in Surat and want to attend upcoming trainings, just drop a mail at contact@lamp-technologies.com</p>
<p>That&#8217;s all for now.</p>
<p>Thanks<a href="http://www.lamp-technologies.com/wp-content/uploads/2010/01/memcache.15.01.2010.pdf"></a></p>
<p><strong>Attachments:</strong></p>
<p><a href="http://www.lamp-technologies.com/wp-content/uploads/2010/01/memcache.15.01.2010.pdf">Memcache.15.01.2010 PDF</a></p>
<p><a href="http://www.lamp-technologies.com/wp-content/uploads/2010/01/memcache.ppt">Memcache PPT</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lamp-technologies.com/open-training-program-at-lamp-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

