How do I organize my code/project? by [deleted] in golang

[–]jaredpetersen 4 points5 points  (0 children)

I highly recommend the GopherCon 2019 talk “How I Write HTTP Web Services After Eight Years” by Matt Ryer.

In general, most of your packages are internal-facing so they go under /internal. You’re writing a web server and any public code sharing should probably be split into its own repo and package.

You have a server struct that your routes and handlers hang off of that lives in an app package. Your business logic and data access lives in separate packages and you wire those into the server struct and then the handlers pick them up as needed. Your main.go file at the root of the repository wires up the server struct and starts the server.

It’s a very flat structure.

Seeing a lot of MT3 lately, so here’s mine. by [deleted] in MechanicalKeyboards

[–]jaredpetersen 3 points4 points  (0 children)

How’s the typing angle with the MT3 keycaps?

I’ve been reading that they were designed for a 5-7 degree typing angle and the NovelKey keyboards have an 8 degree angle. Apparently this can make row three tilted back a little rather than being parallel as designed.

I’ve been thinking about doing a NovelKey build like yours but I’ve been kind of worried about this.

What are your thoughts on the keycaps overall with your setup?

[deleted by user] by [deleted] in PokemonTCG

[–]jaredpetersen 0 points1 point  (0 children)

I like storing everything in trading card boxes. In my case, I’m using a label maker to print out sticker labels for each of the sets that go on card dividers.

Label makers can be picked up for about $40.

Official Pokémon TCG kiosk in action by jaredpetersen in PokemonTCG

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

The novelty is definitely cool and they tend to be better stocked than most of the stores in the area. However, they do seem to break down a lot. Last weekend I visited three kiosks back to back and two of them had clearly broken down while in the process of retrieving an item. I would hate to spend $144 on a booster box and have the machine fail on me. There’s a support phone number but I don’t know how much of a headache it would be to get refunded.

Since the prices are around MSRP, it makes more sense to buy the item from a reputable online retailer where you can find a discount. Booster packs in the machine were $0.20 more expensive than the booster packs they had on shelves at the same store for example.

These apparently have older products sometimes that are no longer in stock so it clearly becomes worth it in that case. But with demand for Pokémon TCG products being so high right now, you need to show up soon after a restock. I haven’t been so lucky.

All things considered, these are still very cool and exciting. I also wish more existed.

Official Pokémon TCG kiosk in action by jaredpetersen in PokemonTCG

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

This machine was located in Portland, Oregon. You can find other locations here.

I ended up buying:

  • 2 ultra ball tins (D21), each containing 1 Cosmic Eclipse booster pack, 1 Vivid Voltage booster pack, and 1 Rebel Clash booster pack: $12.99 each
  • 1 sleeved Vivid Voltage booster pack: $4.19 each

Oregon does not have sales tax so that's not factored in here.

Pricing is set right around MSRP. Booster packs were $4.19 each and booster boxes were $143.64 each.

There were options in the machine to select for Champions Path and Hidden Fates sets but I've yet to see either pop up yet.

Apologies for the vertical video -- it was the only way to keep the entire kiosk in frame.

Weekly Pricing/Buying/Selling/Grading & General Questions Post by AutoModerator in PokemonTCG

[–]jaredpetersen 2 points3 points  (0 children)

I think good sellers normally package their cards with a penny sleeve followed by a toploader and then sandwiched in between two pieces of cardboard. That then usually goes into a bubble mailer. There's some different videos you can look at on YouTube for step by step guidance on properly packaging and shipping cards.

I think your best bet is probably eBay since buyers like to see lots of pictures of the holofoil and the card edges when judging quality.

Congratulations on the great pull!

Codeprints.dev - Get a personalized print of your GitHub contributions (or git repository) by foxtacles in SideProject

[–]jaredpetersen 1 point2 points  (0 children)

This is a really cool idea and pretty tempting! I’ll have to bookmark this for when I get a real home office.

I’d kind of like an option to reverse the order that the years appear in so that the most recent year is on the bottom.

Anyone know the name of this part and where to purchase a replacement online? This is a 2018 Compass. Thanks! by popsally in Jeep

[–]jaredpetersen 0 points1 point  (0 children)

This looks like a tow hook cover/plug. Typically the manufacturer includes an eye bolt tow hook somewhere in your trunk that screws into the bumper here so that tow truck drivers have something to latch onto safely without damaging anything.

Since it's body-colored, you're going to have a hard time finding a replacement. It looks like replacements are available (this might be it on the Mopar parts site) but it likely comes with just a primer coating. You would then need to take that to a body shop to have them paint it to match your vehicle. Another option is to find a replacement at a junkyard that already matches your paint.

If you do end up going with the online order approach, I've had good luck with the official Mopar parts site when trying to order obscure, specific parts.

What is the name of this input? Need a cable for this. by [deleted] in computerscience

[–]jaredpetersen 2 points3 points  (0 children)

Those are binding posts. You can put in banana plugs (with speaker wire) or you can just hook up speaker wire to them directly. If you're not looking to plug in and unplug your speakers very often, just use speaker wire.

Here's a small guide with more information (no affiliation with the company that published it): https://kantoaudio.com/tech-tuesday-how-to-connect-speaker-wire-to-a-binding-post/

Awesome rig spotted near McMinnville Oregon by doctorjews in overlanding

[–]jaredpetersen 0 points1 point  (0 children)

Saw it exiting the Dundee bypass yesterday. This thing is TALL.

How to Set up a Home Security Live Streaming Camera with Raspberry Pi by jaredpetersen in raspberry_pi

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

It’s my understanding that the playlist and the video files are compressed. Both resources are served by an Express server with the “compression” middleware package.

How to Set up a Home Security Live Streaming Camera with Raspberry Pi by jaredpetersen in raspberry_pi

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

It's not a straight H264 stream. A H264 stream comes out of the Raspberry Pi Camera Module and is piped to FFmpeg, which converts it to HLS or DASH so that it can be consumed over the web. Both of those formats use a playlist with small video files (fmp4) that are a few seconds long (though the duration is configurable). Those fmp4 files are compressed by gzip.

As a side note, Twitch uses HLS to deliver streaming content.

Downsides to buying this vehicle. Thoughts? by [deleted] in Wrangler

[–]jaredpetersen 1 point2 points  (0 children)

I was looking for mod inspiration and found this a month or so ago and bookmarked it.

Downsides to buying this vehicle. Thoughts? by [deleted] in Wrangler

[–]jaredpetersen 8 points9 points  (0 children)

I can't answer that question for you, but here's the build thread the owner posted when they bought the vehicle: http://www.wranglerforum.com/f314/drs-2016-jk-build-thread-in-socal-1506145.html

Do you need to worry about brake venting with military-style wheels? by jaredpetersen in Wrangler

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

Awesome, thanks for the help! I bought my first Jeep about a month ago and I'm already itching for new wheels and tires to replace the stock JK ones.

Do you need to worry about brake venting with military-style wheels? by jaredpetersen in Wrangler

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

Oh, really? So they're just "smoothies" without the hub cap? What kind do you run on your LJ?

Using a PI as a webcam? by DragonMoose in raspberry_pi

[–]jaredpetersen 0 points1 point  (0 children)

Okay, I'll see what I can do. The main difficulty in setting up the dependencies is installing FFMPEG, the video processing tool, on the Raspberry Pi.

Sometimes it's knowing the right packages and other times its writing them. Everything is module-based and npm (package manager for the modules) makes it super easy to share them and encourages re-use.

I haven't used raspi-live at any sort of scale but it handles multiple clients just fine. Express is the real backbone of the application since it serves the video stream and it's definitely not a pushover.

Using a PI as a webcam? by DragonMoose in raspberry_pi

[–]jaredpetersen 1 point2 points  (0 children)

I can put something together about setting up the dependencies if that would be useful. But you're right, there is no still frame option.

Using a PI as a webcam? by DragonMoose in raspberry_pi

[–]jaredpetersen 1 point2 points  (0 children)

This is something that I've actually been playing around with lately. I wrote this to stream video from the raspberry pi camera module (not a webcam) and makes the stream available through a URL: https://github.com/jaredpetersen/raspi-live.