timeout.zip

Default Timeout for Amazon Bedrock invoke_model

732

The concept of "default timeout" for Amazon Bedrock invoke_model primarily refers to the client-side timeout of the AWS SDKs (like Boto3) or the AWS CLI,rather than a configurable service-side timeout on Bedrock itself.Bedrock will process your request unt...

Setup Apache+PHP+MySQL on Centos 6.7

605

If you installed Centos in minial installation mode, you should install Apache + PHP + MySQL manually.The followings are the procedure to install Apache + PHP + MySQL:Making apache and mysql to start automatically

How to optimize MySQL automatically in CentOS Linux

1,006

I am using CentOS Linux for service purpose. Main reason to use CentOS is cheaper hosting for private purpose. Actually MySQL requires periodical optimization process in my experiences, and I use / etc / cron.hourly usually for those kind of bath processi...

Integrating VectorDB stored in S3 with Amazon Bedrock

Integrating VectorDB stored in S3 with Amazon Bedrock

421

One of the rising area regarding smart search is to use Vector Database stored in S3 with Amazon Bedrock so you can use it for retrieval-augmented generation (RAG) or semantic search.Amazon Bedrock is a fully managed service that allows developers to acces...

Understanding Amazon Bedrock Agent for AI-based ChatBot

Understanding Amazon Bedrock Agent for AI-based ChatBot

640

What is Amazon Bedrock?Amazon Bedrock is a fully managed service that makes it easy for customers to build and scale generative AI applications using a variety of foundation models (FMs).Its functional role is to provide access to these powerful,pre-traine...

Generate Let’s Encrypt Wildcard SSL Certificate

619

STEP 1.Install Let’s Encrypt Certbot Tool.Before you can create free wildcard certificates,you need certbot installed.I’m using an CentOS Server here.To install it,run the following commands: .STEP 2.Generate Let’s Encrypt Wildcard SSL Certificate.After...

Recommended Vector DB Structure for Amazon Bedrock Integration

388

A Vector DB is a database that stores data as high-dimensional vectors,enabling efficient similarity searches based on vector embeddings generated by machine learning models.JSON-based Vector DBs offer the benefit of storing both vector embeddings and asso...

Configuring IP Address on Centos 6.7

783

On Centos 6.7,you can check IP address configuration by ifconfig command as below: .The below is the example of files on " / etc / sysconfig / network-scripts". Among above,ifcfg-eth0 and ifcfg-eth1 is wired network,and below is the reference example: .If ...

mcrypt missing when using phpMyAdmin on Centos 6.7

545

“mcrypt” is an interface to the mcrypt library, which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, ...

Set timezone and time on Centos 6.7

539

When using OAuth 1.0a, it requires timestamp for authentication. The followings are the example of shell commands which can set time information. Setup timezoneTo set the timezone of your system clock do the following:# rm -rf / etc / localtime# ln -...

How can I increase MySQL max connections?

457

edit the file / etc / my.cnfThe file should look like this:Increase 100,000 to the number you desire.After the setting is applied, you should restart your database.

SQL to Select a random row from a database table

533

There are lots of ways to select a random record or row from a database table.Here are some example SQL statements that don't require additional application logic,but each database server requires different SQL syntax.Select a random row with MySQL:Select ...

How to make random number ?

515

Generate a random number using mt_rand.From the php documentation- "If called without the optional min,max arguments mt_rand() returns a pseudo-random value between 0 and RAND_MAX.If you want a random number between 5 and 15 (inclusive),for example,use mt_...

How to force cookies, disable php sessid in URL ?

552

This commands disables php from rewriting URLs to add a phpsessid, and forces the use of cookie sessions instead. Using cookies is largely thought of as the preferred way to use sessions - both more secure and better for SEO. This can be accomplished by se...

The three simplest regular expressions you will use in PHP

580

The three most basic searches using regular expressions are searching for the strings start, the strings end, or for characters it contains. We can do these using the following symbols:^ indicates the string starts with the specified characters, so "^strcp...

Number Format

481

In this article we'll make number format like 0001, 0002, 0003 in stead of 1, 2 ,3. It's very easy to do this for your counter, category or product ID. etc.

A Function Returns Large Random Numbers

425

This basically randomly pick a number between the min and max values. This is made because the rand() and mt_rand() function can not accept numbers larger than 2^31 or 2^63,depend on your processor and complier.

Function AccountCryptPassword($password,$salt)

724

Encryption and password account accessFunction AccountCryptPassword($password,$salt) {  if($salt=="")  {   srand(time());   $random=rand();   $itoa64=". / 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; ...

Cardinal Endings

490

This php based script will find numbers and give them a cardinal ending.This can be useful for displaying rankings or results of a competition.The script is easy to install and use .Explanation::addOrdinalSuffix($number): This function adds the appropriate...