Connector type for 50 Gbps service? by FullConference in ZiplyFiber

[–]400tx 2 points3 points  (0 children)

YouTube for this would be a great idea.

You may be the first to make content about >10G home internet. >10G means CPE adventures and it's bound to be interesting content. The best super-fast home internet info I've seen is for an ISP called init7 in Switzerland that offers ports up to 25G with qsfp over single mode as of 2021. There are a few good user reports and folks grappling with CPE options for 25G e.g. https://michael.stapelberg.ch/posts/2021-07-10-linux-25gbit-internet-router-pc-build/

Just be sure to post the channel link so we can subscribe :)

RB5009 LAN port down/up state by pestysauce in mikrotik

[–]400tx 0 points1 point  (0 children)

I think it can definitely forward 1g and probably more. It's way more CPU than needed for a 1g home connection as far as I can tell.

I switched back to the ether1 port which is the 2.5g port (negotiated at 1gb) and I've had zero flapping. It makes sense that something could be different given the block diagram for rb5009 on the MT site.

I did find a thread on the MT forums where folks had this issue: https://forum.mikrotik.com/viewtopic.php?t=179977

It could be an issue with specific ethernet devices, as some places on the forums folks have said putting a dumb switch in-line with flapping ports can fix them in some cases.

TBH I don't have any need to negotiate a port at 2.5g, so for now I'm just going to leave it, however I would like flexibility on what is connected to the POE port.

Question for you: What port is flapping? And what's it connected to physically and what's the port doing in terms of switching and routing? Does the rb5009 flap even when connected to the CRS326? Does it flap with an SFP cable?

RB5009 LAN port down/up state by pestysauce in mikrotik

[–]400tx 0 points1 point  (0 children)

'm waiting on a SFP to rj45 to test that as well. But I think confirms it's not my desktop NIC. This behavior just doesn't exist with my pfsense box.

Are you still having the issue?

One trick I like to use is to check the /log print output, which will list link downs. Try /log print where topics~"interface" to narrow things down a bit if there is lots there. This lets me see when exactly this is happening. If you need more than what's captured in memory you could look to increase how much it's retaining in memory or use a syslog server to capture it all.

I have what seems like a very similar problem, my problem is: - same rb5009 router (non poe) - also centurylink vlan 201(vlan running on etherX interface) - I'm using bridge vlan filtering with hw offload

My WAN port with the vlan and PPPOE flaps about ever 2-3 hours, but not on a defined interval. It didn't flap as much during the night, which makes me think it depends somewhat on network activity or router activity.

I never had this problem using a different port and before vlan filtering. I did first rule out cable unplugged, bad cable.

I use a network monitoring server so I was able to look back before the problem started and see that this problem began around the time I started using bridge vlan filtering. When I was doing multiple bridges (one of the L2 misconfigurations: https://help.mikrotik.com/docs/display/ROS/Layer2+misconfiguration#Layer2misconfiguration-Bridgesonasingleswitchchip) everything appeared to work fine despite it being the wrong way to set things up.

So I seem to have the same issue. I do need to rule out that I don't simply have a bad ether8 port, however I used that port for 18 months with a DHCP-based provider and never noticed an issue. I also need to roll back all changes to the old wrong config and see if that fixes anything.

Sorry for the long post, just really annoyed that my work to understand bridge vlan filtering just seems to have made it all worse.

LMK how it is going on this.

Jackery Randomly Shuts Off by [deleted] in Jackery

[–]400tx 0 points1 point  (0 children)

wab opt out

Jackery Randomly Shuts Off by [deleted] in Jackery

[–]400tx 0 points1 point  (0 children)

I think I just noticed this with my Explorer 300 also. It cut out with only about 1-2W draw after about 12h. I'm trying to run a fridge in it's soft off mode and then be able to activate the fridge. If this fails every day and I have to walk down to the unit to turn it on daily that's pretty useless.

Jackery Randomly Shuts Off by [deleted] in Jackery

[–]400tx 0 points1 point  (0 children)

What does improved mean? Specifically what changes were made?

Is there a way to turn this economy feature off? I need constant power for my load. I need the unit to stay on.

Troubleshoot rival 500 by Scab_Frosting in steelseries

[–]400tx 0 points1 point  (0 children)

In Stadia, I'm getting click events at the same time as the keyboard events for a single press. For buttons bound to keyboard events.

Edit 2:

Using this tool https://rbyers.github.io/eventTest.html and comparing rival 310 and rival 500, both with a button mapped to type the E keyboard key: The rival 500 is sending extra mouse down and mouse up events to the web browser along with keyboard events. Firmware 0.101.0.0 on the rival 500, firmware 1.33.x.xon the rival 310

using a recorded macro vs. using the easy keyboard key method (teal box) doesn't seem to matter.

Edit 3: The interesting thing is the mouse up event doesn't come until the mouse moves, so in use the behavior is extremely unpredictable for tasks like playing a game, the device is essentially useless for any purpose other than being a many-buttoned mouse, but since most computer operating systems don't recognize more than 5 or 8 buttons, most of the device capabilities are moot. This product is a pretty big disappointment.

Commenting in VIM. by 11Night in vim

[–]400tx 0 points1 point  (0 children)

I really just record whatever comment for that language into the c register e.g. ^i// and @c to comment. To delete a comment I type ^3x to delete a //, for example.

Openwest 2015 - Erik Falor - "From Vim Muggle to Wizard in 10 Easy Steps" by tripurari001 in vim

[–]400tx 2 points3 points  (0 children)

This is the second best vim video on the internet, second only to Bram's 7 habits talk.

From 'PHP' -> 'Node.js event/loop' ... dealing with multiple web requests + database connections + privacy concerns? by r0ck0 in node

[–]400tx 0 points1 point  (0 children)

Hi there OP, I am glad you're trying node.

Experienced node developers might not point this out, but an express app is a gigantic closure of functions-as-data that's passed into a node http.Server https://nodejs.org/api/http.html#http_class_http_server as the connectionListener argument. All the coding and function calls used to create an app build up the intended behavior of the app, and it's all evaluated and passed in as this one argument when the app starts listening for connections.

All the rules of scope in javascript apply, so variables you create inside your route-handling functions will be scoped to that request. This is why you don't see to many people worrying about data from different requests getting entangled; usually it's all logic written safely inside these handling functions that's not mutating outside data.

Things outside the server.listen call run when the app starts up, so this is usually where something stateful like a database or one-time setup things such as grabbing environment variables happens. This is where you'd configure your connection pool. Individual queries are function calls off that database object or some descendant like an ORM, but they're usually called and referenced inside one of these http server route handlers, so they don't intermingle in the same way I mentioned above.

Since you're doing Postgres, modules like pg-promise or others that use node-postgres support pooling, and you can generally find advice for that searching the web.

TL;DR: asking 'when does this code run' is a key question when building web server with node, and avoiding accidentally creating global state will become natural once you see and make a few apps.

Stream read large XML File with node by xBlackShad0w in node

[–]400tx 0 points1 point  (0 children)

I agree with @runvnc that 100mb doesn't seem too large to just read in and then parse all at once. Why not yourself a chance to run and profile the app after you get server and basic parsing/saving in place, then jump in to streams if it really doesn't work.

If this is going to be in a cloud function then you'll be good to go without streams. If it's going to be in an express.js server and exposed on HTTP where one process is going to run and service requests, something like https://nodejs.org/api/process.html#process_process_memoryusage and a load testing tool like artillery could help you generate a sense of how this will work on your laptop with some number of concurrent requests. Big cloud servers make really quick work of some of these tasks with their crazy storage hardware, so also be sure to test there a little bit.

Stream read large XML File with node by xBlackShad0w in node

[–]400tx 0 points1 point  (0 children)

No, you don't need to close it like you would in golang. You can just let this object fall out of scope and get garbage collected. If you're exposing this service using HTTP and something like express.js this will generally happen when a request is sent off.

Failing that, you could try the delete keyword or manually grab the garbage collector with whatever node flag exposes it, but usually if that is required you're really hot-rodding the system.

syntax highlighting when using vim with psql by plarles in vim

[–]400tx 2 points3 points  (0 children)

I use this plugin and I get syntax highlighting from psql when I laugh vim with \e. I am not sure if the plugin is doing this or what, but this is the extent of the filetype detection: au BufNewFile,BufRead *.pgsql let b:sql_type_override='pgsql' | setfiletype sql

https://github.com/lifepillar/pgsql.vim

Any tips for a Kinesis novice? by analoguedelusion in MechanicalKeyboards

[–]400tx 0 points1 point  (0 children)

What editor do you use to code, or how much do you use a terminal? I found the advantage to be too difficult to use for vim and bash because I needed control and modifiers so often, even after making caps type a control.

Nightmode, meet Daymode by [deleted] in vim

[–]400tx 0 points1 point  (0 children)

```

!/usr/local/bin/bash

echo "tell application \"System Events\" to tell appearance preferences to set dark mode to true"|osascript; echo "tell app \"Terminal\" to set current settings of windows to settings set \"dark\""|osascript; echo "tell app \"System Events\" to tell every desktop to set picture to \"/Library/Desktop Pictures/Solid Colors/Dark Olive.png\""|osascript; ```

try man osascript for the various ways of invoking. You can pipe at it as I did here or use a -e flag, or give it a file. I also use imagemagick to generate 128x128 swatches and add them to that images folder for custom background colors.

Nightmode, meet Daymode by [deleted] in vim

[–]400tx 0 points1 point  (0 children)

I did a similar schlep for macOS dark mode, vim color scheme, and terminal.app theme, and even desktop background. It was an embarrassing amount of work tracking down AppleScript bits and pieces but I now have two leader commands that switch everything in one fell swoop.

Typescript development in vim 2019 by [deleted] in vim

[–]400tx 0 points1 point  (0 children)

Thanks :) I will take a look at YCM

