Why do we need an embeddable programming language like Lua?

Since you tagged the question as “Lua”, I’ll give you an answer in the context of this language. Introduction Lua is written in C (almost completely compatible with C89 standard; the incompatible features can be easily disabled, if needed, using compile-time switches) and has been designed to be easily integrated with C code. In the … Read more

how to display base64 encoded pdf?

for those who still can’t do it, i found this in someone else answer, but i don’t remember who… var objbuilder=””; objbuilder += (‘<object width=”100%” height=”100%” data=”data:application/pdf;base64,’); objbuilder += (myBase64string); objbuilder += (‘” type=”application/pdf” class=”internal”>’); objbuilder += (‘<embed src=”data:application/pdf;base64,’); objbuilder += (myBase64string); objbuilder += (‘” type=”application/pdf” />’); objbuilder += (‘</object>’); var win = window.open(“#”,”_blank”); var … Read more

Google sheet embed URL documentation

Here are some of the parameters I found for Google Docs (thanks goes to Joel http://obstruction.tumblr.com/post/60784440737/google-docs-url-parameters-rm-minimal-rm-full): Google Docs URL parameters: rm=minimal rm=full rm=embedded rm=demo rm=(render mode) ui=2 (select the interface version) chrome=false (full screen mode) frameborder=(size of border) q=(Whatever) Search Query gid=24 (Which sheet you want to display) widget=false single=true range=A2:AA26 Output=html format=(export spreadsheet) format=xlsx … Read more

Posting an embedded video link using the Facebook Graph API

It appears that you have to extract the URLs of the actual swf in the page and the thumbnail image yourself. For example, this seems to work: curl -F ‘access_token=…’ \ -F ‘message=Link to YouTube’ \ -F ‘link=http://www.youtube.com/watch?v=3aICB2mUu2k’ \ -F ‘source=http://www.youtube.com/v/3aICB2mUu2k’ \ -F ‘picture=http://img.youtube.com/vi/3aICB2mUu2k/0.jpg’ \ https://graph.facebook.com/me/feed It appears that you can generate a valid source … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)