Clipping text with ‘…’ using CSS3 text-overflow

Screen shot 2011-05-29 at 23.03.03

When you need to display an unknown amount of text in a constrained space you may need to somehow hide text that doesn’t fit. One way is to use overflow:hidden to quite brutally hide it. Doing this works, and it works cross-browser, but it can be difficult for the user to realise that text has been hidden since there is no visual indication of it. A property from CSS3 that can help improve the situation is text-overflow.

via Clipping text with CSS3 text-overflow by 456 Berea Street

text-overflow is actually a pretty awesome CSS3 property. It does exactly what we try to do in programming languages all the time when we have titles that can be too long for their space and you need to add ‘…’ after an x amount of characters. But text-overflow does it in CSS. It works in Safari, Chrome, Opera, and even in Internet Explorer 7+, but it doesn’t work in Firefox until Firefox 6. (Firefox 6? Yes, Firefox 6 will be released somewhere in August). No worries, Firefox 6- will respect the overflow: hidden property and will just hide the rest of the text. Read the rest of ‘Clipping text with ‘…’ using CSS3 text-overflow’ »

7 tips businesses can learn from Oprah

oprah

It is an extremely cheesy title of course, but Oprah is a fantastic brand we can all learn a lot from. The tips are not very different from the tips we would give to companies for a better business strategy. From diving into different verticals to transparent communication and caring about your customers (fans).

After 25 years her last show aired with 18 million viewers. A long line of celebrities came to say goodbye in her last episodes. Few other personalities have ever received such fanfare for an exit, which got Inc. thinking: how do you build a brand like Oprah?

Read the rest of ’7 tips businesses can learn from Oprah’ »

The four categories of NoSQL databases

nosql-logo

Very interesting read on the Monitis Blog about picking the right NoSQL tool. They dive into what it is, what’s possibly wrong with RDBMS, describe the different categories of NoSQL and the pros and cons of the different types.

Most people just see one big pile of NoSQL databases, while there are quite some differences. You couldn’t use a Key-Value store when you need a Graph database for example, while Relational database systems are all quite compatible.

Montis describes the following categories:

1. Key-values Stores

The main idea here is using a hash table where there is a unique key and a pointer to a particular item of data. The Key/value model is the simplest and easiest to implement. But it is inefficient when you are only interested in querying or updating part of a value, among other disadvantages.

Examples: Tokyo Cabinet/Tyrant, Redis, Voldemort, Oracle BDB, Amazon SimpleDBRiak Read the rest of ‘The four categories of NoSQL databases’ »

Did you know session_start is a blocking call in PHP?

Did you know that session_start() is a blocking call in PHP? I didn’t and it has some importance to know:

Now I didn’t know it but is seems that php’s session handling is blocking on a per request basis. Kinda makes sense if you think about it, that if two requests simultaneously try and change a session variable then you would get constancy issues. So php handles this by making session_start a blocking action and will wait for any other request to either finish or close the session using session_write_close.

So if you have a web application or website with a lot of concurrent calls for the same user having the same session, you could run into trouble. On of the easiest fixes is to only start your session when you need it and close it as soon as possible if you are done with the session.

I never thought about session_start() being blocking and I guess neither did you, but it could have serious performance implications when you are for example serving images built by PHP. Something to consider in your next project!

via session_start blocking in php | Tomrawciffe.co.uk

Route 53 and Elastic Load Balancing integration

Another batch of great new AWS features, this time for Route 53 (DNS) and ELB. One in particular is very interesting. Route 53 and Elastic Load Balancing integration. Werner Vogel explains why this is a big deal:

Due to restrictions in DNS a root domain “zone apex” cannot be mapped to another domain name using a CNAME record. This has caused customers who wanted to have the root of their domain e.g. allthingsdistributed.com point to same location where for example www.allthingsdistributed.com is pointing to jump through complex redirect hoops. Through a better integration between Elastic Load Balancing and Route 53 we can now offer the ability to map the zone apex to ELB without all the redirection muck. ELB and Route 53 work together closely to ensure that if the address of the load balancer changes this is quickly reflected in Route 53.

That’s why Mobypicture is running on www.mobypicture.com instead of mobypicture.com and we had to run our own loadbalancers and scaling metrics for our moby.to url shortener. From now on we can completely switch to ELB, including all other benefits.

