Wszystkie wpisy, których autorem jest admin

A 3D printed grotto generated with an algorithm

Post pobrano z: A 3D printed grotto generated with an algorithm
first image of the post

Somewhere between architecture and art, this project by Michael Hansmeyer and Benjamin Dillenburger takes advantage of both 3D printing and algorithms. This Grotto was commissionned by the Centre Pompidou in Paris for an exhibition about 3D printing. It displays an interesting look at the type of new architectural structures that 3D printing could bring to the world.

5 Tips to Make your Stunning Website Convert Better

Post pobrano z: 5 Tips to Make your Stunning Website Convert Better
first image of the post

Having a knock out site design is no longer enough to convert browsers into buyers. Your users must see your site as one in a thousand regarding quality, appearance, and usability. Conversions only happen if a site user is bowled over and knocked out by the page on their screen.

Wake Up Your Visitors

You need a telepathic connection with each guest. That’s not possible, but you can see what they are doing and interpolate their thinking and intentions from their actions.

Sometimes you can wake up someone who is browsing in an absentminded fashion with the right stimulus.

One of the best ways to wake up your visitors is to install OptinMonster.

Screenshot source

OptinMonster will help you send wake-up calls to everyone visiting your site. In addition to customer segmentation options and exit pop-ups, OptinMonster lets you convert any image into a two-step opt-in process, eliminating the need for a landing page. The software also includes A/B testing, floating bars that no-one can ignore and mobile-specific pop-ups, all of which add up to a complete marketing suite.

Wow Your Visitors

If your website is boring nobody will hate you, but nobody is going to love you either.

Even you cannot be all things to all people. Some people are going to hate you.

Bland is never going to win the conversion game. Be different, aim your website design at your target profile and people in your target group will love you. Those are the only ones who matter to your business, and the haters will fade into insignificance.

Consider using different fonts from the standard Arial, Times, Calibri and Verdana. Your audience might love your eccentricity. This Designer Daily article will give you a few ideas.

KISS

Clutter is bad news, even on a 28-inch monitor. On a phone or tablet screen, a cluttered web page is a disaster. It is hard to have too much negative space on a display because it helps the important things like CTA buttons to stand out. Use large buttons for all important links so that mobile users can click more easily.

Make your buttons unique by downloading MaxButtons’ customizable web buttons collections.

Screenshot source

Some of the MaxButtons collections are free, but the whole deal, including every collection, is a steal at $19.

One Action per Page

Avoid confusing visitors over what they should do. Each page should have one purpose in your sales process, and you must make it clear to visitors what you want them to do.

Some pages will have valuable content and others will have articles where you share your high-level expertise or your take on industry news. All will increase a reader’s confidence in your company. The desired user action on these pages might be to have them sign up as an email subscriber, which is a big step in the conversion process.

Worship Your Visitors

Your business exists to serve, and you had better remember that.

You need your visitors more than they need you.

Make guests feel important with photos of previous customers. You could link to your YouTube channel of former clients’ stories.

Use case studies (with pictures) to show how you have helped other customers and be sure to include testimonials.

Get Your Visitors to Worship You as a Hero

Every hero has personality, so include headshots and other photographs. You don’t need to bare it all, but bare enough that people can see you are a real person who has feelings and problems occasionally.

Mentioning your triumphs will help visitors see you as a hero, so don’t be shy about any awards you may have won or your membership of trade organizations. Include press mentions and any books that reference you and your work.

If you have published ebooks, then use their images to boost your credibility. If you have photos of you at industry events, either as a speaker or an attendee, then include them on your website.

Spread Manna to Your Tribe

Mobilize your website to deliver solutions to your visitors. They will love you for it, but ordinary content won’t work. Only the best will do, so discard regular and even high-level content and replace it with sky-level writing and photos that wow.

Every word and image on your website must solve users’ problems.

Leaders have always used gifts and bribes to persuade people to join their tribes, and if presidents can do it, so can you.

Offer incentives for people to sign up to receive your emails, but also offer free downloads and giveaways as rewards for visiting your page.

The Short Version

No site will appeal to everyone, but make sure yours appeals to individuals who fit the target profile.

The best websites do not resemble text-rich throwbacks from the 1990s; rather, web users have learned to expect pages to react to their actions. They expect pages to do things, not just ‘sit there.’ Plugins that personalize the web experience like OptinMonster and MaxButtons are the only way to convert browsers into buyers.

Musings on HTTP/2 and Bundling

Post pobrano z: Musings on HTTP/2 and Bundling

