secretGeek now syndicated!
secretGeek .:dotnuts about dotnet:.
home .: about .: sign up .: sitemap

secretGeek now syndicated!

secretGeek is now available via RSS. Whether or not my dodgy RSS hack will continue to work (for how long I don't know) ... But it works okay for me.

Outputing RSS has turned out to be a very easy process. I'm not sure if I've got the right version, etc.

Just cross fingers and hope it keeps working. It does for now:

[Valid RSS]

Next thing is to move existing content into the Rss file. And to make my rapid blog page RSS aware, too.

Here are the ASP functions I use for outputting the RSS:


Public Sub SaveRSSItem(RSSItem, sFilename)
   Dim filesys, readfile, sFileContents  
   set filesys=CreateObject("Scripting.FileSystemObject")  
   set readfile = filesys.OpenTextFile(sFileName,   1, false)
   sFileContents = readfile.readall
   readfile.close      
   sFileContents = replace(sFileContents, "",  RSSItem)   
   set readfile = filesys.OpenTextFile(sFilename,   2, false)
   readfile.write(sFileContents)
   readfile.close
End Sub

Public Function MakeRssItem(sTitle, sLink, sDescription)
  Dim rss
  sLink = "http://www.secretGeek.net/" & sLink 
  rss = "" & vbcrlf
  rss = rss & "" & vbcrlf
  rss = rss & "  " & sTitle & "" & vbcrlf
  rss = rss & "    " & sLink & "" & vbcrlf
  rss = rss & "    " & _
      vbCrlf & "      " & _
      vbcrlf & "    " & vbcrlf
  rss = rss & "    " & _
     RFC1123Date(DateAdd("h", 5, Now)) & "" & vbcrlf
  rss = rss & "    Leon Bambrick" & _
      vbcrlf
  rss = rss & "    " & sLink & "" & vbcrlf
  rss = rss & "  "    
  MakeRssItem = rss
End Function




Function RFC1123Date(dateSpec) 
  Dim astrDay 
  Dim astrNum 
  Dim astrMonth 
  astrDay = Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat") 
  astrNum = Array( "00", _ 
    "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", _ 
    "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", _ 
    "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", _ 
    "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", _ 
    "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", _ 
    "51", "52", "53", "54", "55", "56", "57", "58", "59", "60") 
  astrMonth = Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", _ 
    "Jul", "Aug", "Sep", "Oct", "Nov", "Dec") 

  RFC1123Date = astrDay(WeekDay(dateSpec) - 1) & ", " & astrNum(Day(dateSpec)) _ 
    & " " & astrMonth(Month(dateSpec) - 1) & " " & Year(dateSpec) _ 
    & " " & astrNum(Hour(dateSpec)) & ":" & astrNum(Minute(dateSpec)) _ 
    & ":" & astrNum(Second(dateSpec)) & " GMT" 
  End Function 


Add or view comments about this page

Articles

Do they store the code for TFS in TFS? Do they store the code for TFS in TFS?
Sudden TimeSnapper Discount! Sudden TimeSnapper Discount!
How Can Microsoft Beat Google? How Can Microsoft Beat Google?
TimeSnapper 3.1: Attack of the the Red/Green Stripes TimeSnapper 3.1: Attack of the the Red/Green Stripes
21 tools used in our MicroISV 21 tools used in our MicroISV
Lost Treasures of the DOS World: tree! Lost Treasures of the DOS World: tree!
The Virtual Machine Machine and the Virtual Virtual Machine The Virtual Machine Machine and the Virtual Virtual Machine
Should Linq To Sql Go Should Linq To Sql Go "Open Source"?
Redux: New Synchronisation Idea Overlooked By Microsoft Redux: New Synchronisation Idea Overlooked By Microsoft
New Synchronisation Idea Overlooked By Microsoft Live team New Synchronisation Idea Overlooked By Microsoft Live team
Visual Studio UX Taskforce, Office UX Taskforce... etc. Visual Studio UX Taskforce, Office UX Taskforce... etc.
How to be Jeff Atwood How to be Jeff Atwood

Archives .: secretGeek :: Complete Archives :.
25 steps for building a Micro-ISV 25 steps for building a Micro-ISV
3 minute guides -- babysteps in new technologies: powershell, JSON, watir, F# 3 Minute Guide Series
Top 10 SecretGeek articles Top 10 SecretGeek articles

Downloads

TimeSnapper -- Automated Screenshot Journal TimeSnapper.com    
Version 3.1: instant productivity profiles

ShinyPower (help with Powershell) ShinyPower
Now at CodePlex

Next Action NextAction
Managing the top of your mind



[powered by Google] 


Thai Erawan, Brisbane Restaurant, delicious thai food in paddington Thai Erawan, Brisbane Restaurant
World's Simplest Code Generator (html edition) World's Simplest Code Generator
Gradient Maker -- a tool for making background images that blend from one colour to another. Forget photoshop, this is the bomb. Gradient Maker
How to be depressed How to be depressed
You are not inadequate.



Recommended Reading

The Best Software Writing I
The Business Of Software (Eric Sink)

Recommended blogs

Jeff Atwood
Reginald Braithwaite
Joseph Cooney
Phil Haack
Scott Hanselman
Julia Lerman
Joel Pobar
Eric Sink
Joel Spolsky
Des Traynor

Aggregated Links

programming.reddit.com
dzone
dot net kicks

Human Link Machines

interesting finds
a continuous learner's weblog
arjan's world
n links today
new and notable
morning coffee
learning .net
weekly link post
(my del.icio.us account)

LinkedIn profile
home .: about .: sign up .: sitemap .: © Leon Bambrick 2003 .: privacy

home .: about .: sign up .: sitemap .: © Leon Bambrick 2003 .: privacy