Monday, December 14, 2015

jQuery-DataEntry : Forms Validation Plugin

Forms validation plugin that supports AJAX requests, automatic decoration of fields, localized error messages. Integrable with Angular, Backbone, Knockout.

Features:

  • Provides a way to implement form validation with little coding
  • Provides a structure to manage the client side validation at application level: keeping it consistent in every form
  • Provides a flexible way to define validation rules, also involving AJAX calls or other asynchronous operations
  • Automatic field decoration
  • Automatic formatting logic

The post jQuery-DataEntry : Forms Validation Plugin appeared first on jQuery Rain.


by Admin via jQuery Rain

Lawrence Boone Selections

At Lawrence Boone Selections we discover and import the finest wines, from those of the most renowned wine regions in the world to those of the must obscure.
by via Awwwards - Sites of the day

Kris Kringle – how well do you know your colleagues?

It’s that time of year again. The Christmas decorations are in the shops, the diaries are filling up with functions and you’re being cajoled into the office Kris Kringle.

Taking a poll around the office, you won’t be surprised to hear that this well-intentioned Christmas tradition is fraught with angst! The very thought of giving and receiving a cheap gift from someone you don’t know particularly well is enough to turn even the most festive individual into a grumpy old scrooge.

We asked around for stories of the worst or weirdest Kris Kringle gifts ever. There’s the usual coffee mug, soap, or something totally inappropriate like the X rated stubby holder.

Then there is the down right weird.

  • “An electric blue plastic bird on a clip”
  • “A garden gnome and I don’t even have a garden”
  • “A t-shirt with Santa riding on a Harley with the motto “you better watch out” underneath”
  • “A 1993 calendar […and it wasn’t 1993]”
  • “A light for a bike and I don’t have a bike”
  • “A can of spaghetti”

You can’t blame the gift giver – how on earth can they give a great KK pressie when they hardly know the person that they are buying for? Think about when you’re on the giving end – that sense of complete confusion about what to buy for that colleague you barely have anything to do with.

  • Wine? (Turns out they have been sober for 8 months…….)
  • A car magazine? (Apparently cars aren’t their thing…….)
  • A new-fangled egg beater? (They are allergic to eggs……)

Even the things you think they might like could be totally off the mark.   

The best presents by far are from those that know you well and can pick the perfect thing for you – something that you like/need/want. 

As we head into the festive season, the KK disaster is a timely reminder that when making products for our customers, we must make sure we know that customer well, so that we can make a product that solves genuine problems – a product which is useful and adds value to someone’s life.  Contextual enquiries, surveys, workshops and usability tests are great methods for getting to know your customers.

So, if you are a part of an office Kris Kringle this year, use it as an opportunity to conduct a little research on your colleagues to find a gift that is right for them.

But keep your expectations low and be prepared to receive an Xmas sweater with inappropriate reindeer on it.

Bad Xmas sweaters

Google+

The post Kris Kringle – how well do you know your colleagues? appeared first on UX Mastery.


by Chris Gray via UX Mastery

#SocialMedia Strategy: How To Build Relationships With Influencer Marketing

Build Social Media Relationships With Influencer Marketing - #infographic

Did you know that 51 percent of digital marketers acquire better customers through influencer marketing, and that, nearly 6 in 10 marketers plan to increase their budgets for influencer marketing.

“The main goal of online marketing, and any marketing for that matter, is to drive people to take action. Whether it’s buying a product, sharing content, attending an event or any other action, companies are always striving to get consumers to interact.

You can do that through great copy-writing, clever advertising and plenty of other proven strategies. But one of most effective ways to get an audience to take action is through influencer marketing.”

This infographic from Sproutsocial explains what is influencer marketing, the different types and characteristics of social media influencers, how to approach influencers the right way and more.

by Irfan Ahmad via Digital Information World

Web Design Weekly #216

Headlines

What web framework should I learn?

