Friday, October 12, 2012

Skype & IIS Clash

After I rebooted today, I tried pulling up sites on my local IIS.  I kept getting a black page.  Nothing in the source.  We finally figured out that Skype was using port 80 and 443 as alternatives for incoming connections.


In Skype, go to :

Tools -> Options -> Advanced -> Connection

On this option page you need to uncheck "Use port 80 and 443 as alternatives for incoming connections". Restart Skype and you should find you have no more issues (from http://amcrouch.blogspot.com/2012/02/skype-iis-clash.html

Sunday, May 06, 2012

Juice Podcast Receiver in Windows 7

I used to use Juice Podcast Receiver to get some podcast content.  I haven't been able get it to work in Windows 7.  I found this article and started to follow it.

I right clicked on the program and chose "Trouble Shoot Compability"
I picked XP SP3 and Vista SP2.  I still got and error box that said to look at C:\Program Files\Juice\Juice.exe.log It had the following error several times.


OSError: [Errno 17] File exists: 'C:\\Users\\\\My Documents\\My Received Podcasts'
Traceback (most recent call last):
  File "gui.py", line 4, in ?
  File "iPodderGui.pyc", line 3573, in main
  File "ipodder\configuration.pyc", line 468, in __init__
  File "os.pyc", line 154, in makedirs

I am pretty sure that the Vista SP2 let me start the program.  I then changed to the podcast folder in File\Preferences\General to a folder other than C:\\Users\\\\My Documents\\My Received Podcasts.

It seems to be working now.

Friday, December 09, 2011

Start an embedded YouTube video at a certain timestamp

Updated May 2014
You can add a start parameter to the embed code that YouTube generates for you.

<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/Iq0XJCJ1Srw?rel=0&amp;start=56" width="560"></iframe>


Updated Apr 2013
https://yousufrafi.wordpress.com/2012/08/24/start-a-youtube-video-at-a-certain-timestamp/



From 2011
From https://www.mattcutts.com/blog/start-youtube-video-minutes-seconds/

https://www.youtube.com/watch?v=8tMuSVVljg8#t=17m08s

The “#t=17m08s” takes you to 17 minutes and 8 seconds in a video.

Embedded code.
<object height="385" width="640"><param name="movie" value="https://www.youtube.com/v/8tMuSVVljg8&hl=en_US&start=1028"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/8tMuSVVljg8&hl=en_US&start=1028" type="application/x-shockwave-flash" allowscriptaccess="always" width="640" height="385"></embed></object>
See here for the example working.

This guide gives some other good pointers, "The default (and recommended) embed size is 480x385 for a 4:3 video and 640x385 for 16:9 content."

Here is an example of using 640x385 for 4:3 video.



Friday, December 02, 2011

Easy and Free Screen Sharing

I have used other screen sharing software before.  Join.Me is easy and secure.

Who ever wants to share their screen goes to Join.Me and clicks share.  A program is downloaded.  I don't think it requires admin permission to install.  A little window at the top appears with three numbers separated by dashes.

To view the screen the sharer tells the viewer these numbers.  The viewer types it into the join box and you are done.

Key words: remote screen sharing

Wednesday, April 27, 2011

Reducing Sleeping Dragons

A few weeks ago I added a column to a SQL table DateCreated.  I wanted to track when the records were getting created.  I provided a value for the existing columns and then made it not nullable and provided getdate() as its default.  I have done this quite often in the past and in the other frameworks I was in it never was a problem.

This time it was.  I had made other changes to the database the project used.  I updated the edmx file for the data access layer so it would refresh my object model for my code.  I did not pay close enough attention to the fact that it now added code to account for the new DateCreated column.

Yesterday we got an error.  When looking at the SQL trace I saw that Entity Framework was passing in a '0001-01-01 00:00:00' for the date value because the code giving the values was not providing it a value.  I was counting on the app (including the data layer) to not provide a value.  The database definition would provide getdate().

Entity Framework did only half the job that needed doing.  The presentation layer, or service layer or business layer should have been updated to provide a value if the data layer gets updated with the DateCreated column.


I am glad that we are getting away from using ORM solutions.  We are instead relying on lightweight utilities to create a data layer using only ADO.NET.  My colleague, Sam started this with LOEF.  He is now developing NOEF (No Entity Framwork perhaps with a better name).  This will reduce the sleeping dragons we have to deal with.