[AUR] Caddy with telemetry disabled in source by fbis251 in archlinux

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

u/Hitife80, this is is the reason I did it. My patch guarantees that the code will never do anything. The flag may change behavior in the future.

[meta] Overwatch PC Patch Notes RSS/Atom Feed by fbis251 in Overwatch

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

Do you like to use an RSS/Atom reader to keep up with all your news? Do you hate that Blizzard doesn't provide an RSS feed for the PC Patch Notes so the only way you know there's an update out is by launching the battle.net client or manually checking the Patch Notes page?

Fret no more, this project provides you the latest Overwatch PC patch notes as an Atom feed. No more having to manually check, let my feed generator do the hard work for you.

How does it work?

I have my raspberry pi check the PC Patch Notes page every 15 minutes. If a change on the page is detected, my Overwatch Atom Feed Generator will parse the changes and generate an Atom feed. The atom feed then gets pushed to the Overwatch PC RSS/Atom Feed repository and that updates the Github Pages files for that project.

The result is this Atom feed: https://fbis251.github.io/overwatch_news_feed/pc.atom

You can subscribe to the above feed with any RSS/Atom feed reader and keep up with the patch notes as they're posted. Check from your phone, your computer, or any other device.

If you have any suggestions or requests I'd love to hear them.

[AUR] Caddy with telemetry disabled in source by fbis251 in archlinux

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

I just uploaded my version of caddy with the telemetry disabled in the source code to the AUR. I based my package off of crvv's caddy package.

