?Screen Shot 2013-06-18 at 09.48.46As part of the new a new internal website I have recently started working with SharePoint 2013 in the cloud. This is proving to be an extremely powerful platform for development, however working with some of the existing JavaScript files presents a common issue. Upon downloading the file or viewing in Safari on my Mac the code is often garbled up, or displayed all on one line.

In order to get round this, I have located a pretty handy tool online called the JavaScript Beautifier, this is capable of formatting JavaScript, HTML, JSON and JSONP into a much cleaner/easier to read format.

Although I do not normally use automated code formatting tools, this one seems very powerful and offers a lot of control over its actions.

I am now on the hunt for others, especially for ASPX, which often gets chewed up during the download process.



Terminal
One feature which seems to divide the masses is OS X’s ability to relaunch your applications on startup/reboot. This feature is know as Apple Persistence, which is personally a feature I am not really a fan of. It’s very rare for me to want the same applications on each use of my MacBook, asides from the obvious email and unified comms clients of course.

So – to disable to ‘persistent’ application mode simply follow these simple steps below

  1. Open the Utilities folder
  2. Open a terminal window
  3. Copy and paste the following line in:
    sudo defaults write -g ApplePersistence -bool no
  4. Enter your password and press enter

Now the next time you reboot, you’ll be greeted with your beautiful desktop wallpaper, and not the plethora of apps and browser windows.

If you decide you miss the feature, all you need to do is switch the boolean value back to yes:

sudo defaults write -g ApplePersistence -bool yes


ChromeGoogle Chrome for OS X generally doesn’t play well with proxy servers, especially those that require NTLM authentication. Those who have tried to use it in the past will be greeted with a constant barrage of proxy authentication prompts, each successful entry of credentials loads a tiny little bit more of the site..

However, there is a way to resolve this. Using a simple command in OS X terminal you can enable NTLM authentication in Chrome, and only have to enter your credentials once.

  1. Open Finder
  2. Open the Utilities folder
  3. Open a terminal window
  4. Copy and paste the following line in:
    Sudo /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --auth-schemes="ntlm"
  5. Enter your password and press enter
  6. Now quit and relaunch all Chrome windows.

That’s it. You should never be prompted again, at least not until you change your password.



Over the last few weeks the company that I work for have been migrating from Google Apps over to Microsoft 365 for mail/calendar/contacts and unified messaging etc. This has not been without it’s challenges. Some have which have been fairly bizarre. This week I was approached by a member of our department who had somehow managed to end up with 10,000+ appointments of the same title in his calendar. We set about trying to remove them on mass using the Outlook GUI, but soon realised this would take a very long time. Which is when I put together the following snippet of VBA:

NB: This code ‘takes no prisoners, and straight deletes the appointments matching the criteria you pass it. This wouldn’t be easy to undue if you ran with incorrect parameters. I’d advise adding a break point and testing a few before letting it hit your entire calendar folder.

Dim myNameSpace As NameSpace
Dim myCalendar As Folder
Dim myAppts As Items
Dim myAppt As AppointmentItem
Dim i As Integer

Sub purge_cal()
    Set myNameSpace = Outlook.Application.GetNamespace("MAPI")
    Set myCalendar = myNameSpace.GetDefaultFolder(olFolderCalendar)

    Set myAppts = myCalendar.Items
    i = 0
    For Each myAppt In myAppts
        If myAppt.Subject = "" Then
            i = i + 1
            Debug.Print "Deleting " & myAppt.Subject
            myAppt.Delete

        End If
    Next
        Debug.Print i & " calendar items deleted"
End Sub


20130520-223107.jpg

For as long as I can remember, I (much like many others) have suffered at the hands of a dead battery in my tech. More so now since smartphones have been such a large part of my life.

I’m no way going to blame manufacturers for the capacity or drain of device batteries… I’m a heavy user… In that I doubt 10 minutes go by when I’m not using it! Unless I’m asleep of course!

This has obviously created a gap in the market. When that has steadily filled up with all manor of devices, in all shapes and sizes. Each device is not without it’s pitfalls, equally each device suits a certain type of user more.

I think over the last 4 years I’ve pretty much tried every type on the market; from AA battery powered key rings to solar panels. I’ve also endured my fair share of smartphone case batteries… Non of these devices has proved successful in truly giving me that extra charge I need when I’m out and about..

That was until this year (2013) … When in the excited build up the the yearly Gadget Show at the NEC, I can across a manufacturers name on the programme. Energenie… It’s one I’d never heard of, and never seen any products from before. So I made my way over to their website, and was amazed by the variety and the spec of some of the devices!

This is when I spotted the Energenie ChargeGenie 50, a 5,000 MaH external battery pack.. My school boy maths suggested I should get at least 2 full charges of my iPhone 4S from this, and what’s more it would even give my iPad (thanks to FreeVirtualServers) a boost. So I got in touch with Energenie, and excitedly asked them to reserve me a fully charged ChargeGenie 50 at the Gadget Show.

Once I’d made my way around the show, battery now flagging at 20% I headed over to their stand, and collected what was soon to become my phones new best friend! I carefully opened the packaging and plugged in my phone.. Slowly but surely my device made its way back up to 100%

But wait… It didn’t stop there!! As I was taking many pictures at the show, my device was soon back at 10%.. So of it went again, and charged straight back up to 100!!! Perfect! Just what I needed…

Now, I know external batteries arnt to everyone’s taste, and some people prefer cases.. But until someone comes up with a case that can pack the punch of the Energenie 50 whilst adding little to no bulk I’m happy!

Nearly a full month on since purchasing it, and it still travels faithfully in my laptop bag.. In its own compartment no less, and I can rest in the knowledge that this little unit has got my back!

So…. Thanks Energenie, for your fantastic ChargeGenie 50! Here’s looking forward to the future, when my Energenie ChargeGenie ?100? Drops through the letterbox!




Page 19 of 117« First...10...1718192021...304050...Last »