July 13, 2010

Twins!

PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>

SELECT ?person, ?birth, ?death, ?name, ?first, ?last, ?description, ?place {
     ?person rdf:type dbo:PlayboyPlaymate .
     ?person dbo:birthDate ?birth .
     OPTIONAL{ ?person dbo:birthPlace ?place. }
     ?person foaf:name ?name .
     OPTIONAL { ?person foaf:givenname ?first . }
     OPTIONAL { ?person foaf:surname ?last . }
     OPTIONAL{ ?person dbo:deathDate ?death . }
     OPTIONAL{ ?person dbo:nationality ?nationality . }
     OPTIONAL{ ?person dbo:ethnicGroup ?race . }
     OPTIONAL{ ?person dc:description ?description . }
     FILTER regex(str(?name), " and ") .
}

Twins!

Tags: RDF

Posted by Paul Hollands pj at 04:16 PM | Comments (0)

DBpedia Mapings

All pages (OntologyClass namespace) - DBpedia Mappings

 

Posted by Paul Hollands pj at 03:03 PM | Comments (0)

June 17, 2010

Ext JS Mobile App Framework

Sencha — Sencha Touch

 

Posted by Paul Hollands pj at 11:16 AM | Comments (0)

June 09, 2010

RDFS Schema for GP Salaries

Fuzzy Buckets: GP Salary RDF Schema

Tags: RDF

Posted by Paul Hollands pj at 09:03 PM | Comments (0)

Funding opportunities RDF example

<?xml version='1.0'?>
<rdf:RDF
	xml:base="http://www.medev.ac.uk/fundops_example.rdf"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:owl="http://www.w3.org/2002/07/owl#"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
	xmlns:fundops="http://www.medev.ac.uk/interoperability/rss/1.0/modules/fundops/rss1.0fundopsmodule#"
	xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#"
	xmlns:dcterms="http://purl.org/dc/terms/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:event="http://purl.org/rss/1.0/modules/event/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/"
	xmlns:cc="http://web.resource.org/cc/"
	xmlns:rss="http://purl.org/rss/1.0/"
	xmlns="http://purl.org/rss/1.0/"
	>
	<owl:Ontology rdf:about="http://www.medev.ac.uk/fundops_example.rdf"/>
	
	<cc:License rdf:nodeID="license">
		<dc:identifier rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.0/"/>
		<cc:requires rdf:resource="http://web.resource.org/cc/Attribution"/>
		<cc:requires rdf:resource="http://web.resource.org/cc/Notice"/>
		<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike"/>
		<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
		<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
		<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
		<cc:prohibits rdf:resource="http://web.resource.org/cc/CommercialUse"/>
	</cc:License>
	
	<channel rdf:about="http://www.medev.ac.uk/fundops_example.rdf">
		<dc:title xml:lang="en-GB">Sample fundops RSS 1.0 feed.</dc:title>
		<dc:description xml:lang="en-GB">
	  		Sample fundops module feed using new schema definition.
		</dc:description>
		<link rdf:resource="http://www.medev.ac.uk/resources/fundops/"/>
		<dc:date rdf:value="2005-06-16T15:55:00Z"/>
		<items>
		<rdf:Seq>
		<rdf:li rdf:resource="http://www.britishendodonticssociety.org/awards.htm#harty"/>
		</rdf:Seq>
		</items>
		<cc:license rdf:nodeID="license"/>
	</channel>
	
	<item rdf:about="http://www.britishendodonticssociety.org/awards.htm#harty">
		<dc:format>text/html</dc:format>
		<dc:date>2004-03-03T17:30:00Z</dc:date>
		<dc:source rdf:resource="http://www.medev.ac.uk/resources/fundops/"/>
		<title xml:lang="en-GB">The Harty Prize: Student essay prize in endodontics</title>
		<description xml:lang="en-GB">
			The British Endodontic Society aims to support: High standards of endodontic 
treatment; research in the field of endodontics; undergraduate elective period projects in endodontics; 
continuing education for general practitioners.

			The title of the essay is: Student Perceptions of Teaching and Learning in 
Endodontology.

			The closing date is 30th March each year. The student who submits the winning 
