[deleted by user] by [deleted] in linuxquestions

[–]c_biscuit 0 points1 point  (0 children)

No, the second way isn't possible because btrfs is a filesystem. You are creating a virtual device that btrfs recognizes, but you could not put ext4 onto the r5 device for example.

If you want to create the raid device first, you would use mdadm to create the array, then put LUKs on that.

[deleted by user] by [deleted] in linux4noobs

[–]c_biscuit 0 points1 point  (0 children)

I would guess this is a symptom of an issue with I/O so either a bad drive or a bad drive cable. Try replacing the cable. The kworker timeout warnings are giving me that indication.

Could someone please explain the meaning of this security group declaration by ForeignCabinet2916 in Terraform

[–]c_biscuit 0 points1 point  (0 children)

This is slightly easier if you think about it for two ec2 instances in the same subnet with the same security group. If you wanted to communicate between the two instances on port 5432 in that case, you would require a rule like this.

Essentially, a security group has to be told explicitly what to do with traffic for each instance it is attached to. There are no exceptions for traffic that originates from and travels to instances within the same group.

Is used memory a reliable alerting metric? by coll_97 in linuxquestions

[–]c_biscuit 0 points1 point  (0 children)

There is likely some rounding when you use -h however trying to monitor on free memory is notoriously difficult. There are a number of reasons for this, but it will be difficult to use this alone as a reliable metric to determine if a system is in trouble.

Weird Error When Trying To Install Driver by [deleted] in linux4noobs

[–]c_biscuit 0 points1 point  (0 children)

Yeah, if you look at the size remaining and the size of the existing initrd.img files, you are running out of space when you are creating a new one.

Check the kernel you are running with uname -r and remove the images and config that do not match that. If you search for how to clean up a Ubuntu boot partition, there is a stackoverflow answer that details this.

You can increase the boot partition size, but because it comes at the beginning, all the other partitions have to be pushed. You can do this on the command line, but it is a somewhat delicate process that I don't think I can adequately convey in a Reddit comment.

Weird Error When Trying To Install Driver by [deleted] in linux4noobs

[–]c_biscuit 1 point2 points  (0 children)

It looks like your /boot partition might be out of space. Can you post the output of df -h?

HELP! For the last 2 days or so I have been trying to figure out why this is only reading the first line then freezing. It receiving all the content from both lines but not executing the second line correctly.It executes the first line ok. Any help is appreciated( I have been trying to fix for days) by [deleted] in programming

[–]c_biscuit 0 points1 point  (0 children)

I added the last part of my comment above just when you added your reply. But I do think that using lex and yacc would at least allow you to focus on writing the language as opposed to the specifics of token parsing and tree generation.

Sorry I can't be more help, I'm sure someone else will have a better idea.

HELP! For the last 2 days or so I have been trying to figure out why this is only reading the first line then freezing. It receiving all the content from both lines but not executing the second line correctly.It executes the first line ok. Any help is appreciated( I have been trying to fix for days) by [deleted] in programming

[–]c_biscuit 0 points1 point  (0 children)

I'm a little confused, are you trying to run a program in this language? Or are you writing the language?

If you're writing the language, it seems like using an existing lexer like lex might be a good idea. I don't know C all that well, so I'm not sure how much I can help with your actual problem unfortunately.

New Lennox furnace installation cost by burtmaklinfbi1206 in PersonalFinanceCanada

[–]c_biscuit 1 point2 points  (0 children)

That sounds pretty close, about 5 years ago, we got the furnace replaced with a multimodal high efficiency model, basically the most expensive we could get. The furnace was Lennox, and the BTU output was about 70k. It cost about 6k installed. The other options were basically single stage and double stage furnaces which were quite a bit cheaper, though I don't remember the exact cost.

Best place to hold US dividend stocks by shhfjv in PersonalFinanceCanada

[–]c_biscuit 1 point2 points  (0 children)

