Having looked around I wanted something that would retrieve a remote page, with just a basic PHP install I could have just used cURL. But me being me I wanted something more, so after a little bit or research I found phpQuery and with a little bit of code and using the syntax from YQL I have a running example which will retrieve a remote page, apply a CSSPath to the html and then wrap that up in a JSONP wrapper and deliver it.
So smug worked so well and without too much effort!
_.isArray(object) === if(object instanceof Array)
if(object instanceof Object)
if(object instanceof Function)
_.isString(object) === if(object instanceof String)
=== if(object instanceof Number)
=== if(object instanceof Boolean)
=== if(object instanceof Date)
=== if(object instanceof
_.first === array
_.initial === array.slice(0, array.length-1)
_.last === array[array.length-1]
_.rest === array.slice(x, array.length-1) n.b. where x = start position in array
So I want to produce a remote weather station using off the shelf technology, so after a look around I purchased a WH3081 a number of months ago. The thing that finally decided it for me was that it was solar powered and rechargeable battery life is expected at 2yrs, and it’s wireless, and the base station has a USB port. I know the list is long
So comments on the weather station, think it’s based on the Dallas one wire weather station design. Would be nice to know, from the manufacturer who I’ve emailed. If assembled as per instruction way too much cable, going to have to revived an old skill and lace it all properly. Connection and configuration really easy, and even in my cottage with 2ft think walls the time clock signal worked
So off the shelf free software and I ended up with pywws (I really meant off the shelf, no compiling!). A few round the houses and I ended up with livelog.py working, and a connection to Weather Underground -
More later …
Ok just downloaded the SAPUI5, installed it on my mac and did a bit of looking around!
jQuery and a number of versions… ? why not sure yet but more on that later.
First looks yeah nice, looks like a lot of work has gone into this, need to find a name to acknowledge for the work I think there. (more later on that).
Like the focus thou
n.b. you have to register to get this so not sure on the restrictions if you could use this outside of the SAP environment
Well after a long time I’d got some time to go through my blog and actually do some admin. Having written content yet not published it have a huge backlog going back 2yrs, ouch
Over all these years my love for this language has been strong, what always made me pull my hair out used to be the differences between the browsers. Which basically created the bad reputation of this language.
I find it very strange why people try to put classes into a functional based language, why fight the language and the way it works?
Anyway I digress, my favourite libraries are jQuery and Underscore. To add to these there are a few snippets from myself, and looking at apps/single page web apps undecided between Ember.js and Backbone.js.
Currently to fix the browser issues using Modernizr this is almost like a lot of my snippets to fix problems.