Why I don’t use the Windows Store

Today, I was trying to download an app to my account through the Windows Store.

There were a few issues that I faced while attempting this:

  • When I tryed to download the app, it wanted to download all of the other apparently more important apps like Windows Calculator and Get Office (even though I have Office 365 installed).

These things to Microsoft seem more important. Apparently, they wish that the core apps are to be installed first. Which really discourages me from even touching the Windows Store again. I don’t see how MS are going to get customers on the Windows Store if this is how it goes.

When it had downloaded all of the other more important apps. It then failed actually installing the app I wanted to use. Multiple times, did so.

For that reason, I am staying away from the Windows Store until this gets fixed and I can be proved that it is fixed by Microsoft themselves.

Why does 1and1UK take 30 minutes to change an SFTP Password

I logged into the 1and1 dashboard to take a backup of wordpress files for a client. And it turns out I forgot my SFTP password so I go and change it. This is what happens….

1and1ftppasswordchange30minutes

In what way does changing a SFTP account password take 30 minutes? All it is is changing a linux password. Is this done manually by 1and1 staff? I don’t understand.

Actions for Copy and Pasting – Plagarisim

Yesterday, when I was making a website (well fiddling with CSS), I stumbled accross two pieces of code.

They both are actions for when you or your user copys and pastes from a webpage.

Disabeling C+P Completley

The code below will disallow the user to either copy, cut or paste into or freom your site.

<body oncopy="return false" oncut="return false" onpaste="return false">

Just insert it instead of the opening of your body code. Because it is the opening of your body tag!

Add text to the clipboard when the user copies

This following one allows the user to copy and paste but when the user copies the text it adds a message to the clipboard as well as the text that was highlighted. The service we are using to do this is called Tynt.

<script type="text/javascript">
function addLink() {
	var body_element = document.getElementsByTagName('body')[0];
	var selection;
	selection = window.getSelection();
	var pagelink = "<br /><br /> Read more at: <a href='"+document.location.href+"'>"+document.location.href+"</a><br />Copyright &copy; c.bavota"; // change this if you want
	var copytext = selection + pagelink;
	var newdiv = document.createElement('div');
	newdiv.style.position='absolute';
	newdiv.style.left='-99999px';
	body_element.appendChild(newdiv);
	newdiv.innerHTML = copytext;
	selection.selectAllChildren(newdiv);
	window.setTimeout(function() {
		body_element.removeChild(newdiv);
	},0);
}
document.oncopy = addLink;
</script>

Just add the above code into your pages header tags and change the message and you should be ready to go.

The only downside to this solution is that this will not work in IE. But it does work in Chrome, Firefox, Safari etc.

Hi

This is my blog, on here I might post some of my pictures or other stuff that people write on blogs. So yeah. Start following the blog and you can get a notification when I post.