<?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>Sunsetsurf Techblog &#187; Other Tech Stuff</title>
	<atom:link href="http://techblog.sunsetsurf.co.uk/category/techstuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.sunsetsurf.co.uk</link>
	<description>Random tech bloggidge</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:14:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Re-streaming sopcast with linux to ipad / iphone using ffserver ffmpeg and segmenter.</title>
		<link>http://techblog.sunsetsurf.co.uk/2012/01/re-streaming-sopcast-with-linux-to-ipad-iphone-using-ffserver-ffmpeg-and-segmenter/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2012/01/re-streaming-sopcast-with-linux-to-ipad-iphone-using-ffserver-ffmpeg-and-segmenter/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 00:14:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=203</guid>
		<description><![CDATA[I wanted to find a way to watch sopcast streams on my ipad, however there currently is no native ipad app for this. Available for linux is the sopcast command line player &#8211; sp-sc-auth which works just fine, so all I needed to go was get this to my ipad. Fairly straight forward I thought [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to find a way to watch sopcast streams on my ipad, however there currently is no native ipad app for this.</p>
<p>Available for linux is the sopcast command line player &#8211; sp-sc-auth which works just fine, so all I needed to go was get this to my ipad. Fairly straight forward I thought as sopcast listens on a chosen port for you to connect a media application to &#8211; I tried it on my ipad with xyzplayer which worked fine for a standard def video stream, but with HD streams the picture would be in slow motion.</p>
<p>I tried a number of other players, but they all had the same problem. So I figured if I could re-stream the stream as h264 I could get quicktime to play it on my ipad, and that would sort the issue.</p>
<p>However &#8211; easier said than done!</p>
<p>I was able to get ffserver and ffmpeg to take the stream from sopcast and re-stream but again slow motion issues.</p>
<p>So I definitely needed to re-stream into a quicktime compatable stream.</p>
<p>So I started looking at the use of the open source conversion of apples segmenter. Looked great but had a nightmare trying to get live_segmenter.c to compile on my fedora system.</p>
<p>However after some digging it seemed the majority of my issues were with my version of ffmpeg.</p>
<p>Using these instructions I managed to get it to compile correctly:</p>
<pre>wget <a href="http://epirat.de/wp-content/uploads/ffmpeg-export-snapshot-2009-12-02.tar.bz2">http://epirat.de/wp-content/uploads/ffmpeg-export-snapshot-2009-12-02.tar.bz2</a></pre>
<pre>tar -xvjf ffmpeg-export-snapshot-2009-12-02.tar.bz2</pre>
<pre>cd ffmpeg-export-2009-12-01/</pre>
<pre>./configure --enable-gpl --enable-nonfree  --enable-libfaac\
 --enable-libmp3lame --prefix=/tmp/old_ffmpeg</pre>
<pre>make</pre>
<pre>make install</pre>
<pre>cd</pre>
<pre>git clone git://github.com/ePirat/HTTP-Live-Video-Stream-Segmenter-and-Distributor.git</pre>
<pre>gcc -v -Wall -g live_segmenter.c -o live_segmenter \
    -lavformat -lavcodec -lavutil -lvorbis -ltheora\
    -lbz2 -lm -lz -lfaac -lmp3lame \
    -I/tmp/old_ffmpeg/include \
    -L/tmp/old_ffmpeg/lib</pre>
<pre>rm -rf /tmp/old_ffmpeg</pre>
<pre>rm -rf ffmpeg-export-2009-12-01</pre>
<pre>rm ffmpeg-export-snapshot-2009-12-02.tar.bz2</pre>
<p>I would love to credit the author but im unable to find a way too! So if you read this thanks, and drop me a mail for credit <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>After getting this to compile, I followed the instructions <a href="http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/">http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/</a></p>
<p>&nbsp;</p>
<p>Well couldnt get the script to work so stripped it out to manually run ffmpeg and pipe it into live_httpstreamer &#8211; however turns out my m3u8 index wasnt being created and my files were not able to be encoded as I didnt have x264 installed correctly.</p>
<p>So took this <a href="https://sites.google.com/site/linuxencoding/install-script">https://sites.google.com/site/linuxencoding/install-script</a> to get the x264 support installed.</p>
<p>Manually created my own m3u8 index just to test that it would actually work.</p>
<p>Ended up with it all working, although the audio is going out of sync, but i&#8217;ll look at that at some point..</p>
<p>My final command, assuming I have created the m3u8 file with just 2 hours worth of segments, is&#8230;</p>
<p>/home/user/Linux.Encoding.install/bin/ffmpeg -i http://127.0.0.1:7070 -f mpegts -acodec libmp3lame -ar 32000 -ab 48k -async 1 -s 600&#215;480 -vcodec libx264 -b 1200k -flags +loop+mv4 -cmp 256 -partitions +parti4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 1200k -maxrate 1200k -bufsize 110k -rc_eq &#8216;blurCplx^(1-qComp)&#8217; -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 4:3 -r 30 -g 90 -async 2 &#8211; | /home/user/segmenter/live_segmenter 10 /var/www/html/video/ stream ipad</p>
<p>Any questions please feel free to post comments, I have pulled this together quickly so might well have missed something&#8230;</p>
<p>&nbsp;</p>
<p><map name='google_ad_map_203_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/203?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_203_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=203&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2012%2F01%2Fre-streaming-sopcast-with-linux-to-ipad-iphone-using-ffserver-ffmpeg-and-segmenter%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2012/01/re-streaming-sopcast-with-linux-to-ipad-iphone-using-ffserver-ffmpeg-and-segmenter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone what is calaccessd?!</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/10/iphone-what-is-calaccessd/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/10/iphone-what-is-calaccessd/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 16:08:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=200</guid>
		<description><![CDATA[On the new iOS5 while debugging my poor battery life I came across a process on my iPhone called calaccessd which was hogging lots of CPU time and I felt it was responsible for my poor battery life &#8211; although no hard evidence yet. Much googling turned up nothing however playing around I found that [...]]]></description>
			<content:encoded><![CDATA[<p>On the new iOS5 while debugging my poor battery life I came across a process on my iPhone called calaccessd which was hogging lots of CPU time and I felt it was responsible for my poor battery life &#8211; although no hard evidence yet.</p>
<p>Much googling turned up nothing however playing around I found that the daemon died immediately when I turned calendar off of notification centre and back to alerts rather than banner alert. I am hopeful that this will help the massive battery drain I have been experiencing and I will report back on this post.</p>
<p>Whilst it is nice to have my calendar stuff in the notification centre with the imminent release of intelliscreenX I can live without it for the moment if it gives me better battery life.</p>
<p>Cheers</p>
<p><map name='google_ad_map_200_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/200?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_200_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=200&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F10%2Fiphone-what-is-calaccessd%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/10/iphone-what-is-calaccessd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone iOS5 poor battery life</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/10/iphone-ios5-poor-battery-life/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/10/iphone-ios5-poor-battery-life/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 11:34:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=193</guid>
		<description><![CDATA[I recently updated my iPhone 4 to iOS5 but suffered from very poor battery life around 50% worse than previous on 4.3.3. I put it down to spotlight re-indexing etc and ignored it for a few days, but after a week of still being rubbish I did some digging. Although not conclusive, I noticed a [...]]]></description>
			<content:encoded><![CDATA[<p>I recently updated my iPhone 4 to iOS5 but suffered from very poor battery life around 50% worse than previous on 4.3.3.</p>
<p>I put it down to spotlight re-indexing etc and ignored it for a few days, but after a week of still being rubbish I did some digging.</p>
<p>Although not conclusive, I noticed a process &#8211; calaccessd which was using about 40% of the cpu time all the time &#8211; obviously cpu time equates to battery drain.</p>
<p>After some more digging I discovered its related to the calendaring functions (yes slightly obviously given the name). Doing some debugging, I went into my calendars and unticked the iCloud calendar from my views &#8211; this immediately made the calaccessd drop cpu use to next to nothing.</p>
<p>So im hopeful this might have a significant effect on my battery life and put it somewhere back to where I expect it to be..</p>
<p>Any comments on this i&#8217;d be interested to hear.</p>
<p>Cheers!</p>
<p>&nbsp;</p>
<p>update1 &#8211; checked my running processes a few hours later and irritatingly calaccessd was back using lots of cpu, so this time I have switched calendar off completely from my iCloud mail settings &#8211; this so far has stopped any resurgence of calaccessd using lots of cpu.</p>
<p>update2 &#8211; this has fixed the cpu runaways, but still experiencing very poor battery life, and very jerky and slow performance from the phone as a whole. Going for a full restore to see how it fairs after that..</p>
<p>update3 &#8211; did the full restore, again had fun and games with stupid itunes not recognizing my backup, but battery life is now back to normal, if not better! I had never noticed but each time i pick up the phone now it actually feels cold, which must be a good thing as if its warm its obviously using battery up!</p>
<p>I did choose to not install a couple of items I had previously installed, and have removed a couple of calendars also so not conclusive but its got to be one of the following :</p>
<p>poweralerter, sbsettings, iCloud syncing calendars etc, multiple exchange calendars from the same account (I had 4 calendars on my 1 exchange account, which I have trimmed down to 1 now)</p>
<p>So its either 1 of the above or just the restore, but either way im considering this case closed. Its also worth noting that its performing lovely too, the jerkyness has gone and its nice and nippy. All in all im happy <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>update4 not happy again <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  as per the above update I thought it was sorted, however it seems not. See post what is calaccessd for a further update.</p>
<p>update5 &#8211; post on calaccessd gives full info on the bug on ios 5, however updating to ios 5.0.1 fixes this issue.</p>
<p><map name='google_ad_map_193_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/193?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_193_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=193&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F10%2Fiphone-ios5-poor-battery-life%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/10/iphone-ios5-poor-battery-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Source based routing on Checkpoint SPLAT</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/02/source-based-routing-on-checkpoint-splat/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/02/source-based-routing-on-checkpoint-splat/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 11:29:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=178</guid>
		<description><![CDATA[If you have 2 internet connections, or for whatever reason need to route specific traffic down a specific interface, by default you are stuck &#8211; checkpoint do not officially support source based routing on the SPLAT platform. But it is possible using the underlying system. To create a route that allows all traffic from 10.0.0.0/24 [...]]]></description>
			<content:encoded><![CDATA[<p>If you have 2 internet connections, or for whatever reason need to route specific traffic down a specific interface, by default you are stuck &#8211; checkpoint do not officially support source based routing on the SPLAT platform.</p>
<p>But it is possible using the underlying system.</p>
<p>To create a route that allows all traffic from 10.0.0.0/24 to route through interface 5 try the following:</p>
<p>We add a new routing table by adding to the file:</p>
<pre>echo "100 Defaultroute2" &gt;&gt; /etc/iproute2</pre>
<p>This will create a new routing table called Defaultroute2.The default routing tables are numbered 253 &amp; above, so as the number assigned to this table is less than 253, ie: 100, it will be used BEFORE the default routes. Next we set up a new rule for this table:</p>
<pre>ip rule add from 10.0.0.0/24 table Defaultroute2</pre>
<p>This adds a rule that says any traffic FROM 10.0.0.0/24 will have the routing in the Defaultroute2 routing table applied. Next we set up some new routes:</p>
<pre>ip route add default via 192.168.0.1 dev Lan5 table Defaultroute2</pre>
<p>This sets a default route that pushes traffic to the gateway address 192.168.0.1 via the device Lan5. This route applies to any traffic going via the Defaultroute2l routing table. We can add more routes to this table, so for instance we could route traffic to other IP addresses via a different gateway:</p>
<pre>ip route add 212.111.123.0/24 via 212.104.137.254 dev Lan5 table Defaultroute2</pre>
<pre>and bingo you have not implemented source based routing.</pre>
<pre>Dont forget however that this config will need to be applied on each boot, or else create a simple startup script.</pre>
<p><map name='google_ad_map_178_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/178?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_178_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=178&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F02%2Fsource-based-routing-on-checkpoint-splat%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/02/source-based-routing-on-checkpoint-splat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CheckPoint R65 ndb_open: database &#8216;magic number&#8217; corrupted(/opt/CPsuite-R65/fw1/database/fwauth.NDB) error</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/01/checkpoint-r65-ndb_open-database-magic-number-corruptedoptcpsuite-r65fw1databasefwauth-ndb-error/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/01/checkpoint-r65-ndb_open-database-magic-number-corruptedoptcpsuite-r65fw1databasefwauth-ndb-error/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 16:32:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=175</guid>
		<description><![CDATA[An irritating error which must be a bug, but only comes around every so often. Anyway the fix is as follows: login to the box and ensure you are in expert mode. then do cd $FWDIR cd database mv fwauth.NDB fwauth.corrupt thats it! Reinstall your firewall policy and you should now see it sucessfully install [...]]]></description>
			<content:encoded><![CDATA[<p>An irritating error which must be a bug, but only comes around every so often.</p>
<p>Anyway the fix is as follows:</p>
<p>login to the box and ensure you are in expert mode.</p>
<p>then do</p>
<p>cd $FWDIR</p>
<p>cd database</p>
<p>mv fwauth.NDB fwauth.corrupt</p>
<p>thats it!</p>
<p>Reinstall your firewall policy and you should now see it sucessfully install and recreate the fwauth.NDB database.</p>
<p><map name='google_ad_map_175_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/175?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_175_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=175&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F01%2Fcheckpoint-r65-ndb_open-database-magic-number-corruptedoptcpsuite-r65fw1databasefwauth-ndb-error%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/01/checkpoint-r65-ndb_open-database-magic-number-corruptedoptcpsuite-r65fw1databasefwauth-ndb-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google urchin analytics session error unable to call default routine.</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/11/google-urchin-analytics-session-error-unable-to-call-default-routine/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/11/google-urchin-analytics-session-error-unable-to-call-default-routine/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 10:03:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=169</guid>
		<description><![CDATA[I am on version 6.602 and have on occasion tried to log in and received the above error &#8211; Session error, unable to call default routine. It took me some digging to find the cause, and it would seem that for some reason &#8211; I havent invested the time to find out why yet &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>I am on version 6.602 and have on occasion tried to log in and received the above error &#8211; Session error, unable to call default routine.</p>
<p>It took me some digging to find the cause, and it would seem that for some reason &#8211; I havent invested the time to find out why yet &#8211; that the table uprofiles_tasks gets so big that it causes problems to the login script and prevents logins.</p>
<p>The answer is to login to the mysql database, and truncate the uprofiles_tasks table.</p>
<p>This then fixes logins for a period of time until the table gets large again, but in my experience this is weeks / months rather than days..</p>
<p><map name='google_ad_map_169_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/169?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_169_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=169&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F11%2Fgoogle-urchin-analytics-session-error-unable-to-call-default-routine%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/11/google-urchin-analytics-session-error-unable-to-call-default-routine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone slow to wake / slide to unlock &#8211; three network</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/03/iphone-slow-to-wake-slide-to-unlock-three-network/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/03/iphone-slow-to-wake-slide-to-unlock-three-network/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 11:50:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=150</guid>
		<description><![CDATA[I have a fully unlocked iPhone and use it with a three contract sim card&#8230; From time to time, especially at home, ive been experiencing problems where pressing the home button takes ages for my phone to actually wake up, and then often when it does wake up, the slide to unlock screen is frozen, [...]]]></description>
			<content:encoded><![CDATA[<p>I have a fully unlocked iPhone and use it with a three contract sim card&#8230;</p>
<p>From time to time, especially at home, ive been experiencing problems where pressing the home button takes ages for my phone to actually wake up, and then often when it does wake up, the slide to unlock screen is frozen, and I have to wait longer before I can actually slide and unlock.</p>
<p>Ive tried loads of things to try to figure this out, I am jailbroken, so wondered if it was that that caused the problems, but after putting the phone into flight mode, the problem went away..</p>
<p>After some digging around, I tried manually selecting my carrier &#8211; specifically the 3 3g one. Whilst this is far from ideal as it locks me to three&#8217;s 3g network, which means that should I go outside of that I will not automatically fall back onto the 2g infrastructure, it does seem to have sorted my problem.</p>
<p>More digging and reading suggests that when the phone switches from 3g to 2g, it can some times be a slow and painful process, and especially so with three&#8217;s network, as it seems they utilise other peoples 2g infrastructure, which would explain why I dont see this problem with a vodafone iPhone.</p>
<p>So if you are on three, it might be worth trying this, but remember you are likely to get more No Service messages if you go outside of a covered area and will need to manually either select automatic to get it back, or manually chose an alternative compatible carrier.</p>
<p><map name='google_ad_map_150_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/150?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_150_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=150&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F03%2Fiphone-slow-to-wake-slide-to-unlock-three-network%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/03/iphone-slow-to-wake-slide-to-unlock-three-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to increase your iPhone battery life &#8211; a few tips.</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/02/how-to-increase-your-iphone-battery-life-a-few-tips/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/02/how-to-increase-your-iphone-battery-life-a-few-tips/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:50:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=145</guid>
		<description><![CDATA[Well like everyone out there I want my iPhone battery to last forever &#8211; i unfortunately upgraded to firmware 3.1.3 and while I dont need a baseband unlock because my phone isn&#8217;t locked, I did want a jailbreak. All this aside, I found that as soon as I had upgraded, my battery life was a [...]]]></description>
			<content:encoded><![CDATA[<p>Well like everyone out there I want my iPhone battery to last forever &#8211; i unfortunately upgraded to firmware 3.1.3 and while I dont need a baseband unlock because my phone isn&#8217;t locked, I did want a jailbreak. All this aside, I found that as soon as I had upgraded, my battery life was a quarter worse than before.</p>
<p>I used to get pretty much 2 days use out of a full charge &#8211; I dont use the phone loads, just normal texting, a few phone calls and a bit of facebook / twittering, but after the 3.1.3 firmware upgrade, I immediately found I was getting only a days worth of battery life <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Wasn&#8217;t happy especially as apple stopped me from downgrading to 3.1.2 which was nice and lovely.</p>
<p>So to help me get the best of what I had I made 2 changes which made a big difference and have resulted in me getting my 2 days usage back, and maybe even a bit more.</p>
<p>1: Disable location services &#8211; Go into settings &gt; general, and change location services to off.</p>
<p>This does mean you no longer have your GPS active, but if you like me only use this infrequently, i&#8217;d rather switch it on in the odd occasion I do use it, than have it sucking my battery away.</p>
<p>2: Disable wi-fi scanning &#8211; Go into settings &gt; wi-fi and change Ask to Join Networks to off. This means that rather than constantly scanning for available wi-fi networks, it will only use the ones you have pre-configured. Should you want to connect to a new network, you can either switch this back on or go back into settings &gt; wi-fi and pick it from the list or add it manually. Again this saves loads of battery time as the wi-fi is not scanning.</p>
<p>These 2 simple tips made a big difference to mine and a few friends iPhone life, hope it helps you too.</p>
<p><map name='google_ad_map_145_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/145?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_145_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=145&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F02%2Fhow-to-increase-your-iphone-battery-life-a-few-tips%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/02/how-to-increase-your-iphone-battery-life-a-few-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hyperterminal / command line modem calls</title>
		<link>http://techblog.sunsetsurf.co.uk/2009/12/hyperterminal-command-line-modem-calls/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2009/12/hyperterminal-command-line-modem-calls/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 11:45:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=132</guid>
		<description><![CDATA[Not something you use much these days, but something I thought i&#8217;d note down here in case someone at some point needs it. ATA (ata) Handshake sounds if modem speaker is enabled. Modem tries to answer call with handshake sounds. Press Enter to stop this process. The no carrier message is normal with this command. [...]]]></description>
			<content:encoded><![CDATA[<p>Not something you use much these days, but something I thought i&#8217;d note down here in case someone at some point needs it.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATA (ata)<span style="white-space: pre;"> </span>Handshake sounds if modem speaker is enabled.<span style="white-space: pre;"> </span>Modem tries to answer call with handshake sounds. Press Enter to stop this process. The no carrier message is normal with this command. This command does not apply to Windows XP.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATDT &lt;ISP Phone Number&gt;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">For example, ATDT1234567 (where 1234567 is the connection number to dial for Internet service).</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">To connect to a test server in the US you can type:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATDT18666633665<span style="white-space: pre;"> </span>Login: _<span style="white-space: pre;"> </span>Connects to a test server. If you can get to a login, your modem is working correctly.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATDT (atdt)<span style="white-space: pre;"> </span>Dialtone if modem speaker is enabled.<span style="white-space: pre;"> </span>Indicates that the modem can get a dial tone. The message &#8220;no dial tone&#8221; indicates that either the modem or phone line is not working correctly. Press Enter to stop this process.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">AT&amp;F<span style="white-space: pre;"> </span>OK<span style="white-space: pre;"> </span>Resets most modems to factory defaults.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATI0 (ati)<span style="white-space: pre;"> </span>56000 ok<span style="white-space: pre;"> </span>The response varies between modems, but returns the modem speed..</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATI3 (ati)<span style="white-space: pre;"> </span>&lt;Version and name&gt;<span style="white-space: pre;"> </span>Returns the modem product type and firmware version.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATZ (atz)<span style="white-space: pre;"> </span>ok<span style="white-space: pre;"> </span>This command resets the modem.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATH (ath)<span style="white-space: pre;"> </span>ok<span style="white-space: pre;"> </span> Hangs up modem</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ATS0=2 (ats0=2)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Zero, not the letter O .<span style="white-space: pre;"> </span>ok<span style="white-space: pre;"> </span>This command sets the modem to receive. Call the computer&#8217;s phone number and you should hear the handshake signal. Ring, ring displays on HyperTerminal screen, followed by no carrier , when the caller hangs up.</div>
<p>ATA (ata)<span style="white-space: pre;"> </span>Handshake sounds if modem speaker is enabled.<span style="white-space: pre;"> </span>Modem tries to answer call with handshake sounds. Press Enter to stop this process. The no carrier message is normal with this command. This command does not apply to Windows XP.</p>
<p>ATDT &lt;ISP Phone Number&gt;</p>
<p>For example, ATDT1234567 (where 1234567 is the connection number to dial for Internet service).</p>
<p>To connect to a test server in the US you can type:</p>
<p>ATDT18666633665<span style="white-space: pre;"> </span>Login: _<span style="white-space: pre;"> </span>Connects to a test server. If you can get to a login, your modem is working correctly.</p>
<p>ATDT (atdt)<span style="white-space: pre;"> </span>Dialtone if modem speaker is enabled.<span style="white-space: pre;"> </span>Indicates that the modem can get a dial tone. The message &#8220;no dial tone&#8221; indicates that either the modem or phone line is not working correctly. Press Enter to stop this process.</p>
<p>AT&amp;F<span style="white-space: pre;"> </span>OK<span style="white-space: pre;"> </span>Resets most modems to factory defaults.</p>
<p>ATI0 (ati)<span style="white-space: pre;"> </span>56000 ok<span style="white-space: pre;"> </span>The response varies between modems, but returns the modem speed..</p>
<p>ATI3 (ati)<span style="white-space: pre;"> </span>&lt;Version and name&gt;<span style="white-space: pre;"> </span>Returns the modem product type and firmware version.</p>
<p>ATZ (atz)<span style="white-space: pre;"> </span>ok<span style="white-space: pre;"> </span>This command resets the modem.</p>
<p>ATH (ath)<span style="white-space: pre;"> </span>ok<span style="white-space: pre;"> </span> Hangs up modem</p>
<p>ATS0=2 (ats0=2)</p>
<p>Zero, not the letter O .<span style="white-space: pre;"> </span>ok<span style="white-space: pre;"> </span>This command sets the modem to receive. Call the computer&#8217;s phone number and you should hear the handshake signal. Ring, ring displays on HyperTerminal screen, followed by no carrier , when the caller hangs up.</p>
<p><map name='google_ad_map_132_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/132?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_132_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=132&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2009%2F12%2Fhyperterminal-command-line-modem-calls%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2009/12/hyperterminal-command-line-modem-calls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checkpoint fw monitor to debug and trace traffic.</title>
		<link>http://techblog.sunsetsurf.co.uk/2009/11/checkpoint-fw-monitor-to-debug-and-trace-traffic/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2009/11/checkpoint-fw-monitor-to-debug-and-trace-traffic/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 14:26:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=129</guid>
		<description><![CDATA[tcpdump is good, but for checkpoints to find out exactly what is happening to your traffic fw monitor is the way to go. its usage is as follows to live debug traffic according to your filter: # fw monitor -e &#8220;accept src=10.0.0.x;&#8221; This will output in realtime the traffic going into your firewall from ip [...]]]></description>
			<content:encoded><![CDATA[<p>tcpdump is good, but for checkpoints to find out exactly what is happening to your traffic fw monitor is the way to go.</p>
<p>its usage is as follows to live debug traffic according to your filter:</p>
<p># fw monitor -e &#8220;accept src=10.0.0.x;&#8221;</p>
<p>This will output in realtime the traffic going into your firewall from ip address 10.0.0.x</p>
<p>You will see output similar to the below:</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 29px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Lan1:i[84]: 192.168.232.12 -&gt; 172.16.100.40 (ICMP) len=84 id=0</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 29px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ICMP: type=8 code=0 echo request id=64597 seq=5025</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 29px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Lan1:I[84]: 192.168.232.12 -&gt; 172.16.100.40 (ICMP) len=84 id=0</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 29px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ICMP: type=8 code=0 echo request id=64597 seq=5025</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 29px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Lan5:o[84]: 192.168.232.12 -&gt; 172.16.100.40 (ICMP) len=84 id=0</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 29px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ICMP: type=8 code=0 echo request id=64597 seq=5025</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 29px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Lan5:O[84]: 192.168.232.12 -&gt; 172.16.100.40 (ICMP) len=84 id=0</div>
<p>Lan1:i[84]: 10.0.0.1 -&gt;192.168.0.1 (ICMP) len=84 id=0 &lt;&#8212;&#8212;&#8212;&#8211; This shows traffic coming into interface Lan1 but before rules have been processed thats the lowercase i.</p>
<p>ICMP: type=8 code=0 echo request id=64597 seq=5025</p>
<p>Lan1:I[84]: 10.0.0.1 -&gt; 192.168.0.1 (ICMP) len=84 id=0 &lt;&#8212;&#8212;&#8212; This shows traffic still on interface Lan1 but after rules have been processed hence the uppercase I, if firewalls were dropping this packet you would not see this.</p>
<p>ICMP: type=8 code=0 echo request id=64597 seq=5025</p>
<p>Lan5:o[84]: 10.0.0.1 -&gt; 192.168.0.1 (ICMP) len=84 id=0 &lt;&#8212;&#8212;&#8212;-Now we see traffic going out of the destination interface Lan5 but again before the rules have been processed &#8211; lowercase o.</p>
<p>ICMP: type=8 code=0 echo request id=64597 seq=5025</p>
<p>Lan5:O[84]: 10.0.0.1 -&gt;192.168.0.1 (ICMP) len=84 id=0 &lt;&#8212;&#8212;&#8212;-Finally we see traffic going out of the destination interface Lan 5 after successfully traversing the rules &#8211; uppercase O</p>
<p>There is a load of filters you can apply, the example above uses src, but you can also use keywords such as dst, sport, dport etc..</p>
<p>Check this doc for a full list of what you can and can&#8217;t do..</p>
<p><a href="http://www.checkpoint.com/techsupport/downloads/html/ethereal/fw_monitor_rev1_01.pdf">http://www.checkpoint.com/techsupport/downloads/html/ethereal/fw_monitor_rev1_01.pdf</a></p>
<p><map name='google_ad_map_129_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/129?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_129_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=129&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2009%2F11%2Fcheckpoint-fw-monitor-to-debug-and-trace-traffic%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2009/11/checkpoint-fw-monitor-to-debug-and-trace-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

