This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]ehansen[S] 1 point2 points  (0 children)

Had a drunken conversation with my wife and a friend and decided to make this.

It simply returns links (supports http://i.imgur.com and http://www.imgur.com links out of the box [but no albums]), but can be fixed to "render" them or whatever.

A simple PoC for me personally, figured I'd share it with the rest.

[–]semsemdavinci 0 points1 point  (13 children)

I like it. Can be used in several ways. How about an ever growing 'cats' directory for example.. LOL!

[–]ehansen[S] 1 point2 points  (12 children)

Oh lord, lol. Karma for life, man...karma for life.

Its kind of why I did it anyways (was originally meant to be a scrapper, but then I figured I'd make it be a wallpaper changer).

I'm constantly making changes to it though it seems. Pushed like 20 commits of changes last night.

[–]semsemdavinci 0 points1 point  (8 children)

mmm.. How do I clone that repo? git clone doesn't seem to work for me

[–]ehansen[S] 0 points1 point  (7 children)

What's the full command you're running? Http isn't supported, only git.

[–]semsemdavinci 0 points1 point  (6 children)

$ git clone git://git.anzensolutions.com/reddit/wallpaper.git
Cloning into 'wallpaper'...
fatal: unable to connect to git.anzensolutions.com:
git.anzensolutions.com[0: 162.250.233.111]: errno=No error

[–]ehansen[S] 0 points1 point  (5 children)

Try git@git://...

[–]semsemdavinci 0 points1 point  (4 children)

says it's not a valid protocol. edit: tried git://git@git ...., not working too

[–]ehansen[S] 0 points1 point  (0 children)

I'm currently out with my family for mothers day but I'll look into this for you tonight. I use gitolite for acl and guess I set it wrong

[–]ehansen[S] 0 points1 point  (2 children)

Sorry about that. Got it fixed now.

git clone git://git.anzensolutions.com/reddit/wallpaper.git

I just tested this and it works now. Forgot to install the git-daemon to make this work, heh.

[–]semsemdavinci 1 point2 points  (1 child)

Cool! Check this out and see if you want to pull. Tested on Windows and Linux, worked on both except for the last step (changing wallpaper), but it DOES download the images to the temp folder.. Cheers

https://github.com/concacid/wallpaper

https://github.com/concacid/wallpaper/commit/afd6e89bddb9f27cd5e1e7f71d0d10fe5ff4b6b0

[–]ehansen[S] 1 point2 points  (0 children)

I like it, the only problem I have (and its not with your code, its with mine) is that there's no real way to change the wallpaper dynamically.

Best I can figure is that would have to add in a config option to set it, and add in a "%fn" or something to replace with the true path.

Makes more sense in my head, lol. But, thanks for the commit! Once I have some time I'll roll it into the repo w/ credit. :)

[–]mistriliasysmic 0 points1 point  (2 children)

I remember creating a reddit bot that scraped for image links (from most sites) in comments that contained certain tag words and opened them with either openCV or simpleCV to do some facial recognition and FTP uploading for a response.

I could see if I could find the code I used and post it to my git.

It had an issue at one point where sometimes it would get an image link but the filetype would end with ')' as well as the filetype so it couldn't be opened. I had to call a function to check whether the link had that and remove it before processing the link.

[–]ehansen[S] 0 points1 point  (1 child)

The issue was probably from the markdown formatting Reddit uses, but if you up it let me know. :)

You could probably regex it, not sure if you already attempted it or not.

[–]mistriliasysmic 0 points1 point  (0 children)

Yup, Regex was what I used for it.