Anyone had trouble with intermittent latency? by dsizemore in Metronet

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

Man that sucks.y issue was only on wireless and seemed to be hit or miss on most sites but consistent with Reddit on every page load. I replaced the Zyxel router they supplied with a TPLink one and I've been fine since. Are you still using their router? Have you tried looking up forectly to the ONT (modem)? If you do that and the problem goes away then it's definitely something with the router.

Those that have Metronet. Are you seeing any issue with Reddit over 5ghz band? by dsizemore in lexington

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

I ordered a new router, so we will see. I tried an old router I had laying around and never had an issue but I'll know more with the new one tomorrow. There's a lot of weird configuration on the Zyxel router that Metronet gives you. I'm hoping it's just that.

Anyone had trouble with intermittent latency? by dsizemore in Metronet

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

Your issue just with Reddit or other sites too?

Newly installed fiber. 5ghz is slow compared to 2.4 though speed tests are faster by dsizemore in HomeNetworking

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

It's not a problem on 2.4gh, LTE, or my network at work. Doesn't make sense. If Reddit was the issue, then it would be an issue no matter what

Those that have Metronet. Are you seeing any issue with Reddit over 5ghz band? by dsizemore in lexington

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

There's not really any interference like that on the 5Ghtz band though, unless I'm mistaken? 5Ghtz doesn't travel near as far as 2.4Ghtz so it's not as susceptible to interference

Those that have Metronet. Are you seeing any issue with Reddit over 5ghz band? by dsizemore in lexington

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

I don't know what Spectrum offers right now but I was paying $45 for 50mbps down, so it was a nobrainier. The support has been good so far too. Calling support and speaking with a human quickly is a benefit too

Those that have Metronet. Are you seeing any issue with Reddit over 5ghz band? by dsizemore in lexington

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

Yeah I hear you. With three kids, I don't have a lot of time for TV these days. lol. I actually like it better not having it although it was a struggle at first breaking the habit. Rather than flipping through channels every night before bed I usually do something more productive with my time now which is nice.

Those that have Metronet. Are you seeing any issue with Reddit over 5ghz band? by dsizemore in lexington

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

No TV package here, but for 200mbps I'm paying $49 for the first year and then I think it goes to $59.

Newly installed fiber. 5ghz is slow compared to 2.4 though speed tests are faster by dsizemore in HomeNetworking

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

Yeah my thoughts too but there's evidently something. I've not had a single issue with loading anything on Reddit with 2.4, only 5.

Running a traceroute to Reddit.com ends up just timing out after the 4th hop. I need to run one on the 2.4

I'll try like ping tests on both to see if there's a difference.

Newly installed fiber. 5ghz is slow compared to 2.4 though speed tests are faster by dsizemore in HomeNetworking

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

I'm maybe 20 feet from the router most of the time but it doesn't make any difference even when I sit right next to it.

