HT Tärkeimmät Uutiset taas.
HT Tärkeimmät Uutiset taas.
Why, it’s the one I’ve hand baked myself of course.
I used to get so many old videos as reruns from Youtube feeds that I got fed up with it and made these changes to init() in classes/feedparser.php (added lines prefixed with ’+’):
foreach ($articles as $article) {
+ $ju_article = new FeedItem_Atom($article, $this->doc, $this->xpath);
+ if ($ju_article->get_date() < strtotime("-14 days")) continue;
+
array_push($this->items, new FeedItem_Atom($article, $this->doc, $this->xpath));
}
(And the same logic for each feed type.)
This seems to work as I like, forcibly dropping everything older than two weeks (I generally don’t care for old content). However, as it is a core change, I’ll have to reimplement it each time TTRSS is updated. Any chance of getting a hook in there somewhere (perhaps operating on $articles prior to that foreach), to do this type of prefiltering in a plugin?
Vastaa viestiin sen kontekstissa (Tiny Tiny RSS Community Forums)
Excellent. Which license would you apply to this? I store many of my small scripts in my personal (but publicly readable) wiki, so I’d like to get the license right for any derivatives I might publish.
I almost get cramps just by looking at this.
I don’t see a J in there, instead there are two L’s. A weird anomaly, almost as if somehow significant…
I have a HP/Compaq SDM4700P PS/2 keyboard, quite a prevalent model (I even have two myself). The keyboard has a set of 8 ”internet” keys on the top, one of which has a ”home” icon (so it’s supposed to be XF86HomePage I believe).
After installing linux-generic-lts-trusty (3.13.0-27.23 from -proposed), pressing the ”home” key triggers the computer going to sleep (powering down, power led starts blinking).
This did not happen with kernels prior to 3.13.
I installed and booted 3.13.0-24.47 (also available in the repositories now) and the issue was still reproducible.
To be sure, I also tried 3.11.0-22.38 and 3.8.0-41.60 again, and it was *not* reproducible.
(I wouldn’t have much use for the ”home” key as such, but as the keyboard lacks audio controls, I’ve remapped the ”home” key to be my XFAudioMute with ~/.Xmodmap. This was working fine until 3.13; now it still does mute the audio just before putting the computer to sleep. As I don’t use sleep mode otherwise, I’ve worked around this by adding an `exit` at the top of /etc/acpi/sleep.sh.)
And here I was thinking it was the gynecologist all along. Silly me.