Be a Supporter!

what if there be NG Chat logger

  • 676 Views
  • 25 Replies
New Topic Respond to this Topic
Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
what if there be NG Chat logger 2013-05-06 03:20:24 Reply

Not so about just "what if".
To have fun with my programming skills I already did it for web.
It is not for spying or etc. I did it just for poking programming language what I did not use before.
Many chats have logs, so "why not".

What do you think - is it good idea or you strongly agains it, did I must improve it or just trash it.
http://greyed.ru/ngcl/


<== This russian guy always write with mistakes.

tox
tox
  • Member since: Mar. 13, 2007
  • Offline.
Forum Stats
Supporter
Level 28
Audiophile
Response to what if there be NG Chat logger 2013-05-06 03:24:27 Reply

http://www.youtube.com/watch?v=jgpRKQL1nEQ


call me toxie 0.~
reached vet status by RacistBassist , fuckyeah.jpg

BBS Signature
Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2013-05-06 03:45:06 Reply

At 5/6/13 03:24 AM, tox wrote: http://www.youtube.com/watch?v=jgpRKQL1nEQ

Thats for you tolerance to foreign people.


<== This russian guy always write with mistakes.

Gimmick
Gimmick
  • Member since: Aug. 20, 2008
  • Offline.
Forum Stats
Member
Level 27
Programmer
Response to what if there be NG Chat logger 2013-05-06 04:12:04 Reply

it doesn't load...


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp
"Sit look rub panda" - Alan Davies

BBS Signature
ImlunchBoxx
ImlunchBoxx
  • Member since: Feb. 17, 2004
  • Offline.
Forum Stats
Member
Level 21
Gamer
Response to what if there be NG Chat logger 2013-05-06 04:24:49 Reply

At 5/6/13 04:12 AM, Gimmick wrote: it doesn't load...

well poop in a shoe it looks like your in some shit


BBS Signature
Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2013-05-06 04:33:38 Reply

OK, it maybe my hoster problem.
Or you use DNS server what did not know this website address.

so here is copy
archive for 2013-05-05

I will try look whats wrone.


<== This russian guy always write with mistakes.

Nebula
Nebula
  • Member since: Aug. 5, 2004
  • Offline.
Forum Stats
Member
Level 15
Movie Buff
Response to what if there be NG Chat logger 2013-05-06 05:09:05 Reply

At 5/6/13 03:24 AM, tox wrote: http://www.youtube.com/watch?v=jgpRKQL1nEQ

Just so you know, the OP is Russian. So forgive him.

Cyberdevil
Cyberdevil
  • Member since: Jan. 17, 2004
  • Offline.
Forum Stats
Supporter
Level 50
Writer
Response to what if there be NG Chat logger 2013-05-06 07:21:40 Reply

This is pretty neat! Is the log generated by a program or a web-based script? If it doesn't hog resources, I can imagine a chat archive would be a fun thing to have. One useful feature though would be saving logs as plain text, that would save a lot of space in the long run.

BumFodder
BumFodder
  • Member since: Jan. 14, 2006
  • Offline.
Forum Stats
Member
Level 37
Melancholy
Response to what if there be NG Chat logger 2013-05-06 08:13:31 Reply

What would be the point of that?

FattyWhale
FattyWhale
  • Member since: Jul. 10, 2005
  • Offline.
Forum Stats
Member
Level 50
Melancholy
Response to what if there be NG Chat logger 2013-05-06 08:51:34 Reply

Seems like it logs the same entries twice sometimes.


[1] [2] [3] [4] [5]
:3

BBS Signature
Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2013-05-06 09:41:13 Reply

At 5/6/13 07:21 AM, Cyberdevil wrote: This is pretty neat! Is the log generated by a program or a web-based script? If it doesn't hog resources, I can imagine a chat archive would be a fun thing to have. One useful feature though would be saving logs as plain text, that would save a lot of space in the long run.

Well, all code is a PHP script, suddenly used another server to call script every 2 seconds, shared hosting not allow to do this with help from outside.
For future I have 2 thoughts:
- log as flat text, just date-time : nickname : message. It save space and it is universal type of logs
- log as is, it will allow use formatting to html, make logs look like native chat (colors, user-icons). But it need a little more space, script for render logs, harder to share.

At 5/6/13 08:51 AM, FattyWhale wrote: Seems like it logs the same entries twice sometimes.

Yeh, I think I know why it is so, I wish I can fix it.


<== This russian guy always write with mistakes.

Cyberdevil
Cyberdevil
  • Member since: Jan. 17, 2004
  • Offline.
Forum Stats
Supporter
Level 50
Writer
Response to what if there be NG Chat logger 2013-05-06 10:01:19 Reply

At 5/6/13 09:41 AM, Filarius wrote: Well, all code is a PHP script, suddenly used another server to call script every 2 seconds, shared hosting not allow to do this with help from outside.

Two seconds is pretty often! Does it pick up only new messages in each run, or go through all of them again? I'd think you could pick up all new messages with a larger interval, something like 8 seconds? Maybe automatically fall back to a lower frequency when there aren't many users active? That would save a lot of bandwidth.

If you're looking for a place to run the script, a budget VPS would probably be a good alternative. If you know your way around Linux you can find low-end providers offering unmanaged space for less than $12/year.

For future I have 2 thoughts:
- log as flat text, just date-time : nickname : message. It save space and it is universal type of logs
- log as is, it will allow use formatting to html, make logs look like native chat (colors, user-icons). But it need a little more space, script for render logs, harder to share.

Sounds good! Looking forward to seeing how this turns out.

Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2013-05-06 10:33:18 Reply

At 5/6/13 10:01 AM, Cyberdevil wrote:
Two seconds is pretty often!

