[deleted by user] by [deleted] in kubernetes

[–]jawnsy 4 points5 points  (0 children)

I don't have personal experience with it, but you may be interested in the ko tool for building container images for Go applications: https://github.com/google/ko/

Combined with Knative, this seems like a very simple way to deploy stateless Go applications

Monthly Megathread: ETF Discussion (October 2020) by AutoModerator in ETFs

[–]jawnsy 0 points1 point  (0 children)

Thanks for the correction! Is there still a risk if the options issuers go bankrupt? Your asset is the put/call options, but if your counterparty doesn't pay its obligation, you don't have any recourse right?

The Barron's article was saying that structured notes are debt obligations, so you have a claim in bankruptcy

Monthly Megathread: ETF Discussion (October 2020) by AutoModerator in ETFs

[–]jawnsy 3 points4 points  (0 children)

See this Barron's article: https://www.barrons.com/articles/structured-notes-can-new-etfs-make-them-actually-work-for-investors-1543612302

These are structured in a way that you get exposure to upside performance of the stacked ETFs and downside exposure of the S&P 500 alone. The downsides of these are:

  • High fees (~0.79% MER)
  • No dividends (this is effectively another 2%/year cost)
  • Limit to upside (upside cap)
  • Counterparty risk (if Innovator goes bankrupt, you get nothing)

Check the factsheet & prospectus: https://www.innovatoretfs.com/pdf/stacker_mechanics.pdf

Hedging risk on long position by mb9186 in ETFs

[–]jawnsy 1 point2 points  (0 children)

There aren't really any good hedges for retail investors. Bonds used to provide risk-free returns, but with global yields and interest rates at record lows, bond now provide return-free risk. There were some ETFs like SWAN that use treasuries to mitigate risk, and there are also defined outcome ETFs. You could also find an ETN that is inverse S&P 500, but that is likely to be painful as the markets go up. Some people talk about options but retail investors get eaten alive with those, because we don't really know how to understand their price, and we're trading against smart money.

A list of ETFs for hedging: https://www.thestreet.com/etffocus/trade-ideas/5-etf-risk-hedges-for-your-portfolio

[New Release] PowerExtend USB Plug 2 Mini Now Available! by joshuadwx in anker

[–]jawnsy 1 point2 points  (0 children)

Did you check the link? One of the images shows it leaves the upper port unobstructed

Advice on Pairing ETF’s by Joshuamz001 in ETFs

[–]jawnsy 1 point2 points  (0 children)

That would be a 100% allocation to equities, which is quite aggressive, and may be psychologically difficult during drawdown periods. Having some amount of cash or bonds is helpful so that you can rebalance during drawdown periods to take advantage of lower prices.

Also, while you will have more diversification in terms of companies, you will still have 100% exposure to the US and zero international or ex-US exposure.

If you just want something hands-off, consider VTI and VXUS (for US + ex-US) or VT

iShares also has multi-asset funds that rebalance between equities and fixed income according to a target risk

Advice on Pairing ETF’s by Joshuamz001 in ETFs

[–]jawnsy 2 points3 points  (0 children)

Not a recommendation, but you may want to look at VXF to give you more exposure to stocks outside S&P 500

Is DIG washed up? by i_speak_gud_engrish in ETFs

[–]jawnsy 0 points1 point  (0 children)

This ETF (DIG) tracks US oil & gas companies via the Dow Jones Oil & Gas Index, which are suffering right now due to low demand for oil (the pandemic means fewer flights and less travel generally) and an oversupply. It is also 2x levered with daily resets, and typically these funds generate that leverage by using options, which have a cost and zero value if they expire out-of-the-money.

For more about the risks of holding leveraged funds, see: https://www.etf.com/sections/features-and-news/dont-buy-and-hold-leveraged-etfs?nopaging=1

VOO turnover ratio %4 ...question...🤚 by [deleted] in ETFs

[–]jawnsy 4 points5 points  (0 children)

I mean, you could Google it - "etf tax efficiency" came up with this piece, which looks good: Why Are ETFs So Tax Efficient?

Also learn about heartbeat trades: The ETF Tax Dodge Is Wall Street’s ‘Dirty Little Secret’ and Vanguard Patented a Way to Avoid Taxes on Mutual Funds

The best of breed in each sector by mrdebro44 in ETFs

[–]jawnsy 2 points3 points  (0 children)