HTTP/2 has been one of my areas of interest. In fact, I’ve written a few articles about it just in the last year. In one of those articles I made this unchecked assertion:

If the user is on HTTP/2: You’ll serve more and smaller assets. You’ll avoid stuff like image sprites, inlined CSS, and scripts, and concatenated style sheets and scripts.

I wasn’t the only one to say this, though, in all fairness to Rachel, she qualifies her assertion with caveats in her article. To be fair, it’s not bad advice in theory. HTTP/2’s multiplexing ability gives us leeway to avoid bundling without suffering the ill effects of head-of-line blocking (something we’re painfully familiar with in HTTP/1 environments). Unraveling some of these HTTP/1-specific optimizations can make development easier, too. In a time when web development seems more complicated than ever, who wouldn’t appreciate a little more simplicity?

As with anything that seems simple in theory, putting something into practice can be a messy affair. As time has progressed, I’ve received great feedback from thoughtful readers on this subject that has made me re-think my unchecked assertions on what practices make the most sense for HTTP/2 environments.

The case against bundling

The debate over unbundling assets for HTTP/2 centers primarily around caching. The premise is if you serve more (and smaller) assets instead of a giant bundle, caching efficiency for return users with primed caches will be better. Makes sense. If one small asset changes and the cache entry for it is invalidated, it will be downloaded again on the next visit. However, if only one tiny part of a bundle changes, the entire giant bundle has to be downloaded again. Not exactly optimal.

Why unbundling could be suboptimal

There are times when unraveling bundles makes sense. For instance, code splitting promotes smaller and more numerous assets that are loaded only for specific parts of a site/app. This makes perfect sense. Rather than loading your site’s entire JS bundle up front, you chunk it out into smaller pieces that you load on demand. This keeps the payloads of individual pages low. It also minimizes parsing time. This is good, because excessive parsing can make for a janky and unpleasant experience as a page paints and becomes interactive, but has not yet not fully loaded.

But there’s a drawback to this we sometimes miss when we split assets too finely: Compression ratios. Generally speaking, smaller assets don’t compress as well as larger ones. In fact, if some assets are too small, some server configurations will avoid compressing them altogether, as there are no practical gains to be made. Let’s look at how well some popular JavaScript libraries compress:

