apt-get install究竟安装了什么?(What exactly is installed with apt-get install?)
我正在尝试在我的VPS上安装Owncloud,我遇到了从版本8迁移到版本9的问题。所以我决定
apt-get purge owncloud && apt-get install owncloud
以获得全新安装。坏消息是我的配置仍在那里,某处。 我完全不知道
apt-get install
安装了什么,更重要的是,在哪里。如果我有这些信息,我可以弄清楚我的配置在哪里,以及如何重新配置Apache以指向我的新自己的云安装。
编辑
我目前的问题是我完全不知道wwwroot的安装位置。 在
/usr/share/
我什么都没有/var/www
。 知道使用apt-get安装的内容可能非常有用......I am trying to install Owncloud on my VPS and I had issues with the migration from version 8 to version 9. So I decided to
apt-get purge owncloud && apt-get install owncloud
to get a fresh installation.The bad news is my configuration is still there, somewhere. I have absolutely no idea what is installed with
apt-get install
and, more important, where.If I have this information I can figure out where is my config and how to reconfigure Apache to point to my new owncloud installation.
EDIT
My current issue is that I have absolutely no idea where the wwwroot is installed. I have nothing inside
/var/www
neither in/usr/share/
. Knowing what was installed using apt-get might be very useful...
原文:https://stackoverflow.com/questions/38698496
最满意答案
您需要为每个矩形抓取x / y分钟/最大值,并使用以下值构建矩形:
using System.Linq; using System.Windows; internal class Class1 { public Class1() { var rect1 = new Int32Rect(10, 10, 10, 10); var rect2 = new Int32Rect(30, 30, 10, 10); var rect3 = new Int32Rect(50, 50, 10, 10); var rect4 = new Int32Rect(70, 70, 10, 10); var int32Rects = new[] { rect1, rect2, rect3, rect4 }; var int32Rect = GetValue(int32Rects); } private static Int32Rect GetValue(Int32Rect[] int32Rects) { int xMin = int32Rects.Min(s => s.X); int yMin = int32Rects.Min(s => s.Y); int xMax = int32Rects.Max(s => s.X + s.Width); int yMax = int32Rects.Max(s => s.Y + s.Height); var int32Rect = new Int32Rect(xMin, yMin, xMax - xMin, yMax - yMin); return int32Rect; } }
结果:
{10,10,70,70}
You need to grab x/y mins/maxs for each rectangle and build a rectangle out of these values:
using System.Linq; using System.Windows; internal class Class1 { public Class1() { var rect1 = new Int32Rect(10, 10, 10, 10); var rect2 = new Int32Rect(30, 30, 10, 10); var rect3 = new Int32Rect(50, 50, 10, 10); var rect4 = new Int32Rect(70, 70, 10, 10); var int32Rects = new[] { rect1, rect2, rect3, rect4 }; var int32Rect = GetValue(int32Rects); } private static Int32Rect GetValue(Int32Rect[] int32Rects) { int xMin = int32Rects.Min(s => s.X); int yMin = int32Rects.Min(s => s.Y); int xMax = int32Rects.Max(s => s.X + s.Width); int yMax = int32Rects.Max(s => s.Y + s.Height); var int32Rect = new Int32Rect(xMin, yMin, xMax - xMin, yMax - yMin); return int32Rect; } }
Result:
{10,10,70,70}
相关问答
更多-
回答我自己的问题......是的, View.getLocationOnScreen()了诀窍。 例如, private boolean isViewContains(View view, int rx, int ry) { int[] l = new int[2]; view.getLocationOnScreen(l); int x = l[0]; int y = l[1]; int w = view.getWidth(); int h = view.ge ...
-
使用NSLayoutManager获取String的Bounding Rectangle(Get Bounding Rectangle of String with NSLayoutManager)[2022-04-22]
经过几天的测试后,Jut自己回答了这个问题:不,不幸的是,没有更快的方式使用布局管理器。 使用CoreText似乎也快了两倍,但CoreText本身也有一些令人讨厌的问题。 Jut answering this myself after a few days of testing: no, unfortunately there is no faster way using layout-managers. Using CoreText seems too be about twice as fast, b ... -
我更喜欢TextLayout#getBounds() ; 但是如果你已经有一个Graphics上下文, FontMetrics的字符串边界方法很方便。 I prefer TextLayout#getBounds(); but if you already have a Graphics context, the string bounds methods of FontMetrics are convenient.
-
尝试将PathFigureCollection包含在PathGeometry对象中,然后可以通过Bounds属性访问边界矩形。 例 var geometry = new PathGeometry { Figures = new PathFigureCollection() }; var boundingRect = geometry.Bounds; Try to include your PathFigureCollection in a PathGeometry object, and then ...
-
你可以看看R-Trees Java代码 还有一个wiki,但只能发布一个链接;-) You could look at R-Trees Java code there's also a wiki, but can only post one link ;-)
-
您需要为每个矩形抓取x / y分钟/最大值,并使用以下值构建矩形: using System.Linq; using System.Windows; internal class Class1 { public Class1() { var rect1 = new Int32Rect(10, 10, 10, 10); var rect2 = new Int32Rect(30, 30, 10, 10); var rect3 = new Int3 ...
-
用一个循环而不是4个,你可以这样做: cv::Rect result = rects[0]; for (int i = 1; i != rects.end(); ++i) { result.tl().x = std::min(result.tl().x, rects[i].tl().x); result.tl().y = std::min(result.tl().y, rects[i].tl().y); result.br().x = std::max(result.br().x, ...
-
点(x 1 ,y 1 )旋转到(x1cosθ - y1sinθ,x1sinθ+ y1cosθ),而点(x 2 ,y 2 )旋转到(x 2cosθ - y 2sinθ,x2sinθ+ y2cosθ)。 其他两点可以相应地计算。 边界反应角的坐标是(x 3 ,y 3 )和(x 4 ,y 4 ),其中x 3是所有新x坐标中的最小坐标,y 3是所有新y坐标中的最小坐标,x 4是最大的y坐标所有新的y坐标和y 4是所有新y坐标中最大的坐标。 哪个角产生最小的x(依此类推)取决于您的角度或旋转。 对于0°至90°的角度 ...
-
更新矩形列表(Updating a rectangle list)[2023-07-30]
你可以这样做: Rectangle temp = RectList[0]; temp.Width = 100; temp.Height = 100; temp.X = 0; temp.Y=0; RectList[0] = temp; You can do this: Rectangle temp = RectList[0]; temp.Width = 100; temp.Height = 100; temp.X = 0; temp.Y=0; RectList[0] = temp; -
调用Invalidate方法不会立即引发Paint事件。 它仅将指定区域设置为无效并对绘制事件进行排队。 下一次调用Invalidate只会将该区域与以前无效的区域相加。 仅当队列中没有Paint事件时,它才会发出新的Paint事件。 从Invalidate方法的备注部分: 调用Invalidate方法不会强制执行同步绘制; 要强制执行同步绘制,请在调用Invalidate方法后调用Update方法。 如果在没有参数的情况下调用此方法,则会将整个客户端区域添加到更新区域。 更多解释: Windows For ...