How algorithms shape our world

Kevin Slavin argues that we're living in a world designed for -- and increasingly controlled by -- algorithms. In this riveting talk from TEDGlobal, he shows how these complex computer programs determine: espionage tactics, stock prices, movie scripts, and architecture. And he warns that we are writing code we can't understand, with implications we can't control.


Read more


Batman Equation


Read more


Pseudo-Elements In CSS



A pseudo-element creates a phoney element and inserts it before or after the content of the element that you've targeted. They don't actually change anything in the document. Rather, they insert ghost-like elements that are visible to the user and that are style-able in the CSS.

To learn about the cool things you can do with pseudo-elements click here.

Read more


How to Stay Awake in Boring Meetings


Do you keep falling asleep in meetings and seminars?
What about those long and boring conference calls?
Here's a way to change all of that...

1. Before (or during) the next meeting, seminar, or conference call, prepare yourself by drawing a square. I find that 5" x 5" is a good size. Divide the card into columns-five across and five down. That will give you 25 one-inch blocks.

2. Write one of the following words/phrases in each block:
Synergy, strategic fit, core competencies, best practice, bottom line, revisit, expeditious, to tell you the truth (or "the truth is), 24/7, out of the loop, benchmark, value-added, proactive, win-win, think outside the box, fast track, result-driven, knowledge base, at the end of the day, touch base, mindset, client focus(ed), paradigm, game plan, leverage.

3. Now check off the appropriate block when you hear one of those words/phrases.

4. When you get five blocks horizontally, vertically, or diagonally stand up and shout "BULLSHIT!"

Read more


Mozilla Seabird

Mozilla Seabird, the new concept phone by the Mozilla Labs' Concept Series, is a  brilliant and an extraordinary concept for a mobile device. This concept is designed by Billy May as a response to the open call by the Mozilla for an "Open Web Concept Phone".

This is completely a fictional device which shows the possibility of future changes that happens to the mobile world. Mozilla has no plans to build or test it but they just want to bring out the crazy ideas out of their community users.

This is a brilliant concept which explores the future advances in the user interaction and the mobile content.

Read more


Under Construction Template for websites

At some point of time every website is in a phase of construction or maintenance  and it leaves a bad impression on users if its shows a blank page or gives a 404 error. So, whenever your site is being revamped you need to tell yours users that your website is under construction.

Below are some of the templates you can use for showing that your site is under construction and telling them to visit again later.












Read more


Defining Arrays in PHP

The simplest was to define an array variable is the array() function. Here's how:

<?php
// define an array
$position = array('first', 'second', 'third');
?>

The rules for choosing an array variable name are the same as those for any other PHP variable: it must begin with a letter or underscore, and can optionally be followed by more letters, numbers and underscores.
Alternatively, you can define an array by specifying values for each element in the index notation, like this:

<?php
// this is the same as the previous array
$position[0] = 'first';
$position[1] = 'second';
$position[2] = 'third';
?>

If you're someone who prefers to use keys rather than default numeric indices, you might prefer the following example:

<?php
// define an array
$numbers['one'] = 1;
$numbers['two'] = 2;
$numbers['three'] = 3;

// or is can also be defined as
$numbers = array('one' => 1, 'two' => 2, 'three' => 3);
?>

You can add elements to the array in a similar manner. For example, if you wanted to add the element 'four' to the $numbers array, you would use something like this:

<?php
// add an element to an array
$numbers['four'] = 4;
?>

In order to modify an element of an array, simply assign a new value to the corresponding scalar variable. If you wanted to replace 'third' with 'last', you'd use:

<?php
// modify an array
$position[2] = 'last';
?>

You can do the same using keys. The following statement modifies the element with the key 'three' to a different value:

<?php
// modify an array
$numbers['three'] = 4;
?>

Read more

About This Blog

This is a place where I write about the things I find interesting and are worth to share.