August 26, 2003

RSS Web Based Parser

RSS Utilities: A Tutorial By Rodrigo Oliveira August 2003 "RSS ("Really Simple Syndication") is a web content syndication format. RSS is becoming the standard format for syndicating news content over the web. As part of my recent contract with Sun Microsystems, I was tasked with the development of a JSP Tag Library to be used by anybody with a basic understanding of RSS, JavaServer Pages, and HTML. The taglib is mostly geared towards non-technical editors of web sites that use RSS for aggregating news content. My goal was to develop a JSP tag library that would simplify the use of RSS content (versions 0.91, 0.92 and 2.0) in web pages."

Posted by sachauncey at 12:30 AM

August 21, 2003

RSSlets

RSSlets - Functional RSS Feeds "My ultimate vision for RSSlet is a service that allows users to generate dynamic RSS feeds that actually do something functional from any web page." (Take a look at this...)

Posted by sachauncey at 04:25 AM

August 20, 2003

Bookmark Site


1:     You can do this in two simple steps.
Add the following JavaScript somewhere within the
<body></body> tags of each page in which you want to use the bookmark code:
2:
3: <script type="text/javascript">
4: sitetitl = "Pat Wong's Music Around The World"
5: siteurl = "http://www.napathon.net/"
6: function addBookmark(title,url) {
7: if (window.sidebar) {
8: window.sidebar.addPanel(title, url,"");
9: } else if( document.all ) {
10: window.external.AddFavorite( url, title);
11: } else if( window.opera && window.print ) {
12: return true;
13: }
14: }
15: </script>
16:
17: Be sure to change the values
of sitetitl and siteurl to match your website
's title and URL.
18:
19: Here's an example
of how to call the above JavaScript function:

20: <a href="#"
21: onmousedown="addBookmark(sitetitl,siteurl)">Bookmark</a>
22:
23:
24:


Posted by sachauncey at 01:50 PM

Redirect a Page using ASP


1:     Redirect a page using ASP:
www.mydomain.com/oldpage.asp to www.mydomain.com/newpage.asp.
Here's the code you would put in oldpage.asp:
2: <%
3:
4: Response.Status = "301 Moved Permanently"
5: Response.AddHeader "Location", "http://www.mydomain.com/newpage.asp"
6:
7: %>
8:
9:

Posted by sachauncey at 01:49 PM

August 18, 2003

RSS Use Spreading

RSS Hitting Critical Mass posted by Dan Gillmor

Posted by sachauncey at 01:50 PM

August 14, 2003

Random Image Display

From DMXZone - In the sample code there are 3 images, defined in var id = 3 ; change this to
the total number of images you wish to add in the script. Then you need to put the full list of images
with one line per image in the following format ranimage[number starting with 0 then 1, etc..] = "imagename.format";
1:     script language="JavaScript" type="text/javascript">

2: // This script was supplied by Dave Joosten
4: < !-- var id = 3; // Total number of images
5: var ranimage = new Array(ic); // Array to hold the filenames
6:
7: ranimage[0] = "http://www.yourwebsite.com/graphic1.jpg";
8: ranimage[1] = "http://www.yourwebsite.com/graphic2.jpg";
9: ranimage[2] = "http://www.yourwebsite.com/graphic3.jpg";
10:
11: function choseRandom(range) {
12: if (Math.random)
13: return Math.round(Math.random() * (range-1));
14: else {
15: var now = new Date();
16: return (now.getTime() / 1000) % range;
17: }
18: }
19: //
20: var choice = choseRandom(id);
21: // -->
22: < /script>
23:
24:


Posted by sachauncey at 04:47 PM

ASP.Net Blog Source Code - .Text

A couple of months ago I announced a .NET focus blogging site called DotNetWeblogs, which eventually became Weblogs.asp.net. Today I am happy to announce that the same code that runs weblogs.asp.net, my own blog and many other blogs in the community is now available for FREE.

The application is now called .Text.
.Text will allow you to quickly and easy create a personal weblog as well as create an entire community of blogs.

Samples can be seen at:
http://scottwater.com/blog
http://weblogs.asp.net
http://dotnetjunkies.com/weblogs

The admin can be viewed here: http://scottwater.com/dottext/gallery/1070.aspx

The binaries and source can be found here: http://www.gotdotnet.com/community/workspaces/viewuploads.aspx?id=e99fccb3-1a8c-42b5-90ee-348f6b77c407

A mailing list is also available for questions/code/etc: http://aspadvice.com/SignUp/list.aspx?l=153&c=25

Updates to .Text, will be posted here: http://scottwater.com/dottext
Thanks,
Scott