Some wise words by Dave Smith, which really resonated with me and I’m sure many of you will find very fitting. If you happen to question yourself on what framework, tool or technology to learn, make sure you read this first. (medium.com)

WordPress 4.4 “Clifford” (wordpress.org)

Sponsor Web Design Weekly and reach 24,423 developers

Articles

Why I’m Excited About Native CSS Variables

CSS Variables are about to be mainstream very soon. In this post Philip Walton dives into why he is excited about them and how they differ from CSS pre-processing variables. (philipwalton.com)

Putting My Patterns through Their Paces

Ethan Marcotte shares his thoughts and processes around taking a patterns-driven approach, as opposed to focusing on pages while doing responsive design. (24ways.org)

Holding Off on High Fidelity

While designing, it’s important to remember that not everything needs to be perfect. The next time you eagerly launch Sketch or Illustrator ready to work up a new flow, consider stepping back and picking up a marker instead. (medium.com)

Chrome Dev Summit 2015 Notes

Notes and highlights from the recent Chrome Dev Summit, a two-day conference about “building beautiful and fast mobile web applications.” (danoc.me)

Critiquing your own design (invisionapp.com)

Tools / Resources

An Introduction To PostCSS

Drew Minns gives a great overview of what is PostCSS, the history and how to integrate it into your workflow. If you haven’t explored PostCSS yet, this is a great starting point. (smashingmagazine.com)

Bliss – A 3KB library for happier Vanilla JS

Want to use Vanilla JS but find native APIs a bit unwieldy? Bliss is for you. Lea Verou created Bliss and has a nice post about the process on her blog, which is quite inspiring. (blissfuljs.com)

Battling BEM

BEM is an awesome tool for writing modular CSS, but you’ll inevitably hit some roadblocks. These are the 5 most common issues and how to resolve them. (medium.com)

Getting Started With CSS calc()

If you haven’t had the time to dive into CSS calc() before, then this post by Ana Tudor is a must read. She starts off with a few basic examples and then dives into the power that calc() offers. (smashingmagazine.com)

Moving your website to HTTPS/SSL – tips & tricks (yoast.com)

Tools for debugging, testing and using HTTP/2 (cloudflare.com)

Inspiration

Build it With Me – Connecting Designers & Developers (builditwith.me)

Embracing Limitations (medium.com)

Jobs

Web Operations & Drupal Developer (DevOps/WebOps)

WiTH Collective are happily seeking a senior/mid-weight web operations developer with Drupal experience. We’re an inclusive, mid-sized, creative agency with a passion for data and some great clients to innovate with. Most importantly we recognise that it’s our people who have got us to where we are today; every one of us is eager to think, learn and collectively create. We’re excited to find another like-mind. (withcollective.com)

Designer at Baremetrics

Play a major role in the visual design and experience of Baremetrics. We’re looking for a designer who’s comfortable with both UI and marketing design who’s aware of and able to use design to help users comprehend complex business metrics. (baremetrics.com)

Need to find passionate developers? Why not advertise in the next newsletter

Last but not least…

The Infinity Hamburger Menu (zachleat.com)

The post Web Design Weekly #216 appeared first on Web Design Weekly.


by Jake Bresnehan via Web Design Weekly

Bluff Your Way through React at the Dev Christmas Party

If you're thinking of using React but are overwhelmed by the number of resources, have given up resisting the noise, or just want to keep abreast of the state of things, read on. If you already use React, hate React, still want to resist React…read on anyway for cliff notes on this weekend's gathering.

A bit of an over-react-ion

[author_more]

There is probably nothing that can be written on the subject that hasn't already been covered. Reading every resource in the awesome react repo is equivalent to completing the whole Encyclopaedia Britannica cannon. Time-consuming, impressive and enlightening. However, we only have until Saturday to avoid embarrassment and a coded tutorial isn't going to cover all the buzzwords likely to crop up.

Just tell me what React is, please

