主頁 >  其他 > Elasticsearch:運用 Elasticsearch 查找類似檔案:more_like_this

Elasticsearch:運用 Elasticsearch 查找類似檔案:more_like_this

2021-07-29 06:54:15 其他

More Like This Query 查找與給定檔案集 “相似” 的檔案, 為此,More Like This 選擇這些輸入檔案的一組代表性術語,使用這些術語形成查詢,執行查詢并回傳結果, 用戶控制輸入檔案、應如何選擇術語以及如何形成查詢,

最簡單的用例包括請求與提供的文本片段相似的檔案, 在這里,我們要求所有在 “title” 和 “description” 欄位中包含類似于 “Once upon a time” 的文本的所有電影,將所選術語的數量限制為 12,

GET /_search
{
  "query": {
    "more_like_this" : {
      "fields" : ["title", "description"],
      "like" : "Once upon a time",
      "min_term_freq" : 1,
      "max_query_terms" : 12
    }
  }
}

一個更復雜的用例包括將文本與索引中已經存在的檔案混合, 在這種情況下,指定檔案的語法類似于 Multi GET API 中使用的語法,

GET /_search
{
  "query": {
    "more_like_this": {
      "fields": [ "title", "description" ],
      "like": [
        {
          "_index": "imdb",
          "_id": "1"
        },
        {
          "_index": "imdb",
          "_id": "2"
        },
        "and potentially some more text here as well"
      ],
      "min_term_freq": 1,
      "max_query_terms": 12
    }
  }
}

最后,用戶可以混合一些文本、一組選定的檔案,但也可以提供不一定出現在索引中的檔案, 為了提供索引中不存在的檔案,語法類似于人工檔案,

GET /_search
{
  "query": {
    "more_like_this": {
      "fields": [ "name.first", "name.last" ],
      "like": [
        {
          "_index": "marvel",
          "doc": {
            "name": {
              "first": "Ben",
              "last": "Grimm"
            },
            "_doc": "You got no idea what I'd... what I'd give to be invisible."
          }
        },
        {
          "_index": "marvel",
          "_id": "2"
        }
      ],
      "min_term_freq": 1,
      "max_query_terms": 12
    }
  }
}

動手實踐

在下面,我將使用一個簡單的例子來展示如何使用 more_like_this 查詢來查找相似的檔案,盡管這個查詢是一個非常有趣的功能,但是可能很多開發者不會選擇使用這種查詢,一方面是對這個查詢不是很理解,另一方面,開發者可能會選擇使用傳統的查詢,比如 match, term 及 range,希望通過這篇文章的介紹,你會在未來的作業中根據自己使用案例選擇使用 more_like_this 查詢,

準備資料

未來這個展示,我們將使用 movies 這個資料集,

請點擊上面的 Download 鏈接下載這個資料集,把這個資料集下載下來并保存于專案的 data 子目錄中,

然后,我們可以在地址 https://github.com/liu-xiao-guo/searchflix 下載整個原始碼,并把如下的檔案拷貝出來:

  • pipeline/movies.conf 檔案拷貝出來,放入到專案的根目錄中
  • elastic/elasticsearch/mappings/movies.mapping 檔案拷貝出來,放入到專案的根目錄中
  • dictionaries/countries_geo.csv 檔案拷貝出來,并放入到 dictionaries 子目錄下

經過這樣的操作過后,我們可以看到的檔案是這樣的:

$ pwd
/Users/liuxg/data/morelikethis
$ ls
data           dictionaries   movies.conf    movies.mapping
$ tree -L 3
.
├── data
│   └── movies_metadata.csv
├── dictionaries
│   ├── countries_geo.csv
│   └── source.txt
├── movies.conf
└── movies.mapping

進入到專案的子目錄,我們在 terminal 中打入如下的命令:

curl -XPUT -H'Content-type: application/json' localhost:9200/movies -d@mappings/movies.mapping

我們接下來匯入資料:

sudo <path_to_logstash_unzipped>/bin/logstash -f movies.conf

在這里,我們必須使用 sudo,這是因為在 movies.conf 里,我們有使用 /dev/null,經過上面的匯入,我們可以在 Kibana 中可以查看到已經匯入的檔案:

