<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Advogato blog for donky</title>
    <link>http://www.advogato.org/person/donky/</link>
    <description>Advogato blog for donky</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Sat, 18 May 2013 14:32:52 GMT</pubDate>
    <item>
      <pubDate>Thu, 19 Apr 2001 12:41:20 GMT</pubDate>
      <title>19 Apr 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=10</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=10</guid>
      <description>&lt;p&gt;
Aaaaaaargh.  Yet again completely lost ability to log into 
MySQL - forgot password AGAIN!

&lt;p&gt; &lt;p&gt;
&lt;a href="http://list.cobalt.com/pipermail/cobalt-
developers/2000-November/003222.html" &gt;Heres a good link&lt;/a&gt; 
on how to go about resetting the password.

&lt;p&gt; &lt;p&gt;
For the next time..

&lt;p&gt; &lt;pre&gt;
1. Kill MySQL.
&amp;gt; ps aux | grep mysql // note the PID
&amp;gt; kill -9 [PID_HERE]
2. Start MySQL bypassing grant tables.
&amp;gt; mysqld -Sg
3. Change MySQL password for user root (below prompt is 
MySQL prompt)
&amp;gt; USE mysql;
&amp;gt; UPDATE user
&amp;gt; SET password = password("NEW_PWD_HERE")
&amp;gt; WHERE user = "root";
&amp;gt; flush privileges;
&amp;gt; exit;
4. Repeat step 1 and step 2.
5. Restart mysqld without -Sg flags to restart using grant 
tables (access
control system).
&lt;/pre&gt;</description>
    </item>
    <item>
      <pubDate>Mon, 16 Apr 2001 22:52:52 GMT</pubDate>
      <title>16 Apr 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=9</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=9</guid>
      <description>&lt;p&gt;
Got the session code mostly working.  Main problem is 
clearing out cookies - can't for the life of me seem to get 
the browser to immediately delete the cookie.  Best I can 
do is getting it cleared out when the browser closes.
&lt;p&gt;
Next comes fleshing out the login process.  And the use of 
MySQL.</description>
    </item>
    <item>
      <pubDate>Mon, 16 Apr 2001 13:58:55 GMT</pubDate>
      <title>16 Apr 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=8</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=8</guid>
      <description>Back onto Whelkboard after a short evaluation period of 
Scoop.  Has been decided to make it into something like 
Scoop - at least to a limited degree.  Promised to do some 
work on it yet again - wonder if I will this time.
&lt;p&gt;
Went through the usual process of wondering why Apache was 
not working.  Turned out to be the permissions on the 
directories - I had recursively set the group and user to 
the user who was doing the editing.  I reset these 
to "nobody"  and it all came right (as compared to munging 
the all users permissions).  I also had to change the 
config file to reflect the settings on my machine.  Also 
had to change the Apache conf file to reflect the correct 
document root.
&lt;p&gt;
Hopefully this will help me work out what is going wrong 
the next time.
</description>
    </item>
    <item>
      <pubDate>Sun, 11 Mar 2001 12:44:48 GMT</pubDate>
      <title>11 Mar 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=7</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=7</guid>
      <description>&lt;p&gt;
Started rewrite of whelkboard.  Notes:

&lt;p&gt; &lt;p&gt;
&lt;b&gt;MySQL&lt;/b&gt;:
&lt;ol&gt;
&lt;li&gt;&lt;i&gt;Setting the password for a database user&lt;/i&gt;&lt;br&gt;&lt;br&gt;
Assigning a password to the user via 
&lt;pre&gt;
UPDATE USER
SET PASSWD = PASSWORD('password')
WHERE USER='username'&lt;/pre&gt; 
just didn't seem to assign a properly encrypted password.  
Eventually discovered (when logged in as the root user) 
&lt;pre&gt;SET PASSWORD FOR username = PASSWORD('password');&lt;/pre&gt;

&lt;li&gt;
&lt;i&gt;Using MySQLdb&lt;/i&gt;
&lt;br&gt;&lt;br&gt;
&lt;pre&gt;db.fetchall()&lt;/pre&gt; returns a tuple containing a tuple 
for each row. e.g.
&lt;pre&gt;
((1L, 'fudge'))
&lt;/pre&gt;

&lt;/ol&gt;

&lt;p&gt; Next step is to build in simple user support and then to 
hook that into cookies.  Would like to run all the python 
CGI in the same runtime so that I can keep a resident 
shared object but have no idea how to go about it at this 
stage.</description>
    </item>
    <item>
      <pubDate>Mon, 5 Mar 2001 21:12:34 GMT</pubDate>
      <title>5 Mar 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=6</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=6</guid>
      <description>&lt;p&gt;
Why are my spaceships not turning?


&lt;p&gt; &lt;p&gt;
Learning Icelandic is very hard.  Its funny to find that 
English is such an easy language to learn comparatively.


&lt;p&gt; &lt;p&gt;
Not enough time to write something similar to Scoop in 
Python or work on my MUD...
</description>
    </item>
    <item>
      <pubDate>Thu, 15 Feb 2001 11:38:48 GMT</pubDate>
      <title>15 Feb 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=5</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=5</guid>
      <description>Being in a country where it snows lightly for days on end 
