ITeye博客

一个IT男的历程

qq85609655 · 共 379 篇文章

Open edX架构

好东西,记录下 平台服务端源代码主要基于 Python 编写,在浏览器端主要是通过 Javascript 实现,在Web应用层框架基于 Django 框架下的Mako模版系统开发,它的体系结构设计模块化,方便开发和插入新的组件。 平台的代码位于 github 上。主仓库是 edx-platform ,它涵盖了LMS 和Studio(或 CMS)。还包括 XBlocks课件组件。Open edX的工作原理极具可扩展性。大量的模块及其各自的数据库可以在单独的机器上运行并可以轻松地进行缩放。

2021-10-08 09:28 · 评论(0)

Pentaho Ctools 读取数据

1. 读取数据,分别设置category、series、value,其中indexes为CDA返回的数据的列 function f() { this.chartDefinition.readers = [ {names: 'category', indexes: 0 }, {names: 'series', indexes: 1 }, {names: 'value', indexes: 2 } ]; } 2. 读取数据有哪些列,再分别设置category、series、value function f() { // 对CDA返回列进行设置,例如修改数据类型,进行格式化: this.chart…

2020-04-12 20:04 · pentaho · 评论(0)

ClassNotFoundException: pt.webdetails.cdf.dd.DashboardCacheKey

.. Could not load dashboard: java.lang.ClassNotFoundException: pt.webdetails.cdf.dd.DashboardCacheKey I figured out a workaround with this bug. I changed the file /pentaho-server/pentaho-solutions/system/pentaho-cdf-dd/ehcache.xml on the pentaho-cde cache by adding the maxElementsInMemory to 5000 a…

2020-04-09 14:28 · pentaho · 评论(0)

pentaho ctools cde 插件BTable format

问题:pentaho ctools cde 插件BTable 对维度进行格式化,这个需求很少见,因为维度一般都是字符串,但遇到维度是浮点数值型的时候,就需要对维度进行格式化 修改BTable插件的代码如下: BTable 使用的Table %.2f bt.table.js 191行代码,添加对维度值的类型colType设置 $.each(normalizedJson.metadata, function(i, v) { var colName = v.colName; if(colName.indexOf("]/[") > 0 || $.inArray(colName, measureQua…

2020-04-08 08:44 · pentaho · 评论(0)

Drawing a horizontal "target" line on a bar graph

1. 第二种方法: put in Extension Points Arg:plot_add Value: function() { var panel = new pv.Panel() .zOrder(999) .def('b0', function() { var ccc = this.getContext(); var scale = ccc.chart.axes.ortho.scale; var li = ccc.panel._layoutInfo; return li.paddings.bottom + scale(y_value); }); panel.add(pv.Rule) …

2020-04-02 19:17 · pentaho · 评论(0)

Chrome 80 SameSite

新项目要嵌入之前的一个项目,而且该被嵌入项目之前提供给第三方使用,他们也是用的iframe。以前都是好的,但是现在发现要是iframe的地址和父级的地址不同源,项目登录时无法设置cookie。 一开始以为后端出问题了,后来换火狐、ie edge 都是可以的,并且其他人的Chrome也有可以用的。 并且接口设置cookie时提示:“this set-cookie didnot specify a "sameSite" attribute and was defaulted to "sameSite=Lax" and broke the same rules specified in the S…

2020-03-31 15:29 · pentaho · 评论(0)

Pentaho Ctools to change CDEdashboard tooltip

to change CDEdashboard tooltip, add this function in to Post Fetch. function f(data) { // Configure the category dimension // See http://webdetails.github.io/ccc/charts/jsdoc/symbols/pvc.options.charts.Chart.html#dimensions this.chartDefinition.dimensions = { series: { label: '题号' // , isHidden: tr…

2020-03-30 14:46 · pentaho · 评论(0)

Pentaho Ctools 参数传递

参数联动过程中,需要将参数设置为 Custom Parameter examFilterParam 属性: Public True 参数设置,有两种: 1. Custom Parameter examFilterParam Javascript code: function f(dashboard1) { function getQueryParameter(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(re…

2020-03-24 10:45 · pentaho · 评论(0)

Pentaho Analysis Editor

插件phase - Pentaho Analysis Editor 无法打开已经配置的维度模型,修改如下: 1. pentaho-server-ce-8.3.0.0-371\pentaho-server\pentaho-solutions\system\phase\resources\js\Pham.js 空串: 添加一个判断: if(item==='') { continue; } 如下: getDataSourceInfo: function(options){ var oldSuccess = options.success; var scope = options.scope || …

2020-03-09 16:40 · pentaho · 评论(0)

Object type TemplateComponent can't be mapped to a valid class

背景: Object type TemplateComponent can't be mapped to a valid class TemplateComponent 在 pentaho cde 下,不选择RequireJS Support ,无法使用。 如果选中,又会造成其他问题,D3、FusionCharts等第三方插件无法使用。 分析源码发现,TemplateComponent并没有放入到cdf-bootstrap-script-includes.js中。故对源码进行修改... pentaho的cdf-bootstrap-script-includes.js文件,通过resource…

2020-02-24 15:22 · pentaho · 评论(0)

pentaho marketplace 无法显示插件列表的解决方法

原创文章,转载请注明出处: https://www.iteye.com/blog/qq85609655-2512523 pentaho 安装插件,打开marketplace, 主要访问的是 http://marketplace.pentaho.com/marketplace-plugins.xml 这个链接地址自动跳转到https://raw.github.com/pentaho/marketplace-metadata/master/marketplace.xml 目前无法访问,通过链接,我们知道是github的pentaho/marketplace-metadata项目 尝试访问mark…

2020-02-21 18:31 · pentaho · 评论(0)

软件项目如何验收

软件项目合同签订后,软件合同的作用是什么? 我们需要根据紧贴合同的功能进行交付吗?合同的意义是什么? 合同的意义在实际过程中,可能只是一个形式,在发生意外的情况下,通过合同来约束双方的权利和义务。 软件本身只是一个工具,或者说是服务,交付给客户的是交付价值,合同是保证了双方价值的交换。 合同作为一种书面文本描述了双方交换价值的产物,随着时间的发展,客户和服务方的认知也在不断变化,合同约定的价值也许已经过时。那么这个时候,有必要提供更好的服务给客户,如果客户能够认同的情况下,交付的价值是可以变更的。 还有一种情况,客户提供的验收标准非常的苛刻。作为服务方难以满足达到客户的验收标准,那么我们该怎…

2020-01-15 14:17 · 评论(0)

Pentaho Ctools Table显示交叉表

Pentaho的CDE显示交叉表格 原来以为Table Component只能显示二维表格,但是在《Learning Pentaho CTools(PACKT,2016).pdf》看到交叉表(第6单元) . MDX: WITH MEMBER [Measures].[Trend] as IIF(ISEMPTY(([Time].CURRENTMEMBER.lag(1), [Measures].[Sales])) OR [Measures].[Sales]=0, 0, ([Measures].[Sales]- ([Time].CURRENTMEMBER.lag(1), [Measures].[Sa…

2019-12-09 15:42 · pentaho · 评论(0)

Pentaho Ctools 动态布局

原创文章,转载请注明出处: http://qq85609655.iteye.com/blog/2444142 Pentaho 社区版 8.2 终于提供了动态布局插件LayoutEditor 下载地址: 下载后 有bug无法正常使用, cd /opt/pentaho/pentaho-server vim pentaho-solutions/system/layoutEditor/resources/amd-components/LayoutEditor/resources/js/editor.js 变量名包点号(.),需要替换: $elem.data('group').replace(/ /g…

2019-09-06 10:58 · pentaho · 评论(0)

MYSQL 转换编码的解决方法

一、在utf8的mysql下 得到中文‘游客’的gbk下的16进制编码 mysql> SELECT hex(CONVERT( '游客' USING gbk )); -> D3CEBFCD 反推gbk的16进制编码,取回中文 mysql> SELECT CONVERT( unhex('d3cebfcd') USING gbk); -> ’游客' 从gbk的16进制编码直接转成utf8的16进制编码 mysql> SELECT HEX(CONVERT(CONVERT( unhex('d3cebfcd') USING gbk) USING utf8)); -> 'E6B8B8E5AEA2' 二、如…

2018-12-14 12:52 · mysql · greenplum · 评论(0)