区块链运作机制_区块链如何运作? 铂 2

2023-11-10

区块链运作机制

This article was originally published on Blockchain Review. Thank you for supporting the partners who make SitePoint possible.

本文最初发表在《 区块链评论》上 感谢您支持使SitePoint成为可能的合作伙伴。

The top five things that you need to know.

您需要了解的前五件事。

The talk about Blockchain technology seems ubiquitous. But what exactly is a blockchain? More specifically, what are the blockchain essentials that you should really know?

关于区块链技术的讨论似乎无处不在。 但是区块链到底是什么? 更具体地说,您应该真正了解什么是区块链要素?

Let’s dive in to find out more about it, and separate the hype from the reality.

让我们深入了解它,并将炒作与现实分开。

1.什么是区块链? (1. What is a Blockchain?)

A blockchain is a tamper-proof distributed public ledger that manages transactions.

区块链是管理交易的防篡改分布式公共分类帐。

Think of it like a magical Google spreadsheet in the cloud, or more specifically on a network.

可以将其视为云中或更特别是网络上的神奇的Google电子表格。

Put simply, a blockchain is basically an incorruptible distributed ledger of data, which can be used to store informational assets ranging from managing cryptographic contracts to transferring value.

简而言之,区块链本质上是不间断的分布式数据分类帐,可用于存储信息资产,从管理密码合同到转移价值。

The most recognized application on a blockchain is Bitcoin. This allows the transfer of value from one person to another with no central intermediary, and without allowing a person or party to spend their Bitcoin twice – the double spend rule.

区块链上最受认可的应用是比特币。 这允许在没有中央中介的情况下将价值从一个人转移到另一个人,并且不允许一个人或一方花费其比特币两次(双重消费规则)。

What does this mean?

这是什么意思?

It means that “value” can have a change of title and ownership from one person or party to another, without the need of a trusted third party to validate and govern the trade.

这意味着“价值”可以从一个人或一方到另一人或另一方改变所有权和所有权,而无需受信任的第三方来验证和管理交易。

How is that, you might ask?

您可能会问,这是怎么回事?

Well, the governance is in the protocol.

好吧,治理就在协议中。

Besidse being a ledger for “data of value,” or cryptocurrencies, blockchain technology is finding broader usage in peer-to-peer lending, (smart) contract management, healthcare data, stock transfers, and even elections.

由于Besidse是“价值数据”或加密货币的分类帐,因此区块链技术正在P2P借贷,(智能)合同管理,医疗保健数据,股票转让甚至选举中得到更广泛的应用。

Like any emerging and disruptive technology, no one can predict the future of Blockchain technology. But one thing’s for sure — it isn’t (just) for purchasing black market goods and services!

像任何新兴和破坏性技术一样,没有人能预测区块链技术的未来。 但是可以肯定的是,这不是(仅仅)购买黑市商品和服务!

As a matter of fact, blockchain technology is finding its way into big firms such as IBM, Microsoft, and major banks.

事实上,区块链技术正在进入IBM,Microsoft和大型银行等大公司。

Interest in the technology is driven by fear of disruption – the fact that it excludes trusted third parties (banks and clearinghouses) during the transfer of value, which in turn results in fast, private and less expensive financial transactions.

对技术的兴趣是由对破坏的恐惧所驱使的-在价值转移过程中,它排除了受信任的第三方(银行和票据交换所),这反过来又导致了快速,私人和较便宜的金融交易。

Blockchain can facilitate the peer-to-peer transfer of anything that’s of value.

区块链可以促进点对点转移任何有价值的东西。

This may include assets, properties, and contracts. The most crucial and far-reaching blockchain application is applied in Bitcoin, with transfer of value, and Ethereum, with its enhancement of smart contracts.

这可能包括资产,财产和合同。 最关键和影响深远的区块链应用程序用于价值转移的比特币和以智能合约增强的以太坊。

Let’s jump in and learn the historical background of these blockchain essentials.

让我们进入并学习这些区块链要素的历史背景。

2.比特币 (2. Bitcoin)

The Bitcoin currency, as many have come to know it, has been with us since 2008 when Satoshi Nakamoto — a person, or group of people — published a whitepaper about peer-to-peer electronic currency.

