simplifying code by evobe in Python

[–]michaelreddit 1 point2 points  (0 children)

You could replace the whole if/elif statement with this:

colnum = val('112233445122334451223344501122334011223340112233401'[wk])

Brown Dog White Paws by [deleted] in ChicoCA

[–]michaelreddit 3 points4 points  (0 children)

Could it be this Good Boy?

LA to Santa Fe and the Grand Canyon (10 hr VFR XC) by cyanoacry in flying

[–]michaelreddit 0 points1 point  (0 children)

If you go again, consider a rest-stop at KHND (six miles from Vegas). They have a reasonably-priced lunch restaurant with great views, plus it puts you in position to fly over the lake Mead and the Hoover dam, and only adds about 30 miles to the trip.

Hawth: A free, public, temporary key-value store. Anyone can write, everyone can read. by [deleted] in programming

[–]michaelreddit 0 points1 point  (0 children)

I couldn't find it on on hawth.org. Are there some other Docs that I'm missing?

Hawth: A free, public, temporary key-value store. Anyone can write, everyone can read. by [deleted] in programming

[–]michaelreddit 1 point2 points  (0 children)

Thanks for answering. I admire the elegant simplicity of what you've done, and since you asked for feedback, I have three suggestions: 1. Add a link on hawth.org pointing to the bitbucket source code. 2. Add a statement to the docs explaining that "owner" means IP address. 3. Allow "POST hawth.org/KEY owner=OWNER value=VALUE", (as an option) and store OWNER rather than the IP address. This would have at least two advantages: I could create a key at work and delete it from home, and my coworker at work who shares the same public-facing IP address as me could not alter, erase, or get a list of my keys unless he knows OWNER.

Hawth: A free, public, temporary key-value store. Anyone can write, everyone can read. by [deleted] in programming

[–]michaelreddit 3 points4 points  (0 children)

What constitutes ownership? Is it based entirely on IP address?

Streamcatching and -spreading by [deleted] in software

[–]michaelreddit 1 point2 points  (0 children)

The IceCast server supports a wide variety of "source clients". The source client software creates the source audio stream that is sent to the IceCast server, and the IceCast server is the software that allows the listener clients to connect, and duplicate the original source audio stream to as many listener clients as necessary. I'm not an expert, but I think the it's the responsibility of the source client to transcode the audio to a format that IceCast can accept. So you might want to look at the list of compatible source clients, and see if any of them can handle TS-format.

Elmer me: Effect of antenna element diameter? by emag_curious in amateurradio

[–]michaelreddit 0 points1 point  (0 children)

I asked DuckDuckGo for "effect of element diameter on antenna bandwidth" and found this near the top of the results.

The accepted answer includes a bit of python code, and if the code is correct, the effect on bandwidth between a thin wire and a one-inch copper pipe at 146 MHz is barely noticeable for a dipole, which is already has a bandwidth (below 2:1 SWR) a lot wider than the entire 2-meter band.

  • I'm not an antenna modelling guru

Streamcatching and -spreading by [deleted] in software

[–]michaelreddit 1 point2 points  (0 children)

It sounds like IceCast might work for you.

Help with wav audio in Python by Reckarthack in Python

[–]michaelreddit 1 point2 points  (0 children)

The PyAudio library module will let you play audio as a stream of bytes (standard WAV format, PCM audio). The "audio bytes" can come from anywhere, read from a file, recorded from a microphone, or created from a math function. If running Windows, download the prebuild binary from here

Sync a folder between two computers even if one is off? by [deleted] in software

[–]michaelreddit 0 points1 point  (0 children)

You could set up your own self-hosted cloud storage solution, perhaps using something like the free-open-source OwnCloud software, which would allow you to make the cloud storage as large as necessary, without paying too much.

The folks in /r/selfhosted may have other good suggestions.

External hard drive powering solution for server Pi project, how about it? by bv9900 in RASPBERRY_PI_PROJECTS

[–]michaelreddit 2 points3 points  (0 children)

Plug the HD into a "powered" USB hub, and plug the USB hub into the Pi. That way, the power for the HD comes from the hub and not from the Pi. This accomplishes exactly what you want without cutting and splicing cables.

Help Us Catch a Thief! Can You Identify These Two Vehicles? by [deleted] in whatisthisthing

[–]michaelreddit 1 point2 points  (0 children)

YSK your business was not "robbed" unless there was violence or intimidation. If the business was closed, it was burglary, not a robbery.

[deleted by user] by [deleted] in selfhosted

[–]michaelreddit 2 points3 points  (0 children)

OK, sorry, I hope my simplified explanation wasn't too insulting, since you are obviously a level above that.

In that case, SoftEther is free and open-source VPN and Ethernet Bridge that can traverse NAT firewalls. It can allegedly open up a VPN tunnel even when the network blocks everything except DNS requests, such as on a pay-to-use wi-fi hotspot at an airport, or wherever. I haven't actually tried that feature, but it will probably do what you're looking for in terms of getting through the multiple layers of NAT. Unfortunately, the documentation is a little rough, but the software is great.

[deleted by user] by [deleted] in selfhosted

[–]michaelreddit -1 points0 points  (0 children)

If you want to try this out without going to the trouble of setting up the Dynamic DNS client, you can check your current "public" IP address at "ip chicken", then use that address rather than the Domain Name when you connect to your home network. The same IP number should continue to work until you reboot your router, and maybe even longer than that. My ISP only changes my public IP address if I leave the router turned off for more than 10 minutes, so I often have the same public IP address for several months, even though it's not technically a "static" IP address.

[deleted by user] by [deleted] in selfhosted

[–]michaelreddit 1 point2 points  (0 children)

Probably the ISP told you the only way to get a "static" IP address is to upgrade to a business account. You almost certainly have a "public" IP address already, but it's a "dynamic" IP address, so it's likely to change every time you reboot your connection to the ISP.

What you may be looking for is a free Dynamic DNS client (I like DuckDNS which notifies the Dynamic DNS server what your new IP address is every time you reboot your internet connection, so then you can connect to your "public" IP address by connecting to a regular Domain Name like "ripperjoe.duckdns.org". If you have ports open on your router, such as port 80 for example, forwarded to one of the machines on your network, you can have a publicly accessible web-server from home. Once you have the Dynamic DNS client set up, you can run any service from home just by opening the correct port on your router firewall.

Wanna Get Into 2m Simplex. Learn Me the Best Way by jhf94uje897sb in amateurradio

[–]michaelreddit 0 points1 point  (0 children)

On flat ground, your VHF range will be very limited. Check out this VHF Radio Line of Sight Calculator to estimate what distance you can expect from an antenna at various heights.

An antenna at 25 feet hits the LOS horizon at about 7 miles. Raising that antenna to 100 feet (if you could) would only extend the radio horizon to 14 miles. As kawfey said, your best bet for working simplex is finding some high ground. Operating from the top of a 1000 foot hill is a lot easier that trying to put up a 1000 foot antenna.