Ben Backbone says, "It's just the V in MVC so it's only 1/3 as good".

You say, "I find comparisons to MVC unhelpful nor intuitive, I play with Lego and focus on making beautiful blocks that can fit anywhere".

This is a building block:

({ someText }) => <div>{ someText }</div>

React is not a framework, it's a library which allows you to compose these building blocks to build maintainable interactive interfaces.

Now you're probably wondering why React is so daunting and why the scroll bar is far higher than you were hoping…well, like camping, you can't just go into the woods with your bivvy, you need this…and this…and this…

All I want for JSXmas is you

Alan Angular says, "You're putting HTML in your JS and are mixing concerns".

You say, "You're drunk Alan, go home…but also, it's a delightful way to express markup that can be transpiled to many things, looks like HTML so there's no new DSL I have to learn, and really my only concern is presenting a view of my data".

Yes JSX has probably taken the brunt of hatred, but it's what really set React apart and has now been adopted by other libraries. No more low level fiddling with the DOM, checking for attributes or worrying about cross browser quirks. I can write something that eerily looks like HTML but I can also use good old JS to manipulate it.

Virtual DOM, DOM, DOM, DOM, DOM

Edward Ember says, "The Glimmer engine repaints are far faster than the Virtual DOM".

You say, "While performance is a concern for me I very rarely/never build apps that need to render 10k ever changing list items. If the tech ticks the community, stability, maintainability, testability boxes, it's probably not dog slow.".

Interacting with the DOM is comparably slow, in that it usually takes up the most amount of time in a given operation compared to JS in memory. The React team developed the Virtual DOM (VDOM) to allow them to make a fast comparison of state changes in order to minimize the amount of slow work that needs to be done.

I don't know art, but I know what I like

Charlotte CSS says, "Inline styles are everything that's wrong with the internet. No :before/:after, patchy @media print support, un-DRY code, mixing concerns [Alan +1], extra overhead for :hover etc. need I go on?".

You think, "This all pales in comparison to the fact they don't even work with a strict content security policy *, glad she didn't mention that".

You say, "That's quite a lot of hyperbole before desert. Pseudo selectors are a hack anyway, I prefer not to use them, I like trees, DRY is what I don't like about your blanket CSS and once again, I'm just concerned with using my presentation layer for it's intended purpose".

Ok, so you don't have to use inline styles with React, you can be less bold and try CSS Modules (if you enjoy long class names in your HTML), one of the many CSS inlining tools or just–use–BEM.

I strongly suggest you give it a go though, it means your component's content and style is tightly coupled (which is what you want) and can be dropped in anywhere with confidence. Developers don't accidentally tread on each others feet and there's no ungainly naming convention that must be taught and has to be policed. JS is also great at doing the heavy lifting for animations.

* to avoid this ever so slight wrinkle you can use the Shadow DOM, take a look at react-shadow or maple for ideas.

You ‘n' I flow in the same direction

Kevin Knockout says, "With two way data binding you get highly interactive interfaces with little boilerplate code".

You say, "A unidirectional data flow is half the headache, debugging and testing in one direction is much more pleasurable, especially with pure functions that have no side effects".

So we have our building blocks written in what looks like HTML, with their own protected styles and will only update the DOM when they have to…but how do you make them show stuff? By using idempotent render functions with referential transparency that are as pure as un-driven snow of course ;-)

If you only remember one thing for the party, it's this core concept, React components are just functions. If you give them the same input, they should return the same output, you pass this data via props. However, components can also maintain their own state, which should be treated with kid gloves.

