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

<channel>
	<title>Joffcom</title>
	<atom:link href="http://joffcom.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://joffcom.net</link>
	<description>Its a little bit random</description>
	<lastBuildDate>Tue, 03 Jan 2012 20:56:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Design</title>
		<link>http://joffcom.net/design/</link>
		<comments>http://joffcom.net/design/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 06:54:34 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=88</guid>
		<description><![CDATA[Over the next couple of weeks I will be making a lot of changes to the look of the site and adding in a projects section so I have an area to post up various things that I have been working on. There is no real reason for the change other than I don&#8217;t like [...]]]></description>
			<content:encoded><![CDATA[<p>Over the next couple of weeks I will be making a lot of changes to the look of the site and adding in a projects section so I have an area to post up various things that I have been working on.</p>
<p>There is no real reason for the change other than I don&#8217;t like this look anymore and I think I can make something better.</p>
]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 Day Game Update 2</title>
		<link>http://joffcom.net/2-day-game-update-2/</link>
		<comments>http://joffcom.net/2-day-game-update-2/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 21:03:47 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[Andengine]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=78</guid>
		<description><![CDATA[Im currently working on level 4 after having a rather large break to watch Batman Begins and The Dark Knight so that was 4 hours well spent. I have cleaned up some of the code and removed some imports that I wont be needing now that I did think about using before. Even with the [...]]]></description>
			<content:encoded><![CDATA[<p>Im currently working on level 4 after having a rather large break to watch Batman Begins and The Dark Knight so that was 4 hours well spent. I have cleaned up some of the code and removed some imports that I wont be needing now that I did think about using before.</p>
<p>Even with the extended break I think im still on track to have the game finished by 6pm tomorrow but that all depends on what catches my eye tomorrow. Also have I mentioned that coming up with a design for a level sucks and its only a simple game.</p>
<p>Tomorrow I hope to add in some kind of enemy and pick ups that you have to get before you can finish the level just to make the later levels harder. Maybe 5 with just movement then 5 with collectables then 5 with enemies then the last 5 a mix of enemies and collectables.</p>
<p>Any way here are 2 pictures</p>
<p><img src="http://joffcom.net/wp-content/uploads/2011/06/level2.png"><br />
<img src="http://joffcom.net/wp-content/uploads/2011/06/level3.png"></p>
]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/2-day-game-update-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 Day Game Update 1</title>
		<link>http://joffcom.net/2-day-game-update-1/</link>
		<comments>http://joffcom.net/2-day-game-update-1/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 13:05:47 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[Andengine]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=68</guid>
		<description><![CDATA[Well after a few minutes of thinking im going with a simple maze/puzzle idea that will use the phones accelerometer to control the player from one end of the scene to the other avoiding various obsticles and collecting pick ups along the way. Again I have decided to use Andengine and Box2D because I have [...]]]></description>
			<content:encoded><![CDATA[<p>Well after a few minutes of thinking im going with a simple maze/puzzle idea that will use the phones accelerometer to control the player from one end of the scene to the other avoiding various obsticles and collecting pick ups along the way.</p>
<p>Again I have decided to use <a href="http://www.andengine.org">Andengine </a> and <a href="http://www.box2d.org/">Box2D</a> because I have used them before and like how they work on the Android platform, So far im thinking about doing 20 levels to the game.</p>
<p>At the moment I have the physics collision working and a level controller set up so you have to finish one level before moving onto the next, The motion controls are also working so mostly all that is left is to complete the score board that I want to add and add in an Enemy manager and collectable manager, Aswell as create 19 more levels.</p>
<p>Here some shots of the work so far.. Sorry for the shit graphics im a programmer not an artist &#8211; The font used is <a href="http://font.ubuntu.com/">Ubuntu</a>.</p>
<p><img src="http://joffcom.net/wp-content/uploads/2011/06/main_screen.png" alt="" /><br />
<img src="http://joffcom.net/wp-content/uploads/2011/06/level_select1.png" alt="" /><br />
<img src="http://joffcom.net/wp-content/uploads/2011/06/level_select2.png" alt="" /><br />
<img src="http://joffcom.net/wp-content/uploads/2011/06/level1.png" alt="" /><br />
<img src="http://joffcom.net/wp-content/uploads/2011/06/level1_complete.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/2-day-game-update-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 Day Game</title>
		<link>http://joffcom.net/2-day-game/</link>
		<comments>http://joffcom.net/2-day-game/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 08:56:13 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=64</guid>
		<description><![CDATA[I have decided that Im going to make a quick Android game in 2 days for fun more than anything else. At the moment I have no idea what the game will be or what im going to use to make it, I have set my self some rules though to help get through: Rule [...]]]></description>
			<content:encoded><![CDATA[<p>I have decided that Im going to make a quick Android game in 2 days for fun more than anything else. At the moment I have no idea what the game will be or what im going to use to make it, I have set my self some rules though to help get through:</p>
<p><strong>Rule 1:</strong> I cannot start until 10 today<br />
<strong>Rule 2:</strong> Game must be published to the Android Market at 6pm Tomorrow<br />
<strong>Rule 3:</strong> Game must contain at least 5 levels<br />
<strong>Rule 4:</strong> Full source code must be released<br />
<strong>Rule 5:</strong> It must work on devices from Android 1.6 onwards<br />
<strong>Rule 6:</strong> Blog progress every 4 hours</p>
<p>Although simple rules they should help to motivate me and actually get me to finish a project that I start. </p>
<p>Well with 5 minutes to go until I start I better go and get a very large cup of coffee and some toast.</p>
<p>Next post @ 2pm (ish)</p>
]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/2-day-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Game</title>
		<link>http://joffcom.net/android-game/</link>
		<comments>http://joffcom.net/android-game/#comments</comments>
		<pubDate>Mon, 23 May 2011 07:29:05 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[Andengine]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=54</guid>
		<description><![CDATA[For the past few weeks I have started work on an Android game with Dan Cordell (Gryx). With my love of making things easier I have been using Andengine. So far we have player movement through Accelometer, Tapping the screen to make the player jump and Box2D physics. By the end of this week I [...]]]></description>
			<content:encoded><![CDATA[<p>For the past few weeks I have started work on an Android game with <a href="http://www.artbydan.co.uk">Dan Cordell (Gryx)</a>. With my love of making things easier I have been using <a href="http://www.andengine.org">Andengine</a>. So far we have player movement through Accelometer, Tapping the screen to make the player jump and <a href="http://www.box2d.org/">Box2D physics</a>.</p>
<p>By the end of this week I hope to have the levels loading through XML because I can&#8217;t be bothered to type in:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">addObject<span style="color: #009900;">&#40;</span>Scene, X Location, Y Location<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>For every object in the scene.</p>
<p>Here are a few screen shots taken from my X10 using DDMS</p>
<p><img src="http://joffcom.net/wp-content/uploads/2011/05/Current01.png" alt="" /><br />
<img src="http://joffcom.net/wp-content/uploads/2011/05/Current02.png" alt="" /><br />
<img src="http://joffcom.net/wp-content/uploads/2011/05/Current03.png" alt="" /><br />
<img src="http://joffcom.net/wp-content/uploads/2011/05/Current04.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/android-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress SimpleFolio Fix</title>
		<link>http://joffcom.net/wordpress-simplefolio-fix/</link>
		<comments>http://joffcom.net/wordpress-simplefolio-fix/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 06:59:05 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=51</guid>
		<description><![CDATA[At the moment I am redoing the Digital Arrow website and to make it easier and look nice we are using Simple Folio as the base for the custom work. Like most software updates the last WordPress 3.1.1 was no different and broke the slider on the main page which has lead to me having [...]]]></description>
			<content:encoded><![CDATA[<p>At the moment I am redoing the Digital Arrow website and to make it easier and look nice we are using <a href="http://www.smashingmagazine.com/2010/02/07/simplefolio-a-free-clean-portfolio-wordpress-theme/">Simple Folio</a> as the base for the custom work.</p>
<p>Like most software updates the last WordPress 3.1.1 was no different and broke the slider on the main page which has lead to me having to spend some time working out what went wrong, Now I have fixed it I decided it might be a good idea to share the fix on here.</p>
<p>Go to the Admin Panel -> Appearance -> Editor -> Home Page Template (template-home.php)</p>
<p>Find:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sf_portfolio_category'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Replace With:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> sf_get_category_id<span style="color: #009900;">&#40;</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sf_portfolio_category'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>A couple of lines lower find:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'showposts='</span><span style="color: #339933;">.</span><span style="color: #000088;">$slide_count</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;category_name='</span><span style="color: #339933;">.</span><span style="color: #000088;">$category</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>And Replace with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'showposts='</span><span style="color: #339933;">.</span><span style="color: #000088;">$slide_count</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;cat='</span><span style="color: #339933;">.</span><span style="color: #000088;">$category</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This should solve all your problems and take less than 5 minutes to fix.</p>
]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/wordpress-simplefolio-fix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Excel VBA Form Quit</title>
		<link>http://joffcom.net/excel-vba-form-quit/</link>
		<comments>http://joffcom.net/excel-vba-form-quit/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 10:48:04 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=49</guid>
		<description><![CDATA[If you make an excel user form and use the following code to load the form when Excel is opened you will run into a problem when the user clicks the x to close. 1 2 3 4 Private Sub workbook_open() Application.Visible = False FORM.Show End Sub The problem is Excel is still opened in [...]]]></description>
			<content:encoded><![CDATA[<p>If you make an excel user form and use the following code to load the form when Excel is opened you will run into a problem when the user clicks the x to close.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> workbook_open()
Application.Visible = <span style="color: #00C2FF; font-weight: bold;">False</span>
FORM.Show
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></pre></td></tr></table></div>

<p>The problem is Excel is still opened in the process list and you have to manually kill the task or open another Excel task. But there is a quick and easy fix to solve the problem. Just add the following to your form.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> UserForm_QueryClose(Cancel <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>, CloseMode <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>)
	ActiveWorkbook.<span style="color: #8D38C9; font-weight: bold;">Close</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></pre></td></tr></table></div>

<p>Although this isn&#8217;t perfect it does the job. It also assumes that the user has saved any work they have done but this can be extended to ask the user if they are sure by using the following.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> UserForm_QueryClose(Cancel <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>, CloseMode <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>)
	<span style="color: #8D38C9; font-weight: bold;">If</span> CloseMode = 0 <span style="color: #8D38C9; font-weight: bold;">Then</span>
        	response = MsgBox(<span style="color: #800000;">&quot;Exit Application.&quot;</span> &amp; vbCrLf &amp; vbCrLf &amp; _
       		 <span style="color: #800000;">&quot;Are you sure&quot;</span>, vbYesNo, <span style="color: #800000;">&quot;Please Confirm&quot;</span>)
        <span style="color: #8D38C9; font-weight: bold;">If</span> response = vbYes <span style="color: #8D38C9; font-weight: bold;">Then</span>
            Application.Quit
        <span style="color: #8D38C9; font-weight: bold;">Else</span>
            Cancel = 1
        <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></pre></td></tr></table></div>

<p>You can also use True, False instead of 1,0</p>
]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/excel-vba-form-quit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yet More Excel VBA</title>
		<link>http://joffcom.net/yet-more-excel-vba/</link>
		<comments>http://joffcom.net/yet-more-excel-vba/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 10:34:44 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=47</guid>
		<description><![CDATA[I got very bored yesterday at work and decided to make a stopwatch using Excel and VBA it is a very simple thing to do and only took about 10 minutes to make so here is some more code for anyone who is interested. Open Excel and press Alt+F11 to open the VBA editor and [...]]]></description>
			<content:encoded><![CDATA[<p>I got very bored yesterday at work and decided to make a stopwatch using Excel and VBA it is a very simple thing to do and only took about 10 minutes to make so here is some more code for anyone who is interested.</p>
<p>Open Excel and press Alt+F11 to open the VBA editor and create a new form. On the form add one Label and 3 buttons I kept the names simple by calling them cbStart, cbStop and cbReset. Now double click anywhere on the form and clear any code that it added and just paste in the following.</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
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #151B8D; font-weight: bold;">Dim</span> dteStart <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Date</span>, dteFinish <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Date</span>
<span style="color: #151B8D; font-weight: bold;">Dim</span> dteStopped <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Date</span>, dteElapsed <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Date</span>
<span style="color: #151B8D; font-weight: bold;">Dim</span> boolStopPressed <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Boolean</span>, boolResetPressed <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Boolean</span>
&nbsp;
<span style="color: #008000;">'###################
</span><span style="color: #008000;">'Reset all values
</span><span style="color: #008000;">'###################
</span>
<span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> cbReset_Click()
    dteStopped = 0
    dteStart = 0
    dteElapsed = 0
    Label1 = <span style="color: #800000;">&quot;00:00:00&quot;</span>
    boolResetPressed = <span style="color: #00C2FF; font-weight: bold;">True</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
<span style="color: #008000;">'###################
</span><span style="color: #008000;">'Start the timer
</span><span style="color: #008000;">'###################
</span>
<span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> cbStart_Click()
Start_timer:
    dteStart = Time
    boolStopPressed = <span style="color: #00C2FF; font-weight: bold;">False</span>
    boolResetPressed = <span style="color: #00C2FF; font-weight: bold;">False</span>
Timer_Loop:
    <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>
    dteFinish = Time
    dteElapsed = dteFinish - dteStart + dteStopped
    <span style="color: #8D38C9; font-weight: bold;">If</span> <span style="color: #8D38C9; font-weight: bold;">Not</span> boolStopPressed = <span style="color: #00C2FF; font-weight: bold;">True</span> <span style="color: #8D38C9; font-weight: bold;">Then</span>
        Label1 = dteElapsed
        <span style="color: #8D38C9; font-weight: bold;">If</span> boolResetPressed = <span style="color: #00C2FF; font-weight: bold;">True</span> <span style="color: #8D38C9; font-weight: bold;">Then</span> <span style="color: #8D38C9; font-weight: bold;">GoTo</span> Start_timer
        <span style="color: #8D38C9; font-weight: bold;">GoTo</span> Timer_Loop
    <span style="color: #8D38C9; font-weight: bold;">Else</span>
        <span style="color: #E56717; font-weight: bold;">Exit</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
    <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
<span style="color: #008000;">'###################
</span><span style="color: #008000;">'Stop the timer
</span><span style="color: #008000;">'###################
</span>
<span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> cbStop_Click()
    boolStopPressed = <span style="color: #00C2FF; font-weight: bold;">True</span>
    dteStopped = dteElapsed
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
<span style="color: #008000;">'###################
</span><span style="color: #008000;">'Set the label on form load
</span><span style="color: #008000;">'###################
</span>
<span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> UserForm_Initialize()
    Label1 = <span style="color: #800000;">&quot;00:00:00&quot;</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/yet-more-excel-vba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Refresh CMD</title>
		<link>http://joffcom.net/refresh-cmd/</link>
		<comments>http://joffcom.net/refresh-cmd/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 09:26:42 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=41</guid>
		<description><![CDATA[Here is another little bit of code I found on my Hard drive. This one sorts out most internet connectivity issues by releasing the IP then flushing the DNS and finally renewing the IP. Again just copy into notepad and save as file.bat I called mine network_refresh.bat 1 2 3 4 5 6 7 8 [...]]]></description>
			<content:encoded><![CDATA[<p>Here is another little bit of code I found on my Hard drive.</p>
<p>This one sorts out most internet connectivity issues by releasing the IP then flushing the DNS and finally renewing the IP.</p>
<p>Again just copy into notepad and save as file.bat I called mine network_refresh.bat</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
</pre></td><td class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> Refresh Network Settings
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span>
ipconfig /release
cls
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> IP Released
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span>
cls
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> Flush DNS
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span>
ipconfig /flushdns
cls
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> DNS Flushed
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span>
cls
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> Renew IP
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span>
ipconfig /renew
cls
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> Problem Should Be Solved
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/refresh-cmd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network VBS</title>
		<link>http://joffcom.net/network-vbs/</link>
		<comments>http://joffcom.net/network-vbs/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 09:22:43 +0000</pubDate>
		<dc:creator>Joff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://joffcom.net/?p=39</guid>
		<description><![CDATA[While looking through some of my backed up Windows files from before the switch to Linux I found the little tool I used to set up computers to a domain quickly. Copy the code into notepad and save as file.vbs I called mine network.vbs and just run it on any computer to add it to [...]]]></description>
			<content:encoded><![CDATA[<p>While looking through some of my backed up Windows files from before the switch to Linux I found the little tool I used to set up computers to a domain quickly.</p>
<p>Copy the code into notepad and save as file.vbs I called mine network.vbs and just run it on any computer to add it to your Domain or Workgroup.</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
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">Name = InputBox(<span style="color: #800000;">&quot;Enter the new computer name below and click OK to continue&quot;</span>,<span style="color: #800000;">&quot;Rename: Step 1&quot;</span>)
&nbsp;
<span style="color: #151B8D; font-weight: bold;">Set</span> objWMIService = <span style="color: #E56717; font-weight: bold;">GetObject</span>(<span style="color: #800000;">&quot;Winmgmts:root\cimv2&quot;</span>)
&nbsp;
<span style="color: #008000;">' Call always gets only one Win32_ComputerSystem object.
</span><span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #8D38C9; font-weight: bold;">Each</span> objComputer <span style="color: #8D38C9; font-weight: bold;">in</span> _
   objWMIService.InstancesOf(<span style="color: #800000;">&quot;Win32_ComputerSystem&quot;</span>)
&nbsp;
       Return = objComputer.rename(Name,Password,User)
       <span style="color: #8D38C9; font-weight: bold;">If</span> Return &lt;&gt; 0 <span style="color: #8D38C9; font-weight: bold;">Then</span>
          WScript.Echo <span style="color: #800000;">&quot;Rename failed. Error = &quot;</span> &amp; Err.Number
       <span style="color: #8D38C9; font-weight: bold;">Else</span>
          WScript.Echo <span style="color: #800000;">&quot;Rename succeeded.&quot;</span> &amp; <span style="color: #800000;">&quot; Reboot for new name to go into effect&quot;</span>
       <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #8D38C9; font-weight: bold;">Next</span>
&nbsp;
&nbsp;
&nbsp;
DomainName = InputBox(<span style="color: #800000;">&quot;Enter the Domain to join this computer to and click OK to continue&quot;</span>,<span style="color: #800000;">&quot;Rename: Step 1&quot;</span>)
&nbsp;
<span style="color: #151B8D; font-weight: bold;">Set</span> objWMIService = <span style="color: #E56717; font-weight: bold;">GetObject</span>(<span style="color: #800000;">&quot;Winmgmts:root\cimv2&quot;</span>)
&nbsp;
<span style="color: #008000;">' Call always gets only one Win32_ComputerSystem object.
</span><span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #8D38C9; font-weight: bold;">Each</span> objComputer <span style="color: #8D38C9; font-weight: bold;">in</span> _
   objWMIService.InstancesOf(<span style="color: #800000;">&quot;Win32_ComputerSystem&quot;</span>)
&nbsp;
       Return = objComputer.JoinDomainOrWorkgroup(DomainName,DomainPassword,DomainUsername)
       <span style="color: #8D38C9; font-weight: bold;">If</span> Return &lt;&gt; 0 <span style="color: #8D38C9; font-weight: bold;">Then</span>
          WScript.Echo <span style="color: #800000;">&quot;Rename failed. Error = &quot;</span> &amp; Err.Number
       <span style="color: #8D38C9; font-weight: bold;">Else</span>
          WScript.Echo <span style="color: #800000;">&quot;Rename succeeded.&quot;</span> &amp; <span style="color: #800000;">&quot; Reboot for new name to go into effect&quot;</span>
       <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #8D38C9; font-weight: bold;">Next</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://joffcom.net/network-vbs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

