I AM LISTENING TO
|
WHAT I LIKE
  • en
  • de
BLOG FILTER

I am currently building a custom slides / template builder for a project, with a lot of moving parts and dynamic logic.

As there are repeating patterns within the slides, each pattern and its logic needs to be neatly separated.  As the slides can be reordered and dropzones can be changed, I need to make sure logic doesn’t break and IDs get updated.

Before reassembling all templates, I am making sure that IDs match the slide and dropzone using a preg_replace_callback

One of the patterns is a simple tab setup, each has its unique ID defined like vl-tab_U1_S1_D1.

The function below passes the found matches through to the anonymous callback function in preg_replace_callback and offers outside data to the function using use($foo). The $dropzone object holds the current unit, slide and dropzone of the pattern, which can be used to replace the current ID with the correct one.

Really nice combo to make magic happen  ;)

BTW here a nice website to testdrive and tweak your Regex : https://regex101.com/

Enjoy coding …

readmore

Inspect styles in a simple, well-organized & beautiful way with this Chrome extension. You can select any object to get more specific information about them. Also a nice way to browse color palettes of websites you visit.

CSSPeeper

readmore

“The Datamuse API is a word-finding query engine for developers. You can use it in your apps to find words that match a given set of constraints and that are likely in a given context. You can specify a wide variety of constraints on meaning, spelling, sound, and vocabulary in your queries, in any combination.”

words with a meaning similar to ringing in the ears
/words?ml=ringing+in+the+ears

Datamuse API

readmore

Read passages from literature’s greatest such as H.G. Wells, instead the old boring Lorem Ipsums ;)

Fillerati

readmore
24. March 2017

Pirate IPSUM

The Lorem Ipsum Generator for all us pirates …ARG!

Pirateipsum.me

readmore

dom-to-image is a library which can turn an arbitrary DOM node into a vector (SVG) or raster (PNG or JPEG) image, written in JavaScript.

GitHub

More uptodate and faster than html2canvas, which I used before in a couple of projects.

readmore

Firefly jQuery Floating Pixels .

GitHub

readmore

Joyride is an easy to configure site tour wizard.

Joyride

readmore
9. February 2017

Chrome 56 .. whats new?

With Chrome 56, web apps can now communicate with nearby Bluetooth Low Energy devices using the Web Bluetooth API, position sticky is back – making it easy to create elements that scroll normally until sticking to the top of the viewport. And HTML5 by Default is enabled for all users.

Chrome 56 on iOS also adds the ability to scan QR codes directly within Chrome. So many thought QR-Codes were dead, well not so much !

Google

readmore

Rocket.Chat is am impressive Open Source Web Chat Platform, with a huge amount of features:

  • BYOS (bring your own server)
  • Multiple Rooms
  • Direct Messages
  • Private Groups
  • Public Channels
  • Desktop Notifications
  • Mentions
  • Avatars
  • Markdown
  • Emojis
  • Custom Emojis
  • Reactions
  • One touch Geolocation
  • TeX Math Rendering – inline math typesetting
  • Media Embeds
  • Link Previews
  • Sent Message Edit and Deletion
  • Transcripts / History
  • File Upload / Sharing
  • Scalable file sharing – S3 uploads with CDN downloads
  • Full text search
  • Live chat / Messaging call center
  • LDAP Authentication
  • CAS 1.0, 2.0 support for education institutions and hosting providers worldwide
  • Support for Okta SSO through SAML v2
  • I18n – Supports 22 Languages
  • Hubot Friendly
  • (Beta) Face to Face Video Conferencing (aka WebRTC )
  • (Beta) Multi-users Video Group Chat
  • (Beta) Jitsi integration
  • Audio calls
  • Multi-users Audio Conference
  • Screensharing
  • ….. more

Rocket.Chat

readmore