Author Topic: WorldNews "TrendSig"  (Read 6901 times)

0 Members and 1 Guest are viewing this topic.

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
WorldNews "TrendSig"
« on: December 01, 2006, 09:26:00 am »
As suggested by several people, I have added Digg to the Google News Trends service, renamed it WorldTrends, and made a dynamically-generated signature with headlines and trends to go with it.  Enjoy!

http://www.cemetech.net/projects/newstrends.phpc1-->
CODE
ec1c2
ec2



Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
WorldNews "TrendSig"
« Reply #1 on: December 01, 2006, 03:27:00 pm »
wow that is pretty sweet. Could you teach me how to make things like that.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
WorldNews "TrendSig"
« Reply #2 on: December 01, 2006, 03:57:00 pm »
wow nice, but will this take a while to load? If not then it would be cool. but i wish you would make one showing activity in the community by grabing news from all active websites ^.^

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
WorldNews "TrendSig"
« Reply #3 on: December 01, 2006, 04:46:00 pm »
Yeah that's what I was going to do :)smile.gif lol if I learned how to do it. I was also going to do some other things.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
WorldNews "TrendSig"
« Reply #4 on: December 04, 2006, 02:51:00 am »
QuoteBegin-xlibman+1 Dec, 2006, 21:57-->
QUOTE (xlibman @ 1 Dec, 2006, 21:57)
wow nice, but will this take a while to load? If not then it would be cool. but i wish you would make one showing activity in the community by grabing news from all active websites ^.^  

 Nope, it won't take a long time to load.  The reason for that is it's not generated on-the-fly when a page requests it.  It's written as a static image by the script that collects data from Google and Digg once per minute, so you don't have to worry about load times at all.



Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
WorldNews "TrendSig"
« Reply #5 on: December 04, 2006, 10:37:00 am »
Kerm can you teach me how to make something like that?
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
WorldNews "TrendSig"
« Reply #6 on: December 04, 2006, 02:13:00 pm »
QuoteBegin-Halifax+4 Dec, 2006, 16:37-->
QUOTE (Halifax @ 4 Dec, 2006, 16:37)
Kerm can you teach me how to make something like that?  

 Well, to start with, you should know PHP and have a php-enabled webspace.  Do you?



Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
WorldNews "TrendSig"
« Reply #7 on: December 05, 2006, 02:40:00 am »
I still vote for a version showing stats for TI websites %)rolleyes2.gif

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
WorldNews "TrendSig"
« Reply #8 on: December 05, 2006, 02:58:00 am »
QuoteBegin-xlibman+5 Dec, 2006, 8:4-->
QUOTE (xlibman @ 5 Dec, 2006, 8:40)
I still vote for a version showing stats for TI websites %)rolleyes2.gif

 Yeah yeah, I probably will add that as an option in WorldTrends, except perhaps make it reload every 5 minutes or so.  I would probably get fora feeds from the major forums as an indication of activity.



Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
WorldNews "TrendSig"
« Reply #9 on: December 05, 2006, 10:01:00 am »
Yes I know PHP but I do not have a PHP enabled host. Who hosts your site??
There are 10 types of people in this world-- those that can read binary, and those that can't.

Demon

  • Guest
WorldNews "TrendSig"
« Reply #10 on: December 05, 2006, 12:10:00 pm »
That is cool.
[off-topic] BTW, how do you get the gradient text?  Do you have to use a loop or something (that's what I had to do) or is there an easier way?

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
WorldNews "TrendSig"
« Reply #11 on: December 05, 2006, 12:52:00 pm »
@Halifax: I have JatolEconomy, but the company doesn't offer my package anymore (http://www.jatol.com).

@Demon:
1. It starts with this image:
user posted image
2. It then drops the icons and text on top.
3. Next, it drops this image on top:
user posted image
4. Finally, it writes the resultant to trendsig.png.



Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
WorldNews "TrendSig"
« Reply #12 on: December 05, 2006, 01:21:00 pm »
Halifax:  Try http://www.freehostia.com or http://www.awardspace.com

Kerm:  Looks neat!

Demon

  • Guest
WorldNews "TrendSig"
« Reply #13 on: December 06, 2006, 02:25:00 am »
[Kerm]:  Hmm... I should probably do that with my background so I can save a buttload of CPU not making it have to start with a blank image and draw the gradients via loop each time.

EDIT: Done.  Much faster!

Offline KermMartian

  • Editor
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 500
  • Rating: +233/-20
    • View Profile
    • Cemetech
WorldNews "TrendSig"
« Reply #14 on: December 06, 2006, 02:56:00 am »
Excellent.  Now, are you outputting to file each time a line gets added, or is it htaccessed to the php script?