01 October 2008

The only time I hit the Caps Lock key is by accident. Well, the only time I used to hit that key was by accident.

After sitting down for a little think, I decided it would be good to remap the key to Enter. With the help of US Netizen's Fix Caps Lock page, I was well on my way.

Adding the above key to HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout and rebooting gave me another Enter key. It adds a certain symmetry to the keyboard.

And it still gives me happy jollies every time I hit it on purpose. Synapse-creation ahoy!

Posted on Wednesday, October 01, 2008 by campey

No comments

02 September 2008

I've done very little poking around on gravitas in the last year, my SVN repo only saw commits in September last year and March. Recent changes:
  • Physics works well enough to set up orbits.
  • New models. (for the observant, the red planet is the ball from the dx samples)
XNA 2.0 might be part of the reason for stalling, I've been pondering the move to there.

Posted on Tuesday, September 02, 2008 by campey

No comments

18 August 2008

I've gotten off the starting block with implementing the message update JEP. The implementation has matured in the 2 years (!) since I drafted the JEP and it's become a lot simpler.

What I've done so far: use gajim's sent message history to select a message, then insert the replace element when retransmitted. The replace element is all that we need to correct typos.

The image also illustrates the elegant degrading as neither client supports the protocol. Yet.

Gajim tx done. Gajim rx and Psi tx/rx to come. And a shiny new XEP

Posted on Monday, August 18, 2008 by campey

No comments

05 September 2007

So I dug up the ol' gravitas solution and decided it was time to load a mesh in there. Coding4Fun again proved helpful. Unlike the very uninformative error messages from DirectX. With some playing about, I managed to get the sample heli.x to load and render in stark white.

Then I had to turn on the lights. (device.RenderState.Lighting = true; device.RenderState.Ambient = Color.White;)

For some reason my point list is now ignoring its colours and using the last one that heli did. Sheep.

Posted on Wednesday, September 05, 2007 by campey

No comments

14 May 2007

Title says it all. Pictures of walls.

Man some of these are funny.

Great content, amusing presentation, and occasional irony. Nothing quite like the venting of profound, repressed, anonymous vandals.

Posted on Monday, May 14, 2007 by campey

No comments

08 May 2007

TeamPlain has a goto work-item search that opens up workitems, oddly enough. I wanted to use the Firefox search box to fire this off.


Using the guide: Creating OpenSearch plug-ins for Firefox, I started putting together an XML OpenSearch description in notepad.


Needing an icon, I Gimped out the logo from the TeamPlain site, took it past the data: URI kitchen and popped it in.

data:image/png,%89PNG%0D%...

Okay, so it's fugly, but it doesn't look too bad on the search bar.


A glance at the OpenSearch Specification provided final tips when deciding what data should go where. Now I had an XML file and needed someway to consume it


I tried installing the OpenSearch plug-in. I used the Error Console in Firefox, running the command window.external.AddSearchProvider(engineURL); using a file:/// URI for the engineURL, but kept getting a URL formatting error.

Error: Invalid argument passed to 
window.sidebar.addSearchEngine:
Unsupported search engine
Source File: file:///C:/Program%20Files/Gran%20Paradiso
/components/nsSidebar.js
Line: 114

Initially I thought this was due to the URL in the XML definition file, so I hacked around with that for a bit, then when that yielded no fruit, I extended the error message in the mentioned .js to include the invalid URL. This was the URL to the XML doc, not the search URL inside the XML. Turns out the URL check in the .js that was throwing the exception was only regexing https?|ftp, so needed a |file appended.


Now that Firefox was playing nicely with the XML, it was happy to load it up and prompt me to install it.



And it worked!



Final code: (adjust search URL to your liking)



<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>TeamPlain Item</ShortName>
<Description>Load items from local TeamPlain</Description>
<Image width="16"height="16">
data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%10%00%00%00%10%08%06%00%00%00%1F%F3%FFa%00%00%00%06bKGD%00%FF%00%FF%00%FF%A0%BD%A7%93%00%00%00%09pHYs%00%00%0B%13%00%00%0B%13%01%00%9A%9C%18%00%00%00%07tIME%07%D7%05%08%14%0D(U%8F%FC%B3%00%00%00%1DtEXtComment%00Created%20with%20The%20GIMP%EFd%25n%00%00%03%D9IDATx%DA%25%CD%D9SUu%1C%00%F0%EFo9%F7%2C%F7%C0%85%CBv7%B8%C8%A6%80%2C%CA%92%2CS%86%25%C94%9A%19%92%8D%CD%80a5M%0F-%D34%95V%0F%3Dd%F1%D0%83H%93%83%93%E2LS4c6%26%88T6%23%13h%0B(%16b%5C%20%05%94%ED%02%F7r%B7s~%BF_%0F%7D%FE%81%0F%02E%D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Image>
<InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" method="GET"
template="http://05rnb-dev02:8090/workitem.aspx?id={searchTerms}" />
<moz:SearchForm>searchFormURL</moz:SearchForm>
</OpenSearchDescription>

Posted on Tuesday, May 08, 2007 by campey

2 comments

03 May 2007

So my screen went on the blink; more like the scramble. It was very upsetting, and it carried on like this for a few weeks. I used an external monitor and sometimes the regular screen would work. It was very unpredictable and would break without any cause, which frustrated the hell out of me.


Eventually while sitting in a friend's loungue I decided I really just had to see my screen. So I grappled with her rather useless screwdrivers and took out the retaining screws for the keyboard. After this was done I flipped the keyboard open, gave the internal screen connector a poke and turned it on.


And it worked. Just like that. And it's been working ever since.

Posted on Thursday, May 03, 2007 by campey

No comments