How to mass unfollow on Twitter!

Yesterday, I wanted to unfollow everyone on an old account on Twitter. When searching Google for a tool to do this for me I found the ones that existed either weren’t very good or wanted a fee to do it (the tools that required a fee had many other options and features such as only unfollowing people who aren’t following you). After trying a couple of the tools I still had not managed to unfollow all the users I was following so decided to try and find my own solution and here it is:

1) Login to Twitter and click Following.

2) Scroll down to the bottom until everyone your following has loaded (Tip: press the end button to get to the bottom quicker).

3) Open up your browser console (CTRL + SHIFT + J for Chrome).

4) Copy & Paste the following Javascript and hit enter:

var el= document.getElementsByClassName('button-text unfollow-text');
for(var i=0; i<el.length; i++){
    el[i].click();
}

5) Wait a second or two depending on how many users you are following.

Done!

Do what you want to do.

In September 2012 I began to study for a degree in Computer Science at the University of Manchester. By January time I found myself really not enjoying it there and wanting to leave. I did not have a back up plan and knew if I left I would be unemployed, deciding whether to leave or not was a big decision to make.

I had a brief look into the possibility of getting an IT job without a degree and thought it would be possible and I would be enjoying myself more than at the University. I knew if I stayed I would be there for another 3 years which I really didn’t like the thought of so made the decision to leave. I knew I wanted to get a job in IT, and after looking at job listings I decided to aim for a technical support role in IT (as opposed to software development) as there were many more roles available and generally less qualifications were required. At heart I am a software developer but decided to be realistic since my main goal was to get a job in IT (beggars can’t be choosers!) and began to study for IT exams (COMPTIA A+) to eventually get a job in a technical support role.

I am currently writing this on a train, paid for by the company I now work for. I have gained my dream job working for a major IT company as a software developer, gaining this job makes my decision to leave University, the biggest but best decision of my life.

Ultimately, we only get one chance to live and why waste it doing something you don’t enjoy.  We have to take chances sometimes to get what we want or need. This should obviously be taken with a pinch of salt, everyone  has to work and not everyday can be perfect but if you find everyday is a chore then maybe it is time to take a chance.

When I left University I knew I wanted to get a job in IT since it is what my passion is, and felt capable of getting a job. Luckily, I was able to make the decision to leave without pressure to stay (eg. Financially if it was a job).  If you are in a job you really don’t enjoy, maybe you could start studying during the hours you don’t work towards a job you are passionate about and think you would enjoy. It may be hard working essentially doing maybe twice as much work but as long as you put the work in it will pay off eventually.

I feel like the following speech by Steve Jobs sums it up the best.

 

The Monty Hall Problem (Part 1)

This part of the post is about explaining the problem itself and why the answer is what it is, whilst the second part is about computing the answer and “proving” it. Therefore, if you are already familiar with the problem skip to part 2 of the post.

Since reading about the problem in a book when I was young, the monty hall problem, has always been something I have found interesting, and found myself on the Wikipedia page for it multiple times (including when it was used in one of Derren Browns shows, and in the movie 21). So I decided to write a program that demonstrates it and write a blog post about it.

The “Problem”

Imagine you are on a game show and the host shows you 3 closed doors and asks you to pick one – either 1, 2 or 3. You are told that behind 2 of the doors there is a goat, but behind one of the doors is a grand prize of a car. After you have made your choice, let’s say you choose door number 1, the host (knowing which doors contain the goats) will then open one of the doors you haven’t picked to reveal a goat. For this example let’s say he shows you door number 2. After, showing you the goat behind this door, you are then given the option to swap your choice to the remaining door if you wish.

The question is, do you have a better chance of winning if you stick to your original choice (door 1) or are you more likely to win if you switch (to door 3)?
Or worded differently:
What are the chances of the car being behind door number 1, and the chances of it being behind door number 3?

The Solution

It seems like the answer is obvious – there is a 50% chance of winning whether you stick with your choice or if you switch, and therefore switching has no benefit. This answer is actually incorrect, despite it seeming so simple and clear.

