Omnimaga

General Discussion => Art => Topic started by: KermMartian on December 01, 2006, 09:26:00 am

Title: WorldNews "TrendSig"
Post by: KermMartian 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
ec1(http://www.cemetech.net/projects/trendsig.gif) (http://www.cemetech.net/projects/newstrends.php)c2
ec2
Title: WorldNews "TrendSig"
Post by: Halifax on December 01, 2006, 03:27:00 pm
wow that is pretty sweet. Could you teach me how to make things like that.
Title: WorldNews "TrendSig"
Post by: DJ Omnimaga 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 ^.^
Title: WorldNews "TrendSig"
Post by: Halifax 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.
Title: WorldNews "TrendSig"
Post by: KermMartian 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.
Title: WorldNews "TrendSig"
Post by: Halifax on December 04, 2006, 10:37:00 am
Kerm can you teach me how to make something like that?
Title: WorldNews "TrendSig"
Post by: KermMartian 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?
Title: WorldNews "TrendSig"
Post by: DJ Omnimaga on December 05, 2006, 02:40:00 am
I still vote for a version showing stats for TI websites %)rolleyes2.gif
Title: WorldNews "TrendSig"
Post by: KermMartian 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.
Title: WorldNews "TrendSig"
Post by: Halifax 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??
Title: WorldNews "TrendSig"
Post by: Demon 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?
Title: WorldNews "TrendSig"
Post by: KermMartian 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.
Title: WorldNews "TrendSig"
Post by: bfr on December 05, 2006, 01:21:00 pm
Halifax:  Try http://www.freehostia.com or http://www.awardspace.com

Kerm:  Looks neat!
Title: WorldNews "TrendSig"
Post by: Demon 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!
Title: WorldNews "TrendSig"
Post by: KermMartian 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?
Title: WorldNews "TrendSig"
Post by: Demon on December 06, 2006, 11:27:00 am
Outputting to file.
Title: WorldNews "TrendSig"
Post by: KermMartian on December 06, 2006, 04:08:00 pm
Anyway, I htaccessed the trendgraph for y'all:

http://www.cemetech.net/projects/trendgraph/ time / color / type / source / mode.png
time = number of minutes per bar, eg 1,5,60,1440,525600
color = normal, gray, or cool
type = vbar or vline
source = google or digg
mode = overview or search_terms

Example:

http://www.cemetech.net/projects/trendgraph/60/normal/vbar/google/overview.png
user posted image
Title: WorldNews "TrendSig"
Post by: DJ Omnimaga on December 06, 2006, 04:24:00 pm
^^
Title: WorldNews "TrendSig"
Post by: KermMartian on December 07, 2006, 11:49:00 am
New, spiffified interface! Keyword searching!  I think I might go for a new Digging...

http://www.cemetech.net/projects/wt/
Title: WorldNews "TrendSig"
Post by: Halifax on December 07, 2006, 11:54:00 am
Yes Kerm I have a php enabled host now and I would appreciate it very much if you could explain through a Personal Message to me how you make a thing like that and output the text and everything like that
Title: WorldNews "TrendSig"
Post by: KermMartian on December 08, 2006, 08:22:00 am
Added Slashdot as a news source.

Anyway, I might as well explain here so other people can reap the benefits of the knowledge.

1. Start with a base image or a blank image.  You can use imagecreatefrompng(), imagecreatefromgif(), or imagecreatefromjpg() for a base image, or imagecreate() for a blank image.  For example:
c1-->
CODE
ec1$im = @imagecreate(100, 50)
 
Title: WorldNews "TrendSig"
Post by: DJ Omnimaga on December 08, 2006, 01:34:00 pm
YAY slashdot!
Title: WorldNews "TrendSig"
Post by: DJ Omnimaga on January 11, 2007, 12:33:00 pm
QuoteBegin-KermMartian+6 Dec, 2006, 8:56-->
QUOTE (KermMartian @ 6 Dec, 2006, 8:56)
*bump*

WorldTrends Beta 5 is now ready and online! New features:

>>Headline searching
>>Composite view that sums all indices
>>Cloud tagging
>>Faster, more efficient MySQL data storage
>>Usage statistics

Please digg now!
http://digg.com/world_news/Realtime_Graphi..._DJI_Dow_S_P500  

 nice ^^

I didn't knew you had personality disorders tho *notices the news comments* %)rolleyes2.gif