自从2008年中本聪(一个人或一群人)发表有关点对点电子货币的白皮书以来,就已经有很多人知道这种比特币。

The major innovation that Bitcoin unveiled was direct and secure transfer of money or "value" directly to any party on the network.

比特币推出的主要创新是直接安全地将钱或“价值”直接转移到网络上的任何一方。

The Bitcoin currency network is decentralized — there's no central authority — and the underlying blockchain technology is used to store information which is verified by a network of "miners" who validate all transactions on the network.

比特币货币网络是分散的-没有中央权力机构-基础的区块链技术用于存储信息,该信息由“矿工”网络验证,该矿工验证网络上的所有交易。

How should I think of this?

我应该怎么看?

Bitcoin is simply a virtual currency system which resembles the real world cash system.

比特币只是一个类似于现实世界现金系统的虚拟货币系统。

Since it's launch in 2008, through the boom and bust of the hype cycle, Bitcoin has continued to grow at an exponential rate, and the fringe curiosity that consumed a group of highly capable tech nerds has ushered in some new upgrades that have brought blockchain closer to the mainstream.

自2008年推出以来,通过炒作周期的繁荣和萧条,比特币一直以指数级的速度增长,并且消耗了一批精通技术的书呆子的边缘好奇心带来了一些新的升级,使区块链更加接近到主流。

3.以太坊—区块链2.0 (3. Ethereum — Blockchain 2.0)

Ethereum is a blockchain system based on the concepts of Bitcoin.

以太坊是一个基于比特币概念的区块链系统。

It is considered a second generation blockchain technology that was designed to let any person, with a basic level of computer skills, to develop and deploy their own decentralized applications on the blockchain.

它被认为是第二代区块链技术,旨在让具有基本计算机技能的任何人都可以在区块链上开发和部署自己的去中心化应用程序。

Just like Bitcoin, Ethereum is decentralized — no one regulates or owns it — and it has it's own cryptocurrency or "fuel" called "Ether" which acts in the same way bitcoin does. However, Ethereum has a few innovations worth noting. The first being a second application on its blockchain infrastructure called a "smart contract", it's own virtual machine which powers the memory and applications on the network called the "Ethereum Virtual Machine", and its own programming language called "Solidity".

就像比特币一样, 以太坊是去中心化的-没有人监管或拥有它-并且它拥有自己的加密货币或称为“以太”的“燃料”,其作用与比特币相同。 但是,以太坊有一些创新值得注意。 第一个是其区块链基础架构上的第二个应用程序,称为“智能合约”,它是自己的虚拟机,为网络上的内存和应用程序提供动力,称为“以太坊虚拟机”,其自身的编程语言为“ Solidity”。

Ethereum is kinda like Bitcoin on steroids, but made to be more accessible.

以太坊有点像类固醇上的比特币,但使其更易于访问。

It was developed by Vitalik Buterin, a 19 year old Russian Canadian in 2013 as a next generation blockchain technology, with capabilities to be able to program and perform arbitrary and complex computations.

它是由19岁的加拿大裔加拿大人Vitalik Buterin在2013年开发的,它是下一代区块链技术,具有能够编程和执行任意复杂的计算的功能。

Rather than just providing users with a set of predefined operations — like Bitcoin transactions — Ethereum lets users develop their own operations with the complexity they wish.

以太坊不仅向用户提供了一系列预定义的操作(如比特币交易),还使用户能够以自己希望的复杂性开发自己的操作。

4.智能合约 (4. Smart Contracts)

What is a "smart" contract?

什么是“智能”合同?

Well, they actually aren’t that “smart.”

好吧,他们实际上并不是那么“聪明”。

Think of them like self executing dumb software robots that live and do business on a decentralized network.

可以将它们视为在分散式网络中生活和开展业务的自我执行的愚蠢软件机器人。

Smart contracts are autonomous computer systems, written in code, that manage executions between individuals on the blockchain.

智能合约是用代码编写的自治计算机系统,用于管理区块链上个人之间的执行。

The code resides at specified addresses on the Ethereum blockchain. These contracts are powered by our friend, the Ethereum Virtual Machine (EVM), and by Ether. It's the little engine that could, that keeps all the smart contracts running on time and coordinates them with the rest of the network.

