Join us at IRC!
Imagination is more valuable than knowledge - Albert Einstein
Friday, May 25, 2012
Navigation
Members Online
Total Online: 37
Web Spiders: 19
Guests Online: 34
Members Online: 3

Registered Members: 70217
Newest Member: HyperFang8
Latest Articles
View Thread

HellBound Hackers | HellBound Hackers | Comments and Suggestions

Author

Total Active time

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
Posted on 17-02-10 19:28
You know what would be cool, a total time active counter for our profiles, I want to see how sad I am/ how much time I spend on HBH.


BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.


Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: Total Active time

ynori7
Future Emperor of Earth



Posts: 1481
Location: #valhalla
Joined: 08.10.07
Rank:
Diabolical
Posted on 17-02-10 19:40
Meh, probably not gonna happen. We've got a whole long list of useful things to be implemented that probably never will be.




ynori7 http://halls-of-valhalla.org
Author

RE: Total Active time

korg
Admin from hell



Posts: 1704
Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06
Rank:
The Master
Posted on 17-02-10 20:18
We'll just add it to the list. Doesn't matter if there's 1 thing or 100. Just a nice big wish list.:angry:



I deal in pain, All life I drain, I dominate, I seal your fate.


Author

RE: Total Active time

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
Posted on 17-02-10 20:56
I didn't know there was a non EM suggestions section.


BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.


Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: Total Active time

ynori7
Future Emperor of Earth



Posts: 1481
Location: #valhalla
Joined: 08.10.07
Rank:
Diabolical
Posted on 17-02-10 21:01
There, moved.




ynori7 http://halls-of-valhalla.org
Author

RE: Total Active time

Compromise
Member

Posts: 224
Location:
Joined: 11.11.09
Rank:
Moderate
Warn Level: 30
Posted on 17-02-10 21:08
If you have any experience with HBH's sqld you realize that doing even more with it would be a baaaaaaaad move.


CrazySpai
minecraft.net
Author

RE: Total Active time

define
Member

Posts: 201
Location:
Joined: 13.12.08
Rank:
Moderate
Warn Level: 1
Posted on 18-02-10 01:23
Compromise wrote:
If you have any experience with HBH's sqld you realize that doing even more with it would be a baaaaaaaad move.

This one wouldn't require any extra SQL powers. The datetime is already being compared on the online member list, so it could just be added to the query as a retrieved field. Have a static list of formatted datetimes and user associations in JSON, then use the Javascblockedript Date class to compare those datetimes to the current datetime and get an interval of time for this visit.

The only server-side calls would be the ones that are already happening.

... Then again, this idea isn't too terribly useful, so I'm not sure the implementation of it is more than just interesting. :p


If you need to contact me, send me a PM. I will read and/or respond in time.
Author

RE: Total Active time

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
Posted on 18-02-10 02:02
YEA, what he said!


BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.


Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: Total Active time

cyb3rl0rd1867
Member



Posts: 143
Location: U.S
Joined: 07.07.06
Rank:
Hacker Level 1
Posted on 18-02-10 02:30
I noticed it on another site(forgot which) and I thought it was an awesome idea!


Author

RE: Total Active time

only_samurai
[IRC Rockstar]

Posts: 984
Location: idling in some random irc channel
Joined: 18.08.06
Rank:
.|unranked|.
Posted on 18-02-10 05:33
@Define:

While what you're saying would reduce the number of sql queries and strain on the database, unless im misunderstanding you, it wouldn't be a no-addition scenario. one of the big issues here is persistence. yes we have the online time for a session being somewhat tracked through the online use function (im not entirely sure how that's coded up, there's a few implementations i can think of. some with more benefits than others, but i digress...), but that time has to get stored somewhere. again, depending on the implementation you can reduce this (technically you could offload it to some sort of file-based system), but you'd still end up having to query the database for past times to add up.

it's late, so if i misread something and this is all way off, disregard :)

~samurai


The problem with a fool-proof system, is eliminating the fool.

"His name is Cereal Killer...Like Fruitloops."
If you cut me, I bleed binary.

http://blog.psych0tik.net/
http://blog.psych0tik.net
Author

RE: Total Active time

define
Member

Posts: 201
Location:
Joined: 13.12.08
Rank:
Moderate
Warn Level: 1
Posted on 18-02-10 13:17
only_samurai wrote:
one of the big issues here is persistence. yes we have the online time for a session being somewhat tracked through the online use function, but that time has to get stored somewhere.

That's just it. Persistence only matters in the case of a current session. Outside of an individual's visit here, the online time doesn't have to persist... It just has to be available for an individual's viewing while they're here. Unless, of course, we're handing out awards for longest time wasted here... in which case we'd want to store the times to solve disputes. :p

