Friday, November 16, 2012

Just Can't Quit Opera for Android

I'm posting this so I don't forget. I seem to forget loads these days. Must be all the red wine. Anyhoo, the thing is I just used Opera mini on my HTC Android and couldn't figure out how to quit without using the back button to fick through all the pages.

Trick is they seem to have removed the quit button. Why do that?

You can get it back though, as I found on the 'My Opera' community site. You have to go into settings->advanced and there is an option for showing the exit button, which for some strange reason is not enabled by default.

I don't know how long it has been like that but it shows how often I bother to dick about surfing on my mobile phone!

Wednesday, October 10, 2012

I want Mitt Romney to be an Alien

I watched the first head to head with Romney and Obama and I was sick in my mouth. I think a lot of people were. It was the difference between what Romney said and the appearance of how he said it that got you (and stumped Obama). Nearly everything he said was a flat out lie but he came across as so convincing - you would buy a second hand car off of this man.

At the end of the day though the election is a choice between which jailer do you want to hold the key.

Regardless of party, the power-brokers are chipping away at acts that limit your freedom like the NDAA and making sure that you are not a threat to their world order.

Well I think we need to ask ourselves a few questions that they don't want you to ask.

The first question is why there are a billion people on this planet living on less than one dollar a day. You probably can't imagine how that level of poverty  can exist (but it does).

I have a one word answer. Sovereignty. This notion that people who are 'better' than us have their little kingdoms over which they prevail. Surely if we're all equal that can't be right. It persists because they can then have their own currency. The dollar, the krona then yen - they can buy and sell currency, which is really a trick to make you r trading 'partner' worse off when he sells you something. China is having it's pants pulled down by the US right now - don't get me started.

The point is if we are all equal there should be no national borders and a single world currency. 


Wednesday, August 22, 2012

Learn to Play All Robert Johnson Songs

Just found a brilliant website: http://www.robertjohnsontabslyricslessons.com

The site is a learning resource for the works of the legendary blues singer guitarist, Robert Johnson.


In case you're not nuts about or even familiar with who the great man was, Robert Johnson was an itinerant musician who wandered the deep south in 1930's America, playing guitar, seducing women,drinking a lot and generally living the sort of life Jack Karouac would have killed for. Legend has it that his playing style improved suddenly, almost overnight, leading to the myth that he sold his soul to the devil in exchange for musical skills.

Anyway the reason Johnson remains popular today is his legacy of recordings. He recorded enough material for what is now two CDs, during two recording sessions that took place towards the end of his life that gave the world a taste of his blues style.


Where as other recordings at the time of other great players like Charley Patton and Blind Lemon Jefferson often sound old and dated, the Johnson recordings have a brightness and edge to them which makes them as accessible to listeners today as the day they were recorded. Johnson's wailing voice has a haunting painful quality and his lyrics are full of sexual innuendo and hints of his persecution by the devil which again are topics that separate him from his peers. His guitar work too was revolutionary for the day, later famously leading Rolling Stone Keith Richard to question who the second guitarist was, when infact Johnson plays both lead and rhythym himself in one take.


Thought there are several places on the internet where the lyrics and guitar tablature to Robert Johnson's songs can be found, http://www.robertjohnsontabslyricslessons.com is the only site I've come across that brings all the resources together in one place, even to the extent of providing full song tabs in 'Guitar Pro' format. Full marks for making the business of chasing up Robert Johnson's song lyrics and guitar licks a whole lot easier!

Saturday, April 28, 2012

Aaargh Ajax!!

First of all, I've got to say in my defence that I've mainly worked as a server-side programmer for the last twenty odd years, so JavaScript has never been my strong suit. Having said that I should have had enough knowledge by now to construct a simple Ajax cascading drop down on an ASP.NET application.

I won't share with you how much time I wasted debugging this thing in Visual Studio, rummaging through Firebug and inspecting requests in Fiddler.

Anyway the penny just dropped and I feel so SO dumb for not realising it sooner. Basically I had a sub on the server and a sub on the client in JavaScript that basically did the same thing so I had given them the same name. So while debugging I'd brainwashed myself into thinking the server script was firing when in fact it was the one on the client.

NOTE TO SELF. FROM NOW ON, BE SMART. USE A NAMING STRATEGY THAT CLEARLY SHOWS WHETHER A ROUTINE IS ON THE CLIENT OR THE SERVER.

Friday, April 27, 2012

Why Microsoft has made developers horrified about coding for Windows 8

Why Microsoft has made developers horrified about coding for Windows 8

This is a bit of a horror story for Windows platform coders. Nothing unusual really is you know the territory.

It reminds me a bit of MSN. Now today you probably think of MSN as a kind of magazine web portal with salacious stories about celebs. That is not how it started.

Back in the days before the WWW (shall we say www.bc?), Microsoft became very envious of Compuserve's dominant position as the world's leading bulletin board service. Bulletin boards for those of you too young to remember, were proprietary systems that you could dial up over the telephone with a thingy called a modem. Anyway, not to be left behind, Microsoft created it's own competing dial-up service, called it MSN and tried to flog it for a hefty monthly subscription.

It was actually quite an impressive system as most of it was done with vector animation in an early forerunner of Flash. However the timing couldn't have been worse. Microsoft were still hard selling it as long ago as 1997 when the charge to the web was well under way, but the original version didn't even include access to the web.

So what became of all the developers who built the original MSN with that nifty animation software  - presumably they retooled just as all the windows platform guys are going to have to do now.

Wednesday, April 11, 2012

Worpress Install Fail on Arvixe

Posting this as an aid memoire.

I've set up several blogs on my Arvixe hosting account without a problem, but today was different. I don't know whether it is something to do with the version of Wordpress or the Microsoft Web Gallery script (much more likely) but when I finished the install and view the blog, I was unable to view it due to a 403 error.

I tried the admin login and that worked OK so it was just the home page that was broken. I had a sniff at the file permissions but they were OK. Then a thought struck me. I tried the full address of the homepage in the address bar http://ubuntu.seonyx.com/index.php and sure enough that worked. Then the problem was clear. I opened up the web.config and found that no default document was specified. Infact it was pretty empty. I replaced it with the following and everything worked OK:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" />
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>
</system.webServer>
<system.web>
<compilation debug="true"/>
<customErrors mode="Off"/>
</system.web>
</configuration>

Thursday, March 15, 2012

Mula, Pliego, Murcia, Rural villa with terraces at the front, side and rear of the property

NEW REDUCED PRICE: This is a newly built country property located in between Mula and the pretty village of Pliego in Murcia. The swimming pool is enclosed in a walled area giving privacy when swimming and a large summer kitchen/BBQ has and a bathroom for use of the swimmers!

Cehegin, Murcia, Spain townhouse is entirely renovated throughout

This traditional Old Town property has a terrace which is ideal for evening dining. There is a modern kitchen/diner, which features varnished wooden-clad spashback and an electric oven.

Wednesday, March 2, 2011

Bar in Cadiz now reaches clients on line.

One of Olvera's most popular bar's, Mi Pueblo, now has it's own website. http://www.olverarestaurantemipueblo.com/ is the site's address. The website has been constructed jointly by Mojito design and Seonyx.Com, who have also been asked to do the online marketing for the site. Mi Pueblo's properietor Paco Medina Troya said his intention was to imitate the sandwich board that advertises events and special offers outside of the bar. This is acheived with a blogging engine that returns feeds back to the site.

Seonyx founder Steve Gould said that in addition he also provided the ability for Paco to update several menus and his drinks list using a customer built database backend. The text on the site can also be changed using a Jquery based content management system.

You can see from the screen shot on the left that the masthead graphic can be edited via the CMS. this mimics Paco's chalk board that he has outside the bar.


The CMS which is custom made by Seonyx uses the Jquery javascript library to make the editable areas 'clickable' by an administrative user with the appropriate privilages.

"One of the (many) nice things about Jquery is that it enables collections to be made from CSS selectors that can then be looped through. We use this to attach the javascript click events to the areas we want to make editable simply by giving them a class name." Once they are so identified it is a trivial matter to run them through a script which enables their contents to be linked to records in a database."

Bar mi Pueblo have also contracted Seonyx to handled the website's online visibility by handling the SEO for the site. This week Seonyx also won the contract to promote the ArtesanĂ­a del Prado pottery in Cadiz province. 







Friday, February 18, 2011

I’ve just installed Live Writer

livewriter1 

Not sure what the point is but I’ll try anything once. First impression is that  it gives a more familiar Windows feel to the editing process. What value that will have to a seasoned blogger who has already gotten used to another interface isn’t very apparent. I can see a benefit if you are writing to multiple blogs with different interfaces though as then you only have one set of menus to learn your way around.

I see it allows for mutliple blog accounts, but I must try to find out how many. I had a bit of a problem with the full version of Outlook. When I got up to about 14 email accounts it wasn’t happy and became really sluggish during send and receive – then the error messages started so I thought bugger this for a game of soldiers and switched to emClient.

Sunday, December 12, 2010