该代码位于以太坊区块链上的指定地址。 这些合同由我们的朋友以太坊虚拟机(EVM)和以太币提供动力。 这是可以使所有智能合约按时运行并与网络其余部分进行协调的微型引擎。

In order to create an added layer of customization and security, Ethereum created some high-level languages that are used to create smart contracts for the EVM. These are Solidity, Serpent, and LLL.

为了创建更多的自定义和安全层,以太坊创建了一些高级语言,用于为EVM创建智能合约。 它们是Solidity,Serpent和LLL。

These are the major innovation that Ethereum has brought to blockchains, and it allows for many amazing types of autonomous program.

这些是以太坊带给区块链的重大创新,它允许许多惊人的自治程序类型。

Next, let's explore the consensus mechanisms in blockchain.

接下来,让我们探索区块链中的共识机制。

5.共识机制 (5. Consensus Mechanisms)

When you interact with multiple parties, you need some sort of consensus mechanism to ensure everyone has got the right records. – Dan O'Prey, co-founder of Hyperledger

与多方互动时,您需要某种共识机制来确保每个人都有正确的记录。 – Hyperledger联合创始人Dan O'Prey

Both Bitcoin and Ethereum use a decentralized system to confirm the transactions without relying on a trusted third party.

比特币和以太坊都使用分散式系统来确认交易,而无需依赖可信赖的第三方。

Therefore, consensus, or coming to a uniform agreement, helps a network of autonomous programs and computers come to an agreed state of the blockchain without conflict.

因此,达成共识或达成统一协议,有助于自治程序和计算机网络达到区块链的商定状态而不会发生冲突。

As a matter of fact, this consensus is the backbone of the blockchain and any other decentralized and distributed technology.

事实上,这种共识是区块链和任何其他分散和分布式技术的骨干。

The proof of work, proof of stake and closed consensus are the most common mechanisms used in blockchain technologies.

工作证明,股权证明和达成共识是区块链技术中最常用的机制。

A.工作证明 (A. Proof of Work)

The most common consensus mechanism that's used for blockchain technology is what's called "proof of work". It is the system used in Bitcoin.

用于区块链技术的最普遍的共识机制是所谓的“工作量证明”。 它是比特币中使用的系统。

When a transaction is initiated, the information is stored in a candidate block, which is filled with the transaction's information. A cryptographic beacon is sent out to the mining network that the candidate block has been created, and the miners get to work on solving a cryptographic puzzle that has a prize for whomever solves it, in the form of newly minted coins/currency.

启动交易时,该信息将存储在候选块中,并在其中填充交易信息。 加密信标被发送到挖矿网络,表明已创建了候选区块,矿工开始研究以新铸造的硬币/货币的形式解决有奖赏的加密难题。

Miners have what some would think of as supercomputers that are much more powerful than the average person's MacBook Pro. These machines have a "hashrate" or computing power that gives them an advantage when competing to solve consensus problems for reward.

矿工将某些人视为超级计算机,它们比普通人的MacBook Pro强大得多。 这些机器具有“哈希值”或计算能力,在竞争解决共识性问题以获得奖励时会为其提供优势。

I know what all you climate control advocates are saying: Doesn't that demand a lot of electricity and processing power?

我知道您的气候控制倡导者在说什么:这不要求大量的电力和处理能力吗?

The short answer is yes, the cost of mining is based primarily, on hardware, electricity costs, and to some degree temperature.

简短的答案是肯定的,采矿成本主要基于硬件,电力成本以及某种程度上的温度。

The problem with the Proof of Work consensus is that it requires the miner to use their supercomputer to try out millions of computations per second, in competition with other supercomputers around the world, to determine if the blockchain can be updated or not.

工作量证明共识的问题在于,它要求矿工与世界各地的其他超级计算机竞争,每秒使用其超级计算机尝试数百万次计算,以确定是否可以更新区块链。

B.股权证明 (B. Proof of Stake)

The main objective of this mechanism is to allow stakeholders, the people with the most invested, or owned, in the Blockchain ecosystem to have the strongest incentives to lead in the provision of consensus solutions for a blockchain transaction.

该机制的主要目标是让利益相关者,在区块链生态系统中投入最多或拥有最多的人有最强烈的动机来引导为区块链交易提供共识解决方案。

