Geirfa Uwch 1 Uned 5

25. May 2014 12:23 by Chris in Welsh  //  Tags: ,   //   Comments (0)

Geirfa Uwch 1 Uned 4

25. May 2014 12:16 by Chris in Welsh  //  Tags: ,   //   Comments (0)

Geirfa Uwch 1 Uned 3

25. May 2014 12:10 by Chris in Welsh  //  Tags: ,   //   Comments (0)

Geirfa Cwrs Uwch 1 Uned 2

25. May 2014 12:06 by Chris in Welsh  //  Tags: ,   //   Comments (0)

Geirfa Cwrs Uwch 1 Uned 1

25. May 2014 09:44 by Chris in Welsh  //  Tags: ,   //   Comments (0)

It's a bank holiday weekend. The rest of the family are away. It's raining. My "To Do" list includes writing some blog posts and catching up with my Welsh studies so why not combine the two?

The vague plan is to write lots of Welsh learners content as a means of revising/ studying over the (long) summer holiday break after my current course has finished and also link this into a side project of mine (dysgwyr.co.uk). We'll see. Let's at least make a step in that general direction. I'm about to finish Cwrs Uwch 1 as delivered by Welsh for Adults of Cardiff University and I've been typing up my notes semi-regularly and plan to share in case they are useful to the wider community of Welsh learners. This will include vocab from each unit. This will normally be a subset of the vocab as presented at the end of each unit, the subset I thought at the time was not sufficiently secure in my memory.

I will add these vocab sets to Quizlet, to extend the similar, useful Welsh resources others have already submitted to the database.

I have lots of vague plans, however; we'll see how many come to fruition.

Anyway, Uned 1 ... 

Disabling database constraints temporarily

18. February 2014 16:13 by Chris in   //  Tags:   //   Comments (0)

Another of those notes to self: 

-- Disable all the constraint in database
EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"

-- Enable all the constraint in database
EXEC sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"

Removing a lock on a file with process explorer

15. January 2014 14:44 by Chris in   //  Tags:   //   Comments (0)

I'm sure to have to look this up again, largely care of: 

http://social.technet.microsoft.com/Forums/windowsserver/en-US/504017c7-1a92-415e-b12c-03d44145e1db/how-to-find-which-process-locked-the-log-file?forum=winservergen

Process Explorer (ex Systernals) is good for troubleshooting/ resolving file locks.

You can download it from Microsoft http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx.

Use the icon that resembles a pair of binoculars... or use the Hotkey Ctrl+F(find).

Type the name of the file... it will show you which process is presently running and has locked the file for use.

You can then release the lock should you so wish.

In the case which prompted this quick post the issue was actually the locking level in use with log4net but maybe next time ... ;)

 

ASP.NET on Windows 8.1/ IIS 8.5 (trials and tribulations)

15. January 2014 13:32 by Chris in dev, IT Pro, Windows 8  //  Tags:   //   Comments (0)

When I upgraded my main dev laptop from Win7 to Win8 (then 8.1) I had problems with ASP.NET under IIS. I put off sorting the issue out as I had IIS Express working adequately for development but this was never going to be a long term solution. Hopefully the issue arose due only to my upgrade path but it has come time to sort this out and surely this path must be fairly common?

My first issue was a HTTP Error 500.19 which http://stackoverflow.com/questions/12208209/iis-8-0-asp-net-and-error-500-19 helped with - as per one contributor I had to set Modules also to Read/Write instead of ReadOnly. Next though the site wasn't picking up my default aspx document and, digging further, even though ASP.NET was apparently installed (2.X and 4.X) handler mappings for aspx were notable by their absence (MIME type mappings are not required nowadays as these are just for static types). Oh, as an aside as well the .NET installers don't work on windows 8.1 (the solution google liked) - you must instead enable the Windows feature, not that this worked fully in my case.;( 

To reinforce this with a little detail, the next google hit was http://stackoverflow.com/questions/11319311/mime-types-missing-in-iis-7-for-asp-net-404-17. i.e. manually installing ASP.NET