It is normal, if not even slow. NG send only last 20 messages, and in 8 seconds then there talk many people at same time I can miss some of messages.
NG Chat checks for messages every 1 second and always send all 20 last messages, so there is no way to save bandwidth.
I already have server used for radio (btw tired to search somebody who will be interested to use it, now just stream some shit to Team Fortress servers).


<== This russian guy always write with mistakes.

Cyberdevil
Cyberdevil
  • Member since: Jan. 17, 2004
  • Offline.
Forum Stats
Supporter
Level 50
Writer
Response to what if there be NG Chat logger 2013-05-06 10:42:56 Reply

At 5/6/13 10:33 AM, Filarius wrote: It is normal, if not even slow. NG send only last 20 messages, and in 8 seconds then there talk many people at same time I can miss some of messages.
NG Chat checks for messages every 1 second and always send all 20 last messages, so there is no way to save bandwidth.
I already have server used for radio (btw tired to search somebody who will be interested to use it, now just stream some shit to Team Fortress servers).

Ah, so that's the limitation. Good to know. So you have a server this script is allowed to run on? How are logs saved btw, as one file? Divided up in day/month/year?

This would be fun to run on special occasions like the Pico Day live stream too.

Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2013-05-06 11:04:53 Reply

At 5/6/13 10:42 AM, Cyberdevil wrote:
Ah, so that's the limitation. Good to know. So you have a server this script is allowed to run on? How are logs saved btw, as one file? Divided up in day/month/year?

This would be fun to run on special occasions like the Pico Day live stream too.

I can say more - it is Windows VPS, maybe it cost a little more then Linux, but I find most cheapest server what fit my needs - have exactly so CPU to allow live mp3 encoding in one thread, and used only for encoding, no hosting or etc staff. PHP script hosted on separate place.
Now it is exactly as at sample i posted here some time ago - script same in one folder to files with names like (year-month-day).


<== This russian guy always write with mistakes.

Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2013-05-07 09:45:12 Reply

Lets try again, not link is
http://www.greyed.ru/ngcl/
Pls say if it not work for you


<== This russian guy always write with mistakes.

buk-lau
buk-lau
  • Member since: May. 6, 2013
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to what if there be NG Chat logger 2013-05-07 09:48:35 Reply

Not a big deal for me, But the good computer programming. You has worked hard. good job.


And I think you of all people can enjoy happy and I affect normal life communicating. Thank you to check out my news posts

Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2013-05-08 15:46:51 Reply

I did some changes in logs.
Now it is simple text.
Added some things like hyperlink conversion to text and processing of multyline messages. I`m not so sure if allowing multiline messages be also multiline in logs - it`s break beauty of logs sctructure, but makes it a little more readable, in some kind.


<== This russian guy always write with mistakes.

Boomstick
Boomstick
  • Member since: Nov. 4, 2010
  • Offline.
Forum Stats
Member
Level 27
Melancholy
Response to what if there be NG Chat logger 2013-05-08 15:50:02 Reply

At 5/6/13 03:24 AM, tox wrote: http://www.youtube.com/watch?v=jgpRKQL1nEQ

Nice job, I'm pretty sure you make beautifully coherent sentences.


I HДVЗИ'T ЭДTЗЙ SLICЭD ЬЯЗДD SIИCЭ I ШДS TЩЗLVЭ

BBS Signature
BasedBubbus
BasedBubbus
  • Member since: Jul. 8, 2011
  • Offline.
Forum Stats
Member
Level 06
Musician
Response to what if there be NG Chat logger 2013-05-08 18:16:39 Reply

i feel bad for anyone that reads the ng chat log


I'm a single father and a multimillionaire.

BBS Signature
Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2013-05-09 05:32:01 Reply

At 5/8/13 06:16 PM, BasedBubbus wrote: i feel bad for anyone that reads the ng chat log

It will be very interested to know what makes you think so.


<== This russian guy always write with mistakes.

supergandhi64
supergandhi64
  • Member since: Dec. 10, 2012
  • Offline.
Forum Stats
Member
Level 01
Gamer
Response to what if there be NG Chat logger 2013-05-09 06:47:49 Reply

i'm glad all my funny new grounds chat jokes are preserved for future generations

--supergandhi64


BBS Signature
Dragen
Dragen
  • Member since: Apr. 12, 2008
  • Offline.
Forum Stats
Member
Level 07
Animator
Response to what if there be NG Chat logger 2013-06-04 11:57:57 Reply

The word "fuck" occurs 170 times in one day.


BBS Signature
mandog
mandog
  • Member since: Jul. 13, 2010
  • Offline.
Forum Stats
Member
Level 22
Musician
Response to what if there be NG Chat logger 2013-06-04 12:08:05 Reply

Reminds me of all the reasons I never want to step a foot into that shit.


original I am.

BBS Signature
Dragen
Dragen
  • Member since: Apr. 12, 2008
  • Offline.
Forum Stats
Member
Level 07
Animator
Response to what if there be NG Chat logger 2014-02-04 15:57:49 Reply

I think it is a convenient feature.. Any update on it, Filarius?


BBS Signature
Filarius
Filarius
  • Member since: Aug. 16, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to what if there be NG Chat logger 2014-02-07 04:32:21 Reply

At 2/4/14 03:57 PM, Dragen wrote: I think it is a convenient feature.. Any update on it, Filarius?

Nothing much. I`m so noob at Javascript and web-design to make something better.
Where was few fixes, one about better and faster file list, another - in setting to ask search engine bots do not go in logs (after I was asked for it). Changed hosting to little bigger, so now u can see more logs.


<== This russian guy always write with mistakes.