Embed activity feed of a public Facebook page without forcing user to login/allow

To get the activity feed of a public Facebook page, like White Collar, follow these steps: 1) Get your App-id and App-secret by choosing an existing app or creating a new one at this url: https://developers.facebook.com/apps/ 2) Get an access token by making a GET request to this url: https://graph.facebook.com/oauth/access_token?client_id=” + APP_ID + “&client_secret=” + … Read more

How to embed images in a single HTML / PHP file?

A solution to embed an image directly in an HTML page would be to use the data URI scheme For instance, you could use some portion of HTML that looks like this : <img src=”data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGP C/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9YGARc5KB0XV+IA AAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAF1J REFUGNO9zL0NglAAxPEfdLTs4BZM4DIO4C7OwQg2JoQ9LE1exdlYvBBeZ7jq ch9//q1uH4TLzw4d6+ErXMMcXuHWxId3KOETnnXXV6MJpcq2MLaI97CER3N0 vr4MkhoXe0rZigAAAABJRU5ErkJggg==” alt=”Red dot” /> There are other solutions on the wikipedia page I linked to … Read more

android: using ActivityGroup to embed activities

Yes, you’d implement an ActivityGroup, which will be the container of your other Activities. When the user clicks one of the buttons, you’d get a reference to the LocalActivityManager, and use it to start, and embed the inner activity. Something like this: LocalActivityManager mgr = getLocalActivityManager(); Intent i = new Intent(this, SomeActivity.class); Window w = … Read more

Hiding the toolbars surrounding an embedded pdf?

If you use any browser besides Firefox browser, then the following code will embed a PDF file without any toolbars: <embed src=”http://URL_TO_PDF.com/pdf.pdf#toolbar=0&navpanes=0&scrollbar=0″ width=”425″ height=”425″ /> Please note that this does not work on Firefox See the Web Designer’s Guide blog post for details. See the full list of embedded tag parameters for more information.

Embed a PowerPoint presentation into HTML

Google Docs can serve up PowerPoint (and PDF) documents in it’s document viewer. You don’t have to sign up for Google Docs, just upload it to your website, and call it from your page: <iframe src=”https://docs.google.com/gview?url=https://www.yourwebsite.com/powerpoint.ppt&embedded=true” style=”width:600px; height:500px;” frameborder=”0″></iframe>

Can I embed a .png image into an HTML page?

There are a few Base64 encoders online to help you with this, and this is probably the best I’ve seen: http://www.greywyvern.com/code/php/binary2base64 As that page shows your main options for this are CSS: div.image { width:100px; height:100px; background-image:url(data:image/png;base64,iVBORwA<MoreBase64SringHere>); } Or the <img> tag itself, like this: <img alt=”My Image” src=”data:image/png;base64,iVBORwA<MoreBase64SringHere>” />