I tried running 
 
aspnet_regiis.exe -i
 
But I instead received the message that this wasn't supported in this version of windows and that I should instead try one of: turning windows features on and off, the server management tool (N/A) or the dism.exe command line tool.
 
So in lieu of the command line option I next tried uninstalling and installing again (2.X and 4.X) - the thought did occur that this might be just an ASP.NET 3.5 problem, as that was the version of my test site. No joy.  Next, brute force approach and I tried adding all features under ASP.NET under windows features. Still no joy. Then I happened across a response someway down in http://stackoverflow.com/questions/3762287/script-not-served-by-static-file-handler-on-iis7-5 which referred to Windows 8 and hence possibly my problem as there was remarkably little from google on such Windows 8.X/ IIS 8.X issues. This referred to an additional 3.5 setting  within Application Development Features. I had to google again as this is several levels down in the config:
 
 
Got there in the end and it worked for 3.5 though as I'd broken a few things along the way I'm not sure if I'm ready to try 4.X as well!
 
Microsoft sure don't make life easy sometimes!
 

Welsh / Cymraeg Support in Windows Phone 8

12. December 2013 15:29 by Chris in   //  Tags:   //   Comments (0)

I'm writing a Welsh app and I suddenly wondered whether Windows Phone 8 would support entering Welsh language text and I'm thinking primarily accents here. Google told me that if I held down the onscreen key while entering text I'd get the accented versions of the characters. Well I got some more common ones but no ŵ, for example. I investigated the phone language setting options: 

  • Phone language: there was a general "English" setting (nothing UK/ GB specific) and a English (US). I was set to the default "English"
  • Country/ region: UK here; no Wales/ Cymru so left this at UK
  • Regional format: there was a UK (Welsh) option here so I tried this (it did require a phone restart)

Was I then able to enter the accented characters as are required of the Welsh language?

No. This did seem to change my UI language to Welsh though differences were minimal; I guess it is up to app developers to ensure they support the regional formats.

However, if I then went to Outlook and tried to enter a few Welsh words with accented characters - no joy ... I couldn't enter ŵ or ŷ but then again I'm not sure how to enter them in the web UI I'm using to write this blog entry!

Interestingly http://en.wikipedia.org/wiki/Welsh_language indicates 'On iOS devices Welsh accented characters such as ŵ, ŷ, ô and ï are available by pressing and holding the characters on the virtual keyboard, and the Calendar can also be shown in Welsh.' and 'On Android devices, user-created keyboards can be used' though I've not checked either option out.

Next step is to ask Microsoft if I can enter accented characters at all?

 

 

 

 

 

Setting up Skydrive alongside Skydrive Pro

29. August 2013 12:58 by Chris in ForTheRecod, IT Pro  //  Tags:   //   Comments (0)

