Alias in CDE question

I use the ksh shell in Sun Solaris 8 ,but when I use a CDE(Command Desktop Environment) session , this don't recognize the alias alocated in my ".profile".
What can I do?

For your user .....
cd $HOME
vi .Xdefaults
Dtterm*loginShell: True
wq!
exit out of CDE or refresh your resources. When you return it will work ;)
see man dtterm.
or run from a dtterm ...."dtterm -ls" this will also ensure your .profile is sourced.
For all users .... add the resource in /usr/dt/config/C/sys.resources

Similar Messages

  • Shell and CDE question

    Hello,
    I am new to Solaris and Unix coming from the MS world. I understand the
    differences of the 3 different shells (sh,csh,ksh) but what is the purpose of having 3
    different ones? Couldn't the features be combined into just one shell?
    Also, in the CDE, what is the difference in opening a "Terminal Console" window or
    opening a "This Host" window? Is there something that one window does that the
    other doesen't?
    Thanks in advance

    Hi
    Each shell has evolved over the years and has it's own different
    eatures especially with respect to programming with them. There are also several other shells like jsh,bash,tcsh etc. available that have their own features. It depends on what you find the most comfortable
    to use.After all, having more choice is better than having none !!
    Regarding your second question, the "Terminal COnsole" and "Terminal"
    in CDE both spawn new shells in seperate windows. But the console logs
    all system errors and messages generated by the various unix rocesses
    so that the system administrator can identify them and take the
    corrective action. Apart from this there is no difference between the two.
    HTH
    Shridhar

  • [SOLVED] alias or bash question

    Hello all,
    I just need a liittle help on alias or bash
    Right now, I want to run vim on xterm. So I always invoke
    xterm vim
    Everything works fine but when I manually add a directory or a directory of a file, something like
    xterm vim /directory/of/file_here
    It won't work.
    This is like manually opening a file in gvim or any app.
    I just want vim to run on xterm.  This is like clicking a file and open with gvim ('xterm vim' in this case).
    I'm currently using KDEmod4.2
    Last edited by ragingmon (2009-02-22 11:08:21)

    yay!! thanks a lot droog!!!
    that was really fast.
    marked as solved..

  • ALI Scripting Framework question: PTPortalPage() - I can't find any example

    I can't successfully create an array or portlet objects using the getPortlets() method of the PTPortalPage object in a portlet using the ALI scripting framework.
    The .zip file containing scripting framework samples (https://codesamples.projects.dev2dev.bea.com/servlets/ScarabDownload/resultpos/-1/nbrresults/0/remcurreport/true/template/ViewAttachment.vm/attachid/5124/filename/ALI_Scripting_Framework_Samples.zip) doesn't have any examples.
    var arrPortlets = new Array(PTPortalPage.getPortlets());
    alert(arrPortlets.length);
    This code says I only have one portlet on the page, but I have 3. Also, I'm unable to loop through the one in returned and turn it into PTPortlet object so that I can get the name and id of the portlet.
    Does anyone have a code sample on how to loop through the portlets on a page using the ali scripting framework's PTPortalPage.getPortlets()?

    Got it. I wouldn't particularly call the return value of the getPortlets() method an array of PTPortal objects - but rather it's just an array of ids.
    var arrIDs = PTPortalPage.getPortlets();
    for (var i in arrIDs)
    var portlet = new PTPortlet.getPortletByID(i);
    alert("pid: " + portlet.id + ", name: " + portlet.name);
    }

  • Mount.ecryptfs_private ALIAS feature. Adding additional ecryptfstorage

    Situation:
    I have my $home on a hard drive which is full, bought a new one and about to use it.
    Gparted did it's thing and what I'd like to do is mounting this new drive (/dev/sdb1) as $home/newdrive.
    Factors:
    My $home is encrypted with ecryptfs lovely automagic stuff. I.e ecryptfs mounts on login password.
    Solutions:
    A bit of searching and found this, involving a bit of scripting. Indeed it suites my demands, however two years down the road there got to be some less.. blunt solution.
    I found the related ssd question in the link above, which answer suggest using mount.ecryptfs_private's alias feature. However, Dustin Kirkland usually have great writeups on the subject, but as of yet there seems to be no entry on the alias feature.
    Questions:
    1. Does the alias feature support filename encryption?
    2. It says to use a fstab-style format, but.. could someone give me an working .ecryptfs/ALIAS.conf example?

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • How do I create an input box with a cancel button that will end a loop in my script?

    I have been working on a script for my client and I am having trouble getting it to work properly. I stole most of the code from the PowerShell Tip of the Week "Creating a Custom Input Box". I also took someone's code for the Show-MessageBox function.
    I have slightly modified the original code with two parameters and an additional text box. The first field is for an e-mail address and the second is for an employee number.
    I need to know how I can get a Do Until loop to recognize when the cancel button is pushed and break the loop and effectively end the script. The work happens at the end but perhaps I need something added/modified in the InputBox function.
    I want the script to check to see if anything has been entered in the second text box. If empty it displays a message and calls the InputBox function again. Then if there is something I use elseif to check to see if it matches my RegEx (digits only). If
    it doesn't match it will loop and call the InputBox function again.
    This all works fine. The problem I am having is that I cannot cancel out of the form. I'd like the loop to continue until the second box matches my RegEx or Cancel is clicked. Clicking cancel doesn't break the loop. I need to know how I can stop the loop
    when cancel is pressed. I've seen Stack "Overflow: PowerShell Cancel Button Stop Script" but I don't think this will work in a loop.
    Any help would be awesome. As a note, I DO NOT want to use the VB Interaction stuff.
    function InputBox {
    param ($Name,$EN)
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "Data Entry Form"
    $objForm.Size = New-Object System.Drawing.Size(300,200)
    $objForm.StartPosition = "CenterScreen"
    $objForm.KeyPreview = $True
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Enter")
    {$x=$objTextBox.Text;$objForm.Close()}})
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$objForm.Close()}})
    $OKButton = New-Object System.Windows.Forms.Button
    $OKButton.Location = New-Object System.Drawing.Size(75,120)
    $OKButton.Size = New-Object System.Drawing.Size(75,23)
    $OKButton.Text = "OK"
    $OKButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text = "Cancel"
    $CancelButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($CancelButton)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(10,20)
    $objLabel.Size = New-Object System.Drawing.Size(280,20)
    $objLabel.Text = "Employee Email Address:"
    $objForm.Controls.Add($objLabel)
    $objTextBox = New-Object System.Windows.Forms.TextBox
    $objTextBox.Location = New-Object System.Drawing.Size(10,40)
    $objTextBox.Size = New-Object System.Drawing.Size(260,20)
    if ($Name) {
    $objTextBox.Text = $Name
    else {
    $objTextBox.Text = "@domain.com"
    $objLabel2 = New-Object System.Windows.Forms.Label
    $objLabel2.Location = New-Object System.Drawing.Size(10,70)
    $objLabel2.Size = New-Object System.Drawing.Size(280,20)
    $objLabel2.Text = "Employee Number:"
    $objForm.Controls.Add($objLabel2)
    $objTextBox2 = New-Object System.Windows.Forms.TextBox
    $objTextBox2.Location = New-Object System.Drawing.Size(10,90)
    $objTextBox2.Size = New-Object System.Drawing.Size(260,20)
    $objForm.Controls.Add($objTextBox)
    $objForm.Controls.Add($objTextBox2)
    $objForm.Topmost = $True
    $objForm.Add_Shown({$objForm.Activate()})
    [void] $objForm.ShowDialog()
    $Script:ButtonName = $objTextBox.Text
    $script:ButtonEN =$objTextBox2.Text
    $ButtonName; $ButtonEN
    Function Show-MessageBox{
    Param(
    [Parameter(Mandatory=$True)][Alias('M')][String]$Msg,
    [Parameter(Mandatory=$False)][Alias('T')][String]$Title = "",
    [Parameter(Mandatory=$False)][Alias('OC')][Switch]$OkCancel,
    [Parameter(Mandatory=$False)][Alias('OCI')][Switch]$AbortRetryIgnore,
    [Parameter(Mandatory=$False)][Alias('YNC')][Switch]$YesNoCancel,
    [Parameter(Mandatory=$False)][Alias('YN')][Switch]$YesNo,
    [Parameter(Mandatory=$False)][Alias('RC')][Switch]$RetryCancel,
    [Parameter(Mandatory=$False)][Alias('C')][Switch]$Critical,
    [Parameter(Mandatory=$False)][Alias('Q')][Switch]$Question,
    [Parameter(Mandatory=$False)][Alias('W')][Switch]$Warning,
    [Parameter(Mandatory=$False)][Alias('I')][Switch]$Informational)
    #Set Message Box Style
    IF($OkCancel){$Type = 1}
    Elseif($AbortRetryIgnore){$Type = 2}
    Elseif($YesNoCancel){$Type = 3}
    Elseif($YesNo){$Type = 4}
    Elseif($RetryCancel){$Type = 5}
    Else{$Type = 0}
    #Set Message box Icon
    If($Critical){$Icon = 16}
    ElseIf($Question){$Icon = 32}
    Elseif($Warning){$Icon = 48}
    Elseif($Informational){$Icon = 64}
    Else{$Icon = 0}
    #Loads the WinForm Assembly, Out-Null hides the message while loading.
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
    #Display the message with input
    $Answer = [System.Windows.Forms.MessageBox]::Show($MSG , $TITLE, $Type, $Icon)
    #Return Answer
    Return $Answer
    $num = "^\d+$"
    do {
    if (!($ButtonEN)) {
    Show-MessageBox -Msg "You must enter a numeric value for the employee number." -Title "Employee Number Missing" -Critical
    InputBox -Name $ButtonName
    elseif ($ButtonEN -notmatch $num) {
    Show-MessageBox -Msg "The employee number must contain numbers only!" -Title "Non-numerical characters found" -Critical
    InputBox -Name $ButtonName
    until ( ($ButtonEN -match $num) -or (<this is where I want to be able to use the cancel button>)

    Here is a simple validation method.
    function New-InputBox{
    param(
    $EmailAddress='',
    $EmployeeNumber=''
    Add-Type -AssemblyName System.Windows.Forms
    $Form=New-Object System.Windows.Forms.Form
    $Form.Text='Data Entry Form'
    $Form.Size='300,200'
    $Form.StartPosition='CenterScreen'
    $OKButton=New-Object System.Windows.Forms.Button
    $OKButton.Location='75,120'
    $OKButton.Size='75,23'
    $OKButton.Text='OK'
    $OKButton.DialogResult='Ok'
    $OKButton.CausesValidation=$true
    $Form.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text ='Cancel'
    $CancelButton.DialogResult='Cancel'
    $CancelButton.CausesValidation=$false
    $Form.Controls.Add($CancelButton)
    $Label1=New-Object System.Windows.Forms.Label
    $Label1.Location='10,20'
    $Label1.Size='280,20'
    $Label1.Text='Employee Email Address:'
    $Form.Controls.Add($Label1)
    $TextBox1=New-Object System.Windows.Forms.TextBox
    $TextBox1.Location='10,40'
    $TextBox1.Size='260,20'
    $textbox1.Name='EmailAddress'
    $textbox1.Text=$EmailAddress
    $Form.Controls.Add($textbox1)
    $Label2=New-Object System.Windows.Forms.Label
    $Label2.Location='10,70'
    $Label2.Size='280,20'
    $Label2.Text='Employee Number:'
    $Form.Controls.Add($Label2)
    $TextBox2=New-Object System.Windows.Forms.TextBox
    $TextBox2.Location='10,90'
    $TextBox2.Size='260,20'
    $TextBox2.Name='EmployeeNumber'
    $TextBox2.Text=$EmployeeNumber
    $Form.Controls.Add($TextBox2)
    $Form.AcceptButton=$OKButton
    $Form.CancelButton=$CancelButton
    $Form.Topmost = $True
    $form1_FormClosing=[System.Windows.Forms.FormClosingEventHandler]{
    if($Form.DialogResult -eq 'OK'){
    if($textbox1.Text -eq ''){
    [void][System.Windows.Forms.MessageBox]::Show('please enter an email address','Validation Error')
    $_.Cancel=$true
    }else{
    # Check empno is all digits
    if("$($TextBox2.Text)" -notmatch '^\d+$'){
    [void][System.Windows.Forms.MessageBox]::Show('please enter a number "999999"','Validation Error')
    $_.Cancel=$true
    $form.add_FormClosing($form1_FormClosing)
    $Form.Add_Shown({$Form.Activate()})
    if($Form.ShowDialog() -eq 'Ok'){
    # return the form contents
    $Form
    if($f=New-InputBox -EmailAddress [email protected]){
    'Email is:{0} for Employee:{1}' -f $f.Controls['EmailAddress'].Text,$f.Controls['EmployeeNumber'].Text
    }else{
    Write-Host 'From cancelled!' -ForegroundColor red
    ¯\_(ツ)_/¯

  • BO XI Portal Integration

    Hi Folks,
    is try to setup an evaluation scenario on the integration of BO Reports into Enterprise Portal according to this document:
    http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_bip_sap_user_en.pdf
    chapter "Managing the SAP Enterprise Portal". The first step is "Configuring the BusinessObjects Enterprise server entry point".
    According http://help.sap.com/saphelp_nw04s/helpdata/en/f7/f3a94076b63713e10000000a155106/frameset.htm the precondition to do this is "You integrated an appropriate SAP System in the portal system landscape and defined a system alias".
    My questions:
    why (except authentication) do i need a SAP System and what makes a SAP System "appropriate"?
    Whats about licensing? As i understand, BO users also need a user on the SAP System. What licenses are required for the SAP users?
    In the scenario decribed above  the Crystal Enterprise Server is a property of the of the SAP System object in SLD. Is there a way to connect the Business Objects Server directly without a SAP System?
    thanks a lot
    regards
    Torsten

    hi ingo,
    sorry, but with our discussion we are totally on the wrong track. My problem is not authentication. Instead, ist's how to use the BO masterview iview. To use it, i have to configure the "BusinessObjects Enterprise server entry point". This entry point in turn is a subset of configuring a SAP system in SLD.
    The point of my question was: How can integrate BO in the portal without having a SAP system. As i understand it, i need a SAP system to use the BO masterview iview. But what is the technical need for the SAP system?
    In the end the question was: Wy i can't configuring the BO server directly in the SLD?
    regrads
    torsten

  • Welcome to the New NI Discussion Forums!

    We are excited to present the NEW and IMPROVED NI Discussion Forums to you, our valued community members!
    The community not only had a face-lift, it now offers a full set of advanced personalization features and it is available in seven languages!
    Here are some tips to help you get around the new system:
    What do the boxes next to the user names mean?
    This is the new user ranking system. The three boxes represent the user’s score in the three performance metrics: ratings, posts, and logins. The darker the box is shaded, the higher the user has scored in that performance metric.
    The box on the left is the average message rating the user has received.
    The box in the center is the total number of posts the user has contributed to the community.
    The box on the right is the number of times the user has logged into the community.
    The blue boxes designate the user is an NI Employee while the gold boxes are reserved for NI Partners and customers.
    How do I find a thread from the old system in the new system?
    If you have the title of the thread, we recommend searching for it using the search bar at the top or bottom of the page.
    If you do not have the title of thread or cannot find it with search, but you know that you posted to the thread, we recommend that you login and click on your Alias at the top of the page to view your profile. From your profile page, click on the Find All Posts by this User link and scroll through the results to find the thread.
    If you do not have the title of the thread and you didn’t post to it, but you know the Alias of someone else who did post to the thread, conduct a User search to find that user. Click on their Alias to view their profile page and then use the Find All Posts by this User link to find the thread.
    If you do not have the title of the thread and you don’t know the Alias of any user who posted to it, we recommend browsing the board that you believe it would be in until you find it.
    How do I personalize the forums?
    Once you login, click on the My Profile link at the top of the page. From the tabs on this page, you can modify your time zone, ratings preference, font size, emoticon style, etc to personalize your experience. As long as you remember to Save Changes before you leave the tabs, your forum will be personalized for you each time you login.
    What languages are supported?
    The user interface is translated into the following languages:
    Chinese (Simplified)
    Chinese (Traditional)
    English
    French
    Korean
    Japanese
    Spanish
    Note: The language in the My Preferences tab in the forums only controls the language for that session. As soon as you logout and login again, your language will be reset to the language that you have configured in your NI User Profile. To modify the language configured in your NI User Profile, visit www.ni.com/profile.
    What was migrated?
    Questions
    Answers
    Comments
    Average Ratings per Answer
    Attachments
    Alias
    Number of Questions Posted (Total Started Threads)
    Number of Answers & Comments Posted (Total Replies)
    Average Ratings Received per User
    Board Subscriptions
    What was NOT migrated?
    Topics
    Opinions
    Replies
    Polls
    Average Ratings Given
    Message Subscriptions
    Keywords associated with Board Subscriptions
    Enthusiast Subscriptions
    Enthusiast Biographies
    What does Float mean?
    You can choose to pin boards or threads to the top of the lists so that when you are logged in they are the first things you see. To do this, click on the up arrow to the right of the board or message you want to Float to the top of your lists. When you no longer want this message or board at the top of your lists, you can click the arrow again to UnFloat the board or message.
    Why are there smiley faces in the sample code pieces?
    There are times when the pieces of code include the same characters that are used to create an emoticon in the forums. To disable emoticons so that you can see the code correctly, follow these steps:
    Sign In or Register to the forums if you are not already logged in
    Click My Profile in the User Bar at the top of the page
    Click My Preferences to view the My Preferences tab
    Change the Emoticon Type to None in the My Preferences tab in your Profile
    Click Save Changes
    Now when you browse to the thread, the code should be displayed correctly.
    Emoticons will no longer be displayed in any messages you view in the forums until you change the Emoticon Type back to one of the other types.
    If you have additional questions or feedback about the upgrade, refer to the Help or post to the Feedback on NI Discussion Forums board.
    Molly K
    Web Support Manager
    National InstrumentsMessage Edited by Support on 11-20-2004 06:14 AM
    Molly K.
    Web Support & Operations Manager
    National Instruments

    Just a couple of comments:
    1. In the CVI forum, I couldn't post a message which included the C #include syntax with angle brackets. It interpreted the angle brakcets as HTML, gave me an HTML syntax error, and deleted the angle brackets as well as the .h file they enclosed. There may be a way in HTML to escape the angle brakcets so they can be included as text rather than interpreted as HTML, but I shouldn't have to do that in a C forum.
    2. When I got the HTML error message above, it also deleted the file I had attached so when I posted the message, there was no attachment.
    3. I don't get automatic hyperlinks in any posts I read or create. The text of the URL is there, but I can't just click to link to the new page. Am I missing some option?
    4. Older but updated messages don't come to the top. I like to see new activity even if I'm not subscribed to that thread.
    5. When reviewing the list of messages in the forums, I'd like to see the ratings of the author and of the reply (even before opening the message). In the old forums, the messages where tagged "Answered by Enthusiast" and/or "High rating".
    6. I'd like to see the buttons to rate an answer even if I'm not logged. If I try to rate an answer when I'm not logged on, it could prompt me to log on first. If the rating buttons are only available if you're logged on, I think the number of ratings will be drastically reduced.
    7. I miss the list of top contributors (formerly known as Enthusiasts). I think it was a good way to foster community and to get to know active members. It also generated some friendly competition to see who had more posts and who had higher ratings.
    8. I liked the old organization with two sections to show the newest answered questions separate from the newest unanswered questions.
    9. Some of the new search options are good additions. I'd like to combine the user search and the message search. For example, I might like to search for any message from Bilal on DLLs.
    10. I had to make this a Top 10 list. I'm impressed by the amount of work that went into the new forums. Keep it up!

  • How to get the full name of the Account Owner?

    Hi,
    I would like to ask if there's a way to display the full name of the Account Owner in a report where the subject area is Opportunity? Currently, the Username (under Owned By User) which displays the full name is equal to the Opportunity Owner.
    Thanks,
    Teena

    Hi Cameron,
    Thanks again.
    Currently, I have a report under Opportunity history where the following fields are being shown:
    - Account's Country
    - Opportunity Owner (Owned By User - gives me the full name)
    - Account Name
    - Opportunity Name
    - Metrics field (Revenue, Volume. etc.)
    - Close Date
    - some custom fields
    The users want to see the Account Owner so I added this field but it's showing the owner's alias. My question is, in using the "Combine with Similar Analysis", can I display all the values retrieved by the Opportunity report and get the value of 'Owned By User' in the Account report?
    I have tried combining the two reports but the values are derived from the driving report which is Opportunity. How can I get the value/format of the field in the Account report?
    Teena

  • Document saving as repeated files: cannot delete?

    I have made a simple word document on Pages, that I conitue to work at a little each day.
    Currently there are 56 document under this name that I cannot delete.  When I try to open it, it says: The alias “EOSC Study Questions” can’t be opened because the original item can’t be found
    Then I am given three options:  Delete Alias  Fix Alias  Cancel
    If I press delete the same option comes up.  If I press Fix and select said document it says: Operation Cannot Be Completed An unexpected error occurred (error code -43).
    Therefore all I can do is cancel.
    Help please

    There is no virus striking on mac at this time.
    There is only one trojan (with some variants).
    Run this script to test your machine
    --{code}
    Borrowed from MacBidouille
    set x1 to 0
    set x2 to 0
    set x3 to 0
    set browserName to "Safari"
    Edit the instruction above to test every Browser installed on your machine :
    Camino
    Firefox
    Google Chrome
    Opera
    Safari
    try
              do shell script "defaults read /Applications/" & browserName & ".app/Contents/Info LSEnvironment"
    on error
              set x1 to 1
    end try
    try
              do shell script "grep -a -o '__ldpath__[ -~]*' %path_obtained_in_step2%"
    on error
              set x2 to 1
    end try
    try
              do shell script "defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES"
    on error
              set x3 to 1
    end try
    if x1 = 0 or x2 = 0 or x3 = 0 then
              set resultat to "You are infected by one of the three FlashBack versions"
    else
              set resultat to "It’s all right"
    end if
    display dialog resultat
    --{code}
    Yvan KOENIG (VALLAURIS, France) jeudi 12 avril 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • Ant, mxmlc and font managers

    My team is building an AIR application and we are using SVN and a Flex Ant task to compile it on a staging server.  I have a decent understanding of what each piece of the compilation process needs to run and got the AIR application compiled and packaged without too much hassle.
    We recently switched fonts and require the command line switch '-managers=flash.fonts.AFEFontManager' in Flex Builder.  I've been reading about how to get this done and have found two solutions:
    1) Edit the file frameworks/flex-config.xml and change the order of the font managers.  This isn't a great solution because every time we upgrade the SDK on the server we'll have to go through and make this change again.  This process is described in the adobe livedocs http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_06.html
    2) Set it as a managers attribute in the ant build file as described here http://stackoverflow.com/questions/610386/how-to-include-additional-compiler-arguments-whe n-using-mxmlc-ant-task I can't seem to get this to work, I end up with an error like this:
    src/build.xml:75: The <mxmlc> type doesn't support the "compiler.fonts.managers" attribute.
    I get the same error when I use the "managers" alias.
    My question is what is the preferred method of reordering the font managers?  Thanks in advance!

    I forgot to attach the relevant section of my build.xml, here it is:
        <target name="compile.release"
            description="Compile swf modules and main swf" depends="clean">
            <!-- compile main SWF -->
            <mxmlc file="${src.dir}/application.mxml"
                output="${out.dir}/application.swf"
                debug="${DEBUG}"
                optimize="${OPTIMIZE}"
                link-report="${out.dir}/swf-report.xml"
                locale="en_US"
                configname="air"
                compiler.fonts.managers="flash.fonts.AFEFontManager">
                <source-path path-element="${src.dir}" />
                <library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
                    <include name="*.swc" />
                </library-path>
                <library-path dir="${FLEX_HOME}/frameworks/libs/air"
                    append="true">
                    <include name="*.swc" />
                </library-path>
                <library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
                    <include name="{locale}" />
                </library-path>
                <library-path dir="${lib.dir}" append="true">
                    <include name="*.swc" />
                </library-path>
            </mxmlc>

  • Aggregate function in for loop insert

    Hi Everyone,
    Please see the below code and help me insert these string values. How can I trap that string value and insert it?
    DECLARE
    BEGIN
      for i in (SELECT STRAGG(Q.QUESTION_CODE)
                  FROM QUESTION Q , TEST_CODE_CONVERSION TC
                 WHERE Q.ACTIVE_YN = 'Y'
                   AND Q.TEST_ID = TC.EAST_TEST_ID
              GROUP BY Q.TEST_ID)
      LOOP
              INSERT INTO TEST_CODE_CONVERSION (QCODE_FOR_WEST_TEST_ID)
              VALUES (___________) ;
              dbms_output.put_line('1 row inserted');              
      END LOOP;
    End;Regards,
    BS2012.

    Add column alias
    BS2012 wrote:
    Hi Everyone,
    Please see the below code and help me insert these string values. How can I trap that string value and insert it?
    DECLARE
    BEGIN
    for i in (SELECT STRAGG(Q.QUESTION_CODE) as q_code --"Alias added"
    FROM QUESTION Q , TEST_CODE_CONVERSION TC
    WHERE Q.ACTIVE_YN = 'Y'
    AND Q.TEST_ID = TC.EAST_TEST_ID
    GROUP BY Q.TEST_ID)
    LOOP
    INSERT INTO TEST_CODE_CONVERSION (QCODE_FOR_WEST_TEST_ID)
    VALUES (___________) ;
    dbms_output.put_line('1 row inserted');              
    END LOOP;
    End;Regards,
    BS2012.Actually you dont need PL/SQL for this, just a Single SQL
    INSERT INTO TEST_CODE_CONVERSION (QCODE_FOR_WEST_TEST_ID)
    select  STRAGG(Q.QUESTION_CODE)
                  FROM QUESTION Q , TEST_CODE_CONVERSION TC
                 WHERE Q.ACTIVE_YN = 'Y'
                   AND Q.TEST_ID = TC.EAST_TEST_ID
    --          GROUP BY Q.TEST_ID--"GROUP BY is not required, right?
    {code}
    Edited by: jeneesh on May 15, 2013 4:05 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Using changealias parameter in keytool.exe

    Hi,
    I recently attempted to update a new version of a certificate to my application using keytool. The application still runs into errors acting like it cannot find the updated certificate. I think the application is looking for the correct alias. I did not run keytool using an alias, so the certificate is stored using the default alias called "mykey". I found the correct alias (let's call it "a") that the old certificate is using. I want to use the -changealias to rename "mykey" alias to the "a" alias. My question is will keytool complain if I am trying to overwrite the existing alias since I am renaming it to an alias that already exists? Or do I have to delete that entry that has the existing "a" alias?
    Thanks,
    Ray

    805ray wrote:
    sabre150,
    PLEASE, if you have an answer or suggestion to my question, pls provide--if you don't, don't put anything.I thought my response very reasonable and indicated that your requirement for someone unknown and untrusted to confirm that this will work before trying it in your production environment is silly.
    >
    To answer your concern, I have a backup of the keystore should things not work as expected. I have no way of testing this in any UAT/Dev environment.So if you have a backup then what is the problem (apart from the fact that it should be tested first outside of production) in trying to change the alias?
    I really don't understand why you cannot test this outside your production environment. If I were in your QA department I would insist that this be tested outside of production.

  • Lost the Desktop icon

    I've done something really stupid: I thought I could backup my Desktop by dragging the icon from the sidebar of the finder window into Toast. On the way it vanished like a little cloud popping and ended up in the Trash. I could not drag it back. I could not not open any desktop folders as the were "in the Trash" I could noy drag them back to the Desktop. I managed to drag the folders from Trash to a new Desktop folder and burned this with Toast so I have the content of my Desktop folders and can open them but not drag any folder from the backup disk to the Desktop "because "Desktop" cannot be modified" To probably make matters worse i have now emptied the Trash. There is a folder called Desktop in the Finder sidebar but "The alias "Desktop" could not be opened because the original item cannot be found."
    I know I have done a Bad Thing. Can the damage be reversed please?
    iMac G5 Mac OS X (10.3.9) 512 MB

    It is solved! Thank you to all who responded. The answer lies in the robustness of OSX I think. I was preparing to reinstall OSX and having backed up and shut down, on restarting there was the Desktop Icon back in place working properly. I have rebuilt it the way I like it with all my rescued "stuff" and I will endeavour to be more sensible next time. I think I was very lucky......Makes me wonder if this thing really is bullet proof! In answer to Ali Brown's question - no, I didn't trash the Home folder, but whatever I did put the whole contents of the desktop and the Desktop icon itself into the trash. I was able to retrieve all my desktop folders, but not the Desktop Icon. The only icon on the desktop that remained was MacHD.
    Interestingly this weird operation has resolved a long-time annoyance: two corrupted, locked, with impossible dates, files on the Desktop had been undeletable for neary two years. They have now GONE! I now know how to dump undeletable files if it happens again...

  • Dialog updates database... refresh Main panel?

    ref: JDev 3.1
    Given an application that has a Master/Detail Form with details in a gridcontrol, and a button that kicks up a dialog panel that allows the user to edit extensively a row that appears in the said gridcontrol...
    How does one force a refresh of the underlaying rowset in the original panel ( and force a redisplay into the grid control to reflect the updated data )?
    I'm trying to avoid instantiating the rowset as a passed parameter to the dialog and then manually pushing everything back on the main panel...
    Or am I ( again ) conceptually missing some significant approach to solving this task?
    TIA

    OK... here's some (working) sample code for an application based on Brian's help to Ali's session question, that also answers my question. Probably obvious to many, it may be helpful to newbies like me who are very confused reading the postings and trying to figure this stuff out.
    It shares a rowset between a frame and a dialog box. The data is kept in synch (automagically) as things change in the dialog box.
    Steps:
    1. Build a database connection class
    2. Put it in the application before opening the base frame.
    3. Build the frame/dialog. DO NOT specify a sessioninfo/rowsetinfo using the infoproducer drag/drops.
    4. Manually hardcode the sessioninfo/rowset stuff manually as noted.
    Note also that session info is not passed nor published except once.
    This seems to work. Please advise if you know of any glaring flaws. I wouldn't be surprised. Obviously, this is easier to actually do when you see the sample code than what it sounds like reading the postings! TIA.
    public class Application1
    public Application1()
    /** call the generic database connections **/
    /** Note that this is a simple class that used the IDE **/
    /** to define a sessioninfo and rowset using drag and drop **/
    /** in the DESIGN mode to the Structure pane... then edit the attributes **/
    dbConnections x = new dbConnections();
    /** THEN open the frame **/
    Frame1 frame = new Frame1();
    frame.show();
    public static void main(String[] args)
    new Application1();
    package package2;
    import oracle.dacf.dataset.*;
    import oracle.dacf.dataset.connections.*;
    public class dbConnections extends Object
    SessionInfo sessionInfo3 = new SessionInfo();
    RowSetInfo rowSetInfo3 = new RowSetInfo();
    AttributeInfo ACTION_CODErowSetInfo3 = new AttributeInfo(java.sql.Types.VARCHAR);
    AttributeInfo ACTION_TEXTrowSetInfo3 = new AttributeInfo(java.sql.Types.VARCHAR);
    public dbConnections()
    try
    jbInit();
    sessionInfo3.publishSession();
    catch (Exception e)
    e.printStackTrace();
    private void jbInit() throws Exception
    ACTION_TEXTrowSetInfo3.setName("ACTION_TEXT");
    ACTION_CODErowSetInfo3.setName("ACTION_CODE");
    rowSetInfo3.setAttributeInfo( new AttributeInfo[] {
    ACTION_CODErowSetInfo3,
    ACTION_TEXTrowSetInfo3} );
    sessionInfo3.setAppModuleInfo(new PackageInfo("", "MyProject3"));
    sessionInfo3.setConnectionInfo(new LocalConnection("qms"));
    sessionInfo3.setName("sessionInfo3");
    rowSetInfo3.setQueryInfo(new QueryInfo(
    "rowSetInfo3ViewUsage",
    "package2.ActionCodes",
    "action_code, action_text",
    "action_codes",
    null,
    null
    rowSetInfo3.setSession(sessionInfo3);
    rowSetInfo3.setName("rowSetInfo3");
    package package2;
    import javax.swing.*;
    import java.awt.*;
    import oracle.dacf.control.swing.*;
    import oracle.jdeveloper.layout.*;
    import oracle.dacf.dataset.*;
    import java.awt.event.*;
    public class Frame1 extends JFrame
    JPanel jPanel1 = new JPanel();
    GridControl gridControl1 = new GridControl();
    XYLayout xYLayout1 = new XYLayout();
    XYLayout xYLayout2 = new XYLayout();
    JButton jButton1 = new JButton();
    public Frame1()
    super();
    try
    jbInit();
    catch (Exception e)
    e.printStackTrace();
    private void jbInit() throws Exception
    this.getContentPane().setLayout(xYLayout2);
    this.setSize(new Dimension(517, 549));
    jButton1.setText("Detail");
    jButton1.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent e)
    jButton1_actionPerformed(e);
    gridControl1.setLayout(xYLayout1);
    this.getContentPane().add(jPanel1, new XYConstraints(0, 0, 508, 284));
    jPanel1.add(gridControl1, null);
    this.getContentPane().add(jButton1, new XYConstraints(219, 268, -1, -1));
    /** manually typed this in **/
    gridControl1.setDataItemName("infobus:/oracle/sessionInfo3/rowSetInfo3");
    void jButton1_actionPerformed(ActionEvent e)
    Dialog1 myDialog = new Dialog1();
    myDialog.show();
    package package2;
    import javax.swing.*;
    import java.awt.Frame;
    import java.awt.BorderLayout;
    import oracle.jdeveloper.layout.*;
    import oracle.dacf.control.swing.*;
    import oracle.dacf.dataset.*;
    public class Dialog1 extends JDialog
    JPanel jPanel1 = new JPanel();
    XYLayout xYLayout1 = new XYLayout();
    TextFieldControl textFieldControl1 = new TextFieldControl();
    NavigationBar navigationBar1 = new NavigationBar();
    TextFieldControl textFieldControl2 = new TextFieldControl();
    public Dialog1(Frame parent, String title, boolean modal)
    super(parent, title, modal);
    try
    jbInit();
    pack();
    catch (Exception e)
    e.printStackTrace();
    public Dialog1()
    this(null, "", false);
    private void jbInit() throws Exception
    jPanel1.setLayout(xYLayout1);
    getContentPane().add(jPanel1);
    jPanel1.add(textFieldControl1, new XYConstraints(89, 125, 234, -1));
    jPanel1.add(navigationBar1, new XYConstraints(99, 314, -1, -1));
    jPanel1.add(textFieldControl2, new XYConstraints(89, 158, 236, -1));
    /** Manually typed the following in **/
    textFieldControl1.setDataItemName("infobus:/oracle/sessionInfo3/rowSetInfo3/ACTION_CODE");
    textFieldControl2.setDataItemName("infobus:/oracle/sessionInfo3/rowSetInfo3/ACTION_TEXT");
    navigationBar1.setDataItemName("infobus:/oracle/sessionInfo3/rowSetInfo3");
    null

Maybe you are looking for

  • Max No. of connections (Theoretical 50 Users) Or Hidden SSID

    Has anybody experienced any issues with keeping more than 32 users[MacBook (13-inch, Mid 2009)] connected all the time? These users also have trouble rejoining back the Time Capsule if it's SSID is hidden, instead their MacBooks will join other avail

  • Using the enter key on an editable table

    Hi, I'm using 11g adf and I can't figure out how to get past this: When going through an editable table (with editingMode="editAll") using the enter key, it will stop after a certain number of rows, equal to the value of fetchSize. If I want to go do

  • Date&Time takes a long time to load

    Hi I'm getting really frustrated, becasue everytime I want to look at the calander in the date and time utility, I try and open it and it takes AGES to open. Please help, what can I do to fix this???

  • Hi, I have the Zen Touch Uninsta

    I have uninstalled most of the software on my PC but some is still there, anyone know what I can do. The reason I uninstalled is because when I connect the player to download CDs onto the hard-dri've it can't dock. So I thought I would uninstall/rein

  • Terms discount function

    I created a payment term with the following specs...Due Date based on = Document Date, Days = 30, Discount = 2%.  Thus, I am hoping the system will grant the customer a 2% discount if payment is received within 30 days of the invoice date. I then inp