« first day (2830 days earlier)      last day (2136 days later) » 
01:00 - 20:0020:00 - 22:00

8:00 PM
@Aran-Fey, does Imagur have recaptchas before posting ?
 
I don't like where this is going... but no, I'm pretty sure it doesn't. At least not if you're logged in.
 
@KaranM Here's my version. It uses a dict of tuples.
d = {
    'platinum': ('Critical', 'High', 'Medium'),
    'gold': ('High', 'High', 'Medium'),
    'silver': ('Medium', 'Medium', 'Low'),
    'bronze': ('Low', 'Low', 'Low'),
}

for metal, cmdb in ('PLATINUM', 1), ('gold', 2), ('silVER', 3), ('BROnze', 1):
    print(metal, cmdb, d[metal.lower()][cmdb - 1])
#output
PLATINUM 1 Critical
gold 2 High
silVER 3 Low
BROnze 1 Low
 
@PM2Ring Thank you! i will try this soon as I get Kevin's code up and running.
 
@KaranM You may recall that I suggested using .lower() in this comment on your recent question that I answered.
 
Yes, i remember. I wasan't sure how to create the dictionary here which didn't let me think further ahead. I got stuck there itself.
 
8:11 PM
@Aran-Fey, Super simple, just post all the videos to youtube (You can upload multiple at a time), put them in a playlist, get all the urls and put it into a list through selinium and write it into you python file, Then just use something like pyautogui at the end to post the link on the site and click the neccesary buttons.
 
YouTube will let you upload 2000+ videos in one go?
Surely that's flagged as suspicious behaviour?
 
Maybe or maybe not. Even so you can do it in bursts. (10-100 a day) I don't know why this guy would need 2k plus videos either ways.
 
@Kevin Thanks! Kevin, This worked :D
 
Why they need it though is a bit irrelevant, I'm assuming Aran-Fey has an idea what they need. Taking a month to load them on to YouTube (if it in fact allows up to 100 uploads a day) isn't really an "easy" solution :)
 
@Aran-Fey Fair enough. 16 million -> 256 colours does tend to impact visual quality. ;) OTOH, it is often possible to make pretty good looking GIFs if you use fancy colour reduction & dithering.
 
8:16 PM
I'd really prefer to avoid touching selenium or pyautogui for something like this. I just discovered that gfycat lets you upload videos, so I'll look if they have an API.
 
Why exactly do they need to be on a public host?
I think you can create gifs locally, then you could throw together a flask server on some cheap instance to host them
2,500 seems a lot so I'm assuming they are specialist videos rather than something that needs to be hosted on a social media network
 
@PM2Ring I squeezed out as much quality as I could, but I want to do better :)
@roganjosh You know, I never considered becoming a web dev just to host some videos :P
 
If you're happy with using the IP address rather than a domain to access the images, I'd say a day's work (ish)
 
The videos are the animated versions of the cards from a card game btw. A lot of them look really cool but are really hard to get, so I took it upon myself to record them all and make them public
 
Ah, then you'd presumably want a domain. The reverse proxy is always the bit that I struggle with, but I fumble about in Linux
But the Flask side I think you'd get straight away, and the HTML... well you can download free templates that make all the layout of your website basically instantly, you just add the content
 
8:28 PM
@Aran-Fey watch out for licensing/copyright/whatever
 
That would be in reference to the images? The templates you can use for free if you keep attribution on them.
 
Images, yeah
 
Yeah, I honestly have no idea if that's a copyright violation. I'd credit the artists if I could, but the game doesn't even tell you who the artist is. All I know is that a bunch of other people have gotten away with extracting the game's art, so I figure the company's ok with that sort of thing.
 
8:48 PM
Here's a GIF I posted here a few years ago of a raytraced spinning diamond. If you zoom in you can see the dithering, but it's not easy to see at normal size. It uses a non-standard dithering algorithm that I read about many years ago. The original version of the algorithm was ok, but I've improved it a bit. :)
 
Pretty. That looks almost like a greyscale image at first glance, but it actually uses quite a few colors.
 
Thanks. The original does use a lot of colours, but because they mostly occur in smooth transitions the dithering fakes them pretty well.
 
So I just came across a user who is serially removing (old) url shorteners... which appears to be a generally good thing, but I'm not sure it's worth the spamming the suggested edits queue... his profile links to the Crusade from 7 years ago to remove all url shortened links...
It also seems to be his only interaction with SO
 
9:07 PM
I agree that a user who needs their edits approved definitely shouldn't be doing that sort of thing. I suppose you could flag it and let a diamond mod decide how to deal with it.
 
That's what I was thinking, I wanted to get a sanity check before I bugged em :)
 
The other option is to ask a meta question, but I think a flag should be fine.
In the past I've pinged our regular mods in here about stuff, but I know Martijn actually prefers it if we use the regular flag system. I guess it's ok if they're actually in the room at the time, though.
 
01:00 - 20:0020:00 - 22:00

« first day (2830 days earlier)      last day (2136 days later) »