Suggest-A-Prod
category: offtopic [glöplog]
Came here to post exactly what noname did, WRT Pouet integration. It would be teh awesome! :)
@maytz: That actually makes sense, hmm - now I either wait for Demozoo to make an API for checking who took part - or I actually make this a Cookie/Localfile thing.
@raizor: I'd have no idea how to fit this optical into Pouet, nor do I think it's a good idea. However when I'm done with the refactor there will be a userscript somehow hooking this in.
As it was too f00king hot the last week (had 34°C in my flat on Sunday), I'm a bit behind my schedule for the rewrite. So far I'm done porting the parser for user stuff to PHP[0], as just loading a JSON file is faster than parsing all the stuff on your netbook.
Example:
view-source:http://metapouet.net/api/v0/user/?id=7775
https://gist.github.com/mog/73bab9a4791cb511a211
For the comments, that are the base for all the shenanigans, I'm done with that as well - but somehow it times out after 30s - which I'm currently investigating. It does work okay'ish for 20 prods and times at around .020s per comment, but hmm. Either way code for the curious.
https://gist.github.com/mog/407a63adfee891dbd4f4
That API will be obsolete at some point, but right now it just ensures Suggest-A-Prod will work a lot faster. I'll also Github the code after the rewrite, so I don't loose track of all your cool feature suggestions :)
Thanks for all the love, keep commenting - and if it's only for your thumbUpBuddies :)
[0] lol
@raizor: I'd have no idea how to fit this optical into Pouet, nor do I think it's a good idea. However when I'm done with the refactor there will be a userscript somehow hooking this in.
As it was too f00king hot the last week (had 34°C in my flat on Sunday), I'm a bit behind my schedule for the rewrite. So far I'm done porting the parser for user stuff to PHP[0], as just loading a JSON file is faster than parsing all the stuff on your netbook.
Example:
view-source:http://metapouet.net/api/v0/user/?id=7775
https://gist.github.com/mog/73bab9a4791cb511a211
For the comments, that are the base for all the shenanigans, I'm done with that as well - but somehow it times out after 30s - which I'm currently investigating. It does work okay'ish for 20 prods and times at around .020s per comment, but hmm. Either way code for the curious.
https://gist.github.com/mog/407a63adfee891dbd4f4
That API will be obsolete at some point, but right now it just ensures Suggest-A-Prod will work a lot faster. I'll also Github the code after the rewrite, so I don't loose track of all your cool feature suggestions :)
Thanks for all the love, keep commenting - and if it's only for your thumbUpBuddies :)
[0] lol
Still working on it after work, so if if you want a peek on betapouet http://plnkr.co/edit/sJnqN0JzAOIG3TnoDcRa?p=preview prodtype selection works, demoType not yet.
Forks welcome :)
Also if the api doesn't return some thing, let me know on Twitter @mehmog :X
Forks welcome :)
Also if the api doesn't return some thing, let me know on Twitter @mehmog :X
It's just too hot in here to get actual work done, when I got home it's still >30°C in here - really can't code shit at this temperatures :\
this thing makes fun exploring prods without own comment (=
Oh hey,
it took me a while to update suggest-a-prod to pouet 2.0 - but hey, better late than never :)
Codewise it's still a mess, however you're now able to enjoy a couple of more prods - as it has (almost) endless scrolling.
Have fun! <3
it took me a while to update suggest-a-prod to pouet 2.0 - but hey, better late than never :)
Codewise it's still a mess, however you're now able to enjoy a couple of more prods - as it has (almost) endless scrolling.
Have fun! <3
Also the feature suggestions are not forgotten, just wanted to make sure it works before I add even more new mumbojumbo :)
great, i was waiting for this :D
<3
@mog: I get a lot of prods returned I have commented and voted Piggie. Is this intentional or?
Not intended at all maytz, thanks for catching that :)
Added a new sorting, if a buddy is in both the down and up list - then those two numbers are multiplied. Giving buddies that love and hate the same things as you a bit more boost.
Next up prodType and platform filtering I guess?
Next up prodType and platform filtering I guess?
Yes!!!
Gotta check the code :p
Gotta check the code :p
Oh please don't, it's a weird mess of .map/.filter and for loops ^^
nice :) then i'm going to have a look too. .map, .filter, .fold, the way to code!
Added prod types now, a quick smoke test gave me 4ks and wilds :)
Select multiple types by pressing shift while you click something in the list.
Select multiple types by pressing shift while you click something in the list.
Thanks mog!
you're welcome :)
Does it still work? It won't step further than "Starting to fetch your buddies comments" :(
Same here, also says I have 0 thumb-up buddies..
It's broken apparently. :c
Hmm, to be honest I didn't bother to fix it - because there was one user a week or something. However seeing that there's still need for it, I'll look into it.
mog: it's a very useful thing and a lot more fun than clicking around at pouet and decide what to watch. so it would be very nice :)