The most common alternate tuning that is used these days is probably drop D tuning. Dropping the heavy E string to a D gives you two more notes (i.e. a D and a D#). It's the easiest tuning to to learn as there is only one note to change. The other five strings stay the same so most of the chords you know remain the same. All you have to remember is that you play notes on the lowest string two frets higher that you used to. So for example the low G is now fretted at the fifth fret. See the diagram for the most common chords - the others are all easy to figure out.

Have a go with Drop D and see what you think. The Beatles' "Let it Be" works really well in drop D and is probably as good a place to start as any. They played Dear Prudence with a drop D so try that too.

Some of my favourite singer songwriters use drop - D tuning e.g James Taylor and Steve Earle, though Steve often sings a song in E rather than D and will put a capo over the lower five strings, leaving the lower E open. This means he can play the D chord shape in the diagram sliding it up a whole step to E at the fifth and he still has an open E on the bottom. Effectively drop E without retuning the guitar! Check out Steve playing Copperhead road on guitar using this technique:



Posted by Picasa

Friday, December 10, 2010

Venezuela seeks to regulate Internet with media bill | Reuters

Venezuela seeks to regulate Internet with media bill Reuters: Venezuela plans to include the Internet in a law that regulates the media, under a proposed bill presented to parliament on Thursday that the opposition claims will result in censorship.

Well that's not a surprise given that Chavez has closed down TV and radio stations that have showed any hint of opposition to him. I had hoped that this would be the first century without maniacle despots but guess I was wrong again.

Apparently the bill seeks to limit adult content on the Internet so that it is only available after midnight. Good insight there that the lawmakers have got no idea at all how to police the laws they are introducing. Watch this one - there is a story developing.

Thursday, December 9, 2010

Ry Cooder - Vigilante Man (live)



Wow - Now this takes me back - loved the Old Grey Whistle test. Looking back on it Bob Harris shaped a generation! A lot of what I am is because of that programe!

What can I say about Ry Cooder that hasn't been said already. I've been a fan since the early seventies. When I first started to work for a living, buying vinyl records on a Saturday afternoon where's where a lot of my money went. Often I'd end up getting a Ry Cooder album because they were always being sold of in the bargain bin. Then one day I looked around and I had twenty Ry Cooder albums!

Anyway Ry Cooder is know for his slide playing and a lot of guys like me learned to play slide through listening and watching Ry play. He always plays in a open tuning, usually open 'G' so you have to tune the guitar like this: First tune both the E strings down one whole step to D. Then lower the fifth string (that's the thicker one - the second one down from the top) also a whole step down to A so the strings are now D G D G B D

The thing about playing in open G is that the sixth string is not the root of the tuning - the fifth string is. A lot of guys miss the point and avoid playing the sixth string but infact it gives you a lot of melodic options.

Hey I got straight into talking about open G and didn't even check whether this video of vigilante man is actually in that tuning - I think it is - check and let me know.

Take it from me though open G is the best tuning for playing Delta blues. The lowered sixth gives it a rich dominant sound. Anoth place you'll hear open G is on the Rolling's Stones tracks such as Honky Tonk Woman and Brown Sugar.

Wednesday, December 8, 2010

It's all in the detail

I thought the tiles in Spain were good - until I went to Morocco!

I was sitting in a restaurant enjoying a mint tea. All of a sudden I looked down and saw the tiles in the picture on the right just lying at my feet!

That's what gets you about Morocco though - it's still a place where everything is hand made so there is much more attention to detail than there is with mass produced items.

So come on DIY chains - copy these - I want them on my floor!
Posted by Picasa
Oh how I miss u....

Last winter I was living in a house with this log burner - the kind with the lift up lid that you can cook with. Well you can get a good temperature in one of these things so it's good for pizzas or roasting things.

I found particularly good was roast chicken the way the spanish do it. Cut a whole chicken into pieces and place in a roasting pan. Add thickly cut potatoes - halved is normally about right. Then add some onions, garlic and tomatoes. Throw over some thyme, and season with sea salt and freshly milled black pepper. Then pour over a can or two or beer and a cup of olive oil.

Let it roast for an hour or so and stuff yourself silly!!!
Posted by Picasa

Sunday, December 5, 2010

PayPal suspends WikiLeaks donations account | Reuters

PayPal suspends WikiLeaks donations account Reuters: "(Reuters) - Online payment service PayPal said it has suspended the WikiLeaks' account that the organization used to collect donations.

U.S.-based PayPal said in a statement that WikiLeaks, which this week released thousands of secret U.S. diplomatic cables, had violated its policy. A posting on WikiLeaks' Twitter page said 'PayPal bans WikiLeaks after US government pressure.'"

Lol - I wonder if Paypal are going to suspend the accounts of American government officials engaged in illegal activities.

Saturday, December 4, 2010

Property Set/Let/Get


Instead of assigning values to public properties in the class, you might want to declare values in the class as private. Then to alter the value you need the property set statement (well OK statement is a bad choice of words - Set is a method). This moves the assignment so that it takes place inside the class.


You might think this is a waste of time at first glance, after all, at the end of the day you are just setting a value in the class - public, private - you still get to change the value from outside.


But look at it like this - now you can write validation code to check that the assignment is legal and all that code can be hidden inside the class. If you use a public variable and you send in a duff value, there is nothing much the code inside the class can do to defend itself against your idiocy, so you would really have to do valdition in the code that is instantiating the class - that would mean copies of validation code all over the place. With property set you can do that validation once and it will always work. But there is another thing - and I find this is even more useful...You can use the property set statement to set more than one variable inside your class. Also you can have a write-only property by defining a Property Let procedure without a corresponding Property Get procedure. Write-only properties, however, are comparatively rare, and are used primarily to prevent access to sensitive information such as passwords.


Set is used for objects while Let and Get are used for Values


Extending our persona class described in the previous post, here is an example of using the property let/get statements:


As before save this in an include file:


Class Persona

Private ftelephone

Public age

Public gender


public property let telephone(ptelephone)

ftelephone = ptelephone

end property


public property get telephone()

telephone = ftelephone

end property


End Class


Then use this class by instantiating a copy of it in your classic ASP page:


Set Freda = New persona


With Freda

.age = 23

.gender = "female"

.telephone ="995129993"

End With


response.write("Freda is a " & Freda.age & " year old " & Freda.gender & " phone: " & Freda.telephone)


 


 




Object ASP

Object ASP

I often hear other programmers saying classic ASP isn't object oriented. This is a mistake. ASP requires you to use a scripting language and both vbscript and javascript which a the languages of choice under ASP are oop enabled.

The problem I think is that for most purposes, ASP is a quick and dirty solution to getting a website up and running that doesn't lend itself to oop which requires a bit more thought and planning. Purists might be wagging their academic fingers at this point but these are people who have probably never had a quote accepted on elance!

It's worth looking at the advantages that a little oop can bring to Classic Active Server Pages.

These include:

  • code reuse

  • the ability to add and alter functionality without breaking the applications using the classes

  • encapsulation - hiding complex functionality


Here then I will show how to produce classes with properties that can be used multiple applications.

Creating a Simple VBScript Class in ASP

A class in VBScript is defined by using the Class...End Class key words, e.g:

Class Persona


End Class



This creates a empty class, but is not of much used yet. We need to add properties to it that define exactly what the class is meant to be modelling:




Class Persona


public age

public gender

End Class

You should be aware that elements of the class can be either:



•public - available to all users of the class

•private - only available within the class itself


It's also worth storing the class in its own server side include file at this point so that it can be reused again and again in different web sites. So, for example the code above could be stored in the file "persona.inc" and it's then ready for use.


Using VBScript Classes


Now the class is in it's own file it can be accessed in an ASP page using a server side include e.g:



The class can then be instantiated as an object by using the "new" method:


Set Freda = New persona

Set Petra = New persona


Here two persona objects (Freda and Petra - O.K. I used to watch Blue Peter!!) have been created, and so their properties can be set:


With Fred

.age = 21

.gender = "male"

End With

With Mary

.age = 22

.gender = "female"

End With


Now these properties can be used elsewhere in the web page:


response.write("Freda is a " & Freda.age & " year old " & Freda.gender)

response.write("
;Petra is a " & Petra.age & " year old " & Petra.gender)

Save the web page and the include and then view the page. The output should look something like this:

Freda is a 23 year old female

Petra is a 19 year old female



Spain declares state of emergency over strike | Reuters

Spain declares state of emergency over strike Reuters: "(Reuters) - Spain declared a state of emergency on Saturday as a wildcat strike by air traffic controllers paralysed airports for a second day."

Bumped into my mates Nigel and Chris this morning. They were due to fly back to the UK from Malaga airport but got a text from Easyjet just 30mins before they were going to leave! Good on Easyjet for the text but really what are the Spanish air traffic controllers playing at? Being bloody minded is what it is. They left jumbo jets in mid flight across the Atlantic with no where to go!

Apparently the government is accusing the air traffic controllers of breaking the law but what I heard was they're not officially on strike - they've all phoned in sick, thus technically not being illegally off work. All I can say is I hope they get this sorted out before I go on holiday myself in a few weeks time.

Limewire says to close December 31 after legal battle | Reuters

Limewire says to close December 31 after legal battle Reuters:

"Limewire says to close December 31 after legal battle"

Bit of a shame for me as Limewire was the first P2P application I really got into - and I love Lime's.

I ditched it in the end because of an attrocious memory leak in one of the java libraries. Found out these were used by several other P2P applications as Limewire source was available and used by other developers. Anyway that aside Limewire was great and I'll remember it as the application/site that got me into the world of peer downloading.

How to make shedloads of money these days: Develop a P2P application that works under the radar, along the lines of Tor so these bastard law makers can go and shit in their hats!