Readit News logoReadit News
jayrox commented on What do you Google EVERY. SINGLE. TIME. and never just memorize?   dev.to/ben/what-do-you-go... · Posted by u/djug
jayrox · 8 years ago
needle, haystack or haystack needle.

everytime.

jayrox commented on Cloudflare Workers: Run JavaScript Service Workers at the Edge   blog.cloudflare.com/intro... · Posted by u/thomseddon
kentonv · 8 years ago
Yes.

Of course, you could only apply it to your own server.

Also, you would want to think carefully about clickjacking attacks (where someone puts your site in an invisible iframe and tricks people into clicking on it). The X-Frame-Options header was probably added to prevent clickjacking.

jayrox · 8 years ago
Of course this would be the user's personally hosted server. Typically hidden behind a password and loaded in some sort of HTPC manager like Organizr.

According to reports, Plex' intention was to prevent clickjacking, which is perfectly reasonable but left many of their users from being able to use their Plex servers within the HTPC managers.

jayrox commented on Cloudflare Workers: Run JavaScript Service Workers at the Edge   blog.cloudflare.com/intro... · Posted by u/thomseddon
kentonv · 8 years ago
Hey all! This is my project at Cloudflare.

(You may remember me as the tech lead of Sandstorm.io and Cap'n Proto.)

Happy to answer questions!

jayrox · 8 years ago
This is really interesting. I have an idea where this could be helpful to the Plex user community. Recently Plex added a header that blocks the page from being iframed (X-Frame-Options).

Would doing something like this, obviously replacing example.com with their own domain.com, replace the offending header?

  addEventListener('fetch', event => {  
    let request = event.request;
    if (request.headers.has('X-Frame-Options')) {
      let newHeaders = new Headers(request.headers);
      newHeaders.set('X-Frame-Options', 'ALLOW-FROM https://example.com/');
      event.respondWith(fetch(request, {headers: newHeaders}));
    }
  
    // Use default behavior.
    return;
  });

jayrox commented on Announcing Caddy Commercial Licenses   caddyserver.com/blog/acco... · Posted by u/OberstKrueger
mholt · 8 years ago
Remember this only applies to official binaries. The EULA itself states it doesn't apply to the source code.
jayrox · 8 years ago
Is that specified somewhere? I mean, I see this in the EULA `READ IT CAREFULLY BEFORE COMPLETING THE INSTALLATION PROCESS AND USING OFFICIAL CADDY BINARIES AND RELATED SOFTWARE COMPONENTS ("Software").` But is there something that specifically says the EULA only applies to official binaries and not the source code or self compiled binaries?
jayrox commented on Announcing Caddy Commercial Licenses   caddyserver.com/blog/acco... · Posted by u/OberstKrueger
andkenneth · 8 years ago
I think the headers are there so they can see if commercial sites are using the personal version and get them to pony up.
jayrox · 8 years ago
commercial sites have the easy ability to go to https://github.com/mholt/caddy; download the source; remove the header from header.go and server.go; compile; run

i'd venture to guess many build the binary themselves already. so they can add their own tweaks.

how would anyone be able to prove a website is being ran by caddy if the server doesn't announce that it is caddy?

jayrox commented on Live TV on Plex   plex.tv/blog/well-do-it-l... · Posted by u/electriclove
bubbabojangles · 9 years ago
I've been using a Ceton Infinitv tuner with WMC and ServerWMC for the last 5 years. I use Kodi as a PVR interface and my interface for TV shows/ Movies on my file server. I don't see any advantage to Plex, you need to pay for the service and it's a PIA to setup and configure. Once configured, don't plan on using the computer you setup the Media server on as it is always busy/ bogged down scanning files and transcoding video.
jayrox · 9 years ago
> Once configured, don't plan on using the computer you setup the Media server on as it is always busy/ bogged down scanning files and transcoding video.

This part is incorrect. Plex only needs to transcode at the time the media is being played and really only scans when changes to the media directory are detected and/or on a schedule you define.

jayrox commented on Jared Kushner Runs Windows on a Mac?   washingtonpost.com/postev... · Posted by u/stillsut
jayrox · 9 years ago
Both my Mac Pro and my Mac Book Pro run Windows 10. I don't feel guilty.
jayrox commented on Vue Intro   github.com/mjhea0/vue-int... · Posted by u/mjhea0
mjhea0 · 9 years ago
were you coding along? or just reading?
jayrox · 9 years ago
logic doesn't belong in markup.
jayrox commented on Vue Intro   github.com/mjhea0/vue-int... · Posted by u/mjhea0
jayrox · 9 years ago
lost my attention at

  <div id="app2">
    <button @click="click">Click</button>
    <div v-if="value">
      <p>Yay!</p>
    </div>
    <div v-else>
      <p>Nay!</p>
    </div>
  </div>

jayrox commented on Ryancare – The American Health Care Act. With Fire   ryan.care/... · Posted by u/jwoglom
jwoglom · 9 years ago
That domain's not available, unfortunately. trump.care wasn't available either. I figured Ryancare was the best name to go with -- the bill has already been branded as that name in some circles.
jayrox · 9 years ago
unfortunately, letting trump and the rest dodge the blame bullet when it comes.

u/jayrox

KarmaCake day107September 16, 2012View Original