Thursday, December 29, 2016

Android battery drain: clear cache

From How to fix the Android battery drain issue with these quick tricks:

  • Clear the app cache for misbehaving apps, if you know which ones:  Settings | Apps, tap the app, tap Storage, and then tap Clear Cache.
  • If you don't know which apps, then try clearing cache for all apps:  Settings | Storage | Cached Data.  Tap OK when it prompts to clear.  Reboot.
  • If those don't fix the problem, then clear the system cache (you may have to do a search for your device and "clear system cache").

Thursday, November 3, 2016

Sibling Selectors

https://www.w3.org/TR/selectors/#sibling-combinators

WTF, forms?

Friendlier HTML form controls with a little CSS magic at wtfforms.com.
With the sibling selector (~), we use the :checked state to trigger a makeshift checked state on the custom control.

Wednesday, November 2, 2016

Pagination with rel=“next” and rel=“prev”

From Google Webmaster Central Blog:
Much like rel=”canonical” acts a strong hint for duplicate content, you can now use the HTML link elements rel=”next” and rel=”prev” to indicate the relationship between component URLs in a paginated series.

Wednesday, August 17, 2016

TinyPNG: Smart PNG and JPEG compression

TinyPNG:
"TinyPNG uses smart lossy compression techniques to reduce the file size of your PNG files. By selectively decreasing the number of colors in the image, fewer bytes are required to store the data. The effect is nearly invisible but it makes a very large difference in file size!"

Monday, May 30, 2016

SP2013 master page notes

Webparts in rich edit fields
  • need AjaxDelta around editable area in order to insert webparts in them (see thread: Why do my Web Part properties not show up?)
  • sometimes you just need to insert another webpartzone to be able to insert webparts in some placeholders
  • not all the html editor controls could have webparts inserted; has to do with the hidden webpartzone used for those being in PlaceHolderMain (see http://sharepoint.stackexchange.com/questions/59423/cannt-add-web-part-to-publishingwebcontrolsrichhtmlfield)

If added/removed contentplaceholders in master:
  • if you add/remove a contentplaceholder, you need to create a temporary page layout using that master page and see what changed in the head section and compare that with your existing page layouts and make similar changes;