GET movies/_count
{
  "count" : 45432,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  }
}

movies 索引中,一個典型的檔案是這樣的:

GET movies/_search
{
  "took" : 4,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 10000,
      "relation" : "gte"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "12110",
        "_score" : 1.0,
        "_source" : {
          "original_title" : "Dracula: Dead and Loving It",
          "adult" : false,
          "vote_average" : 5.7,
          "genres" : [
            {
              "id" : 35,
              "name" : "Comedy"
            },
            {
              "id" : 27,
              "name" : "Horror"
            }
          ],
          "tagline" : null,
          "production_companies" : [
            {
              "id" : 5,
              "name" : "Columbia Pictures"
            },
            {
              "id" : 97,
              "name" : "Castle Rock Entertainment"
            },
            {
              "id" : 6368,
              "name" : "Enigma Pictures"
            }
          ],
          "imdb_id" : "tt0112896",
          "spoken_languages" : [
            {
              "iso_639_1" : "en",
              "name" : "English"
            },
            {
              "iso_639_1" : "de",
              "name" : "Deutsch"
            }
          ],
          "production_countries_name_list" : [
            "France",
            "United States of America"
          ],
          "@version" : "1",
          "title" : "Dracula: Dead and Loving It",
          "homepage" : null,
          "original_language" : "en",
          "belongs_to_collection" : null,
          "production_countries_location_list" : [
            "46.227638,2.213749",
            "37.09024,-95.712891"
          ],
          "popularity" : 5.430331,
          "budget" : 0.0,
          "revenue" : 0.0,
          "production_countries" : [
            {
              "iso_3166_1" : "FR",
              "location" : "46.227638,2.213749",
              "name" : "France"
            },
            {
              "iso_3166_1" : "US",
              "location" : "37.09024,-95.712891",
              "name" : "United States of America"
            }
          ],
          "release_date" : "1995-12-22",
          "poster_path" : "/xve4cgfYItnOhtzLYoTwTVy5FGr.jpg",
          "@timestamp" : "1995-12-21T16:00:00.000Z",
          "id" : 12110,
          "runtime" : 88.0,
          "status" : "Released",
          "genres_list" : [
            "Comedy",
            "Horror"
          ],
          "overview" : "When a lawyer shows up at the vampire's doorstep, he falls prey to his charms and joins him in his search for fresh blood. Enter Dr. van Helsing, who may be the only one able to vanquish the count.",
          "vote_count" : 210,
          "video" : "false"
        }
      }

   ...

在上面,我們可以看到有一個叫做 overview 的欄位,

More Like This 查詢

more_like_this 查詢的目的是在索引檔案中查找與用戶通知的某些條目相似的檔案,他們通過從知情條目中選擇相關術語,然后使用這些術語構建查詢來做到這一點,

知情條目可以是自由文本或其他索引檔案,也就是說,你可以輕松搜索與已在同一索引或其他索引中編入索引的任何檔案相似的檔案,也就是說,我想用一個用例來演示此查詢的用法,即向用戶提供與他選擇的電影或他剛剛觀看的電影相似的電影概要,

此查詢的唯一必需引數是,你必須輸入要搜索相似檔案的文本,或包含一個物件的陣列,該物件指示要搜索的檔案的索引/ID 檔案,在第二種情況下,還可以將現有和索引檔案與人工檔案混合,即可以模擬帶有自由文本的檔案,下面是一個例子:

GET movies/_search
{
  "fields": ["overview"], 
  "query": {
    "more_like_this": {
      "fields": [
        "overview"
      ],
      "like": "Princess Leia is captured and held hostage by the evil Imperial forces in their effort to take over the galactic Empire. Venturesome Luke Skywalker and dashing captain Han Solo team together with the loveable robot duo R2-D2 and C-3PO to rescue the beautiful princess and restore peace and justice in the Empire.",
      "min_term_freq": 1,
      "max_query_terms": 12
    }
  }
  , "_source": false
}

通常,雖然不是強制性的,但你還需要輸入 fields 引數,這是一個包含欄位名稱的陣列,將在其中檢查相似性, 另一個有趣的引數是 unlike,它與 like 結合使用(它們不相互排斥),它遵循相同的語法,并將通過排除與我們通知我們不知道的檔案相似的檔案來減少結果的數量 想, 基本上(像 X)AND(不像 Y),