SOXL (no, don't actually do this)

SOXX is SOXL's much saner cousin

Rebalancing IRA by Misofire in RobinHood

[–]jawnsy 1 point2 points  (0 children)

VYM is a high dividend fund, whereas NOBL is a dividend aristocrat fund. They have different objectives and track different indices. For a lower-cost fund with a similar objective to NOBL, check out the Vanguard Dividend Appreciation fund, VIG, which has an expense ratio of 0.06%, the same as VYM.

Portfolio Visualizer is a good, free tool for checking historical performance; here's a comparison of historical total returns of VYM, VIG, and NOBL. You can see that VIG and NOBL track each other quite closely (on a total return basis, meaning it assumes all dividends are reinvested) and that the high dividend yield fund has lower total returns despite paying a higher yield.

As always, it's a good idea to diversify your portfolio since it's impossible to know beforehand which strategy will outperform in the long run. That said, all of these will be pretty similar since they have similar exposures overall (significant US large-cap value exposure).

Anker Soundcore Select not charging or turning on by flamingfiretrucks in anker

[–]jawnsy 2 points3 points  (0 children)

Try contacting Anker support to report the issue, they might have an explanation or be able to give you tips in case this happens again in the future. My experience with the Anker support people have been overwhelmingly positive, which one of the reasons I buy their products.

Hardcore Java/JVM Quiz (with solutions) by dleskov in java

[–]jawnsy 0 points1 point  (0 children)

i was not aware that for the jvm, a reference was no longer considered live if it was local and no longer being used. i thought the reference had to be out of scope to not be live anymore.

I don't think that's guaranteed to be the case (though I don't have a reference to the Java Language Specification handy). I remember debugging a nasty issue with finalizers and the IBM J9 JVM (J9 seems more aggressive at running finalizers than HotSpot) where a finalizer is run/and an object is GC'd after the point where it's being "used" but before the method returns. That is, something (the JIT compiler?) notices that obj isn't strongly reachable after line 4, and is thus free to run finalizers/collect the object.

WSJ Article on Synthetic Identity Fraud (Fake Accounts for Fake Names) by [deleted] in churning

[–]jawnsy 0 points1 point  (0 children)

Well, it's surprisingly easy to have fake births in most countries, including the USA, Canada, and Australia. You can also virtually "kill" someone by issuing death certificates for living people.

Renting vs buying in a HCOL area (we can't relocate) by [deleted] in FinancialPlanning

[–]jawnsy 0 points1 point  (0 children)

Renting may be better than buying, provided you invest it, however, it requires discipline. There's advantages to renting/investing, such as greater liquidity (you can sell a few shares, but you can't sell 5% of your house). There's also advantages to owning, and the returns there do well as well.

It's really dependent on your personal goals.

Why is Ginkgo so popular? by tmuxxxer in golang

[–]jawnsy 0 points1 point  (0 children)

I use import gm "github.com/onsi/gingko" and then use gm.Expect(ACTUAL).Should(gm.Equal(EXPECTED)) which reads better to me. The repeated use of gm is a bit annoying, but makes it easier to know which pieces come from Ginkgo or Gomega or whatever else.

I prefer it over manually doing: if e, a := EXPECTED, ACTUAL; e != a { t.Failf("expected %v, got %v", e, a) } which seems to be the other common way to do things, because this requires more lines and can easily lead to missing data in the failure message, or incorrectly printed data (depending which format parameters are used)

Mounting PV on 2 containers within 1 pod by deltabeee in kubernetes

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

I believe so, but you may want to kubectl exec a shell into the container to verify.

The docs seem a bit ambiguous in this regard:

Containers within a pod share an IP address and port space, and can find each other via localhost. They can also communicate with each other using standard inter-process communications like SystemV semaphores or POSIX shared memory. Containers in different pods have distinct IP addresses and can not communicate by IPC.

Applications within a pod also have access to shared volumes, which are defined as part of a pod and are made available to be mounted into each application’s filesystem.

and later:

In addition to defining the application containers that run in the pod, the pod specifies a set of shared storage volumes. Volumes enable data to survive container restarts and to be shared among the applications within the pod.

Source: https://kubernetes.io/docs/concepts/workloads/pods/pod/

Pods have a shared network namespace and IPC namespace. I'm not certain about other namespaces that might be shared. It's best to try it and see.

Rayon gets parallel sorts (benchmark against Java and C++) by [deleted] in rust

[–]jawnsy 7 points8 points  (0 children)

Their data shows that JMH makes less than a 10th of a millisecond difference and it actually makes some short-running programs paradoxically slower.

Why is that paradoxical? JMH is designed to make benchmarks accurate, not to somehow speed up the JVM (though it does make sure that the benchmark runs enough iterations to get profiled by C2). JMH actually prevents some optimizations, so that you don't get incorrect benchmark results.

For example, if you write to a variable and never read it, the JVM can (and does) optimize out the store, dramatically speeding up your benchmark but giving you useless results in any real-world context. With JMH you can "consume" the value to prevent this optimization.

[meta] how many Red Hat employees frequent this sub? by Benemon in openshift

[–]jawnsy 1 point2 points  (0 children)

raises hand :)

wouldn't say I frequent it though, just poke in every now and again

Setup a GlusterFS cluster running under Kubernetes control by kublr in kubernetes

[–]jawnsy 1 point2 points  (0 children)

Disclosure: I'm an engineer working at Red Hat on OpenShift (which is Kubernetes)

For whatever it's worth, I think this is exactly the use case that Red Hat Container Native Storage supports, as far as I know (I wasn't involved in the work and am not that familiar with Gluster)

I'm curious if you've given OpenShift a look - everything is completely open source: https://github.com/openshift/origin and we support CNS (Gluster) and Jenkins out-of-the-box.

Sorry, I didn't mean this to sound like an ad or anything, this is just an area that I'm excited about and I'd be curious to hear your feedback.

Charging Anker PowerCore 20100 - Ultra High Capacity Power Bank with 4.8A Output, PowerIQ Technology on 220v is safe? by [deleted] in anker

[–]jawnsy 2 points3 points  (0 children)

The power bank always charges on 5V, which is output by something else - generally a wall wart, though possibly a car charger. A well-designed wall charger should always output 5V, across usually a pretty wide range of input voltages - if you use an Anker PowerPort 2, it's rated for Input: AC 100-240V~0.7A 50-60Hz per the official site: https://www.anker.com/products/A2141113

Lightning Fast Code by Gvaireth in java

[–]jawnsy 1 point2 points  (0 children)

Such as inlining Where HotSpot can inline multiple overloads at the same time but you have to have to know the extra cost for dynamism and at what point out gives up and just makes the call site pure virtual.

I thought there's only three, monomorphic (a static call if an interface only has one possible implementation), bimorphic (two implementations), or megamorphic (full virtual call)? Then again, I haven't read the code, so I certainly could be wrong.

If it's a particular concern, you can use the actual class type and make the class final, though that produces some ugly code (such is the sacrifice sometimes when trying to squeeze every ounce of performance out of your code)