By Shenyu http://zhengshenyu.com My Wordpress Blog Tue, 10 Jun 2014 00:07:13 +0000 en-US hourly 1 http://wordpress.org/?v=3.6 Weblogic URL/Login http://zhengshenyu.com/2014/06/10/weblogic-urllogin/ http://zhengshenyu.com/2014/06/10/weblogic-urllogin/#comments Tue, 10 Jun 2014 00:05:56 +0000 admin http://zhengshenyu.com/?p=363 http://hostname:port/console

When the login page appears, enter the user name and password you used to start the Administration Server.

system/Passw0rd

This works for the PeopleSoft Oracle VM template.

]]>
http://zhengshenyu.com/2014/06/10/weblogic-urllogin/feed/ 0
Unable to change label properties of push button/hyperlink in Application Designer http://zhengshenyu.com/2014/06/05/unable-to-change-label-properties-of-push-buttonhyperlink-in-application-designer/ http://zhengshenyu.com/2014/06/05/unable-to-change-label-properties-of-push-buttonhyperlink-in-application-designer/#comments Thu, 05 Jun 2014 15:41:38 +0000 admin http://zhengshenyu.com/?p=361 I had the issue where when I opened up the Label tab of a push button on a page, the Label Type, Label Size are blank, Label Text shows up as Static Text. When I changed the settings, and clicked OK to save it. The change did not register.

The fix turned out to be to go to the Configuration Manager, then go to Client Setup tab, then check the “Install Workstation” checkbox, click OK or Apply.

Now restart Application Designer, the issue should be fixed now.

]]>
http://zhengshenyu.com/2014/06/05/unable-to-change-label-properties-of-push-buttonhyperlink-in-application-designer/feed/ 5
Adobe Reader anti-alias http://zhengshenyu.com/2014/04/16/adobe-reader-anti-alias/ http://zhengshenyu.com/2014/04/16/adobe-reader-anti-alias/#comments Wed, 16 Apr 2014 01:48:43 +0000 admin http://zhengshenyu.com/?p=359 I have been reading a PDF book, and the text comes up real rough for the eyes,

image

I thought it’s the font used by the PDF, but even if I changed the font, it’s not helping.

Eventually, I found that in Edit –> Preferences –> Page Display

image

The Rendering, Smooth Text, I have None there. Once I changed it to For Laptop/LCD screens:

image

The PDF looks like this now:

image

Before it looks like

image

 