In simple terms:

简单来说:

Proof of Stake consensus allows miners that have more "money", cryptocurrency, or "skin in the game" to have a greater opportunity to mine blocks and make decisions for the network.

利益证明共识可以使拥有更多“金钱”,加密货币或“游戏中的皮肤”的矿工拥有更大的机会来挖掘区块并为网络做出决策。

The process starts with the miner consuming his/her cryptocurrency — commonly referred to as the kernel — which provides privileges for updating the blockchain, which is similar to Proof of Work.

该过程始于矿工消耗其加密货币(通常称为内核),它提供了更新区块链的特权,类似于工作量证明。

However, the hashing computation in Proof of Stake is done using a limited search space, where stakeholders with the greatest stakes have the ability to mine a commensurate allocation of the network, and are effectively stewards of the Blockchain system.

但是,权益证明中的哈希计算是在有限的搜索空间中完成的,其中利益攸关方的利益最大者有能力挖掘相应的网络分配,并且是区块链系统的有效管家。

Think of it like : the more a miner has, the more they can get, and the more they can decide.

可以这样想 :矿工越多,他们得到的越多,他们就可以做出更多的决定。

The one benefit of this controversial crypto-economic system is that by allowing stakeholders with incentives to take charge of consensus, the mechanism reduces the computing power required for consensus.

这一有争议的加密经济系统的一个好处是,通过允许有激励作用的利益相关者负责共识,该机制降低了达成共识所需的计算能力。

This should make the climate control kids happy, but…

这应该使气候控制孩子们开心,但是…

The main problem of this mechanism is that it disadvantages other miners in the network since only the "richest" stakeholders are permitted to have control of consensus in the blockchain.

这种机制的主要问题是,由于仅允许“最富有”的利益相关者控制区块链中的共识,因此它不利于网络中的其他矿工。

C.封闭共识 (C. Closed Consensus)

In a Closed consensus mechanism, certain nodes are required to put up a security deposit in order to participate in updating the blockchain.

在封闭共识机制中,某些节点需要存入保证金才能参与更新区块链。

This consensus mechanism doesn't require mining, and is growing in popularity in some banking and insurance segments.

这种共识机制不需要挖掘,并且在某些银行和保险领域越来越受欢迎。

The management of the consensus is done using security deposits which incentivize the validators. The "arbitrators" — conflict management nodes — are the enforcers on the blockchain, and they adjudicate when something is not right or if a miner is not acting fairly.

共识的管理使用保证金来激励验证者。 “仲裁者”(冲突管理节点)是区块链上的执行者,当事情不正确或矿工行为不当时,他们会做出裁决。

The main objective of using an arbitrator's protocol is to enforce consensus among the autonomous nodes in the blockchain.

使用仲裁员协议的主要目的是在区块链中的自治节点之间加强共识。

If a validator authenticates a transaction which the arbitrators have considered illegitimate, then the validator loses their security deposit, and they also forfeit their privileges of providing consensus in the blockchain network in the future.

如果验证者验证了仲裁员认为非法的交易,那么验证者将失去其保证金,并且他们也丧失了将来在区块链网络中达成共识的特权。

结论 (Conclusion)

Now that you understand the basic essentials of blockchain technology, you should be able to answer very easily:

既然您了解了区块链技术的基本要点,那么您应该能够非常轻松地回答:

  1. What is a blockchain?

    什么是区块链?
  2. How does bitcoin work?

    比特币如何运作?
  3. What are the major innovations that the Ethereum blockchain brought to the technology?

    以太坊区块链技术带来了哪些重大创新?
  4. What is a smart contract?

    什么是智能合约?
  5. What are the different types of consensus mechanism that power a blockchain?

    支持区块链的共识机制有哪些不同类型?

Hopefully this inspires further exploration and your own personal discovery, and exploration of how you might be able to join in the conversation and experiment.

希望这能激发更多的探索和您自己的个人发现,并探索您如何能够加入对话和实验。

If you want more information, and you missed the first post in this series, check out this easy to understand post here: How Does the Blockchain Work?

如果您想了解更多信息,而又错过了本系列的第一篇文章,请在此处查看以下易于理解的文章: 区块链如何工作?

