Uncategorized


http://mac.tutsplus.com/tutorials/productivity/how-to-reveal-your-library-folder-in-lion-or-mountain-lion/

Has all you need! 🙂

Once you open your Library you can then navigate to IPhone Simulator/[Version]/Applications/[…]/ to locate your App Data in the Simulator.

 

http://www.motion504.com/AICP_show/

Sounds easy doesnt it!? Well it is, eventually …

Well this simple task sure proved I had no clue on using any of the stream classes (apart from cut + paste specific examples from the web).

Like some (most?) developers (hackers?) I sat down with intellisense and started nessing around with

Stream st = new …

nope stream is an abstract class.

StringReader sr = …

It’s got string in the name right? This should take 10 seconds.

Yes you can easily create one of these, but cast to (Stream) sr doesn’t work!, why? time to look at the stream inheritance hierarchy.

This diagram from http://blogs.msdn.com/bindeshv/archive/2008/07/24/file-io-system-in-net.aspx sort of shows it.

As does this –

Hierarchy

 Excuse the awful scan, but you can just make it out.

Basically StringReader/Writer inherits from TextReader/Writer which inherits from System.IO (off top left).

This does not touch stream, so it looks like we need to use a MemoryStream. Like so –

MemoryStream memStream = new MemoryStream();

byte[] data = Encoding.UTF8.GetBytes(“XML long string”);

memStream.Write(data, 0, data.Length);

memStream.Position = 0; // we can also ensure reset stream for consumption

http://weblogs.asp.net/whaggard/archive/2004/09/23/233535.aspx says it far more succintly (choose your encoding as you require)

Stream s = new MemoryStream(ASCIIEncoding.Default.GetBytes(“Test String”));

Cheers.

I am trying to debug a WCF Service from Silverlight (the service is in its own library within the SAME SOLUTION)

Simply ‘No joy’, tried attaching to process etc, was getting ‘wcf no symbols have been loaded for this document’ in the IDE also!!

Tried this, it did not work 😦 – http://blogs.msdn.com/greggm/archive/2008/03/17/debugging-wcf-services-in-visual-studio-2008.aspx

This is useful to know anyway – http://bbits.co.uk/blog/archive/0001/01/01/missing-wfc-service-configuration-editor.aspx

Double checked all this –

http://msdn.microsoft.com/en-us/library/bb157688.aspx (How to: Step into WCF Services)

http://msdn.microsoft.com/en-us/library/bb157687.aspx (Limitations on WCF Debugging) –

So, you cant step into it from calling code if its an asynchronous call, which is ALL CALLS in silverlight 🙂 but it should be ok anyway for normal debug?! so what gives?

In the end I created a simple console/windows app as discussed for IIS (I am using internal server though in this example) –
http://dotnet.org.za/willy/archive/2006/12/19/WCF-Debugging-_2D00_-IIS-hosted-services.aspx
http://silverlight.net/forums/t/17669.aspx 
the debugger then worked fine for my async call? does anyone know what I was missing in the SL version?

Also, dont forget to put a nice wait for keypress in your app if your using Async ! 🙂

Console.WriteLine(“Press any key to continue…”);
Console.ReadKey(true);

Out & Merry Xmas!

Hi All,

We use an old version of sharepoint in work (but I think this applies to SP2007 also).

Basically I think this maybe occurs when you install different apps from Office 2003/2007 in certain sequences (this may include 2007 viewers/trial versions?) which messes offices tiny little massive brain up.  I think Visio 2003 was the tipping point for me.

Either way, trying to open a word doc (or other?) from a sharepoint site makes IE (7 in my case) go BOOOOOM!

These threads help fix it for me –

http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/a2c1b98a-2259-4d70-b15b-ceb2eb549e50/

This wasn’t related to my bug but may help someone – http://support.microsoft.com/kb/938888

I basically, renamed OWSSUPP.DLL to OWSSUPP.DLL-old whereever it resided in –

C:\Program Files\Microsoft Office\Office10

C:\Program Files\Microsoft Office\Office11 (just here for me)

C:\Program Files\Microsoft Office\Office12

Then ran Microsoft Office Diagnostics for good effect, retried IE7, done

! Too early to see any side effects of this, your mileage may vary, good luck … .. .

Set Up Remote Management

Somebody lent me a Mac Mini in work, thought I’d try it.  Wanted to remote control it (save mouse, monitor etc)

Set Up Remote Management

Turned on above, ticked all the options for allow access for on previous screen (your mileage may vary on this),  installed RealVNC, typed in the MAC IP, then boom, crashed! VNC gone!

It turns out you must allow best colour quality ELSE YOUR KNACKERED, thanks to many other forums, blogs for this.

Like So!

Like So!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Good night!

PrtSc + Cntl-V is OK.

But I found out today about ‘Snipping Tool’ built in to Vista, pretty much covers what you need to do.

  • Start->Snipping Tool (or create a shortcut on your quick launch)
  • Draw Square
  • Paste into Wherever
  • Done

Next Page »