Smartupit
Thursday, December 18, 2014
Installing scrapy with PIP
Recently I've came across some problems while installing scrapy with PIP. The problem is with installing cryptography.
Sunday, July 20, 2014
Embedding youtube (or vimeo) video on website.
I'll show you how to easily embed YouTube or Vimeo video on your site. I use this method to convert user added youtube links into player, so that users doesn't have to leave site to see it.
Wednesday, July 16, 2014
Ajax (+ jQuery) + 303 Redirect
As you might know browsers handle 30x responses on their own - that mean you won't be able to get easily in your callback information whether response contains form submission errors or is result of post-redirect-get success call.
Tuesday, July 15, 2014
Cordova - download and open file on Android (pdf, doc, etc.)
I've tried many ways to open downloaded files in Cordova (preferably using users default Android app). One of most popular you may find on Internet is:
It didn't work for me. Sometimes images were open in new 'browser' tab, where user couldn't do anything with the pic (neither zooming nor rotating). PDFs didn't open at all.
window.open(encodeURI(url), '_system', "location=yes");
It didn't work for me. Sometimes images were open in new 'browser' tab, where user couldn't do anything with the pic (neither zooming nor rotating). PDFs didn't open at all.
Subscribe to:
Posts (Atom)