HTML: Style Tag

The <style> tag is used to declare style sheets within the head of  HTML document. Inside the <style> element you specify how HTML elements should render in a browser. Each HTML document can contain multiple <style> tags.

AttributeValueDescription
mediamedia_querySpecifies what media/device the media resource is optimized for
scopedscopedSpecifies that the styles only apply to this element’s parent element and that element’s child elements
typetext/cssSpecifies the media type of the <style> tag
<html>
	<head>
		<title>html_style</title>
		
		</style>
	</head>
	<body style="background-color: rgb(180, 221, 67);">
	<h1 style="text-align: center;">Style tag</h1>
	<p style="margin-bottom: auto;">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam, nobis.</p>
  <hr>
  <br>
	<p style="color: blue;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, eligendi?</p>
	</body>
</html>
Tagged : / / / / / / /

Artifactory Error – Error 1071: Specified key was too long; max key length is 3072 bytes

Error

[root@localhost log]# more metadata-service.log | grep -i error
2021-08-13T05:50:35.245Z [jfmd ] [WARN ] [1b5644480c9d339f] [migrator.go:201               ] [main                ] - This error occurred when upgrading the database : 'Error 1071: Specified key was too long; max key length is 3072 bytes'.  [database]
2021-08-13T05:50:35.247Z [jfmd ] [ERROR] [1b5644480c9d339f] [migrator.go:194               ] [main                ] - Migration v038_file_targets.sql failed ! Rollback to latest successful migration. Err: Error 1071: Specified key was too long; max key length is 3072 bytes. Panic : <nil> [database]
2021-08-13T05:50:35.248Z [jfmd ] [PANIC] [1b5644480c9d339f] [application.go:89             ] [main                ] - Could not execute database migrations Error 1071: Specified key was too long; max key length is 3072 bytes

Solution

--------------------- THIS WORKED----------------------------
$ mysql -h localhost -u root -p
CREATE DATABASE artdb CHARACTER SET utf8 COLLATE utf8_bin;
CREATE USER 'artifactory1'@'%' IDENTIFIED BY 'password';
GRANT ALL on artdb.* TO 'artifactory1'@'%';
FLUSH PRIVILEGES;
--------------------- THIS WORKED----------------------------

Some Troubleshooting Commands to Check this Error

SET GLOBAL default_storage_engine = 'InnoDB'
SET GLOBAL default_storage_engine = 'InnoDB';
USE <database>;
SHOW TABLE STATUS\G

ALTER TABLE md_database_migrations CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE md_database_migrations CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

ALTER DATABASE databasename CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE tablename CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

ALTER DATABASE artifactory CHARACTER SET utf8 COLLATE utf8_bin;
use artifactory;
ALTER TABLE md_database_migrations CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin;

Reference

  • https://confluence.atlassian.com/fisheye/migrating-to-mysql-960155589.html
  • https://www.jfrog.com/jira/si/jira.issueviews:issue-html/RTFACT-24896/RTFACT-24896.html

HTML: Link Tag

The <link> tag defines a link between a document and an external resource.

The <link> element is an empty element, it contains attributes only. This element goes only in the head section, but it can appear any number of times.

AttributeValueDescription
crossoriginanonymous
use-credentials
Specifies how the element handles cross-origin requests
hrefURLSpecifies the location of the linked document
hreflanglanguage_codeSpecifies the language of the text in the linked document
mediamedia_querySpecifies on what device the linked document will be displayed
relalternate
archives
author
bookmark
external
first
help
icon
last
license
next
nofollow
noreferrer
pingback
prefetch
prev
search
sidebar
stylesheet
tag
up

Required. Specifies the relationship between the current document and the linked document
sizesHeight X Width
any
Specifies the size of the linked resource. Only for rel=”icon”
typemedia_typeSpecifies the media type of the linked document

html code

<!DOCTYPE html>
<html>

<head>
  <title>
    link with css
  </title>
  <link rel="stylesheet" href="css/this is css.css">

</head>

<body class="design">
<h1> link tag </h1>
<p>
  Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eos quibusdam obcaecati fugit sunt accusantium placeat maxime enim suscipit voluptate nam.
</p>
</body>

</html>

css code

.design{
    background-color: aqua;
    border-radius: 20px;
    text-align: center;
    border-style:solid ;
}
    h1{
       color:yellow;
    }
p{
    color:beige;
}
Tagged : / / / / / / /

Artifcatory Command line Options of artifactory.sh

$ ./artifactory.sh -h
2021-08-13T05:06:51.966Z [shell] [INFO ] [] [systemYamlHelper.sh:521       ] [main] - Resolved .shared.database.type (mysql) from /opt/artifactory-pro-7.23.3/var/etc/system.yaml
2021-08-13T05:06:52.063Z [shell] [INFO ] [] [systemYamlHelper.sh:521       ] [main] - Resolved .shared.database.url (__sensitive_key_hidden___) from /opt/artifactory-pro-7.23.3/var/etc/system.yaml
2021-08-13T05:06:52.133Z [shell] [INFO ] [] [systemYamlHelper.sh:521       ] [main] - Resolved .shared.database.password (__sensitive_key_hidden___) from /opt/artifactory-pro-7.23.3/var/etc/system.yaml

././artifactory.sh - Script to manage artifactory services.

Usage: ././artifactory.sh

action: start|stop|restart|status|check|run|help

Note : If no action is passed, the services will be run in foreground.