,           ,
 /             \ 
((__-^^-,-^^-__))
 `-_---' `---_-'
  `--|o` 'o|--'     TWiki . Codedev
     \  `  /
      ): :(
      :o_o:
       "-"
::: DarrylQuickNotes :::
Search: 
  TWiki . Codedev . DarrylQuickNotes # Edit # Attach # Diffs # Printable # More :::
Logged in as TWikiGuest

OSIMS

Codedev
WebChanges
WebIndex
WebNotify
WebStatistics

People

TWiki System

Sandbox


Stuff that doesn't deserve a page for temporary storage


-- DarrylVanDorp - 15 Oct 2002

select * from channel_logs where nick='SomeNick' order by entered desc limit 1;

Like a seen query gets the last row for that nick in the database.


-- DarrylVanDorp - 15 Oct 2002

String processing in python:

http://www-106.ibm.com/developerworks/linux/library/l-python5.html


--DarrylVanDorp - 16 Oct 2002

Gentle regular expressions tutorial

http://nltk.sourceforge.net/tutorial/regexps/nochunks.html


--DarrylVanDorp - 23 Oct 2002

Access zSQl methods from a python script (inside zope)

http://lists.initd.org/pipermail/psycopg/2002-June/001168.html (read the thread not the individual message)


--DarrylVanDorp - 30 Oct 2002

Silly COM program example in python (win32 only of course)

import win32com.client
import agent
Agent=win32com.client.Dispatch("Agent.Control.2")
Agent.Connected=1
Agent.Characters.Load("Merlin","C:\WINNT\MSAGENT\CHARS\MERLIN.ACS")
Merlin=Agent.Characters("Merlin")
Merlin.Show()
Merlin.Speak("You are fired!")
Merlin.Hide()
Agent=None

Note: Why did this only work when pythonwin was running?

# Edit menu  


Revision r1.5 - 02 Nov 2002 - 02:17 GMT - DarrylVanDorp

Copyright © 2000 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.

SourceForge