I was doing some small modification to Trainque’s Twitter Badge when I encounter this error message in Firebug:
Apparently this is a limit for API invocation. Does this mean if a website with twitter badge is visited by more than 100 people per hour, only the first 100 people will see the twitter badge content? After reading this documentation, I finally understand the meaning of this limitation. It means that an IP address cannot request more than 100 API requests per hour. Other way of saying this is, if you keep on refreshing this page for 100 times within 1 hour, you will not be able to see the Twitter Badge content on your 101st refresh. You need to wait until the next hour before you able to see the Twitter Badge Content.
About Hardono
Howdy! I'm Hardono. I am working as a
Software
Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.
I need to have a good regex for URL validation in javascript. After googling a number of websites, blogs and forums. The best I found is this blog post by Ivan Porto Carrero
I modified it a bit to make it valid in Javascript as shown below:
twitTxt = twitTxt.replace(/((ht|f)tp(s?)\:\/\/|~\/|\/)?(\w+:\w+@)?(([-\w]+\.)+(com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(:[\d]{1,5})?(((\/([-\w~!$+|.,=]|%[a-f\d]{2})+)+|\/)+|\?|#)?((\?([-\w~!$+|.,*:]|%[a-f\d{2}])+=([-\w~!$+|.,*:=]|%[a-f\d]{2})*)(&([-\w~!$+|.,*:]|%[a-f\d{2}])+=([-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(#([-\w~!$+|.,*:=]|%[a-f\d]{2})*)?/, twitRegexCallback);
If you like it, a link back/comments would be much much appreciated 🙂
About Hardono
Howdy! I'm Hardono. I am working as a
Software
Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.
Got this image from Hacker News, originally located here.
It’s something that we need to always remember, that we are as human, is really really nothing in this universe.
About Hardono
Howdy! I'm Hardono. I am working as a
Software
Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.