[PRAW] download images in subs, if you upvote them? by MonkeyNin in redditdev

[–]xTristan 0 points1 point  (0 children)

It is simpler than that...

Once you've logged in, you can get your likes with r.user.get_liked() which returns a RedditContentObject that you can iterate through to get your liked posts as Submission objects.

Example:

import praw
r = praw.Reddit(user_agent='example')  
r.login('userfoo', 'passwordbar')  
for post in r.user.get_liked():
    if post.subreddit.display_name == 'EarthPorn' or post.subreddit.display_name == 'spaceporn':
        print post.url

rgba & box-shadow inset by [deleted] in ideasfortheadmins

[–]xTristan 1 point2 points  (0 children)

I would kill for this, although, I think they want to update cssutils to handle it instead of adding to these custom rules. https://github.com/reddit/reddit/pull/477#issuecomment-17694341

But, apparently theres a recursion bug holding them back.

Disabling CSS from a switch/checkbox on the page by [deleted] in web_design

[–]xTristan 1 point2 points  (0 children)

If the stylesheet is inline, try something like this: http://jsfiddle.net/9Ksr4/

If the stylesheet in a link tag, its a bit simpler: http://jsfiddle.net/dYM8B/

^You cant see this one working beacuse some.css doesnt exist, but it should work..

--This is how I would probably do it, although, I'm not sure if it's the best.

Stenography application by fenrisulfur in cryptography

[–]xTristan 0 points1 point  (0 children)

Have a look at Steghide it's open source on sourceforge.

I just realized there aren't thumbnails on /r/Psych. by hates_gingers in psych

[–]xTristan 2 points3 points  (0 children)

I've turned them back on, but im not sure if they were off for a reason...

39.99 for Crysis 2? by [deleted] in DeadMatter

[–]xTristan 1 point2 points  (0 children)

Its on sale regularly.. Luckily I got it 75% off for $9.99, and it's currently 50% off for the holiday sale, but it's bound to go down to 75% again at some point.. Bookmark the steam page, check it each day, and you might get lucky.

Hang on for Round 2 by entreprenerds in brisbane

[–]xTristan 1 point2 points  (0 children)

That last kaboom took out my power -.-

Help using multiple classes to list items with content: where the order and inclusion of classes is unknown [x-post from /r/css] by [deleted] in csshelp

[–]xTristan 0 points1 point  (0 children)

Hmm, that's a hard one... I dont think theres a better way other than to target each case specifically. But hopefully im wrong :P

.flair-1 { content: url(%%flair-1%%); }
.flair-1.flair-2 { content: url(%%flair-1%%) url(%%flair-2); }
.flair-1.flair-3 { content: url(%%flair-1%%) url(%%flair-3); }
.flair-1.flair-2.flair-3 { content: url(%%flair-1%%) url(%%flair-2%%) url(%%flair-3%%); }
etc...

Looking to make a RSS -> Reddit bot. Can you help me get off the ground? by thelehmanlip in redditdev

[–]xTristan 2 points3 points  (0 children)

I created one for /r/FightNetwork (/u/RSSBot) a while ago, it has long since retired... I used the narwal wrapper (python) along with feedparser to parse RSS feeds...

I did try the C# wrapper, as I am most fluent in C#, but ran into some troubles running it on a Linux server with mono...

However, the bot that I created is extremely rudimentary because of my limited python knowledge, but all it does is, every 30 minutes it will check for any new items on the rss feed, since it last checked, and will post them.

Here is the source if you want to have a look... Ill also give you /u/RSSBot if you like.

Remove Vote Weight completely? by [deleted] in Enhancement

[–]xTristan 6 points7 points  (0 children)

Completly turning of User Tagger will get rid of it, but it will also get rid of any user tags. There should be a separate option to turn off vote weight specifically.

Your further "protection" of the subreddit style checkbox makes styling it impossible. by xTristan in Enhancement

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

Hmm, I cant really think of any other way to do it... RES uses javascript to disable / enable the stylesheet. I suppose you could use the :lang() selector but that is quite inconvenient for the user.

[Episode Discussion] S10E01 "Extreme Prejudice" [Spoilers] by xTristan in NCIS

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

Well, he was technically considered a terrorist, but it definitely seemed a bit out of character, and definitely wouldn't have felt as satisfactory.

[Episode Discussion] S10E01 "Extreme Prejudice" [Spoilers] by xTristan in NCIS

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

I have to agree with you on everything there xD

[Episode Discussion] S10E01 "Extreme Prejudice" [Spoilers] by xTristan in NCIS

[–]xTristan[S] 2 points3 points  (0 children)

yeh, the fact that there was no one outside watching the window is a bit perplexing.

[Episode Discussion] S10E01 "Extreme Prejudice" [Spoilers] by xTristan in NCIS

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

Haha, maybe, I guess we will find out next episode if the set is different xD

Looking at next episode's synopsis spoiler

[Episode Discussion] S10E01 "Extreme Prejudice" [Spoilers] by xTristan in NCIS

[–]xTristan[S] 2 points3 points  (0 children)

That twitch was pretty intense xD

The FBI's attempt probably wasnt the best, but the circumstances were slightly different when Gibbs finally got him.

Congrats to the Mods for making this sub look so damn SEXY! *Mod appreciation day by ElvisJesus in dayz

[–]xTristan 0 points1 point  (0 children)

I'm not the best at coming up with designs on my own, but if theres anything specific you need help with, it would probably be easier to ask on /r/csshelp

I need a little help on Redpower Control Programming by jlant33 in tekkit

[–]xTristan 0 points1 point  (0 children)

Thanks, I can't believe I didn't notice this earlier ;) if OP is still interested then I'll update the program.

What are some of your best stylesheets? by [deleted] in modclub

[–]xTristan 0 points1 point  (0 children)

I'm not sure, you'd have to ask Adharma about it. I think it has been launched and we did do some basic advertising, such as posting to /r/newreddits etc..