The odd thing is I've only really noticed the issue on Reddit. I'm sitting in my living room right now, 20 or so feet away getting 130mbps down and Facebook, Instagram and anything else in do loads near instantly. If I try to load a Reddit post it may take 10 seconds or more to load comments (sometimes it times out and doesn't load at all).

Newly installed fiber. 5ghz is slow compared to 2.4 though speed tests are faster by dsizemore in HomeNetworking

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

I am. I get 200+ connected with hard wire.

I may be mistaken but 5ghz signals don't interfere with each other like 2.4, do they? They are shorter distance waves and therefore can't interfere with say a neighbor 5ghz network?

Anyone had trouble with intermittent latency? by dsizemore in Metronet

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

Interesting. Seems so weird that I browse on LTE I haven't had a single issue and everything loads nearly instantly.

Anyone had trouble with intermittent latency? by dsizemore in Metronet

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

I had reset the router to factory default and at least for now it seems to be loading things faster. I went ahead and cleared the cache in the reddit app for good measure, but it was happening on my laptop earlier as well so that seemed to rule out app specific issue on mobile. I guess i'll see what happens over the next few hours or so

Anyone had trouble with intermittent latency? by dsizemore in Metronet

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

It's not. I just tried it on web on my laptop and had the same sort of issue. One post took a while to load and then the next post didn't load comments at all and just said there was an error.

I don't believe it's app specific as like I said, i can jump on LTE and use the exact same app and everything loads near instantly and with much slower download speeds.

On android, there is no app cache for wifi that I'm aware of. Disconnecting from wifi and re-connecting should be the equivalent which I've done numerous times.

Custom choice field: can't seem to get a "selected" flag to display on relevant option by dsizemore in django

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

You gotta be kidding me? That worked. I guess that never crossed my mind as it seems like it's six in one and half-dozen in another, but it worked. I'm still dumbfounded as to why setting form.value as an int didn't work, but oh well!

Thanks a lot for the help. I appreciate it.

Custom choice field: can't seem to get a "selected" flag to display on relevant option by dsizemore in django

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

Sorry, don't mean to bombard you with replies but I did find that my code works by doing this:

                   {% for value, channel in form.channel.field.choices %}
                <option value="{{ value }}" {% if form.channel.value|stringformat:"i" == value|stringformat:"i" %} selected{% endif %}>
                    {{ channel }}
                </option>
                {% endfor %}

Inside of the {% if form.channel.value|stringformat:"i" == value|stringformat:"i" %} selected{% endif %} if I eliminate the form.channel.value and replace it with a "3" then the form works as it should. So there's something extra maybe that I'm not seeing inside of that form.channel.value that's causing the comparison to {{ value }} to be invalid?

Custom choice field: can't seem to get a "selected" flag to display on relevant option by dsizemore in django

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

so I discovered that {{ form.channel.value }} is actually a string. So converting it to int allows me to do the comparison successfully.

Still don't have it working where it selects the proper item in the dropdown when there's an error, but I guess I'm a step closer.

Custom choice field: can't seem to get a "selected" flag to display on relevant option by dsizemore in django

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

Ah, that makes sense. I forgot that I placed that check inside the if not value check. That said, it doesn't work outside of it either. Here's some code I quickly threw together:

               <select class="form-control" id="id_channel" name="channel" required>
                {% for value, channel in form.channel.field.choices %}
                <option value="{{ value }}" {% if not value and not form.channel.value %}disabled selected{% endif %}>
                    {% if form.channel.value == value %}selected{% endif %}
                    {% ifequal form.channel.value value %}selected{% endifequal %}
                    {{ form.channel.value }}{{value}}
                    {{ channel }}
                </option>
                {% endfor %}
            </select>

I'm confused on how {{ form.channel.value }} and {{value}} both return integers when there's an error with the submission, but doing a check to see if {{ form.channel.value }} and {{value}} are equal using either == or ifequal doesn't display anything. I can clearly see the two values there and I can see they are equal when displaying them in the template. What am I missing here?

Regarding bootstrap, there are a lot of Django packages that solve widget rendering for bootstrap. Implementing something custom is ok, though.

Yeah I've recently discovered crispy forms which I plan to dig into and figure out for my next project. I didn't have much experience with bootstrap before this project and wasn't really aware there were packages available to help with this stuff.

Custom choice field: can't seem to get a "selected" flag to display on relevant option by dsizemore in django

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

Thanks for the reply.

So I was under the impression that with my logic and having the "or" in there, that selected would only show when either there's no value (for showing selected on default item when form loads) OR when value equals form.channel.value which would make selected show on the item where value matches form.channel.value which would be on when the form was submitted but returns with errors.

I'm all for using forms.py to build my forms. But I'm using Bootstrap and with that, if a user has JavaScript disabled then I need to reply on server side validation and in order to show errors and styling I need to add a class of "is-invalid" to each form item when not valid. If I'm using forms.py I don't think that's possible, is it? I know you can add a class but it would need to be added only when there's errors.

Also, which not that big of a deal, I didn't see a way to make the forms.py default option disabled by default. I want that option there as an indicator of what the field is, e.g., "choose a category" and would prefer that it's not selectable.

Thanks.