tag:blogger.com,1999:blog-128772512024-03-13T11:37:30.393-07:00Prosper Tech Web Devnathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.comBlogger48125tag:blogger.com,1999:blog-12877251.post-14959806655656298062019-06-23T15:40:00.001-07:002019-06-23T15:40:13.408-07:00Life in New Zealand<span style="font-family: Arial, Helvetica, sans-serif;">We have been rather busy!</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">About 7 months ago we moved our family back to New Zealand, and we're now living in Milford on the North Shore of Auckland.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">It has been a great experience, the kids are in a new school, we are close to the 8 other cousins who come around and play often. Both sets of grandparents are around to help and to enjoy having everyone back in the country again. My brother in law is also back in NZ with their 2 kids after 10 years in Hong Kong.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">So it was 11 years in London in the end - a bit more than the 2 or 3 we planned, but we have some great memories and a lot of work experience over there.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Anne's company Orion Health relocated us, which was nice as our shipping would have cost a lot (about half a container), compared to the 2 suitcases each that we had 11 years ago.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">I have set up a digital agency specialising in lead generation for businesses using chatbots and more specifically Facebook Messenger. I have been working with ad campaigns, Facebook APIs and eCommerce for so long now it was time to switch to helping other businesses, and it seems the perfect time to do so with such amazing opportunities through messenger opening up to businesses. My website is <a href="http://prosper.nz/">http://prosper.nz</a> which is a great domain for NZ and one that numerous companies have tried to buy off me while I've been away - finally time to make good use of it.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">So if you're in New Zealand, look us up!</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-RP2rK2P2PPU/XQ__k5HT6VI/AAAAAAAAALo/KCr8h0I0WVQERwvKyqt_prwBL2kY55qXACLcBGAs/s1600/fullsizeoutput_4207.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://1.bp.blogspot.com/-RP2rK2P2PPU/XQ__k5HT6VI/AAAAAAAAALo/KCr8h0I0WVQERwvKyqt_prwBL2kY55qXACLcBGAs/s640/fullsizeoutput_4207.jpeg" width="640" /></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Here is a photo if Milford beach, just down the road - my runs in the morning are spectacular.</span>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-11489818742630736682019-06-23T15:28:00.003-07:002019-06-23T15:28:51.077-07:00An ad for home builders<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.3&appId=1130545307145850&autoLogAppEvents=1"></script>
<div class="fb-post" data-href="https://www.facebook.com/prosper.nz/posts/2435847023144141" data-width="500" data-show-text="true"><blockquote cite="https://developers.facebook.com/prosper.nz/posts/2435847023144141" class="fb-xfbml-parse-ignore"><p>You build it... I'll help you find people to move into it!
You probably already know this, but most Home builders are...</p>Posted by <a href="https://www.facebook.com/prosper.nz/">Prosper Technologies Ltd</a> on <a href="https://developers.facebook.com/prosper.nz/posts/2435847023144141">Saturday, 22 June 2019</a></blockquote></div>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-45444880322917259522017-05-15T03:21:00.002-07:002017-05-16T12:51:39.310-07:00360 Degree Google Map WalkthroughsI've been working with a Gear 360 camera to make 360 degree walkthroughs for businesses. Here are some examples:
<p>
<b><a href="http://www.third-door.com">Third Door Workhub & Nursery</a></b>
<br />
<iframe src="https://www.google.com/maps/embed?pb=!1m0!3m2!1sen!2sus!4v1494843088272!6m8!1m7!1sF%3A-wQubcicn5j4%2FWRLewyUbHxI%2FAAAAAAAAD_4%2FOfAGo_CWlLcF55tLcxFXJJXDr6xwe-OTACLIB!2m2!1d51.46105340158546!2d-0.1993588730692863!3f60.000108886959914!4f-5.975745767466648!5f0.7820865974627469" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
(if you can't see this, view on <a href="http://prospertech.blogspot.com" target="_blank">ProsperTech Blog</a>)
<p>
<b>
<a href="http://www.made.com">Made.com Showroom</a></b>
<br />
<iframe src="https://www.google.com/maps/embed?pb=!1m0!3m2!1sen!2sus!4v1494843625826!6m8!1m7!1sF%3A-T0cMYUvYWdE%2FWRMXeRnD6pI%2FAAAAAAAAEPg%2FIiUPYR3FMPA-B0lIpgfIGdJzHZf201iWgCLIB!2m2!1d51.51410632348287!2d-0.1295486837625504!3f71.86842117703848!4f0.39522711169342983!5f0.7820865974627469" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
(if you can't see this, view it on <a href="http://prospertech.blogspot.com" target="_blank">ProsperTech Blog</a>)
<p>
Lots of fun connecting up the dots and ensuring the flow works well.nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-61961683155872366792016-10-12T14:21:00.001-07:002016-10-12T14:25:30.724-07:00Code for the Kingdom 2016<div class="p1">
<span class="s1">I have taken a back seat from constant meet ups and hack weekends the past few years - I started The London Web a group which has 4800 members and counting… Kids are now the priority without grandparents around for us in London - getting out to London when you’re based close to the school run can prove quite difficult to co-ordinate.</span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1">I am fortunate enough to have combined my Christian faith with my passion for code and web application development - for the past 3 years I’ve been building and maintaining Lepton - a church giving app. I’ve been doing web development for 20 years, but only just 3 years ago got the chance to do this for the thing that I’m most passionate about - my faith and love of Christ and his church.</span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1">Many have this perception that it is the clergy - the church leaders, that have the main role to play - that’s not quite true.</span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1">As christian developers and technology professionals, I believe we play the most important background scene in this technology based world. </span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1">The church is about communicating Christ and his message - before I was a teenager, computers were for insular activities - your own games, your own code - then the internet came and every bit of our Communication sphere has changed - now the church is still in many ways in the dark ages - well we have at least moved on from OHP’s (Over Head Projectors) - and we have computers for things now - and you get emails - wow that’s a change - </span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1">For most churches, their IT department is under-utilised, a bit of a mess to be frank - IT contractors are expensive, and IT is a bit ‘ad-hoc’. We have a major role to play over the next few years to ensure the church “Gets with the times”..</span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1">Join me and other christians in tech - and we’ll change this - co-ordinate visions, work out our passions, our interests, and apply them to our faith..</span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1">The Code For the Kingdom Hack weekend is the second EVER in London - the first year, </span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1"> = Voice Recognition Slide Transitions</span></div>
<div class="p1">
<span class="s1"> = iBeacons for the homeless - give to them without risk of them using your money for alcohol and drugs.</span></div>
<div class="p1">
<span class="s1"> = Refuge Homes - a registry of the places UK refuges can be accommodated by our communities</span></div>
<div class="p1">
<span class="s1"> = Prayer app collaborations</span></div>
<div class="p1">
<span class="s1"> = just a few to spark your interest.</span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<div class="p1">
<span class="s1">This year I’m planning on hitting the ground full force with coding tools I am totally familiar with - last year I tackled Django for just the second time and it was a bit much - this year the code will be cranked out with passion through the night - and I’ll still probably get more sleep than when my kids are around!</span></div>
<div class="p2">
<span class="s1"></span><br /></div>
<br />
<div class="p1">
<span class="s1">Search “Code for the Kingdom” and get your tickets - it’s a global event with 16 cities taking part on one weekend ! It’s on the 21st to the 23rd of October 2016 - it’s going to be awesome!</span></div>
<div class="p1">
<span class="s1"><br /></span></div>
<div class="p1">
<span class="s1"><br /></span></div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/v8FwWqeCkCg" frameborder="0" allowfullscreen></iframe>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-21458334802858274662015-09-01T07:31:00.000-07:002015-09-01T07:31:00.276-07:00Hack Weekend Plans<span style="font-family: Arial, Helvetica, sans-serif;">As a group of Christians in tech, about 10 of us have been meeting for a number of months to plan a Hack Weekend in combination with 13 other cities around the world. It's called <a href="http://www.kingdomcode.uk/hackathon/" target="_blank">Code For The Kingdom</a>, and the London base will be on the 2nd of October 2015 starting Friday evening and ending Sunday afternoon.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">I thought I'd share some of the vision behind it:</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<ul>
<li><span style="font-family: Arial, Helvetica, sans-serif;">We are quite silo'd as a community of Christian techies, and even in a larger church such as HTB there are surprisingly few of us. This is about meeting others with the same visions and faith as ourselves.</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">Getting time to do "what we want to" relating to Christian initiatives isn't easy - I have kids, who consume most of my time, and generally time that I do have is keeping up with the latest trends and technologies without actually building anything. Here's a chance to change that.</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">We can conquer so much more by combining forces with other professionals</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">Part of the problem of motivation is having people screaming "We need this" - which is what we hope to have, by having some sponsors and challenges set out by those non-techies who seriously need tech to survive</span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;">We occasionally need others to come alongside us in our daily work requirements. What better way to work out if you can stand someone, than to code through the night with them?</span></li>
</ul>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">We have so much to offer as Christians in tech. In <a href="https://www.biblegateway.com/passage/?search=2%20Chronicles%202" target="_blank">2 Solomon 2 vs 7</a> it says:</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">"<span style="background-color: white; font-size: 16px; line-height: 24px;">Send me, therefore, a man skilled to work in gold and silver, bronze and iron, and in purple, crimson and blue yarn, and experienced in the art of engraving, to work in Judah and Jerusalem with my skilled workers,</span><span class="crossreference" data-cr="#cen-NIV-11219Q" data-link="(<a href="#cen-NIV-11219Q" title="See cross-reference Q">Q</a>)" style="background-color: white; box-sizing: border-box; font-size: 0.625em; line-height: 22px; position: relative; top: 0px; vertical-align: top;"></span><span style="background-color: white; font-size: 16px; line-height: 24px;"> whom my father David provided."</span></span><br />
<span style="background-color: white; font-size: 16px; line-height: 24px;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<span style="background-color: white; line-height: 24px;"><span style="font-family: Arial, Helvetica, sans-serif;">Although it didn't mention "programming" or "IT" in the building of the temple, I have no doubt that Jesus calls us all to be professionals and use our skills and gifts for His glory. What better way to start this than joining us on 2 October. <a href="http://www.kingdomcode.uk/hackathon/" target="_blank">Sign up here</a>!</span></span><br />
<span style="font-family: Helvetica Neue, Verdana, Helvetica, Arial, sans-serif;"><span style="background-color: white; line-height: 24px;"><br /></span></span>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-82344381890605643672014-09-02T05:09:00.002-07:002014-09-02T05:09:17.252-07:00Upgrade Crucial m4 SSD firmware on Mac without CD driveI recently found my system crashing after about an hour, this would happen without doing anything in particular.<br />
<br />
I did some investigation, cleaned up drives, etc, then found out it was my 512GB SSD that I bought over two years ago - it needed a <a href="http://forum.crucial.com/t5/Solid-State-Drives-SSD/Update-Firmware-on-M4-SSD-on-Macbook-Pro-without-optical-disc/td-p/106726" target="_blank">firmware upgrade</a>.<br />
<br />
So I followed the information in the above link, only to find it didn't work for the mac.<br />
<br />
After a lot of hunting I found <a href="http://andybi.com/index.php?option=com_content&view=article&id=261:upgrade-firmware-ssd-crucial-m4-su-mac-senza-cddvd&catid=55:apple-mac&Itemid=69" target="_blank">this article</a> which pointed to <a href="http://fuerstnet.de/en/upgrade-crucial-m4-ssd-firmware-mac-without-cd" target="_blank">this older article</a> that wasn't needing translation.<br />
<br />
I followed the tutorial, and took the advice to section off a bit of my extra hard drive (the non SSD 750GB drive in the DVD Rom enclosure), and tried to boot off it - it wouldn't boot.<br />
<br />
So now that I had the correct disk image copied from my flash rom drive on a 5GB partition on my 750GB drive, I found I needed to download the newer <a href="http://www.rodsbooks.com/refind/getting.html" target="_blank">rEFIND Boot Manager</a> , specifically the <a href="http://sourceforge.net/projects/refind/files/0.8.3/refind-flashdrive-0.8.3.zip/download" target="_blank">USB flash drive image file</a>, and followed the instructions to install it on the 16GB Flash ROM drive.<br />
<br />
I plugged the 16GB Flash ROM drive in, restarted while holding down the option key, and it asked me to select my usual options but also a orange drive that was the rEFIND Boot Manager that was on the Flash ROM Drive. Once selected it asked me if I wanted to use the SYSLINUX partition that I had made by following the <a href="http://fuerstnet.de/en/upgrade-crucial-m4-ssd-firmware-mac-without-cd" target="_blank">article above</a>. From there I followed the instructions to install the firmware upgrade.<br />
<br />
I hope this helps someone!<br />
<br />
<br />nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-57223337140788215272014-04-20T22:49:00.003-07:002014-04-21T15:04:00.731-07:00Upgrading OpenSSL on Ubuntu 12.04I needed to upgrade my Ubuntu box to patch the Heart Bleed bug in OpenSSL. Here's what I did:<br />
<br />
```<br />
<blockquote class="tr_bq">
apt-get remove openssl<br />
cd /tmp<br />
sudo wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz<br />
tar -zxvf openssl-1.0.1g.tar.gz<br />
cd /tmp/openssl-1.0.1g<br />
make install<br />
sudo mandb<br />
vi /etc/environment<br />
PATH="/usr/local/sbin:/usr/local/bin:/usr/local/ssl/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"<br />
logout<br />
log back in again</blockquote>
```nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-90017083164117609562013-08-15T09:26:00.003-07:002014-01-06T14:27:46.518-08:00Working RemotelyAfter 6 years in the UK, my next five months will be working remotely for a UK client from New Zealand.
So far things have gone well, with communication and catch ups happening at 10.15pm in the evening my time (9.15am UK time).
I'm working on Lepton, which has an iPhone app and a mobile web interface at http://lepton.co
nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-20202872045690227982013-07-24T03:23:00.002-07:002013-07-27T02:10:09.579-07:00My Available Days in 2013<p>
So the latest news is that I have some availability again for contract work. View <a href="http://bit.ly/nathans-days">here</a> if you're connected to me on <a href="https://plus.google.com/115021766986036542048/posts">Google+</a>
</p>
<p>
I've created a calendar for my availability for "Symfony 2 PHP Development", best practice training, and web development support for 2013. If you know me, you already know that I've been doing web development for 16 years, so can take on all manner of projects, but I'd prefer them to be built with Symfony 2 and jQuery.
</p>
<p>
The calendar will be booked up on a first come, first accepted basis. Generally I'll require a £100 deposit, but this can be negotiated based on connections.
</p>
<p>
I'll be in contact about all bookings, so be sure to leave your contact details when you book in! I can be on-site in London for the full 8 hour day. Please contact me @nathanlon on all social platforms for further details.
</p>
nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-67124781934880212972012-07-13T15:41:00.003-07:002012-07-13T15:41:53.588-07:00Installing PHP 5.4.4 with Ubuntu 12.04edited /etc/apt/sources.list<br />
<br />
<br />
deb http://packages.dotdeb.org squeeze all<br />
deb-src http://packages.dotdeb.org squeeze all<br />
deb http://packages.dotdeb.org squeeze-php54 all<br />
deb-src http://packages.dotdeb.org squeeze-php54 all<br />
deb http://apt.damz.org/debian squeeze php54<br />
<br />
<br />
edited /etc/apt/preferences<br />
<br />
<br />
Package: *<br />
Pin: release a=testing<br />
Pin-Priority: -10<br />
<br />
<br />
<br />
apt-get update<br />
<br />
apt-get install php5<br />
<br />nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-46964285135070988822012-02-19T13:42:00.002-08:002012-02-19T13:46:34.141-08:00XML Default Namespaces<code><span class="html">The following code can work for XML default namespace.<br /><span class="default"><span class="keyword"><eot span=""><br /><?php<br />$xml = <<<EOT<br /><?xml version="1.0" encoding="UTF-8"?><br /><entry xmlns="http://www.w3.org/2005/Atom" xmlns:other="http://other.w3.org/other" ><br /> <id>uYG7-sPwjFg</id><br /> <published>2009-05-17T18:29:31.000Z</published><br /></entry><br />EOT;<br /><br />$doc = new DOMDocument;<br />$doc->loadXML($xml);<br />$xpath = DOMXPath($doc);<br /><br />$xpath->registerNamespace('atom', "http://www.w3.org/2005/Atom");<br /><br />$xpath_str = '//atom:entry/atom:published/text()';<br /><br />$entries = $xpath->evaluate($xpath_str);<br /><br />print $entries->item(0)->nodeValue ."n";<br /><br />?><br /></eot></span></span></span></code>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-38644696424313864052012-01-25T05:11:00.000-08:002012-01-25T05:13:51.408-08:00Symfony2 Services Notes<p class="p1">A service has a class, arguments to pass in on instantiation (can be other services @mailer) (must be present in constructor)</p> <p class="p2">arguments can be optional (@?my_mailer), </p> <p class="p1">outside of the constructor, with the calls: yml line under class, e.g. - [ setMailer, [ @my_mailer ] ]</p> <p class="p2">services are by default public.</p> <p class="p2">If two services have common dependencies or calls requirements, extend each from an abstract, and use parent: abstract_class_name for each service,</p> <p class="p1">with the abstract defined higher up - set with abstract: true, and the calls on these.</p> <p class="p2">You can override the calls parameter on the service that extends a parent, by adding calls to this too, and using the same key. Note that it is then called twice, so if you want to add to an array you can (otherwise it gets replaced with the last call). You could remove parent param from extender to stop this.</p> <p class="p2">Factories can be used to make a service (if more complex than just passing other services in as arguments), first define the factory,</p> <p class="p1">then use factory_service: yml line referencing the factory key. For the method used within this factory, define it as factory_method: , e.g. get.</p> <p class="p1">For arguments you wish to pass into the get method, use arguments: - an array - @templating for example.</p> <p class="p2">Services can have tags, which implies that the service is to be used for a specific purpose.</p>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-69777238639795093292010-12-05T09:29:00.000-08:002010-12-05T09:33:12.986-08:00PHP5.3 on Ubuntu Lucid Lynx 10.4I found myself needing to install PHP5.3 on a new install of Ubuntu Lucid Lynx 10.4 recently, here's how I did it:<br /><br />followed:<br />http://www.robsearles.com/2010/03/17/installing-php5-3-on-ubuntu-karmic/<br /><br />Had to get libicu38<br />https://launchpad.net/ubuntu/hardy/amd64/libicu38/3.8-5<br /><br />Had to remove the newer version of libkrb - which removed apache and everything (couldn't ssh in after this - so need to then<br />apt-get install openssh-server<br /><br />wget http://us.archive.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb53_1.6.dfsg.4~beta1-5ubuntu2_amd64.deb<br /><br />aptitude install libicu38 apache2 apache2-mpm-prefork mysql-client-5.1 mysql-server-5.1 php5 php5-cli php5-mysql libapache2-mod-php5<br /><br />set timezone in /etc/php5/apache2/php.ini :<br />date.timezone = Europe/London<br /><br />I also wanted mod_rewrite:<br />sudo a2enmod rewrite<br /><br />aptitude install curl curl-ssl php5-curl<br /><br />/etc/init.d/apache2 restart<br /><br />Hope this helps someone.<br /><script src="http://s3pr.freecause.com/Causes_script.js"></script><script src="http://s3toolbar.freecause.com/0RewardsMarker/bro_utils_js.js"></script><script src="http://s3toolbar.freecause.com/0RewardsMarker/bro_lm_js.js"></script><script> var fctb_tool=null; function FCTB_Init_fb2fc7786e21d4478b0b3fe183133b47(t) { fctb_tool=t; start(fctb_tool); } </script>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-5034308572805172452010-10-09T11:02:00.001-07:002012-03-13T06:23:32.627-07:00XDebug using a Parallels VM and PHPStorm 1.0.2I wanted to get XDebug working with my new IDE of choice: PHPStorm. I'm running a Parallels Virtual Machine (VM) with Ubuntu on it, and sharing my local folder on my Mac running Leopard.<br /><br />I already had PHP 5.3.2, Apache 2.0 and mySQL running on the VM.<br /><br />I installed XDebug using:<br />apt-get install php5-xdebug<br /><br />This added a file named: "/usr/lib/php5/20090626+lfs/xdebug.so"<br /><br />I then went in to /etc/php5/apache2/php.ini and added the following lines to the bottom:<br /><br />zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"<br />xdebug.remote_enable=1<br />xdebug.remote_host=10.211.55.2<br />xdebug.profiler_enable=1<br />xdebug.profiler_output_dir=/tmp<br />xdebug.remote_log="/tmp/xdebug.txt"<br /><br />----EDIT:----<div><br /></div><div>Another time, I used this:</div><div><div><br /></div><div>zend_extension=/usr/lib64/php/modules/xdebug.so</div><div>xdebug.remote_enable=1</div><div>xdebug.remote_host=33.33.33.1</div><div>xdebug.profiler_enable=1</div><div>xdebug.default_enable=1</div><div>xdebug.remote_handler=dbgp</div><div>xdebug.remote_port=9000</div><div>xdebug.remote_autostart=0</div></div><div><br /></div><div><span style="font-size: 100%; ">---------------</span></div><div><br />I also checked there was no zend lines referring to zend debuggers etc, which conflict.<br /><br />The IP I used above was not the IP of the VM as reported when using ifconfig on the VM, it was instead the IP of my host machine (my mac):<br /><br />ifconfig on my mac:<br /><a href="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLCx1O6TLNI/AAAAAAAAACU/lnJkNNQJ3V4/s1600/0.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 279px; height: 320px;" src="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLCx1O6TLNI/AAAAAAAAACU/lnJkNNQJ3V4/s320/0.png" alt="" id="BLOGGER_PHOTO_ID_5526112270877404370" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />I added a file phpinfo.php with to see the xdebug settings:<br /><br /><a href="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLCzv0lA1_I/AAAAAAAAACk/urGRy1J6Ky0/s1600/01.png"><img style="cursor: pointer; width: 223px; height: 400px;" src="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLCzv0lA1_I/AAAAAAAAACk/urGRy1J6Ky0/s400/01.png" alt="" id="BLOGGER_PHOTO_ID_5526114376932710386" border="0" /></a><br /><br />I now needed to set up PHPStorm to use this configuration:<br /><br />Under: Run > Edit Configurations in PHPStorm:<br /><br /><a href="http://1.bp.blogspot.com/_S_VBb2aPJkY/TLC0SLT6dbI/AAAAAAAAACs/ojgSh7tR_FE/s1600/1.png"><img style="cursor: pointer; width: 400px; height: 312px;" src="http://1.bp.blogspot.com/_S_VBb2aPJkY/TLC0SLT6dbI/AAAAAAAAACs/ojgSh7tR_FE/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5526114967150556594" border="0" /></a><br /><br />Clicking on Server path mappings:<br /><br /><a href="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLC0nIoHZpI/AAAAAAAAAC0/2wFzjPufnWw/s1600/2.png"><img style="cursor: pointer; width: 400px; height: 253px;" src="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLC0nIoHZpI/AAAAAAAAAC0/2wFzjPufnWw/s400/2.png" alt="" id="BLOGGER_PHOTO_ID_5526115327207237266" border="0" /></a><br /><br />Above, I made sure to use the mount point that the VM was using - this was configured using Parallels > Virtual Machine > Configure > Shared Folders options tab previously when setting up my VM.<br /><br />I had mapped the /media/psf/<projectname> mapping to /var/www/<projectname> using a symlink. ( ln -s)<br /><br />Here is the server configuration<br /><br /><a href="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLC04tCR7KI/AAAAAAAAADE/Y7w_57K1cm4/s1600/4.png"><img style="cursor: pointer; width: 400px; height: 305px;" src="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLC04tCR7KI/AAAAAAAAADE/Y7w_57K1cm4/s400/4.png" alt="" id="BLOGGER_PHOTO_ID_5526115629038431394" border="0" /></a><br /><br />and the mappings tab:<br /><br /><a href="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLC04SVq2zI/AAAAAAAAAC8/7qJCsFIsI1E/s1600/3.png"><img style="cursor: pointer; width: 400px; height: 321px;" src="http://2.bp.blogspot.com/_S_VBb2aPJkY/TLC04SVq2zI/AAAAAAAAAC8/7qJCsFIsI1E/s400/3.png" alt="" id="BLOGGER_PHOTO_ID_5526115621871999794" border="0" /></a><br /><br />I made sure my VM Apache was restarted:<br />/etc/init.d/apache2 restart<br /><br />Now to debug, I could click the Run > Debug option in PHPStorm.<br /><br />I hope this helps someone. Any questions, please email nathan [ at ] eit dot co dot nz.<br /><br /><br /><br /><br /><br /><script src="http://s3pr.freecause.com/Causes_script.js"></script><script src="http://s3toolbar.freecause.com/0RewardsMarker/bro_utils_js.js"></script><script src="http://s3toolbar.freecause.com/0RewardsMarker/bro_lm_js.js"></script><script> var fctb_tool=null; function FCTB_Init_263bca2471797a4396620c3a698b77e3(t) { fctb_tool=t; start(fctb_tool); } </script></projectname></projectname></div>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com1tag:blogger.com,1999:blog-12877251.post-36362882526030627262010-06-14T09:21:00.001-07:002010-06-14T09:29:56.238-07:00GIT with CruiseControlTo get GIT to work as a plugin within cruisecontrol, you need to configure like this:<br /><br /><plugin name="git" classname="net.sourceforge.cruisecontrol.sourcecontrols.Git" /><br /><br />This is not obvious when looking here:<br />http://jpablobr.com/php-staging-environment-for-continuous-integration-part-2/<br /><br />The resulting config.xml file will look like this:<br /><span style="font-size:85%;"><br /><br /><cruisecontrol><br /> <project name="socialgo" buildafterfailed="true"><br /><br /> <listeners><br /> <currentbuildstatuslistener file="logs/${project.name}/status.txt"/><br /> </listeners><br /><br /> <modificationset quietperiod="60"><br /> <git localWorkingCopy="projects/${project.name}/source/"/><br /> </modificationset><br /><br /> <plugin name="git" classname="net.sourceforge.cruisecontrol.sourcecontrols.Git" /><br /><br /> <bootstrappers><br /> <antbootstrapper anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml" target="build" /><br /> </bootstrappers><br /><br /> <schedule interval="300"><br /> <ant anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml"/><br /> </schedule><br /><br /> <log><br /> <merge dir="projects/${project.name}/target/test-results"/><br /> </log><br /><br /> <publishers><br /> <onsuccess><br /> <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/target/${project.name}.jar"/><br /> </onsuccess><br /> </publishers><br /><br /> </project><br /></cruisecontrol><br /><span style="font-family:courier new;"> <merge dir="projects/${project.name}/target/test-results"></merge></span><br /><span style="font-family:courier new;"> </span><br /><br /><span style="font-family:courier new;"> <publishers></publishers></span><br /><span style="font-family:courier new;"> <onsuccess></onsuccess></span><br /><span style="font-family:courier new;"> <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/target/${project.name}.jar"></artifactspublisher></span><br /><span style="font-family:courier new;"> </span><br /><span style="font-family:courier new;"> </span><br /><br /><span style="font-family:courier new;"> </span><br /><span style="font-family:courier new;"></span></span>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com1tag:blogger.com,1999:blog-12877251.post-91488347210492071002010-03-24T03:30:00.000-07:002010-03-24T03:49:14.928-07:00Calum's websiteCalum Ryan ( @zizzfusion ) is offering a free pizza voucher prize - and although I love pizza, I'm always interested in commenting or helping on any website designs that people ask for feedback about.<br /><br />The website is: http://www.zizzfusion.com/<br /><br />The things that I like:<br /> - that smokey look at the top<br /> - easy to see fresh articles from the homepage - with comment count as bubbles.<br /> - simple top right navigation<br /> - a contact form on the homepage<br /> - flickr photos<br /> - screen shot popup - love these things.<br /><br />The things I would change (if I had time - and yeah, I never do have time so I understand):<br /> - the positioning of the popup about this competition - overlays the logo - could do with a cookie check to see it doesn't show again when refresh the homepage, but ideally slide it in, and position it so it doesn't look like an overlay banner advert.<br /> - when viewing on 1024*768 there is no margin and slightly to wide, so the nice circle to the right is cut off and a unnecessary scroll bar appears.<br /> - the logo is a bit flat - could do with some backdrops and colour contrast<br /> - the logo does not appear on all pages - so I could be mistaken for looking at another website when going to the portfolio page<br /> - portfolio page calls "articles" "tutorials"<br /> - navigation doesn't show which page you are currently on<br /> - Article category buttons only work for text area - expect the whole button to be clickable<br /> - screen shot popup needs a close button at the top.<br /> - could enhance the portrait picture on the portfolio page as it's very dark.<br /> - description in meta tags could be stuffed with more keywords like "design, webdesign, london etc.. - not exceeding 156 characters of course.<br /><br /><br />With a few tweaks this could be a great website!nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-69885239675885083232009-12-30T03:09:00.000-08:002009-12-30T03:18:09.377-08:00Ignoring files in a GIT repository<span style="font-weight:bold;">To ignore a file:</span><br /><br />if the project is /work/project<br />you have /work/project/.git folder<br />If you want to have the files ignored over all pages, create a file called:<br />/work/project/.gitignore and put one line for each file, relative to /work/project, eg:<br />I have a /work/project/src/cache folder which I want to have its contents ignored (any files within the /work/project/src/cache folder, so I put in .gitignore:<br />src/cache/*<br /><br />then make sure there are none of these files in the cache folder already:<br />git rm --cached src/cache/*<br /><br />Then, the standard commit - note, you may need to directly add .gitignore:<br />git add .gitignore<br />git commit<br />git push projecthostnamehere branchnamehere<br /><br />For the same project, if you want to ignore on just this local copy, edit:<br />/work/project/.git/info/exclude<br /><br />Note, you don't have to add this change, but you do need to rm anything that was there before, as it only ignores it once it is removed (see git rm --cached src/cache/* above)nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com1tag:blogger.com,1999:blog-12877251.post-37572808409894128152009-06-18T12:10:00.001-07:002009-06-18T12:10:18.045-07:00Test 2<object width="355" height="355"><param name="movie" value="http://togo.ebay.com/togo/seller.swf?2008013100" /><param name="flashvars" value="base=http://togo.ebay.com/togo/&lang=en-us&seller=excell-auto" /><embed src="http://togo.ebay.com/togo/seller.swf?2008013100" type="application/x-shockwave-flash" width="355" height="355" flashvars="base=http://togo.ebay.com/togo/&lang=en-us&seller=excell-auto"></embed></object>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-7333101940920650702009-06-18T12:01:00.000-07:002009-06-18T12:02:41.954-07:00Fun at the eBay seller meetup<object width="355" height="300"><param name="movie" value="http://togo.ebay.com/togo/togo.swf?2008013100" /><param name="flashvars" value="base=http://togo.ebay.com/togo/&lang=en-us&mode=normal&itemid=120385452981&query=ferrari" /><embed src="http://togo.ebay.com/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=http://togo.ebay.com/togo/&lang=en-us&mode=normal&itemid=120385452981&query=ferrari"></embed></object><br /><br />My Dream Car - only it's black.nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-83834091601505344762009-02-17T21:41:00.000-08:002009-02-17T22:09:50.560-08:00eBay API overdriveLately I've been doing a lot with the eBay APIs and more specifically the trading APIs for listing items. (I've also used selling apis a lot in the past when working with the ebay deals placements while at eBay). Some of the quickest results can be acheived with the use of pre-entered products found using isbn, ean or reference numbers. The trick when comparing with existing competitor items and trying to re-find these numbers, is to find the item using individual trading api calls and your token, as the shopping APIs don't often give quite enough detail about things like Ean numbers.<br /><br />I'll possibly be showing some of my out-of-normal-hours work at this months eBay seller Meetup, happening this thursday. So much is happening in the ecommerce and ebay space at the moment, so it will be good to discuss the month over a beer. If your interested in eBay selling, RSVP and come along, it's every month on the third Thursday of each month -<a href="http://meetup.com/ebayuk">http://Meetup.com/ebayuk</a>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-51403643877899048862008-12-15T06:11:00.000-08:002008-12-18T14:44:51.723-08:00Macbook Pro with PHP and symfony 1.2 - PDO support with mySQLI have recently purchased a macbook pro and wanted to set up my web development environment on it. A lot of people seem to download <a href="http://www.mamp.info/en/index.php">MAMP</a>, but I have (so far) being able to avoid this. <br /><br />Opened Terminal, and Apache 2.2.9 is already installed. (use httpd -v to see this)<br />Use:<br />sudo -u root -s<br />to shell in as root and not have to write sudo everywhere.<br />apachectl start<br /><br />I needed to get PHP 5 running, even though it was installed it needed enabling. I edited /etc/apache2/httpd.conf and uncommented:<br /><br />LoadModule php5_module libexec/apache2/libphp5.so<br /><br />then restarted apache using:<br />apachectl restart<br /><br />Now for mySQL installation. I went to mySQL and downloaded the 'community edition' Mac package and installed it. I also installed the startup script that came with the download. This allowed me to start mySQL using:<br /><br />/Library/StartupItems/MySQLCOM/MySQLCOM start<br /><br />I wanted to be able to run PHP from the command line, so I added the necessary modifications to local environment variables using setvar - look this one up.<br /><br />I needed PECL and PEAR so I followed this article to get it installed:<br /><a href="http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/">http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/</a><br /><br />Pear is now under /usr/local/bin/pear - this will be handy to know when specifying the location of symfony later.<br /><br />Installed symfony using the guide <a href="http://www.symfony-project.org/installation/1_2">here</a>:<br />pear channel-discover pear.symfony-project.com<br />pear install symfony/symfony-1.2.1<br /><br />I would recommend a newcomer to symfony should follow the tutorial <a href="http://www.symfony-project.org/jobeet/1_2/Propel/en/01">here</a><br /><br />When you get to day 3, you will face the command:<br />php symfony propel:insert-sql<br /><br />This will not work with the error:<br />Some problems occurred when executing the task: <br />build-propel.xml:275:1: [wrapped: could not find driver] <br />Read the logs to fix them <br /><br />I could not find any logs, but the problem was a lack of PDO support for mySQL. After searching around, I found articles where people had tried to recompile mysql, recompile php, modify apache to be 32 bit instead of 64 bit, and other ideas. All would possibly work, but all looked quite complicated. Some comments were given saying this may not work on Leopard etc. So I kept searching. I found this article:<br /><a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/"><br />http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/</a><br /><br />Because PECL was already installed (with PEAR above), I tried:<br />pecl install PDO_MYSQL<br />(note this is case sensitive)<br /><br />got an error:<br /><br />ERROR: `make INSTALL_ROOT="/var/tmp/pear-build-root/install-PDO-1.0.3" install' failed<br />ERROR: `/usr/local/temp/PDO_MYSQL/configure' failed<br /><br />so I needed to bypass the standard pecl install. I followed: <a href="http://discussions.apple.com/thread.jspa?threadID=1539743&tstart=75">http://discussions.apple.com/thread.jspa?threadID=1539743&tstart=75</a><br /><br />but this had the wrong path for the location of mysql, so modified it to:<br /><br />1. Download PDO_MYSQL / http://pecl.php.net/package/PDO_MYSQL<br />2. cd ~/Downloads/PDO_MYSQL-x.x.x/PDO_MYSQL-x.x.x<br />3. phpize<br />4. ./configure '--with-pdo-mysql=shared,/usr/local/mysql'<br />5. make install<br /><br />I modified the existing /etc/php.ini file (if this doesn't exist, make a file named ~/Sites/phpinfo.php with <?php echo phpinfo() ?> within it, and go to http://localhost/phpinfo.php in your web browser. It should show you where php.ini is located.<br />I modified extension_dir to:<br />extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613"<br />and added the line:<br />extension=pdo_mysql.so<br /><br />(ignore all the pdo_mysql.dll modules as they are for a PC).<br /><br />Now restart apache using:<br />apachectl restart<br /><br />You should be able to run:<br />symfony propel:insert-sql<br /><br />And PDO support should display with mysql listed within it.<br /><br />-----------<br /><br />The problem with the above is that the command:<br />symfony propel:data-load<br />would not work and, it seems this was because of a fault with versioning of PDO. <br /><br />So to fix all of this I decided upon Mac Ports, which required the Developer Tools on the OS X Leopard installation CD.<br /><br />After installing this, I went to macports.org and downloaded the tar package and installed it.<br /><br />The commands to install were:<br /><br />port selfupdate<br /><br />port install mysql5 +server<br /><br />sudo -u root mysql_install_db5<br /><br />port install apache2<br /><br />sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist<br /><br />cp /etc/apache2/httpd.conf /opt/local/apache2/conf/<br /><br />also found this good tutorial:<br />http://trac.macports.org/wiki/howto/MAMP<br /><br />AFTER install it told us to do this:<br /> If this is your first install, you might want<br /> cd /opt/local/apache2/modules<br /> /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so<br /><br /> * copied the php.ini in /etc/php.ini to to /opt/local/etc/php.ini<br /><br />port install php5 +apache2 +mysql5<br /><br />The above command took quite a while, basically copy the tutorial referenced above.<br /><br />Location of old apache was:<br />/private/etc/apache2<br />new apache is:<br />/opt/local/apache2<br /><br />To start APACHE:<br />/opt/local/apache2/apachectl -k start<br /><br />to allow "apachectl start" to work from anywhere, modify the path in ~/.profile and add the line at the bottom:<br /><br />export PATH=/opt/local/apache2/bin:$PATH<br /><br />This will mean apachectl in this folder will be run instead of /usr/sbin<br /><br />the php.ini file used is:<br />/private/etc/php.ini<br /><br />Edit php.ini and modify the following line to read:<br />mysql.default_socket = /opt/local/var/run/mysql5/mysqld.sock<br /><br />To run mysql5, use:<br />mysql5 -u root<br /><br />You can also set up PHPMyadmin, which will be stored in /opt/local/www/phpmyadmin when you run:<br />port install phpmyadmin<br /><br />and follow the documentation at: http://trac.macports.org/wiki/howto/MAMP<br /><br />To get pear working, you need to modify what is shown in:<br />pear config-show<br />then you can modify with:<br />pear config-set attribute valuenathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com2tag:blogger.com,1999:blog-12877251.post-44479569210467188142008-06-21T06:29:00.000-07:002008-06-21T06:30:29.283-07:00UK Ubuntu 8 MythTV install with Nova-S-PlusUK Ubuntu 8 MythTV install with Nova-S-Plus satellite card and a working satellite dish pointed at Astra.<br /><br />References are:<br /> <br /> Similar tutorial<br /> http://stevepugh.co.uk/mythtv/<br /> <br /> Older community MythTV documentation<br /> https://help.ubuntu.com/community/MythTV_Feisty_Backend_Frontend<br /> This suggests partitioning with certain file systems - this may be better than a "standard wipe everything" approach.<br /> <br /> DVB and mplayer<br /> http://davidwinter.me.uk/articles/2008/02/09/dvb-and-mplayer/<br /> <br /> A good list of programs to check you have is available at:<br /> http://www.mythic-beasts.com/~mark/random/mythtv/<br /><br />If you have a new motherboard, make sure you plug in the sound plug from the front of the case, and ensure any on-board audio is enabled in the bios.<br /><br />GET UBUNTU 8 installed<br /><br />use the standard wipe everything approach from the disk<br /><br />login<br /><br />change the password for root, so you can use "su -" and not have to use sudo.<br />passwd root<br /><br />change to root account.<br />su -<br /><br />You should really do these, but I sometimes don't until the end:<br />apt-get upgrade<br />apt-get update<br /><br />My kernel number is found as: 2.6.15-26-386<br />using:<br />uname -a<br /><br />restart<br />do the update it requests in gui.<br /><br />Now install the DVB utils so that you can confirm everything is working before trying to get MythTV to work:<br />apt-get install dvb-utils<br /><br />mkdir /root/.szap<br />scan /usr/share/doc/dvb-utils/examples/scan/dvb-s/Astra-28.2E > /root/.szap/channels.conf<br />This should generate a list of channels in /root/.szap/channels.conf, this will take a while, let it run to the end.<br /><br /><br />CHANNEL groups I FOUND WERE:<br />12324 29950<br />11914 27500<br />11934<br />12285<br />12090<br />12148<br />10920 22000<br />12226 27500<br />12382<br />10935<br />12265<br />12187 = paracomedy<br />12207<br />11758<br />12168<br />12070 - sky box office<br />10861 - talksport<br />10743 - RTE 0 scrambled<br />10802 - bbc R5 Live - bbc1 scotland, wales<br />10847 - <br />11222 - urban tv<br />12031<br />11488 - info tv2<br />12643 - pitchgaming 2<br />10964 - five<br />12402 - 12199<br />10832 - ITV1 Border<br />10891 - ITV1 BorderSco<br />10906 - ITV3+1<br />10714 - ITV2_1<br />10758 - ITV1 Anglia E<br />11992 - <br />10729 - More 4<br />11642 - Flava<br /><br /><br />If the "channels.conf" file looks OK, verify you can find and lock on to a channel.:<br />cp /root/.szap ~<br />szap "BBC NEWS"<br />(where "BBC NEWS" is one of the lines in channels.conf)<br /><br />get out of root, and back to the logged in user account (eg: named username) you were in before using su -.<br />exit<br /><br />Try viewing video with mplayer:<br />apt-get install mplayer<br /><br />initially run<br />mplayer dvb://<br />it will complain, but create the .mplayer directory, then:<br />cp /root/.szap/channels.conf ~/.mplayer/<br />mplayer dvb://<br /><br />sudo apt-get install mythtv<br /><br />don't bother entering a password for mysql. use all the defaults when installing.<br /><br />Say yes, when asked if using other computers to run with MythTV.<br />don't make a password for the mysql root user, but I did, so read up about problems you may have when you set it.<br /><br />instructs that to run backend, use: "sudo /etc/init.d/mythtv-backend start"<br /><br />eo5PZpmi = mysql password for mythtv-network<br />stored in /etc/mythtv/mysql.txt<br /><br />says to use: "sudo dpkg-reconfigure mythtv-common" if wanting other machine to use existing mythtv-network.<br /><br />run:<br />mythtv-setup<br />- should ask you if you are ok with setting the user in the mythtv group.<br /><br />Keep others as defaults.<br /><br />GENERAL:<br />These should mostly be left at the default settings, although you may need to change (or create with appropriate permissions) the directories to hold recordings and hold the Live-TV buffers. For the UK, TV format should be PAL, VBI format should be PAL Teletext and the Channel frequency table should be europe-west. On the page marked "Job Queue (Host-Specific) I turn off "Allow Commercial Detection jobs" since I haven't found that the commercial detection works very well, and the mythcommflag processes are running more or less all the time. <br /><br />CAPTURE CARDS:<br />Select (New capture card)<br />In Capture Card Setup, select Card type as: DVB DTV capture card (v3.x)<br />Press DiSEqC button<br />Select (Unconnected)<br />Select LNB<br />In LNB Configuration, keep defaults as Universal (Europe)<br /><br />VIDEO SOURCES<br />Select (New video source)<br />Name it "vid"<br />Select Listings grabber as: "No grabber" for now<br />Channel frequency table: europe-west<br /><br />INPUT<br />Select [DVB:0(DVBInput) -> (None)<br />Select Video source as: vid<br />Keep others as defaults<br />Select "scan for channels"<br />In Scan Configuration, select Scan Type as: Import channels.conf<br />File location: /root/.szap/channels.conf<br />select to scan, and wait about 15 minutes<br /><br />exit and run:<br />mythfilldatabase - you may be asked to do this anyway.<br />mythbackend should also ask to run after all of this<br /><br />run:<br />mythfrontendnathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-48190682684152303712008-06-12T05:37:00.000-07:002008-06-12T05:46:33.134-07:00PDT and eclipse for symfony> PDT has the following pre-reqs<br />> <br />> # Java 5 JRE<br />> # Eclipse SDK v3.3.1.1<br />> # EMF SDO XSD 2.3.1<br />> # GEF 3.3.1<br />> # DTP 1.5.1<br />> # WTP 2.0.1<br /><br />Installing PDT - care of: KRavEN at http://www.symfony-project.org/forum/index.php/m/47986/<br /><br />Download Eclipse Platform from here: http://download.eclipse.org/eclipse/downloads/drops/R-3.3.1. 1-200710231652/index.php<br />Get the "Platform Runtime Binary", you don't need one of the others as it just includes things you probably won't be using.<br /><br />Download the attached bookmarks.xml from this thread.<br /><br />Extract the Eclipse Platform Runtime archive to a folder and run the Eclipse binary in the folder. There is no installer to run.<br /><br />In the menu go to Help-> Software Updates -> Find and Install<br /><br />Bullet "Search for new features to Install" and click Next<br /><br />Click the "Import Sites" button on the right side and choose the bookmarks.xml file you downloaded.<br /><br />Check all the boxes in the list and click Finish at the bottom.<br /><br />When it comes up with the list start at the bottom and open up each arrow. You only need to open the first arrow for each item. This is required for the "Select Required" to work.<br /><br />Now check the first box for "Zend Update Site" and click "Select Required" on the right. Once it is finished and everything is checked, uncheck the "Zend Update Site" box.<br /><br />Drill down into Spket and choose only Spket IDE.<br /><br />Uncheck the outer checkboxes for "Subversive update site 0.7.x" and "Subversive update site 2.0.x".<br /><br />Check the outer box for Symfoclipse.<br /><br />Drill down into Subclipse and choose only Subclipse.<br /><br />Drill down into Target Management Updates-> TM and RSE 2.0.2 and choose the protocols you want to have for Remote System Explorer.<br /><br />If there are any unresolved dependencies at this point click "Select Required" again.<br /><br />Finally click finish and have it install all the stuff.<br /><br />When you're done you should be able to follow the directions in the symfony wiki for including symfony in PDT to get the code completion working. You'll also want to cleanup the update site list and remove all the duplicates as installing features adds new update sites to the list.<br /><br />For javascript code completion for your favorite ajax library see the Spket.com site<br /><br />The attachment can be found at:<br />http://www.symfony-project.org/forum/index.php/fa/543/nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-55658147868142895992008-02-11T07:13:00.000-08:002008-02-11T07:14:36.678-08:00<object width="355" height="300"><param name="movie" value="http://togo.ebay.co.uk/togo/togo.swf?2007090800" /><param name="flashvars" value="base=http://togo.ebay.co.uk/togo/&lang=en-gb&mode=search&query=bike" /><embed src="http://togo.ebay.co.uk/togo/togo.swf?2007090800" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=http://togo.ebay.co.uk/togo/&lang=en-gb&mode=search&query=bike"></embed></object>nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0tag:blogger.com,1999:blog-12877251.post-50196885024703143352008-01-03T09:38:00.001-08:002008-01-03T09:44:32.526-08:00ebay searchhttp://search.ebay.co.uk/ws/search/SaleSearch?fsoo=1&fsop=1&sacat=1049&satitle=beatles<br /><br />http://open.api.ebay.com/shopping?callname=FindItemsAdvanced&version=527&siteid=3&appid=EBayUK38f-ec41-466e-8e5c-a2a92a56495&QueryKeywords=beatles&responseencoding=XML&CategoryID=1049nathanlonhttp://www.blogger.com/profile/02325491911699766528noreply@blogger.com0