Games (inc Online)Teh Mine

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Peter (BOUGHTONP)  
 To:  Serg (NUKKLEAR)     
38140.2788 In reply to 38140.2780 
Say that again and I'll come squash you! :P
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  koswix      
38140.2789 In reply to 38140.2781 
That was just the first video that came up. :P

Some of what he does with the pole is very impressive, but stuff like the one-handed upside-down splits could be done anywhere.

(Was actually looking for something a bit more acrobatic, but none of the subsequent videos I found were as good.)
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Serg (NUKKLEAR)     
38140.2790 In reply to 38140.2782 
No, this guy is a mentalist:



That guy is just exceedingly flexible, strong, graceful, etc.
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  Ken (SHIELDSIT)     
38140.2791 In reply to 38140.2786 
I woke up. I can't get back to sleep when I wake up so... that's it. Sometimes it happens early :(
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  Drew (X3N0PH0N)     
38140.2792 In reply to 38140.2791 
You should have volunteered to go to work for me. I didn't have any problems staying asleep. :-(
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  ALL
38140.2793 
Does anyone know of a way to show a log file live on a webpage?

I've searched a bit and not found anything useful.

Chrissssss wants a better chat system where he can see more past chat messages. I want to do this by putting the live chat on the mini-site somehow.

Also, rather than showing the full log file live I want to only show certain sections. Using tail and grep it'd look like this...

code:
tail -fn 500 server.log | grep "[INFO]*<"


Ideas on a postcard.
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  ANT_THOMAS     
38140.2794 In reply to 38140.2793 
Not a clue, but I already have a chat setup on my site if you can't be bothered to set one up. I'd just make a minecraft room.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Ken (SHIELDSIT)     
38140.2795 In reply to 38140.2794 

But it needs to be able to show the ingame chat.

 

There is some Minecraft IRC chat plugin I could look into and do it that way, but not sure I can be bothered that much.

0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  ANT_THOMAS     
38140.2796 In reply to 38140.2795 
I was wondering how that was going to work, otherwise we could just use some other IM. If I have time I'll try to help research for you.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Ken (SHIELDSIT)     
38140.2797 In reply to 38140.2796 
Nah, it has to be ingame. Otherwise for people who aren't too bothered about chat history (me) we'd have to use two things for mining and chatting.
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  ANT_THOMAS     
38140.2798 In reply to 38140.2793 
Just pull the file into PHP and do something with it there? Then a javascript thing to keep reloading it?

tail would be simpler but then you'd need something constantly running and tailing it out to another file then pulling it in to PHP anyway.
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  ANT_THOMAS     
38140.2799 In reply to 38140.2797 
Or if you've allowed php to do exec then exec the tail from a PHP which is refreshed by JS. Can PHP then get stdout? I''ve not used exec for yeeears.
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  ANT_THOMAS     
38140.2800 In reply to 38140.2797 
Yup I agree.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Drew (X3N0PH0N)     
38140.2801 In reply to 38140.2798 
Yeah I want it all in one rather than tailing it to another file because that's too many things going on then. I was just showing with the tail example of what I'm after.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Drew (X3N0PH0N)     
38140.2802 In reply to 38140.2799 
I'm not exactly good at PHP but I shall get reading!
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  ANT_THOMAS     
38140.2803 In reply to 38140.2801 
Just read the file into PHP, chop the bit you want (last n lines) then spit it out. Pull it in all ajaxy-like from a constantly running JS function and that's it.
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  ANT_THOMAS     
38140.2804 In reply to 38140.2802 
Ahh ok. I think all you'd need there is file() or file_get_contents() and a bit of regex to pull out the actual chat messages. Actually, may as well use file() then recurse through the array (file() puts the lines of a file into an array) for ones which don't start with a chat message character and discard those. Shouldn't even need regex then, just strpos()
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Drew (X3N0PH0N)     
38140.2805 In reply to 38140.2804 
So does that only work for the start of a line?

Because the log looks like this...

code:
2011-08-04 18:22:00 [INFO] <Spooneymania> i mean yes
2011-08-04 18:22:03 [INFO] <Jeesus> :D
2011-08-04 18:22:25 [INFO] <Spooneymania> i started a hangout thingu
2011-08-04 18:26:57 [INFO] [PLAYER_COMMAND] Spooneymania: /time day 
2011-08-04 18:36:27 [INFO] wakeupbomb [/94.193.54.69:57470] logged in with entity id 543938 at ([world] 965.90625, 72.0, 94.53125)
2011-08-04 18:36:31 [INFO] [PLAYER_COMMAND] wakeupbomb: /who  
2011-08-04 18:38:15 [INFO] [PLAYER_COMMAND] Spooneymania: /time day 
2011-08-04 18:42:09 [INFO] [PLAYER_COMMAND] Spooneymania: /weather dry 
2011-08-04 18:44:30 [INFO] chrishigs [/86.154.231.70:51136] logged in with entity id 546382 at ([world] -53.995520489623885, 23.0, 221.17613932596916)
2011-08-04 18:44:30 [INFO] [PLAYER_COMMAND] wakeupbomb: /weather wet 
2011-08-04 18:44:41 [INFO] [PLAYER_COMMAND] chrishigs: /who  
2011-08-04 18:44:54 [INFO] [PLAYER_COMMAND] chrishigs: /home  
2011-08-04 18:44:57 [INFO] [PLAYER_COMMAND] chrishigs: /spawn  
2011-08-04 18:45:19 [INFO] [PLAYER_COMMAND] chrishigs: /home  
2011-08-04 18:45:33 [INFO] <wakeupbomb> test
2011-08-04 18:45:38 [INFO] <Spooneymania> 123
2011-08-04 18:48:29 [INFO] [PLAYER_COMMAND] chrishigs: /time day 
2011-08-04 18:51:20 [INFO] [PLAYER_COMMAND] wakeupbomb: /time day 
2011-08-04 18:57:34 [INFO] [PLAYER_COMMAND] chrishigs: /home  
2011-08-04 18:57:45 [INFO] [PLAYER_COMMAND] chrishigs: /sethome  
2011-08-04 18:57:59 [INFO] [PLAYER_COMMAND] chrishigs: /spawn  
2011-08-04 18:59:09 [INFO] Connection reset
2011-08-04 18:59:09 [INFO] chrishigs lost connection: disconnect.endOfStream
2011-08-04 19:01:38 [INFO] [PLAYER_COMMAND] Spooneymania: /time day 
2011-08-04 19:03:22 [INFO] mjwatmough [/82.38.245.253:54757] logged in with entity id 557366 at ([world] -59.25, 75.0, 249.0)
2011-08-04 19:12:22 [INFO] [PLAYER_COMMAND] Spooneymania: /time day 
2011-08-04 19:13:07 [INFO] Read timed out
2011-08-04 19:13:07 [INFO] Spooneymania lost connection: disconnect.endOfStream
2011-08-04 19:13:27 [INFO] Spooneymania [/80.177.102.181:61709] logged in with entity id 561889 at ([world] 784.40625, 74.0, 585.125)
2011-08-04 19:21:12 [INFO] Connection reset
2011-08-04 19:21:12 [INFO] mjwatmough lost connection: disconnect.quitting
2011-08-04 19:24:25 [INFO] [PLAYER_COMMAND] Spooneymania: /time day 
2011-08-04 19:35:02 [INFO] [PLAYER_COMMAND] Spooneymania: /time day 
2011-08-04 19:45:52 [INFO] [PLAYER_COMMAND] Spooneymania: /time day 


So I'd need it to only pick lines that contain "[INFO] <"
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  ANT_THOMAS     
38140.2806 In reply to 38140.2805 
easy then, gimme a min and I'll whip up something that might work if you want. Or would you rather do it yourself?
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Drew (X3N0PH0N)     
38140.2807 In reply to 38140.2806 
Go for it if you want to :D
0/0
 Reply   Quote More 

Reply to All  
 

1–20  …  2741–2760  2761–2780  2781–2800  2801–2820  …  3921–3934

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats