Preventing subclassing in TOOL

Hi all,
does anyone know how to prevent subclassing in TOOL? (Currently using
3.0.L.2)
I have a class I distribute in a library whose methods I don't want
over-ridden.
I would be happy either to prevent the subclassing, or at runtime determine
that subclassing has
occured.
I have tried the objects classname attribute, but the subclass can have the
same name as
the superclass and so I am unable to see any difference.
Also, using the IsA method from Object doesn't help as it returns true
if the object is of the specified class or a subclass of the specified
class.
Some Forte classes prevent subclassing by having the runtime property
"Superclass for Custom Class" set, and I couldn't find any documentation on
this or how to set it.
Thanks for your time.
Jeff Shaw

Hi all,
does anyone know how to prevent subclassing in TOOL? (Currently using
3.0.L.2)
I have a class I distribute in a library whose methods I don't want
over-ridden.
I would be happy either to prevent the subclassing, or at runtime determine
that subclassing has
occured.
I have tried the objects classname attribute, but the subclass can have the
same name as
the superclass and so I am unable to see any difference.
Also, using the IsA method from Object doesn't help as it returns true
if the object is of the specified class or a subclass of the specified
class.
Some Forte classes prevent subclassing by having the runtime property
"Superclass for Custom Class" set, and I couldn't find any documentation on
this or how to set it.
Thanks for your time.
Jeff Shaw

Similar Messages

  • I have a problem when you run Firefox to download a claim this tool (askToolbarInstaller-1.12.2.0.exe) What is the solution and how to prevent download scent tool.

    I have a problem when you run Firefox to download a claim this tool (askToolbarInstaller-1.12.2.0.exe) What is the solution and how to prevent download scent tool.

    i have the same exact problems too and it's starting to bother me further more...

  • Laptop-mode-tools/cpufrequtils Questions [SOLVED]

    I am running a Sony Vaio VGN-FW480J and am trying to optimize these two tools to save battery life and hard drive life span.   I have added @laptop-mode to my daemon array and acpi-cpufreq to modules. A few issues I immediately notice:
    1) cpufreq doesn't revert back to higher frequencies if I unplug and plug power source back in (before unplugging: CPU 0 - 800 MHz, CPU 1 - 2.00 GHz; after both are 800 and won't change if I plug power source back in)
    2) I believe the hard disk is actually spinning down more frequently (and fan is almost always on, even when no work is being done).  Here are the relevant files/the ones that I have altered.
    laptop-mode.conf
    # Configuration for Laptop Mode Tools
    # There is a "system" to the configuration setting names:
    # CONTROL_something=0/1 Determines whether Laptop Mode Tools controls
    # something
    # LM_something=value Value of "something" when laptop mode is active
    # NOLM_something=value Value of "something" when laptop mode is NOT
    # active
    # AC_something=value Value of "something" when the computer is running
    # on AC power
    # BATT_something=value Value of "something when the computer is running
    # on battery power
    # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
    # available prefixes are different for each setting. The available ones are
    # documented in the manual page, laptop-mode.conf(8). If there is no LM_/
    # NOLM_ in a setting name, then the value is used independently of laptop
    # mode state, and similarly, if there is no AC_/BATT_, then the value is used
    # independently of power state.
    # Some options only work on ACPI systems. They are marked ACPI-ONLY.
    # Note that this configuration file is a fragment of shell script: you
    # can use all the features of the shell scripting language to achieve your
    # desired configuration.
    # Modules
    # Laptop Mode Tools modules have separate configuration files, that can be
    # found in /etc/laptop-mode/conf.d. Please look through these configuration
    # files as well, there are many useful power saving tools in there!
    # Enable/Disable laptop-mode-tools execution
    # Set it to 0 to completely disable laptop-mode-tools from running
    ENABLE_LAPTOP_MODE_TOOLS=1
    # Configuration debugging
    # Set this to 1 if you want to see a lot of information when you start/stop
    # laptop_mode.
    VERBOSE_OUTPUT=0
    # Set this to 1 if you want to log messages to syslog
    LOG_TO_SYSLOG=1
    # Run in shell debug mode
    # Enable this if you would like to execute the entire laptop-mode-tools program
    # in shell debug mode. Warning: This will create a lot of text output
    # If you are debugging an individual module, perhaps you would want to enable
    # each module specific debug mode (available in module conf files)
    DEBUG=0
    # When to enable laptop mode
    # "Laptop mode" is the mode in which laptop mode tools makes the computer
    # consume less power. This includes the kernel "laptop_mode" feature, which
    # allows your hard drives to spin down, as well as various other settings which
    # can be tweaked by laptop mode tools. You can enable or disable all of these
    # settings using the CONTROL_... options further down in this config file.
    # Enable laptop mode when on battery power.
    ENABLE_LAPTOP_MODE_ON_BATTERY=1
    # Enable laptop mode when on AC power.
    ENABLE_LAPTOP_MODE_ON_AC=1
    # Enable laptop mode when the laptop's lid is closed, even when we're on AC
    # power? (ACPI-ONLY)
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
    # Enable all simple zero-configuration auto modules
    # This option enables all simple modules (listed below) without requiring
    # the user to enable each module individually
    # List of modules which can be automatically enabled with this setting are:
    # ac97-powersave
    # cpufreq
    # dpms-standby
    # eee-superhe
    # ethernet
    # exec-commands
    # hal-polling
    # hdparm
    # intel-hda-powersave
    # intel-sata-powermgmt
    # runtime-pm
    # sched-mc-power-savings
    # sched-smt-power-savings
    # terminal-blanking
    # usb-autosuspend
    # wireless-ipw-power
    # wireless-iwl-power
    # wireless-power
    # Set this to 1 to enable all simple zero-configuration auto modules listed above.
    # NOTE: You can explicitly enable/disable any of the above modules by changing their
    # values in the individual settings file
    ENABLE_AUTO_MODULES=1
    # When to enable data loss sensitive features
    # When data loss sensitive features are disabled, laptop mode tools acts as if
    # laptop mode were disabled, for those features only.
    # Data loss sensitive features include:
    # - laptop_mode (i.e., delayed writes)
    # - hard drive write cache
    # All of the options that follow can be set to 0 in order to prevent laptop
    # mode tools from using them to stop data loss sensitive features. Use this
    # when you have a battery that reports the wrong information, that confuses
    # laptop mode tools.
    # Disabling data loss sensitive features is ACPI-ONLY, and it only works if
    # your battery gives off frequent ACPI events to indicate a change in battery
    # level.
    # NOTE: If your battery does NOT give off battery events often enough, you can
    # enable the battery-level-polling module to make this work. Look at the
    # file /etc/laptop-mode/conf.d/battery-level-polling.conf for more information.
    # Disable all data loss sensitive features when the battery level (in % of the
    # battery capacity) reaches this value.
    MINIMUM_BATTERY_CHARGE_PERCENT=3
    # Disable data loss sensitive features when the battery reports its state
    # as "critical".
    DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
    # Controlled hard drives and partitions
    # For spinning down your hard drives, laptop mode will remount file systems and
    # adjust hard drive spindown timeouts. These parameters specify which
    # devices and partitions are affected by laptop mode.
    # The drives that laptop mode controls.
    # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
    # wildcard, which will get you all your IDE and SCSI/SATA drives.
    HD="/dev/[hs]d[abcdefgh]"
    # The partitions (or mount points) that laptop mode controls.
    # Separate the values by spaces. Use "auto" to indicate all partitions on drives
    # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
    # also specify mount points, e.g. "/mnt/data".
    PARTITIONS="auto /dev/mapper/*"
    # If this is enabled, laptop mode tools will assume that SCSI drives are
    # really SATA drives that only _look_ like SCSI drives, and will use hdparm
    # to control them. Set this to 0 if you have /dev/sd devices and you want
    # laptop mode tools to use the "sdparm" command to control them.
    ASSUME_SCSI_IS_SATA=1
    # Hard drive behaviour settings
    # These settings specify how laptop mode tools will adjust the various
    # parameters of your hard drives and file systems.
    # Maximum time, in seconds, of work that you are prepared to lose when your
    # system crashes or power runs out. This is the maximum time that Laptop Mode
    # will keep unsaved data waiting in memory before spinning up your hard drive.
    LM_BATT_MAX_LOST_WORK_SECONDS=600
    LM_AC_MAX_LOST_WORK_SECONDS=360
    # Should laptop mode tools control readahead?
    CONTROL_READAHEAD=1
    # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
    # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
    # Effectively, the disk will read a complete MP3 at once, and will then spin
    # down while the MP3/OGG is playing. Don't set this too high, because the
    # readahead is applied to _all_ files that are read from disk.
    LM_READAHEAD=3072
    NOLM_READAHEAD=128
    # Should laptop mode tools add the "noatime" option to the mount options when
    # laptop mode is enabled?
    CONTROL_NOATIME=0
    # Should laptop use relatime instead of noatime? The "relatime" mount option has
    # more standards-compliant semantics, and allows more applications to work,
    # while retaining a low level of atime updates (i.e., disk writes).
    USE_RELATIME=0
    # Should laptop mode tools control the hard drive idle timeout settings?
    CONTROL_HD_IDLE_TIMEOUT=1
    # Idle timeout values. (hdparm -S)
    # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
    # for battery and for AC with laptop mode on.
    LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
    LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
    NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
    # Should laptop mode tools control the hard drive power management settings?
    # Set to 0 to disable
    CONTROL_HD_POWERMGMT="auto"
    # Power management for HD (hdparm -B values)
    BATT_HD_POWERMGMT=128
    LM_AC_HD_POWERMGMT=254
    NOLM_AC_HD_POWERMGMT=254
    # Should laptop mode tools control the hard drive write cache settings?
    CONTROL_HD_WRITECACHE=0
    # Write cache settings for HD (hdparm -W values)
    NOLM_AC_HD_WRITECACHE=1
    NOLM_BATT_HD_WRITECACHE=0
    LM_HD_WRITECACHE=0
    # Settings you probably don't want to touch
    # It is usually not necessary to change these parameters. They are included
    # for completeness' sake.
    # Change mount options on partitions in PARTITIONS? You don't really want to
    # disable this. If you do, then your hard drives will probably not spin down
    # anymore.
    CONTROL_MOUNT_OPTIONS=1
    # Dirty synchronous ratio. At this percentage of dirty pages the process
    # which calls write() does its own writeback.
    LM_DIRTY_RATIO=60
    NOLM_DIRTY_RATIO=40
    # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
    # exceeded, the kernel will wake pdflush which will then reduce the amount
    # of dirty memory to dirty_background_ratio. Set this nice and low, so once
    # some writeout has commenced, we do a lot of it.
    LM_DIRTY_BACKGROUND_RATIO=1
    NOLM_DIRTY_BACKGROUND_RATIO=10
    # kernel default settings -- don't touch these unless you know what you're
    # doing.
    DEF_UPDATE=5
    DEF_XFS_AGE_BUFFER=15
    DEF_XFS_SYNC_INTERVAL=30
    DEF_XFS_BUFD_INTERVAL=1
    DEF_MAX_AGE=30
    # This must be adjusted manually to the value of HZ in the running kernel
    # on 2.4, until the XFS people change their 2.4 external interfaces to work in
    # centisecs. This can be automated, but it's a work in progress that still
    # needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
    # external interfaces, and that is currently always set to 100. So you don't
    # need to change this on 2.6.
    XFS_HZ=100
    # Seconds laptop mode has to to wait after the disk goes idle before doing
    # a sync.
    LM_SECONDS_BEFORE_SYNC=2
    cpufreq.conf
    # Configuration file for Laptop Mode Tools module cpufreq.
    # For more information, consult the laptop-mode.conf(8) manual page.
    # CPU frequency scaling and throttling
    # Laptop mode tools can automatically adjust your kernel CPU frequency
    # settings. This includes upper and lower limits and scaling governors.
    # There is also support for CPU throttling, on systems that don't support
    # frequency scaling.
    # This feature only works on 2.6 kernels.
    # IMPORTANT: In versions 1.36 and earlier, these settings were included in the
    # main laptop-mode.conf configuration file. If they are still present, they
    # overrule the settings in this file. To fix this, simply delete the settings
    # from the main config file.
    # Enable debug mode for this module
    # Set to 1 if you want to debug this module
    DEBUG=0
    # Should laptop mode tools control the CPU frequency settings?
    # Set to 0 to disable
    CONTROL_CPU_FREQUENCY="auto"
    # Legal values are "slowest" for the slowest speed that your
    # CPU is able to operate at, "fastest" for the fastest speed,
    # "medium" for some value in the middle, or any value listed in
    # /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
    # The "governor" can be any governor installed on your system, this usually
    # includes "ondemand", "conservative", and "performance". The
    # "IGNORE_NICE_LOAD" setting specifies that background programs that have
    # a low priority ("nice level") should not cause the CPU frequency to
    # be increased. (You generally want this to be enabled in battery mode.)
    BATT_CPU_MAXFREQ=fastest
    BATT_CPU_MINFREQ=slowest
    BATT_CPU_GOVERNOR=ondemand
    BATT_CPU_IGNORE_NICE_LOAD=1
    LM_AC_CPU_MAXFREQ=fastest
    LM_AC_CPU_MINFREQ=slowest
    LM_AC_CPU_GOVERNOR=ondemand
    LM_AC_CPU_IGNORE_NICE_LOAD=1
    NOLM_AC_CPU_MAXFREQ=fastest
    NOLM_AC_CPU_MINFREQ=slowest
    NOLM_AC_CPU_GOVERNOR=ondemand
    NOLM_AC_CPU_IGNORE_NICE_LOAD=0
    # Should laptop mode tools control the CPU throttling? This is only useful
    # on processors that don't have frequency scaling.
    # (Only works when you have /proc/acpi/processor/CPU*/throttling.)
    # This is only useful on older P4 processors that do not support frequency
    # scaling. On such processors, this is the only way to reduce power consumption
    # but at the cost of higher performance penalty.
    # Enable this only if you have a processor that does not support frequency scaling
    # On most new processors, you might want to disable it.
    # Set to 0 to disable.
    CONTROL_CPU_THROTTLING=0
    # Legal values are "maximum" for the maximum (slowest) throttling level,
    # "minimum" for minimum (fastest) throttling level, "medium" for a value
    # somewhere in the middle (this is usually 50% for P4s), or any value listed
    # in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
    # this may be _very_ slow (in fact, with P4s it slows down the processor
    # by a factor 8).
    BATT_CPU_THROTTLING=medium
    LM_AC_CPU_THROTTLING=medium
    NOLM_AC_CPU_THROTTLING=minimum
    battery-level-polling.conf
    # Configuration file for Laptop Mode Tools module battery-level-polling.
    # For more information, consult the laptop-mode.conf(8) manual page.
    # Battery level polling settings
    # This module allows laptop mode to react to battery level changes, even if the
    # battery does not send out frequent ACPI events for such battery level changes.
    # Note that this does NOT make ACPI-only features work on non-ACPI hardware.
    # Enable debug mode for this module
    # Set to 1 if you want to debug this module
    DEBUG=0
    # Enable this setting to enable battery level polling.
    ENABLE_BATTERY_LEVEL_POLLING=1
    hal-polling.conf
    # Configuration file for Laptop Mode Tools module hal-polling.
    # For more information, consult the laptop-mode.conf(8) manual page.
    # HAL polling settings
    # If you enable this module, laptop mode tools will control the polling of
    # your CD/DVD drives by HAL. Disabling polling saves a considerable amount of
    # power, but for some older CD/DVD drives it means that inserted CDs are no
    # longer autodetected. In such cases, you must turn this option off.
    # Alternatively, you can configure laptop mode tools to turn HAL polling on only
    # when the laptop is running on AC power. This would mean that CDs are not
    # autodetected while the laptop is running on battery power, but the power
    # savings may be worth the extra manual labour when you insert a CD.
    # Enable debug mode for this module
    # Set to 1 if you want to debug this module
    DEBUG=0
    # Control HAL polling?
    # Set to 0 to disablei, vs "auto".
    CONTROL_HAL_POLLING=0
    # Disable HAL polling on battery?
    BATT_DISABLE_HAL_POLLING=0
    # Disable HAL polling on AC?
    AC_DISABLE_HAL_POLLING=0
    # Drives to apply HAL polling settings to
    HAL_POLLING_DEVICES="/dev/scd?"
    Please let me know if you require any additional information. Thank you in advance for any help.
    Last edited by Aesir (2011-04-14 14:35:09)

    Aesir wrote:Can I make BATT_CPU_GOVERNOR=conservative even if it is not listed in the scaling_available_governors file?
    If your governor isn't listed in scaling_available_governors, it won't work.  See stqn's link for info on adding governors.
    stqn wrote:Edit2: oh well, scrolling a bit up, the wiki says you don't need to add governors if you're using laptop-mode-tools... I don't know.
    You do need governors if you're using laptop-mode-tools, because all laptop-mode-tools does is flip between them automatically.
    If you're using cpufrequtils, you'll need the userspace governor for it to work properly.  I don't use cpufrequtils personally, so I'm not sure how to get it to work in conjunction with laptop-mode-tools.  You may have to disable frequency scaling in laptop-mode-tools by changing CONTROL_CPU_FREQUENCY to 0 in cpufreq.conf
    Edit - now that I think about it, maybe laptop-mode-tools and cpufrequtils know how to load the modules themselves automatically.  I guess try it and see if they can.  You can check which governor is in use with:
    $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    You can also manually change governors by running (as root):
    #  echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    Of course, substitue the governor you want.
    Last edited by redden0t8 (2011-03-29 19:27:12)

  • Changing size of tool bars & icons in Photoshop Elements 10

    Was using Photoshop Elements 10 on my windows vista with no problems. Just got a new computer with Windows 7 and moved Elements 10 with no installation error messages.
    Just tried to edit some pictures and all the tool bars and icons are so tiny - extremely hard to read. Tried adjusting the text size to 150% in control panel but it did not change anything in Elements.
    Is there a setting that can be readjusted - do I need to uninstall and reinstall with some setting tweaks??
    Please help!!!!

    You need to use the default, 100% screen font size in Windows to prevent problems like tool cursors and menu bars not displaying correctly.
    There's no way to adjust PSE's font size or icon size.
    Ken

  • When user clicks OOTB Calendar Tool appears at top of page

    Hello Community
        Using Sharepoint 2010 server and UI when the user clicks on
    the OOTB Calendar the Calendar Tool at the top of the page appears
    giving them the access to things like: Calendar Overlay, Manage Views,
    Email a Link, RSS Feed, Export to Excel.
        How can I prevent the Calendar Tool from appearing on the page?
        Thank you
        Shabeaut

    Hi Shabeaut,
    You will not get Permission Level option into Calendars.
    For Permission Level you have to navigate to Site Action > Site Settings > Site Permission
    Or
    You can directly type http://site/_layouts/role.aspx
    You will definitely find View permission over there and then you can follow my instruction to create custom permission level
    Once you will create custom permission, assign it to intended user / group and then add that group / user to OOTB calendar.
    You can refer below video for how to create custom permission level in SharePoint 2010
    http://www.youtube.com/watch?v=UnxPwngzer4
    Let us know your results, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Unwanted spam tabs appear while working at a web site. How do you prevent this?

    While in Firefox working on banking or looking at news stories, new tabs appear and open over the page I am working on. I did not request these tabs and they are spam, saying I won some prize, need to download security software, etc. Some are hard to close, requiring multiple clicks. There must be a way to prevent this in Tools or somewhere in Firefox.

    Your issue may be caused by Malware. You can run and update the following '''free''' antivirus software:
    1. Malwarebytes (Free version) - http://www.malwarebytes.org
    2. Spybot Search & Destroy - http://www.safer-networking.org
    3.Spyware Terminator - http://www.spywareterminator.com
    In addition, there are a number of forums you can use to help get rid of your infection. These include:
    *[http://www.bleepingcomputer.com/forums/ Bleeping Computer]
    *[http://forums.spybot.info/ Safer-Networking Forums]
    *[http://www.spywarewarrior.com/index.php Spyware Warrior Forums]
    *[http://www.spywarewarrior.com/index.php SpywareInfo Forums]

  • Cannot use the text tool in PS6

    When I try to use the text tool, I get the error message that "something prevented the text tool from being initialized."

    More info please (OS etc.). 
    http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Stop Selection tool to Trim tool

    So, what key can I hold down, or preference should I change to prevent the Selection tool from turning into the Trim tool?
    I want to be able to quickly rearrange (small) clips in a (long) timeline without having to zoom in.
    It's such a simple request for such a common task, there must be a solution I'm missing.

    A very common workflow for me is to lasso a group of clips, they're all highlighted, so I figure I can just click and drag, but no, I have to slow WAY down and hover, back and forth, stop when it turns to a Selection tool, click, drag, whoops, it moved and changed to trim, and trimmed just one of the formerly lassoed clips, undo, lasso, repeat as necessary.
    I took Jim's most helpful advice.

  • Remove developer tools

    I've tried everything I can find on-line but I cannot prevent the developer tools from interfering when I type in a search or type in text on a web page.
    I have gone to about:config and turned off every dev listed, still nothing changes.
    Please tell me how to remove the developer tools from my computer

    did you done using this command '''devtools.*.enabled''' ? Make out all values false .
    Read more about '''about:config''' > http://kb.mozillazine.org/about:config

  • Warp Tool Help Needed ?!

    I want to warp a specific selection of a portion of a layer, but everytime I do this the warp tool cuts off the edges. Is there a way to prevent the warp tool from doing this ?
    -Thank you in advance

    Some quick ideas:
    Try the Liquify tool instead.
    Or Warp the entire image without making a selection first.
    Or make a new layer and warp more than you need, then blend it with what's left from below.
    -Noel

  • Generate Turing Number for form submission to prevent automated registraton

    Hi,
    How I want to have a script to generate and check a turing number. A turing number is a number the user has to read and copy in order to be able to validate a form. This avoids automated submissions. Just like when you register for yahoo mail etc it asks for this number to prevent automated registrations. Any help is appreciated.
    Thanks

    Just so happens 3 days ago, I took a few hours to research and write a few methods that generate a "turing" sequence of characters and numbers or custom and write an image, I call them viverification (vivo = life , verify = proof) images. Very simple, I have different methods for different needs in my client application code. Here are the methods:
         * Returns a random character chosen from the input charset. If the charset is an empty string returns a char
         * from the set:
         *"1AaBb2CcDdEe3FfGgHh4IiJjKk5LlMmNn6OoPp7QqRr8SsTt9UuVvWw0XxYyZz"
         * Implicit use of the java.util.Random() provides the pseudo random selection algorithm. Iteration of provided set
         * means that efficiency decreases with char set length, so use of very long charsets will incur a performance penalty.
         * If you desire simply to have a random roman letter provided , the getRandomRomanLetter(boolean)  allows returning upper case
         * or mixed case chars.
         *@param String charset -- The set of characters to use as random selection items. If you provide "eaAVB456" the output will be randomized
         * about those 8 characters returning. "e" or "B" or "4" ...in a random fashion.
         *@returns char -- A randomly selected char from the string provided as charset.
        public static char getRandomCharFromString(String charset) {
            if(charset.trim().equals("")) charset = "1AaBb2CcDdEe3FfGgHh4IiJjKk5LlMmNn6OoPp7QqRr8SsTt9UuVvWw0XxYyZz";
            java.util.Random ur = new java.util.Random();
            java.text.StringCharacterIterator sci = new StringCharacterIterator("");
            sci.setText(charset);
            sci.setIndex(ur.nextInt(charset.length()));
            return sci.current();
         * Returns a random character chosen from a character set as defined by the boolean mixed case.
         * Implicit use of the java.util.Random() provides the pseudorandom selection algorithm. Iteration of provided set
         * means that efficiency decreases with char set length, so use of very long charsets will incur a performance penalty.
         * If you desire simply to have a random letter from an arbitrary string of characters, the getRandomCharFromString(String)
          *a char from a user provided set.
         * @param boolean mixed case -- If false, returns only chars from the set [A...Z] if true returns char from set. [aAbB...zZ]
          *@returns char -- A randomly selected char from the string provided as charset.
        public static char getRandomRomanLetter(boolean mixedcase) {
            String set = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            if(mixedcase)  set = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz";
            return Utilities.getRandomCharFromString(set);
         * Generates a 7 character Viverification Image used to confirm that only in vivo agents are filling out forms presented with the image.
         * The generated characters have forced capital roman letters at start and ends with 5 numerals in the center like: <p>
         * S35872F or R87356H
         * In conjunction with a confirmation field, the characters generated in the image can be matched against the returned string
         * value of those characters returned by this method to ensure a human agent filled out the form. An obfuscation diagonal line is
         *  drawn across the embedded sequence to obfuscate the image from OCR discovery techniques. This prevents bots from
         * being programmed to fill out forms or create accounts on systems built using the framework.
         * @param String path -- The fully qualified file path on the system to write the generated jpeg image file along with the file name.
         * @param int width -- The width of the generated image.  Must be long enough to accommodate the 7 characters as rendered on the generating platform to avoid truncation.
         * @param int height -- The height of the generated image.
         * @returns String -- If the Image generation succeeded, the string of the randomly generated character embedded in the generated image, empty string otherwise.
        public static String createViverificationImageAtPath(String path,int width, int height) throws IOException {
            String out = "";
            java.awt.image.BufferedImage bi = new java.awt.image.BufferedImage(width,height,BufferedImage.TYPE_INT_RGB);
            String viver = (int)((float)Math.random() * 100000) + "";
            viver = Utilities.getRandomRomanLetter(false) + viver + Utilities.getRandomRomanLetter(false);
            Graphics2D g2d =  bi.createGraphics();
           // g2d.setBackground(new Color(200,200,200));
            g2d.drawString(viver,3,height - 5);
            g2d.drawLine(0,height,width,0);
            ImageIO.write(bi,"jpeg",new File(path));
            return viver;
         * Generates a n character Viverification Image used to confirm that only in vivo agents are filling out forms presented with the image.
         * Where n is the length of the input message string.
         * In conjunction with a confirmation field, the characters generated in the image are matched against the returned string
         * value of those characters returned by this method to ensure a human agent filled out the form. This prevents bots from
         * being programmed to fill out forms or create accounts on systems built using the framework. Provides a boolean to enable
         * or disable character obfuscation using a line drawn diagonally across the image text. This prevents OCR automated tools
         * from being used to divine the characters. Accepts a custom desired string rather
         * than generating a random string as is done in createViverificationImageAtPath().
         * @param String path -- The fully qualified file path on the system to write the generated jpeg image file along with the file name.
         * @param String messg -- The desired message string to insert into the image, input image width must be long enough to accomodate the text or it will be truncated.
         * @param int width -- The width of the generated image.messg character string must be less than this width otherwise it will be truncated.
         * @param int height -- The height of the generated image.
         * @returns String -- If the Image generation succeeded, the string of the randomly generated character embedded in the generated image, empty string otherwise.
        public static String createViverificationImageAtPathWithString(String path,String messg,int width, int height,boolean obfuse) throws IOException {
            String out = "";
            java.awt.image.BufferedImage bi = new java.awt.image.BufferedImage(width,height,BufferedImage.TYPE_INT_RGB);
            String viver = messg;
            Graphics2D g2d =  bi.createGraphics();
            g2d.drawString(viver,3,height - 5);
            if(obfuse) g2d.drawLine(0,height,width,0);
            ImageIO.write(bi,"jpeg",new File(path));
            return viver;
        }You'll just need to import the requisite java packages used and you are good to go. If you want to make more complex images you can investigate the image API's further to get a more fancy (though it really is pointless to do so) minimally visually obfuscated images are all you need to thwart even the best subversive OCR (optical character recognition) algorithms that might be used by nefarious agents to spoof viverification.
    Use:
    Ideally you'd call the method as part of generating a page for an authentication or form in a dynamic fashion. (jsp /servlet) The returned string will allow the method to verify the sequence generated against the value returned by the vivo agent viewing the form. As part of validation you would write simple code to check if the string returned during the image generation doesn't match the form field for agent entry. If so you can deny the action, otherwise you can authorize it.
    Enjoy!
    Regards,
    David

  • Enable snipping tool via registry

    Enable  snipping tool via registry on local computer as it is restricted by gpo.
    Mukesh Saini

    Hi Mukesh,
    >>Enable  snipping tool via registry on local computer as it is restricted by gpo.
    What do you mean by that it is restricted by group policy? Is there software restriction policy or Applocker policy preventing the Snipping Tool from running? If yes, it's recommended that we contact our domain admin or system admin to tackle the situation.
    Best regards,
    Frank Shen

  • Problem with NIK "Selective Tool" not appearing in PS5

    I have a problem and I am trying to track down what is the cause and how to resolve it.  I installed Nik Color Efex Pro 3.110 into Photoshop CS5 (32bit) within Windows XP and the "Selective Tool" does not appear.  According to everything I've read and googled about so far, this is not normal behavior.  I have tried running the Automate Selective Tool to get it to run, and it does nothing either.  I have also checked the registry entry bit for this and it is set to properly.  The strange thing is that the plugin works properly from CS4.  The OnOne plugin suite also functions properly from within CS5.  Is there some known incompatibility (aside from the known 64bit issues that are not applicable in this case) with CS5 and the Nik Selective Tool palette?  Where should I check for problems that might be preventing the Selective Tool from launching properly?
    Just for informational purposes, this is from a fresh install of Photoshop CS5 on a new installation of Windoes XP SP3 (fully updated).

    I think I found it - Application deficiency. It is the language that you are logged with. If it is not English the application is not recording the text that you type in the reason/activity fields upon FF session.
    I hope the latest patches are fixing this!
    BR
    Iliya

  • EPMMaster.rpd Fusion Pack migration from OBIEE 10g to 11g

    We have successfully installed OBIEE 10g and 11g on Windows 2008 32bit servers. On the 10g Installation, we have applied the Fusion Pack EPMMaster RPD file and it connects successfully to our EPM warehouse. We want to migrate the Fusion pack to 11g which is also setup on the same platform. Per the instructions in the documentation, we have copied the files (RPD file and Webcat folder) to the 11g server. We run the UA.bat file and it proceeds to start copying the files over fom the RPD and WebCatalog to the new system. It completes this process, but then hangs on starting the Oracle BI server - it never gets beyond that.
    We will be purchasing the EPMMaster RPD and know it is not available yet for 11g – however we’re trying to get ahead of the curve a bit and manually fix the items in the presentation layer that will not render correctly in 11g
    upgrade exception occurred
    Unable to start process: instance1: coreapplication_obis1
    One thing that I noticed – Since the UA tool does not completely finish --
    RPD size on 10g – 42,675KB; 11g – 6,375KB
    I manually change the webcat in Enterprise Manager to the EPMMaster catalog -this actually caused additional errors on restart.
    Has anyone attempted upgrading a delivered RPD to 11g?
    Thanks in advance -

    This is a known issue that we have worked through with Oracle tech support. The Dimension Deduction.Deduction Sid causes an error that prevents the UA tool from completing the upgrade process. There are a couple of ways around this, but the fastest is to simply delete the Dimension, the two related hierarchies and the fact table that is joined to this dimension. Physical table do not need to be touched however. There are still issues once it’s moved to 11g, but those can be addressed post migration. Thanks much to the Oracle support team for helping us out with this issue!

  • Odd suspend issue--- can't 'make' it suspend.

    Basically suspend and hibernate work, buuuuttt...
    They only work when laptop-mode times out and sets the comp to suspend, then later into hibernate. It will not actually suspend when I give it a 'sudo pm-suspend' or hibernate with a 'sudo pm-hibernate'. I have never actually messed with suspend/hibernate, so I really have no idea what I am doing, or where to find the logs for it. Usually I do not use it, but for some reason it's bugging me lately.
    Edit: The biggest peeve I have is that it will not suspend when I close the lid. Perhaps I should have stuck to using a GUI for this, I may have messed up my laptop-mode.conf somehow.
    # Configuration for Laptop Mode Tools
    # There is a "system" to the configuration setting names:
    # CONTROL_something=0/1 Determines whether Laptop Mode Tools controls
    # something
    # LM_something=value Value of "something" when laptop mode is active
    # NOLM_something=value Value of "something" when laptop mode is NOT
    # active
    # AC_something=value Value of "something" when the computer is running
    # on AC power
    # BATT_something=value Value of "something when the computer is running
    # on battery power
    # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
    # available prefixes are different for each setting. The available ones are
    # documented in the manual page, laptop-mode.conf(8). If there is no LM_/
    # NOLM_ in a setting name, then the value is used independently of laptop
    # mode state, and similarly, if there is no AC_/BATT_, then the value is used
    # independently of power state.
    # Some options only work on ACPI systems. They are marked ACPI-ONLY.
    # Note that this configuration file is a fragment of shell script: you
    # can use all the features of the shell scripting language to achieve your
    # desired configuration.
    # Modules
    # Laptop Mode Tools modules have separate configuration files, that can be
    # found in /etc/laptop-mode/conf.d. Please look through these configuration
    # files as well, there are many useful power saving tools in there!
    # Configuration debugging
    # Set this to 1 if you want to see a lot of information when you start/stop
    # laptop_mode.
    VERBOSE_OUTPUT=0
    # When to enable laptop mode
    # "Laptop mode" is the mode in which laptop mode tools makes the computer
    # consume less power. This includes the kernel "laptop_mode" feature, which
    # allows your hard drives to spin down, as well as various other settings which
    # can be tweaked by laptop mode tools. You can enable or disable all of these
    # settings using the CONTROL_... options further down in this config file.
    # Enable laptop mode when on battery power.
    ENABLE_LAPTOP_MODE_ON_BATTERY=1
    # Enable laptop mode when on AC power.
    ENABLE_LAPTOP_MODE_ON_AC=0
    # Enable laptop mode when the laptop's lid is closed, even when we're on AC
    # power? (ACPI-ONLY)
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1
    # When to enable data loss sensitive features
    # When data loss sensitive features are disabled, laptop mode tools acts as if
    # laptop mode were disabled, for those features only.
    # Data loss sensitive features include:
    # - laptop_mode (i.e., delayed writes)
    # - hard drive write cache
    # All of the options that follow can be set to 0 in order to prevent laptop
    # mode tools from using them to stop data loss sensitive features. Use this
    # when you have a battery that reports the wrong information, that confuses
    # laptop mode tools.
    # Disabling data loss sensitive features is ACPI-ONLY.
    # Disable all data loss sensitive features when the battery level (in % of the
    # battery capacity) reaches this value.
    #MINIMUM_BATTERY_CHARGE_PERCENT=5
    # Disable data loss sensitive features when the battery reports its state
    # as "critical".
    DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
    # Controlled hard drives and partitions
    # For spinning down your hard drives, laptop mode will remount file systems and
    # adjust hard drive spindown timeouts. These parameters specify which
    # devices and partitions are affected by laptop mode.
    # The drives that laptop mode controls.
    # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
    # wildcard, which will get you all your IDE and SCSI/SATA drives.
    HD="/dev/sda"
    # The partitions (or mount points) that laptop mode controls.
    # Separate the values by spaces. Use "auto" to indicate all partitions on drives
    # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
    # also specify mount points, e.g. "/mnt/data".
    PARTITIONS="auto /dev/mapper/*"
    # If this is enabled, laptop mode tools will assume that SCSI drives are
    # really SATA drives that only _look_ like SCSI drives, and will use hdparm
    # to control them. Set this to 0 if you have /dev/sd devices and you want
    # laptop mode tools to use the "sdparm" command to control them.
    ASSUME_SCSI_IS_SATA=1
    # Hard drive behaviour settings
    # These settings specify how laptop mode tools will adjust the various
    # parameters of your hard drives and file systems.
    # Maximum time, in seconds, of work that you are prepared to lose when your
    # system crashes or power runs out. This is the maximum time that Laptop Mode
    # will keep unsaved data waiting in memory before spinning up your hard drive.
    LM_BATT_MAX_LOST_WORK_SECONDS=600
    LM_AC_MAX_LOST_WORK_SECONDS=360
    # Should laptop mode tools control readahead?
    CONTROL_READAHEAD=1
    # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
    # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
    # Effectively, the disk will read a complete MP3 at once, and will then spin
    # down while the MP3/OGG is playing. Don't set this too high, because the
    # readahead is applied to _all_ files that are read from disk.
    LM_READAHEAD=3072
    NOLM_READAHEAD=3072
    # Should laptop mode tools add the "noatime" option to the mount options when
    # laptop mode is enabled?
    CONTROL_NOATIME=0
    # Should laptop use relatime instead of noatime? The "relatime" mount option has
    # more standards-compliant semantics, and allows more applications to work,
    # while retaining a low level of atime updates (i.e., disk writes).
    USE_RELATIME=1
    # Should laptop mode tools control the hard drive idle timeout settings?
    CONTROL_HD_IDLE_TIMEOUT=1
    # Idle timeout values. (hdparm -S)
    # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
    # for battery and for AC with laptop mode on.
    LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
    LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
    NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
    # Should laptop mode tools control the hard drive power management settings?
    CONTROL_HD_POWERMGMT=1
    # Power management for HD (hdparm -B values)
    BATT_HD_POWERMGMT=1
    LM_AC_HD_POWERMGMT=254
    NOLM_AC_HD_POWERMGMT=254
    # Should laptop mode tools control the hard drive write cache settings?
    CONTROL_HD_WRITECACHE=1
    # Write cache settings for HD (hdparm -W values)
    NOLM_AC_HD_WRITECACHE=1
    NOLM_BATT_HD_WRITECACHE=0
    LM_HD_WRITECACHE=0
    # Settings you probably don't want to touch
    # It is usually not necessary to change these parameters. They are included
    # for completeness' sake.
    # Change mount options on partitions in PARTITIONS? You don't really want to
    # disable this. If you do, then your hard drives will probably not spin down
    # anymore.
    CONTROL_MOUNT_OPTIONS=1
    # Dirty synchronous ratio. At this percentage of dirty pages the process
    # which calls write() does its own writeback.
    LM_DIRTY_RATIO=60
    NOLM_DIRTY_RATIO=40
    # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
    # exceeded, the kernel will wake pdflush which will then reduce the amount
    # of dirty memory to dirty_background_ratio. Set this nice and low, so once
    # some writeout has commenced, we do a lot of it.
    LM_DIRTY_BACKGROUND_RATIO=1
    NOLM_DIRTY_BACKGROUND_RATIO=10
    # kernel default settings -- don't touch these unless you know what you're
    # doing.
    DEF_UPDATE=5
    DEF_XFS_AGE_BUFFER=15
    DEF_XFS_SYNC_INTERVAL=30
    DEF_XFS_BUFD_INTERVAL=1
    DEF_MAX_AGE=30
    # This must be adjusted manually to the value of HZ in the running kernel
    # on 2.4, until the XFS people change their 2.4 external interfaces to work in
    # centisecs. This can be automated, but it's a work in progress that still
    # needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
    # external interfaces, and that is currently always set to 100. So you don't
    # need to change this on 2.6.
    XFS_HZ=100
    # Seconds laptop mode has to to wait after the disk goes idle before doing
    # a sync.
    LM_SECONDS_BEFORE_SYNC=2
    Edit/Update: After playing with it for a little while, I decided to try without starting laptop-mode-tools with the startup... and low and behold, it functioned perfectly.
    Now all I need is to figure out a clean way of setting the CPU freq on and off AC and I am all set.
    Last edited by LeoSolaris (2009-02-25 16:42:17)

    Hello misslissa:
    Welcome to Apple discussions.
    Try this:
    Boot from your software install DVD and then run repair disk (fsck is not recommended by Apple after OS X 10.4).
    A question…. did the problem just start out of the blue, or have there been hardware changes?
    Barry

Maybe you are looking for

  • Sales Billing Issue

    Hi All, My Scenario I have a sales order time with a price X with multiple schedule lines ( Have to be maintained manually in sales order. No Condition record is maintained for Price due to laborious work pressure) At the time of delivery of each sch

  • My I-touch wont connect to the internet.HELP

    OK i just got and ipod touch for my birthday and whenever i try to go on safari or youtube it says cannot connect to server. I am standing right in front of my wireless router. If i go to Wi-fi setting on my i touch it has the IP address and the Subn

  • Opening up Attachments in Calendar

    I read through a recent post regarding opening of attachments within a Calendar appointment.  I followed what was suggested to do and have the Documents To Go Software (Along with PDF To Go)  on my 8330 Blackberry but still have been unable to open t

  • System showing Wrong Billing Date of Billing Document number

    Hi, We have created a Billing Document Number 2010352872 on today dtd. 18/11/2010 but system is showing its Billing Date 17/11/2010. Why?? Please help...

  • Variables in URL iview

    Hi. We are going to create URL iview in Portal 60 SP15. When we create URL iview, We want to use variable for URL parameter. (For example <User.UserID>) Any idea ? Regards, Arnold.