Filename Uncompressed Size Gzip (Ratio %) Brotli (Ratio %)
jquery-ui-1.12.1.min.js 247.72 KB 66.47 KB (26.83%) 55.8 KB (22.53%)
angular-1.6.4.min.js 163.21 KB 57.13 KB (35%) 49.99 KB (30.63%)
react-0.14.3.min.js 118.44 KB 30.62 KB (25.85%) 25.1 KB (21.19%
jquery-3.2.1.min.js 84.63 KB 29.49 KB (34.85%) 26.63 KB (31.45%)
vue-2.3.3.min.js 77.16 KB 28.18 KB (36.52%)
zepto-1.2.0.min.js 25.77 KB 9.57 KB (37.14%)
preact-8.1.0.min.js 7.92 KB 3.31 KB (41.79%) 3.01 KB (38.01%)
rlite-2.0.1.min.js 1.07 KB 0.59 KB (55.14%) 0.5 KB (46.73%)

Sure, this comparison table is overkill, but it illustrates a key point: Large files, as a rule of thumb, tend to yield higher compression ratios than smaller ones. When you split a large bundle into teeny tiny chunks, you won’t get as much benefit from compression.

Of course, there’s more to performance than asset size. In the case of JavaScript, we may want to tip our hand toward smaller page/template-specific files because the initial load of a specific page will be more streamlined with regard to both file size and parse time. Even if those smaller assets don’t compress as well individually. Personally, that would be my inclination if I were building an app. On traditional, synchronous „site”-like experiences, I’m not as inclined to pursue code-splitting.

Yet, there’s more to consider than JavaScript. Take SVG sprites, for example. Where these assets are concerned, bundling appears more sensible. Especially for large sprite sets. I performed a basic test on a very large icon set of 223 icons. In one test, I served a sprited version of the icon set. In the other, I served each icon as individual assets. In the test with the SVG sprite, the total size of the icon set represents just under 10 KB of compressed data. In the test with the unbundled assets, the total size of the same icon set was 115 KB of compressed data. Even with multiplexing, there’s simply no way 115 KB can be served faster than 10 KB on any given connection. The compression doesn’t go far enough on the individualized icons to make up the difference. Technical aside: The SVG images were optimized by SVGO in both tests.

Side note: One astute commenter has pointed out that Firefox dev tools show that in the unsprited test, approximately 38 KB of data was transferred. That could affect how you optimize. Just something to keep in mind.

Browsers that don’t support HTTP/2

Yep, this is a thing. Opera Mini in particular seems to be a holdout in this regard, and depending on your users, this may not be an audience segment to ignore. While around 80% of people globally surf with browsers that can support HTTP/2, that number declines in some corners of the world. Shy of 50% of all users in India, for example, use a browser that can communicate to HTTP/2 servers (according to caniuse, anyway). This is at least the picture for now, and support is trending upward, but we’re a long ways from ubiquitous support for the protocol in browsers.

What happens when a user talks to an HTTP/2 server with a browser that doesn’t support it? The server falls back to HTTP/1. This means you’re back to the old paradigms of performance optimization. So again, do your homework. Check your analytics and see where your users are coming from. Better yet, leverage caniuse.com’s ability to analyze your analytics and see what your audience supports.

The reality check

Would any sane developer architect their front end code to load 223 separate SVG images? I hope not, but nothing really surprises me anymore. In all but the most complex and feature-rich applications, you’d be hard-pressed to find so much iconography. But, it could make more sense for you to coalesce those icons in a sprite and load it up front and reap the benefits of faster rendering on subsequent page navigations.

Which leads me to the inevitable conclusion: In the nooks and crannies of the web performance discipline there are no simple answers, except „do your research”. Rely on analytics to decide if bundling is a good idea for your HTTP/2-driven site. Do you have a lot of users that only go to one or two pages and leave? Maybe don’t waste your time bundling stuff. Do your users navigate deeply throughout your site and spend significant time there? Maybe bundle.

This much is clear to me: If you move your HTTP/1-optimized site to an HTTP/2 host and change nothing in your client-side architecture, it’s not going to be a big deal. So don’t trust blanket statements some web developer writing blog posts (i.e., me). Figure out how your users behave, what optimizations makes the best sense for your situation, and adjust your code accordingly. Good luck!


Cover of Web Performance in Action

Jeremy Wagner is the author of Web Performance in Action, an upcoming title from Manning Publications. Use coupon code sswagner to save 42%.

Check him out on Twitter: @malchata


Musings on HTTP/2 and Bundling is a post from CSS-Tricks

Did CSS get more complicated since the late nineties?

Post pobrano z: Did CSS get more complicated since the late nineties?

Hidde de Vries gathers some of the early thinking about CSS:

There is quite a bit of information on the web about how CSS was designed. Keeping it simple was a core principle. It continued to be — from the early days and the first implementations in the late nineties until current developments now.

The four main design principles listed are fascinating:

  • Authors can specify as much or little as they want
  • It is not a programming language by design
  • They are agnostic as to which medium they are used for
  • It is stream-based

So… did it?

I think lots has changed since the early nineties, but not really things that touch on how we apply CSS to structured markup.

Direct Link to ArticlePermalink


Did CSS get more complicated since the late nineties? is a post from CSS-Tricks

Let’s say you wanna open source a little thing…

Post pobrano z: Let’s say you wanna open source a little thing…

Let’s say you’ve written a super handy little bit of JavaScript. Nice! Well done, you. Surely, the world can benefit from this. A handful of people, at least. No need to keep this locked up. You’ve benefitted from open source tremendously in your career. This is the perfect opportunity to give back!

Let’s do this.

You’re going to need to chuck it into a GitHub repo. That’s like table stakes for open source. This is where people can find it, link to it, see the code, and all that. It’s a place you can push changes to if you need to.

You’ll need to pick a license for it. If the point of this is „giving back” you really do need to, otherwise, it’s essentially like you have the exclusive copyright of it. It’s somewhat counter-intuitive, but picking a license opens up usage, rather than tightening it.

You’ll need to put a README in there. As amazingly self-documenting you think your code is, it isn’t. You’ll need some plain-language writing in there to explain what your thing is and does. Usage samples are vital.

You’ll probably wanna chuck some demos in there, too. Maybe a whole `/demos/` directory so the proof can be in the pudding.

While you’ve made some demos, you might as well puts some tests in there. Those go hand-in-hand. Tests give people who might use your thing some peace of mind that it’s going to work and that as an author you care about making sure it does. If you plan to keep your thing updated, tests will ensure you don’t break things as you make changes.

Speaking of people using your thing… just how are they going to do that? You probably can’t just leave a raw function theThing () in `the-thing.js`! This isn’t the 1800’s, they’ll tell you. You didn’t even wrap an IIFE around it?! You should have at least made it a singleton.

People are going to want to const theThing = require("the-thing.js"); that sucker. That’s the CommonJS format, which seems reasonable. But that’s kinda more for Node.js than the browser, so it also seems reasonable to use define() and return a function, otherwise known as AMD. Fortunatly there is UMD, which is like both of those at the same time.

Wait wait wait. ES6 has now firmly arrived and it has its own module format. People are for sure going to want to import { theThing } from './the-thing.js';, which means you’re going to need to export function theThing() { }.

So what should you do here? Heck if I know. I’m sure someone smart will say something in the comments.

Whatever you decide though, you’ll probably separate that „module” concern away from your authored code. Perhaps a build process can help get all that together for you. Perhaps you can offer your thing in all the different module formats, so everybody is happy. What do you use for that build process? Grunt? Gulp? Too old? The hip thing these days is an npm script, which is just some terminal commands put into a `package.json` file.

While your build processing, you might as well have that thing run your tests. You also might as well create an uglified version. Every library has a `the-thing.min.js`, right? You might as well put all that auto generated stuff into a `/dist/` folder. Maybe you’ll even be super hip and not check that into the repo. If you want this thing, you grab the repo and build it yourself!

Still, you do want people to use this thing. Having the public repo isn’t enough, it’s also going to need to go on npm, which is a whole different site and world. Hopefully, you’ve done some naming research early, as you’ll need to name your package and that must be unique. There is a variety of other stuff to know here too, like making sure the repo is clean and you’ve ignored things you don’t want everyone to download with the package.

Wait what about Yarn? Isn’t that the new npm or something? You might want to publish there too. Some folks are hanging onto Bower as well, so you might wanna make your thing work there too.

OK! Done! Better take a quick nap and get ready for the demands to start rolling in on the issues board!

Just kidding everything will be fine.


Let’s say you wanna open source a little thing… is a post from CSS-Tricks

How to Draw a Sloth Step by Step

Post pobrano z: How to Draw a Sloth Step by Step

Final product image
What You’ll Be Creating

Sloths
are amazing creatures, so different from everything we know. The seem
to have a very chill attitude towards life, and they’re definitely not
lazy—they just don’t see the need to hurry! Sloths are also unbelievably
cute, so we’re going to draw one today. It will be a simple
illustration perfect for beginners, and later you can use it to create a
colorful vector illustration with Nataliya Dolotko!

1. How to Draw a Sloth’s Body

Step 1

Our sloth will be hanging from a tree branch, and its back will be neatly curved. So start the drawing with this clear curve.

sloth body curve

Step 2

To draw a uniform curve of the body, we may feel it with circles. First a big circle…

sloth body shape

… then a smaller one…

sloth body circles

… an even smaller one…

sloth body drawing

… and a similar one on top for the head.

sloth sketch head

Step 3

You can now outline the body.

sloth body sketch

2. How to Draw a Sloth’s Legs

Step 1

Draw the limbs that are the closest to us first. To keep the illustration simple, draw them as simple curves.

sloth back leg
sloth arm

Step 2

Draw a tree branch above the sloth. Feel free to use a ruler for this, but it’s not necessary.

sloth hanging branch

Step 3

Draw the foot holding the branch.

sloth foot

Step 4

Draw the outline of the leg going from the foot towards the body.

sloth leg curve
sloth leg full

Step 5

Draw the hand—it will be more rounded than the foot.

sloth rounded hand

Step 6

Use the same technique as before to outline the arm.

sloth arm curve
sloth arm complete

Step 7

There’s another pair of limbs we need to draw. It should be easy—just mirror the curves:

sloth other leg curve
sloth other arm curve

Step 8

Make the other leg complete the same way as before:

sloth other foot
sloth other leg  shape
sloth other leg complete

Step 9

And another arm, too:

sloth other hand
sloth other arm

Step 10

Finally, add the long claws holding the branch.

sloth claws direction
sloth claws full

3. How to Draw a Sloth’s Face

Step 1

Draw the outline of the sloth’s flat face.

sloth face shape

Step 2

Add some basic guidelines to see the proportions better.

sloth vertical guide line
sloth horizontal guide line

Step 3

Draw the circle in the lower half—this will be the muzzle.

sloth muzzle

Step 4

Draw the smile across the muzzle.

sloth smile

Step 5

Add some details to the smile.

sloth smile detail

Step 6

Draw the nose.

sloth nose
sloth nose bridge
sloth noseholes

Step 7

Draw the eyes.

sloth eyes shape
sloth eye patches
sloth eyes

Step 8

Draw the dark pattern along the face.

sloth face pattern

Step 9

Draw the cute fringe on the forehead.

sloth face fringe

4. How to Finish the Drawing of a Sloth

We’re
going to draw the final lines now. If you’re drawing traditionally, use
a darker tool for it, or place a new sheet of paper over the sketch.

Step 1

Outline parts of the limbs, leaving space for other outlines.

sloth limbs outline

Step 2

Outline the nose.

sloth nose outline

Step 3

Draw the details of the eyes. First, plan the shine dots…

sloth eyes shine

… then fill everything outside of the shine dots…

sloth dark eyes

… and slightly darken the lower dots (they come from reflected light).

sloth reflect light eyes

Step 4

Outline the cute mouth.

sloth cute mouth

Step 5

Add the „mask”.

sloth mask

Step 6

Outline the whole face.

sloth face outline
sloth fringe outline

Step 7

Outline the claws. Try to make them all very similar.

sloth claws outline

Step 8

Outline the whole body and the branch.

sloth body outline
sloth branch outline
sloth full outline

Step 9

Finally, thicken some of the lines to make the drawing visually more interesting without any colors or shading.

sloth fancy lines

So Cute!

Good
job! You can now take your drawing and turn it into a vector
illustration. And if you’re interested in other tutorials like this,
check one of these:

how to draw cute sloth step by step

IKEA Lion Man – Relax into greatness

Post pobrano z: IKEA Lion Man – Relax into greatness

IKEA UK’s latest advertising campaign features Lion Man, a symbol of the importance of relaxing and recharging in one’s living room so we can go on to do great things. Based on the fact that lions spend up to 18 hours a day at rest, the campaign follows the story of a Lion Man as he recharges in his living room before springing to life and revealing himself to be a father in costume preparing for his child’s party. The IKEA Lion Man campaign aims to highlight the importance of recharging our bodies and minds and inspire people to relax more, by celebrating the living room as the one room in the home where we can unashamedly rest and relax. The online film connects viewers with the Wonderful Everyday site ikea.co.uk/wonderfuleveryday .

IKEA Lion Man

Shot in a style that parodies a wildlife documentary, the film follows the Lion Man relaxing languidly in his living room. We see him stretching on a cushion-filled sofa in front of the TV, then reading a book on an armchair, sprawling on a rug before peaceful yoga practice. The Lion Man is constantly at rest. But as he naps and light fades, he hears a wild rumble outside in a faux dreamlike sequence. We’re given a visual cue of an antelope, perhaps the Lion Man’s prey. Fully recharged, the Lion Man springs to the ready: it’s time for action! The door flies open and he is greeted by the energetic stampede of his daughter and her friends at her birthday party. The recognisable voice of Rikard Wolf then encourages the audience to “relax into greatness”.

Laurent Tiersen, IKEA UK and Ireland Marketing Manager, said, “Modern lives often leave us with the feeling that we should always be on the go, making enjoying downtime feel a bit indulgent. We work around the clock, consuming information 24/7 and are ‘always on’ which puts a toll on us all. We’ve all forgotten how to relax, especially in the living room.

Our hope is that “Lion Man” – the latest instalment of the Wonderful Everyday campaign – helps and inspires the nation to reclaim their living rooms. Challenging everyone to think of it as a personal sanctuary to relax and recharge – because when you feel fresh, great things will follow.”

Created by Mother London, the campaign leads in press, TV, cinema, digital and outdoor media, with additional filmic content optimised for social and mobile. The campaign reaches its peak with a 60” online and cinema film along with 60” and 20” TVC across the UK and Ireland on 15th July, before going live across print, digital and outdoor. The campaign has full support of PR, social and CRM.

IKEA Lion Man
IKEA Lion Man
IKEA Lion Man

IKEA Lion Man Credits

The IKEA Lion Man campaign was developed at Mother London by executive creative directors Hermeti Balarin and Ana Balarin, creatives Roberto Kilciauskas and Pedro Rosa, and agency producer Carol Oakley.

Filming was shot by Us directors Chris Barrett and Luke Taylor via Academy Films with director of photography Patrick Duroux, executive producer Lizzie Gower, producer Lucy Gossage, production designer Drogo Michie, wardrobe artist Rebecca Hale, and Lion Man costume artist Andy Gent at AMS.

Editor was Bill Smedley at Work Post.

Post production was done at MPC by colourist Jean-Clément Soret.

Sound was produced by Sam Ashwell at 750mph.

Music is “By The Sleepy Lagoon”, by Eric Coates, with additional production by Paul Sumpter.