Recent twitter entries...

First post with my ipad2

Posted in Coding | Posted on 16-06-2011

This is a little test to see if my iPad will successfully post to my blog!.

Today creatively started with me building a solution in visual studio 2010 that had projects for…

  • Downloading an affiliate window product feed
  • Unzipping the file to the local file system
  • Scraping content from the merchant site using the deeplinks in the feed to have a more comprehensive end result to this whole concept
  • Using the parsed content via an agile xpath project reference to build a SQL compact DB
  • Building an MVC3 c# site from the database and a theme based on an existing competitor that I know is doing well
  • Automating all the above on a daily schedule…. I can see that my more appropriate, memorable domain name would do better, and the site has several obvious improvements that could be made.. Even things as basic as sorting the drop down list items..

However the usual daily drag got in the way and my after was wasted doing…

  • Emails through a messy ticketing system clarifying what someone wanted until I got him to admit he didn’t even want the report in the first place…
  • Working out why an access 97 DB is misbehaving… Yes.. Access 97 by a wannabe developer
  • Being asked to fix something I fixed in the morning..but didn’t get told it was fixed and they had infact started talking about someone completely separate which they did not test when asked to do so a month ago….

There’s a big gap between what I want to do with my days and what I end up having to do…. Very frustrating…. If you read this.. And are based in London doing the kinds of things that are mentioned in the first half… PLEASE hire me!!!!!!!

P.s. iPad2 seems surprisingly fast to type on!

What challenges will tomorrow bring….


The JQuery Datepicker

Posted in Coding | Posted on 13-06-2011

<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
 
<script type="text/javascript">
$(document).ready(function () {
$("#datepicker").datepicker();
});
</script>
<title>JQuery Datepicker example</title>
</head>
<body>
 
<input type="text" id="datepicker" />
 
</body>
</html>

See how the JQuery Datepicker looks below, the example uses code from the google CDN so is quick to load for your visitors no matter where they are in the world.


Using JQuery AJAX and ASP to set the innerHTML of a textarea

Posted in Coding | Posted on 10-06-2011

First create your page on the server that can take a parameter to get some form of data and return matches found, in this case I just want to get a body of text from a database. Note that you want to prevent caching of the response in the browser above the include that supplies the connection string in this classic ASP server side script.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
pStr = "private, no-cache, must-revalidate"
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", pStr
%>
<!--#include file="../Connections/yourConnection.asp" -->
<%
Dim ID
ID = Request("ID")
 
Set cmd = Server.CreateObject ("ADODB.Command")
cmd.ActiveConnection = ConnString
cmd.CommandText = "SELECT TOP 1 Message FROM dbo.Table WHERE ID = " & ID
Set rs = cmd.Execute
If rs.eof = false Then
Response.Write(rs("Message"))
End If
 
Set rs = nothing
%>

Below you find the client webpage containing the code required to change the innertext of a textarea to the response returned by the page above. You don’t need to worry about uploading the JQuery API to your server as it’s hosted on Google’s CDN to make it load nice and snappy geographically.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>AJAX post with parameters</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" language="JavaScript">
 
$(document).ready(function(){
$("#getMessage").click(function(){
 
$.ajax({
type: "POST",
url: "../AJAX/FilenameOfAboveScript.asp",
data: "caseid=<% =Request("ID") %>",
success: function(msg){
$("#message").val(msg);
//alert(msg);
}
});
 
});
});
 
</script>
</head>
 
<body>
<form action="" method="post" name="form1">
<input name="id" id="id" type="hidden" value="<% =Request("ID") %>" />
<p><input name="getMessage" id="getMessage" type="button" value="get message" /></p>
<p><textarea name="message" id="message" cols="30" rows="20"></textarea></p>
</form>
</body>
</html>

I was at the guathon at Leicester Square in London today

Posted in Coding | Posted on 06-06-2011

Having my brain hammered by the latest asp.net mvc3, knockout.js, c#5 asynchronous web apps… and azure cloud deployment… was quite a fast paced day.

P1020214 500x375 I was at the guathon at Leicester Square in London today


P1020216 500x375 I was at the guathon at Leicester Square in London today


P1020218 500x375 I was at the guathon at Leicester Square in London today


Do you shop at either Tesco or ASDA?

Posted in Recommendations | Posted on 19-05-2011

Then you might find these two pages useful!, they compare one against the other once you have done a shop either online or at the store just bang in your receipt number and their systems will chug away comparing your purchases to what they would have cost at the other shop, if you could have got it for less at the other one they will give you a voucher for double the difference!.

These pages are not really publicized very well.. but then why would they be?

http://www.asdapriceguarantee.co.uk/

https://www.tescopricecheck.com/PriceCheck/

Get saving!

More deals are to be had at www.moneyalerts.co.uk