I imagine many people will be in a similar position to me - they have a main computer which they use for both personal and professional activities. A few less perhaps will have an Office365 account for work they would like to sync their work documents with, whether as another element to their backup strategy or so they can access these same documents from other computers/ devices. Now we all probably know there is the free Microsoft Skydrive service offering for syncing files to the 'cloud' (an overused term but we'll run with it). What some may not know is that their is also Skydrive Pro, which seems to be confusingly named as it is not really the same thing as Skydrive at all but rather ties in with Office 365 SharePoint. Importantly it offers more storage as well (currently 25GB), unsurprisingly as it is a paid for service. Saying that, the free 7GB of Skydrive isn't too shabby and should be ample if you are not storing video up there, which is probably not a good idea for your bandwidth utilisation anyway!

So you could sync all your files to the cloud via Skydrive but if  you in the same situation as me you might prefer the tidy, logical separation of syncing work files to the Microsoft business offering (Skydrive Pro) and personal files with the Microsoft consumer offering (Skydrive).

Here's how I did it:

  • Firstly Skydrive syncs to a folder on your C: drive by default and however much space I allow on my C: drive partition I always seem to start running out of space in the end so before I moved even more docs there I split out my work and personal files (yes, some did overlap - make a call) and created directories on my d: drive for them. Note that my focus was on documents and images (I'm a web developer), not photos or other media - that may come later but I currently have a distinct backup mechanism for these.
  • I had set up Skydrive previously and what was being synced in my Skydrive was legacy from way back when I first set up my "windows live/ Hotmail/ whatever it is called now" account. There is some old spurious stuff in there but I'll leave for now and tidy up in the future. What I needed to do was add my later personal files.
  • I had installed Skydrive before and I needed to repoint at my new folder on D:. Google was my friend and pointed me at reference 1 below - the Skydrive icon in the system tray exposes settings where you can unlink Skydrive. If you then select your existing Skydrive folder it restarts it's setup process and you can repoint it at another location - my new folder.
  • Skydrive is all well and good now, what about Skydrive Pro. Well I found this very confusing in comparison. As Paul points out in his article (2 below) you install and run the client and it comes up with an obtuse dialog asking 'what library do you want to sync?'. What on earth does this mean? Well, as Paul explains (thanks!):

 'If you’re lucky, someone in IT has explained what URL you need there, or maybe you’re just particularly technical. But if not, no worries. There’s a very simple way to get this configured properly. Simply sign into Office 365 on the web and navigate to that SkyDrive link in the toolbar. In the SkyDrive Pro web interface, you’ll see a SYNC button in the upper right corner.' (2)

  • When you press that button it configures your client with the correct URL - yes, your Skydrive Pro storage mechanism is a SharePoint library.
  • You are then given the opportunity to sync to a different directory to the default, which I again chose to keep things tidy on d:. What you don't get is the little clouds icon of the consumer offering replacing the folder icon. The other icons seem to be the same/ similar however.
  • You'll see just the 'Shared with Everyone' folder unless you were using your personal SharePoint library already - which obviously you will want to take care with.
  • I then copied my work documents in to my Skydrive Pro folder and my personal documents into my Skydrive folder.
  • Finally I configured my local Libraries with quick links into both locations.

So great, now any changes are being synced in case of a disaster as well as being available on other devices I own. "What about performance Chris?" Yes, I have my concerns - two extra services pumping data up to the cloud. Seems OK so far but will report back here if I have any issues.

A few hours later I'm back. I'm having problems. I've been through the following cycle a couple of times now:

 

 

 

So I then restart and the Cache then offers to recover the files that were queued by SkyDrive Pro, to which I made the mistake of saying yes a couple of times and my C: drive was filled with GBs of recovered files which are only going to be pushed up to the cloud again by SkyDrive from the local repository. Let's see how many more times I need to go through this loop to get the 7GB of documents up to the server.

30/08

OK, this isn't going well - every time I reboot to clear the Office Upload Centre error it is eating up GBs of my C drive, so much that I am having to reclaim the space. Perhaps there was a better way to push the files up to start with rather than rely on upload centre which seems to be introducing significant overhead.

Ah, others have encountered this issue with the Office Upload Center - see the comments at: http://winsupersite.com/office-365/what-i-use-office-365-and-skydrive-pro. I think maybe I'll give up and dump Skydrive Pro until it is a more mature product. Last straw for me was that one of the listed fixes was only available in Office 2013 and I have 2010 on this machine.

 

 

 References

1 http://www.solveyourtech.com/how-to-unlink-a-local-skydrive-folder/

2 http://winsupersite.com/office-365/office-365-tip-set-skydrive-pro-your-pc

 

 

 

 

About the author

I am Dr Christopher Sully (MCPD, MCSD) and I am a Cardiff, UK based IT Consultant/ Developer and have been involved in the industry since 1996 though I started programming considerably earlier than that. During the intervening period I've worked mainly on web application projects utilising Microsoft products and technologies: principally ASP.NET and SQL Server and working on all phases of the project lifecycle. If you might like to utilise some of the aforementioned experience I would strongly recommend that you contact me. I am also trying to improve my Welsh so am likely to blog about this as well as IT matters.

Month List