Or, if you are ready to move forward, you can read the rest of the series:

或者,如果您准备前进,可以阅读本系列的其余部分:

The main take away that you should get from these articles is that understanding the blockchain is not that hard, and when you do, you have the ability to affect your team, startup, and industry in ways that you might not thought possible in the past.

从这些文章中可以得出的主要结论是,了解区块链并不难,而且当您这样做时,您就有能力以过去可能无法想象的方式影响您的团队,创业公司和行业。 。

I’m always interested in meeting blockchain founders, academic researchers, and technologists who are working on challenging projects, so please feel free to contact me on LinkedIn, or by email at collin@intrepid.ventures.

我一直很想与正在从事具有挑战性的项目的区块链创始人,学术研究人员和技术专家会面,因此请随时通过LinkedIn或通过电子邮件collin@intrepid.ventures与我联系。

  • Looking for a new cryptocurrency? Check out the introduction to Metabase.

    寻找新的加密货币? 查看Metabase的介绍。

  • Want to launch your own ICO? Apply now at Token Deck.

    想启动自己的ICO吗? 现在在Token Deck申请。

翻译自: https://www.sitepoint.com/how-does-the-blockchain-work-pt-2/

区块链运作机制

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

区块链运作机制_区块链如何运作? 铂 2 的相关文章

  • 获取文件的锁

    我想在对特定文件开始 threo read 时获取文件上的锁定 以便其他应用程序无法读取已锁定的文件并希望在线程终止时释放锁定文件 您可以获得一个FileLock https docs oracle com javase 8 docs ap
  • Android 中的列表(特别是 RecyclerView 和 CardView)如何工作

    请原谅我问这个问题 但我是 Android 开发新手 尽管我正在尝试了解developer android com 网站上的基础知识 但大多数示例 即使他们说它们是为 Android Studio 构建的 尚未设置为使用 Gradle 因此
  • Base36 编码字符串?

    我一直在网上查找 但找不到解决此问题的方法 在 Python Ruby 或 Java 中 如何对以下字符串进行 Base 36 编码 nOrG9Eh0uyeilM8Nnu5pTywj3935kW 5 Ruby 以 36 为基数 s unpa
  • (Java) App Engine 中的静态文件无法访问

    The 示例文档 http code google com appengine docs java gettingstarted staticfiles html表示您只需将文件放在 war 或子目录 中 并且应该可以从主机访问它们 只要它
  • 文本在指定长度后分割,但不要使用 grails 打断单词

    我有一个长字符串 需要将其解析为长度不超过 50 个字符的字符串数组 对我来说 棘手的部分是确保正则表达式找到 50 个字符之前的最后一个空格 以便在字符串之间进行彻底的分隔 因为我不希望单词被切断 public List
  • 删除优先级队列的尾部元素

    如何删除优先级队列的尾部元素 我正在尝试使用优先级队列实现波束搜索 一旦优先级队列已满 我想删除最后一个元素 优先级最低的元素 Thanks 没有简单的方法 将元素从原始元素复制到新元素 最后一个除外 PriorityQueue remov
  • 埃拉托色尼筛法 - 实现返回一些非质数值?

    我用 Java 实现了埃拉托斯特尼筛法 通过伪代码 public static void sieveofEratosthenes int n boolean numArray numArray new boolean n for int i
  • Logback:SizeAndTimeBasedRollingPolicy 不遵守totalSizeCap

    我正在尝试以一种方式管理我的日志记录 一旦达到总累积大小限制或达到最大历史记录限制 我最旧的存档日志文件就会被删除 当使用SizeAndTimeBasedRollingPolicy在 Logback 1 1 7 中 滚动文件追加器将继续创建
  • 在 Struts 2 中传递 URL 参数而不使用查询字符串

    我想使用类似的 URL host ActionName 123 abc 而不是像这样传递查询字符串 host ActionName parm1 123 parm2 abc 我怎样才能在 Struts 2 中做到这一点 我按照下面的方法做了
  • FileNotFoundException - Struts2 文件上传

    Strange FileNotFoundException使用Struts2上传文件时 这是 JSP 的一部分
  • 如何检测图像是否像素化

    之前有人在 SO 上提出过这样的问题 在Python中检测像素化图像 https stackoverflow com questions 12942365 detecting a pixelated image in python还有关于q
  • 当 minifyEnabled 为 true 时 Android 应用程序崩溃

    我正在使用多模块应用程序 并且该应用程序崩溃时minifyEnabled true in the installed模块的build gradle 以下是从游戏控制台检索到的反混淆堆栈跟踪 FATAL EXCEPTION Controlle
  • Spring Data JPA:查询如何返回非实体对象或对象列表?

    我在我的项目中使用 Spring Data JPA 我正在演奏数百万张唱片 我有一个要求 我必须获取各种表的数据并构建一个对象 然后将其绘制在 UI 上 现在如何实现我的 Spring 数据存储库 我读到它可以通过命名本机查询来实现 如果指
  • 如何从日期中删除毫秒、秒、分钟和小时[重复]

    这个问题在这里已经有答案了 我遇到了一个问题 我想比较两个日期 然而 我只想比较年 月 日 这就是我能想到的 private Date trim Date date Calendar calendar Calendar getInstanc
  • 我们如何测试包私有类?

    我正在看书Effective Java in Item 13 Minimize the accessibility of classes and members 它提到 为了方便测试 您可能想让类 接口或成员更易于访问 这在某种程度上是好的
  • 使用Java绘制维恩图

    我正在尝试根据给定的布尔方程绘制维恩图 例如 a AND b AND c我想在 Android 手机上执行此操作 因此我需要找到一种使用 Java 来执行此操作的方法 我找到了一个完美的小部件 它可以完成我在这方面寻找的一切布尔代数计算器
  • 我可以限制分布式应用程序发出的请求吗?

    我的应用程序发出 Web 服务请求 提供商处理的请求有最大速率 因此我需要限制它们 当应用程序在单个服务器上运行时 我曾经在应用程序级别执行此操作 一个对象跟踪到目前为止已发出的请求数量 并在当前请求超出允许的最大负载时等待 现在 我们正在
  • 禁用 Android 菜单组

    我尝试使用以下代码禁用菜单组 但它不起作用 菜单项仍然启用 你能告诉我出了什么问题吗 资源 菜单 menu xml menu menu
  • 何时在 hibernate 中使用 DiscriminatorValue 注解

    在 hibernate 中使用 DiscriminatorValue 注释的最佳场景是什么以及何时 这两个链接最能帮助我理解继承概念 http docs oracle com javaee 6 tutorial doc bnbqn html
  • try-with-resources 中出现死代码警告,但翻译后的 try-catch-finally 中没有出现死代码警告

    以下代码使用try 有资源 https docs oracle com javase specs jls se7 html jls 14 html jls 14 20 3Java 8 中引入的构造 偶尔抛出 方法被声明为抛出一个偶尔的异常

