Jelloreceipes.com DirectoryYou are here » Jelloreceipes.com » Links Directory » Computers » Programming (0)
Programming RSS FeedsSort users by disk space used - I just checked in some changes to PyCS, to do with monitoring how much space people are using. The users page now lets you sort by disk space used, so you can figure out which users are using the most. It looks like nobody on pycs.net is using too much, so I'm not worried. Anything less than 50 MB is fine, I think. I also think I cracked the problem that was causing pycs.net to hang. It looks like that happens when you stop the server process, then restart it, but without waiting for it to die properly. I've changed my stop script to keep sending it KILL signals until it's really gone, and the server hasn't hung since. It looks like the referrer pages are taking a little while to generate, as well, so search engines hitting them could be causing trouble. Let's see how this goes ...Feed Source: www.pycs.net Oops -
Mail was broken -- my mailer wasn't relaying properly. So anyone who's been having trouble with mail (via mailto.py) not being delivered, you should find that it works now.
Comment
... User-supplied access restrictions -
Georg has hacked up an XML-RPC API for user-supplied access restrictions in PyCS. This lets users restrict access to bits of their blogs. This is quite a big deal as it's something no other community server does.
Comment
... PyCS ht://Dig integration nearly done -
OK, we're almost there. Posting this to make sure pycs.net is still stable, with the new changes.
Here's my pycs-devel mailing list post on the subject.
More on this later.
Comment
... More new blogs -
Adam's Complete Lack Of Weblog
Blog of Talmage
Comment
... Latest version of Strip-o-Gram -
The Python library that strips unwanted tags out of dodgy HTML, that is
It's available from Chris Withers' zope.org page.
I've been using a pretty old version (after Georg told me about it) for a bit now, but it seems to have trouble with ' (apostrophe) - it turns ' into &apos instead of leaving it alone. Let's see if this has been fixed
Update - it seems that ' doesn't actually exist (check it yourself) in HTML, so it's entirely reasonable that stripogram should ignore it. I guess it's an XML thing then?
So much for using sgmllib for parsing XML.
... Lots of new users ... -
Loads of new users on pycs.net this week. Does anyone want a better URL?
usernum 76: Lateral Opinion
usernum 77: Rabid Ramblings ][
usernum 78: Brainsplit
usernum 79: Michael Beaulieu's Radio Weblog
Comment
... PyCS Zeitgeist -
Thanks to Georg, you can now see a cute colourful display of all the search terms people used to get to this blog.
See also: Georg's mailing list post and what inspired him to do it.
Comment
... Switching comment servers -
Jim Jones has switched from using the UserLand comment server over to the PyCS one (here's how to do it).
Currently, radiocomments.userland.com is quite overloaded. If you're having problems with your blog loading slowly because the comment count script is taking ages to fetch, feel free to use pycs.net instead. It'll speed up your page load times, and take some of the load off the UserLand server, which should help them out a bit.
This is probably better if you've just started a blog, though, as your old comments will be stranded on radiocomments.userland.com if you have any
... More RSS in PyCS -
Georg Bauer has implemented full comment RSS feeds in PyCS.
This means that users on PyCS servers (once they're updated) won't need to use my comment monitor (which generates RSS comment feeds for RCS users). Nice. Time to update pycs.net
Update: Don't use this if you have a huge number of comments, as it will generate a very big RSS file. Currently it gives you everything in there rather than the last 10 or 15 (this is by design -- it's so you never miss a comment, even under heavy flooding). If we hack it to generate Last-Modified and understand If-Modified-Since, it should be fine though.
... Testing -
bzero 0.12 didn't cope well with the new year (year 2003 bug ;-) but that should be fixed now. This is a test to see if it's regenerating December's archives properly and making the front page work here.
Comment
... Remove Unwanted Words in C# - Dr. Sully's article uses VB and I only use C# so I converted his code to a class that is called on the PostBack where a check of the user input occur. The purpose of the class is to check user input for words that you don''t want re-posted to your site. We are currently in the process of implementing in both our Guestbook and our Discussion Forums.
... Bits-N-Pieces - These are a bunch of Bits-N-Pieces of code that I wanted to save, so I put them here<br>... User Password Validator in C# - I was working on our employee Intranet last week and needed to help our employees come up with password that met certain standards. The code is a server side validator that checks four items ... Global Error Handler. Part 2 - One of our first articles using .Net (beta 1) was on a Global Error Handler that was included in our Global.Asax file. Since then we have modified the original code with a few additional features. We also use the same functions in several web sites so we also set up a special web (Errors.yyyZ.Net) to handle all the errors from all of our sites - seems to work great. ... Sending Email in C# to an SQL Table (Article Part 2) - Updated for .Net 1.0In the first article, we showed how to send a basic (html/text) email with or without attachments. In part 2, we'll take it one step further and use an SQL table for our email address source.Using a similiar page, we have sent over 2,800 messages in a matter of minutes05/02/2002 - Code Update... ExecuteScalar / GetObject in C# - This is a function that I have used in almost every application. ExecuteScalar is fast and for returning a single value, almost unbeatable.... Calendar of Events in C# - Updated for .Net 1.0I needed a web based even calendar and thanks to the new .Net Calendar Control, the rest was easy. What I ended up with was a nice little event based calendar that gets events from an SQL database table.04/10 - Updated to correct a bug that appeared when the same date was selected twice.... Email Sign-Up User Control in C# - Updated for .Net Version 1.0For lack of something better to do, I added an email sign-up to my web site - unfortunately however, I don't have a newsletter, just a place to sign-up.The usercontrol is now included in a sample project.... Show/Hide Panel in Javascript - We are merely playing with a little Javascript and a div tag to make a portion of the page appear or disappear. The code is relatively simple to implement, but does add nice bit of functionality to the page. The button goes into the body of the aspx page and the function goes into the page head. ... Webform DatePicker in C# - Updated for .Net Version 1.0This is a C# project for VS.Net. In it's simplicity, a DatePicker for a WebForm is a pop-up Javascript window that uses the calander control. When the DatePicker window has focus, if you click on the date it will be transfered to your main input form. We have also added the ability to select a Year and Month from a DropDownList to make finding a future or past date more convienient... Code Generator in C# - Updated for .Net Version 1.0The C# Class Generator creates a C# class from a SQL database table. The class will have private variables and public properties for each database column. Also created are the database Add,Update, Select, Delete and RecordCount functions. The Add function will automatically set the Class Id column based on the @@identity value. Limitaitions include the necessity if having the first database column named 'Id' and setting its properties to autoincrement. ... Sortable/Pageable DataGrid - Updated for .Net Version 1.0The code for the Pageable/Sortable DataGrid was written by Dino Esposito and appeared in the October 2001 issue of MSDN's 'Cutting Edge' article titled 'Build a Variety of Custom Controls Based on the DataGrid Control '. The original article and code can be found here. I suggest that you read his article to get an understanding of how the code really works... Guestbook in C# - Updated for .Net Version 1.0. This application was adopted from Steve Schofield's original VB Guestbook DotNet application - I converted it to C# and added a few features that work better for me. This was also my first venture at C# and it has been a learning experience.... Webpoll in C# - Updated for .Net Version 1.0WebPoll in C# is implemented as a User Control in a Vs.Net project. I needed a WebPoll for my site, saw one done on AspToday in VBScript for regular ASP. I made a few modifications and converted the project to .Net and C#.... Sending Email in C# for Asp.Net - Updated for .Net 1.0Sending email from Asp.Net is extremely simple. In this first part, we'll look at what it takes to send a basic message (text or Html) with or without an attachment. In addition, as we progress we will also add: the ability to send mail from a database replace fields in the message body with database values ... USA States to DropDownList - Using a DropDownList to select a state from a list of states is a common need... Counting Current Visitors - The top bar of my website contains a counter to track the number of current visitors on the site. It is very simple to implement. Start by opening your Global.asax.cs file.
... Getting Information on Current Visitor - If you are looking for information about who is using your site, certain information is readily available from the Request Object... Using an ASPX Button to Open a Javascript Window - You can open a javascript window in your ASPX application in three easy steps ... Adding a Hover feature to an ASPX Button in C# - Adding a hover feature to change the background color of a ASPX button is relatively simple... Copyright © 2012, Jelloreceipes.com. All Rights Reserved. |