Omnimaga

Omnimaga => OmnomIRC Development => Site Feedback and Questions => Archive => Topic started by: Deep Toaster on October 16, 2010, 03:17:17 pm

Title: Broken TinyURL link glitch
Post by: Deep Toaster on October 16, 2010, 03:17:17 pm
Quote from: OmnomIRC
[13:12:47] (O) New post by MRide in What is your signature? http://tinyurl.com/27mza86#msg74921

I found this in one of SpyBot's posts, which seemed fine but became a broken link. If this link had redirected to some other site, it could have been bad...

EDIT: Weird, it seems to work for some people, but not everyone...

Quote from: OmnomIRC
[13:13:37] <Deep Thought> Weird...
[13:13:41] <Deep Thought> Another broken link.
[13:14:00] <calcdude> what link's broken?
[13:14:13] <@Luther> yeah that link works fine for me
[13:14:31] <ASHBAD_ALVIN> same
[13:14:32] <calcdude> fine for me, too
[13:15:02] <+Ikkerens> not for me
[13:15:13] <calcdude> ... weird...
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: MRide on October 16, 2010, 03:18:06 pm
Weird, it works fine for me....
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: Builderboy on October 16, 2010, 03:18:20 pm
That link works fine for me...
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: calcdude84se on October 16, 2010, 03:18:35 pm
It worked fine for me and others... ???
Edit: ninja'd. twice. :P
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: Deep Toaster on October 16, 2010, 03:18:53 pm
Edited first post. It doesn't work for me, for some reason...
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: Builderboy on October 16, 2010, 03:19:14 pm
what error does it give?
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: jnesselr on October 16, 2010, 03:19:17 pm
I see, so it replaces the # with a .
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: Deep Toaster on October 16, 2010, 03:20:41 pm
Hmm, and an even weirder glitch: For a moment there, SpyBot stopped tinyurl'ing the links...