随机推荐

  • Unity2D修改Sprite颜色和透明度

    Unity2D修改Sprite颜色和透明度 简单注意原理在前边 后面是实现方法 首先创建一个Sprite 最好选择纯白色的Sprite 选择的图片需要是白色的才会在修改颜色后有明显的显示 因为颜色修改后 它的最终显示是本来的图片的颜色与修改
  • QT 信号和槽

    信号和槽是一种高级接口 应用于对象之间的通信 它是 QT 的核心特性 要正确的处理信号和槽 必须借助一个称为 moc Meta Object Compiler 的 QT 工具 该工具是一个 C 预处理程序 它为高层次的事件处理自动生成所需要
  • 解决bug“ImportError: numpy.core.multiarray failed to import”

    解决bug ImportError numpy core multiarray failed to import 在这之前升级scikit image从老版本0 13 0到0 17 2 但运行pycharm工程出现如下bug from fi
  • msys2 安装 mingw64

    https blog csdn net zhuwade article details 121944279
  • vue+element 图片右上角添加删除小×、按钮预览图片

    思维方法 这个问题实际就是一个思维方式的问题 我最开始思考的就很复杂 后来我同事给出的解决方法就好 方法是 在判断有图片的时候 在图片的右上角加上一个小 的图片 在这个图片上加方法 点击就把图片清空 所以有的时候 一件事情不能想的太复杂 代
  • pytorch源码分析之torch.utils.data.Dataset类和torch.utils.data.DataLoader类

    写在之前 介绍 Pytorch深度学习框架优势之一是python优先 源代码由python代码层和C语言代码层组成 一般只需要理解python代码层就可以深入理解pytorch框架的计算原理 所以学习pytorch源码需要熟练掌握pytho
  • 使用Eclipse编译带jni工程时出现make: *** No rule to make target `all'. Stop.解决办法

    使用Eclipse编译带jni工程时出现make No rule to make target all Stop 解决办法 在引用第三方开发的用eclipse开发jni 总是出现如题所示的异常 如下图所示 出现如上的错误 具体操作如下 1
  • 函数式编程总结

    函数式编程总结 一 定义 简单说 函数式编程 是一种 编程范式 programming paradigm 也就是如何编写程序的方法论 它属于 结构化编程 的一种 主要思想是把运算过程尽量写成一系列嵌套的函数调用 举例来说 现在有这样一个数学
  • APNS编程----iOS真机测试消息推送

    一 准备工作 1 拥有一台iOS为操作系统的苹果设备 iPhone iPad iPod都可以 2 拥有苹果开发者账号 需要真机调试 最好是是付费开发者 后面的步骤将会更顺利 3 需要一台PC做推送服务器 如果是台拥有MAC OS系统 将会更
  • Eclipse语言包下载

    Eclipse语言包下载
  • PAT 甲级(Python) #1033 To Fill or Not to Fill (25 分)贪心算法和分治法的python实现

    1033 To Fill or Not to Fill 25 分 KY155 To Fill or Not to Fill 分治法求解 不完善 include
  • Convolutional Pose Machine总结

    Convolutional Pose Machine总结 目录 文章目录 目录 Convolutional Pose Machine简介 算法详细分析 算法流程 训练阶段 使用阶段 创新点 数据集 效果展示 参考资料 博客 github C
  • Centos7 安装vm tools 工具 (命令行版本)

    一 准备工作 1 菜单栏安装VMware Tools 点击VMware菜单栏 虚拟机 选择 安装VMware Tools 如果安装了早期版本的VMware Tools 则菜单项为 更新VMware Tools 2 装载CD ROM 查看 虚
  • CentOS 安装redis及nginx报错:./configure: error: can not define uint32_t(yum及gcc都已安装)

    错误截图如下 解决方案如下 安装kernel headers yum install kernel headers kernel devel gcc make y
  • Git仓库代码迁移

    Git仓库代码迁移 前言 本文建立在已有 git 仓库地址存在的情况下 将当前 gitLab 仓库的代码迁移到另一个 gitLab 仓库中 或有其他更加简洁的方案 由于时间仓促 并未过多研究 还望大佬指点 以下操作如有不当 望指正 步骤 新
  • XGBoost股票预测

    XGBoost 极端梯度提升 Extreme Gradient Boosting XGBoost 有时候也直接叫做XGB 和GBDT类似 也会定义一个损失函数 不同于GBDT的是只会用到一阶导数信息 XGBoost会利用泰勒展开式把损失函数
  • React实现购物车基本功能(React-redux)

    本案例利用react redux实现购物车功能 概括有以下步骤 1 利用react redux操作商品的选中状态 2 全选与取消全选 3 动态reduce计算价格 4 结算取出商品id 演示网址 https zhangyongwnag gi
  • 连接失败_macOS下蓝牙键盘(Keychron K2)连接失败的解决办法

    笔者前段时间被各大科技博主种草购买了一个蓝牙键盘 Keychron K2 但使用经历并非一帆风顺 问题描述 问题1 笔者使用的系统是macOS Mojave 10 14 6 在我初次连接键盘的时候我就发现了一丝丝的不对劲 我按照说明 打开了
  • 1059 C语言竞赛(PAT 乙级 C++实现)

    1059 C语言竞赛 20 point s C 语言竞赛是浙江大学计算机学院主持的一个欢乐的竞赛 既然竞赛主旨是为了好玩 颁奖规则也就制定得很滑稽 0 冠军将赢得一份 神秘大奖 比如很巨大的一本学生研究论文集 1 排名为素数的学生将赢得最好
  • 区块链运作机制_区块链如何运作? 铂 2

    区块链运作机制 This article was originally published on Blockchain Review Thank you for supporting the partners who make SitePo