mongodb, replicates and error: { “$err” : “not master and slaveOk=false”, “code” : 13435 }

You have to set “secondary okay” mode to let the mongo shell know that you’re allowing reads from a secondary. This is to protect you and your applications from performing eventually consistent reads by accident. You can do this in the shell with: rs.secondaryOk() After that you can query normally from secondaries. A note about … Read more

How to use multiple AWS accounts from the command line?

You can work with two accounts by creating two profiles on the aws command line. It will prompt you for your AWS Access Key ID, AWS Secret Access Key and desired region, so have them ready. Examples: $ aws configure –profile account1 $ aws configure –profile account2 You can then switch between the accounts by … Read more

Do on-demand Mac OS X cloud services exist, comparable to Amazon’s EC2 on-demand instances? [closed]

List last updated on December 1, 2020: As of November 30, 2020, AWS now has EC2 Mac instances: https://aws.amazon.com/ec2/instance-types/mac/ We previously used and had good experiences with: https://MacStadium.com/ Here are some other sites that I am aware of: https://flow.swiss/ https://hostmyapple.com/ (We used them a long time ago, before MacStadium) https://macincloud.com/ https://macminivault.com/ https://macweb.com/ https://virtualmacosx.com/ https://xcloud.me/ https://zeromac.com/ … Read more

WARNING: UNPROTECTED PRIVATE KEY FILE! when trying to SSH into Amazon EC2 Instance

I’ve chmoded my keypair to 600 in order to get into my personal instance last night, And this is the way it is supposed to be. From the EC2 documentation we have “If you’re using OpenSSH (or any reasonably paranoid SSH client) then you’ll probably need to set the permissions of this file so that … Read more

What data is stored in Ephemeral Storage of Amazon EC2 instance?

Basically, root volume (your entire virtual system disk) is ephemeral, but only if you choose to create AMI backed by Amazon EC2 instance store. If you choose to create AMI backed by EBS then your root volume is backed by EBS and everything you have on your root volume will be saved between reboots. If … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)