tinkerCAD案例:25. 量角器 - 测量角度
tinkerCAD案例:25. 量角器 - 测量角度
原文
Now we’re going to make a protractor! A Protractor is one of the most basic, but essential, tools for making measurements. It is, then, surprising that the modern protractor is barely over 200 years old.
现在我们要做一个量角器!量角器是用于进行测量的最基本但必不可少的工具之一。令人惊讶的是,现代量角器只有 200 多年的历史。
A protractor measures angles from a point, along two radiuses, one aligned with the bottom, and the next aligned with a mark made along the circumference of the protractor.
量角器从一个点开始,沿着两个半径测量角度,一个与底部对齐,下一个与沿量角器圆周的标记对齐。
Today, we’re going to explore the protractor, and through building it, gain a deeper understanding about using it.
今天,我们将探索量角器,并通过构建它,更深入地了解使用它。
We will be making extensive use of the Ruler Helper, perhaps in ways you have not done before. Therefore, it is important that we begin with it in the right place.
我们将广泛使用标尺助手,也许以您以前从未做过的方式。因此,重要的是我们在正确的地方开始。
It is common with most tools, on a computer or in the real world, to set up the work environment, first, so everything you’ll need will be at your disposal.在计算机上或现实世界中的大多数工具中,首先设置工作环境是很常见的,因此您需要的一切都可供您使用。
说明
-
Drag the Ruler Helper so that its Origin is at the center of the Workplane. Make sure to align the axes of the ruler tool to a major (thicker) grid line. Grid lines are 1mm apart and major grid lines happen every 10mm. Aligning this ruler helper to the major grid lines helps you make movement decisions faster.
拖动标尺助手,使其原点位于工作平面的中心。确保标尺工具的轴与主要(较粗)网格线对齐。网格线相距 1 毫米,主要网格线每 10 毫米出现一次。将此标尺帮助器与主要网格线对齐可帮助您更快地做出移动决策。
-
Today, we’ll be using the Ruler Helper in “Use midpoint” mode. We will not be able to set the mode until we have placed an object on the workplane. Drag out our first piece, a cylinder. We don’t need to worry about being precise in placement, the ruler helper will allow us to have fine grained control over the placement of objects.
今天,我们将在“使用中点”模式下使用标尺助手。在将对象放置在工作平面上之前,我们将无法设置模式。拖出我们的第一块,一个圆柱体。我们不需要担心放置的精确性,标尺助手将使我们能够对对象的放置进行精细化控制。
-
Select our new cylinder. You’ll notice a small triangle or arrow below the object, centered on its X axis. If you hover over the triangle, you’ll see the text ‘Use midpoint’ appear. If you click this, it will change the mode. The text will then change to ‘Use corner’ which will let you know you are in midpoint mode.
选择我们的新气缸。您会注意到对象下方有一个小三角形或箭头,以 X 轴为中心。如果将鼠标悬停在三角形上,则会看到“使用中点”文本。如果单击此按钮,它将更改模式。然后,文本将更改为“使用端点”,这将使您知道您处于中点模式。
-
You’ll now notice that the Ruler Helper measures from the origin to the center of the object. If you click on the measurements along the X and Y axes and set them to Zero, your object will move to be perfectly centered on the origin. Since we are designing a protractor, this will be the point from which all measurements, while using the protractor, will radiate.
现在,您会注意到标尺助手从对象的原点到中心进行测量。如果沿 X 轴和 Y 轴单击测量值并将其设置为零,则对象将移动到原点上完全居中。由于我们正在设计量角器,因此在使用量角器时,这将是所有测量值的辐射点。
- The basic form of a protractor is an arc with demarcations along its edge. In this step, we’ll make that arc.
量角器的基本形式是沿其边缘有分界线的弧形。在此步骤中,我们将创建该弧线。
说明
-
Resize your existing cylinder to be 150mm in diameter and 3mm along the Z axis. Then, make sure its center is 1.5mm above the workplane (1.5mm on the Z axis.) Remember, we are in midpoint mode, so the distance measure along the Z axis will be to the middle of the object, not the bottom.
将现有圆柱体的大小调整为 150 毫米直径和沿 Z 轴 3 毫米。然后,确保其中心在工作平面上方 1.5 毫米(Z 轴上为 1.5 毫米)。请记住,我们处于中点模式,因此沿 Z 轴的距离测量将位于物体的中间,而不是底部。
-
Drag another cylinder to the center of the other. You can’t see the grid lines, so just eyeball it, and then correct the position using the Ruler Helper.
将另一个圆柱体拖动到上一个圆柱体的中心。你看不到网格线,所以只需目视它,然后使用标尺助手校正位置。
-
Continue to the next step.
继续执行下一步。
-
We’ll want the edge of our protractor to be thin while keeping the rest of the protractor ridged. So what we’ll do is keep the body 3mm but taper the edge almost to a point. This type of feature is referred to as a beveled edge.
我们希望量角器的边缘很薄,同时保持量角器的其余部分有脊。因此,我们要做的是保持机身3毫米,但将边缘几乎逐渐变细。这种类型的特征称为斜边。Think of a bevel as cutting an sharp edge off to make two edges which are half as sharp.
将斜面视为切掉锋利的边缘,使两个边缘的锋利程度减半。
说明
-
Set the second cylinder to be 160mm in diameter and 20mm tall, then move its center to 11mm above the Workplane.
将第二个圆柱体的直径设置为 160 毫米,高 20 毫米,然后将其中心移动到工作平面上方 11 毫米处。
-
For the next few steps, I have set the cylinder to a hole just so we can see through it.
在接下来的几个步骤中,我将圆柱体设置为一个空心,以便我们可以透过它看到它。
-
Drag out a cone, but keep it outside of the cylinder so the cylinder won’t be in the way when we resize the cone.
拖出一个圆锥体,但将其放在圆柱体外部,这样当我们调整圆锥体大小时,圆柱体就不会碍事。
-
Continue to the next step.
继续执行下一步。
- Continued from previous step
从上一步继续
说明
-
Make the cone 150mm in diameter and 20mm tall. Move its center to 11mm off of the Workplane and center the cone to the origin.
使圆锥直径150mm,高20mm。将其中心移动到离工作平面 11 毫米的位置,并将圆锥体居中到原点。
-
Turn the cone in to a hole, and turn the cylinder in to a solid (color).
将圆锥体转入孔,然后将圆柱体转入实心(颜色)。
-
What we are now going to do is remove the cone from the larger cylinder. Select all the objects, then unselect the bottom cylinder, and press group.
我们现在要做的是从较大的圆柱体上取下锥体。选择所有对象,然后取消选择底部圆柱体,然后按组。
-
Turn this object in to a hole. You should now have a hole in the shape of a negative of a cone.
把这个物体变成一个洞。您现在应该有一个圆锥体负片形状的孔。
-
Group this shape and our first cylinder. This will make a bevel on our protractor.
将此形状和我们的第一个圆柱体分组。这将在我们的量角器上制作一个斜面。
-
Continue to the next step.
继续执行下一步。
- Now we’re going to cut the protractor in half to create the straight edge.
现在我们要把量角器切成两半,以创建直线边缘。
说明
-
Drag a box to the workplace and make it larger than half off the cylinder. I made mine 160mm by 80mm.
将一个盒子拖到工作场所,使其大于圆柱体的一半。我做了我的 160 毫米 x 80 毫米。
-
We will then center it on the X axis, but we will align the edge to the Y axis. To do this, take the box’s Y dimension and divide it in half. Use this number to move the box below the Y axis by making this value negative. In my case, the center of the box will be at -40mm on the Y axis.
然后,我们将它在 X 轴上居中,边缘与 Y 轴对齐。为此,请取盒子的 Y 尺寸并将其分成两半。使用此数字通过将此值设置为负数来将框移动到 Y 轴下方。在我的情况下,盒子的中心将在 Y 轴上的 -40mm 处。
-
Make this object a hole and then group it with the cylinder.
将此对象设置为孔,然后将其与圆柱体分组。
- The focal point of a protractor is where the two lines, which define an angle, meet. We need to make a space for the point to be visible so we are able to view the point from which the two lines radiate.
量角器的焦点是定义角度的两条线相交的地方。我们需要为该点创建一个可见的空间,以便我们能够查看两条线辐射的点。
说明
-
Create a cylinder that is 16mm in diameter and 3mm tall. Center it on the origin, and move the center of the cylinder 1.5mm above the workplane.
创建一个直径为 16 毫米、高 3 毫米的圆柱体。将其居中放在原点上,然后将圆柱体的中心移动到工作平面上方 1.5mm。
-
Group this object with the semi-circle.
将此对象与半圆分组。
-
Drag out a cone to the center of the ruler and rotate it 180° around the Y axis so that the point of the cone points in the negative direction along the Z axis.
将圆锥体拖到标尺的中心,并绕 Y 轴旋转 180°,使圆锥体的点沿 Z 轴指向负方向。
-
Make the cone 7mm tall and move it so it’s center is 2.5mm above the workplane.
使圆锥体高 7 毫米并移动它,使其中心在工作平面上方 2.5 毫米。
-
Turn the cone in to a hole and group everything.
将锥体转变为空心并对所有东西进行分组。
-
Continue to the next step.
继续执行下一步。
-
We’ll need a viewing window through which we read the lines when we are measuring.
我们需要一个观察窗口,当我们测量时,我们通过它读取线条。We have an opportunity, now, to customize your protractor. For instance, how thick do we want the straightedge rule and the protractor rule to be? I chose 15mm and 20mm, respectively, but you may make these features smaller, leaving more room for the window. I’ll show you how I came to my measurements so, if you like, you can calculate your own.
现在,我们有机会定制您的量角器。例如,我们希望直线刻度尺和量角器刻度尺有多粗?我分别选择了 15mm 和 20mm,但您可以使这些功能更小,为窗口留出更多空间。我将向您展示我是如何进行测量的,因此,如果您愿意,您可以自己计算。
说明
-
Drag out a new cylinder and center it to the origin along the X and Y axes. My protractor is 150mm in diameter, so to make a 20mm wide rule, I need to subtract 20mm from 150mm, twice (150-40=110mm). I made my cylinder 110mm in diameter.
拖出一个新圆柱体,并沿 X 轴和 Y 轴将其居中到原点。我的量角器的直径为150mm,因此要制定20mm宽的刻度尺,我需要从150mm中减去20mm,两次(150-40 = 110mm)。我把我的圆柱体的直径做了110毫米。------
-
Drag out a new box and center it to the origin along the X axis. Make it larger than half of the new cylinder. The critical dimension is the Y axes. I made my box’s Y axis dimension 74mm.
拖出一个新框,并沿 X 轴将其居中到原点。使其大于新圆柱体的一半。关键尺寸是 Y 轴。我使盒子的Y轴尺寸为74mm。------
-
To make a 15mm wide straightedge rule, divide the Y axis dimension of the box in half (74/2=37mm) and then subtract our desired dimension from this (37-15=22m). Move the center of this box to -22mm on the Y axis.
要制作 15mm 宽的直线尺,请将盒子的 Y 轴尺寸分成两半 (74/2=37mm),然后从中减去我们想要的尺寸 (37-15=22m)。将此框的中心移动到 Y 轴上的 -22mm。
- Continue to the next step.
继续执行下一步。
- Continued from previous step
从上一步继续
说明
1. Make the box a hole and group the new cylinder and the box together.
将盒子转变为空心,并将新圆柱体和盒子组合在一起。
------
2. Turn this new shape in to a hole and group it with the rest of the protractor.
将此新形状放入一个孔中,并将其与量角器的其余部分分组。
------
3. Continue to the next step.
继续执行下一步。
-
We now have a pristine protractor shape, but it isn’t very useful without degree demarcations. For ease of reading, we will make three styles of demarcation, one length for intervals of ten, a shorter length for measures ending in five, and the shortest length for all other measures.
我们现在有一个原始的量角器形状,但如果没有度数分界线,它就不是很有用。为了便于阅读,我们将制作三种分界方式,一种长度用于以 10 为间隔,较短的长度用于以 5 结尾的度量,最短长度用于所有其他度量。I am making my demarcations 10mm long, 8mm long, and 7mm long, respectively. If you’d like to customize yours, refer back to step 8!
我分别将分界线定为 10 毫米长、8 毫米长和 7 毫米长。如果您想自定义您的,请参阅步骤 8!
说明
- Drag out a box and make it 150mm along the X axis and 0.5mm along the Y axis.
拖出一个框,使其沿 X 轴 150 毫米,沿 Y 轴使其 0.5 毫米。
- Drag out another box and make it 130mm along the X axis. Make it 3mm tall (along the Z axis) and move its center so it is 1.5mm off of the workplane. Turn it in to a hole.
拖出另一个盒子,沿X轴使其为130mm。使其高 3 毫米(沿 Z 轴),并移动其中心,使其离工作平面 1.5 毫米。把它变成空心。
- Use the Align tool to center these objects to each other on the X and Y axes, and so they share lower Z limits.
使用对齐工具将这些对象在 X 轴和 Y 轴上彼此居中,以便它们共享较低的 Z 限制。
- Duplicate these shapes twice more so you have three sets total.
再复制这些形状两次,这样总共有三组。
- We will leave one of these pairs of objects alone, and we’ll use that for the degree intervals of 10.
我们将保留其中一对对象,我们将将其用于 10 的度间隔。
- Then, we will change one of the copies, for the intervals ending in 5, so that the hole is 134mm long.
然后,我们将更改其中一个副本,间隔以 5 结尾,使孔长 134 毫米。
- The last, for all other intervals, set the hole to be 136mm long.
最后一个,对于所有其他间隔,将孔设置为 136 毫米长。
- Then, group these pairs of objects. Do not group them all together, just each hole with its corresponding box so we have three separate objects.
然后,对这些对象对进行分组。不要将它们全部组合在一起,只需将每个孔及其相应的框组合在一起,因此我们有三个单独的对象。
- Continue to the next step.
继续执行下一步。
- Now we will rotate these new objects so that we can assemble them to define a single interval of demarcations from 1 to 10.
现在我们将旋转这些新对象,以便我们可以组装它们以定义从 1 到 10 的单个分界区间。
说明
-
Leave the object for measures at intervals of 10 degrees alone.
将对象留作单独测量的间隔为 10 度。 -
Take the object we made for the measures ending in 5 and rotate that shape about the Z axis in the positive (clockwise) direction by 5°.
以我们为以 5 结尾的测量值制作的对象,将该形状沿正(顺时针)方向绕 Z 轴旋转 5°。
- Take the object we made for all other measures and rotate it 1°, then duplicate it, then rotate the duplicate one degree, then duplicate it two more times.
拿我们为所有其他测量值制作的对象,将其旋转 1°,然后复制它,然后将复制品旋转一度,然后再复制两次。
- Duplicate these 4 objects and rotate them 5°. There should be a gap after the fourth mark.
复制这 4 个对象并将它们旋转 5°。第四个标记之后应该有一个间隙。
- Select all of these objects and align them to each other so that they all share the same center.
选择所有这些对象并将它们彼此对齐,以便它们都共享同一中心。
- Continue to the next step.
继续执行下一步。
- Now that we have one sequence of demarcations, it is easy to replicate them for every 10 degrees.
现在我们有一个分界序列,很容易每 10 度复制它们。
说明
- Look at this new group of objects from below the workplane. You should see something like what is above. Eight short marks, one medium mark, and one long mark.
从工作平面下方查看这组新对象。您应该看到类似上面的内容。8 个短标记、1 个中标记和一个长标记。
- Group these objects. 对这些对象进行分组。
- Continue to the next step.
继续执行下一步。
- We’re going to place and inspect the first group of demarcations.
我们将放置并检查第一组分界线。
说明
- Move this group so that its center is located at the origin, and above the workplane 11mm (11mm positive on the Z axis.)
移动此组,使其中心位于原点,工作平面上方 11mm(Z 轴上正 11mm)。
- If you look at the straight edge of the protractor, you should see that the longest of the demarcations is half on and half off the edge. This is EXACTLY where we want the mark.
如果你看一下量角器的直边,你应该看到最长的分界线一半在边缘上,一半在边缘上。这正是我们想要标记的地方。
- Continue to the next step.
继续执行下一步。
- We are going to duplicate and rotate the demarcations until we make a complete circle.
我们将复制和旋转分界线,直到我们形成一个完整的圆。
![在这里插入图片描述](https://img-blog.csdnimg.cn/21d19bca38ca4e86854b29730f270d04.png)
说明
-
Select the first group of demarcations and duplicate them.
选择第一组分界线并复制它们。 -
Rotate the duplicate demarcations by 10°.
将重复的分界线旋转 10°。
- Repeat this process until you have completed the arc.
重复此过程,直到完成弧形。
- Group all of the shapes which represent the demarcations and put this group in to hole mode.
将所有表示分界线的形状分组,并将该组置于孔模式。
- Finally, combine this group of shapes and the blank protractor in to one shape.
最后,将这组形状和空白量角器组合成一个形状。
- YOU WILL NOTICE that we have 180° of demarcations that will be cutting in to nothing.Why is this? Tinkercad allows us to rotate objects around their center. The challenge is, sometimes we want to rotate an object around a different point. So what we have done is extended the size of the object so that the point we wish to rotate the object around IS the center of the object.This will become more clear when we place our lettering.
你会注意到,我们有180°的分界线,将一无所获。这是为什么呢?Tinkercad允许我们围绕对象的中心旋转对象。挑战在于,有时我们想围绕不同的点旋转对象。因此,我们所做的是扩展对象的大小,以便我们希望围绕对象旋转的点是对象的中心。当我们放置刻字时,这将变得更加清晰。
- Continue to the next step.
继续执行下一步。
-
Lets take a moment to check if our demarcations are right.
让我们花点时间检查一下我们的划分是否正确。If you notice, the protractor is already doing its job. The focal point is on the origin, the straight edge is in line with the X axis, the measures for 0° and 180° are along the X axis. The measure for 90° is along the Y axis.
如果您注意到,量角器已经在做它的工作了。焦点在原点上,直边与 X 轴对齐,0° 和 180° 的测量值沿 X 轴。90° 的测量值沿 Y 轴。If this is true for your protractor, good job!
如果您的量角器是真的,那就干得好!
说明
- Continue to the next step.
继续执行下一步。
- Continue to the next step.
-
We are going to label this protractors increments of 10, starting with the 90 degree demarcation up at the top.
我们将标记这个量角器增量为 10,从顶部的 90 度分界线开始。Placing the text, formatting the text, and scaling the text are all arbitrary. What is key is that the text fits, is large enough to print, but is not so large that the text will crowd the neighboring text.
置入文本、设置文本格式和缩放文本都是任意的。关键是文本适合,足够大,可以打印,但不要太大以至于文本会挤占相邻的文本。
说明
-
Use the Text shape generator to create the first label, at the center most demarcation, and enter the text “90”.
使用文本形状生成器在最中心的分界处创建第一个标签,然后输入文本“90”。
-
Decide now if you want raised text, recessed text, or text that goes all the way through.
现在决定是要凸起的文本、凹陷的文本还是一直贯穿的文本。
-
If you want the text to cut all the way through your protractor, you will need to choose a stencil font, which 4. means a font that has bridges to hold the centers of lettering to the rest of the part. In the Text tool, Majorsnafu is the only stencil font in Tinkercad.
如果您希望文本一直剪切到量角器中,则需要选择模板字体,即 4。表示具有桥接以将字母中心固定到零件其余部分的字体。在文本工具中,Majorsnafu是Tinkercad中唯一的模板字体。
-
Position your font, along the Z axis, how you want it. I want recessed text, so I put the bottom of the text 1mm below the top surface of the protractor.
沿 Z 轴放置字体,按所需方式放置。我想要凹陷的文本,所以我将文本的底部放在量角器顶部表面下方 1 毫米处。
-
Continue to the next step.
继续执行下一步。
-
-
Now we need to rotate the text along the arc. This would be painstaking, but we just learned a trick to make this easy. Again, we are going to make sure that the text rotates, easily, around the origin.
现在我们需要沿弧线旋转文本。这将是艰苦的,但我们刚刚学会了一个技巧来简化它。同样,我们将确保文本轻松地围绕原点旋转。
说明
-
Drag a block to the origin of the Ruler Helper
将块拖动到标尺助手的原点
-
Resize it to so that it’s length along the Y axis is 150mm.
调整其大小,使其沿 Y 轴的长度为 150 毫米。
-
Position the block so that it is completely beneath the workplane (the top of the block is at a negative Y Value.)
放置块,使其完全位于工作平面下方(块的顶部为负 Y 值)。
-
Make sure the object is centered (that the center of the object has an X and Y positional value of 0.)
确保对象居中(对象的中心的 X 和 Y 位置值为 0。
-
This new object is our Rotational Helper
这个新对象是我们的旋转助手
-
Group your lettering and your Rotational Helper together.
将您的字母和轮换助手组合在一起。
-
Continue to the next step.
继续执行下一步。
-
-
Like with the demarcations, we are going to rotate the lettering around the origin, but unlike the demarcations, the lettering is completely outside of the origin. Therefore, to make the rotation easy, we added the lettering to a group which DOES have a center which coincides with the origin, at least on the X and Y axis.
与分界线一样,我们将围绕原点旋转字母,但与分界线不同的是,字母完全在原点之外。因此,为了使旋转变得容易,我们将字母添加到一个组中,该组确实有一个与原点重合的中心,至少在 X 和 Y 轴上。
说明
-
Duplicate the group with the lettering
Duplicate字母组
-
Rotate the lettering 10° 将字体旋转 10°
-
Repeat in both directions in 10° increments
以 10° 为增量在两个方向上重复
-
Continue to the next step.
继续执行下一步。
-
-
Our Rotational Helper has done its job. It is now time to remove it.
我们的轮换助手已经完成了它的工作。现在是时候删除它了。
说明
-
Ungroup the lettering groups.
取消字母组的分组。
-
Delete all of the Rotational Helpers.
删除所有轮换助手。
-
Continue to the next step.
继续执行下一步。
-
-
Now, we just need to edit the lettering to match the angular measure.
现在,我们只需要编辑字母以匹配角度测量值。
说明
-
Change the lettering to match your desired numbering scheme.
更改字母以匹配所需的编号方案。
-
If you want to make stencils or recessed text, turn the text objects in to holes.
如果要制作模具或凹陷文本,请将文本对象转换为孔。
-
Group the lettering and the protractor.
对字母和量角器进行分组。
-
Continue to the next step.
继续执行下一步。
-
-
This object, which is nearly completely flat, will not have a problem printing. Depending on the size of your lettering, the lettering may not be clear. You may have to scale the object or your lettering to be larger so that the lettering prints clearly.
这个对象几乎完全平坦,打印不会有问题。根据字体的大小,字体可能不清晰。您可能需要将对象或字体缩放得更大,以便清楚地打印字体。
说明
-
From the Design menu, click ‘Download for 3D Printing’.
从“设计”菜单中,单击“下载以进行 3D 打印”。
-
Click the button labeled ‘STL’.
单击标有“STL”的按钮。
-
When your browser has completed downloading, load the file in to your 3D printer software.
浏览器完成下载后,将文件加载到 3D 打印机软件中。
-
This object doesn’t require any special settings.
此对象不需要任何特殊设置。
-
Print!
-
相关文章:
![](https://img-blog.csdnimg.cn/ff192303f5ea4826b0871d40a13a711a.png)
tinkerCAD案例:25. 量角器 - 测量角度
tinkerCAD案例:25. 量角器 - 测量角度 原文 Now we’re going to make a protractor! A Protractor is one of the most basic, but essential, tools for making measurements. It is, then, surprising that the modern protractor is barely over 200 years ol…...
![](https://img-blog.csdnimg.cn/bd36e8520ecf4ba8b61cbfd4e7a85295.gif)
Flutter 使用texture_rgba_renderer实现桌面端渲染视频
Flutter视频渲染系列 第一章 Android使用Texture渲染视频 第二章 Windows使用Texture渲染视频 第三章 Linux使用Texture渲染视频 第四章 全平台FFICustomPainter渲染视频 第五章 Windows使用Native窗口渲染视频 第六章 桌面端使用texture_rgba_renderer渲染视频(本…...
![](https://www.ngui.cc/images/no-images.jpg)
linux虚拟机开机后桌面显示CentOS-7.5-x86盘片文件,并且无法远程连接虚拟机?
在虚拟机启动后遇到了显示CentOS-7.5-x86光盘片文件的问题,并且无法远程连接到虚拟机,有几个可能的解决方法: 检查虚拟机设置:确保虚拟机的网络适配器已正确配置,并且虚拟机配置的网络选项是桥接模式或 NAT 模式&#…...
![](https://img-blog.csdnimg.cn/8a014edcdc484fb4aa861c0859c94ad8.png)
【Spring Boot 源码学习】走近 AutoConfigurationImportSelector
AutoConfigurationImportSelector 源码解析 引言主要内容1. ImportSelector 接口2. DeferredImportSelector 接口3. AutoConfigurationImportSelector 功能概述 总结 引言 上篇博文我们了解了 EnableAutoConfiguration 注解,其中真正实现自动配置功能的核心实现者 …...
![](https://www.ngui.cc/images/no-images.jpg)
系统学习Linux-MySQL数据库备份(四)
一、概述 数据库备份是指将数据库中的数据、表格、视图、存储过程、触发器等信息备份到另一个地方,一遍在数据库丢失或损坏时进行恢复,数据库备份是数据库管理中必不可少的一项工作,通过备份可以保护数据库中的数据和业务。 二、数据备份的…...
![](https://img-blog.csdnimg.cn/9c53983dd8c847509b434d1de3825375.png#pic_center)
具身智能controller---RT-1(Robotics Transformer)(中---实验介绍)
6 实验 实验目的是验证以下几个问题: RT-1可以学习大规模指令数据,并且可以在新任务、对象和环境上实现zero-shot的泛化能力?训练好的模型可以进一步混合多种其他数据(比如仿真数据和来自其他机器人的数据)吗?多种方…...
![](https://www.learnfk.com/guide/images/wuya.png)
无涯教程-jQuery - load( url, data, callback)方法函数
load(url,data,callback)方法从服务器加载数据,并将返回的HTML放入匹配的元素中。 load( url, [data], [callback] ) - 语法 [selector].load( url, [data], [callback] ) 这是此方法使用的所有参数的描述- url - 包含请求发送到…...
![](https://www.ngui.cc/images/no-images.jpg)
【Shell】Shell编程之免交互
免交互:不需要人为控制就可以完成的自动化操作 自动化运维 Shell脚本和免交互是一个概念,但是两种写法 here document 使用i/o重定向的方式将命令的列表提供给交互式的程序或者命令 是一种标准输入,只能接受正确的指令或命令&#x…...
![](https://img-blog.csdnimg.cn/a4a19be56326415ea71b4fd78652b53f.png)
从Vue2到Vue3【七】——Vue2中响应式原理的实现及其缺陷
系列文章目录 内容链接从Vue2到Vue3【零】Vue3简介从Vue2到Vue3【一】Composition API(第一章)从Vue2到Vue3【二】Composition API(第二章)从Vue2到Vue3【三】Composition API(第三章)从Vue2到Vue3【四】C…...
![](https://img-blog.csdnimg.cn/af698a3d0cea4147a99cc98058ba5a9b.png)
用C语言实现堆排序算法
1.设计思路 排序的思想将一个数组按递增的顺序进行排序,将数组的第一个位置空下(下标为0),因为会导致子节点和本身同一个结点(i和2i一致),每次堆排序在下标1的位置放上了最大值,然后…...
![](https://img-blog.csdnimg.cn/b02134bfb5b84d4b87e09de09822be87.png)
tauri在github上进行自动更新打包并发版过程,实战操作避坑
从网上找了很多很多的文章,结果还是入坑了,一个问题找了一天才解决: Error A public key has been found, but no private key. Make sure to set TAURI_PRIVATE_KEY environment variable. 596 ELIFECYCLE Command failed with exit code…...
![](https://img-blog.csdnimg.cn/ac3d36e884a44c7cbc930f51e268d840.png)
css中flex后文本溢出的问题
原因: 为了给flex item提供一个合理的默认最小尺寸,flex将flex item的min-width 和 min-height属性设置为了auto flex item的默认设置为: min-width: auto 水平flex布局 min-height:auto 垂直flex布局 解决办法&…...
![](https://www.ngui.cc/images/no-images.jpg)
restful接口设计规范[仅供参考]
1. 域名 应该尽量将API部署在专用域名之下。 https://api.example.com 如果确定API很简单,不会有进一步扩展,可以考虑放在主域名下。 https://www.example.org/api/2. 版本(Versioning) 应该将API的版本号放入URL。 http://…...
![](https://img-blog.csdnimg.cn/ddc572a844664775979884df6c70c33b.png)
Metabase 远程代码执行(CVE-2023-38646)
漏洞描述 Metabase是一款开源数据分析及可视化工具。它可允许用户连接至各种不同类型数据源,未经身份认证的攻击者可利用本漏洞在服务器上以运行 Metabase服务器的权限进行任意命令执行。 免责声明 技术文章仅供参考,任何个人和组织使用网络应当遵守宪法法律,遵守公共秩…...
![](https://img-blog.csdnimg.cn/8aba1c9868ca44b0a0a9670d0ced4921.png)
【TiDB理论知识 07】SQL执行流程
一 DML语句读写流程 1 DML语句读流程概要 用户发出SQL 被协议层接收 Protocal Layer 通过PD获取时间戳 parse模块 解析SQL,通过词法解析 与 语法解析 生成AST语法树 编译SQL Compile模块 ,区分点查 与 非点查,生成执行计划 发送给Executor,从TIKV获…...
![](https://img-blog.csdnimg.cn/a09d9bf3cb10417a9e3742ab2f7ed448.png)
微服务——服务异步通讯RabbitMQ
前置文章 消息队列——RabbitMQ基本概念容器化部署和简单工作模式程序_北岭山脚鼠鼠的博客-CSDN博客 消息队列——rabbitmq的不同工作模式_北岭山脚鼠鼠的博客-CSDN博客 消息队列——spring和springboot整合rabbitmq_北岭山脚鼠鼠的博客-CSDN博客 目录 Work queues 工作队列…...
![](https://www.ngui.cc/images/no-images.jpg)
事件冒泡、事件捕获和事件委托
原文合集地址如下,有需要的朋友可以关注 本文地址 合集地址 什么是事件冒泡、事件捕获和事件委托? 事件冒泡(Event Bubbling)、事件捕获(Event Capturing)和事件委托(Event Delegation&…...
![](https://www.ngui.cc/images/no-images.jpg)
WEB 典型安全功能说明
WEB 典型安全功能 认证Authentication 认证是指通过验证用户的身份来确认用户是否有权访问某个系统或资源。在Web安全中,认证是非常重要的一环,它可以防止未经授权的访问,保护用户的数据和系统的安全。 登录 登录是用户认证的常见方式之一…...
![](https://img-blog.csdnimg.cn/f97993789cd445b18ac56f3f18a235c7.png)
SQL编译优化原理
最近在团队的OLAP引擎上做了一些SQL编译优化的工作,整理到了语雀上,也顺便发在博客上了。SQL编译优化理论并不复杂,只需要掌握一些关系代数的基础就比较好理解;比较困难的在于reorder算法部分。 文章目录 基础概念关系代数等价 j…...
![](https://www.ngui.cc/images/no-images.jpg)
qt signal slots lambda
这里用到了qt的版本检测 连接 Combox的currentIndexChanged事件 emit来触发处理的事件 ,进行业务或逻辑处理 这样的写法是lambda表达式的写法,和c#中的 (obj)>{ //todo } 类同 [](int indx){ //todo } #if QT_VERSION > QT_VERSION_CHECK(5,7,0)c…...
![](https://www.ngui.cc/images/no-images.jpg)
Spring【声明式事务】
事务简介 把一组业务当成一个业务来做;要么都成功,要么都失败!事务在项目开发中,十分重要,涉及到数据一致性的问题,需要十分注意!确保完整性和一致性! 事务的ACID原则:…...
![](https://img-blog.csdnimg.cn/f2e34c9fba1242f69cd2c83ce5edb8b0.jpeg#pic_center)
【雕爷学编程】MicroPython动手做(17)——掌控板之触摸引脚2
知识点:什么是掌控板? 掌控板是一块普及STEAM创客教育、人工智能教育、机器人编程教育的开源智能硬件。它集成ESP-32高性能双核芯片,支持WiFi和蓝牙双模通信,可作为物联网节点,实现物联网应用。同时掌控板上集成了OLED…...
![](https://img-blog.csdnimg.cn/a2323da614824c9a9f3745ec180abd49.png)
pytorch 中 view 和reshape的区别
在 PyTorch(一个流行的深度学习框架)中, reshape 和 view 都是用于改变张量(tensor)形状的方法,但它们在实现方式和使用上有一些区别。下面是它们之间的主要区别: 实现方式: reshap…...
![](https://img-blog.csdnimg.cn/10e0091b2b044184bed46e5cde6be29d.png)
认识数组指针
文章目录 数组指针的定义数组指针的应用 数组指针的定义 类比 整形数组——存放整形的数组 指针数组——存放指针的数组 整形指针——存放整形地址的指针 数组指针——存放数组地址的指针 深度理解 在之前我们知道:数组名表示首元素地址,但是有…...
![](https://img-blog.csdnimg.cn/12aeef02c4ad4942bc18de15c98b1171.png)
SSM面试题-Spring容器的启动流程
解答: 1. BeanDefinitionReader读取配置文件(xml yml properties),创建BeanDefinition(存储bean的定义信息) 2. 配置文件读取成功后,将相应的配置转换成 BeanDefinition 的对象实例保存在DefaultListableBeanFactory#beanDefinitionMap 中 3. 根据配置的 BeanFacto…...
![](https://www.ngui.cc/images/no-images.jpg)
Vue 3:玩一下web前端技术(八)
前言 本章内容为VUE基础与相关技术讨论。 上一篇文章地址: Vue 3:玩一下web前端技术(七)_Lion King的博客-CSDN博客 下一篇文章地址: (暂无) 一、基础 官方文档:创建一个 Vue…...
![](https://img-blog.csdnimg.cn/5a53961fd79449eb88ab58db9c684680.png)
AI绘画Stable Diffusion原理之Autoencoder-Latent
前言 传送门: stable diffusion:Git|论文 stable-diffusion-webui:Git Google Colab Notebook:Git kaggle Notebook:Git 今年AIGC实在是太火了,让人大呼许多职业即将消失,比如既能帮…...
![](https://www.ngui.cc/images/no-images.jpg)
C++核心知识点总结
学习一门新的程序设计语言得到最好方法就是练习编写程序! C基础 变量和基本类型 基本内置类型 定义解释 算术类型 整型:包括字符和布尔类型,bool、char、wchar_t、char16_t、char32_t、short、int、long、long long、 浮点型:…...
![](https://img-blog.csdnimg.cn/47723dbb3ed141c493ffe5241fcc9d31.png)
echart折线图,调节折线点和y轴的间距(亲测可用)
options代码: options {tooltip: {trigger: axis, //坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。},xAxis: {type: category,//类目轴,适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。…...
![](https://img-blog.csdnimg.cn/8d606ca66f214e10bf2f76137f0fb55b.png)
Power BI-云端报表定时刷新--ODBC、MySQL、Oracle等其他本地数据源的刷新(二)
ODBC数据源 一些小众的数据源无法直接连接,需要通过微软系统自带的应用“ODBC数据源”连接。 1.首次使用应安装对应数据库的ODBC驱动程序,Mysql的ODBC驱动需要手动安装 2.在web服务中进行数据源的配置 Mysql数据源 1.Powerbi与Gateway第一次连SQL…...
做视频赚钱的网站有哪些/灰色seo关键词排名
问:怎么看CPU的位数? 答:使用例如EVEREST、鲁大师等此类软件能够检测到,以下以我电脑的截图来分析一下: 以上表示既支持32位系统,又支持64位系统; 问:我们说的32位操作系统指的是什么…...
![](https://img-blog.csdnimg.cn/20210722101413417.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2FnZ3MxOTkw,size_16,color_FFFFFF,t_70)
开办时 网站建设费 科目/天津百度seo推广
一、安装ubuntu20.04 安装方法很多,笔者不再重复编写,笔者使用VMware新建一个虚拟机,然后安装ubuntu20.04 注:笔者使用VMware16,安装后发现无法正常运行vmware tool,请读者自行测试 二、安装如下工具包 #安装所需要的gcc编译器…...
![](/images/no-images.jpg)
在哪里可以学做网站/100个电商平台
Matplotlib ——(分解) Matrix Plot Library 矩阵 绘图 库 一个极其强大的Python绘图库。官网:matplotlib.org 很少的代码即可绘制2D/3D,静态/动态等各种图形 一般常用的是它的子包:PyPlot,提…...
![](https://www.oschina.net/img/hot3.png)
做陶瓷公司网站/网络游戏推广员是做什么的
2019独角兽企业重金招聘Python工程师标准>>> Gitlab安装后,使用http方式推送时,报“RPC failed; result22, HTTP code 413” 通过百度和谷歌,发现是因为nginx默认情况下,允许最大的上传文件大小只有1M,因此…...
![](https://img-blog.csdnimg.cn/img_convert/a9def4c090b570f69b8d4947945b67d6.png)
西安专业建网站/电脑培训学校能学什么
原标题:盘点:简单好用的录音APP有哪些?本文为「智活范」原创作品,欢迎关注我们!前段时间去跟一个采访,因为过程中要录音,遂找人介绍了一款录音APP来用。当时用下来觉得录音体验没问题࿰…...
![](https://img-blog.csdnimg.cn/20210615085214621.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L20wXzUxMzA0NTY4,size_16,color_FFFFFF,t_70)
网站的界面设计怎么做/昆明seo技术培训
需求描述 本次实验需要了解到RDD编程的基础知识,明白RDD是Spark的核心概念,它是一个只读的、可分区的分布式数据集,这个数据集可全部或部分缓存在内存中,在多次计算间重用。其中包括RDD的创建、操作API、持久化和分区等。 熟悉Sp…...