<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Technically Tim</title>
	
	<link>http://weirdo.bur.st</link>
	<description>For all my Technical Needs</description>
	<lastBuildDate>Tue, 22 Sep 2009 01:33:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/timsara" /><feedburner:info uri="timsara" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/</creativeCommons:license><feedburner:emailServiceId>timsara</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>JetIB Login Tool v0.4</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/xn2uPcFTZLg/</link>
		<comments>http://weirdo.bur.st/2009/09/22/jetib-login-tool-v0-4/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 01:33:27 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[jet internet billing]]></category>
		<category><![CDATA[jetib]]></category>
		<category><![CDATA[login]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=425</guid>
		<description><![CDATA[Next version of JetIB Login Tool
More changes. It now supports libnotify if installed.
Also, moved into SVN repository, guest access is below.
https://guest:guests@svn.labyrinthdata.net.au/jetiblogin/trunk/jetib.sh
]]></description>
			<content:encoded><![CDATA[<p>Next version of <a href="http://weirdo.bur.st/2009/09/08/jetib-jet-internet-billing-system-login-client-for-nix/">JetIB Login Tool</a><br />
More changes. It now supports libnotify if installed.</p>
<p>Also, moved into SVN repository, guest access is below.</p>
<p><a href="https://guest:guests@svn.labyrinthdata.net.au/jetiblogin/trunk/jetib.sh">https://guest:guests@svn.labyrinthdata.net.au/jetiblogin/trunk/jetib.sh</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=xn2uPcFTZLg:Sb2zOLkyl74:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=xn2uPcFTZLg:Sb2zOLkyl74:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=xn2uPcFTZLg:Sb2zOLkyl74:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2009/09/22/jetib-login-tool-v0-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2009/09/22/jetib-login-tool-v0-4/</feedburner:origLink></item>
		<item>
		<title>JetIB Login Tool v0.2</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/2adhixkqw6Q/</link>
		<comments>http://weirdo.bur.st/2009/09/09/jetib-login-tool-v0-2/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 01:42:35 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[jet internet billing]]></category>
		<category><![CDATA[jetib]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=414</guid>
		<description><![CDATA[Second version of JetIB script.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#!/bin/sh
#
# Jetib Login Tool (v0.2)
# 
# Author: Timothy White http://weirdo.bur.st/
# 
# This script will log you in to a jetib (Jet Internet Billing) system
#
#
# It will first attempt to load your credentials from .jetibcreds
# If this file doesn't exist, it will fall back to asking for your
# credentials first via zenity, [...]]]></description>
			<content:encoded><![CDATA[<p>Second version of <a href="/2009/09/08/jetib-jet-internet-billing-system-login-client-for-nix/">JetIB script.</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Jetib Login Tool (v0.2)</span>
<span style="color: #666666; font-style: italic;"># </span>
<span style="color: #666666; font-style: italic;"># Author: Timothy White http://weirdo.bur.st/</span>
<span style="color: #666666; font-style: italic;"># </span>
<span style="color: #666666; font-style: italic;"># This script will log you in to a jetib (Jet Internet Billing) system</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># It will first attempt to load your credentials from .jetibcreds</span>
<span style="color: #666666; font-style: italic;"># If this file doesn't exist, it will fall back to asking for your</span>
<span style="color: #666666; font-style: italic;"># credentials first via zenity, and if zenity isn't installed then via</span>
<span style="color: #666666; font-style: italic;"># normal shell input</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># curl must be installed and in your path for this tool to work</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#### Changelog</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#   0.2</span>
<span style="color: #666666; font-style: italic;">#    * Fix up string handling and screen scraping of status text</span>
<span style="color: #666666; font-style: italic;">#    * Make Ctrl-C handling look cleaner</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#   0.1 </span>
<span style="color: #666666; font-style: italic;">#    * Initial Release</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># Curtin University settings are as follows</span>
<span style="color: #666666; font-style: italic;">#DOMAIN=&quot;jetib.curtin.edu.au&quot;</span>
<span style="color: #666666; font-style: italic;">#LOGIN_PAGE=&quot;/curtin/portal/login&quot;</span>
<span style="color: #666666; font-style: italic;">#STATUS_PAGE=&quot;/curtin/portal/popup_text_refresh&quot;</span>
<span style="color: #666666; font-style: italic;">#OGOFF_PAGE=&quot;/curtin/portal/logout&quot;</span>
&nbsp;
<span style="color: #007800;">DOMAIN</span>=<span style="color: #ff0000;">&quot;jetib.curtin.edu.au&quot;</span>
<span style="color: #007800;">LOGIN_PAGE</span>=<span style="color: #ff0000;">&quot;/curtin/portal/login&quot;</span>
<span style="color: #007800;">STATUS_PAGE</span>=<span style="color: #ff0000;">&quot;/curtin/portal/popup_text_refresh&quot;</span>
<span style="color: #007800;">LOGOFF_PAGE</span>=<span style="color: #ff0000;">&quot;/curtin/portal/logout&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># .jetibcreds file in users home directory</span>
<span style="color: #666666; font-style: italic;"># containing login credentials in the format of</span>
<span style="color: #666666; font-style: italic;"># username:password</span>
<span style="color: #007800;">JETLOGIN</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/.jetibcreds&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># User agent to pretend to be (just incase they block scripts, pretend to be a browser)</span>
<span style="color: #007800;">USER_AGENT</span>=<span style="color: #ff0000;">&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Find location of curl and zenity</span>
<span style="color: #007800;">CURL</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">which</span> curl<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">ZENITY</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">which</span> zenity<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># Catch ctrl_c requests and logout and cleanup</span>
ctrl_c<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #c20cb9; font-weight: bold;">stty</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #666666; font-style: italic;"># Turn TTY echo back ON!</span>
    <span style="color: #666666; font-style: italic;"># (Maybe we caught Ctrl-c when they were supposed to be entering password)</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Logging you off...&quot;</span>
    <span style="color: #666666; font-style: italic;"># Send logoff request</span>
    curl <span style="color: #660033;">-s</span> https:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #007800;">$DOMAIN</span><span style="color: #007800;">$LOGOFF_PAGE</span> <span style="color: #660033;">-c</span> cookies.txt <span style="color: #660033;">-b</span> cookies.txt <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;&lt;p&gt;&quot;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> :a <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/&lt;[^&lt;]*&gt;/ /g;/&lt;/{N;s/\n/ /;ba;}'</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/^[ \t]*//;s/[ \t]*$//'</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;"># Clear cookies file</span>
    <span style="color: #c20cb9; font-weight: bold;">rm</span> cookies.txt
    <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
status_page<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #666666; font-style: italic;"># Get status page text</span>
    <span style="color: #007800;">status_text</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>curl <span style="color: #660033;">-s</span> https:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #007800;">$DOMAIN</span><span style="color: #007800;">$STATUS_PAGE</span> <span style="color: #660033;">-c</span> cookies.txt <span style="color: #660033;">-b</span> cookies.txt<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Process status page text</span>
    <span style="color: #007800;">remaining</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> remaining<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[0-9.]*'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">loggedinas</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;logged in as&quot;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'&lt;em&gt;.*&lt;/em&gt;'</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[0-9]*'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">quota</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> quota<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">':[^&lt;]*'</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[0-9.]*'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">thismonth</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;this month&quot;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[^&lt;]*'</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'this'</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[0-9.]*'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">thismonth</span>=<span style="color: #800000;">${thismonth#*:}</span> <span style="color: #666666; font-style: italic;"># Strip everything before :</span>
    <span style="color: #007800;">thismonth</span>=<span style="color: #800000;">${thismonth#&quot;${thismonth%%[! ]*}</span><span style="color: #ff0000;">&quot;} # Strip White Space
    thissession=<span style="color: #007800;">$(echo &quot;$status_text&quot; | grep -i &quot;this session&quot;|grep -o '[^&lt;]*'|grep 'this'|grep -o '[0-9.]*')</span>
    thissession=<span style="color: #007800;">${thissession#*:}</span> # Strip everything before :
    thissession=<span style="color: #007800;">${thissession#&quot;${thissession%%[! ]*}</span>&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #666666; font-style: italic;"># Strip White Space</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Display status page</span>
    <span style="color: #c20cb9; font-weight: bold;">clear</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Logged in as:      <span style="color: #007800;">$loggedinas</span>&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Quota Remaining:   <span style="color: #007800;">$remaining</span> MB&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Monthly Quota:     <span style="color: #007800;">$quota</span> MB&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Used this month:   <span style="color: #007800;">$thismonth</span> MB&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Used this session: <span style="color: #007800;">$thissession</span> MB&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Press Ctrl-C to disconnect&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-x</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$CURL</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$JETLOGIN</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #666666; font-style: italic;"># .jetibcreds file in users home directory</span>
        <span style="color: #666666; font-style: italic;"># containing login credentials in the format of</span>
        <span style="color: #666666; font-style: italic;"># username:password</span>
        <span style="color: #007800;">creds</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$JETLOGIN</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #007800;">USERNAME</span>=<span style="color: #800000;">${creds%%:*}</span>
        <span style="color: #007800;">PASSWORD</span>=<span style="color: #800000;">${creds#*:}</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #666666; font-style: italic;"># Credentials not saved, ask for them</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-x</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ZENITY</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
        <span style="color: #000000; font-weight: bold;">then</span>
            <span style="color: #666666; font-style: italic;"># Use Zenity to ask for credentials</span>
            <span style="color: #007800;">USERNAME</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>zenity <span style="color: #660033;">--entry</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Internet Login&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;Username&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #007800;">PASSWORD</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>zenity <span style="color: #660033;">--entry</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Internet Login&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;Password&quot;</span> --hide-text<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">else</span>
            <span style="color: #666666; font-style: italic;"># Zenity not installed, falling back to shell to ask for credentials</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Username: &quot;</span>
            <span style="color: #c20cb9; font-weight: bold;">read</span> USERNAME
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Password: &quot;</span>
            <span style="color: #666666; font-style: italic;"># trap ctrl-c and call ctrl_c()</span>
            <span style="color: #7a0874; font-weight: bold;">trap</span> ctrl_c INT 
            <span style="color: #c20cb9; font-weight: bold;">stty</span> <span style="color: #660033;">-echo</span> <span style="color: #666666; font-style: italic;"># Turn off TTY echo so password is hidden</span>
            <span style="color: #c20cb9; font-weight: bold;">read</span> PASSWORD
            <span style="color: #c20cb9; font-weight: bold;">stty</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #666666; font-style: italic;"># Turn TTY echo back ON!</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #666666; font-style: italic;"># force a carriage return to be output</span>
        <span style="color: #000000; font-weight: bold;">fi</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Submit login request to server (No error checking yet)</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Attempting to log you into the JetIB server...&quot;</span>
    curl <span style="color: #660033;">-s</span> <span style="color: #660033;">-A</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$USER_AGENT</span>&quot;</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;targeturl=''&quot;</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;submit=Logon&quot;</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;username=<span style="color: #007800;">$USERNAME</span>&quot;</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;password=<span style="color: #007800;">$PASSWORD</span>&quot;</span> <span style="color: #660033;">-c</span> cookies.txt https:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #007800;">$DOMAIN</span><span style="color: #007800;">$LOGIN_PAGE</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Verifying login...&quot;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># trap ctrl-c and call ctrl_c()</span>
    <span style="color: #7a0874; font-weight: bold;">trap</span> ctrl_c INT 
    <span style="color: #c20cb9; font-weight: bold;">stty</span> <span style="color: #660033;">-echo</span> <span style="color: #666666; font-style: italic;"># Turn off TTY echo</span>
    <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">true</span>
    <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #666666; font-style: italic;"># Loop updating status page every minute until Ctrl-C is pressed</span>
    status_page ; <span style="color: #c20cb9; font-weight: bold;">sleep</span> 1m
    <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;This Jetib login tool requires curl to be installed and in the PATH&quot;</span>;
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=2adhixkqw6Q:G_kwZUmLF2U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=2adhixkqw6Q:G_kwZUmLF2U:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=2adhixkqw6Q:G_kwZUmLF2U:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2009/09/09/jetib-login-tool-v0-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2009/09/09/jetib-login-tool-v0-2/</feedburner:origLink></item>
		<item>
		<title>Jetib (Jet Internet Billing system) Login Client for *nix</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/V4_rVKvL4aU/</link>
		<comments>http://weirdo.bur.st/2009/09/08/jetib-jet-internet-billing-system-login-client-for-nix/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 05:41:53 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[dash]]></category>
		<category><![CDATA[jet internet billing]]></category>
		<category><![CDATA[jetib]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=406</guid>
		<description><![CDATA[A simple script to login to the JetIB (Jet Internet Billing system) without using a web browser. For example, if you just want to ssh or run a backup job, or for example you are logged into a machine without a graphical browser.
Some of the organisations that may use the JetIB system are:

Curtin University (Bentley [...]]]></description>
			<content:encoded><![CDATA[<p>A simple script to login to the JetIB (Jet Internet Billing system) without using a web browser. For example, if you just want to ssh or run a backup job, or for example you are logged into a machine without a graphical browser.</p>
<p>Some of the organisations that may use the JetIB system are:</p>
<ul>
<li>Curtin University (Bentley Campus)</li>
<li>James Cook University</li>
<li> UNSW (University of New South Wales) &#8211; ADFA (Australian Defence Force Academy) (Canberra)</li>
</ul>
<p>You will need to modify the script for each location.</p>
<p>It should run on just about any Linux/Unix/BSD system that has a POSIX shell, and curl installed. It should run on a OS X Mac as well.<br />
If you have zenity installed, it'll use that to ask for your credentials, otherwise it'll just ask for them in the terminal. If your credentials are stored in a <em>.jetibcreds</em> file in your home directory it will use them instead. (Format of </em>username:password</em>)</p>
<p>Once connected, it'll loop around updating your shell display with the terminal of your session (this should also perform as a keep alive for your session), pressing ctrl-c will exit that loop and log you out, and clean up the session cookie.</p>
<p><ins datetime="2009-09-09T09:35:51+08:00">Edit: New version available at <a href="http://weirdo.bur.st/2009/09/09/jetib-login-tool-v0-2/">http://weirdo.bur.st/2009/09/09/jetib-login-tool-v0-2/</a></ins></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Jetib Login Tool (v0.1)</span>
<span style="color: #666666; font-style: italic;"># </span>
<span style="color: #666666; font-style: italic;"># Author: Timothy White http://weirdo.bur.st/</span>
<span style="color: #666666; font-style: italic;"># </span>
<span style="color: #666666; font-style: italic;"># This script will log you in to a jetib (Jet Internet Billing) system</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># It will first attempt to load your credentials from .jetibcreds</span>
<span style="color: #666666; font-style: italic;"># If this file doesn't exist, it will fall back to asking for your</span>
<span style="color: #666666; font-style: italic;"># credentials first via zenity, and if zenity isn't installed then via</span>
<span style="color: #666666; font-style: italic;"># normal shell input</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># curl must be installed and in your path for this tool to work</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Curtin University settings are as follows</span>
<span style="color: #666666; font-style: italic;">#DOMAIN=&quot;jetib.curtin.edu.au&quot;</span>
<span style="color: #666666; font-style: italic;">#LOGIN_PAGE=&quot;/curtin/portal/login&quot;</span>
<span style="color: #666666; font-style: italic;">#STATUS_PAGE=&quot;/curtin/portal/popup_text_refresh&quot;</span>
<span style="color: #666666; font-style: italic;">#OGOFF_PAGE=&quot;/curtin/portal/logout&quot;</span>
&nbsp;
<span style="color: #007800;">DOMAIN</span>=<span style="color: #ff0000;">&quot;jetib.curtin.edu.au&quot;</span>
<span style="color: #007800;">LOGIN_PAGE</span>=<span style="color: #ff0000;">&quot;/curtin/portal/login&quot;</span>
<span style="color: #007800;">STATUS_PAGE</span>=<span style="color: #ff0000;">&quot;/curtin/portal/popup_text_refresh&quot;</span>
<span style="color: #007800;">LOGOFF_PAGE</span>=<span style="color: #ff0000;">&quot;/curtin/portal/logout&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># .jetibcreds file in users home directory</span>
<span style="color: #666666; font-style: italic;"># containing login credentials in the format of</span>
<span style="color: #666666; font-style: italic;"># username:password</span>
<span style="color: #007800;">JETLOGIN</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/.jetibcreds&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># User agent to pretend to be (just incase they block scripts, pretend to be a browser)</span>
<span style="color: #007800;">USER_AGENT</span>=<span style="color: #ff0000;">&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Find location of curl and zenity</span>
<span style="color: #007800;">CURL</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">which</span> curl<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">ZENITY</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">which</span> zenity<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;"># Catch ctrl_c requests and logout and cleanup</span>
ctrl_c<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #c20cb9; font-weight: bold;">stty</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #666666; font-style: italic;"># Turn TTY echo back ON!</span>
    <span style="color: #666666; font-style: italic;"># (Maybe we caught Ctrl-c when they were supposed to be entering password)</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Logging you off...&quot;</span>
    <span style="color: #666666; font-style: italic;"># Send logoff request</span>
    curl <span style="color: #660033;">-s</span> https:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #007800;">$DOMAIN</span><span style="color: #007800;">$LOGOFF_PAGE</span> <span style="color: #660033;">-c</span> cookies.txt <span style="color: #660033;">-b</span> cookies.txt <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;&lt;p&gt;&quot;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Clear cookies file</span>
    <span style="color: #c20cb9; font-weight: bold;">rm</span> cookies.txt
    <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
status_page<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #666666; font-style: italic;"># Get status page text</span>
    <span style="color: #007800;">status_text</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>curl <span style="color: #660033;">-s</span> https:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #007800;">$DOMAIN</span><span style="color: #007800;">$STATUS_PAGE</span> <span style="color: #660033;">-c</span> cookies.txt <span style="color: #660033;">-b</span> cookies.txt<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Process status page text</span>
    <span style="color: #007800;">remaining</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> remaining<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">loggedinas</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;logged in as&quot;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'&lt;em&gt;.*&lt;/em&gt;'</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[0-9]*'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">quota</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> quota<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">':[^&lt;]*'</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">thismonth</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;this month&quot;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[^&lt;]*'</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'this'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">thissession</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$status_text</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;this session&quot;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'[^&lt;]*'</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'this'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Display status page</span>
    <span style="color: #c20cb9; font-weight: bold;">clear</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$remaining</span>&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Logged in as: <span style="color: #007800;">$loggedinas</span>&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Monthly Quota<span style="color: #007800;">$quota</span>&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$thismonth</span>&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$thissession</span>&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Press Ctrl-C to disconnect&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-x</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$CURL</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$JETLOGIN</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #666666; font-style: italic;"># .jetibcreds file in users home directory</span>
        <span style="color: #666666; font-style: italic;"># containing login credentials in the format of</span>
        <span style="color: #666666; font-style: italic;"># username:password</span>
        <span style="color: #007800;">creds</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$JETLOGIN</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #007800;">USERNAME</span>=<span style="color: #800000;">${creds%%:*}</span>
        <span style="color: #007800;">PASSWORD</span>=<span style="color: #800000;">${creds#*:}</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #666666; font-style: italic;"># Credentials not saved, ask for them</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-x</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ZENITY</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
        <span style="color: #000000; font-weight: bold;">then</span>
            <span style="color: #666666; font-style: italic;"># Use Zenity to ask for credentials</span>
            <span style="color: #007800;">USERNAME</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>zenity <span style="color: #660033;">--entry</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Internet Login&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;Username&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #007800;">PASSWORD</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>zenity <span style="color: #660033;">--entry</span> <span style="color: #660033;">--title</span>=<span style="color: #ff0000;">&quot;Internet Login&quot;</span> <span style="color: #660033;">--text</span>=<span style="color: #ff0000;">&quot;Password&quot;</span> --hide-text<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">else</span>
            <span style="color: #666666; font-style: italic;"># Zenity not installed, falling back to shell to ask for credentials</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Username: &quot;</span>
            <span style="color: #c20cb9; font-weight: bold;">read</span> USERNAME
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Password: &quot;</span>
            <span style="color: #666666; font-style: italic;"># trap ctrl-c and call ctrl_c()</span>
            <span style="color: #7a0874; font-weight: bold;">trap</span> ctrl_c INT 
            <span style="color: #c20cb9; font-weight: bold;">stty</span> <span style="color: #660033;">-echo</span> <span style="color: #666666; font-style: italic;"># Turn off TTY echo so password is hidden</span>
            <span style="color: #c20cb9; font-weight: bold;">read</span> PASSWORD
            <span style="color: #c20cb9; font-weight: bold;">stty</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #666666; font-style: italic;"># Turn TTY echo back ON!</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #666666; font-style: italic;"># force a carriage return to be output</span>
        <span style="color: #000000; font-weight: bold;">fi</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Submit login request to server (No error checking yet)</span>
    curl <span style="color: #660033;">-s</span> <span style="color: #660033;">-A</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$USER_AGENT</span>&quot;</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;targeturl=''&quot;</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;submit=Logon&quot;</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;username=<span style="color: #007800;">$USERNAME</span>&quot;</span> <span style="color: #660033;">-F</span> <span style="color: #ff0000;">&quot;password=<span style="color: #007800;">$PASSWORD</span>&quot;</span> <span style="color: #660033;">-c</span> cookies.txt https:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #007800;">$DOMAIN</span><span style="color: #007800;">$LOGIN_PAGE</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
&nbsp;
    <span style="color: #666666; font-style: italic;"># trap ctrl-c and call ctrl_c()</span>
    <span style="color: #7a0874; font-weight: bold;">trap</span> ctrl_c INT 
    <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">true</span>
    <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #666666; font-style: italic;"># Loop updating status page every minute until Ctrl-C is pressed</span>
    status_page ; <span style="color: #c20cb9; font-weight: bold;">sleep</span> 1m
    <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;This Jetib login tool requires curl to be installed and in the PATH&quot;</span>;
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=V4_rVKvL4aU:oek-NUV5fIw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=V4_rVKvL4aU:oek-NUV5fIw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=V4_rVKvL4aU:oek-NUV5fIw:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2009/09/08/jetib-jet-internet-billing-system-login-client-for-nix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2009/09/08/jetib-jet-internet-billing-system-login-client-for-nix/</feedburner:origLink></item>
		<item>
		<title>Convert HT8200 into HT8000</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/wM3qofuh6K4/</link>
		<comments>http://weirdo.bur.st/2009/08/09/convert-ht8200-into-ht8000/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 16:19:38 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[Firmware]]></category>
		<category><![CDATA[Freeview]]></category>
		<category><![CDATA[Homecast]]></category>
		<category><![CDATA[HT8000]]></category>
		<category><![CDATA[HT8200]]></category>
		<category><![CDATA[PVR]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=398</guid>
		<description><![CDATA[For any of you unlucky buyers out their that have purchased an HT8200 thinking that it was an HT8000, or that it would actually let you take your recorded files off that device and skip adds, here is how you can make it work.
The Homecast HT8000 and HT8200 are essentially identical devices, with the difference [...]]]></description>
			<content:encoded><![CDATA[<p>For any of you unlucky buyers out their that have purchased an HT8200 thinking that it was an HT8000, or that it would actually let you take your recorded files off that device and skip adds, here is how you can make it work.</p>
<p>The Homecast HT8000 and HT8200 are essentially identical devices, with the difference of a "Freeview" (or a, we'll restrict your view) sticker and some slightly different hardware. Thankfully, you can convert the HT8200 back into a HT8000 with a firmware "update". The rest of what appears below isn't my work, and is easily found at <a title="Loading HT8000 firmware onto a HT8200" href="http://members.optusnet.com.au/nis200sx/">http://members.optusnet.com.au/nis200sx/</a> and remains the work of that person. I am placing a copy of it here, not to try and take credit from him, but rather to preserve the information (and methods) in the event that it is removed for some reason. I may also attempt to expand on his Method 2 and 3 at a later stage.</p>
<p>Oh, and before you try, the .TP0 files you have recorded on the HT8200 are useless unless you watch them on the HT8200 (with the freeview sucky firmware).</p>
<blockquote>
<h1>Loading HT8000 Firmware onto a HT8200</h1>
<hr />Question:</p>
<ul>
<li>Why would anyone want to load HT8000 firmware (software) onto their          HT8200 PVR?</li>
</ul>
<p>Answer:</p>
<ul>
<li>
<p align="left">The benefits are easier file navigation (30sec and          percentage jump buttons work)</p>
</li>
<li>
<p align="left">Plus the recordings are not encrypted (and the USB type          B port works for transferring to/from a Windows PC) so they can be          played on a PC and converted to DVDs etc.</p>
</li>
</ul>
<p>Question:</p>
<ul>
<li>What am I losing by doing this?</li>
</ul>
<p>Answer:</p>
<ul>
<li>
<p align="left">The downside is that any recordings already done with          HT8200 firmware will no longer be playable.</p>
</li>
</ul>
<p>Question:</p>
<ul>
<li>How do I do it?</li>
</ul>
<p>Answer:</p>
<ul>
<li>
<p align="left">There are 3 ways to get a HT8200 to accept HT8000          firmware. Below I will outline the 3 methods, from easiest to hardest.          Note: The hardest method is the best method (I'll explain why below).</p>
</li>
</ul>
<p align="left">
<h3>Method 1 &#8211; Easiest</h3>
<p align="left">Download a copy of the HT8000 firmware that has already        had the Model ID number changed to match the HT8200.</p>
<p align="left">The benefit of this method is that it is extremely easy        and you do not need any special skills or understanding of what's being        done. The downside is that you are reliant on me, or someone else,        providing you access to a suitable firmware file any time Homecast release        a newer version (assuming you want to keep the firmware up to date).</p>
<p align="left">This firmware file will load on a HT8200 and turn it into        a HT8000: <a href="http://members.optusnet.com.au/nis200sx/8200-to-8000-1048.zip">Download        8200-to-8000-1048.zip</a> <a href="/blog/wp-content/uploads/2009/8200-to-8000-1048.zip">(Mirror Download 8200-to-8000-1048.zip)</a> Well, it will still say that it is a        HT8200, with SW version 1.00.9A, but it will actually be running HT8000 SW        version 1.04.8A.</p>
<p align="left">After updating to this file you can still update to a        normal HT8200 firmware file in future (the PVR still thinks it's a        HT8200). If you want to update to a newer HT8000 version (when the next        one is released) you will need download the latest 8200-to-8000 zip file        from this web-site. Each time a new HT8000 version is released I will try        to put a new 8200-to-8000 file online.</p>
<p align="left">
<h3>Method 2 &#8211; Medium <span style="font-weight: 400;"> <span style="color: #ff0000;">(not finished)</span></span></h3>
<p align="left">Download a copy of the HT8000 firmware and use a hex        editor to change the Model ID number yourself.</p>
<p align="left">The benefit of this method is that you are not reliant on        anyone else doing the editing for you, so it is easier to keep the        firmware up to date.</p>
<p align="left"><span style="color: #ff0000;">I will update this page soon to        explain how&#8230;</span></p>
<p align="left">
<h3>Method 3 &#8211; Harder <span style="font-weight: 400;"> <span style="color: #ff0000;">(not finished)</span></span></h3>
<p align="left">Download a copy of softwareclean.bin and upload it to your        HT8200 using Homecast's Upgrade application and a null-modem serial cable.</p>
<p align="left">The benefit of this method is that it only needs be done        once. After loading softwareclean.bin your HT8200 won't know what it is        until you then load some firmware onto it. At this point you can load ANY        firmware onto &#8211; Be CAREFUL!!! After loading a regular, unedited, HT8000        firmware onto your HT8200 from then on it will think that it is a HT8000,        so when HT8000 updates are released in future you can just update using        the regular HT8000 firmware from the Homecast website.</p>
<p align="left"><span style="color: #ff0000;">I will update this page soon to        explain how&#8230;</span></p>
</blockquote>
<p><a href="/blog/wp-content/uploads/2009/Softwareclean.bin">(Mirror Download SoftwareClean.bin)</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=wM3qofuh6K4:AOniy86UvL0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=wM3qofuh6K4:AOniy86UvL0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=wM3qofuh6K4:AOniy86UvL0:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2009/08/09/convert-ht8200-into-ht8000/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2009/08/09/convert-ht8200-into-ht8000/</feedburner:origLink></item>
		<item>
		<title>ASUS P5KPL-AM-PS Won’t Power On</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/EfPZWbu3moo/</link>
		<comments>http://weirdo.bur.st/2009/07/06/asus-p5kpl-wont-power-on/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 00:48:07 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[ASUS]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[motherboard]]></category>
		<category><![CDATA[P5KPL]]></category>
		<category><![CDATA[P5KPL-AM-PS]]></category>
		<category><![CDATA[power]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=394</guid>
		<description><![CDATA[I recently built a computer for a client using the ASUS P5KPL motherboard. Strange issue, the motherboard LED was on, but I couldn't get it to power on! Until I found the following site, and read the last post.
http://www.computerforum.com/150870-asus-mobo-p5kpl-am-ps-issue-problem.html
I rechecked the power, reset, and led connectors against the screen print on the mainboard and all [...]]]></description>
			<content:encoded><![CDATA[<p>I recently built a computer for a client using the ASUS P5KPL motherboard. Strange issue, the motherboard LED was on, but I couldn't get it to power on! Until I found the following site, and read the last post.</p>
<p><a href="http://www.computerforum.com/150870-asus-mobo-p5kpl-am-ps-issue-problem.html">http://www.computerforum.com/150870-asus-mobo-p5kpl-am-ps-issue-problem.html</a></p>
<blockquote><p>I rechecked the power, reset, and led connectors against the screen print on the mainboard and all looked correct, but then I noticed it also says USB56 next to that set of connectors.</p>
<p>The printing on the mainboard is very misleading, the connection diagram for hdd, power and reset is right next to a similarly pinned USB connector. Make sure you are using the connectors labelled F_PANEL not the USB56 connector.</p></blockquote>
<p>I went back to the motherboard, and webber75 was correct! The labelling for the Front panel connectors, is UNDER the USB connection! Quickly fixed, and we had power again!! Unfortunately, the motherboard is still playing up, so it's still not 100%, but for anyone else having problems getting an ASUS P5KPL motherboard to boot or power on, check which connections  you have plugged the front panel wires into!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=EfPZWbu3moo:Sw9pttVvSSM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=EfPZWbu3moo:Sw9pttVvSSM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=EfPZWbu3moo:Sw9pttVvSSM:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2009/07/06/asus-p5kpl-wont-power-on/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2009/07/06/asus-p5kpl-wont-power-on/</feedburner:origLink></item>
		<item>
		<title>Grase – Hotspot Solution</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/l9RRHH4O8y4/</link>
		<comments>http://weirdo.bur.st/2009/05/11/grase-hotspot-solution/#comments</comments>
		<pubDate>Mon, 11 May 2009 05:10:56 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[coova]]></category>
		<category><![CDATA[coovachilli]]></category>
		<category><![CDATA[dansguardian]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[Grase]]></category>
		<category><![CDATA[Hotspot]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[monit]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[radius]]></category>
		<category><![CDATA[radmin]]></category>
		<category><![CDATA[smarty]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=389</guid>
		<description><![CDATA[If you are wondering where all the Sara and Tim blogs are, we have our own blog at http://purewhite.id.au/ so please check it out there.  This blog is just for the technical stuff now!
Grase
Introducing Grase!
It's pronounced the same as Grace, so please don't pronounce it like grass!
So what is Grase? Grase is a complete Hotspot/Internet [...]]]></description>
			<content:encoded><![CDATA[<p>If you are wondering where all the Sara and Tim blogs are, we have our own blog at <a href="http://purewhite.id.au/">http://purewhite.id.au/</a> so please check it out there.  This blog is just for the technical stuff now!</p>
<h2>Grase</h2>
<h3>Introducing Grase!</h3>
<p>It's pronounced the same as Grace, so please don't pronounce it like grass!</p>
<p>So what is Grase? Grase is a complete Hotspot/Internet Gateway Solution. It incorporates a server hosting a captive portal (which "captures" a users attempts to access the internet before being authenticated and redirects them to the authentication page), traffic/data accounting software, user management interface, a caching and filtering proxy.</p>
<p>Or simply, a combination of LAMP (Linux, Apache, MySQL, PHP), Squid, Dansguardian, CoovaChilli, FreeRadius, Monit, OpenVPN, and a custom interface to managing users and the system.</p>
<p>The project relies heavily on other projects, the main features are the integration of the other projects and the custom interface to it all. The administration interface was the first part of the project, and consists of user management, session monitoring, and system settings. More details of the interface to come later, along with a project page with information.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=l9RRHH4O8y4:w7Jv2R5U-YQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=l9RRHH4O8y4:w7Jv2R5U-YQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=l9RRHH4O8y4:w7Jv2R5U-YQ:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2009/05/11/grase-hotspot-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2009/05/11/grase-hotspot-solution/</feedburner:origLink></item>
		<item>
		<title>Transparent (Proxy) Avast Mirror</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/Bw83EyIVs10/</link>
		<comments>http://weirdo.bur.st/2009/02/01/transparent-proxy-avast-mirror/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 13:05:07 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[New Technology's]]></category>
		<category><![CDATA[ADNM]]></category>
		<category><![CDATA[Antivirus]]></category>
		<category><![CDATA[Avast]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Distributed Network Manager]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mirror]]></category>
		<category><![CDATA[mirror.zip]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[Redirector]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[Src]]></category>
		<category><![CDATA[Transparent]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=380</guid>
		<description><![CDATA[Recently I was confronted with the situation of many users Avast Antivirus installations updating from the internet, and downloading many MB's of files on a limited internet connection. Also, due to the speed of the connection, and the fact that they are going through a captival portal, the downloads take considerable time, and are counted [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was confronted with the situation of many users Avast Antivirus installations updating from the internet, and downloading many MB's of files on a limited internet connection. Also, due to the speed of the connection, and the fact that they are going through a captival portal, the downloads take considerable time, and are counted towards their download quota. Due to a limitation in the captive portal, I can't change it so that the Avast downloads aren't counted in their download limit, but if they don't login to the portal, then the download won't count towards their quota.</p>
<p>So part of the solution was going to be to make the downloads happen quicker. It was already going through a Squid proxy, which should have made this happen, but it still meant the downloads would be slow the first time, so one user would be charged for the downloads, and not subsequent users. And due to the fact that it load balances the servers, the chances of all users hitting the same avast download server is next to nothing. My searches on the net lead me to <a title="Avast Mirror Creation Software" href="http://files.avast.com/files/eng/mirror.zip">http://files.avast.com/files/eng/mirror.zip</a> which is an application from the <a title="ADNM" href="http://www.avast.com/eng/adnm.html">Avast Distributed Network Manager</a> that sets up a central server for managing avast in a corporate setting. After playing around with the mirror.exe file that generates a mirror, and discovering that adding "restrict_products=av_pro" to the mirror.ini file, I could limit the mirror generation to just the normal avast files for program and virus definition updates.</p>
<p>So now I had an Avast mirror, I now needed to do 2 things, find a way to generate an avast mirror, and update it without using the windows only, mirror.exe program, and find a way to make Avast clients update from the mirror, and not the internet.</p>
<p>The first problem was solved with a bit of poking around in the files downloaded by mirror.exe, and discovering that it checks a couple of "stamp" files on the server, if the stamp files are new, it downloads the file it is a stamp for, in particular, mirror.def, which contains a complete list of all the files needed for a mirror, with the MD5 sum of the file, and filesize, as well as the "products" that utilise the file. This file makes it easy to generate a mirror!! Below is the script that generates a mirror. There are a few things it doesn't do that mirror.exe does. It doesn't generate the 400.vps files, which Linux clients use to update from (all other clients should use the partial update files to save downloading 20Mb+ every time). It also doesn't generate a new mirror.def file that only contains the files that <em>this partial</em> contains, instead it uses the same mirror.def file that it used to generate the mirror from the master servers. It also doesn't modify the servers.def file. The main reason for this is that these files are signed, and we don't yet know how to sign them ourselves, so the clients would reject any modifications. Also, unless someone who will be behind the proxy, and thus using your mirror, attempts to create their own more complete mirror, mirror.def being wrong doesn't matter. Also, changing the servers.def file to point to your mirror as mirror.exe does, would prevent users from later updating Avast on another network that doesn't contain your mirror.</p>
<p>The next part of the solution is how to redirect requests for Avast updates to your mirror, without Avast knowing it isn't getting it's updates from the real servers, so that no modifications to Avast are needed.<br />
So this part actually worked out a lot easier than initially thought. All users currently go through a Squid proxy, transparently, due to filtering and the obvious benefit of caching on a limited internet connection. I thought that with Avast attempting it's updates from a variety of servers throughout the world, and with both IP and domain name attempts (it alternates between the 2 so that DNS outages, or DNS hijacks, can't prevent it from updating), it would be difficult to write a generic filter to redirect them. Then I realised that every request from avast, was to a directory, <em>iavs4x</em>. Suddenly I didn't need to worry about which server it was attempting to connect to, just the directory. So I wrote a Squid Redirector that rewrites any request that is to the directory, <em>iavs4x</em>, to go to the server that hosts the mirror. You <em>can</em> setup ACL's so that not every URL goes through the redirector, but as I already use a redirector for adzapping, I didn't pursue this option. The script is below, change the <em>server</em> variable to reflect your mirror server.</p>
<h3>avast_mirror.sh</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#### Avast Mirror</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Files that should be in mirror but won't be</span>
<span style="color: #666666; font-style: italic;"># 400.vps 400.vps.md5</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Extra files we need that aren't in mirror.def</span>
<span style="color: #666666; font-style: italic;"># jollyroger.vpu.stamp jollyroger.vpu servers.def servers.def.stamp servers.def.vpu.stamp servers.def.lkg  servers.def.vpu</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># BASEURL (Select a random from mirrors file? with fallback, currently just default)</span>
<span style="color: #007800;">BASEURL</span>=<span style="color: #ff0000;">&quot;http://files.avast.com/iavs4x/&quot;</span>
<span style="color: #007800;">mirror_def</span>=mirror.def
<span style="color: #007800;">BASEDIR</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>mirror
<span style="color: #007800;">TMP_URL_LIST</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>mirror_files
&nbsp;
<span style="color: #666666; font-style: italic;"># Filter for mirror.def</span>
<span style="color: #007800;">restrict_products</span>=<span style="color: #ff0000;">'av_pro'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Set DEBUG to anything other than '' to get debugging info</span>
<span style="color: #007800;">DEBUG</span>=<span style="color: #ff0000;">''</span>
&nbsp;
&nbsp;
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$BASEDIR</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Files updated from stamp files</span>
<span style="color: #000000; font-weight: bold;">function</span> stamp_update <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">file</span></span>=$<span style="color: #000000;">1</span>
	<span style="color: #007800;">stampfile</span>=$1.stamp
	<span style="color: #007800;">old_stamp</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$stampfile</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #007800;">file_stamp</span>=<span style="color: #007800;">$file_stamp</span>.new
	<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-O</span> <span style="color: #007800;">$file_stamp</span> <span style="color: #007800;">$BASEURL</span><span style="color: #007800;">$stampfile</span>
	<span style="color: #007800;">new_stamp</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$file_stamp</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #ff0000;">&quot;x<span style="color: #007800;">$old_stamp</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;x<span style="color: #007800;">$new_stamp</span>&quot;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$file</span> out of date.&quot;</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Updating...&quot;</span>
		<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #007800;">$file_stamp</span> <span style="color: #007800;">$stampfile</span>
		<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$file</span> <span style="color: #007800;">$file</span>.old
		<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-nv</span> <span style="color: #007800;">$BASEURL</span><span style="color: #007800;">$file</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$file</span> updated&quot;</span>
	<span style="color: #000000; font-weight: bold;">else</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DEBUG</span>&quot;</span> ; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$file</span> up to date.&quot;</span>;<span style="color: #000000; font-weight: bold;">fi</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
stamp_update mirror.def
stamp_update jollyroger.vpu
stamp_update servers.def
stamp_update servers.def.vpu
&nbsp;
<span style="color: #666666; font-style: italic;"># Read in mirror.def, check all files and add out of date ones to queue</span>
	<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$TMP_URL_LIST</span>
	<span style="color: #666666; font-style: italic;"># Add &quot;extra&quot; files that are always downloaded here</span>
	<span style="color: #666666; font-style: italic;">#echo  $BASEURL&quot;servers.def.lkg&quot; &gt; $TMP_URL_LIST</span>
	<span style="color: #007800;">filelist</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$mirror_def</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$restrict_products</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-d</span> =<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">1</span>-<span style="color: #000000;">3</span> <span style="color: #660033;">-d</span> ,<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$filelist</span>
	<span style="color: #000000; font-weight: bold;">do</span>
		<span style="color: #007800;">info</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$file</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #660033;">-s</span> <span style="color: #ff0000;">','</span> <span style="color: #ff0000;">' '</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
		<span style="color: #007800;">filename</span>=<span style="color: #800000;">${info[0]}</span>
		<span style="color: #007800;">filesize</span>=<span style="color: #800000;">${info[1]}</span>
		<span style="color: #007800;">filemd5</span>=<span style="color: #800000;">${info[2]}</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$filename</span>
			<span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DEBUG</span>&quot;</span> ; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span>;<span style="color: #000000; font-weight: bold;">fi</span>
			<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Adding new <span style="color: #007800;">$filename</span> to download queue&quot;</span>
			<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$BASEURL</span><span style="color: #007800;">$filename</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$TMP_URL_LIST</span>
			<span style="color: #7a0874; font-weight: bold;">continue</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
		<span style="color: #007800;">curfilesize</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">stat</span> -c<span style="color: #000000; font-weight: bold;">%</span>s <span style="color: #ff0000;">&quot;<span style="color: #007800;">$filename</span>&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #ff0000;">&quot;0<span style="color: #007800;">$curfilesize</span>&quot;</span> <span style="color: #660033;">-lt</span> <span style="color: #ff0000;">&quot;0<span style="color: #007800;">$filesize</span>&quot;</span> 
			<span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DEBUG</span>&quot;</span> ; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span>;<span style="color: #000000; font-weight: bold;">fi</span>
			<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Adding incomplete <span style="color: #007800;">$filename</span> to download queue&quot;</span>
			<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$BASEURL</span><span style="color: #007800;">$filename</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$TMP_URL_LIST</span>
			<span style="color: #7a0874; font-weight: bold;">continue</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
		<span style="color: #007800;">curfilemd5</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>md5sum <span style="color: #ff0000;">&quot;<span style="color: #007800;">$filename</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">' '</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>:lower:<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>:upper:<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #ff0000;">&quot;x<span style="color: #007800;">$filemd5</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;x<span style="color: #007800;">$curfilemd5</span>&quot;</span>
			<span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$filename</span> <span style="color: #007800;">$filename</span>.old
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DEBUG</span>&quot;</span> ; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span>;<span style="color: #000000; font-weight: bold;">fi</span>
			<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Adding corrupt <span style="color: #007800;">$filename</span> to download queue&quot;</span>
			<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$BASEURL</span><span style="color: #007800;">$filename</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$TMP_URL_LIST</span>
			<span style="color: #7a0874; font-weight: bold;">continue</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DEBUG</span>&quot;</span> ; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;.&quot;</span>;<span style="color: #000000; font-weight: bold;">fi</span>
		<span style="color: #666666; font-style: italic;">#echo &quot;$filename already downloaded and complete&quot;		</span>
	<span style="color: #000000; font-weight: bold;">done</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DEBUG</span>&quot;</span> ; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span>;<span style="color: #000000; font-weight: bold;">fi</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-s</span> <span style="color: #007800;">$TMP_URL_LIST</span>
		<span style="color: #000000; font-weight: bold;">then</span>		
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Downloading out of date mirror files&quot;</span>
		<span style="color: #666666; font-style: italic;">#Download files</span>
		<span style="color: #666666; font-style: italic;"># --no-dns-cache means it'll load balance randomly accross different servers for each file</span>
		<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">-nv</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">--no-dns-cache</span> <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>mirror_files <span style="color: #660033;">--progress</span>=dot <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">tee</span> <span style="color: #660033;">-a</span> mirror.log
	<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<h3>avast_redirect.pl</h3>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #0000ff;">$|</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$server</span><span style="color: #339933;">=</span><span style="color: #ff0000;">'10.1.0.1'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #0000ff;">@X</span> <span style="color: #339933;">=</span> <span style="color: #000066;">split</span><span style="color: #339933;">;</span>
    <span style="color: #0000ff;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$X</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$url</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">/^http:\/\/[^\/]*\/iavs4x\//</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #0000ff;">$url</span> <span style="color: #339933;">!~</span> <span style="color: #009966; font-style: italic;">m/$server/o</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #0000ff;">$url</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/^http:\/\/[^\/]*\/iavs4x\//http:\/\/$server\/iavs4x\//o</span><span style="color: #339933;">;</span>
        <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;$url<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=Bw83EyIVs10:W0VQWcad5hU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=Bw83EyIVs10:W0VQWcad5hU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=Bw83EyIVs10:W0VQWcad5hU:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2009/02/01/transparent-proxy-avast-mirror/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2009/02/01/transparent-proxy-avast-mirror/</feedburner:origLink></item>
		<item>
		<title>Storms and Flooding</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/2nNBvNhfuKg/</link>
		<comments>http://weirdo.bur.st/2008/11/20/storms-and-flooding/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 23:06:10 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[MtBinga storm flood qld]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=365</guid>
		<description><![CDATA[So as most of you would be aware, we have some serious storms over here in SE QLD. I know a lot of damage from last night was in ipswich out towards gatton, close to where Sara lives. Sara and her family are ok.
Last night Jonny and i had the boys out on survival, but [...]]]></description>
			<content:encoded><![CDATA[<p>So as most of you would be aware, we have some serious storms over here in SE QLD. I know a lot of damage from last night was in ipswich out towards gatton, close to where Sara lives. Sara and her family are ok.<br />
Last night Jonny and i had the boys out on survival, but due to the weather, we've had them camping in emu creek hall. We had an amazing lightning display before bed, and not too long after people started falling asleep, the loudest bang we've ever heard, with the whole building shaking. Presumably a very close lightning strike. After a night of very heavy rain, we've packed up and cleaned up ready to return to Mt Binga. At 8:30 we attempted to do call in to check pickup time, and discovered the phones at base not working properly. We'd already discovered the nextg network isn't working this morning. Attempting to raise base on the UHF radio got through to Steve in the ute, attempting to get out to the hall. Turns out a number of creeks are flowing very fast and flooding the roads. So currently we are sitting at the hall waiting to be picked up when steve finally finds a way through. ETA is probably lunch time.<br />
So to recap, we are safe and unhurt. Thanks for keeping us in your prayers. Keep praying for everyone over here, it's been a pretty wild storm.<br />
God bless<br />
Tim</p>
<p>p.s. Sara and i have registered our domain and will soon be launching our site. It'll be a website, photos and blog, so this blog will go back to being a technical blog. We'll let you know more details when it happens, and if you are subscribed to the emails, we'll unsubscribe you from here and start a new subscription on the new blog.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=2nNBvNhfuKg:0yfpQred0Kc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=2nNBvNhfuKg:0yfpQred0Kc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=2nNBvNhfuKg:0yfpQred0Kc:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/11/20/storms-and-flooding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/11/20/storms-and-flooding/</feedburner:origLink></item>
		<item>
		<title>We’re Engaged!!!! – 29th October 2008</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/zL__RHKA6Q0/</link>
		<comments>http://weirdo.bur.st/2008/10/30/were-engaged-29th-october-2008/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 20:08:46 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Anniversary]]></category>
		<category><![CDATA[Engaged]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[Officia]]></category>
		<category><![CDATA[Sara]]></category>
		<category><![CDATA[Tim]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=360</guid>
		<description><![CDATA[Ok, so in everything that's been going on recently, I kinda forgot a few things. Like calling some of my lovely relatives, and posting about it. It still seems like yesterday, not monday!
If you haven't heard, and facebook hasn't told you, it's official. Sara and I are engaged!!
We'll let you know more details later!
God Bless
Tim
]]></description>
			<content:encoded><![CDATA[<p>Ok, so in everything that's been going on recently, I kinda forgot a few things. Like calling some of my lovely relatives, and posting about it. It still seems like yesterday, not monday!</p>
<p>If you haven't heard, and facebook hasn't told you, it's official. Sara and I are engaged!!</p>
<p>We'll let you know more details later!</p>
<p>God Bless</p>
<p>Tim</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=zL__RHKA6Q0:-Agbh1kvg0E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=zL__RHKA6Q0:-Agbh1kvg0E:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=zL__RHKA6Q0:-Agbh1kvg0E:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/10/30/were-engaged-29th-october-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/10/30/were-engaged-29th-october-2008/</feedburner:origLink></item>
		<item>
		<title>Isaac Adam Attfield – 23rd September 2008</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/_rxGPIRWMq4/</link>
		<comments>http://weirdo.bur.st/2008/10/01/isaac-adam-attfield-23rd-september-2008/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 10:52:57 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Attfield]]></category>
		<category><![CDATA[Baby]]></category>
		<category><![CDATA[Birth]]></category>
		<category><![CDATA[Birthday]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[Isaac]]></category>
		<category><![CDATA[Isaac Attfied]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=349</guid>
		<description><![CDATA[Born 6:47pm, 23rd September 2008
6 pounds 11 oz.
Our handsome new nephew. Welcome to the World!
Congratulations Sarah and Martin. Look after your baby brother Emily!
]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 385px"><img title="Isaac Adam Attfield" src="http://farm4.static.flickr.com/3252/2884836838_98090707f0.jpg" alt="Isaac Adam Attfield" width="375" height="500" /><p class="wp-caption-text">Isaac Adam Attfield</p></div>
<p>Born 6:47pm, 23rd September 2008<br />
6 pounds 11 oz.</p>
<p>Our handsome new nephew. Welcome to the World!</p>
<p>Congratulations Sarah and Martin. Look after your baby brother Emily!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=_rxGPIRWMq4:atzJY-93oak:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=_rxGPIRWMq4:atzJY-93oak:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=_rxGPIRWMq4:atzJY-93oak:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/10/01/isaac-adam-attfield-23rd-september-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/10/01/isaac-adam-attfield-23rd-september-2008/</feedburner:origLink></item>
		<item>
		<title>Online SMS API</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/Qx7vgHsy3oU/</link>
		<comments>http://weirdo.bur.st/2008/09/23/online-sms-api/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 10:06:01 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Roaming]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[SMS API]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=343</guid>
		<description><![CDATA[I was presented with a problem the other day, regarding SMS's. While Sara is overseas, her pre-paid mobile phone is on international roaming. While this means she can receive sms's like normal, at no extra charge to the sender or her, it means that for her to send an SMS, it costs 65c. Now 65c [...]]]></description>
			<content:encoded><![CDATA[<p>I was presented with a problem the other day, regarding SMS's. While Sara is overseas, her pre-paid mobile phone is on international roaming. While this means she can receive sms's like normal, at no extra charge to the sender or her, it means that for her to send an SMS, it costs 65c. Now 65c per message starts adding up really quickly, especially if it's a long message (so concatenated sms). And when your normal rate is 25c to anyone on another network, or cheaper to anyone on your network, it seems rather costly. But on the plus side, her mobile data packs costs the same as in Australia.<br />
So naturally my brain started to think about ways to reduce her messaging cost, and the answer was simple, use the internet on her phone. I had heard that this mobile provider had a computer program for sending messages as if they had come from your mobile, at your normal cost. So what if I can rig it up, so she can write a message, and using this program, send the message and get it for the cheaper rate.</p>
<p>Well it works, but unfortunately the program is windows only, and it means you need a computer. That's no good for normal messaging. So what did I do? What any geek in my position would do naturally.  I observed. Quite simply, I observed what the program did. Of course, I didn't just look at the screen while using the program, I also looked at what it did behind the scenes, in particular on the network (internet). As it uses SSL (HTTPS) it wasn't the easiest thing to observe, but my perseverance paid off, and soon I had a transcript of the program talking to the server. Thankfully it was a rather simple conversation, using XML, and no fancy hand shakes. A single XML POST request would authenticate the user, and send a message, with a simple XML reply. So I didn't have to worry about doing an authentication, keeping a cookie, or a fancy hash or something, and then working more fancy magic to send a message. A simple template XML request, fill in the blanks, and submit, and the server would send the message and give back an XML reply saying that the message was sent. A very simple API. And I didn't have to reverse engineer anything to work it out.</p>
<p>Of course, the next step was to write a simple program that could be used on the phone to send a message via the API.  The most basic of programs can be written in about 5 lines in PHP, but of course I needed it to be easy to use, with some security, so I've gone a little beyond the most basic. I present a simple form, a drop down to select the number to send to (to keep it secure, so that only predefined numbers can be sent to), a box to type the message, an input field for a security password, and a submit button. Of course, then below when you hit submit, it gives you feed back with the message length, it lets you know that it's trying to connect to the API server, when it's connected it sends it, and lets you know the results. Probably more feedback than is needed, but what the heck, it's not for public use.</p>
<p>Now for anyone else wanting to do something similar, I'll help you along a little, by providing some of the required components, namely the XML templates. You'll have to work out how to use them, write your own software to use them, and also what the server is. Oh, and what the phone company is. I'm not going to risk some phone company getting upset at me, so nothing I provide will apply specifically to some phone company. It could be any one of them. If you work out the phone company, and contact me through the contact page, I'm probably more than willing to assist you in filling in the blanks, to save you some trouble. Or letting you know a way to fill them in yourself.</p>
<p>The POST request with xml template. You can see all the variables that need to be filled in. You may also be able to omit some things and simplify it. I did do some tests and you can simpify it a lot. A word of note, $userid is not your phone number, when you register for the service, there is an internet ID associated with your number, which you use for logging in. Discovering that is another thing I'll leave up to you. $messagetype is ether "text" or "text/concatenated" if the message is longer than 160 chars, otherwise it'll be cut off. There is a total message length limit for concatenated messages, of about 450 letters. You'll also have to work out the page it submits to, the useragent (which may not be needed), and the host it submits it all to.</p>
<blockquote>
<pre>POST /OAK/$page HTTP/1.0
User-Agent: $useragent
Cache-Control: no-cache
Content-Length: $length

&lt;sms&gt;&lt;authentication user="$userid" password="$userpassword" client_app="$appname"&gt;&lt;product name="$appname"/&gt;
&lt;/authentication&gt;&lt;message from="$usernumber" type="$messagetype" responseDetail="3" action="send"&gt;&lt;content&gt;
&lt;![CDATA[$message]]&gt;&lt;/content&gt;&lt;message to="$number"/&gt;&lt;/message&gt;&lt;/sms&gt;</pre>
</blockquote>
<p>A XML reply when the message is sucessfully sent looks like this.</p>
<blockquote>
<pre>HTTP/1.0 200 OK
Content-Type: text/xml
Content-Length: 167

&lt;sms&gt;
&lt;authentication&gt;
&lt;product&gt;&lt;/product&gt;
&lt;/authentication&gt;
&lt;message ref="1" status="0"&gt;
&lt;content&gt;&lt;/content&gt;
&lt;message ref="2" status="0"&gt;&lt;/message&gt;
&lt;/message&gt;
&lt;/sms&gt;</pre>
</blockquote>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=Qx7vgHsy3oU:uws3uaiFvuc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=Qx7vgHsy3oU:uws3uaiFvuc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=Qx7vgHsy3oU:uws3uaiFvuc:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/09/23/online-sms-api/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/09/23/online-sms-api/</feedburner:origLink></item>
		<item>
		<title>My Little Sister – 29th August 2008</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/BBIX8qsqt0M/</link>
		<comments>http://weirdo.bur.st/2008/08/31/my-little-sister-29th-august-2008/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 00:12:23 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[adam]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[Death]]></category>
		<category><![CDATA[Died]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[riverton]]></category>
		<category><![CDATA[Rosy]]></category>
		<category><![CDATA[Sister]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=335</guid>
		<description><![CDATA[I have few words atm, as I come to grips with the loss of my baby sister. Sara and I have flown to Perth to be here with my family, and the other families. Please keep us all in your prayers, and especially the 2 in hospital still, Adam being one of them, Rosy's boyfriend.
I [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_336" class="wp-caption aligncenter" style="width: 510px"><a href="http://weirdo.bur.st/blog/wp-content/uploads/2008/08/rosy_adam.jpg"><img class="size-full wp-image-336" title="Adam and Rosy" src="http://weirdo.bur.st/blog/wp-content/uploads/2008/08/rosy_adam.jpg" alt="Adam and Rosy" width="500" height="334" /></a><p class="wp-caption-text">Adam and Rosy</p></div>
<p>I have few words atm, as I come to grips with the loss of my baby sister. Sara and I have flown to Perth to be here with my family, and the other families. Please keep us all in your prayers, and especially the 2 in hospital still, Adam being one of them, Rosy's boyfriend.</p>
<p>I miss you little sister. I love you. Go be with the Father now. Say hello to Elizabeth for me, and Grandpa.</p>
<p><a title="Young love dies in crash which claims 3 lives" href="http://www.news.com.au/perthnow/story/0,21598,24265946-948,00.html">Young love dies in crash which claims 3 lives</a><br />
<a title="Teenage couple's love was obvious" href="http://www.news.com.au/perthnow/story/0,21598,24267947-5008620,00.html">Teenage couple's love was obvious</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=BBIX8qsqt0M:T5-caxi3t9U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=BBIX8qsqt0M:T5-caxi3t9U:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=BBIX8qsqt0M:T5-caxi3t9U:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/08/31/my-little-sister-29th-august-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/08/31/my-little-sister-29th-august-2008/</feedburner:origLink></item>
		<item>
		<title>Mt Binga – Immanuel College</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/j4_nwzvel7Y/</link>
		<comments>http://weirdo.bur.st/2008/08/19/mt-binga-immanuel-college/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 13:48:20 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[Contact]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Mt Binga]]></category>
		<category><![CDATA[Prayer]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=333</guid>
		<description><![CDATA[The easy way, read about it at http://www.immanuel.qld.edu.au/cocurricular/mtbinga.htm. I updated our contact page too to have my contact details while I'm working. Sara's contact details for Taiwan are still unknown, so they will have to follow later. She'll probably be down to email contact and no phone.
I leave early tomorrow morning for the 2 hr [...]]]></description>
			<content:encoded><![CDATA[<p>The easy way, read about it at <a title="Mt Binga" href="http://www.immanuel.qld.edu.au/cocurricular/mtbinga.htm">http://www.immanuel.qld.edu.au/cocurricular/mtbinga.htm</a>. I updated our <a href="/contact">contact page</a> too to have my contact details while I'm working. Sara's contact details for Taiwan are still unknown, so they will have to follow later. She'll probably be down to email contact and no phone.</p>
<p>I leave early tomorrow morning for the 2 hr drive up to Mt Binga, so please pray I have a safe drive, and my transition into the staff goes smoothly. They don't normally have people start 1/2 way through the year so the rest of the staff would already known each other well, and I have to now fit in. Still, I look forward with excitement.</p>
<p>God Bless</p>
<p>Tim</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=j4_nwzvel7Y:aXldcACqh54:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=j4_nwzvel7Y:aXldcACqh54:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=j4_nwzvel7Y:aXldcACqh54:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/08/19/mt-binga-immanuel-college/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/08/19/mt-binga-immanuel-college/</feedburner:origLink></item>
		<item>
		<title>Doors Open…</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/YlNvZAMsOzI/</link>
		<comments>http://weirdo.bur.st/2008/08/19/doors-open/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 23:12:18 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[Binga]]></category>
		<category><![CDATA[God]]></category>
		<category><![CDATA[Googa]]></category>
		<category><![CDATA[Missions]]></category>
		<category><![CDATA[Prayers]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=327</guid>
		<description><![CDATA[The doors have been opened.
I know it's been a very long time since an update email, so this is long overdue. Since my last updates, my laptop had died in Singapore, I had arrived back in Perth, I went to work on the farm, my laptop was fixed, my Digital SLR was fixed, I had [...]]]></description>
			<content:encoded><![CDATA[<p>The doors have been opened.</p>
<p>I know it's been a very long time since an update email, so this is long overdue. Since my last updates, my laptop had died in Singapore, I had arrived back in Perth, I went to work on the farm, my laptop was fixed, my Digital SLR was fixed, I had a 21st, I flew to Brisbane, I registered for Centerlinks New Start allowance, I turned 21, and I was finally reunited with Sara. Yep, lots happened.</p>
<p>I've been in QLD for just over 2 weeks now, and while at Church on Sunday morning, listening to the rapper Burning Bush preach, I just knew that I had to head out to Googa Outdoor Education Camp, where my mate Clancy is working. We had planned on heading down Thursday and Friday of this week, but on Sunday I knew we had to go that day. I had already sent them my resume in case they had work. So Sara, Jess and I packed an overnight bag, some food and lots of warm blankets and headed out past Blackbutt to Googa. Then yesterday morning after a sleep in (for once), we had gotten up and started cooking pasta for breakfast when Clancy hailed me on the 2 way telling me that another campsite down the road had a position open. So I drove around to the office, and called the other campsite, and organised an interview for that afternoon. A 1/2 hour drive down the road and you arrive at the Mt Binga Immanuel Lutheran College Campus. After an interview, a chat and a tour, we headed off with a promise of a call after they had talked to the Principal. And while on the 2 hour drive home, the call came with a 1 month initial contract, and then if all works out, the rest of the year!!</p>
<p>Basically, one of the girls working there had a motorbike accident some time back, and had a knee surgery, yesterday morning Mt Binga found out that she wouldn't be good to work again till after December as she needed a second surgery now. And why was I down there anyway? Because I just knew I had to go out to Googa earlier than we had originally planned! God is good. I head down tomorrow morning.</p>
<p>It's exactly what I wanted, youth work, outdoors, Christian environment. And God opened the doors as needed. The only down side, I hardly get to see Sara, and she leaves in 3 weeks. Sara's door was opened a few weeks back with her acceptance in to a School Of Frontier Missions in Taiwan, and she'll be leaving Mid September. It's a bummer that having been apart so much this year, Sara and I are going to be apart again sooner than we had thought. But God knows what he is doing, he opened these doors, and closed others. He has provided for us, and thankfully we've had the last few weeks together. Hopefully we'll be together for Christmas, whether that's in Cambodia or Brisbane. (Cambodia would be nice, especially if Jess is over there, and Susie comes too). It's in God's hands, he will provide as we need.</p>
<p>Anyway, I've got a lot to sort out now, as I leave tomorrow and need to pack my stuff, and go buy some stuff for my new room. (It's gonna be cold!) Please keep my work in prayers, and Sara's school in prayers too. She is still trusting for school fee's, and support money while there.</p>
<p>Once again, thanks to everyone who has supported us in prayers and finances. Also, I am attempting to send some support money to a student in South Africa that did her DTS with me. If anyone wishes to help support her too, please ether contact me or my dad.</p>
<p>God Bless</p>
<p>Tim</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=YlNvZAMsOzI:7HfJcvS1eVU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=YlNvZAMsOzI:7HfJcvS1eVU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=YlNvZAMsOzI:7HfJcvS1eVU:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/08/19/doors-open/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/08/19/doors-open/</feedburner:origLink></item>
		<item>
		<title>Arrived &amp; Phones</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/_zGLQhv6YIQ/</link>
		<comments>http://weirdo.bur.st/2008/07/01/arrived-phones/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 14:01:42 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Contact]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=323</guid>
		<description><![CDATA[Ok, so I'm safely back in Australia, at my parents. Unfortunately, my laptop has gone on the blink again, but luckily I'm home now, so can finally sort it out. And, I have a phone again!! Can you please email me (use the contact form if you need to) your phone numbers, as most of [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so I'm safely back in Australia, at my parents. Unfortunately, my laptop has gone on the blink again, but luckily I'm home now, so can finally sort it out. And, I have a phone again!! Can you please email me (use the contact form if you need to) your phone numbers, as most of them where in my phone that is dead.</p>
<p>Tomorrow I'll be starting to sort out my laptop, camera and dentist. Thanks for everything! Thanks for all your prayer and support.</p>
<p>God Bless</p>
<p>Tim</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=_zGLQhv6YIQ:hN-A10qwFPY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=_zGLQhv6YIQ:hN-A10qwFPY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=_zGLQhv6YIQ:hN-A10qwFPY:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/07/01/arrived-phones/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/07/01/arrived-phones/</feedburner:origLink></item>
		<item>
		<title>Travel</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/cA69eBTLzb0/</link>
		<comments>http://weirdo.bur.st/2008/06/29/travel/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 17:22:44 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[YWAM]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=321</guid>
		<description><![CDATA[I'm leaving JBay earlier than orginally planned. I'm leaving tomorrow morning now, instead of monday morning, and will be travelling to PE with Kate and Tierney and will stay in PE Sunday night. Monday morning I fly out from PE to JoBerg, and then to Singapore and finally arriving back in Perth Tuesday afternoon. I [...]]]></description>
			<content:encoded><![CDATA[<p>I'm leaving JBay earlier than orginally planned. I'm leaving tomorrow morning now, instead of monday morning, and will be travelling to PE with Kate and Tierney and will stay in PE Sunday night. Monday morning I fly out from PE to JoBerg, and then to Singapore and finally arriving back in Perth Tuesday afternoon. I most likely won't have internet for that time till Singapore, so until then, take care.</p>
<p>God Bless</p>
<p>Take Care</p>
<p>Thanks for everything. (I have another blog to post when I'm back on my laptop)</p>
<p>Tim</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=cA69eBTLzb0:lquZ3sW1Vm4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=cA69eBTLzb0:lquZ3sW1Vm4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=cA69eBTLzb0:lquZ3sW1Vm4:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/06/29/travel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/06/29/travel/</feedburner:origLink></item>
		<item>
		<title>Week 24 – Day 165 – Graduation</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/HdJF4rMpABs/</link>
		<comments>http://weirdo.bur.st/2008/06/26/week-24-day-165-graduation/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 15:52:55 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[Missions]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[YWAM]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=322</guid>
		<description><![CDATA[Wow. Today is actually a significant day. As much as I try and look at it as an event that just happened and passed, it's so much more than that. Today I received my first piece of paper from an educational institute since leaving school. I have graduated from a course, I have 24 credit [...]]]></description>
			<content:encoded><![CDATA[<p>Wow. Today is actually a significant day. As much as I try and look at it as an event that just happened and passed, it's so much more than that. Today I received my first piece of paper from an educational institute since leaving school. I have graduated from a course, I have 24 credit points towards a degree. Just for that reason, it's significant. It's also significant, because tonight already, I have said goodbye to some people, and they have left. Early in the morning, some more will leave. It's a time of saying goodbye to the Family that I've known for the last 6 months. To many of my sisters, who have laughed with me, and just hung out with me. To my brothers, who have put up with living with me. In particular, to my Brother Steve, who has put up with me for the whole 6 months, and has shared a room with me for probably 22 1/2 weeks, always under the same room, only getting a separate room when staying at his parents place! I have formed strong friendships with some of my team mates, that will continue for years to come. I'm sure, while Steve and I probably won't be able to talk every week, we will keep in regular contact. And probably with Kate too. I would love to say I'd keep in regular contact with Tierney and Nicki and others, but I know that it won't be as regular as I like. One disadvantage I have, is that I am used to travelling, and like Steve, I'm good at saying good byes. Many tears were shed tonight, but none by me.</p>
<p>After Graduation this evening, we headed down to Cafe Kima, one of our local hang out spots. There we were, an Australia, a New Zealander, and a South African, having a drink together. Steve had his first beer in 6 months, and I had a nice Jack and Coke. I understand many jokes start off with an Australia, New Zealander and a South African in a pub, so we took a photo to remember the funny side of it. Most of the team still in JBay joined us at the cafe, although you could see the "groups" already starting to form. Those who's boyfriends had come down, kinda just congregated together. Steve, Richard and I sat together, and were joined by some of the staff briefly. Then a table of just girls formed. It was a little sad to see the groups forming, as we got there first, and invited everyone to sit with us when they arrived. But fair enough, we are all going different ways, so it's OK to sit apart.</p>
<p>While I would love to go to bed, the work isn't finished yet. I now have the task of burning DVD's full of photos. Our grad slide show of photos (for the Swazambique team) will be on the DVD, along with outreach photos. And probably lecture phase photos too if I get the time. It's rather time consuming to shrink a couple thousand photos, and also go through them taking out the "junk" ones. I also wonder how many people will go through all the photos. I know that I'd start going through them with friends, but would never get through them all. I'm glad I made the slide show already, because it's 5 minutes, and is actually a good representation of our outreach, so it'll be good for sitting down with friends and showing them the video. On a little technical aside, the slide show was rather a work of art for me. I wrote my own software to take a directory of photos, shrink them down and put frames around them and then choose the best template for them, depending on how many portrait and landscape photos there are. It also allows for photos to be fullsize on a page. It then takes a background image, makes a title page, blurs the image for all the following pages and arranges the framed photos according to the template, while adding some randomness to make it look more like a photo album thats been thrown together, and not a template. I was rather impressed with it myself, and after combining all the "pages" into a video with just a simple fade effect between pages, it came out looking rather kiff. I had quite a few people comment on it after, about it looking professional, and something they hadn't seen before (in particular, it wasn't like lots of peoples power point shows). I will most likely release the code for it after some clean up. But before then, you'll be able to download the video (a compressed version), sometime after I arrive back in Perth and upload it. So you'll be able to comment yourself on the style!</p>
<p>Anyway, putting the aside, aside. Tomorrow Steve and I have to say goodbye. A strange thought, yet it shouldn't be hard. A group of us will be at Bruce's for our last breakfast, and then hopefully having waffles for lunch!! It's going to be a quite weekend. Almost lonely. But I have lots I want to finish on the base before I leave, regarding the wireless internet, and the server. So I should be busy!</p>
<p>Anyway, that's all for now. Thanks to everyone that has been supporting me through my DTS, in prayer, finances or even just chatting. It's been much appreciated. My DTS has been a life changing experience, and I hope that you all see how I've been changed when you get a chance to see me again. I will write about where I feel God is leading me later, but for now I'm keeping that fairly much to myself and few close friends. So stay tuned, God has big plans for you, me and this world!</p>
<p>God Bless</p>
<p>Tim</p>
<p>DTS. 165 days. And everyone worth it! DTS = Discipleship Training School == Dying To Self</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=HdJF4rMpABs:BxkzNIG3p54:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=HdJF4rMpABs:BxkzNIG3p54:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=HdJF4rMpABs:BxkzNIG3p54:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/06/26/week-24-day-165-graduation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/06/26/week-24-day-165-graduation/</feedburner:origLink></item>
		<item>
		<title>Quick Updates</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/uzkmdV8mfJs/</link>
		<comments>http://weirdo.bur.st/2008/06/25/quick-updates/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:10:14 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[Cambodia]]></category>
		<category><![CDATA[Contact]]></category>
		<category><![CDATA[Graduation]]></category>
		<category><![CDATA[Missions]]></category>
		<category><![CDATA[Sara]]></category>
		<category><![CDATA[Tim]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[YWAM]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=320</guid>
		<description><![CDATA[Ok. So I'm busy preparing for Graduation tomorrow. Currently at the internet cafe waiting for our printing to finish and some downloads to finish.
Sara is back in Cambodia. She is in a village with no electricity or internet and may be out of contact till July 5th.  
I fly home next monday, arriving in [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. So I'm busy preparing for Graduation tomorrow. Currently at the internet cafe waiting for our printing to finish and some downloads to finish.</p>
<p>Sara is back in Cambodia. She is in a village with no electricity or internet and may be out of contact till July 5th. <img src='http://weirdo.bur.st/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I fly home next monday, arriving in Australia on tuesday.</p>
<p>And I think that's about all for now.</p>
<p>Thanks for all your prayer and support. Looking forward to seeing everyone again!</p>
<p>God Bless</p>
<p>Tim</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=uzkmdV8mfJs:YiKdqD9otWM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=uzkmdV8mfJs:YiKdqD9otWM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=uzkmdV8mfJs:YiKdqD9otWM:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/06/25/quick-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/06/25/quick-updates/</feedburner:origLink></item>
		<item>
		<title>Orphanage Donations</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/WhDNoZT0AJw/</link>
		<comments>http://weirdo.bur.st/2008/06/24/orphanage-donations/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 19:44:40 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[Donation]]></category>
		<category><![CDATA[Kedesh]]></category>
		<category><![CDATA[Loskop]]></category>
		<category><![CDATA[Missions]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[YWAM]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=319</guid>
		<description><![CDATA[Thanks to everyone that supported my request for donations for the orphanage. The money was transferred to Loskop, and some to Kedesh. Loskop recently sent the following email of thanks.
The money has come through and we have spent most of it already.  Our older
kids all have the track suits they are required to wear for [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to everyone that supported my request for donations for the orphanage. The money was transferred to Loskop, and some to Kedesh. Loskop recently sent the following email of thanks.</p>
<blockquote><p>The money has come through and we have spent most of it already.  Our older<br />
kids all have the track suits they are required to wear for the winter and<br />
we are using the rest of the money for the odds and ends the rest of the<br />
kids need.</p>
<p>Thanks again for your generosity.</p>
<p>Regards,</p>
<p>Aaron</p></blockquote>
<p>So once again. Thanks to everyone that donated.</p>
<p>God Bless</p>
<p>Tim</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=WhDNoZT0AJw:9bSuurMCzRY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=WhDNoZT0AJw:9bSuurMCzRY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=WhDNoZT0AJw:9bSuurMCzRY:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/06/24/orphanage-donations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/06/24/orphanage-donations/</feedburner:origLink></item>
		<item>
		<title>Back In JBay</title>
		<link>http://feedproxy.google.com/~r/timsara/~3/pf3g5jXiuag/</link>
		<comments>http://weirdo.bur.st/2008/06/21/back-in-jbay/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 03:40:36 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[JBay]]></category>
		<category><![CDATA[Missions]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[YWAM]]></category>

		<guid isPermaLink="false">http://weirdo.bur.st/?p=318</guid>
		<description><![CDATA[Ok, so we arrived back in JBay about an hour ago. Yes, it's early morning, but too late to go back to bed. Prepare yourself for a Translux (not lux) post soon. We are really annoyed with the bus company.
Anyway. All safe. Other team arrives tomorrow.
Tired. Shower and off to the sunrise soon.
Thanks for all [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so we arrived back in JBay about an hour ago. Yes, it's early morning, but too late to go back to bed. Prepare yourself for a Translux (not lux) post soon. We are really annoyed with the bus company.</p>
<p>Anyway. All safe. Other team arrives tomorrow.</p>
<p>Tired. Shower and off to the sunrise soon.</p>
<p>Thanks for all your prayers and support</p>
<p>God Bless</p>
<p>Tim</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/timsara?a=pf3g5jXiuag:8TEkOnCREpQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/timsara?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/timsara?a=pf3g5jXiuag:8TEkOnCREpQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/timsara?i=pf3g5jXiuag:8TEkOnCREpQ:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://weirdo.bur.st/2008/06/21/back-in-jbay/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://weirdo.bur.st/2008/06/21/back-in-jbay/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 1.136 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-12 13:35:41 --><!-- Compression = gzip -->