essay will be invited to the Spring Scientific Meeting, in March, for the presentation of the prize. 
Registration, accommodation and travel costs will be paid. Please see website for full restrictions and 
application details.

			The prize will be open to any undergraduate dental student in a dental school 
within the United Kingdom or a dental graduate from one of these schools who has been on the Dentist's 
Register for no more than one year on 30th June in each year of application.
			Closing date for applications: Tuesday 30th March 2004
			Contact: brett.robinson@kcl.ac.uk
		</description>
		<dc:subject xml:lang="en-GB"
			rdf:value="HEALTH CARE / MEDICINE / HEALTH & SAFETY" 
  rdf:type="http://www.learndirect-advice.co.uk/provider/standardsandclassifications/classpage/bigdoc.pdf"/>
		<dc:subject xml:lang="en-GB"
			rdf:value="DENTAL SERVICES"
  rdf:type="http://www.learndirect-advice.co.uk/provider/standardsandclassifications/classpage/bigdoc.pdf"/>
	</item>

	<fundops:Opportunity rdf:about="http://www.britishendodonticssociety.org/awards.htm#harty">
		<fundops:type xml:lang="en-GB">prize or funding</fundops:type>
		<fundops:programme xml:lang="en-GB">
		  The British Endodontic Society Awards and Prizes
		</fundops:programme>
		<fundops:frequency xml:lang="en-GB">annual</fundops:frequency>
		<fundops:deadline rdf:nodeID="deadline_1"/>
		<fundops:sponsor rdf:nodeID="sponsor_1"/>
		<fundops:applyto rdf:nodeID="applyto_1"/>
		<fundops:budget rdf:nodeID="budget_1"/>
		<fundops:purpose xml:lang="en-GB">
			To reward the dental student or recent dental graduate who writes the best essay on 
the subject of 'Coronal restoration is more relevant than root filling for the ultimate endodontic success'.
		</fundops:purpose>
		<fundops:targetsector rdf:nodeID="HE"/>
		<fundops:targetgroup rdf:nodeID="targetgroup_1"/>
		<fundops:awardconditions xml:lang="en-GB">
			The prize will be awarded by the Council of the British Endodontic Society on the 
recommendation of the examiners. The Council reserves the right to withhold the prize if the standard of 
the essays submitted is not of sufficient merit.

			The value of the prize shall be GBP 500. The Harty Medal shall also be awarded to 
the prize winner. There are also six runner-up prizes of a year's free membership to the Society.

			The prize will be open to any undergraduate dental student in a dental school within 
the United Kingdom or a dental graduate from one of these schools who has been on the Dentist's Register for 
no more than one year on 30th June in each year of application. All essays, apart from that of the winner, 
will be returned to the writers. Only the name of the prize winner will be published.

			The essay must be written in English and shall not exceed 3000 words. It must be 
typed on one side of the paper only, size A4, in double spacing. Pages must be fixed together and preceded 
by a title page. One copy of the essay shall be submitted.
		</fundops:awardconditions>
		<fundops:howtoapply xml:lang="en-GB">
			Each entry must be written under a pseudonym. The student's full name, address and 
