All posts by rhodzy

Pokemon Go + 30yo Male

Well today has been an interesting day, for some time I have wondered what the whole #PokemonGO phase was about so I decided to put the app on my phone. BIG MISTAKE.

Seriously you have to go around and see rustling in bushes which means there could be a Pokemon about. The aim is to catch as many different ones as you can. When you come across a Pokemon you have to try and capture it. This happens by throwing a ball and trying to capture the creature.

It’s so addictive, me and 3 other mates all grown men walking around the office carpark trying to find these Pokemon! I don’t even like Pokemon!

I ever found one at my desk at work!

So yeah…if you want to have a life, not get addicted then DO NOT download the app onto your phone. Your life will be over!

Restart SharePoint 2013 Workflows with PowerShell

Recently I had an issue where my #SharePoint list #workflows wouldn’t run and were in suspended state. The reason for the suspended state was an item already existed in the destination folder where the workflow was supposed to move the file to.

I tried lots of tricks to get the workflows to automatically start, I had about 250 instances of this happening and no scripts I found online would resolve this issue. They just wouldn’t cancel / resume.

In the end I removed the workflow from the list (which killed all instances) and then republished. Perfect. Now how to start them all again? Hmm

Well because these are #SharePoint2013 Workflows that run on a workflow management server, the normal scripts for starting them are different. To cut it short, use the following #script and all should be good.

$sourceWebURL = ‘http://YourURL
$sourceListName = ‘YourListName
$TargetWorkflow = ‘YourWorkflowName
$spSourceWeb = Get-SPWeb $sourceWebURL
$spSourceList = $spSourceWeb.Lists[$sourceListName]
$items = $spSourceList.getItems()

# Getting a Workflow manager object to work with.
$wfm = New-object Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager($spSourceweb)
# Getting the subscriptions
$sub = $wfm.GetWorkflowSubscriptionService()
# Getting the specific workflow within the list of subscriptions on the specific list. (SP2010 associated workflows basically)
$WF = $sub.EnumerateSubscriptionsByList($spSourcelist.ID) | Where-Object {$_.Name -eq “$TargetWorkflow”}
# Getting a Workflow instance in order to perform my commands.
$wfis=$wfm.GetWorkflowInstanceService()

Foreach($item in $items){
# Creating the dictionary object I need to parse into StartWorkflow. This could be most other workflow commands.
$object = New-Object ‘system.collections.generic.dictionary[string,object]’
$object.Add(“WorkflowStart”, “StartWorkflow”);
$wfis.StartWorkflowOnListItem($WF, $item.ID, $object)
}

All you need to do is edit the BOLD text above and you should be on your way. Copy and Paste it into PowerShell ISE and save as PS1. Then run the file through the SharePoint 2013 Management Shell.

Good Luck!

Creating default SharePoint permissions groups (Hostname site collection)

When you create a #Hostname #SiteCollection within SharePoint 2013 you will notice that the default user groups aren’t there. This is because they aren’t created when you use #PowerShell to create a hostname site collection.

To get these groups back, this can be done via PowerShell or simply doing the following:

Navigate to http://yoursitename/_layouts/15/permsetup.aspx

From this page you will see the following:

groups

Simply click on OK and the groups will be available.

The important part of the URL is

_layouts/15/permsetup.aspx

Have fun with your permissions!

NextScripts: Social Networks Auto-Poster

Oh for some time now I have been using NextScripts: Social Networks Auto-Poster, thisplugin allows me to automatically post blog posts to social networks. It’s quite handy but recently I noticed a lot of my posts weren’t being sent. Now because I don’t really use the WordPress interface, I use a third party blogging tool, I wasn’t aware there was an issue. Until I went to install some more plugins. I noticed this particular one was stating

“Not Enough Memory allowed for PHP. You have 32 MB. You need at least 64MB”

Because I run all my websites on my own server I couldn’t contact the hosting company because… I guess I am the hosting company. So a little digging around and I found that I needed to edit the php.ini file on my server. Easier said that done when you don’t know where it is… so I did a little digging around and came up with the following:

SSH into your server (if unix) with the following:

ssh username@domain.com

Then run the following command to locate the PHP.ini file:

php –ini

This will display where you php.ini file is and can be edited with the following command:

nano /usr/local/lib/php.ini

The above location may be different for you depending on your server but when you launch the following command the php.ini file will be opened within the editor and about half way down the file you will notice a memory option which is set to 32mb as default. Simply change this to 64mb and write out the file to save.

I didn’t need to reboot my server or restart any services, the changes were done instantly and the plugin started working again!

Until next time!

Atkins Again!

Well the diet tomorrow starts again, this time I’m going to make sure I stick to it. I’ve done it a number of times but every time I get out of #PhaseOne I can never seen to stick at it, I always think because I’ve lost lots of weight it’s ok to just going back to my rubbish diet. This time I’m going to make sure I do it right and completely change the way I eat.