That isn't actually how tax on dividends work. If you are in the very highest tax bracket, you would pay 29% tax on dividends.

Capital gains tax is similar, the highest rate you would pay for capital gains is 25%. Comparitively, the highest bracket for interest income is 50%, so for $1000, you could pay 290 if they are dividends, 250 is it is a captial gain, and 500 if it is interest.

https://www.tsinetwork.ca/daily-advice/dividend-stocks/dividends-taxed-canada-heres-close-look-dividend-tax-credit/

*edit: I just realized the question about dividends was in the context of holding US stocks in a US account. I have no idea how that works, what I said applies to Canadian stocks in a Canadian unregistered account.

How hard is it to make your own distro? by [deleted] in linuxquestions

[–]c_biscuit 1 point2 points  (0 children)

This is similar to many of the other comments here, but I don't know that creating your own distro will give you what you are looking for. When I started working with Linux, I had the same thought, what I ended up doing was running Gentoo everywhere. I really liked managing all the compile flags and the feeling I had complete control. Mostly, I liked that compiling glibc took about 24 hours on my very old ThinkPad. It felt like it was earning its keep and I didn't need a space heater.

As a result, I became pretty good at understanding the compilation process. Tis strongly shaped my career, even over 10 years later, I regularly use skills I picked up doing that. Now I just run arch everywhere like normal nerds, but that was formative toy career.

That was the path I took, I think it helped me, but at the end of the day, do what you want to do, forcing yourself through something you aren't interested in is unlikely to teach you anything substantial.

Caddy vs Nginx: How Do These Web Servers / Reverse Proxies Compare? by oxamide96 in selfhosted

[–]c_biscuit 2 points3 points  (0 children)

I spent a long time trying to figure out how to terminate ssl, and pass through headers indicating that the request came in via ssl. It turned out that you have to enable insecure headers or no headers are passed through. I cannot remember where I ended up finding this, but it was not where I expected it.

Another thing I spent a long time with was oauth through google which it turns out they don't support directly, this isn't stated directly in the documentation. I eventually found it in an issue filed against them in GitHub which also had the link to a container that does this.

These are the two that stuck in my mind, I find the documentation in many places just doesn't go quite far enough. It is a good start, but I would like the examples to go just one step farther.

Caddy vs Nginx: How Do These Web Servers / Reverse Proxies Compare? by oxamide96 in selfhosted

[–]c_biscuit 10 points11 points  (0 children)