dental school must accompany the essay in a sealed envelope bearing the pseudonym. Essays should be 
submitted to the Assistant Secretary.
		</fundops:howtoapply>
		<fundops:duration rdf:nodeID="duration_1"/>
	</fundops:Opportunity>

	<fundops:Deadline rdf:nodeID="deadline_1">
		<event:startdate>2004-02-03T08:30:00Z</event:startdate>
		<event:enddate>2004-03-03T17:30:00Z</event:enddate>
	</fundops:Deadline>
	
	<fundops:Sponsor rdf:nodeID="sponsor_1">
		<fundops:organization rdf:resource="http://www.britishendodonticssociety.org/"/>
	</fundops:Sponsor>

	<fundops:Organization rdf:about="http://www.britishendodonticssociety.org/">
		<vcard:ORG rdf:parseType="Resource">
			<vcard:Orgname xml:lang="en-GB">The British Endodontic Society</vcard:Orgname>
		</vcard:ORG>
		<vcard:ADDR rdf:parseType="Resource">
			<vcard:Street xml:lang="en-GB">
			  The King's Dental Institute, King's Campus, Denmark Hill
			</vcard:Street>
			<vcard:Locality xml:lang="en-GB">London</vcard:Locality>
			<vcard:Pcode>SE5 9RW</vcard:Pcode>
			<vcard:Region 
  rdf:type="http://www.rdn.ac.uk/publications/rdn-ltsn/geographic-coverage/" xml:lang="en-GB" rdf:value="UK"/>
		</vcard:ADDR>
	</fundops:Organization>
		
	<fundops:ApplyTo rdf:nodeID="applyto_1">
		<fundops:person rdf:resource="mailto:brett.robinson@kcl.ac.uk"/>
	</fundops:ApplyTo>
	
	<fundops:Person rdf:about="mailto:brett.robinson@kcl.ac.uk">
		<foaf:name xml:lang="en-GB">Brett Robinson</foaf:name>
		<foaf:mbox>mailto:brett.robinson@kcl.ac.uk</foaf:mbox>
		<vcard:TEL rdf:parseType="Resource">
			<rdf:value>0207 346 3585</rdf:value>
			<rdf:type rdf:resource="http://www.w3.org/2001/vcard-rdf/3.0#voice"/>
			<rdf:type rdf:resource="http://www.w3.org/2001/vcard-rdf/3.0#work"/>
		</vcard:TEL>
	</fundops:Person>
		
	<fundops:Budget rdf:nodeID="budget_1">
		<fundops:currency rdf:value="GBP"/>
		<fundops:totalbudget><xsd:integer rdf:value="500"/></fundops:totalbudget>
		<fundops:minvalue><xsd:integer rdf:value="500"/></fundops:minvalue>
		<fundops:maxvalue><xsd:integer rdf:value="500"/></fundops:maxvalue>
		<fundops:availableawards><xsd:integer rdf:value="1"/></fundops:availableawards>
	</fundops:Budget>
	
	<fundops:TargetSector rdf:nodeID="HE" xml:lang="en-GB" rdf:value="Higher Education"/>

	<fundops:TargetGroup rdf:nodeID="targetgroup_1">
		<dc:description>
			The prize will be open to any undergraduate dental student in a dental school within 
the United Kingdom or a dental graduate from one of these schools who has been on the Dentist's Register for 
no more than one year on 30th June in each year of application. All essays, apart from that of the winner, 
will be returned to the writers. Only the name of the prize winner will be published.
		</dc:description>
	</fundops:TargetGroup>
	
	<fundops:Duration rdf:nodeID="duration_1">
		<event:startdate>2004-03-04T08:30:00Z</event:startdate>
		<event:enddate>2005-03-03T17:30:00Z</event:enddate>
		<fundops:minduration><xsd:integer rdf:value="365"/></fundops:minduration>
		<fundops:maxduration><xsd:integer rdf:value="365"/></fundops:maxduration>
	</fundops:Duration>

	<item rdf:about="http://www.bad.org.uk/doctors/fellowships/index.htm">
		<dc:format>text/html</dc:format>
		<dc:date>2004-03-31T00:00:00</dc:date>
		<dc:source>http://www.ltsn-01.ac.uk/resources/fundops/index_html</dc:source>
	<title>Medical student projects</title>
	<link>
	http://www.bad.org.uk/doctors/fellowships/index.htm
	</link>
	<description>
		To encourage students to undertake small research projects or optional period in the study of topics 
related to dermatology or skin biology. With recent changes in the undergraduate curriculum in medicine many 
medical students have the opportunity of spending a few months studying a particular topic in detail. 10 
awards are available. Single Payment Funding of 500 GBP towards student research projects. 
	Closing date for applications: Wednesday 31st March 2004
	</description>
	</item>

</rdf:RDF>

Tags: RDF

Posted by Paul Hollands pj at 11:04 AM | Comments (0)

XSLT to turn RDFS into an HTML view

rdfs2html.xsl

<xsl:stylesheet version="1.0" id="my_style" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:dubcore="http://dublincore.org/2003/03/24/dces#" xmlns:dc="http://orlando.drc.com/SemanticWeb/DAML/Ontology/DC/ver/0.1.0/dces-ont#" xmlns:ves="http://orlando.drc.com/SemanticWeb/DAML/Ontology/VES/ver/0.1.0/drc-ves-ont#" xmlns:event="http://purl.org/rss/1.0/modules/event/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:fundops="http://www.medev.ac.uk/interoperability/rss/1.0/modules/fundops/rss1.0fundopsmodule#">

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>

