Category: Tutorials (page 2 of 4)

Make your life easier with IFTTT

I don’t know if you’ve ever heard of IFTTT (pronounce it like “gift”) but if you like to have everything automated around you, IFTTT is what you need.

IFTTT stands for “If This Then That”. Here is how it works:

Continue reading

TWIG – a powerful template engine for the PHP programming language

Twig is a template engine developed by Fabien Potencier for the PHP programming language. It is an open source product under a BSD License. It’s a very useful tool for building the templates for some PHP frameworks such as Symfony, Codeigniter and Drupal 8. I found it very easy to use, fast and powerful especially when I work on the views files as I can include some variables and logic in the HTML files.

Continue reading

CSS Preprocessors Are Awesome.

CSS preprocessors make CSS way better and anyone who writes a significant amount of styles should be using some kind of preprocessor. It’s understandable why some people are hesitant to switch to this workflow. It adds more complexity to the development process, you have to install extra stuff, maybe work from the terminal, and figure out how to automatically compile your code to regular CSS. It can be a lot of stuff to do, but while initially it may take more time and work to set up a project, it will pay off in the long run. The reason why CSS preprocessors exist is because CSS by itself can be pretty limited. Two very popular CSS preprocessors are Sass and Less, so I will focus on these two. With something like Sass or Less you get the ability to use variables, functions, mixings, you get nesting capabilities and more stuff that you just can’t do with css. Variables are one really useful thing you get with Sass and Less. You can define things like your site colors in one place, use the variables in your styles and if you ever need to change these colors you just go back and edit the variables. You would not have to go through your styles, copying and pasting new values or do a search and replace which can sometimes be unsafe.

Both Sass and Less also have these things called “mixins” which are these kind of reusable grouping of styles. Mixins can be useful to deal with something like CSS vendor prefixes, for example. To use the latest CSS tricks you sometimes have to repeat the style with a vendor prefix for each of the major browsers so you end up with a bunch of repeated stuff in your CSS, like so:

One thing you can do with a mixin is that you can wrap up all of those styles and call the mixin when you need it, and as many times as you need it. You can even pass parameters into a mixin and reuse it differently in different sections or pages.

Another cool thing about sass and less is the nesting capabilities. I’m a big fan of the nesting thing; here is an example of what I’m talking about:

And here is some Sass:

This nested structure helps you avoid repetition, organize your styles, and makes your CSS more closely resemble your HTML structure which I think is really neat. CSS just makes more sense to me written in this way. These are just some of the reasons why css preprocessors are awesome and why writers of css should be using them. You can get started with sass or less by checking out their documentation at http://sass-lang.com/ for sass and http://lesscss.org/ for less. So check them out, try them, they will make your css much better.

[TUTORIAL] Endless Scrolling

Endless Scrolling
Endless scrolling is a popular navigation tool these days. In a nutshell, it consists of loading the content of a page dynamically while the user scrolls to the bottom of the page. With this technology, the user doesn’t need to click on a button to access all of the content on a page, which, in most cases, is a better user experience.
Continue reading

Glitch Art (Part 2: Photoshop Raw Glitch)

It’s time for Part 2 of do-it-yourself Glitch tutorials! Click here to read Part 1 – The Basic Databend. This one is a little more complicated, but still fun and easy to do, with amazing results!
Continue reading

Glitch Art (Part 1: The Basic Databend)

Watch out, post-postmodernism, there’s a new art movement in town! “Glitch Art” is taking the web by storm. The concept of glitch art is simple: In a world of innovative technology, glitching explores the beauty of faults, bugs, and glitches in digital files.

How to Implement DoubleClick Floodlight Tags

If you work with HTML, you may have come across DoubleClick tags before. For those who don’t know, DoubleClick Floodlight is one method used by advertisers to track traffic on a web page, either through page views or clicks on a certain button. If you’ve tried to implement Floodlight tags before, you may know just how difficult they can be. This guide is to help aid the process of placing these tags correctly in your code!
Continue reading

[TUTORIAL] How To Choose Between Four Color Or Spot Color Printing

Printing Main
During a recent project, I ran into some bumps while prepping an Adobe Illustrator file for a printer. After a bit of research, I was able to answer a lot of my own questions regarding the differences between a Four Color Printing and Spot Color Printing. I’ve decided to take that experience and translate it into a few tips that will hopefully help anyone faced with a similar situation.
Continue reading

Fun Facts for Printing

Fun Facts for Printing

Have you ever noticed those little black crosshairs on packages? How about the dots or squares in different colors? These weird little symbols aren’t as out of place as you may think.
Continue reading

Billboards: 3 Simple Rules

Billboard Main
I live in Los Angeles. For better or for worse, I spend a large portion of my time in my car. When you drive a lot, you see a lot of billboards. When you see a lot of billboards, you forget most of them. What is the last billboard you can remember seeing? Do you remember the product? Do you remember what the product does? Every day when I drive I take note of the billboards on my route (safely, of course) and think about what’s working for them and what isn’t. I’ve collected my thoughts and some advice I’ve been given on the art of writing them in this post, which I hope you find helpful.
Continue reading

How to Make a Halloween Pumpkin Keg – Animated GIFs

Pumpkin Keg - HeaderPumpkin Keg - 1Pumpkin Keg - 2Pumpkin Keg - 3
Pumpkin Keg - 4Pumpkin Keg - 5Pumpkin Keg - 6

Here are some animated GIFs that can help you make your very own Pumpkin Keg for Halloween!

Bokeh Inspired Tutorial


Bokeh is the blurred effect you see in a photo when things are out-of-focus. In certain cases where the out-of-focus area contains a lot of light and different colors, the blurriness can create an interesting aesthetic that is pretty to look at. Bokeh has made its way from photos to the digital space as made evident by an abundance of bokeh-inspired wallpapers available for desktops and mobile phones. Here are some examples of bokeh in photography: Example 1, Example 2, Example 3, Example 4, Example 5.

The goal of this tutorial is to create an abstract bokeh-inspired wallpaper like the one displayed above.
Continue reading

Older posts Newer posts

© 2017 Oskoui+Oskoui Blog

Theme by Anders NorenUp ↑