Quote from: OmnomIRC
[13:16:01] (O) New post by Deep Thought in Broken TinyURL link glitch (mi http://tinyurl.com/279qym6#msg74922
[13:16:07] (O) New post by MRide in yo everybody! http://tinyurl.com/22uenzg#msg74923
[13:16:56] (O) New post by MRide in Broken TinyURL link glitch (mi http://ourl.ca/7459/129048
[13:17:10] (O) New post by Builderboy in Broken TinyURL link glitch (mi http://ourl.ca/7459/129049
[13:17:25] (O) New post by calcdude84se in Broken TinyURL link glitch (mi http://ourl.ca/7459/129050
[13:17:38] (O) New post by Deep Thought in Broken TinyURL link glitch (mi http://tinyurl.com/27pqtsk#msg74927

EDIT: Never mind: http://ourl.ca/7459/129062 (http://ourl.ca/7459/129062).
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: MRide on October 16, 2010, 03:21:24 pm
Yes, this is quite strange
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: calcdude84se on October 16, 2010, 03:21:33 pm
what? the tinyurl, complete with hash symbol, is this: http://ourl.ca/7450/129045 (http://ourl.ca/7450/129045)
That .msg thing is normal.
Edit: Deep Thought, probably because we were posting too much at once :P
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: jnesselr on October 16, 2010, 03:22:05 pm
yeah, probably because tinyurl couldn't handle the requests, and so the bot decided to give the regular link instead.
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: alberthrocks on October 16, 2010, 03:22:11 pm
my bot resorts to regular links when something goes wrong... but I don't think it's my bot.
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: Silver Shadow on October 16, 2010, 03:22:55 pm
The lobster invasion has begun! Flee for your lives!!!
Title: Re: Broken TinyURL link glitch (might be the same as the 3362 glitch)
Post by: Deep Toaster on October 16, 2010, 03:23:04 pm
Darn, and again, the link to this post didn't work...

Maybe it's a problem with TinyURL, seeing as several of their links work for some people but not others?
Title: Re: Broken TinyURL link glitch
Post by: Builderboy on October 16, 2010, 03:23:29 pm
Maybe Netham borrowed some ideas? :D
Title: Re: Broken TinyURL link glitch
Post by: Deep Toaster on October 16, 2010, 03:24:11 pm
Edit: Deep Thought, probably because we were posting too much at once :P

Oh, I see, since it would have put too much of a load on TinyURL. Disregard that post, then. It's not a glitch :)
Title: Re: Broken TinyURL link glitch
Post by: alberthrocks on October 16, 2010, 03:24:53 pm
Netham45 is not implementing TinyURL support correctly. He's requesting a TinyURL for every post. Usually, if it does it correctly, it would use the same link, different # tag.

I can bring my Omnom bot online and you can see the difference.
Title: Re: Broken TinyURL link glitch
Post by: calcdude84se on October 16, 2010, 03:27:20 pm
That shouldn't make it fail, though... especially selectively.
Maybe you should bug Netham about over-using tinyurl?
Title: Re: Broken TinyURL link glitch
Post by: Deep Toaster on October 16, 2010, 03:28:25 pm
Netham45 is not implementing TinyURL support correctly. He's requesting a TinyURL for every post. Usually, if it does it correctly, it would use the same link, different # tag.

I can bring my Omnom bot online and you can see the difference.

Weird, even for the same thread, they're different links... Maybe that's the problem?

EDIT: Maybe he should start using goo.gl :)

EDIT2: Never mind, I don't think they allow bots.

EDIT3: Does TinyURL?
Title: Re: Broken TinyURL link glitch
Post by: DJ Omnimaga on October 17, 2010, 03:45:48 am
I can get those links to work fine, for some reasons. Maybe it was TinyURL or something. Alberthro might want to contact Netham45 or something to help him  implement it better if it's a problem on Netham45 side.
Title: Re: Broken TinyURL link glitch
Post by: Netham45 on October 20, 2010, 03:23:25 pm
Everything seems to work fine for me.

I'm requesting a new TinyURL for each post since the post ID determines what page it goes to(the .msgXXXX part)

It defaults to Omnimaga.org links when TinyURL returns a bogus link or an error 500 twice for the post, otherwise it posts the tinyurl. The TinyURL that the OP posted works fine for me, so I'm not sure what the problem is with that, it'd be on TinyURLs side, or your side.

TinyURL's ToS doesn't have any limitations on how fast I can generate them, at least it didn't last time I checked, as long as I'm not generating them for spam or other malicious purposes. They provide an API for just this type of thing, too.


@Alberthrocks I also don't really appreciate you claiming that I have a broken, flawed, or incorrect TinyURL implementation, either. I have it working like it does for a reason. Just because I don't filter out the .msg part doesn't make it not implemented correctly.
Title: Re: Broken TinyURL link glitch
Post by: DJ Omnimaga on October 20, 2010, 03:27:29 pm
Idk all links seems to work fine. I think TinyURL might have been down at the time. Also we need to remember that it's a lot of TinyURL fetching on busy hours. (Both Cemetech and Omni at once) and maybe some other sites as well, not to mention the traffic they get from regular usage, so it might put some load on the server and sometimes cause failures when trying to use a TinyURL. A year ago I remember their site was down sometimes.

Btw would it be easy to implement using the same link for each topic or would it be hard? I assume this means a database of TinyURLs would need to be created, right?
Title: Re: Broken TinyURL link glitch
Post by: Netham45 on October 20, 2010, 03:29:41 pm
I highly doubt that we're putting enough load on TinyURL to bring it down, we're probably less than a percent of a percent of a percent of their daily usage.

Also, if I did it per-topic, then we'd lose the ability to go to the specific page that the post is on, you'd just go to the first page in the topic.
Title: Re: Broken TinyURL link glitch
Post by: DJ Omnimaga on October 20, 2010, 03:31:32 pm
Oh right, I forgot about the pages. X.x

If Alberthrocks way is so much better as he says, maybe he should share the source code to prove it?
Title: Re: Broken TinyURL link glitch
Post by: Netham45 on October 20, 2010, 03:32:37 pm
Oh right, I forgot about the pages. X.x

If Alberthrocks way is so much better as he says, maybe he should share the source code to prove it?

I have the source code already, but it's completely different from what I'm using now, it's not compatible with it at all. His is Python, mine is PHP, his requested RSS, mine is a direct mod on the posting function of SMF.

I haven't checked the TinyURL function, but I have a suspicion that they're prolly 100% identical, he's just filtering the .msg part out.
Title: Re: Broken TinyURL link glitch
Post by: DJ Omnimaga on October 20, 2010, 03:36:36 pm
Ah right. Yeah I can't imagine how hard it would be to use the same TinyURL for each topic, especially older topics. If it's a better idea maybe he could share a solution or something.
Title: Re: Broken TinyURL link glitch
Post by: Netham45 on October 20, 2010, 03:56:22 pm
Ah right. Yeah I can't imagine how hard it would be to use the same TinyURL for each topic, especially older topics. If it's a better idea maybe he could share a solution or something.

I actually think I found how I can do it. There's a topic=XXXX.new that takes you to the latest post.

Looks like it works, too, but I still don't see the point to it, it's still taking the same resources from TinyURL.

Edit: I added the #msgXXXXX to what TinyURL tinyurl's, so that part won't be added to the messages in-chan anymore.
Title: Re: Broken TinyURL link glitch
Post by: DJ Omnimaga on October 20, 2010, 04:06:18 pm
Yeah Idk if it's really useful to use the other way if it takes the same amount of ressources x.x
Title: Re: Broken TinyURL link glitch
Post by: Netham45 on October 20, 2010, 04:07:43 pm
I can put the #msgXXXX part in the tinyurl, so I'ma do that and leave it like it is. That'll remove the #XXXX part from the channel.
Title: Re: Broken TinyURL link glitch
Post by: alberthrocks on October 20, 2010, 11:26:20 pm
Everything seems to work fine for me.

I'm requesting a new TinyURL for each post since the post ID determines what page it goes to(the .msgXXXX part)

It defaults to Omnimaga.org links when TinyURL returns a bogus link or an error 500 twice for the post, otherwise it posts the tinyurl. The TinyURL that the OP posted works fine for me, so I'm not sure what the problem is with that, it'd be on TinyURLs side, or your side.

TinyURL's ToS doesn't have any limitations on how fast I can generate them, at least it didn't last time I checked, as long as I'm not generating them for spam or other malicious purposes. They provide an API for just this type of thing, too.


@Alberthrocks I also don't really appreciate you claiming that I have a broken, flawed, or incorrect TinyURL implementation, either. I have it working like it does for a reason. Just because I don't filter out the .msg part doesn't make it not implemented correctly.

Sorry, my bad for not knowing your bot that well :) I guess it really is a good idea to check before saying...
Although it looks like the new Omnomnom.tk solution works a lot better! :D

@DJ: I always release code :) I trust the community well enough to use the code for educational purposes, and if forked, original credit is still given. ;)
Title: Re: Broken TinyURL link glitch
Post by: DJ Omnimaga on October 20, 2010, 11:28:03 pm
Ah cool :D. Plus since people know you here if someone steals the code they'll already know where it came from if they notice it in action elsewhere. Not that anyone would do that I think here.

As for .tk, just keep in mind that 6 years ago, dot.tk used to have pop-ups and was down half of the time, so if it starts causing problems again you migth want to keep a backup solution in case. X.x
Title: Re: Broken TinyURL link glitch
Post by: alberthrocks on October 21, 2010, 12:24:58 am
Ah cool :D. Plus since people know you here if someone steals the code they'll already know where it came from if they notice it in action elsewhere. Not that anyone would do that I think here.

As for .tk, just keep in mind that 6 years ago, dot.tk used to have pop-ups and was down half of the time, so if it starts causing problems again you migth want to keep a backup solution in case. X.x

For the record, my bot code are here: http://code.google.com/p/atombot/source/browse/#svn/trunk
I'm writing a bot that is really awesome... but I'll save that for a very near future post/topic. ;)

I trust the community here and Cemetech to not steal code. It's just unethical, and wrong in so many ways.
Of course, outside that.... that's another thing. But I haven't advertised this project at all outside of this community, so
it's very unlikely to have copy cats. :P

dot.tk recently changed their model, since they realized that a .com/.net/[insert more common TLDs here] is better than their service, and so they've decided to be much more free with their domain names. It's unlikely that they'll change now.

Of course, freedns.afraid.org and co.cc are great alternatives.
If there's money to spend, https://domize.com/ can search out exotic domain names for our use. :)
Title: Re: Broken TinyURL link glitch
Post by: DJ Omnimaga on October 21, 2010, 12:37:40 am
ALso the community users are kinda close to each others in some way, compared to other communities, even though Cemetech and Omni got large userbases for calc forums. And I see about dot.tk. At one point they were so unreliable that people stopped using them.