<!-- <xsl:strip-space elements ="*" /> -->

<xsl:template match="/">
<div id="schema" xmlns="http://www.w3.org/1999/xhtml" class="example">
 <xsl:apply-templates/>
</div>

</xsl:template>

<xsl:template match="owl:Ontology">
 <h3><xsl:value-of select="@dubcore:title"/></h3>
 <p><xsl:value-of select="rdfs:comment"/></p>
</xsl:template>

<xsl:template match="rdfs:Class">
	<xsl:if test="@rdfs:label">
		<h4><xsl:value-of select="@rdfs:label"/> Class</h4>
		<p><xsl:value-of select="@rdfs:comment"/></p>
	</xsl:if>
	<xsl:if test="rdfs:label">
		<h4><xsl:value-of select="rdfs:label"/> Class</h4>
		<p><xsl:value-of select="rdfs:comment"/></p>
	</xsl:if>

	<xsl:if test="rdfs:subClassOf">
	
		<p>This is a sub-class of:</p>

		<ul>
		<xsl:for-each select="rdfs:subClassOf">
			<li><xsl:value-of select="./@rdf:resource"/></li>
		</xsl:for-each>
		</ul>
	</xsl:if>

	<xsl:if test="rdfs:isDefinedBy">
	
		<p>Class defined by:</p>

		<ul>
		<xsl:for-each select="rdfs:isDefinedBy">
			<li><xsl:value-of select="./@rdf:resource"/></li>
		</xsl:for-each>
		</ul>
	</xsl:if>

	<xsl:if test="rdfs:domain">
	
		<p>This class is in the following domains:</p>

		<ul>
		<xsl:for-each select="rdfs:domain">
			<li><xsl:value-of select="./@rdf:resource"/></li>
		</xsl:for-each>
		</ul>
	</xsl:if>

	<xsl:if test="rdfs:range/owl:oneOf">
	
		<p>Range should be one of:</p>

		<ul>
		<xsl:for-each select="rdfs:range/owl:oneOf/owl:Thing">
			<li><xsl:value-of select="./@rdf:about"/></li>
		</xsl:for-each>
		</ul>
	</xsl:if>
	<xsl:if test="rdfs:range/owl:someValuesFrom">
	
		<p>Range should be some values from:</p>

		<ul>
		<xsl:for-each select="rdfs:range/owl:someValuesFrom/owl:Thing">
			<li>
			<xsl:value-of select="./@rdf:about"/>
			<xsl:if test="./rdf:value"><xsl:value-of select="./rdf:value"/></xsl:if>
			</li>
		</xsl:for-each>
		</ul>
	</xsl:if>
	<xsl:if test="owl:equivalentClass">
	
		<p>This class is an equivalent of:</p>

		<ul>
		<xsl:for-each select="owl:equivalentClass">
			<li>
			<xsl:value-of select="./@rdf:resource"/>
			</li>
		</xsl:for-each>
		</ul>
	</xsl:if>
	<xsl:if test="owl:disjointWith">
	
		<p>This class is disjoint with:</p>

		<ul>
		<xsl:for-each select="owl:disjointWith">
			<li>
			<xsl:value-of select="./@rdf:resource"/>
			</li>
		</xsl:for-each>
		</ul>
	</xsl:if>
</xsl:template>

