So after a lovely week down in Cornwall, I have returned to Brighton.
Spent the weekend mostly in a grape-based-intoxicated-state watching The Wire and listening to live music at Brighton Loop Festival.
A blog from the mind of Brighton Web Developer and Musical Maverick, Joel Day
Posted by Dayjo | Filed under Life, Tech
So after a lovely week down in Cornwall, I have returned to Brighton.
Spent the weekend mostly in a grape-based-intoxicated-state watching The Wire and listening to live music at Brighton Loop Festival.
Posted by Dayjo | Filed under Misc, Tech
So I’ve been playing around with Microsoft Bing today, just with the image search, and I actually really like it!
I’m as suprised as you, I really expected something boring, unintuitive and useless. I figured it wouldn’t be really any different to Google’s search, but with worse results. Au contraire!
Read the rest of this entry »
Posted by Dayjo | Filed under Misc, Tech
Bing, is the new name for yet another re-launch Windows Live (MSN) Search, the search engine provided by Microsoft as a rival to Google.
Microsoft are launching an $80M – $100M ad campaign for the launch which is to occur in June.
Who knows what they’re USP is, currently Live Search isn’t particularly attractive to me personally, in that I mean, they’ve not convinced me to change my home page from google to live search.
Let’s wait and see what they do with Bing.
Please see my followup post here: Microsoft Bing – Image Search
Posted by Dayjo | Filed under Life, Tech
I’ve been wondering for a while now, how to hide uTorrent from the system tray, it seems it’s fairly simple, but google’s results are completely unhelpful and most of the first page leads to forums that go off-topic, or yahoo answers which result mainly in “you cant.”.
Truth is, you can, and it’s extremely easy!
Posted by Dayjo | Filed under Misc, Tech
I’m heading to Heathrow later today because I’m going to attend an Internet Marketing event. Hopefully it will be use useful, I’m planning on doing a little blog either tomorrow evening or sunday basically explaining what the day was about, so stay tuned, I’ll be back in a couple of days.
Posted by Dayjo | Filed under Featured, Misc, Tech
I’ve been working on something recently in which the testing has involved modiyfing 2 or 3 fields in a database very regularly, I was fed-up of going into phpMyAdmin clicking edit on the row, finding the field (1 of 100 odd), editing it and then going to the save button.
I decided that I would write a Greasemonkey script to turn all of the fields into an AJAX editing form.
Basically all you have to do now is double click the field value, edit the value and hit enter to save!
It has only been tested on phpMyAdmin 3.1.2 so I have no idea if it’ll work on other versions.
This script uses jQuery (www.jquery.com).
// ==UserScript==
// @name Ajax PHPMyAdmin
// @namespace All
// @description Ajaxify PHPMyAdmin By Joel Day http://blog.dayjo.org/
// @include http://localhost/phpmyadmin/sql.php*
// ==/UserScript==
// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://jquery.com/src/jquery-latest.js'; // Or specify one on the local server for a quicker load
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);
// Check if jQuery's loaded
function GM_wait() {
if (typeof unsafeWindow.jQuery == 'undefined') {
window.setTimeout(GM_wait, 100);
}
else {
$ = unsafeWindow.jQuery;
letsJQuery();
}
}
GM_wait();
// All your GM code must be inside this function
function letsJQuery() {
var i = 0, j = 0;
// Assign the th's id for later so we can grab the field name
$('#table_results').find('th:not([colspan])').each(function() {
// i represents a column id
i++; $(this).attr('id', i);
});
// Loop through the field values and re-make the
into our input box and div
$('#table_results').find('td:not([align="center"])').each(function() {
// Assign it a column id
if (j == i) {
j = 0;
}
j++;
// Current value of the field
var value = $(this).html();
var field = $('#' + j + ' a').html();
// Set the html
$(this).html("<div name='fielddiv'>" + value + "</div>\
<input style='display: none; text-align: right;' type='text' title='" + field + "' value='" + value + "' />");
});
// Set the dblclick event of the div
$('#table_results div[name="fielddiv"]').dblclick(function(){
// Show the input and hide the div
$(this).siblings("input").show();
$(this).hide();
});
// Loop through and set the ENTER keypress event for save
$('#table_results').find('td:not([align="center"]) input').keypress(function(ev) {
if (ev.keyCode == 13) {
// Get the info for the query.
var db = $('input[name="db"]').val();
var table = $('input[name="table"]').val();
var token = $('input[name="token"]').val();
var field = $(this).attr('title');
var value = $(this).val();
var ID = $(this).parent().siblings().children('input[title="ID"]').val();
// Post the query
$.post("sql.php?db=" + db + "&table=" + table + "&sql_query=UPDATE+" + table + "+SET+" + field + "='" + value + "'+WHERE+`ID`='" + ID + "'&token=" + token);
// Now set the div to the new value, show it and hide the input
$(this).siblings('div').html($(this).val()).show();
$(this).hide();
// Return false as not to post any forms or click any selected links
return false;
}
});
}
Posted by Dayjo | Filed under Misc, Tech
I have added the Gravatar plugin to my blog so that all commenters can put in their email address and use their Gravatar Avatar
For those of you who don’t know what Gravatar is, it’s a site for assigning an email address to an image, so you can have a global avatar that you use on multiple websites without having to re-upload them. Great for having a consistent public face on the net!
Check it out; http://gravatar.com/