How to Re-Enable Zoom for Websites That Block It in Safari for Your iPhone « iOS Gadget Hacks

Ever get frustrated that you can’t zoom pages on a mobile device (e.g., Facebook)? Here’s a bookmarklet/favelet that’ll re-enable zoom on any web site.

Then, when you go to a page you want to ‘Zoom’, just click the ‘Zoom’ bookmark and that page will be zoomable.

1. Make a bookmark
(you need to edit something, so it doesn’t matter which bookmark)

2. Change it’s name to ‘Zoom’

 

3. Replace URL of this bookmark with JavaScript Code
Now, just delete the URL address of the webpage you initially bookmarked (http://www.qz.com/… in the above screenshot) and replace it with the following JavaScript snippet.

javascript:document.querySelector(‘meta%5Bname=viewport%5D’).setAttribute(‘content’,’width=device-width,initial-scale=1.0,maximum-scale=10.0,user-scalable=1′);

Tap Done on the keyboard, then Done once again in Bookmarks to finish the process.

Source: How to Re-Enable Zoom for Websites That Block It in Safari for Your iPhone « iOS Gadget Hacks

Posted in Uncategorized | Comments Off on How to Re-Enable Zoom for Websites That Block It in Safari for Your iPhone « iOS Gadget Hacks

Apple open sources Swift | Ars Technica

Interesting Stuff!

Compiler and standard libraries will be available for OS X, iOS, and Linux.

Source: Apple open sources Swift | Ars Technica

Posted in Uncategorized | Comments Off on Apple open sources Swift | Ars Technica

Bryan Bixler: Battling Anorexia, Pt. 1 | The Dr. Oz Show

 

Bryan Bixler: Battling Anorexia, Pt. 1 | The Dr. Oz Show.

Posted in Uncategorized | Tagged | Comments Off on Bryan Bixler: Battling Anorexia, Pt. 1 | The Dr. Oz Show

TAKING ON GLOBAL FOOD WASTE WITH A SIMPLE SHEET OF PAPER | INDEX: Design to Improve Life®

 

FreshPaper uses spices to combat food decay
FreshPaper uses spices to combat food decay

TAKING ON GLOBAL FOOD WASTE WITH A SIMPLE SHEET OF PAPER | INDEX: Design to Improve Life®.

While the world’s farmers harvest enough food to feed the planet, it is estimated that up to 50% of the global food supply is wasted. Fenugreen is taking on this enormous, yet often overlooked, global challenge with a simple design, FreshPaper. Low-cost, compostable and infused only with organic spices, FreshPaper keeps produce fresh for 2-4x longer, and holds the potential to change how the world keeps its food fresh.

Posted in nifty, whoa! | Tagged , , | Comments Off on TAKING ON GLOBAL FOOD WASTE WITH A SIMPLE SHEET OF PAPER | INDEX: Design to Improve Life®

WordPress + Xampp on Mac Update Permissions Problem | A different story…

WordPress + Xampp on Mac Update Permissions Problem | A different story….

To perform the requested action, WordPress needs to access your web server.

[OT] Enable ‘user’ dir in Mac OS X (/Users/*/[user]/* → http://localhost/~[user]/*) notes:

https://community.apachefriends.org/f/viewtopic.php?f=29&t=69163&p=247767#p247767

 

The solution: Edit your httpd.conf to run as your username for the user and staff for the group.

Open httpd.conf in TextEdit:

sudo open -e /Applications/XAMPP/xamppfiles/etc/httpd.conf

Change:

User nobody
Group nogroup

To:

User your_mac_username
Group staff

Posted in apache, WordPress | Tagged , | Comments Off on WordPress + Xampp on Mac Update Permissions Problem | A different story…

Markdown cheat sheet | warpedvisions.org

Markdown cheat sheet | warpedvisions.org.

And to Copy TITLE tag to TITLE and h1:

 

GREP: Title: (.*)

REPLACE: Title: 1n#1

Posted in Uncategorized | Comments Off on Markdown cheat sheet | warpedvisions.org

RegexAdvice – Extract strings in-between curly braces

RegexAdvice – Extract strings in-between curly braces.

http://regexadvice.com/blogs/mash/archive/2007/06/01/You_2700_ve-got-your-sub_2D00_matches-in-my-matches.aspx

Raw Match Pattern:
\{([^}]*)\}

$matches Array:
(
 [0] => Array
 (
 [0] => {Mr. Jones}
 )

 [1] => Array
 (
 [0] => Mr. Jones
 )


Michael

“In theory, theory and practice are the same. In practice, they are not.”
Albert Einstein

Posted in Uncategorized | Comments Off on RegexAdvice – Extract strings in-between curly braces

FireQuery is a Firebug extension for jQuery development

FireQuery is a Firebug extension for jQuery development.

FireQuery is a Firefox extension integrated with Firebug

  • jQuery expressions are intelligently presented in Firebug Console and DOM inspector
  • attached jQuery data are first class citizens
  • elements in jQuery collections are highlighted on hover
  • jQuerify: enables you to inject jQuery into any web page
  • jQuery Lint: enables you to automatically inject jQuery Lint into the page as it is loaded (great for ad-hoc code validation)
Posted in javascript | Comments Off on FireQuery is a Firebug extension for jQuery development

How to organize your wordpress blogroll links?

How to organize your wordpress blogroll links?.

You can have the link in the following orders:

Orderby
– ‘id’
– ‘url’
– ‘name’
– ‘target’
– ‘description’
– ‘owner’ – User who added bookmark through bookmarks Manager.
– ‘rating’
– ‘updated’
– ‘rel’ – bookmark relationship (XFN).
– ‘notes’
– ‘rss’
– ‘length’ – The length of the bookmark name, shortest to longest.
– ‘rand’ – Display bookmarks in random order.

So then you would have to do this:

<?php wp_list_bookmarks(‘title_li=&category=2&orderby=id’); ?>

Posted in WordPress | Comments Off on How to organize your wordpress blogroll links?

Some useful jQuery sliders

With the ubiquity of jQuery, I became a bit frustrated with the preponderance of Flash sliders everywhere. I never was a big fan of requiring plugins to see critical site content, be it the ‘splash’ screen (remember FutureSplash?) or Flash-based navigation.

I was looking from some jQuery sliders, and came up with a link to a few I liked:

With so many options to replace Flash-based sliders & galleries, I wonder why folks are still using Flash-based sliders & galleries? Don’t get me wrong… I still think there’s a pace for Flash, but navigation, splash pages, galleries and entires web sites are not one of them. Or if they must be used, please provide a rich experience for those of us ‘stuck’ with an iPhone, iPad, Android or other mobile device!

Posted in javascript | Tagged | Comments Off on Some useful jQuery sliders