<xsl:template match="rdf:Property">
	<xsl:if test="@rdfs:label">
		<h4><xsl:value-of select="@rdfs:label"/> property</h4>
		<p><xsl:value-of select="@rdfs:comment"/></p>
	</xsl:if>
	<xsl:if test="rdfs:label">
		<h4><xsl:value-of select="rdfs:label/@rdf:value"/> property</h4>
		<p><xsl:value-of select="@rdfs:comment"/></p>
	</xsl:if>
	<xsl:if test="rdfs:subPropertyOf">
	
		<p>This is a sub-property of:</p>

		<ul>
		<xsl:for-each select="rdfs:subPropertyOf">
			<li><xsl:value-of select="./@rdf:resource"/></li>
		</xsl:for-each>
		</ul>
	</xsl:if>

	<xsl:if test="rdfs:isDefinedBy">
	
		<p>Property defined by:</p>

		<ul>
		<xsl:for-each select="rdfs:isDefinedBy">
			<li><xsl:value-of select="./@rdf:resource"/></li>
		</xsl:for-each>
		</ul>
	</xsl:if>

	<xsl:if test="rdfs:domain">
	
		<p>Property is in the following domains:</p>

		<ul>
		<xsl:for-each select="rdfs:domain">
			<li><xsl:value-of select="./@rdf:resource"/></li>
		</xsl:for-each>
		</ul>
	</xsl:if>

	<xsl:if test="rdfs:range/@rdf:resource">
	<p>Is in the range of:</p>

		<ul>
		<xsl:for-each select="rdfs:range/@rdf:resource">
		<li><xsl:value-of select="."/></li>
		</xsl:for-each>
		</ul>
	</xsl:if>
	<xsl:if test="rdfs:range/owl:oneOf">
	
		<p>Range should be one of:</p>

		<ul>
		<xsl:for-each select="rdfs:range/owl:oneOf/owl:Thing">
			<li>
			<xsl:value-of select="./@rdf:about"/>
			<xsl:if test="./rdf:value"><xsl:value-of select="./rdf:value"/></xsl:if>
			</li>
		</xsl:for-each>
		</ul>
	</xsl:if>
	<xsl:if test="rdfs:range/owl:someValuesFrom">
	
		<p>Range should be some values from:</p>

		<ul>
		<xsl:for-each select="rdfs:range/owl:someValuesFrom/owl:Thing">
			<li>
			<xsl:value-of select="./@rdf:about"/><xsl:if test="./rdf:value">
			<xsl:value-of select="./rdf:value"/></xsl:if>
			</li>
		</xsl:for-each>
		</ul>
	</xsl:if>
	<xsl:if test="owl:equivalentProperty">
	
		<p>This property is an equivalent of:</p>

		<ul>
		<xsl:for-each select="owl:equivalentProperty">
			<li>
			<xsl:value-of select="./@rdf:resource"/>
			</li>
		</xsl:for-each>
		</ul>
	</xsl:if>
	<xsl:if test="owl:disjointWith">
	
		<p>This property is disjoint with:</p>

		<ul>
		<xsl:for-each select="owl:disjointWith">
			<li>
			<xsl:value-of select="./@rdf:resource"/>
			</li>
		</xsl:for-each>
		</ul>
	</xsl:if>
</xsl:template>

</xsl:stylesheet>

Tags: RDF

Posted by Paul Hollands pj at 10:53 AM | Comments (0)

June 01, 2010

Querying OWL

Salmon Run: Using Neo4J to load and query OWL ontologies

Tags: OWL

Posted by Paul Hollands pj at 09:44 AM | Comments (0)

May 29, 2010

Balerno Brochure

 

Posted by Paul Hollands pj at 04:10 PM | Comments (0)

May 20, 2010

Overlapping dates revisited

select distinct s1.resident_slot_id 

from eclub.resident_slot s1,  eclub.resident_slot s2 

where 

s1.start_time < s2.end_time 

and 

s2.start_time < s1.end_time 

and 

s1.resident_id = s2.resident_id 

and 

s1.resident_slot_id != s2.resident_slot_id 

and s2.expired_date is null and s1.expired_date is null

Tags: PostgreSQL

Posted by Paul Hollands pj at 04:21 PM | Comments (0)

May 13, 2010

jQuery Gallery with Flikr hooks

Galleria — A JavaScript gallery for the Fastidious

Tags: JavaScript

Posted by Paul Hollands pj at 03:35 PM | Comments (0)

Creating a YouTube Gallery using jQuery Fancybox

Creating a YouTube Gallery using jQuery Fancybox - Aaron Benson | DFW Interactive Designer/Developer | Flash Enthusiast

Tags: jQuery

Posted by Paul Hollands pj at 03:34 PM | Comments (0)

May 07, 2010

JQuery $.get() caching in IE 7

Having extensively used jQuery AJAX all over the site we built in Feb have now discovered that IE 7 caches GET requests if the URL is the same? WTF? That's helpful for regularly updated feeds. Thanks MS. My day will now consist of finding every GET call in every CMS page and application script and pasting { blah : 1 , 'random' : Math.floor(Math.random()*1000 ) } into it. RSI here we come.