My diet at the moment is dreadful, It consists of lots of carbs, lots of sugar and basically I don’t look after myself. So this is it. The time to make a change. I know the #Atkins diet is drastic but if you follow it correctly it actually is a really good diet with great results.

Tomorrow I shall be partaking in bacon, bacon and six pork chops. I know this is frowned upon by some people but my food delivery isn’t getting delivered until tomorrow night. At that point I shall be having lots of different things including vegetables!

I’m not sure I’m ready to cut everything out at the moment but I will give it my all. I remember the last couple of times I did this and I found it really difficult. The hardest part was not wanting to eat bacon for months and months! I love bacon too but too much of something and it really makes you feel sick!

I’ve been building myself up for sometime now and it has come around really quickly. I’m looking to go on holiday at the end of the month so losing 1 or 2st may not be such a bad thing! Last time I lost a stone within a week. That was pretty hardcore though and not having anymore than 5 net carbs per day! I was basically just living off meat.

So here I am, cooking 6 pork chops, a full pack of bacon on a sunny afternoon! I have my #Ketostix at the ready and hoping I’m in #Ketosis real soon!

See you on the other side!

#MeatLover

Little Discoveries

When I moved to Bournemouth, I was looking for new adventures and to see different sites, but recently on my fortnight visit to #Barnsley I looked for things to do. I came across #YorkshireWildlifePark located in Doncaster. Believe it or not it’s only 30 miles from where I live and I have never been there in my 30 years of living.

If you haven’t been there go and check it out, I thought it was a zoo but when I was there you realise it’s not actually a Zoo. It’s an amazing place and I got to see some animals that I would never expect to see in Yorkshire… Polar Bears! YES! In Yorkshire!

Have a look at the website: https://yorkshirewildlifepark.com/ It’s well worth the £15 entry fee, in fact I was tempted to buy an annual pass even if that meant I would only probably get to go once more in the year. The animals are so well cared for and in a weird way they actually look happy!

HIGHLIGHTS

Some of the highlights of my trip were: (in no particular order)

  •  Seeing the Polar Bears, Luckily when I got there there were two of them playing with each other in the large river that was in their enclosure. This was a pretty magical site. It got a lot better when further down as I was walking away another one came past and right underneath me. I said to myself there and then this is probably the first and last time I would get this close to a Polar Bear! Such amazing animals, so large and the paws are ridiculously big! 
  • Giraffes’s, 4 of them in the enclosure, I thought the first three that I saw were big but when the 4th one came out it overshadowed the others! So large! 
  • Wallaby – Walking through the Wallaby enclosure, getting up close and personal with them, I noticed a rather large one stood against the fence. (Early reading that baby Wallaby’s stay within the mothers pouch for months and don’t regularly make an appearance) It turned out it was a female who had a baby within the pouch… and guess what.. Yep the baby popped it’s head out for quite some time! Amazing!

It was a great day out and I would highly recommend going to see it if you can get a chance. This post might sound like I have never seen these types of animals before and that I’ve never been to a Zoo, well you would be wrong, I’ve been to quite a few but this one was different, very different and I’m not sure why. Go and give it a visit and see if you think the same!

New beginning

Well after my last post “Stressed I think” I’ve had a lot of time to think about things and how I am going to continue! I’ve realised that it is work that is making me into someone I’m not, I’ve had lots of rants to people about how I would rather be out of work than unhappy but I won’t be doing anything silly like that. That was just because of how wound up I was about the situation and it seems to just be a downward spiral. I’m going to continue doing what I am doing in a hope that I can get the passion back for it and continue to do what I love doing.

I’ve loved every minute of working for the past 9 years and a little blip once in that time is something that is expected, it would be stupid for me to throw it all away for something so stupid. A simple chat could probably sort it all out.

So now that I am feeling better about the situation, a week away from the office and being back home has probably helped, along with lots of cuddles from my dogs too. I think I may have been feeling a little home sick and alone also which didn’t help the situation.

The only way I can explain how I feel is a cloud has been lifted from around me and I can see all the good things in my life whereas before I couldn’t.

I’m hoping that this continues, I have another week away from the office now so hoping that I feel refreshed when I have to go back. I’m also looking at booking a weeks sun holiday where I can completely shut off from everything and just recharge the batteries!

Sorry for the boring posts, this is just something I need to do so I can eventually read back when I am feeling rubbish again to bring me back to reality!

Stressed I think

