Author Topic: Broken TinyURL link glitch  (Read 7910 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8209
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Broken TinyURL link glitch
« Reply #15 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 :)




Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Broken TinyURL link glitch
« Reply #16 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.
« Last Edit: October 16, 2010, 03:25:34 pm by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Broken TinyURL link glitch
« Reply #17 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?
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8209
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Broken TinyURL link glitch
« Reply #18 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?
« Last Edit: October 16, 2010, 03:29:11 pm by Deep Thought »




Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55845
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Broken TinyURL link glitch
« Reply #19 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.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Broken TinyURL link glitch
« Reply #20 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.
Omnimaga Admin

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55845
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Broken TinyURL link glitch
« Reply #21 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?
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Broken TinyURL link glitch
« Reply #22 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.
« Last Edit: October 20, 2010, 03:30:20 pm by Netham45 »
Omnimaga Admin

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55845
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Broken TinyURL link glitch
« Reply #23 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?
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Broken TinyURL link glitch
« Reply #24 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.
« Last Edit: October 20, 2010, 03:34:03 pm by Netham45 »
Omnimaga Admin

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55845
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Broken TinyURL link glitch
« Reply #25 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.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Broken TinyURL link glitch
« Reply #26 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.
« Last Edit: October 20, 2010, 04:03:09 pm by Netham45 »
Omnimaga Admin

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55845
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Broken TinyURL link glitch
« Reply #27 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
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Broken TinyURL link glitch
« Reply #28 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.
Omnimaga Admin

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Broken TinyURL link glitch
« Reply #29 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. ;)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)