In a React application you ideally want one source of truth, smart components (which know about data and how to pass it on) and dumb components (which know nothing and do as they're told). The majority of your application should be made of dumb components, the worker bees, with higher order components orchestrating data to pass to them.

Continue reading %Bluff Your Way through React at the Dev Christmas Party%


by Craig Bilner via SitePoint

Five Simple Ways to Build Artificial Intelligence in 2016

The artificial intelligence and voice recognition space has been growing rapidly. The idea of having a personal assistant you can beckon with the words "Siri", "Alexa", "Cortana" or "Ok Google" which connects us to the web and the ever growing Internet of Things (IoT) is becoming ever more commonplace. Even Facebook started getting into the action, releasing its own AI assistant named "M" to a select few within Facebook Messenger. Soon enough, we shall all have artificial intelligence assistants at our disposal!

Luckily for developers who don't want to wait any longer, there are also a range of services available that make it simple to get started with the basics of building your own artificial intelligence system for whatever purpose you can dream up. Connect up your smart home, control a self made media center, deliver all sorts of information via a personal AI assistant... there are so many options available thanks to APIs and services. This lead up throughout 2015 has made 2016 the year where developers can really get into artificial intelligence and start building solutions of their own.

In this overview, we'll look at the services that exist which can enable developers to begin connecting their own apps and IoT devices to voice recognition and artificial intelligence throughout 2016.

Wit.ai

Wit.ai

Wit.ai is a service which provides a nice combination of both voice recognition and machine learning for developers. It provides the service to convert verbal commands into text and can also be trained up in how to understand those commands. Early in 2015, they joined Facebook and opened up the entire platform to be free for both public and private instances. Its development has continued since then with new features appearing throughout the year and no sign of things slowing down!

Wit.ai has two main elements to it that you set up within your app - intents and entities. An intent is what action an instruction should take (e.g. turn on a light). An entity is a specific object or piece of information that our AI needs to know about to enact that intent (e.g. which light? Is it a smart light? Should it understand particular colors the light can switch to?). Rather than needing to create intents from scratch, Wit.ai also provides access to existing intents from the developer community which is quite neat!

Wit.ai also has the concept of "roles", where it can learn to differentiate between entities in different contexts (e.g. numbers in different parts of an instruction can refer to different things - like an age, an order, a count). It also has some entity types built in that it can understand, such as temperature, URLs, emails, duration... etc.

There is a Wit.ai API for developers of iOS, Android, Node.js, Raspberry Pi, Ruby, Python, C, Rust and Windows Phone. It even has a JavaScript plugin for front end developers.

Api.ai

Api.ai

Api.ai is another service which provides similar capabilities to Wit.ai, with intents and entities. Just like Wit.ai, Api.ai is free to use. It also has a paid enterprise option which allows for this to be run on a private cloud internally and more from their services team. This is potentially valuable if your usage needs to be totally private.

One key focus of Api.ai that differs from Wit.ai is its "Domains". Domains are a whole collection of knowledge and data structures from Api.ai that are ready for use in every Api.ai agent (apps are called "agents" in Api.ai). Domains can include knowledge of common verbs and content types. As an example, it understands the different types of data that a request of "Book restaurant" needs, compared to "Book hotel". It has a range of real information about encyclopedia-like topics such as history, word definitions, people of significance (e.g. celebrities, writers, characters), movies, stock prices and a lot more.

Api.ai has SDKs for Android, iOS, the Apple Watch, Node.js, Cordova, Unity, C#, Xamarin, Windows Phone, Python and JavaScript. The Unity integration in particular might open this up to a range of additional platforms not listed above! It also can be integrated with Amazon's Echo and Microsoft's Cortana.

Jasper

Jasper

If you'd rather do more of the programming side of the AI yourself and you are a fan of Raspberry Pi, you could look into Jasper. Jasper is an open source personal assistant written in Python that runs on the Raspberry Pi Model B.

Jasper provides always-on voice control and some default modules for things like asking for the time, weather, news, Gmail inbox status, Facebook notifications, Spotify controls and more. For the Python developer who wants total control - Jasper might just be for you!

Continue reading %Five Simple Ways to Build Artificial Intelligence in 2016%


by Patrick Catanzariti via SitePoint