我们正在考虑将Alfresco Enterprise 3.4.1降级为Alfresco社区.
我已经习惯了Alfresco Enterprise,但我没有社区版的经验.
我们正在使用EMC,Alfresco Explorer和我们自己的基于Web Services API和Foundation API的开发.
我担心数据库迁移.我可以简单地配置Alfresco Community 3.4.e以将我们的Oracle数据库用于Alfresco Enterprise 3.4.1吗?架构是否与社区和企业版本兼容?我应该使用哪个版本的Alfresco社区?3.4.e?分布之间的降级路径是什么?这两个版本的版本之间是否存在任何对应关系?
任何降级经验,指南或任何相关信息都将受到欢迎.
我想根据中心列表和图像尺寸生成Voronoi区域。
我尝试了基于https://rosettacode.org/wiki/Voronoi_diagram的下一个代码
def generate_voronoi_diagram(width, height, centers_x, centers_y):
image = Image.new("RGB", (width, height))
putpixel = image.putpixel
imgx, imgy = image.size
num_cells=len(centers_x)
nx = centers_x
ny = centers_y
nr,ng,nb=[],[],[]
for i in range (num_cells):
nr.append(randint(0, 255));ng.append(randint(0, 255));nb.append(randint(0, 255));
for y in range(imgy):
for x in range(imgx):
dmin = math.hypot(imgx-1, imgy-1)
j = -1
for i in range(num_cells):
d = math.hypot(nx[i]-x, ny[i]-y)
if d < dmin:
dmin = d
j = i
putpixel((x, y), (nr[j], ng[j], nb[j]))
image.save("VoronoiDiagram.png", "PNG")
image.show()
Run Code Online (Sandbox Code Playgroud)
我有所需的输出: …