tf23's Journal http://www.slashcode.com/~tf23/journal/ tf23's Slashcode Journal en-us Copyright 2004, OSTG - Open Source Technology Group, Inc. All Rights Reserved. 2012-01-25T03:25:50+00:00 Me admins@slashcode.com Technology hourly 1 1970-01-01T00:00+00:00 tf23's Journal http://images.slashcode.com/topics/topicslash.gif http://www.slashcode.com/~tf23/journal/ section-topics http://www.slashcode.com/~tf23/journal/372?from=rss <p>I've been playing with the <a href="http://www.slashcode.com/article.pl?sid=04/06/11/1239258&amp;tid=4">section-topics</a> changes... so far, so good. I added more graphics and info to the <a href="http://slash.lottadot.com/slash/04/06/18/001233.shtml">article</a> I posted about it. So check it out if you're curious but don't have the time to deal with the new code...</p> tf23 2004-07-12T21:44:44+00:00 slash Slash won't play with OSX http://www.slashcode.com/~tf23/journal/366?from=rss <p>I'm posting this as an FYI. I don't know if this is a real issue or not, and, honestly, I don't have the time to deal with it at the moment. So bear with me.</p><p>For the past ~8 months, I wasn't able to make install on the slash source-tree on my OSX machine (PB 1.2515").</p><p>When I first got the power book back in ~Sep2003 it worked.<br>Then all of a sudden, it stopped.</p><p>When it builds, it breaks with this:<br><tt><br>rm -f<nobr> <wbr></nobr>../blib/arch/auto/Slash/Apache/Apache.bundle<br>LD_RUN_PATH="" MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib Apache.o -o<nobr> <wbr></nobr>../blib/arch/auto/Slash/Apache/Apache.bundle<br>chmod 755<nobr> <wbr></nobr>../blib/arch/auto/Slash/Apache/Apache.bundle<br>cp Apache.bs<nobr> <wbr></nobr>../blib/arch/auto/Slash/Apache/Apache.bs<br>chmod 644<nobr> <wbr></nobr>../blib/arch/auto/Slash/Apache/Apache.bs<br>Manifying<nobr> <wbr></nobr>../blib/man3/Slash::Apache.3pm<br>Manifying<nobr> <wbr></nobr>../blib/man3/Slash::Constants.3pm<br>Manifying<nobr> <wbr></nobr>../../blib/man3/Slash::Custom::Bulkmail.3pm<br>Manifying<nobr> <wbr></nobr>../../blib/man3/Slash::DB::MySQL.3pm<br>Manifying<nobr> <wbr></nobr>../../blib/man3/Slash::DB::Oracle.3pm<br>Manifying<nobr> <wbr></nobr>../../blib/man3/Slash::DB::PostgreSQL.3pm<br>cp MySQL.pm<nobr> <wbr></nobr>../../../blib/lib/Slash/DB/Static/MySQL.pm<br>Manifying<nobr> <wbr></nobr>../../../blib/man3/Slash::DB::Static::MySQL.3pm<br>Manifying<nobr> <wbr></nobr>../../../blib/man3/Slash::DB::Static::Oracle.3pm<br>Manifying<nobr> <wbr></nobr>../../../blib/man3/Slash::DB::Static::PostgreSQL.<nobr>3<wbr></nobr> pm<nobr> <wbr></nobr>/usr/bin/perl<nobr> <wbr></nobr>/System/Library/Perl/5.8.1/ExtUtils/xsubpp -typemap<nobr> <wbr></nobr>/System/Library/Perl/5.8.1/ExtUtils/typemap Debug.xs &gt; Debug.xsc &amp;&amp; mv Debug.xsc Debug.c<br>cc -c -I/System/Library/Perl/5.8.1/darwin-thread-multi-<nobr>2<wbr></nobr> level/auto/Apache/include -I/System/Library/Perl/5.8.1/darwin-thread-multi-<nobr>2<wbr></nobr> level/auto/Apache/include/modules/perl -I/usr/include/httpd -I/usr/include/httpd -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.003000\" -DXS_VERSION=\"2.003000\" "-I/System/Library/Perl/5.8.1/darwin-thread-multi<nobr>-<wbr></nobr> 2level/CORE" Debug.c<br>Debug.xs:48:22: missing terminating " character<br>Debug.xs:49: error: parse error before "t"<br>Debug.xs:49:20: missing terminating " character<br>make[4]: *** [Debug.o] Error 1<br>make[3]: *** [subdirs] Error 2<br>make[2]: *** [subdirs] Error 2<br>make[1]: *** [subdirs] Error 2<br>make: *** [slash] Error 2<br></tt></p><p>Now, here's where it gets interesting. I grabbed a new checkout of the source-tree in preparation for all the Section/Topic updates (see <a href="http://www.slashcode.com/article.pl?sid=04/06/11/1239258&amp;mode=nested&amp;tid=4">article</a>). That way I had a clean c/o and could monitor what had changed easier then my diffed-to-hell srctree.</p><p>So for the heck of it I rm -fR'd<nobr> <wbr></nobr>/usr/local/slash, and then did make install on the fresh checkout.</p><p>It worked w/o any problems. I was very surprised at this point (pleasantly, obviously).</p><p>I've not run install-slashsite or anything (I'll have to do some house cleaning... backup the previous db's, etc) before I run install-slashsite on it.</p><p>But if this works, it comes with great timing in that I'll have the laptop but no 'net access all next week. So if I have time I can work on some Slash-related code/projects via the laptop once again.</p> tf23 2004-06-17T11:23:00+00:00 bugs Commercializing Open Source Software http://www.slashcode.com/~tf23/journal/289?from=rss <p>Slashdot's got a story titled <a href="http://slashdot.org/article.pl?sid=03/09/03/1237243&amp;mode=nested&amp;tid=98&amp;tid=99">Commercializing Open Source Software</a>.</p><p>OMG! Just <a href="http://www.matchstick.com/">CowboyRobot's</a> summary of it struck a cord with me.</p><p>I cannot *count* the number of times people have emailed me asking for a feature from XYZ software (especially Slash plugins). They say "they need it for their site" or "they need it for a client" -- will I add it to XYZ for them??</p><p>I guess these people think I'm a millionaire and can donate my time to helping them with their personal sites or helping them *make money*.</p><p>The gull of people when they ask for modifications because they need it for a client. If you need it, write it. Submit a patch. That's the beauty of the src available - it's available for the benefit of all. And you're supposed to contribute *back* so that everyone continues to benefit.</p><p>Not a single offer, ever, from any of these requests, for payment, I might add.</p><p>Anyway, that article struck a cord with me. I think it's time to read it now<nobr> <wbr></nobr>:)</p><p> &nbsp; tf23</p> tf23 2003-09-03T14:21:37+00:00 plugins been workin http://www.slashcode.com/~tf23/journal/283?from=rss <p>This morning I woke up and started coding. It figures, I get in the mood, and it's beautiful outside. It's supposed to be in the 80's today. Nice.</p><p>Maybe I'll ride the bike in the afternoon.</p><p>Anyway, I was working on two things this morning. One was <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=773683&amp;group_id=4421&amp;atid=104421">this bug</a> and the other is the <a href="http://software.lottadot.com/faqster.pl">faq plugin</a>.</p><p>I had wanted Cliff to post some info into one of the faq's. But he couldn't figure out how to do it. So I set down in the mindframe of someone who hadn't use the faq plugin before - and hell, I couldn't figure out how to do it.</p><p>So it needed some work. Sometimes it's amazing how you can code something up, it makes perfect sense to you, but others look at it and go "whoa".</p><p>One of the things I added were reply 'buttons'. That way, if someone posts a question or answer, you can hit reply and post a comment about it. The subject of the question/answer carries over to the post.</p><p>What I found out, however, is that you can't prepopulate the body of a comment with data when calling comment.pl?op=reply</p><p>My guess as to why that is - to discourage people from putting the parent post's body text into their post, whether italiced/indented etc.</p><p>Have a look at it running <a href="http://software.lottadot.com/faqster.pl">here</a> or it's src via <a href="http://dev.lottadot.com/cgi-bin/cvsweb.cgi/faqster/?only_with_tag=rel-1-0-devel">cvs</a>. Most of the changes are cosmetic, and are in the <a href="http://dev.lottadot.com/cgi-bin/cvsweb.cgi/faqster/templates/?only_with_tag=rel-1-0-devel">templates</a>.</p> tf23 2003-07-19T14:35:38+00:00 plugins Slash CSS Theme http://www.slashcode.com/~tf23/journal/272?from=rss <p>Two days ago I got fed up with Slash not using CSS. Don't get me wrong - I'm not complaining - I'm dearly grateful that Slash's src is available as a backend; it's saved me many many hours of coding.</p><p>However, it would be *so* much better with CSS.</p><p>So, I started converting. Yes, I know <a href="http://slashcode.com/~pty">pty</a> started doing this recently, and yes, I hate to double up on a project. (pty, just incase, I'm not trying to one up you are anything even remotely close to that).</p><p>I just couldn't take it anymore. I had to give it a shot.</p><p>I think pty's project and mine differ in that he's going strict, while I'm not.</p><p>Anyway, I have made some progress. Infact, I've got to the point where I needed to modify plugin's templates (specifically, the journalhead and Slash::Message's display_prefs; the problem was the userslashboxes on the right hand side. they were tr td'd, I needed to div them so I could throw them to the right in the style sheet).</p><p>Take a look at it: <a href="http://fry.lottadot.com/">http://fry.lottadot.com/</a>. I don't intend to wack this test-site's db over the course of the next week or two, so get an account on it if you want and mess around.</p><p>If you're using a newer browser, you can use different style sheets. The "noboxen" has errors. The "coolbreeze" works quite well, but was a 15 minute hack from another site's css file (and yes, the columns are <i>reversed</i> on purpose). Using Konqueror - it's under the view menu, with Moz it's under the view menu too).</p><p>If you are at all interested in this, please post and let me know. It would be great to get some feedback. It would be even better to get some *help* with it. And it would be greater still to get some feedback from the OSDN guys as to was I could make this easier for them to possibly use in the future... hint? hint?<nobr> <wbr></nobr>:)</p> tf23 2003-05-22T23:23:38+00:00 plugins photogal plugin http://www.slashcode.com/~tf23/journal/251?from=rss <p>v1.0's done. I tagged release 1.0, then merged the devel 1.0.devel branch to head, and then created a new branch for 1.1.devel. Cliff, you will never know how much I have thanked you in my head over the past year for pushing me towards using CVS. What a sweet tool cvs is!! hit <a href="http://lottadot.com/">http://lottadot.com/</a> to snag the plugin.</p> tf23 2003-02-22T13:28:06+00:00 plugins faq plugin http://www.slashcode.com/~tf23/journal/247?from=rss <p>I put info about it up, and put it into the CVS tree. Apparently people are interested. I guess the question is - how interested? Enough to write code to submit a patch to help finish it? Or does the majority just want someone to finish it and release it so they can use it w/o having to help code/test it???</p><p>Enquiring minds want to know<nobr> <wbr></nobr>:)</p><p>It'd be interesting to know how many people are out there coding for Slash. Versus how many sites are out there running Slash.</p><p>Anyway, hit <a href="http://www.lottadot.com/">lottadot.com</a> for more info/download it.</p> tf23 2003-02-12T12:45:31+00:00 bugs Galleria photo gal plugin new release http://www.slashcode.com/~tf23/journal/243?from=rss <p>The second beta is out. I fixed a few things. Thanks to all of you trying this code out for me. More info here: <a href="http://www.lottadot.com/">http://www.lottadot.com/</a></p> tf23 2003-02-02T14:22:03+00:00 plugins Photo gallery plugin http://www.slashcode.com/~tf23/journal/238?from=rss <p>OK, so I've been coding quite a bit lately. I try to do all my coding during the colder months, that way when it's warmer I can <a href="http://mtb.lottadot.com/">ride</a>.</p><p>Anyway, I've got the gumption to work on the photo gallery plugin a little while ago. As a result, its just about totally re-written, with some of my best new-fangled slash and perl knowledge. (special thanks to <a href="http://sourceforge.net/users/hc-chien">hc-chien</a> and <a href="http://sourceforge.net/users/cbwood">cliff</a> for help/advice with the http upload code, and <a href="http://sourceforge.net/users/pudge">pudge</a> for the example code using Imager).</p><p>For information - see this <a href="http://www.lottadot.com/article.pl?sid=03/01/03/189208">article on lottadot.com</a> about the plugin, and how to grab it from CVS if you want to try it.</p><p>Merry xmas. Happy Holidays. Happy newyear. Enjoy the new plugin and it's hopefull relase later this month.</p><p>GO BUCKEYES!!</p> tf23 2003-01-03T18:21:26+00:00 plugins the subscription plugin http://www.slashcode.com/~tf23/journal/237?from=rss <p>I'm wondering if anyone's used it for anything *besides* online advertising on their site...</p> tf23 2002-12-25T17:01:58+00:00 plugins upgrading to R_2_3_0_62 slash http://www.slashcode.com/~tf23/journal/235?from=rss <p>Yesterday I spent many hours upgrading a slash site (one of 4) to the latest R tag in cvs.slashcode.com.<br>I think the whole process, beginning, to what we'll call the end, took about 5 or 6 hours.</p><p>The site is 99% functional.</p><p>I took notes throughout the whole process. I will post a story on one of my sites about it, w/ the notes, probably by next weekend. (It's the holidays, I've gotta get drunk and stuff myself numerous times over the course of the next few days).</p><p>So in the mean time, I thought I'd put up some of the errors I'd encountered.</p><p>I upgraded from CVS fry to CVS R_2_3_0_62.</p><p>I used the sql/mysql/upgrades file.</p><p>Some of the problems I had with it were (w/ the line from the upgrades file copied underneath the error):</p><p>ERROR 1062 at line 338: Duplicate entry '' for key 2<br>ALTER TABLE submissions ADD UNIQUE story_signature(signature);<br>ERROR 1091 at line 377: Can't DROP 'feature_story'. Check that column/key exists<br>#ALTER TABLE sections DROP feature_story;<br>ERROR 1062 at line 379: Duplicate entry '10' for key 1<br>INSERT INTO message_codes (code, type, seclev, modes) VALUES (10, 'Daily Site Stats', 100, 0);<br>ERROR 1062 at line 537: Duplicate entry 'displaycodes_sec--1' for key 2<br>INSERT INTO code_param (type, code, name) VALUES ('displaycodes_sectional', -1,'Don't Display');<br>INSERT INTO code_param (type, code, name) VALUES ('displaycodes_sectional', -1,'Don't Display');<br>ERROR 1062 at line 557: Duplicate entry 'cookiesecure' for key 1<br>INSERT INTO vars (name, value, description) VALUES ('cookiesecure','1','Set the secure flag in cookies if SSL is on?');<br>ERROR 1068 at line 683: Multiple primary key defined<br>ALTER TABLE modreasons CHANGE id id TINYINT UNSIGNED NOT NULL PRIMARY KEY;</p><p>after I did that, I had written up a few sql statements that needed to be run (basically change all the vars from sitename.org to test.sitename.org, etc), change writestatus, etc.</p><p>then i ran install-plugin to install the new plugins that I wanted on the site.</p><p>then I found out there were some scripts I needed to run:<nobr> <wbr></nobr>./plugins/Zoo/rebuildPeople -u testbj<nobr> <wbr></nobr>./utils/dst-update.plx testbj<nobr> <wbr></nobr>./utils/colors-update.plx testbj</p><p>after all the time spent on this, I didn't give a crap how it looked. all I was going for last nite was functionality. I can fix cosmetics later.<br>So I blew away any customizations I had in the templats for the site's theme:</p><p>cd themes/slashcode/templates<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../../<br>cd plugins/Admin/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/PollBooth/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/Submit/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/Sections/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/Zoo/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/Journal/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/Hof/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/PubKey/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/Search/templates/<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..<br>cd plugins/Messages/templates<br>template-tool -u testbj -s *<br>cd<nobr> <wbr></nobr>../../..</p><p>then I imported my last postupgrade.sql file, and ran:</p><p>runtask -u testbj new_headfoot.pl<br>runtask -u testbj calstats.pl<br>runtask -u testbj freshenup.pl</p><p>the site works. one thing I haven't figured out:</p><p>Can't locate object method "getSectionTitle" via package "Slash::DB::MySQL"</p><p>and Failed template lookup on ';portald[misc];index[default]'</p><p>I grepped for the template. I did a find. I looked through cvs.slashcode.com.</p><p>No luck. Anyone have it?</p> tf23 2002-12-23T12:48:45+00:00 slash Plugins a comin http://www.slashcode.com/~tf23/journal/159?from=rss <p>I've got a classifieds plugin, and a re-worked Calendar plugin nearing completion. Recurring events and all. Anyone interested in betatesting/debuggin?<nobr> <wbr></nobr>:)</p> tf23 2002-01-26T13:46:05+00:00 plugins blah blah blah http://www.slashcode.com/~tf23/journal/143?from=rss <p>Obviously I don't use this much. But to all who'd ever click on it, possibly looking for more info about some of the slash-pluggins I'm working on, here's an update:</p><p>The plugin-development (calendar, photogallery) development has slowed to an all time crawl, almost non-existant. This is because we are frantically looking for a new house, we've gotta move.</p><p>I'm expecting this to be done by the end of Jan 2002.<br>Consequently, I'll hopefully have the time to finish both plugins then.</p><p>As always, goto <a href="http://lottadot.com/">http://lottadot.com/</a> for more info.</p> tf23 2002-01-04T12:55:16+00:00 slash credit card processing http://www.slashcode.com/~tf23/journal/125?from=rss <p>Hey all, I'm starting to research credit card authentication companies. Do any of you have any recommendations, or prior experience with any vendors?</p><p>We are looking for information about this, in the hopes that we can a) add a slash compatable plugin that could do such transactions and b) offer it to the sites we are to host.</p> tf23 2001-11-03T13:23:24+00:00 bugs