Archive for the ‘hanan’ Category

Updating the flickr badge on galgalyarok

Saturday, January 9th, 2016

I just installed a nice Let’s Encrypt generated certificate (webfactional is the host, they still do not support this natively, but their support ticket workflow took a day, so that’s good enough). I reload https://galgalyarok.org/ and discover I get at first a nice green padlock icon which is then shortly later replaced by a yellow padlock with an exclamation mark. Clicking on it reveals (this is similar in both firefox and chrome, recent editions) that some of the content is not encrypted. Using the network monitor I track some links, grepping in a mysql dump I find the related settings (some in a blog post by my brother referring to a no longer accessible facebook image – lucky that the web archive exists, and that we pointed it to galgalyarok a long time ago. an image of lotem smiling at hanan has survived him). Last is a badge for flickr. The badge uses an API that returns hard coded http scheme, but it has been superceded by a v2 API. But curl reveals the return is completely different, and some googling brings me to a plugin for flickr badges that uses that API (actually that was the one that familiarized me with said API). So now trying to install that.

The plugin works nicely and uses the correct scheme (https), Flickr Badges Widget, I used 1.2.8.

Btw getting LE to run on WF using older libraries was a pain, amazing how compiling stuff and installing python modules as a user is still a pain after 20 years of linux. Had to build libffi for the cryptography suit, and patch in a really ugly way an enum (enum.Enum) used incorrectly. Or probably I somehow got it to an unexpected state. It worked, eventually, using

letsencrypt -d galgalyarok.org -vvvv --text --agree-tos --config-dir /home/alon --work-dir /home/alon/tmp --logs-dir /home/alon/log certonly --webroot-path /home/alon/webapps/galgalyarok/

This blog post is just a way to record the old widget code. Hanan used a text widget with the title “Pics” and the following content (you can get his flicker ID from the below code, enjoy):

 

<!– Start of Flickr Badge –>
<style type=”text/css”>
.zg_div {margin:0px 5px 5px 0px; width:157px;}
.zg_div_inner {border: solid 1px #000000; background-color:#ffffff;  color:#666666; text-align:center; font-family:arial, helvetica; font-size:11px;}
.zg_div a, .zg_div a:hover, .zg_div a:visited {color:#3993ff; background:inherit !important; text-decoration:none !important;}
</style>
<script type=”text/javascript”>
zg_insert_badge = function() {
var zg_bg_color = ‘ffffff’;
var zgi_url = ‘https://www.flickr.com/apps/badge/badge_iframe.gne?zg_bg_color=’+zg_bg_color+’&zg_person_id=8634367%40N07’;
document.write(‘<iframe style=”background-color:#’+zg_bg_color+’; border-color:#’+zg_bg_color+’; border:none;” width=”113″ height=”151″ frameborder=”0″ scrolling=”no” src=”‘+zgi_url+'” title=”Flickr Badge”><\/iframe>’);
if (document.getElementById) document.write(‘<div id=”zg_whatlink”><a href=”https://www.flickr.com/badge.gne”    style=”color:#3993ff;” onclick=”zg_toggleWhat(); return false;”>What is this?<\/a><\/div>’);
}
zg_toggleWhat = function() {
document.getElementById(‘zg_whatdiv’).style.display = (document.getElementById(‘zg_whatdiv’).style.display != ‘none’) ? ‘none’ : ‘block’;
document.getElementById(‘zg_whatlink’).style.display = (document.getElementById(‘zg_whatdiv’).style.display != ‘none’) ? ‘none’ : ‘block’;
return false;
}
</script>
<div class=”zg_div”><div class=”zg_div_inner”><a href=”https://www.flickr.com”>www.<strong style=”color:#3993ff”>flick<span style=”color:#ff1c92″>r</span></strong>.com</a><br>
<script type=”text/javascript”>zg_insert_badge();</script>
<div id=”zg_whatdiv”>This is a Flickr badge showing public photos and videos from <a href=”https://www.flickr.com/photos/8634367@N07″>hanan_levy</a>. Make your own badge <a href=”https://www.flickr.com/badge.gne”>here</a>.</div>
<script type=”text/javascript”>if (document.getElementById) document.getElementById(‘zg_whatdiv’).style.display = ‘none’;</script>
</div>
</div>
<!– End of Flickr Badge –>

 

Videos from 2014’s Turbine Hanan

Monday, November 9th, 2015

Turbine stands for Ted like URBan night of lectures IN mEmory of. Less contrived acronyms can be left below in the comment section.

We had plenty of lectures. I apologize for the delay, almost a whole year, in placing all the lectures online, but there you are. Almost all of the lectures are available, some of the lecturers asked to remain offline. The rest, the brunt, are available through vimeo, collected here for your pleasure:

And Barak’s epic visual tour from Warwick:
, , , ,