Tags: jQuery

Posted by Paul Hollands pj at 01:22 PM | Comments (0)

May 03, 2010

Living Room Tapes 5

Come On In My Kitchen

Tags: The Dred Hamiltons

Posted by Paul Hollands pj at 11:23 PM | Comments (0)

Living Room Tapes 4

Travelling Riverside Blues (Slight Return)

Tags: The Dred Hamiltons

Posted by Paul Hollands pj at 10:41 PM | Comments (0)

Living Room Tapes 3

My Old Friend The Blues

Tags: The Dred Hamiltons

Posted by Paul Hollands pj at 10:39 PM | Comments (0)

Living Room Tapes 2

Levee Done Broke (open G)

Tags: The Dred Hamiltons

Posted by Paul Hollands pj at 10:36 PM | Comments (0)

Living Room Tapes 1

Levee Done Broke (Rockabilly)

Tags: The Dred Hamiltons

Posted by Paul Hollands pj at 10:30 PM | Comments (0)

April 23, 2010

Email address regex

This fails for paul,hollands@thingmail.com as it still matches on a substring hollands@thingmail.com:
onblur="if(/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/
.match(this.value)){ var blah = ''; } else { poppy('Your email address appears to be invalid.'); this.value = ''; }"
This fixes the issue.
onblur="if(/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/
.exec(this.value) == this.value){ var blah = ''; } else { poppy('Your email address appears to be invalid.'); this.value = ''; }"

 

Posted by Paul Hollands pj at 10:50 AM | Comments (0)

April 22, 2010

Mortgage Calculator

Mortgage Calculator

 

Posted by Paul Hollands pj at 08:04 AM | Comments (0)

April 16, 2010

NiceEdit WYSIWYG Editor

NicEdit - WYSIWYG Content Editor, Inline Rich Text Application

 

Posted by Paul Hollands pj at 03:17 PM | Comments (0)

April 05, 2010

O2 Dongle on Ubuntu

O2 Forum :: View topic - PAYG E160 in Ubuntu 8.10


Number: *99#
Username: o2web
Password: password
APN: m-bb.o2.co.uk

 

Posted by Paul Hollands pj at 09:02 AM | Comments (0)

March 27, 2010

Last resort for metacharacters

PHP: mb_convert_encoding - Manual

 

Posted by Paul Hollands pj at 11:30 AM | Comments (0)

February 18, 2010

JS to make one button the same size as another

var padme = $('m_butt').offsetWidth - $('sum_butt').offsetWidth;

// The 3 is the padding applied to the first element, 
// which needs to be added to the difference

$('sum_butt').style.paddingRight = (padme + 3) + 'px';

Tags: JavaScript

Posted by Paul Hollands pj at 09:45 AM | Comments (0)

January 30, 2010

She's a mystery to me

Darkness falls and she
Will take me by the hand
Take me to some twilight land
Where all but love is gray
Where I can't find my way
Without her as my guide

Night falls, I'm cast beneath her spell
Daylight comes, our heaven turns to hell
Am I left to burn, and burn eternally?
She's a mystery to me

She's a mystery girl
She's a mystery girl
She's a mystery girl
She's a mystery girl

In the night of love
Words tangled in her hair
Words soon to disappear
A love so sharp it cut
Like a switchblade to my heart
Words tearing me apart

She tears again my bleeding heart
I wanna run, she's pulling me apart
Fallen angel cries
And I just melt away
She's a mystery to me

She's a mystery girl
She's a mystery girl
She's a mystery girl
She's a mystery girl

Haunted by her side
It's a darkness in her eyes
That so enslaves me
But if my love is blind
Then I don't want to see
She's a mystery to me

Night falls, I'm cast beneath her spell
Daylight comes, our heaven turns to hell
Am I left to burn, and burn eternally?
She's a mystery to me

She's a mystery girl
She's a mystery girl
She's a mystery girl
She's a mystery girl
She's a mystery girl
She's a mystery girl
She's... a mystery girl

She's a mystery girl
She's a mystery girl

She's... a mystery girl

 

Posted by Paul Hollands pj at 06:43 PM | Comments (0)

January 18, 2010

Using SVN switch

svn switch

Tags: Subversion

Posted by Paul Hollands pj at 05:07 PM | Comments (0)