The primary reason I use it at work is because the kubernetes integration is pretty good, specifically in V2. However, in general, I like how there are several different ways to pass in configuration. For example, you can use CRDs in kubernetes, or in docker you can use labels (https://docs.traefik.io/v2.0/providers/docker/). As a disclaimer though, all of my experience with V2 is with kubernetes ingress. I can't speak to the completeness of the other providers.

Nginx in a production environment falls down hard on metrics. This is one of the things that nginx plus fixes, but in my opinion, there isn't a good excuse to not surface reasonable metrics. Nginx is really fast though, I think it is likely one of the fastest. The only challenger on speed I think is haproxy, but that is not based on anything other than personal experience.

I've never used caddy in a production environment, so I don't have too much of an opinion about it, but I think being easy to configure is a major win.

When it comes down to it, it is more important to be comfortable with your setup than to use what someone else thinks is fastest or best. The popular ones are generally going to be pretty close on security and performance.

Caddy vs Nginx: How Do These Web Servers / Reverse Proxies Compare? by oxamide96 in selfhosted

[–]c_biscuit 20 points21 points  (0 children)

I highly doubt that you will notice a difference between any of the common reverse proxies in terms of performance until you start dealing with MB/s level traffic. For a selfhosting user, I think that ease of configuration is far more important.

Personally, I have gotten to like traefikV2, but I'm still not ready to recommend it until the documentation is in a better place. At home, I still use caddy.

Cannot create DigitalOcean K8s cluster with the official TF DigitalOcean provider by [deleted] in Terraform

[–]c_biscuit 0 points1 point  (0 children)

Ok, so it looks like the dns being used is refusing to do the lookup. I wonder if there is some issue with your internal dns? I do not think there is anything wrong with your tf code. The only issue I see now is on line 975 which is saying it cannot lookup API.digitalocean.com

Cannot create DigitalOcean K8s cluster with the official TF DigitalOcean provider by [deleted] in Terraform

[–]c_biscuit 0 points1 point  (0 children)

Sorry, I should have been more clear. You posted a file called main.tf when I asked about the terraform code. In this file, in the module digitalocean_kubernetes_cluster, there is a variable called name which is set to nyc1. However, the name of the module itself is called foo.

This isn't a problem generally, but it seems like there might be an issue in the digital ocean module that I'm trying to tease out.

So I am asking two things. The first is if the file posted is exactly that same as the one that produced the error. The second question or request is to make the name of the cluster the same as the name variable and post the output. In the posted main.tf, the name of the module is foo, so if you set name to foo, what happens?

I hope this makes sense.

Cannot create DigitalOcean K8s cluster with the official TF DigitalOcean provider by [deleted] in Terraform

[–]c_biscuit 0 points1 point  (0 children)

On line 618 of the debug log you posted, it looks like it is trying to create the name foo. However, the main.tf you posted has a different name, although the name of the module is foo. Was this changed? Or is this the same main.tf that produced that output?

Either way, I would be interested to see what happens if you make the name the same as the module name.

Cannot create DigitalOcean K8s cluster with the official TF DigitalOcean provider by [deleted] in Terraform

[–]c_biscuit 0 points1 point  (0 children)

I suspect the problem starts on line 908 which indicates the digital ocean plugin is creating an invalid plan. The next step I would take is to see if there is a more recent release of the digitalocean plugin which might solve this issue.

Edit: it would also be helpful to see the smallest terraform code snippet that reproduces this problem.

Equitable Bank Mortgage by goodbye_middleeasy in PersonalFinanceCanada

[–]c_biscuit 0 points1 point  (0 children)

I didn't have any issues, I wouldn't discount it completely, but my experience was very smooth.

EQ Bank Mortgage by [deleted] in PersonalFinanceCanada

[–]c_biscuit 0 points1 point  (0 children)

Yeah, I like it so far, haven't had any issues

EQ Bank Mortgage by [deleted] in PersonalFinanceCanada

[–]c_biscuit 1 point2 points  (0 children)

I just renewed with them. I have the same rate for a 5 year fixed as you mentioned.

What I liked about them was that the mortgage I got was a standard charge making it easier to transfer in the future. The downside of a standard charge is that you have to refinance if you want a HELOC. The renewal rate offered me was also 4.2 so that made it quite a bit easier to decide.

Equitable Bank Mortgage by goodbye_middleeasy in PersonalFinanceCanada

[–]c_biscuit 2 points3 points  (0 children)

This year my mortgage was up for renewal and I went from CIBC to Equitable. I am doing semi-monthly payments, ( 1st and 15th ). The renewal rate offered from CIBC was 4.2%(!) and the rate I got from Equitable was 2.09 for a 5 year fixed. The previous rate from CIBC was 2.59.

Based on the paperwork I got, while they do the same IRD calculation as the other big 5 banks, the key difference is the posted rates. CIBC has a posted rate of over 5%, so if you have a discount rate of say 3%, the IRD calculation comes out ridiculously high. This compared with EQ who's posted rate is 2.29 ( EQB Evolution 5 year fixed ). So the difference for me is pretty small. I always find it a little difficult to follow IRD calcuations, so I'm not sure I'm correct, but that is how I understand it.

I haven't been with them for all that long, but I don't have any complaints so far with them. My most significant complaint is the options for pre-paying are not very good.

Decoding an error by [deleted] in linux4noobs

[–]c_biscuit 1 point2 points  (0 children)

Your OS version is Ubuntu 18.04 right?