Archive

Archive for the ‘Life’ Category

Social Network Links

April 11th, 2009

Wanted to post some Social media links on a site that I’m building but couldn’t find any good summary information, well, so here we go.

share_facebook

 

 
Facebook

http://www.facebook.com/sharer.php?u=’+encodeURIComponent(u)+’&t=’+encodeURIComponent(t) 

u = url to site
t = title of link

share_delicious

 

Delicious
“http://delicious.com/save?url=”+u+”&title=”+t;
u = url to site
t = title of link
m = metadata for link

share_myspace

 

MySpace
“http://www.myspace.com/Modules/PostTo/Pages/?u=”+u+”&sa=2&t=”+t+”&c=” 
u = url to site
t = title of link

share_digg

 

Digg
“http://digg.com/submit?url=”+u+”&title=”+t+”&bodytext=”; 
u = url to site
t = title of link

share_twitter

 

Twitter
“http://twitter.com/home/?status=”+t+” “+u
u = url to site
t = title of link

share_stumble

 

 
Stumbleupon

“http://stumbleupon.com/submit?url=”+u+”&title=”+t 
u = url to site
t = title of link

Createad a simple js file to use for html pages or why not Flash applications. Send the types; facebook,delicious,myspace,digg,twitter or stumbleupon. 
socialShare(type, link, title);

function socialShare(type,link,title,meta)
{
	var shareURL;
	var u = encodeURIComponent(link);
	var t = encodeURIComponent(title);
	var m = encodeURIComponent(meta);
	if(!m) m = t;
	var w = 626;
	var h = 436;
	switch(type)
	{
		case "facebook" :
			shareURL = "http://www.facebook.com/sharer.php?u="+u+"&t="+t;
			break;
		case "delicious" :
			shareURL = "http://delicious.com/save?url="+link+"&title="+title+"&q="+title+"&meta="+encodeURIComponent(m);
			break;
		case "myspace" :
			shareURL = "http://www.myspace.com/Modules/PostTo/Pages/?u="+link+"&sa=2&t="+title+"&c=";
			break;
		case "digg" :
			shareURL = "http://digg.com/submit?url="+link+"&title="+title+"&bodytext=";
			w = 730;
			h = 550;
			break;
		case "twitter" :
			w = 760;
			shareURL = "http://twitter.com/home/?status="+title+" "+link
			break;
		case "stumbleupon" :
			shareURL = "http://stumbleupon.com/submit?url="+link+"&title="+title
			break;
	}
	window.open(shareURL,"sharer","toolbar=0,status=0,scrollbars=yes,resizable=yes,width="+w+",height="+h);return false;
}

Download Social Share javascript.

Flash, Life , , ,

Bandwidth tester for server.

March 12th, 2009

So I needed to try out some speed from a company server. You can always take a bandwidth test on your computer to see your own bandwidth speed (http://www.speedtest.net/), but when placing files on a server you also need to consider that server speed, the connection and the whole way of roadblocks to your computer.

First step is to create a dump file, I just took a ordinary file and renamed it to “data.bin”.

Next step is the speed tester itself. If I figure it out correctly I can take the downloaded time and run it against the downloaded bits to get the speed.

var downloadTime:Number = (getTimer() - timeMarker) / 1000;
var bits:Number = file.bytesTotal * 8;
var bps:Number = bits / downloadTime;

Something like “bps = download size in bits / download secs”

To think of here is that when calculating file size 1mb = 1024kb, but when going for bits whe have 1kbps = 1000bps. Look at this (http://web.forret.com/tools/bandwidth.asp).

How to use
So anyway I created this simple zip file, unzip it on your server, place a file/files in the same folder and then set the paths from the html file, look at line 92“flashVars”, “files=data.bin”, use , to add more files to load as an array.

This way I could for e.g. check that my connection is 9.6mbit to the net but the speed from my hosting server is 4.5mbit.

Download the Server Speed Tester. bandwidthtester

Life , , , ,

iPhone Stop Motion

February 23rd, 2009

We looked at some stop motion at work and decided to create our own test with an Iphone. Nothing fancy pancy, have a look =)

 

Life , ,

Scandinavians in Facebook

February 6th, 2009

I took out some information from Facebook about members and sex in the Scandinavian and looked up some population statistics from wiki. Here are the results;

Percent of members based from country population.

chart_percent

 

 

 

 

 

 

 

 

 

Here’s a overview of the countries population, facebook memeber and sex. Think it’s kinda cool that the majority of members are girls. Rock on I say. Rock on!

statsfacebook

Life

Working in the “Cloud”

December 11th, 2008

I’m currently starting a new company called Hello There (http://hellothere.se/) and what I’ve done the latest time is to evaluate and setup the infrastructure for our company. I’ve compare working in the “old” way or trying something new as the “cloud” (http://en.wikipedia.org/wiki/Cloud_computing).
I really love the whole idea about the cloud. The basic idea is that you host all your content online and as well use online tools for your workflow. One of the best things as well is that your don’t need to know what’s going on with the technical infrastructure.

I started to compare and look for services that could fill my company need and when we work as a “agency” it’s a lot of big files (videos,images,binary development). Search and went thru a big list of services until I found a couple that looked interesting for evaluation.

Some of the goals that they needed to fulfill is:
1.) Hosting uptime > 95% (ideal is 99%)
2.) Security (SSL, hopefully extra encryption)
3.) Easy to learn
4.) Easy to use