More information can found on the Elastic Load Balancing and the Route 53 detail pages or on Werner’s blogpost “New Route 53 and ELB features: IPv6, Zone Apex, WRR and more

In between startups

In the 1.5 years I’m CTO of Mobypicture we have accomplished many things. We grew with 17,500%, released our first MobyNow platform last year and a couple of months ago a complete new release of our MobyNow technology, embracing even more of the realtime and aggregation power that is available. We are very close on releasing MobyNext, our new version of Mobypicture, which will bring more implicit awareness to our users and is able to build adventures around their content. We have implemented Scrum as our main project management method and almost never miss a deadline anymore, while still staying very flexible in our project planning. We are ahead of the crowd with our implementations of HTML5 and CSS3, which ensures the same experience on web, iPad and mobile. All things I am really proud of.

After this process of professionalization and preparing Mobypicture for its next phase, I noticed how much I miss being an entrepreneur.

That’s why I’ve taken a big step and will lay down my position as CTO of Mobypicture to become an entrepreneur once again.  Read the rest of ‘In between startups’ »

Do you really know what you’re doing as an entrepreneur?

An overview of Dutch start-ups

I have read two good posts last week, both from young entrepreneurs claiming they do not really know what they are doing as an entrepreneur. An interesting point of view I would like to share.

The first is from Ben Pieratt, founder of Svpply.com:

I enjoy naming products and I think I have a talent for it. I have an understanding of design that extends well past the aesthetic. I am proud of all this because I have worked for it.

But I have zero experience or expertise in building a company. I’ve never worked at a web or product startup, I’ve never worked in a healthy team environment. The design studio I co-owned was flawed to its core, and the companies I’ve worked at have had mediocre management.

/via Varsity Bookmarking My Job Pt.1 — I have no idea what I’m doing.

A brave and honest statement to make. And it kept me thinking. Do I really know what I am doing as an entrepreneur? Or is it just luck? Read the rest of ‘Do you really know what you’re doing as an entrepreneur?’ »

The best way an entrepreneur has spent his FU money

derek-handley-the-hyper-factory

I love the term FU (F*ck you) money. It’s the amount of money you need to be totally independent from everybody.

Kevin Rose got his FU money after selling his first bit of Digg and it made it easier to say no to investors because he personally didn’t need the money anymore. His decision could be purely based on a business decision, what was best for Digg.

I have some FU money, not as much as Kevin, but it gives me a certain level of independency from employers and customers, because I know I will make it without their money. It gives you just the right amount of freedom and still the urge to create your next success story.

This guy however has an amazing response on why he is buying these three things with his FU money: Read the rest of ‘The best way an entrepreneur has spent his FU money’ »

MySpace founder likes to buy MySpace back and why I think that is a bad idea

chrisdewolfe-tbi

Business Insider wrote about MySpace cofounder Chris DeWolfe is interested in buying his old company back:

I cant talk about whether we have any interest in buying Myspace now—its a confidential process—but its the biggest property for sale at what, in this market, would be a somewhat reasonable price. You always care if theres an asset that you feel is undervalued when you had a plan to develop it.

/via MySpace Founder Hints He’d Like To Buy It Back

I’ve been there and I think that’s a bad idea. Read the rest of ‘MySpace founder likes to buy MySpace back and why I think that is a bad idea’ »

How-To: Handle expired access tokens /by Facebook developers

It happens at Mobypicture all the time; expired access tokens from Facebook. There are several ways to solve this and this post at the Facebook Developer Blog handles them all. I didn’t know for example that your access tokens are rejected when you change your password at Facebook. Quite annoying actually, because I like to change my passwords once in a while and my Oauth connections should still be working afterwards.

This post will walk you through how you can ensure that you are handling and recovering from these situations gracefully. It assumes that you are familiar with our server-side authentication flow.

We will discuss 4 different scenarios:

  1. The token expires after expires time (2 hours is the default).
  2. The user changes her password which invalidates the access token.
  3. The user de-authorizes your app.
  4. The user logs out of Facebook.

/via How-To: Handle expired access tokens – Facebook developers.

Note: The solution Facebook provides only works when you have people login regularly on your website, because you need to show your users with invalid access tokens the Permission Request pop-up again.