This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

GreenHouse
GreenHouse presents ...

2013/9/16

User View Demo

No description.

1793 views / 4 in the last 7 days

5 votes | 0 in the last 7 days

Tags: simulation demo with-source

open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

shrucis1shrucis1

2013/12/24

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?
GreenHouseGreenHouse

2013/12/24

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 ;)
GreenHouseGreenHouse

2013/12/24

@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...
GreenHouseGreenHouse

2013/12/24

@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...
shrucis1shrucis1

2013/12/24

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?
GreenHouseGreenHouse

2013/12/25

Oh, okay. Let's ask user #4, he is the one who banns everyone :D
shrucis1shrucis1

2013/12/25

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?
GreenHouseGreenHouse

2013/12/25

I think so; there is no reason to skip numbers, and because you cant delete your account....
A new version of this scenario was uploaded on Wed Dec 25 23:20:29 UTC 2013 Sourcecode added. Multithread. Updated to GF3D.
shrucis1shrucis1

2013/12/26

@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).

See all comments

Want to leave a comment? You must first log in.

Who likes this?

tylers Kartoffelbrot sametguzelgun JetLennit FlyingRabidUnicornPig