此查詢中的其余引數分為兩種型別,

用于選擇術語的引數

  • max_query_terms:要選擇的最大術語數,我們擁有的術語越多,準確度就越高,但以犧牲性能為代價,默認值為 25,
  • min_term_freq:應忽略輸入檔案/文本中的術語的最小頻率,默認值為 2,
  • min_doc_freq:檔案的最小頻率,低于該頻率的輸入檔案應被忽略,默認值為 5,
  • max_doc_freq:最大檔案頻率,高于該頻率時,輸入檔案的術語應被忽略,忽略非常頻繁的術語(如停用詞)會很有用,默認情況下它被禁用 (0),
  • min_word_length:最小術語長度,低于該長度的術語應被忽略,默認值為 0,
  • max_word_length:最大術語大小,超過該術語應被忽略,舊名稱 max_word_len 已棄用,默認情況下它被禁用 (0),
  • stop_words:一組停用詞,要忽略的術語,

分析器:用于輸入文本的分析器,默認情況下,它是與 fields 引數中通知的第一個欄位關聯的分析器,

查詢構造引數

  • minimum_should_match:控制必須找到的術語數, 使用與最小值應該匹配的相同語法, 默認值為 “30%”,
  • fail_on_unsupported_field:如果提供的任何欄位(欄位)不屬于任何受支持的型別(關鍵字或文本),則控制查詢是否應失敗, 默認為真,
  • boost_terms:將構建的查詢中的每個術語都可以通過其 TF-IDF 分數來增強, 默認情況下它被禁用 (0),任何正值都會激活此功能,
  • include:定義查詢結果中是否應回傳輸入檔案, 默認為假,
  • boost:定義整個查詢的 boost 值, 默認值為 1.0,

實踐

回到之前提到的用例(尋找類似的電影向用戶推薦),讓我們做一些實驗,

在下面的示例中,我將使用電影 “Jaws”(大白鯊) 的概要并嘗試找到類似的電影:

GET movies/_search
{
  "size": 5,
  "_source": [
    "title",
    "overview"
  ],
  "query": {
    "more_like_this": {
      "fields": [
        "overview"
      ],
      "min_term_freq": 1,
      "max_query_terms": 12,
      "like": "An insatiable great white shark terrorizes the townspeople of Amity Island, The police chief, an oceanographer and a grizzled shark hunter seek to destroy the bloodthirsty beast."
    }
  }
}