-----------------------------------------------------------
Scott Watermasysk
My Blog: http://scottwater.com/blog
Need a blog? Check out .Text
http://scottwater.com/dottext

Posted by sachauncey at 01:14 PM

August 11, 2003

Lockergnome RSS Resource

A great list of resources from Lockernome.

Posted by sachauncey at 01:55 PM

August 09, 2003

RSS Express Lite

RSSxpress Lite is a simple way of placing an RSS channel onto your own websites using a single line of JavaScript. You don't even need to understand JavaScript, just cut an paste and hopefully it'll work!
This service enables you specify the RSS channel you want to add to your site and will then create the JavaScript required for you to cut and paste to your own pages...

Posted by sachauncey at 02:54 AM

RSS Parsers to Display on Web

RSS Parsers Listing: http://gils.utah.gov/rss/rssparsers.html

Posted by sachauncey at 02:36 AM

August 06, 2003

Re-Link Access Tables

Relinking Access tables really isn't difficult, and the technique required hasn't changed in a long time. I'm still using DAO code I got from Ken Getz several years ago to accomplish this task. Here's a small code fragment to automate the relink process:
1:     Relinking Access tables really isn't difficult, and the technique 

2: required hasn't changed in a long time. I'm still using DAO code
3: I got from Ken Getz several years ago to accomplish this task.
4: Here's a small code fragment to automate the relink process:
5:
6: Dim db As DAO.Database
7: Dim tdf As DAO.TableDef
8: Dim strPath As String
9: strPath = "C:\Program Files\Microsoft Office\Office\Samples\northwind.mdb;"
10: Set db = CurrentDb()
11: For Each tdf In db.TableDefs
12: If (tdf.Attributes AND dbAttachedTable) = _
13: dbAttachedTable Then
14: tdf.Connect = ";DATABASE=" & strPath
15: tdf.RefreshLink
16: End If
17: Next
18:
19: Access uses the tabledef's Connect property to locate the back-end
20: database, and hook into the table within that database. Simply
21: setting the Connect property is not enough. The RefreshLink method
22: instructs Access (actually, Jet!) to rebuild the link to the table.
23:
24: Notice also how the tabledef's Attributes property is ANDed with
25: dbAttachedTable to determine whether the table is linked. This is
26: a good example of a technique I discussed a couple of months ago
27: for testing whether and ADO Connect object is open. The bitwise
28: AND operator (not to be confused with the logical And used in
29: "If..Then..Else constructs) returns the left-side value if it is
30: included in the right-side value. 2 AND 3 returns 2, and 4 AND 5
31: returns 4, but 2 AND 5 returns zero. It gets confusing, but using
32: intrinsic constants such as dbAttachedTable considerably clarifies
33: the statement.
34:
35: It deserves mentioning that the linked tables do not all have to
36: reside in the same back-end MDB. You could use multiple back-end
37: databases, if necessary.
38:
39: At different times I've recommended to people that their applications
40: routinely break links as the database shuts down, then automatically
41: rebuild the links as it starts up again. Here's some code for deleting
42: linked tables without deleting local tables that must stay in the
43: database:
44:
45: Public Sub DeleteLinks()
46: Dim tdf As DAO.TableDef
47: For Each tdf In CurrentDb.TableDefs
48: If Left(tdf.Name, 4) <> "MSys" _
49: And (tdf.Attributes And dbAttachedTable) = dbAttachedTable Then
50: CurrentDb.TableDefs.Delete tdf.Name
51: End If
52: Next tdf
53: End Sub
54:
55: For instance, you might use the DeleteLinks function to break
56: all existing linked tables and rebuild them pointing at a different
57: back-end database.
58:
59:


Posted by sachauncey at 04:57 PM

August 01, 2003

Read Only to Read Write!

Change a file from Read Only to Read - Write. Great if you put an mdb on a CD user doesn't have to know how to make it read/write when copied to his drive.
1:     Private Sub Form_Load()

2: Dim FSO
3: Dim ATT
4: Set FSO = CreateObject("Scripting.FileSystemObject")
5: Set ATT = FSO.GetFile(Me.Application.CurrentProject.Path &
6: "\UPS_DATA_CREATER.mdb")
7:
8: ATT.Attributes = 0
9: End Sub
10: where "\UPS_DATA_CREATER.mdb" = to application name


Posted by sachauncey at 02:37 PM

New RSS Application from Wired News

As reported by Dave Winer, Wired News has a new beta RSS application -- Give it a search term, and it returns articles that include the term.more

Posted by sachauncey at 12:11 AM