- Published
- Author
- Ananth
Namecheap allows you to modify DNS record types without deleting exiting records. Example an A record can be changed to CNAME record on the fly without deleting existing A record. This helps in zero downtime deployments.
At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.
could not connect to server: Operation timed out
Is the server running on host "10.220.0.15" and accepting
TCP/IP connections on port 5432?10.220.0.15 . In order to see if it is connected or not we need to check the pg_hba.conf file.postgresql directory . In order to get the path we can do ps aux | grep postgres...
user 46455 0.0 0.0 409138608 1248 ?? Ss 13Sep23 0:00.82 postgres: checkpointer
user 46372 0.0 0.0 408998640 2192 ?? S 13Sep23 0:16.79 /opt/homebrew/opt/postgresql@13/bin/postgres -D /opt/homebrew/var/postgresql@13-D flag. So in my case it my path is /opt/homebrew/var/postgresql@13ls and we can find the file called pg_hba.conf . Then we need to run nano pg_hba.confCtrl + O then click Enter and Ctrl +Xhost YOUR_DB_NAME YOUR_USER_NAME 10.220.0.15/32 md5Gemfile.lock says BUNDLED WITH 2.2.4 , but while doing bundle -v or starting your rails server or rails console you get an error saying"You must use Bundler 2 or greater with this lockfile." . We can resolve that by running gem update --system .Tab.Group is the parent its wraps all this present inside it.Tab.list in tab list we have defined our tab and we have selected as active tab.Tab.Panels so tabs panels is the parent of all the Tab.Tab.Panel so tab panel is defined under the Tab.Panels Tab.list then we need to paced all 3 Tab.Panel in the same like we define tabs in Tab.List// apply active class
key="must_pass_unique_key_1"
>
Tab Name 1export const getTheResults = async (params) => {
const response = await axios.get(
/api/v1/example.json?${stringify(params)}
);
return response.data;
};param is an object mentioned below , and we are stringifying it before sending the request to backend.stringify from qs npm package.key1=value1&key2=value2&key_3%5B0%5D=value3&key_3%5B1%5D=value4 i.e key1=value1&key2=value2&key_3[0]=value3&key_3[1]=value4key1=value1&key2=value2&key_3[]=value3&key_3[]=value4arrayFormat: "brackets"eg: export const getTheResults = async (params) => {
const response = await axios.get(
/api/v1/example.json?${stringify(params, {arrayFormat: "brackets"})}
);
return response.data;
};Eg:
Request: /api/v1/calendar.json?date_from=&date_to=&hotel_id[]=1&hotel_id[]=2
def permit_params
params.permit(:date_from, :date_to, hotel_id: []) # hotel_id: [] is important
endShowing 42 to 44 of 82 results
Codemancers can bring your vision to life and help you achieve your goals