The fact is you actually have 1 in 3 (33.33%) of chance of winning if you stick with your initial answer BUT if you decide to switch your chances of winning increase to 2/3 (66.66%).

Explanation

The main reason the chance of winning changes from 1/3 to 2/3 is because the host has to choose one of the losing doors.
On my first choice there is 1 in 3 chance of picking the grand prize, and a 2  in 3 chance of picking a goat.
If I pick a goat on my first choice (which is more likely), the host will then show the door which doesn’t have the car behind it, meaning when I switch I will win the car.

The wikipedia page does a nice job of explaining why the odds change, or if you prefer here is a youtube video which explains why (Skip to 2m 40s for the explanation of why):

The second part of this post can be found here where I discuss the program I created based on the problem and the results it produces.

 

Whose number is it anyway?

Recently, I got a new mobile contract with Orange through Dial-a-phone since my old contract (also with Orange) was up (at last!). Since the new contract had been ‘purchased’ through Dial-a-phone instead of Oranges’ upgrade process I was given a new number. Not a problem, I thought, I’ll just transfer the old number to the new contract…

Turns out it’s not as simple process as I thought it would be!

My first thought was since it was already a number on Orange I would be able to transfer it easily and I would only have to make the one phone call. It was during this phone call I learnt there is going to be more to it than I had expected. Here’s a summary of how it went:

Me: Could I transfer this number to a new contract which is with Orange.
Orange: That isn't possible.
Me: Oh... If I get the PAC code could I ring up from the new sim and use it to
    transfer the number?
Orange: You can't transfer a number from Orange to Orange unfortunately.
Me: Okay, in that case can I make sure the contract will end in 30 days
    looks like I will just have to keep the new number.
*Asking to end the old contract - you have to give 30 days otherwise it will turn
*into a monthly rolling contract, despite the actual contract length being up *
Orange: Yes, I will put that through now.
Me: Hmmmm... Actually if I get the PAC code for this number, then transfer it to a
    different network then back to Orange on the new contract would that work?
Orange: ... Yes that would be the long way round I guess but should work.
Me: Okay. could I get the PAC code then.

Obviously, I was then given the PAC code. It seems very odd to me that a network can not transfer a number from one sim to another, even through a PAC code? It seems even more odd that I am able to transfer it to a different network then back, why don’t they have the ability to just transfer it internally?

Now armed with the PAC code I went to GiffGaff and T-Mobile and ordered a free sim, with plans of transferring the number to one of them then back to Orange. To do this you first have to top-up the sim, seeing as T-Mobiles minimum top-up was £5 and GiffGaffs was £10 I used T-Mobiles sim. So I topped up, rang them and and gave the PAC code Orange had given me, not a problem, I was told the number would be transferred the next day. Great, I thought!

I waited 2 days to allow the transfer to go through could then use the T-Mobile sim with the number I am trying to keep. All I thought I would have to do now was get the PAC code from T-Mobile and give it to Orange on the new contract and that’d be it. NOPE.

I got the PAC code from T-Mobile without a problem, then rang Orange to give them the PAC code. That phone call went like this:

*after giving Orange the PAC code*
Orange: Okay and what's the number?
Me: *gives the number*
Orange: Okay... Erm... Right...
Orange: Are you sure that's the correct number *reads it back*
Me: Yes
Orange: It's already on a different Orange account, so I can't transfer it.
Me: Right, I have the T-Mobile sim in a mobile right now which is accepting calls
    to that number, so how can it still be on an Orange account?

Unfortunately, the person at Orange I was speaking to couldn’t help me. So now I am left with my old number currently on T-Mobile and Orange! Surely, that should not be possible, when I gave the PAC to T-Mobile and the number was transferred it should have been disconnected from Orange, but clearly it hasn’t been.

I’m going to try again in a few days and hope that the situation at the moment is just due to the transfer being recent and Orange hasn’t been updated that the number is no longer on their network!

Update (28/03/2013):
Turns out after transferring the number over to T-Mobile in the first place, although it had transferred, it takes a while for it to be processed on Oranges’ end that the number is no longer “with them”. So I have now been able to transfer it back to Orange on the contract I want!