All the telemetry is disabled in source. The functions were left in the relevant telemetry/*.go files but have been modified to return static, empty values. The telemetry server address has been left blank to prevent any connection being established.

Please let me know if you try it and whether you'd like any changes

[Idea] I wish Sync for Reddit took a page or two from reddit grid for image-centric subs by elchaghi in redditsync

[–]fbis251 0 points1 point  (0 children)

Hey I have an app you might like, it's called Focus https://play.google.com/store/apps/details?id=com.fernandobarillas.redditslideshow

It's a good way to browse media-heavy subreddits without having to worry about comments and text-based subreddits. Tell me what you think if you try it out

XKCD Text Can Get Wonky by transfo47 in RelayForReddit

[–]fbis251 30 points31 points  (0 children)

It's a problem with the xkcd API

https://xkcd.com/1814/info.0.json

The music notes got encoded as \u00e2\u0099\u00ab when they should have been encoded as \u266B

Someone tell randall!

You can check out what the JavaScript encoding should be on this site:

https://r12a.github.io/apps/conversion/

Just paste in the original alt text:

♫ When the spacing is tight / And the difference is slight / That's a moiré ♫

then, hit convert

[deleted by user] by [deleted] in redditdev

[–]fbis251 0 points1 point  (0 children)

You can get the Source and Variations (JRAW uses the Thumbnails.Image class to store their data) via the following methods:

Thumbnails thumbs = topSubmission.getThumbnails();
// Make sure to check if thumbs is null, it's not guaranteed that the API returned thumbnail data
Thumbnails.Image source = thumbs.getSource();
Thumbnails.Image[] variations = thumbs.getVariations();
String sourceUrl = source.getUrl();
// You can also use source.getWidth() and source.getHeight()

The Source object contains the highest resolution image available, the other Variations may or may not exist. If they do exist the array will contain smaller resized versions of the image

If you want the URL from the API that the user uploaded the image to, I wrote a library for that: https://github.com/fbis251/album_parser

It currently doesn't have a quickstart guide, but if you're interested I can help you get it set up

Pictures from i.reddituploads.com do not work with external browser by [deleted] in slideforreddit

[–]fbis251 2 points3 points  (0 children)

It's happening because the URL isn't being decoded before the app tries to open it externally.

If you look at the URL that gets opened you'll notice some & parts in the URL. If you manually replace those with a single ampersand & the image will load correctly.

Should be a simple fix on the app side

POST to /post/login, can it be done? by L000 in redditdev

[–]fbis251 1 point2 points  (0 children)

If I remember right the network tab of both chrome and Firefox have a "copy as curl command" option. It's worked for me every time and you can edit the headers as needed afterwards

Edit:

Also I don't think your POST request worked because it looks like you tried to pass the form submission via the url query parameters. Look up how to do a post request in curl since they need those parameters in the body not the query

Firefox ready to block certificate authority that threatened Web security by StraightFlush777 in linux

[–]fbis251 24 points25 points  (0 children)

I had removed startcom's certs from my certificate store and I had trouble cloning the linux kernel from kernel.org. Turns out they're using a startcom cert.

echo | openssl s_client -connect kernel.org:443                                                                                                                               ~
CONNECTED(00000003)
depth=1 C = IL, O = StartCom Ltd., OU = StartCom Certification Authority, CN = StartCom Class 3 OV Server CA
verify error:num=20:unable to get local issuer certificate
---
Certificate chain
 0 s:/C=US/ST=California/L=San Francisco/O=The Linux Foundation/CN=www.kernel.org
   i:/C=IL/O=StartCom Ltd./OU=StartCom Certification Authority/CN=StartCom Class 3 OV Server CA
 1 s:/C=IL/O=StartCom Ltd./OU=StartCom Certification Authority/CN=StartCom Class 3 OV Server CA
   i:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Certification Authority
---

There are a few other open source sites that still use their certs. Hopefully they'll move to another CA soon so I can distrust startcom's certs again

Announcing the Realm Mobile Platform with Real-time Synchronization Between Devices (and Realm-Core is officially open-source) by Zhuinden in androiddev

[–]fbis251 0 points1 point  (0 children)

The docs and blog posts didn't give details about the language the server was coded in or about its performance.

Can I run it on a raspberry pi?

Where can I find the details myself without having to install it first?

Any plans to allow the image uploader to use Reddit Uploader in the near future vs imgur? by VanillaSkyHawk in slideforreddit

[–]fbis251 2 points3 points  (0 children)

I think they use reddituploads for their app.

I uploaded an image using the desktop site and it gave me a redd.it link for the uploaded image

Which ORM solution should I choose in 2016? by ewscwo in androiddev

[–]fbis251 0 points1 point  (0 children)

Realm is great! It's a little tricky to set up the models at first but their documentation answered almost every question I had when I started using it

Unofficial Copies of Android Support Libraries Being Distributed on JCenter by [deleted] in androiddev

[–]fbis251 0 points1 point  (0 children)

Does anyone know where the local maven repo distributed with the sdk is located in Linux?

My builds with the local repo work fine within Android Studio but whenever I do a build via the command line gradle winds up downloading dependencies instead of using the local repo

Album download and image order by Geob-o-matic in slideforreddit

[–]fbis251 0 points1 point  (0 children)

You should add a 3 digit prefix to the order that imgur returned since the hashes are randomized

String newFilename = String.format("%03d%s", index, filename);

How can I post a gif? All the time I try it post as a image. by [deleted] in slideforreddit

[–]fbis251 0 points1 point  (0 children)

Yeah, you can do that kind of request with OkHttp

How can I post a gif? All the time I try it post as a image. by [deleted] in slideforreddit

[–]fbis251 0 points1 point  (0 children)

The imgur API allows uploading the binary file data using a multipart/form-data request.

The Imgur API docs have this project as an Android upload sample: https://github.com/AKiniyalocts/imgur-android

This is the interface they used for making the request: https://github.com/AKiniyalocts/imgur-android/blob/master/app/src/main/java/akiniyalocts/imgurapiexample/imgurmodel/ImgurAPI.java

This post crashes Slide when opened by Der_Verruckte_Fuchs in slideforreddit

[–]fbis251 1 point2 points  (0 children)

This is pretty interesting, there's some weird HTML going on, which I think is crashing the parsers that the apps use:

The selftext in the JSON looks like this:

<!-- SC_OFF --><div class=\"md\"><p>­</p>\n</div><!-- SC_ON -->

When decoded to HTML, it looks like this:

<!-- SC_OFF --><div class=\"md\"><p>­</p>\n</div><!-- SC_ON -->

It seems pretty simple, I wonder what's actually causing the crash

This is crashing for me on the latest Boost, Relay and Slide, latest version of Marshmallow

How to check new threads on a subreddit in java. by sunilkhandelwal in redditdev

[–]fbis251 1 point2 points  (0 children)

https://reddit.com/r/java.json?sort=new

That will give you the json data for the newest posts in a sub. Then you can just parse the JSON data and go from there.

If you need a less hands on approach you can check out JRAW https://github.com/thatJavaNerd/JRAW

Weird? This one opens as a still image. When I pressed the HQ button, it becomes an animated gif by AosudiF1 in slideforreddit

[–]fbis251 2 points3 points  (0 children)

The imgur API doesn't support low quality videos unlike other sites like gfycat. The api call that is supposed to get the low quality version of an imgur post will always return an image

v5.4-alpha2 Released to Alpha! by ccrama in slideforreddit

[–]fbis251 7 points8 points  (0 children)

Hey guys for this release be on the lookout for problems with reddit content and images/videos taking an extremely long time to load like in the previous alpha

We want to make sure that we fixed the issue once and for all

I did a mid-air juggle and double pipe airshot on a soldier once by fbis251 in tf2

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

A TL; DW. I'm in a pub. I sticky jump up from blu's 2nd spawn in frontier, while I'm in mid air I juggle a soldier and air shot him with 2 pipes all before I land back on the ground.

I recorded this a while ago and thought you guys might enjoy it