So I’ve not been on here much lately and there is a good reason for that, I’m having a really hard time at the minute in and out of work. Everything is getting too much for me and I’m finding it really difficult to concentrate, be motivated and basically as I like to say “Gone into Self Destruct Mode”. I seem to be to put it nicely fucking everything up around me slowly and I don’t seem to care who I hurt in the process. I’m slowly turning into someone I don’t like and I’m not sure how to deal with it, some people have told me to go to the doctors but that even sounds like too much hard work. I seem to be wanting to suffer in silence at the minute and no matter what anyone says I’m just not listening, well I am but not taking any action or listening to what they say!

It seems that if I hear something it sends me off when I’m feeling calm into some kind of rage where I just moan, become tense and unhappy again! It’s never happened before.

I’m slowly turning into someone that I don’t know, I don’t like and I don’t want to be!

I’ve recently left work for nearly two weeks, 1 week working from home and 1 week annual leave. I can already see a difference in myself and no longer feeling like I’m someone I’m not! My old self is coming back out and people around me can also see it. I really have no idea what to do in this situation or to rectify it!

My recent hate towards the iPhone

For as long as I can remember I’ve always had troubles, some kind or another with #Apple #iPhones. Whether it be because of my own stupidity from #Jailbreaking, replacing parts myself because it seems so hard to get an appointment at Apple stores. One way or another I always well and truly mess my iPhones up. I’ve had them all except the S versions but ever since the very first iPhone my biggest gripe has always been the battery life! No matter what I do, what I close down, even when everything is turned off (little bit pointless in my opinion) they just seem to drain.

The latest scenario is my iPhone 6, the battery drain was ridiculous. I’ve had it well over a year now and the battery would jump from 100%, to 70% to 50% after just a few hours off charge. This wasn’t ideal for me with me doing on call for work. Sometimes it would show 40% and then 5 minutes later it would completely shut off. Wouldn’t power on or anything. Then when I plugged it in to charge voila it would miraculously be at 45% WTF?

So I decided to make a change, I went out and did what I do best and change phones. I bought out right the #LGG5 and boy what a phone it is! So many great features, battery life is incredible even without turning anything off!

I bought this as a stop gap until the #iPhone7 is released but depending how well I get on with this phone and if it can keep my interest I may not even make the swap! Watch this space!

Do you have iPhone battery issues? If so let me know below! I’m interested to see how other peoples batteries perform!

London Marathon 2016

Well what can I say about the #LondonMarathon, this was my first time ever watching it, I’ve never watched it on TV before and I’d never been to watch it in person. I can only sum it up in one word…AMAZING. I got invited to go watch and not only go and watch I was in seats that you couldn’t even buy. #GrandStand seats at the finish line. It was an opportunity that I just couldn’t turn down so Saturday morning saw me travel to London ready for the #Marathon on Sunday. I wanted to make sure I got there with plenty of time and also so I could see some of the sights.

Nothing could have prepared me for how many people were actually going to be there on Sunday, not only running, but the spectators too. It really was something else, I usually get really annoyed when people stop in the road but somehow this was different. I just enjoyed the moment and especially with Virgin creating the hash tag #OneInAMillion.

I got to see #PrinceHarry giving out medals to the winners, I got to see the world record attempts being broken, just a shame that #EliudKipchoge didn’t beat the fastest time ever for a marathon. I could see the excitement in his face when he realised it was so close.

The only problem I had was that I didn’t know #JemimaSumgong had that terrible fall and still went on to win with such a good time for the women runners.

Overall an amazing day and such good fun to be a part of. My eyes are still seeing people move from watching all the finishes come in! Great fancy dress outfits.

So many people running and all doing it for something close to their hearts. #MillionMemories.

It’s definitely made me want to be part of it next year. That’s if I can get a place!


WINNERS TIMES

Elite female runners

1. Jemima Sumgong (Kenya) 2:22:58
2. Tigist Tufa (Ethiopia) 2:23:03
3. Florence Kiplagat (Kenya) 2:23:39
4. Volha Mazuronak (Belarus) 2:23:54
5. Aselefech Mergia (Ethiopia) 2:23:57
6. Mare Dibaba (Ethiopia) 2:24:09
7. Feyse Tadese (Ethiopia) 2:25:03
8. Priscah Jeptoo (Kenya) 2:27:27
9. Mary Keitany (Kenya) 2:28:30
10. Jessica Augusto (Portugal) 2:28:53

Elite male runners

1. Eliud Kipchoge (Kenya) 2:03:05
2. Stanley Biwott (Kenya) 2:03:51
3. Kenenisa Bekele (Ethiopia) 2:06:36
4. Ghirmay Ghebreslassie (Eritrea) 2:07:46
5. Wilson Kipsang (Kenya) 2:07:52
6. Tilahun Regassa (Ethiopia) 2:09:47
7. Sisay Lemma (Ethiopia) 2:10:45
8. Callum Hawkins (Britain) 2:10:52
9. Dennis Kimetto (Kenya) 2:11:44
10. Ghebrezgiabhier Kibrom (Eritrea) 2:11:56