Here are the steps I'm envisioning:
1. Get last login datetime from DB using same query as member online list.
2. Format user & datetime pairs as JSON using PHP.
3. Echo the JSON into a scblockedript block to expose it to Javascblockedript as a variable.
4. Let Javascblockedript calculate online time and place that amount back in JSON.
5. jQuery up some hovers on usernames or whatever to show online time.
6. Timeout 60k to add a minute to each time every minute, also using JS.

This is ideal because:
1. There are no additional SQL queries (the datetime is retrieved from an existing query that is already checking the datetime).
2. All of the processing happens client-side w/ Javascblockedript, so no extra load on server.
3. Javascblockedript is required for shoutbox to function, so it's not an unrealistic expectation to code up the functionality with it.

Edit: I could code this one up myself, if that is preferred. Just offering.


If you need to contact me, send me a PM. I will read and/or respond in time.

Edited by define on 18-02-10 13:18
Author

RE: Total Active time

Compromise
Member

Posts: 224
Location:
Joined: 11.11.09
Rank:
Moderate
Warn Level: 30
Posted on 18-02-10 13:23
define wrote:
Edit: I could code this one up myself, if that is preferred. Just offering.


You could throw it in your greasemonkey scblockedript, but I feel like that that's pretty "heavy" already. You could make it a debugging option or something.

Also, you're never on AIM nowadays, pay a visit once in a while :).


CrazySpai
minecraft.net
Author

RE: Total Active time

define
Member

Posts: 201
Location:
Joined: 13.12.08
Rank:
Moderate
Warn Level: 1
Posted on 18-02-10 22:50
I think samurai and I are talking about two different things. I was talking about online time just being a single session thing that goes away when you leave. I think he was referring to online time as an accumulated total across sessions.

... which, for that, we would need to either run another query or update the field in the logout query.

Compromise wrote:
You could throw it in your greasemonkey scblockedript, but I feel like that that's pretty "heavy" already. You could make it a debugging option or something.

Also, you're never on AIM nowadays, pay a visit once in a while :).

Yeah, would require too many AJAX calls to profile pages to get that datetime.

... Forgot my AIM password, but will prob jump on IRC every now and then. :)


If you need to contact me, send me a PM. I will read and/or respond in time.
Author

RE: Total Active time

root_op
Lord Abortion



Posts: 467
Location: Sweden, Lidkφping
Joined: 21.03.07
Rank:
God
Posted on 09-04-10 00:58
Yes, the development list has grown quite alot.
But the way our current code is organized, or rather; Not organized.
Makes it hard to implement something somewhere, without having to change 1-* more files.

A while back I was working on revamp of the site, making it modularized and more SEO friendly. Although the lack of spare time makes it hard at this moment. First step would be to clean up what we call the core since it's overfilled with dupes and bogus funtions which brings more confusion than efficiency.

There's also this issue that our current server is "slightly" unstable, and fixing that is our main priority as far as I'm concerned.


Seriously, do you even care?
root_op.asok@hotmail.com
Author

RE: Total Active time

bl4ckc4t
Member

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
HBH Guru
Posted on 11-04-10 04:03
Sounds like a cool idea, but I agree with root_op, the server should be the main priority.
Author

RE: Total Active time

stealth-
Member



Posts: 999
Location: Eh?
Joined: 10.04.09
Rank:
God
Posted on 12-04-10 19:52
root_op wrote:
There's also this issue that our current server is "slightly" unstable....


Slightly? Lol


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealth-x.com
http://www.stealth-x.com
Author

RE: Total Active time

4rm4g3dd0n
Member



Posts: 904
Location: Louisville,Ky
Joined: 09.10.07
Rank:
God
Posted on 10-06-10 00:43
I think a Maths Section would be cool you know like one that has problems that take programming skills to solve not simple math projecteuler.net type problems for example
c:/users
Author

RE: Total Active time

COM
Banned



Posts: 800
Location:
Joined: 31.08.07
Rank:
God
Posted on 10-06-10 01:34
4rm4g3dd0n wrote:
I think a Maths Section would be cool you know like one that has problems that take programming skills to solve not simple math projecteuler.net type problems for example

No I don't know, could you give an example of what you're thinking of? Because project euler type problems are exactly math problems designed to be solved with programming skills.


K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth!
Author

RE: Total Active time

ynori7
Future Emperor of Earth



Posts: 1481
Location: #valhalla
Joined: 08.10.07
Rank:
Diabolical
Posted on 10-06-10 03:25
4rm4g3dd0n wrote:
I think a Maths Section would be cool you know like one that has problems that take programming skills to solve not simple math projecteuler.net type problems for example

I've made a number of programming challenges like that. Unfortunately things are very slow-moving around here.




ynori7 http://halls-of-valhalla.org
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.