Thanks for the code, tylers, I don't really understand some of the classes you're user, such as UserManager, I found some API here:
http://docs.oracle.com/cd/E23943_01/apirefs.1111/e17334/oracle/iam/identity/usermgmt/api/UserManager.html
But it doesn't seem to be the same.
Nevertheless, thank you for the explanation using code, I now see he's just grabbing the information from greenfoot.org/users/##UserNumber##
Also, just curious, but do you know whether the users that don't exist are users whose accounts were deleted, or does greenfoot just skip some usernumbers when it assigns you a usernumber?
Hey guys, sry i'm a home at christmas and didn't look at greenfoot.org :/
I will upload the source code later :)
All in all you are right;
i get the username by incrementing http://www.greenfoot.org/users/#id#
download the website; the username is written inside the <title> inside the <head> tag (regex: "<head>.*?<title>(.*?)</title>.*?</head>")
now i do
GreenfootImage img = GreenfootUtil.getUserImage(name);
to get the image, this can be
null -> the user doesnt exist
the default image -> user has default image
otherwise a custom image
Happy Christmas to everyone ;)
@shrucis1: deleted users ( i think the user data is stored inside a huge sql) are like the following:
http://www.greenfoot.org/users/46
The users data is just deleted, nothing else...
@bourne: :D for the unconventional methods, see the DOM Attack scenarios
http://www.greenfoot.org/collections/393
The DOM Attack is also basically implemented in Greenfoot 3D ;)
You noticed that the screen flashes some times; i put the whole image-loading-process inside the world's act method, but the synchronized act method isn't very cool about handling the time for downloading the website, parsing the data and loading the image; thats why the redraw process get interrupted...
GreenHouse, I understand what you mean when you say a users data is deleted, but you didn't answer my question. I was asking if you know WHY some of them are deleted. Are they deleted because there was once a user with that number, but now there's not? Or is it something else?
I'm pretty sure davmac's not going to respond to your comment if you just call him 'user #4'. So I take it that you're saying that the missing users were banned?
@GreenHouse, that would mean that there are exactly 100 banned users, according to my calculations.
There are 932 pages of 20 users each, and one page of 9 users, which adds up to 18,649 Greenfoot Users (not banned). By making logical guesses, I've pretty much determined that the highest user number is 18749, making there 100 users numbers that don't exist (Not surprisingly, most seem to be lower numbers, meaning users that have been registered for longer have a higher chance of being banned).
2013/12/24
2013/12/24
2013/12/24
2013/12/24
2013/12/24
2013/12/25
2013/12/25
2013/12/25
2013/12/26