Posts

Showing posts from September, 2015

SpagoBI System

1. Delete report DELETE from SBI_OBJ_FUNC; DELETE FROM SBI_OBJECT_TEMPLATES; DELETE FROM SBI_OBJECTS; 2. Customization Login page:  [YOUR_APPLICATION_SERVER_PATH]\webapps\SpagoBI\WEB-INF\jsp\wapp Main Page: [YOUR_APPLICATION_SERVER_PATH]\webapps\SpagoBI\themes\sbi_default\html 3. Change application from SpagoBI to ThorBI A. In spagobi application, go to menu --> Server Settings --> Configuration management, Change the value of "SPAGOBI CONTEXT" from /SpagoBI to /ThorBI B. Change context of the <SpagoBI Installation>\conf\server.xml,  from     <Environment name="spagobi_service_url" type="java.lang.String" value="http://<HOSTNAME>:80/SpagoBI"/>    to     <Environment name="spagobi_service_url" type="java.lang.String" value="http://<HOSTNAME>:80/ThorBI"/>    C. Change folder name  from <SpagoBI Installation>\webapps\SpagoBI ...

Perl Example

1. 安装perl,选择自己喜欢的IDE,尝试运行一个简单的小程序。例如打印Helloworld之类的。 print "Hello World"; 2. 写一个程序,计算园的周长,让它提醒用户键入半径的长度。 print "In orde to calculate perimeter, please input radius: "; chomp($radius=<STDIN>); $Perimeter=$radius * 3.14 * 2; print "The Perimeter is: $Perimeter"; 3. 写一个程序,提醒用户键入两个数字(分两行键入),然后输出两者的乘积。 print "Please input 2 number, one line one number: "; @input=<STDIN>; $a=$input[0]; $b=$input[1]; $c=$a*$b; print "The result is: $c"; 4. 写一个程序,读入一些数字(每行一个),直到文件结尾为止。然后,根据每一个数字输出如下名单中相应的人名。比方说,如果输入数字为1、2、4和2,那么输出的人名将会是fred、betty、dino和betty。 名单:fred betty barney dino wilma pebbles bamm-bamm @input=<STDIN>; chomp(@input); $i=0; while($i <= $#input) { if ($input[$i]==1)  {print "fred\n"; } elsif($input[$i]==2) {print "betty\n"; } elsif($input[$i]==3) {print "barney\n"; } elsif($input[$i]==4)  {print "dino\n"; ...

Perl

Perl Character 1. Easy for use 2. Can do everything 3. Run quite fast 4. Code hard for reading Perl Suitable Area 1. 90% file process; 10% others process; 2. Write CGI script; Support website CPAN:  https://search.cpan.org Install Perl 1. Download package 2. Install package 3. set path parameter by adding C:\Perl\bin; 4. create one test file test.pl with print "Hello World" 5. in command windows input: perl test.pl Integrate into Eclipse 1. install EPIC package 2. Install PadWalker package http://blog.163.com/crazy20070501@126/blog/static/12865946520121011102620418 Example $a="Hello World"; print $a; Format if (...) {...} else if (...) {...} else {...} while (...) {...} Number 1. Standard Variables including Integer / Variable / String 2. use float to save all number 3. support: +, -, *, /, %( Remainder 8%5=3 ), **( Exponentiation 2**3=8 ) 4. write Bin: 0b11111111 5. write ...