is fantastic.  The only downside is when you have to walk 
into it :)</description>
    </item>
    <item>
      <pubDate>Thu, 15 Feb 2001 00:14:10 GMT</pubDate>
      <title>15 Feb 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=4</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=4</guid>
      <description>&lt;p&gt;
Feh.  Finally got it.

&lt;p&gt; &lt;tt&gt;
import pgdb&lt;br&gt;
db = pgdb.connect('localhost:whelkboard:wbuser:password')
&lt;br&gt;
cursor = db.cursor()&lt;br&gt;
cursor.execute(CreateTableSQL)&lt;br&gt;
db.commit()&lt;br&gt;
cursor.close()&lt;br&gt;
db.close()&lt;br&gt;
&lt;/tt&gt;

&lt;p&gt; &lt;p&gt;
During the day today, after work, I can finally start 
programming the Python for Whelkboard.  Have decided its 
probably best if I ditch David's initial code and use it as 
a reference.  Anyway its late, and work starts at 10:00 AM 
as always.</description>
    </item>
    <item>
      <pubDate>Wed, 14 Feb 2001 21:28:24 GMT</pubDate>
      <title>14 Feb 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=3</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=3</guid>
      <description>&lt;p&gt;
Have written down a basic set of SQL table creation 
commands and they are waiting for PostgresQL to become 
functional.  The first step for that to happen is to get 
Python working with it.

&lt;p&gt; &lt;p&gt; &lt;ul&gt;
&lt;li&gt;&lt;b&gt;PyGreSQL&lt;/b&gt;&lt;br&gt;
Looks like a good start.  Was a really simple install, just 
hand compiled the shared object according to the "RedHat" 
instructions that are in the README.linux file - then 
copied it into the python1.5/lib-dynload directory.

&lt;p&gt; &lt;p&gt; &lt;li&gt;&lt;b&gt;mxDateTime&lt;/b&gt;&lt;br&gt;
Gives database safe dates and times or something.  Yet to 
determine if it is of any use.  Installed it anyway.
&lt;/ul&gt;

&lt;p&gt; &lt;p&gt; &lt;p&gt;
Well after spending several hours playing around with 
PostgreSQL, I have finally set up a user who can create 
tables within the database they "own".  Well, upon a check 
just now, it appears not. Feh. Initially the problem was 
that I created my new database "whelkboard" while I was 
the "postgres" user.  Then I was trying to access and then 
assign the database to the "wbuser" user.  With no luck, 
there seemed to either be no way in PostgreSQL how to 
give "wbuser" the ability to create tables within it.  So, 
I dropped the database and created it as "wbuser". This 
worked fine, and creating tables also worked fine - in psql 
that is.

&lt;p&gt; &lt;p&gt;
But, that however, is about as much help as tits on a 
bull.  What I really want is for the "pgdb" Python module 
to create tables as that user.  I can get it to connect as 
that user to that database. I can execute the table 
creation statements on the database with the same output as 
seen in psql, but the statements don't seem to actually 
create the databases.  Admittedly, I think "pgdb" is 
designed for PostgreSQL 6.5, but given that the messages 
coming back from the version I have are the same ones I see 
in psql, that seems to indicate that this isn't the 
problem.  God knows what is.</description>
    </item>
    <item>
      <pubDate>Tue, 13 Feb 2001 20:57:24 GMT</pubDate>
      <title>13 Feb 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=2</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=2</guid>
      <description>The next step in setting up the database structure is to 
hand make the table creation statements.  Here is one prime 
area where open source databases suck so bad, creating SQL 
server databases and tables is so easy and painless.</description>
    </item>
    <item>
      <pubDate>Mon, 12 Feb 2001 22:31:43 GMT</pubDate>
      <title>12 Feb 2001</title>
      <link>http://www.advogato.org/person/donky/diary.html?start=1</link>
      <guid>http://www.advogato.org/person/donky/diary.html?start=1</guid>
      <description>&lt;p&gt;
Trying to reinstall PostgreSQL on the MUD box.  The RedHat 
distribution that the box uses is such a hassle to work 
with.  The RPM tools just don't work and I tend to just 
pretend that previously installed packages aren't installed 
and just rebuild and install over the top.  If it wasn't 
for all the things that the box does that I simply do not 
have time to recreate, I would switch to Debian or 
Slackware.


&lt;p&gt; &lt;p&gt;
First priority is the new boards system for &lt;a href="http://imaginaryrealities.imaginary.com/" &gt;Imaginary 
Realities&lt;/a&gt;.  Which is why I am installing PostgreSQL - 
currently Whelkboard uses pickled python save files and the 
first step is to convert it to use a database backend.

&lt;p&gt; &lt;p&gt;
Quite a few popular open source software seems to suck.  
Take for example PostgreSQL - what a nightmare to set up 
from source, it compiled fine and installed badly - at 
least compared to other packages I have installed using my 
usual technique.  Then there was no obvious documentation 
to show how to get things running.  And to think I used to 
curse Microsoft for bad documentation.

</description>
    </item>
  </channel>
</rss>
