Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 97 users online: 5 members, 82 guests and 10 bots. Members: alanclem, kzhifr, props2tails, qazz42, shmibs. Bots: VoilaBot (1), MSN/Bing (2), Magpie Crawler (2), VoilaBot (5).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 16 Jan 2012 04:52:27 pm Post subject: |
|
|
| KermMartian wrote: | | That's why it's there, because without it it wouldn't know which page to go to. Is that what you meant, comic? Thoughts, tifreak? |
That is indeed what I meant. But I also think tifreak is referring to when it's 0, to omit the post number. Which I suggested that phpBB be modded to do that, not sax(jax). _________________
-Alex |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 17 Jan 2012 09:29:20 am Post subject: |
|
|
Hmm, it looks to me as if posts are tagged f=XX&p=XX when clicked from the homepage, at least. Technically, all you need is the post number, and it can grab the associated forum and topic from the database. _________________
 |
|
| Back to top |
|
|
tifreak8x

Guru

Joined: 16 Mar 2005 Posts: 9060 Location: Sol System
|
Posted: 17 Jan 2012 09:56:27 am Post subject: |
|
|
Oh, I see. Well, so long as it works. It'd just be nice if it dropped down to the proper post instead of staying at the top of the page, but only god knows why it does that. _________________ Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Look here for Assembly Resources. |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 17 Jan 2012 10:29:47 am Post subject: |
|
|
| tifreak8x wrote: | | Oh, I see. Well, so long as it works. It'd just be nice if it dropped down to the proper post instead of staying at the top of the page, but only god knows why it does that. | Wait, it doesn't? That's the whole point of the #number on the end of the URL. _________________
 |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 17 Jan 2012 04:11:26 pm Post subject: |
|
|
I went to TIFW and saw that when clicking on the last post link, I was able view the associated post without scrolling (the page moved down to it). Just like here on Cemetech.
However, when clicking on a post in IRC the page stays at the top of the page, where as I move to the post when directed. I took at a look at the URL, and the post number at the end in http://cemete.ch/p173974#173974 isn't being translated over. Perhaps it's the same for those TinyURL's as well? _________________
-Alex |
|
| Back to top |
|
|
tifreak8x

Guru