This sample PDF does not have much difference. But for some PDFs, the difference is really huge, and it’s coming up really pleasant to the eyes.

]]>
http://zhengshenyu.com/2014/04/16/adobe-reader-anti-alias/feed/ 0
Creating iScript http://zhengshenyu.com/2014/04/14/creating-iscript/ http://zhengshenyu.com/2014/04/14/creating-iscript/#comments Mon, 14 Apr 2014 21:01:59 +0000 admin http://zhengshenyu.com/?p=347
  • Define WEBLIB_ record.
  • Add ISCRIPT field
  • clip_image001

    1. Add function ISCRIPT

    clip_image002

    1. Set up permission list

    clip_image003

    1. You may need to run the Portal Security Sync, and/or restarting application server.
    1. Try it online.

    clip_image004

    Or the other one:

    clip_image005

    ]]>
    http://zhengshenyu.com/2014/04/14/creating-iscript/feed/ 0
    Playing flv file on VLC media player http://zhengshenyu.com/2014/02/04/playing-flv-file-on-vlc-media-player/ http://zhengshenyu.com/2014/02/04/playing-flv-file-on-vlc-media-player/#comments Tue, 04 Feb 2014 01:06:41 +0000 admin http://zhengshenyu.com/?p=334 When I play a flv file on VLC media player, it consumes a lot of CPU. Whenever I try to fast forward, the player just locks up, and I will no longer be able to fast forward or backward.  Even if I close the player, it stays in Task Manager with huge CPU load.

    image

    and I will have to kill it from Task Manager.

    Since VLC gives me more benefits, I just don’t want to switch. So I go online, one post here says to enable “fast-seek”. When I go in to the preferences of VLC media player:

    image

    I don’t see “fast-seek” here. However, I do notice the “Hardware-accelerated decoding” is set to “Disable”. I change it to Automatic,

    image

    And try again:

    image

    Now it’s all good, it’s running low on CPU, and I can fast-forward or backward.

     

    One issue still here is that I can’t pause it, when I do, the CPU again goes up, and I no longer can close it in the usual way.

    ]]>
    http://zhengshenyu.com/2014/02/04/playing-flv-file-on-vlc-media-player/feed/ 0
    Perl Style http://zhengshenyu.com/2014/01/22/perl-style/ http://zhengshenyu.com/2014/01/22/perl-style/#comments Wed, 22 Jan 2014 00:41:35 +0000 admin http://zhengshenyu.com/?p=324 A little about Perl style from perldoc.

    1. Run under –w flag all times
    2. Run under “use strict”
    3. Can also use “use sigtrap” or “use diagnostics”
    4. Closing curly bracket of a multi-line block should line up with the keyword that started the construct
    5. 4-column indent
    6. Open curly on same line as keywork, if possible, otherwise line up.
    7. Space before the opening curly of a multi-line block.
    8. One-line BLOCK may be put on one line, including curlies.
    9. No space before the semicolon.
    10. Semicolon omitted in “short” one-line BLOCK.
    11. Space around most operators.
    12. Space around a “complex” subscript (inside brackets).
    13. Blank lines between chunks that do different things.
    14. Uncuddled elses.
    15. No space between function name and its opening parenthesis.
    16. Space after each comma.
    17. Long lines broken after an operator (except “and” and “or”).
    18. Space after last parenthesis matching on current line.
    19. Line up corresponding items vertically.
    20. Omit redundant punctuation as long as clarity doesn’t suffer.
    21. When in double, parenthesize
    ]]>
    http://zhengshenyu.com/2014/01/22/perl-style/feed/ 0
    Install WTP for Eclipse for JavaEE http://zhengshenyu.com/2014/01/21/install-wtp-for-eclipse-for-javaee/ http://zhengshenyu.com/2014/01/21/install-wtp-for-eclipse-for-javaee/#comments Tue, 21 Jan 2014 15:37:08 +0000 admin http://zhengshenyu.com/?p=322 Install Eclipse for JavaEE. Now go to Help:

    image

    Type in “wtp”

    image

    Choose the Eclipse Web Tools Platform:

    image

    Choose 3.5.1

    image

    image

    image

    image

    Let it run.

    image

    ]]>
    http://zhengshenyu.com/2014/01/21/install-wtp-for-eclipse-for-javaee/feed/ 0
    PeopleSoft URL explained http://zhengshenyu.com/2014/01/20/peoplesoft-url-explained/ http://zhengshenyu.com/2014/01/20/peoplesoft-url-explained/#comments Mon, 20 Jan 2014 20:08:52 +0000 admin http://zhengshenyu.com/?p=302 http://www.zhengshenyu.com:6100/psp/hr/EMPLOYEE/HRMS/c/PORTAL_ADMIN.PORTAL_OBJ_LIST.GBL

    In short, it’s in this format:

    http://www.zhengshenyu.com:6100: server name and port number

    psp: servlet

    hr: site name

    EMPLOYEE: portal name

    HRMS: node name

    c: content type, which could be one of:

    c: component

    s: script

    e: xxternal

    h: homepage

    q: query

    w: worklist

    n: navigation

    f: file

    PORTAL_ADMIN.PORTAL_OBJ_LIST.GBL: content id

    ]]>
    http://zhengshenyu.com/2014/01/20/peoplesoft-url-explained/feed/ 0
    Perl Misc http://zhengshenyu.com/2013/12/17/perl-misc/ http://zhengshenyu.com/2013/12/17/perl-misc/#comments Tue, 17 Dec 2013 14:23:57 +0000 admin http://zhengshenyu.com/?p=298 $. Line number
    $_ Input line
    $” This is similar to $,, except it applies to array values interpolated into a double quoted string.
    $, Field separator
    $\ Output Record Separator
    $/ Input Record Separator

    -F Input field separator
    -n
    -e
    -E Just like -e, plus enabling Perl 5.10 features
    -i Inline edit
    -p Print each line right away
    -l Add new line
    -a Split input line into @F
    -00 Turns paragraph slurp mode on.

    -0777 Together with –n causes Perl to slurp the whole file into $_.
    perl -00pe0 # here code is 0, which does nothing

    @F
    @{[reverse @F]}

    \d

    \012, \015

    %-5d Alignes to left.

    a..z
    “a”..”z”

    perl -e “print map { (a..z)[rand 26] } 1..8″

    -p:
    while(<>){
       # your program goes here
    } continue {
       print or die “-p failed: $!\n”;
    }

    somecode unless /^$/
    somecode if /reg/

    $n = () = <>
    $n = ( () = <> )
    scalar( () = <> )

    perl -e “}{ print $.”
       # this is like:
       while (<>) {
       }{ # eskimo operator here
          print $.;
       }
      
    perl –alne ‘map { /regex/ && $t++ } @F; END {print $t || 0 }’

    y/a-z/A-Z/

    print if 1..10   print first 10 lines

    print if eof  prints last line.

    scalar(grep { /./ } <> )
    ~~grep/./,<>

    $x+0: this can be useful if $x is not initialized.

    perl -ne “/regex/ && $last && print $last; $last = $_”
       print every line preceding a line that matches a RE.
      
    perl -ne “$. == 13 && print && exit”

    perl -ne “print && $. != 27″

    perl -ne “print if $. == 13 || $. == 19″

    flip-flop operator/range operator
    perl -ne “print if /regex1/../regex2/”
       print all lines between two REs

    perl -ne “print if ++$a{$_} == 2″
       print all repeated lines only once

    perl -ne “print unless $a{$_}++”
       print unique lines

    ]]>
    http://zhengshenyu.com/2013/12/17/perl-misc/feed/ 0
    Bash tits and bits http://zhengshenyu.com/2013/10/17/bash-tits-and-bits/ http://zhengshenyu.com/2013/10/17/bash-tits-and-bits/#comments Thu, 17 Oct 2013 13:50:36 +0000 admin http://zhengshenyu.com/?p=294 Command Substitutions:

    list=`ls`

    list=$(ls)

    # below will assign to an array, you can use ${list[1]} to access individual element.

    list=( * )


    Variable assignment before command in one line

    foo=bar ls $foo


    Run bash in debugging mode

    #!/bin/bash –x

    or you can do

    set –x # to turn on debugging in the script

    set  +x # to turn off debugging


    if COMMANDS; then COMMANDS; else COMMANDS; fi;

    This can help you understand that if, then, else, fi are all kewords.

     

    Another form:

    if [[ $a == “good” ]]

    Here [[ is a command.

    A note from http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_02.html


    [] vs. [[]]

    Contrary to [, [[ prevents word splitting of variable values. So, if VAR="var with spaces", you do not need to double quote $VAR in a test – even though using quotes remains a good habit. Also, [[ prevents pathname expansion, so literal strings with wildcards do not try to expand to filenames. Using[[, == and != interpret strings to the right as shell glob patterns to be matched against the value to the left, for instance: [[ "value" == val* ]].


    Ryan@Foundation ~
    $ [ 1 -eq 1 ];

    Ryan@Foundation ~
    $ echo $?
    0

    Ryan@Foundation ~
    $ [ 1 -eq 0 ];

    Ryan@Foundation ~
    $ echo $?
    1

    Ryan@Foundation ~
    $ [ 1 -eq 1 ]

    Ryan@Foundation ~
    $ echo $?
    0

    Ryan@Foundation ~
    $ [ 1 -eq 0 ]

    Ryan@Foundation ~
    $ echo $?
    1

    Ryan@Foundation ~
    $

    ]]>
    http://zhengshenyu.com/2013/10/17/bash-tits-and-bits/feed/ 0