Points 1 & 2 are important for the company and to maintain our security policy for the clients. Points 3 & 4 are important for the employees where there is a wide range of age (25-50) and where everyone has worked the “old” way for many years.

Now we have our services running and I will probably reveal them over time when we have worked in a couple of projects and really tried them but here is the experiences so far. I will then as well describe how we work and what hardware we are using and why. Everything tries to go mobile as much as possible, always connected, always updated.

Costs:
When comparing running Microsoft Exchange Servers, having own backups servers with technical support, buying desktop applications the “cloud” solution is much cheaper. I’ve slices the cost with 80%/employee if I compare from my previous company.

Security:
Uptime guarantees is not always there and that could create some real problems in tight project delivery situations. The security varies between the different services but most uses SSL, very few gives VPS for data storage. Some services doesn’t have enterprise solutions with admin accounts and that could really create problems with user logins and sharing/grouping data.

General:
All services has their own standard for handling accounts and passwords and there are few services that actually talks to each other. The majority of the services feels like “beta”. The whole “could” community works perfect for a single user or a small group that are very online aware, but for companies it’s not quite there yet. The support varies here as well depending on time-zone and what your pay for your account. A good thing about many services is that it’s easy to upgrade/downgrade the account with users or features.

Future:
For this to take of and become the new standard there are a couple of things that I would like to see.

1.) Standard login
Why not e.g. continue on “Open ID” (http://openid.net/) and make it for enterprise solutions like a online LDAP where you control your accounts for all online services. Today you need to control it for each services alone and with the different standards this is a real pain in the ass.

2.) Security
The security for handling data with SSL, VPS e.g. company information has much higher demands than personal users or small independent companies. To often backup the data is important as well, some services has every 10 minutes and some 1/day.

3.) Uptime
The uptime is critical, having the services go down during work would create a direct impact that none of your files are available.

4.) Sharing
Create more open API;s and implement others API;s to their own services so that content and info can be shared as much as possible. For e.g. many services has own calendars when everyone already has a calendar elsewhere, instead the end user needs to control all linking, update at the correct place.

Conclusion:
When comparing the costs with what you get, comparing the workflow and access to correct files, access from anywhere e.g. the “cloud” wins in my book. I have no expertise in this subject but I had no problem setting up the services and create a complete infrastructure for my company. What I love about it is that you pay often monthly fee so you have control over the expenses and you will get the new features as they are being developed so no expensive license costs.

The “cloud” is still in “beta” mode and I figure it will take a year or two before it starts to get more structured and easier for the end-users to use multiple services. The perfect scenario is a common “portal” where you administrate your company employees and services, and from there choose what services you want to use that fits your company workflow and needs. The “portal” hosts the actual data so you could change the services and go for something else, maybe in another life =)

The Winner: CLOUD

Life , , , ,

Updated Blog

December 10th, 2008

I’ve just updated my blog.
Went from b2evolution to wordpress

Had some problem getting add media bar in admin to work and there was no reel good way to swap, hope I havn’t missed some posts and links. If you notice anything please tell me.

When I get some time I will update so it looks a little better.

If anyone has any good plugin pointers please let me know, cool features or embeding flash, galleries e.g.

Life ,

Hello There

December 4th, 2008

Hello There

Wrote for a couple of months ago that I went freelancing, since then I’ve hold a couple of lectures, writing courses and doing some small work.

Lately I’ve joined up with a couple of friends and we started “Hello There”. More info of what we do, who we are and so on will be published in the future. Right now I’m just glad to say that one of our main focus is games.

This as you might have noticed has slowed down my blogging but I will try to keep up when I find interesting stuff.

Love Hello There!

Life ,

Education group (Webbh07)

November 3rd, 2008

This post is used for my course with the class “Webbh07″ at KY-Lindholmen/Gothenburg/Sweden. Welcome to their wonderful website.

I will post assignments, project files and the presentation material public for the class and for anyone that’s interested.
Read more…

Life ,

Google Analytic – API

August 11th, 2008

What’s up with Google Analytic. Wonderful service for HTML available content but what about offline content?
The javascript API provided by Google blocks sends when not all values are fulfilled.

So how to do this in an AIR application, or a Widget???
After a lot of Google Searching online and Help Sections there is no answer. What I got to so far is that it’s the Cookie handling that mess up the sending of tracker code.

Using a HTMLLoader in AIR I’m trying to get it to send my tracker data but with no success. Everything goes fine and with the startup of the _gat (JavaScript API Class), all values even cookie looks correct.
The problem gets when trying to run the _trackPageview(”); it starts to loose data, mainly the cookie and then the API stops to work.

A bug in the API or some security problem? Anyone out there has any suggestion please advice.

Life , ,

Blog Header Images

August 3rd, 2008

Tried to look at AMFPHP and by doing that I need to learn some basics in PHP. So with that I did a little image header swap for my blog. Did 4 small images.

The PHP looks like this.

// Change this to the total number of images in the folder
$total = "4";
// Change to the type of files to use eg. .jpg or .gif
$file_type = ".jpg";
// Change to the location of the folder containing the images
$image_folder = "images";
// You do not need to edit below this line
$start = "1";
$random = mt_rand($start, $total);
$image_name = $random . $file_type;
 
echo "<div id=\"header\" style=\"background-image: URL($image_folder/header-bg$image_name);background-repeat:no-repeat\">";

Life , , , ,