Joined: 16 Mar 2005 Posts: 9060 Location: Sol System
|
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 15 May 2012 05:09:07 pm Post subject: |
|
|
I'm thinking maybe sax shouldn't post when an article gets edited on the wiki? Or it should find some way to group them, or only announce in some channel dedicated to wiki edit. This is an example of why:
| Quote: | 17:05:17 (W) *** Merthsoft edited article [MCSPutVar2]
17:05:13 (C) ***zeldaking has entered the room.
17:05:10 (W) *** Merthsoft edited article [MCSOvwDat2]
17:05:01 (W) *** Merthsoft edited article [MCSGetDlen2]
17:04:54 (W) *** Merthsoft edited article [MCSGetData1]
17:04:47 (W) *** Merthsoft edited article [MCSDelVar2]
17:04:40 (W) *** Merthsoft edited article [MCS DeleteDirectory]
17:04:34 (W) *** Merthsoft edited article [MCS CreateDirectory]
17:04:00 (W) *** Merthsoft created new article [Category:Main Memory]
17:02:34 (#) shaun: rockin
17:02:20 (#) IkariTari: yeah, that's the idea
17:02:13 (#) shaun: I assume we're going to have sub-categroies for display, memory, serial, etc?
17:02:04 (W) *** Merthsoft edited article [Syscall Reference]
17:01:53 (W) *** Tari edited article [Category:Syscalls]
17:00:19 (#) shaun: oops
17:00:17 (W) *** Merthsoft edited article [PrintXY]
17:00:01 (#) shaun: oh
16:59:57 (#) IkariTari: it does
16:59:45 (#) shaun: IkariTari: Can the syscall template have the [[Category:Syscalls]] in it?
16:59:35 (C) ***hellninjas has entered the room.
16:59:24 (W) *** Merthsoft edited article [Locate OS]
16:59:22 (#) Juju: 0x5
16:59:15 (W) *** Merthsoft edited article [Bdisp EnableColor]
16:59:06 (#) ***Souvik_ has logged out
16:58:48 (W) *** Merthsoft edited article [Bdisp AllClr VRAM]
16:56:31 (W) *** Merthsoft edited article [Syscall Reference]
16:56:19 (C) ***hellninjas has entered the room.
16:55:47 (#) qazz42: All the edits
16:55:20 (W) *** Merthsoft edited article [MCSPutVar2]
16:55:10 (W) *** Merthsoft edited article [MCSOvwDat2]
16:55:01 (W) *** Merthsoft edited article [MCSGetDlen2]
16:54:52 (W) *** Merthsoft edited article [MCSGetData1]
16:54:46 (#) KermM: hey shaun
16:54:45 (W) *** Merthsoft edited article [MCSDelVar2]
16:54:24 (W) *** Merthsoft edited article [MCS DeleteDirectory]
16:53:34 (W) *** Merthsoft edited article [MCS CreateDirectory] |
_________________ Shaun |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 15 May 2012 05:24:11 pm Post subject: |
|
|
Perhaps, every five minutes announce how many edits have been made and link to the Recent Changes, where interested parties can view the changed articles. _________________
-Alex |
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 15 May 2012 05:26:42 pm Post subject: |
|
|
I think that's a good idea--of course, it should only announce how many edits were made if there are more than 0 edits  _________________ Shaun |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 15 May 2012 05:55:12 pm Post subject: |
|
|
Pain in the neck from the programming side, but I'll try to think about a good way to solve it. I don't hate the grouping idea, but I think when we're not heavily editing the wiki, the messages aren't necessarily too big a deal. _________________
 |
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 17 May 2012 10:22:54 am Post subject: |
|
|
Without actually knowing how it's set up, I don't see why it's a pain in the neck. Instead of every time you get a change message announcing it, just add one to a counter. Every five minutes check that counter, if it's > 0 announce "There have been {0} edits in the past five minutes, see http://prizm.cemetech.net/index.php?title=Special:RecentChanges for details." and reset the counter. I don't know what kind of timer/threading infrastructure sax has, so maybe that's the hangup? _________________ Shaun |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 17 May 2012 11:49:45 am Post subject: |
|
|
The painful part would be changing SAX so that it had some sort of cache, creating a place for it to cache said messages, perform some regex-based check on messages to see if they needed to be cached (or perhaps based on source, something it doesn't currently discriminate about). _________________
 |
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 17 May 2012 11:50:38 am Post subject: |
|
|
Why would it need to cache? It needs a single counter variable, that surely can't be hard. _________________ Shaun |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 17 May 2012 11:52:18 am Post subject: |
|
|
| merthsoft wrote: | | Why would it need to cache? It needs a single counter variable, that surely can't be hard. | It's not a constantly-running daemon. It's a PHP function that gets invoked any time the site receives a line to add to SAX. With the sort of hosting that I have, I can't run any continuous daemons. _________________
 |
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 17 May 2012 11:53:16 am Post subject: |
|
|
Ah, I see. It might be easier to have DoorsCS do it, then. _________________ Shaun |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 17 May 2012 11:54:24 am Post subject: |
|
|
| merthsoft wrote: | | Ah, I see. It might be easier to have DoorsCS do it, then. | Doors CS or SaxJax, yes, which are both continuously-running bots. I'm just saying that the in-page SAX couldn't easily do what you're talking about. If the only thing you're complaining about is the messages to IRC, then yes, I could trivially implement what you're talking about in SaxJax. _________________
 |
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 17 May 2012 11:57:14 am Post subject: |
|
|
Ahh, I get it. Yeah, I don't actually care about sax, since I never chat from there--at the time it was just easier to screenshot sax . All I care about is IRC  _________________ Shaun |
|
| Back to top |
|
|
AHelper

LONG LIVE COMICTECH

Joined: 30 Jan 2011 Posts: 1658 Location: Aufhelperstan, Utopian Republic
|
Posted: 17 May 2012 04:05:30 pm Post subject: |
|
|
Why not look at the scrollback? If there was an edit within the last 5 minutes in the scrollback, or none at all, then it will post an edit message. _________________ °ᴥ° Get Lucky
<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol." |
|
| Back to top |
|
|
elfprince13

OVER NINE THOUSAND!

Joined: 23 May 2005 Posts: 10232 Location: A galaxy far far away......
|
Posted: 18 May 2012 01:24:08 pm Post subject: |
|
|
If you're dumping the edits into SAX anyway (the way we do with anything else), it shouldn't be hard to do the counter in pure JS. Whenever new lines come in, check if they're a (W) and if they fit the form /usernameregexhere edited/
Saxjax doesn't have to do anything special, and I'm assuming similar code is already in place for the highlight boxes that appear at the bottom of the page when we're away. _________________ StickFigure Graphic Productions || VSHI: Vermont Sustainable Heating Initiative
 |
|
| Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.042229 seconds.
|