以下是前 5 個結果:

    "hits" : [
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "578",
        "_score" : 100.41875,
        "_source" : {
          "overview" : "An insatiable great white shark terrorizes the townspeople of Amity Island, The police chief, an oceanographer and a grizzled shark hunter seek to destroy the bloodthirsty beast.",
          "title" : "Jaws"
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "52454",
        "_score" : 19.65117,
        "_source" : {
          "overview" : "When the prehistoric warm-water beast the Crocosaurus crosses paths with that cold-water monster the Mega Shark, all hell breaks loose in the oceans as the world's top scientists explore every option to halt the aquatic frenzy. Swallowing everything in their paths -- including a submarine or two -- Croc and Mega lead an explorer and an oceanographer on a wild chase. Eventually, the desperate men turn to a volcano for aid.",
          "title" : "Mega Shark vs. Crocosaurus"
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "246594",
        "_score" : 18.51667,
        "_source" : {
          "overview" : "When another Mega Shark returns from the depths of the sea, world militaries go on high alert. Ocean traffic grinds to a standstill as everyone lives in fear of the insatiable beast. Out of options, the US government unleashes the top secret Mecha Shark project -- a mechanical shark built to have the same exact characteristics as Mega. A pair of scientists pilot the mechanical creature as they fight Mega in a pitched battle to save the planet. But when faulty mechanics cause the Mecha to go after humans, the scientists must somehow guide Mega to Mecha in hopes that the two titans will kill each other - or risk untold worldwide destruction.",
          "title" : "Mega Shark vs. Mecha Shark"
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "43084",
        "_score" : 14.461939,
        "_source" : {
          "overview" : "Wealthy big game hunter, Wilson Frields, funds an expedition going deep into the Florida Everglades to search for the Calusa: a lost tribe of Native Americans. When the team discover the gruesome remains of another expedition, Friels admits he is searching for the Calusa's Fountain of Youth and its guardian, a mythical and deadly beast. As they delve deeper into the Everglades, the bloodthirsty beast begins to stalk and kill members of the group and, in one struggle, their leader Brinson Thomas is injured and begins to metamorphose into a creature himself. His only hope: to drink from the waters of the Fountain. The terrible truth behind the Calusa must be discovered if any of them are going to get out of there alive!",
          "title" : "Deadly Species"
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "385232",
        "_score" : 11.46097,
        "_source" : {
          "overview" : "When the powerful wizard, Lord Tensley, is jilted by Princess Ennogard, he vows to rid the land of love. He commands his fire-breathing dragon to destroy any sign of affection seen throughout the kingdom. As the death toll rises, Camilan, a brave but arrogant warrior seeks to marry his true love despite the curse upon the land. In order to fulfill his destiny, he seeks the help of his estranged brother Ramicus, a bounty hunter with no desire to get involved. It takes an enchanted distress message and the promise of great reward from the beautiful Princess Ennogard, to lure Ramicus into the quest to defeat the wizard and his terrible beast.",
          "title" : "Dudes & Dragons"
        }
      }
    ]

請注意,第一個結果正是 “Jaws” 本身,因為我沒有執行指示該電影的檔案的查詢(如果我這樣做了,因為 include 引數默認為 false,檔案本身將不會回傳), 但是在類似引數中,我告知了它在索引檔案中出現的概要,并且索引中肯定不會有比檔案本身更相似的檔案,

至于其他結果,它們都與鯊魚有關也就不足為奇了,因為這肯定是知情文本中的相關術語,

讓我們嘗試通知代表用戶剛剛觀看的電影的檔案:

GET movies/_search
{
  "fields": [
    "overview"
  ], 
  "query": {
    "match": {
      "title": "rocky"
    }
  },
  "_source": false
}

在上面,我們搜索檔案, 并查看結果:

    "hits" : [
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "1366",
        "_score" : 11.072304,
        "fields" : {
          "overview" : [
            "When world heavyweight boxing champion, Apollo Creed wants to give an unknown fighter a shot at the title as a publicity stunt, his handlers choose palooka Rocky Balboa, an uneducated collector for a Philadelphia loan shark. Rocky teams up with trainer  Mickey Goldmill to make the most of this once in a lifetime break."
          ]
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "1371",
        "_score" : 9.325746,
        "fields" : {
          "overview" : [
            "Now the world champion, Rocky Balboa is living in luxury and only fighting opponents who pose no threat to him in the ring. His lifestyle of wealth and idleness is shaken when a powerful young fighter known as Clubber Lang challenges him to a bout. After taking a pounding from Lang, the humbled champ turns to former bitter rival Apollo Creed to help him regain his form for a rematch with Lang."
          ]
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "41288",
        "_score" : 9.325746,
        "fields" : {
          "overview" : [
            """Step into the ring with one of America's greatest legends...and stand a couple of rounds with greatness! "Pulling no punches" (LA Daily News), Jon Favreau (Swingers) and Oscar?(r) winner* George C. Scott give TKO performances in this outstanding biography of the only undefeated world heavyweight champion in the history of boxing! In the small blue-collar town of Brockton, Massachusetts, young Rocky Marciano (Favreau) turns to the ring as his ticket out. Training twice as hard and twice as long as anyone else, he pounds his way to victory and his reputation quickly spreads as "the guy to beat." But behind the gloves Rocky is unhappy with his gift and he's thinking of retiring. So, with the fate of his career hanging in the balance, he finds a way to unleash his thunder againthis time against his biggest hero: Joe Louis!"""
          ]
        }
      }
  ...
]

在上面,我們可以看到一個 _id 為 1366 的檔案,我們接下來查找和這個 _id 相似的檔案,我們可以這么來查詢:

GET movies/_search
{
  "size": 5,
  "fields": [
    "overview"
  ], 
  "query": {
    "more_like_this": {
      "fields": [
        "overview"
      ],
      "like": {
        "_index": "movies",
        "_id": "1366"
      },
      "min_term_freq": 1,
      "max_query_terms": 12
    }
  },
  "_source": false
}

用戶肯定有可能對特許經營中的其他電影感興趣,這就是我們得到的結果:

    "hits" : [
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "312221",
        "_score" : 57.172073,
        "fields" : {
          "overview" : [
            "The former World Heavyweight Champion Rocky Balboa serves as a trainer and mentor to Adonis Johnson, the son of his late friend and former rival Apollo Creed."
          ]
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "184741",
        "_score" : 29.255241,
        "fields" : {
          "overview" : [
            "A chorus girl (Marion Davies) and a heavyweight boxer (Clark Gable) are paired romantically as a publicity stunt."
          ]
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "1371",
        "_score" : 27.638262,
        "fields" : {
          "overview" : [
            "Now the world champion, Rocky Balboa is living in luxury and only fighting opponents who pose no threat to him in the ring. His lifestyle of wealth and idleness is shaken when a powerful young fighter known as Clubber Lang challenges him to a bout. After taking a pounding from Lang, the humbled champ turns to former bitter rival Apollo Creed to help him regain his form for a rematch with Lang."
          ]
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "1246",
        "_score" : 26.655176,
        "fields" : {
          "overview" : [
            "When he loses a highly publicized virtual boxing match to ex-champ Rocky Balboa, reigning heavyweight titleholder, Mason Dixon retaliates by challenging Rocky to a nationally televised, 10-round exhibition bout. To the surprise of his son and friends, Rocky agrees to come out of retirement and face an opponent who's faster, stronger and thirty years his junior."
          ]
        }
      },
      {
        "_index" : "movies",
        "_type" : "_doc",
        "_id" : "1367",
        "_score" : 25.732662,
        "fields" : {
          "overview" : [
            """After Rocky goes the distance with champ Apollo Creed, both try to put the fight behind them and move on. Rocky settles down with Adrian but can't put his life together outside the ring, while Creed seeks a rematch to restore his reputation. Soon enough, the "Master of Disaster" and the "Italian Stallion" are set on a collision course for a climactic battle that is brutal and unforgettable."""
          ]
        }
      }
    ]

總結

more_like_this 查詢具有很大的潛力,可以在我們的搜索解決方案中提供額外的功能,如果一方面它使用起來非常簡單,另一方面它提供了一個有趣的引數來專門針對我們搜索類似的檔案, 這個查詢也用于 NLP 的背景關系中,更具體地用于文本分類

無論如何,我希望這篇文章引起了人們對 Elasticsearch 上可用的這種和其他型別的查詢進行試驗的興趣,盡管這些查詢有點不常用,

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/290603.html

標籤:其他

上一篇:Hive join幾種形式詳解

下一篇:大資料發行版本與云廠商

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 網閘典型架構簡述

    網閘架構一般分為兩種:三主機的三系統架構網閘和雙主機的2+1架構網閘。 三主機架構分別為內端機、外端機和仲裁機。三機無論從軟體和硬體上均各自獨立。首先從硬體上來看,三機都用各自獨立的主板、記憶體及存盤設備。從軟體上來看,三機有各自獨立的作業系統。這樣能達到完全的三機獨立。對于“2+1”系統,“2”分為 ......

    uj5u.com 2020-09-10 02:00:44 more
  • 如何從xshell上傳檔案到centos linux虛擬機里

    如何從xshell上傳檔案到centos linux虛擬機里及:虛擬機CentOs下執行 yum -y install lrzsz命令,出現錯誤:鏡像無法找到軟體包 前言 一、安裝lrzsz步驟 二、上傳檔案 三、遇到的問題及解決方案 總結 前言 提示:其實很簡單,往虛擬機上安裝一個上傳檔案的工具 ......

    uj5u.com 2020-09-10 02:00:47 more
  • 一、SQLMAP入門

    一、SQLMAP入門 1、判斷是否存在注入 sqlmap.py -u 網址/id=1 id=1不可缺少。當注入點后面的引數大于兩個時。需要加雙引號, sqlmap.py -u "網址/id=1&uid=1" 2、判斷文本中的請求是否存在注入 從文本中加載http請求,SQLMAP可以從一個文本檔案中 ......

    uj5u.com 2020-09-10 02:00:50 more
  • Metasploit 簡單使用教程

    metasploit 簡單使用教程 浩先生, 2020-08-28 16:18:25 分類專欄: kail 網路安全 linux 文章標簽: linux資訊安全 編輯 著作權 metasploit 使用教程 前言 一、Metasploit是什么? 二、準備作業 三、具體步驟 前言 Msfconsole ......

    uj5u.com 2020-09-10 02:00:53 more
  • 游戲逆向之驅動層與用戶層通訊

    驅動層代碼: #pragma once #include <ntifs.h> #define add_code CTL_CODE(FILE_DEVICE_UNKNOWN,0x800,METHOD_BUFFERED,FILE_ANY_ACCESS) /* 更多游戲逆向視頻www.yxfzedu.com ......

    uj5u.com 2020-09-10 02:00:56 more
  • 北斗電力時鐘(北斗授時服務器)讓網路資料更精準

    北斗電力時鐘(北斗授時服務器)讓網路資料更精準 北斗電力時鐘(北斗授時服務器)讓網路資料更精準 京準電子科技官微——ahjzsz 近幾年,資訊技術的得了快速發展,互聯網在逐漸普及,其在人們生活和生產中都得到了廣泛應用,并且取得了不錯的應用效果。計算機網路資訊在電力系統中的應用,一方面使電力系統的運行 ......

    uj5u.com 2020-09-10 02:01:03 more
  • 【CTF】CTFHub 技能樹 彩蛋 writeup

    ?碎碎念 CTFHub:https://www.ctfhub.com/ 筆者入門CTF時時剛開始刷的是bugku的舊平臺,后來才有了CTFHub。 感覺不論是網頁UI設計,還是題目質量,賽事跟蹤,工具軟體都做得很不錯。 而且因為獨到的金幣制度的確讓人有一種想去刷題賺金幣的感覺。 個人還是非常喜歡這個 ......

    uj5u.com 2020-09-10 02:04:05 more
  • 02windows基礎操作

    我學到了一下幾點 Windows系統目錄結構與滲透的作用 常見Windows的服務詳解 Windows埠詳解 常用的Windows注冊表詳解 hacker DOS命令詳解(net user / type /md /rd/ dir /cd /net use copy、批處理 等) 利用dos命令制作 ......

    uj5u.com 2020-09-10 02:04:18 more
  • 03.Linux基礎操作

    我學到了以下幾點 01Linux系統介紹02系統安裝,密碼啊破解03Linux常用命令04LAMP 01LINUX windows: win03 8 12 16 19 配置不繁瑣 Linux:redhat,centos(紅帽社區版),Ubuntu server,suse unix:金融機構,證券,銀 ......

    uj5u.com 2020-09-10 02:04:30 more
  • 05HTML

    01HTML介紹 02頭部標簽講解03基礎標簽講解04表單標簽講解 HTML前段語言 js1.了解代碼2.根據代碼 懂得挖掘漏洞 (POST注入/XSS漏洞上傳)3.黑帽seo 白帽seo 客戶網站被黑帽植入劫持代碼如何處理4.熟悉html表單 <html><head><title>TDK標題,描述 ......

    uj5u.com 2020-09-10 02:04:36 more
最新发布
  • 2023年最新微信小程式抓包教程

    01 開門見山 隔一個月發一篇文章,不過分。 首先回顧一下《微信系結手機號資料庫被脫庫事件》,我也是第一時間得知了這個訊息,然后跟蹤了整件事情的經過。下面是這起事件的相關截圖以及近日流出的一萬條資料樣本: 個人認為這件事也沒什么,還不如關注一下之前45億快遞資料查詢渠道疑似在近日復活的訊息。 訊息是 ......

    uj5u.com 2023-04-20 08:48:24 more
  • web3 產品介紹:metamask 錢包 使用最多的瀏覽器插件錢包

    Metamask錢包是一種基于區塊鏈技術的數字貨幣錢包,它允許用戶在安全、便捷的環境下管理自己的加密資產。Metamask錢包是以太坊生態系統中最流行的錢包之一,它具有易于使用、安全性高和功能強大等優點。 本文將詳細介紹Metamask錢包的功能和使用方法。 一、 Metamask錢包的功能 數字資 ......

    uj5u.com 2023-04-20 08:47:46 more
  • vulnhub_Earth

    前言 靶機地址->>>vulnhub_Earth 攻擊機ip:192.168.20.121 靶機ip:192.168.20.122 參考文章 https://www.cnblogs.com/Jing-X/archive/2022/04/03/16097695.html https://www.cnb ......

    uj5u.com 2023-04-20 07:46:20 more
  • 從4k到42k,軟體測驗工程師的漲薪史,給我看哭了

    清明節一過,盲猜大家已經無心上班,在數著日子準備過五一,但一想到銀行卡里的余額……瞬間心情就不美麗了。最近,2023年高校畢業生就業調查顯示,本科畢業月平均起薪為5825元。調查一出,便有很多同學表示自己又被平均了。看著這一資料,不免讓人想到前不久中國青年報的一項調查:近六成大學生認為畢業10年內會 ......

    uj5u.com 2023-04-20 07:44:00 more
  • 最新版本 Stable Diffusion 開源 AI 繪畫工具之中文自動提詞篇

    🎈 標簽生成器 由于輸入正向提示詞 prompt 和反向提示詞 negative prompt 都是使用英文,所以對學習母語的我們非常不友好 使用網址:https://tinygeeker.github.io/p/ai-prompt-generator 這個網址是為了讓大家在使用 AI 繪畫的時候 ......

    uj5u.com 2023-04-20 07:43:36 more
  • 漫談前端自動化測驗演進之路及測驗工具分析

    隨著前端技術的不斷發展和應用程式的日益復雜,前端自動化測驗也在不斷演進。隨著 Web 應用程式變得越來越復雜,自動化測驗的需求也越來越高。如今,自動化測驗已經成為 Web 應用程式開發程序中不可或缺的一部分,它們可以幫助開發人員更快地發現和修復錯誤,提高應用程式的性能和可靠性。 ......

    uj5u.com 2023-04-20 07:43:16 more
  • CANN開發實踐:4個DVPP記憶體問題的典型案例解讀

    摘要:由于DVPP媒體資料處理功能對存放輸入、輸出資料的記憶體有更高的要求(例如,記憶體首地址128位元組對齊),因此需呼叫專用的記憶體申請介面,那么本期就分享幾個關于DVPP記憶體問題的典型案例,并給出原因分析及解決方法。 本文分享自華為云社區《FAQ_DVPP記憶體問題案例》,作者:昇騰CANN。 DVPP ......

    uj5u.com 2023-04-20 07:43:03 more
  • msf學習

    msf學習 以kali自帶的msf為例 一、msf核心模塊與功能 msf模塊都放在/usr/share/metasploit-framework/modules目錄下 1、auxiliary 輔助模塊,輔助滲透(埠掃描、登錄密碼爆破、漏洞驗證等) 2、encoders 編碼器模塊,主要包含各種編碼 ......

    uj5u.com 2023-04-20 07:42:59 more
  • Halcon軟體安裝與界面簡介

    1. 下載Halcon17版本到到本地 2. 雙擊安裝包后 3. 步驟如下 1.2 Halcon軟體安裝 界面分為四大塊 1. Halcon的五個助手 1) 影像采集助手:與相機連接,設定相機引數,采集影像 2) 標定助手:九點標定或是其它的標定,生成標定檔案及內參外參,可以將像素單位轉換為長度單位 ......

    uj5u.com 2023-04-20 07:42:17 more
  • 在MacOS下使用Unity3D開發游戲

    第一次發博客,先發一下我的游戲開發環境吧。 去年2月份買了一臺MacBookPro2021 M1pro(以下簡稱mbp),這一年來一直在用mbp開發游戲。我大致分享一下我的開發工具以及使用體驗。 1、Unity 官網鏈接: https://unity.cn/releases 我一般使用的Apple ......

    uj5u.com 2023-04-20 07:40:19 more