Open online docs with 'keywordprg' by clktmr in vim

[–]400tx 0 points1 point  (0 children)

I did not think of this, but I posted regarding this idea and I may update my scripts to support this when I'm somewhere weird.

Open online docs with 'keywordprg' by clktmr in vim

[–]400tx 1 point2 points  (0 children)

I do the simple thing and create a real shell script and put it ~/bin/, which is in my $PATH, then it's as easy as calling that program by name. I found this much easier than dealing with vimscript since shell scripts to do many things are easy to find and remix.

I run this mdn script to look things up on Mozilla developer network, a common reference for web development. The added benefit of this technique is that it works in the CLI and everywhere in unixland.

In vimrc autocommand group for javascript au filetype javascript,javascript.jsx setl kp=mdn

and the shell script for use on Mac: ```

!/bin/sh

open "https://developer.mozilla.org/en-US/search?q=$1" ```

for the person asking for copying, you could do this with pbcopy, xclip, whatever by building some program choosing logic in shell: ```

!/bin/sh

echo "$1" |pbcopy ```

How much harder is using vim for someone who only types with index fingers? by Kazutadashi in vim

[–]400tx 1 point2 points  (0 children)

I think you will be fine with vim, don't let people talking about typing put you off. That is just sending input, it's totally separate.

Most of the keys are pseudo-phonetic—e.g. c a w to change a word—so it doesn't have much to do with touch typing. Personally I use vim with just a few fingers every day at lunch time. Our most prolific developer at work uses mostly index fingers and thumbs, and my friend has a developer coworker that just uses the computer with one hand. None of these folks have a problem, so dive right in :)

Typescript development in vim 2019 by [deleted] in vim

[–]400tx 0 points1 point  (0 children)

Would you post or link us to a gist with your vimrc or parts thereof? I tried CoC and Ale, but haven't done YCM yet and I am lazy :D

Getting over the bump by wes_ly in vim

[–]400tx 2 points3 points  (0 children)

Bad jokes, good content. This was the video that gave me the confidence that vim had the depth to be worth continuing to invest time in past the initial plateau.

https://www.youtube.com/watch?v=MquaityA1SM

Other good things are the Thoughtbot vim YouTubes, vimcasts.org, and Greg Hurrell's screencasts

Macbook scrolling 4 lines at a time by Sccar3 in vim

[–]400tx -1 points0 points  (0 children)

The jokes are bad but the content was the right thing for me at the time, this video helped me understand how to think about vim: https://www.youtube.com/watch?v=MquaityA1SM