Per_person_type_usages_f puzzle

Hi,
I'm here to understand per_person_type_usages_f in terms of absence participation...
We have many cases where in this table for a given employee you may see:
1. A Regular Employee row spanning the life of the person record (expected)
2. One or many Participant rows relating to sick absence created by the absence participation process at the time of processing a current absence BUT not including that absence.
So, in one case:
- Regular Employee entry effective from 10/02/1986 to 31/12/4712
- 6 rows relating to sick absence periods between 07/08/2003 and 23/10/2006
- 2 periods of sick absence in 2008 and 2009 which do not have a corresponding row in per_person_type_usages_f (however, the 2008 absence's creation date ties up with the creation date of the retrospective rows in the per_person_type_usages_f table)
This appears to be common across many employees, I just don't understand what it represents. The reason I ask is that we check for a change in person type during interfaced changes in assignment data, so retrospective changes often flag up these changes if a period of absence falls within the effective start date and effective end date of the change to be applied. I need to change that logic to ignore Participant rows probably - but I'd like to understand the way absence appears in this table before I do so.
Many thanks in anticipation for any pointers you may have.
Bagpuss

Well, this is one of those situations where we really need to see your data, which, unfortunately, we cannot do on this forum. Look at your per_person_types table, and the person_type_id values showing for your example employee in the per_person_type_usages_f table. I am thinking that maybe HR or Payroll is changing the person type to something like "Sick Employee" when the employee has an absence, then change back to a regular employee type when the absence ends. Then maybe someone got tired of making all these person type changes and stopped doing that? Just guessing. Generally per_person_types are used to indicate the type of person the person is within the Oracle HR system - such as employee, retiree, applicant, spouse, domestic partner, and so forth. I don't think it was designed/intended for tracking absences, but it certainly could be attempted to be used that way if a company wants to do so. So study your records by joining per_person_types to per_person_type_usages_f and seeing what kinds of person types are being assigned to these absence records. Then you may need to go talk to someone in HR/Payroll to see if they can explain what you are seeing. Hope this makes some sense.
John Dickey

Similar Messages

  • Can no longer open NY Times puzzles: "puz could not be opened, because an unknown error occurred.?

    Since updating Firefox, I can no longer open the NY Times daily/Sunday puzzle in the program used for crossword puzzles. Older puzzles sall open.

    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • [SOLVED] Puzzled: Web site visible on network but not outside network

    Edit: Ok, nevermind . . . somehow the problem has resolved itself. Perhaps my ISP was having a bad hair day or something.
    I'm puzzled by this small problem I'm having. It is NOT a critical problem or anything, just something I'd like to solve.
    I've installed the LAMP packages, set up a small MySQL database and made a very simple web interface for it. The web pages open fine on my main computer and all the other computers on our network, but it is not visible outside our network.
    I am behind a router and I have forwarded port 80 to my local IP. I've set httpd: ALL, http: ALL and (finally) ALL: ALL: ACCEPT in /etc/hosts.
    I got to thinking maybe my ISP (RoadRunner) is blocking port 80 requests to my home, so I changed the port to 9292 and forwarded that to my local IP. Still not visible from the outside.
    I've tinkered with the /etc/httpd/conf/httpd.conf file (pasted in below) but still there is no outside connectivity, changing the listen settings and the server name settings. I can still access it fine from this side of the router. I've restarted the httpd service many times.
    I've done all I can think to do to solve the issue. it is likely I am overlooking something very basic. Any help or ideas are appreciated. Below is my httpd.conf.
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "/var/log/httpd/foo_log"
    # with ServerRoot set to "/etc/httpd" will be interpreted by the
    # server as "/etc/httpd//var/log/httpd/foo_log".
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # Do not add a slash at the end of the directory path. If you point
    # ServerRoot at a non-local disk, be sure to point the LockFile directive
    # at a local disk. If you wish to share the same ServerRoot for multiple
    # httpd daemons, you will need to change at least LockFile and PidFile.
    ServerRoot "/etc/httpd"
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #Listen 12.34.56.78:80
    Listen 192.168.1.100:9292
    #Listen *:9292
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule file_cache_module modules/mod_file_cache.so
    LoadModule cache_module modules/mod_cache.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule substitute_module modules/mod_substitute.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule cgid_module modules/mod_cgid.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule php5_module modules/libphp5.so
    LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
    AddHandler php5-script php
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User http
    Group http
    </IfModule>
    </IfModule>
    # 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. [email protected]
    ServerAdmin [email protected]
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    ServerName 192.168.1.100:9292
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/srv/http"
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # features.
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/srv/http">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
    </Directory>
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog "/var/log/httpd/error_log"
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    <IfModule log_config_module>
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    CustomLog "/var/log/httpd/access_log" common
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #CustomLog "/var/log/httpd/access_log" combined
    </IfModule>
    <IfModule alias_module>
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL. You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #Scriptsock /var/run/httpd/cgisock
    </IfModule>
    # "/srv/http/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    # DefaultType: the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value. If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    DefaultType text/plain
    <IfModule mime_module>
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    TypesConfig conf/mime.types
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #AddType application/x-gzip .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #AddHandler cgi-script .cgi
    # For type maps (negotiated resources):
    #AddHandler type-map var
    # Filters allow you to process content before it is sent to the client.
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    </IfModule>
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #MIMEMagicFile conf/magic
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall is used to deliver
    # files. This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    #EnableMMAP off
    #EnableSendfile off
    # Supplemental configuration
    # The configuration files in the conf/extra/ directory can be
    # included to add extra features or to modify the default configuration of
    # the server, or you may simply copy their contents here and change as
    # necessary.
    # Server-pool management (MPM specific)
    #Include conf/extra/httpd-mpm.conf
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    #Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    Include conf/extra/php5_module.conf
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
    # Note: The following must must be present to support
    # starting without SSL on platforms with no /dev/random equivalent
    # but a statically compiled-in mod_ssl.
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    Last edited by Rumor (2009-01-29 15:04:27)

    You could try a factory reset of the home hub, as sometimes the config can get corrupted.
    There is some general help on this page.
    Help with setting up routers, wireless repeaters, TVs and printers, CCTV cameras, VOIP Phones
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Puzzle Game and new Game Problem

    Hello Java Programmers,
    Once again I have encountered a problem with my ongoing puzzle game. I have completed it all. Now I want my user to be able to start a new game in after they win. I tried repaint and update method with JFrame but it deosn't reshuffle the buttons. How can I do that. The code geos below.
    [/b]
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.JOptionPane;
    public class PuzzleGame{
       String[] btn_Labels = {"1","2","3","4","5","6","7","8","9",
                            "10","11","12","13","14","15"," "};
       String[] labels = {"1","2","3","4","5","6","7","8","9",
                            "10","11","12","13","14","15"};
       private final int ONE = 1, TWO = 2, THREE = 3, FIVE = 5;
       private boolean WIN_STATE = false; 
       private JButton b[];
       public String clicked_btn_label = "";
       //Constructor method.
       public PuzzleGame(){
          showSplashScreen();
          initGame();
       public static void main(String args[]){
          PuzzleGame game = new PuzzleGame();
       //When a new Game started labels of buttons are shuffled using this method.
       public void shuffleNumbers(){
          String temp = null;   
          for(int j=0; j<16; j++){
          int k = (int)(Math.random()*16);
          temp = btn_Labels[j];
          btn_Labels[j] = btn_Labels[k];
          btn_Labels[k] = temp;           
       //Game initialization method.
       public void initGame(){
          b = new JButton[16];
          JPanel p = new JPanel();
          JFrame frame = new JFrame();
          shuffleNumbers();
          for(int i=0; i<16; i++){
             b[i] = new JButton();
             b.setText(btn_Labels[i]);
    b[i].setActionCommand(""+(i+1));
    for(int i=0; i<16; i++){
    b[i].addActionListener( new ActionListener(){
    public void actionPerformed(ActionEvent e){
    clicked_btn_label =(String)e.getActionCommand();
    doSwapping();
    checkWin();
    p.add(b[i]);
    p.setLayout(new GridLayout(4,4));
    frame.getContentPane().add(p);
    frame.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
    System.exit(0);
    Dimension dm = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (dm.width - 230)/2;
    int y = (dm.height - 240)/2;
    frame.setBounds(x,y,320,240);
    frame.setSize(340,240);
    frame.setVisible(true);
    //This method swaps the clicked button with the empty button if it doesn't violate rule.
    public void doSwapping(){
    int num = Integer.parseInt(clicked_btn_label);
    String temp;
    if( (num + ONE <= 16) && b[num].getText() == " " && num % 4 != 0){
    temp = b[num].getText();
    b[num].setText(b[num-ONE].getText());
    b[num-ONE].setText(temp);
    else if((num - TWO >= 0) && b[num-TWO].getText() == " " && ((num - ONE) % 4 != 0)){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num-TWO].getText());
    b[num-TWO].setText(temp);
    else if( (num + THREE < 16) && b[num+THREE].getText() == " "){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num+THREE].getText());
    b[num+THREE].setText(temp);
    else if( (num - FIVE >= 0) && b[num-FIVE].getText() == " "){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num-FIVE].getText());
    b[num-FIVE].setText(temp);
    // else{}
    public void checkWin(){
    WIN_STATE = true;
    for(int i=0; i<15; i++){
    if( b[i].getText() != labels[i])
    WIN_STATE = false;
    if(WIN_STATE == true){
    JOptionPane.showMessageDialog(null,"Congratulations You Have won the Game!","You Win",JOptionPane.INFORMATION_MESSAGE);
         initGame();
    public void showSplashScreen(){
    JWindow w = new JWindow();
    JPanel p = (JPanel)w.getContentPane();
    JLabel l = new JLabel(new ImageIcon("splash.jpg"));
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (d.width - 230)/2;
    int y = (d.height - 240)/2;
    p.add(l);
    w.setBounds(x,y,320,240);
    w.setVisible(true);
    try{
    Thread.sleep(10000);
    catch(Exception e){
    w.setVisible(false);
    [/b]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Sorry for violation. I would like to add a menubar to the application containing a single menu button for new game. adding a menubar is simple but how can i reshuffle the buttons using methods like update etc. or any other way.

  • LogMiner puzzle - CLOB datatype

    Hello, everybody!
    Sorry for the cross-post here and in "Database\SQL and PL/SQL" forum, but the problem I am trying to dig is somewhere between those two areas.
    I need a bit of an advice whether the following behavior is wrong an requires SR to be initiated – or I am just missing something.
    Setting:
    -     Oracle 11.2.0.3 Enterprise Edition 64-bit on Win 2008.
    -     Database is running in ARCHIVELOG mode with supplemental logging enabled
    - DB_SECUREFILE=PERMITTED (so, by default LOBs will be created as BasicFiles - but I didn't notice any behavior difference comparing to SecureFile implementation)
    Test #1. Initial discovery of a problem
    1. Setup:
    <li> I created a table MISHA_TEST that contains CLOB column
    create table misha_test  (a number primary key, b_cl CLOB)<li> I run anonymous block that would insert into this table WITHOUT referencing CLOB column
    begin
         insert into misha_test (a) values (1);
         commit;
    end;2. I looked at generated logs via the LogMiner and found the following entries in V$LOGMNG_CONTENTS:
    SQL_REDO
    set transaction read write;
    insert into "MISHA_TEST"("A","B_CL") values ('1',EMPTY_CLOB());
    set transaction read write;
    commit;
    update "MISHA_TEST" set "B_CL" = NULL where "A" = '1' and ROWID = 'AAAj90AAKAACfqnAAA';
    commit;And here I am puzzled: why do we have two operations for a single insert – first write EMPTY_CLOB into B_CL and then update it to NULL? But I didn’t even touch the column B_CL! Seems very strange – why can’t we write NULL to B_CL from the very beginning instead of first creating a pointer and than destroying it.
    Key question:
    - why NULL value in CLOB column should be handled differently than NULL value in VARCHAR2 column?
    Test #2. Quantification
    Question:
    -     having LOB column in the table seems to cause an overhead of generating more logs. But could it be quantified?
    Assumption:
    -     My understanding is that CLOBs defined with “storage in row enabled = true” (default) up to ~ 4k of size behave like Varchar2(4000) and only when the size goes above 4k we start using real LOB mechanisms.
    Basic test:
    1.     Two tables:
    <li> With CLOB:
    create table misha_test_clob2  (a_nr number primary key, b_tx varchar2(4000), c_dt date, d_cl CLOB)<li>With VARCHAR2:
    create table misha_test_clob   (a_nr number primary key, b_tx varchar2(4000), c_dt date, d_cl VARCHAR2(4000))2.     Switch logfile/Insert 1000 rows and populate only A_NR/Switch logfile
    insert into misha_test_clob (a_nr)
    select level
    from dual
    connect by level < 10013.     Check sizes of generated logs:
    <li>With CLOB – 689,664 bytes
    <li>With Varchar2 – 509.440 (<b>or about 26% reduction</b>)
    Summary:
    <li>the overhead is real. It means that table with VARCHAR2 column is cheaper to maintain, even if you are not using that column. So adding LOB columns to a table "just in case" is a really bad idea.
    <li>Having LOB columns in the table that has tons of INSERT operations is expensive.
    Just to clarify a real business case - I have a table with some number of attributes, one attribute has CLOB datatype. Frequency of inserts in this table is pretty high, frequency of using CLOB column is pretty low (NOT NULL ~0.1%). But because of that CLOB column I generate a lot more LOG data than I need (about 30% extra). Seems like a real waste of time! For now I requested development team to split the table into two, but that's still a bandage.
    So, does anybody care? Comments/suggestions are very welcome!
    Thanks a lot!
    Michael Rosenblum

    Hello, everybody!
    Sorry for the cross-post here and in "Database\SQL and PL/SQL" forum, but the problem I am trying to dig is somewhere between those two areas.
    I need a bit of an advice whether the following behavior is wrong an requires SR to be initiated – or I am just missing something.
    Setting:
    -     Oracle 11.2.0.3 Enterprise Edition 64-bit on Win 2008.
    -     Database is running in ARCHIVELOG mode with supplemental logging enabled
    - DB_SECUREFILE=PERMITTED (so, by default LOBs will be created as BasicFiles - but I didn't notice any behavior difference comparing to SecureFile implementation)
    Test #1. Initial discovery of a problem
    1. Setup:
    <li> I created a table MISHA_TEST that contains CLOB column
    create table misha_test  (a number primary key, b_cl CLOB)<li> I run anonymous block that would insert into this table WITHOUT referencing CLOB column
    begin
         insert into misha_test (a) values (1);
         commit;
    end;2. I looked at generated logs via the LogMiner and found the following entries in V$LOGMNG_CONTENTS:
    SQL_REDO
    set transaction read write;
    insert into "MISHA_TEST"("A","B_CL") values ('1',EMPTY_CLOB());
    set transaction read write;
    commit;
    update "MISHA_TEST" set "B_CL" = NULL where "A" = '1' and ROWID = 'AAAj90AAKAACfqnAAA';
    commit;And here I am puzzled: why do we have two operations for a single insert – first write EMPTY_CLOB into B_CL and then update it to NULL? But I didn’t even touch the column B_CL! Seems very strange – why can’t we write NULL to B_CL from the very beginning instead of first creating a pointer and than destroying it.
    Key question:
    - why NULL value in CLOB column should be handled differently than NULL value in VARCHAR2 column?
    Test #2. Quantification
    Question:
    -     having LOB column in the table seems to cause an overhead of generating more logs. But could it be quantified?
    Assumption:
    -     My understanding is that CLOBs defined with “storage in row enabled = true” (default) up to ~ 4k of size behave like Varchar2(4000) and only when the size goes above 4k we start using real LOB mechanisms.
    Basic test:
    1.     Two tables:
    <li> With CLOB:
    create table misha_test_clob2  (a_nr number primary key, b_tx varchar2(4000), c_dt date, d_cl CLOB)<li>With VARCHAR2:
    create table misha_test_clob   (a_nr number primary key, b_tx varchar2(4000), c_dt date, d_cl VARCHAR2(4000))2.     Switch logfile/Insert 1000 rows and populate only A_NR/Switch logfile
    insert into misha_test_clob (a_nr)
    select level
    from dual
    connect by level < 10013.     Check sizes of generated logs:
    <li>With CLOB – 689,664 bytes
    <li>With Varchar2 – 509.440 (<b>or about 26% reduction</b>)
    Summary:
    <li>the overhead is real. It means that table with VARCHAR2 column is cheaper to maintain, even if you are not using that column. So adding LOB columns to a table "just in case" is a really bad idea.
    <li>Having LOB columns in the table that has tons of INSERT operations is expensive.
    Just to clarify a real business case - I have a table with some number of attributes, one attribute has CLOB datatype. Frequency of inserts in this table is pretty high, frequency of using CLOB column is pretty low (NOT NULL ~0.1%). But because of that CLOB column I generate a lot more LOG data than I need (about 30% extra). Seems like a real waste of time! For now I requested development team to split the table into two, but that's still a bandage.
    So, does anybody care? Comments/suggestions are very welcome!
    Thanks a lot!
    Michael Rosenblum

  • When I boot up my Mac Pro, I get a small black puzzle looking piece on the lower right side of my thunderbolt

    Brand new Mac Pro, 2 thunderbolt monitors;
    I get a small black puzzle looking piece on the lower right side of my  1st thunderbolt monitor when I boot up. It goes away once the computer fully boots, it is only on  there for a second or so. Does anyone have a similar issue?
    These are only 1 month old.

    It has been seen before, when hardware was malfunctioning:
    Re: hello, I turn on my mac and I see a figure over the right part of the screen, do anybody knows what is that?
    Re: bootup symbol

  • Word Puzzle still not working

    I have written the code to take a text file (from a command line argument) holding the information for the word find grid and also the file holding the words to be found in the grid. The whole find the two files and drop them into memory works all peachy keen but the rest of the program doesn't work for some oddball reason that I can't figure out (and the TAs are useless as usual). I dropped in print statements all over the world to see why it's not working but all I can see is that I hit the method SolvePuzzle and don't actually get any further than the print statement.
    Just so you know, all of the methods in the program do work as I wrote them for another version of the same puzzle...it was just that I had to change the program to run with command line arguments instead of asking the user to input the file names. Please, can someone take a look at this monstrous mess and tell me how on earth I get the stupid thing to output correctly?
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.InputStreamReader;
    import java.io.IOException;
    import java.io.FileNotFoundException;
    import java.util.Arrays;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    // WordFind class interface: solve word search puzzle
    // CONSTRUCTION: with no initializer
    // ******************PUBLIC OPERATIONS******************
    // int solvePuzzle( )   --> Print all words found in the
    //                          puzzle; return number of matches
    public class WordFind
         * Constructor for WordFind class.
         * Prompts for and reads puzzle and dictionary files.
       public WordFind(String fname, String fname2 ) throws IOException
            loadPuzzle(fname, fname2);
            //solvePuzzle( );
         * Routine to solve the word search puzzle.
         * Performs checks in all eight directions.
         * @return number of matches
        public int solvePuzzle( )
            int matches = 0;
            for( int r = 0; r < rows; r++ )
                for( int c = 0; c < columns; c++ )
                    for( int rd = -1; rd <= 1; rd++ )
                        for( int cd = -1; cd <= 1; cd++ )
                            if( rd != 0 || cd != 0 )
                                matches += solveDirection( r, c, rd, cd );
    System.out.println("testing to see if we get BBOOOOO.");
            return matches;
         * Search the grid from a starting point and direction.
         * @return number of matches
        private int solveDirection( int baseRow, int baseCol, int rowDelta, int colDelta )
        System.out.println("testing to see if we get this far part 2.");
            String charSequence = "";
            int numMatches = 0;
            int searchResult;
            charSequence += theBoard[ baseRow ][ baseCol ];
            for( int i = baseRow + rowDelta, j = baseCol + colDelta;
                     i >= 0 && j >= 0 && i < rows && j < columns;
                     i += rowDelta, j += colDelta )
                charSequence += theBoard[ i ][ j ];
                searchResult = prefixSearch( theWords, charSequence );
                if( searchResult == theWords.length )
                    break;
                if( !((String)theWords[ searchResult ]).startsWith( charSequence ) )
                    break;
                if( theWords[ searchResult ].equals( charSequence ) )
                    numMatches++;
                    System.out.println( "Found " + charSequence + " at " +
                                        baseRow + " " + baseCol + " to " +
                                        i + " " + j );
            return numMatches;
         * Performs the binary search for word search.
         * @param a the sorted array of strings.
         * @param x the string to search for.
         * @return last position examined;
         *     this position either matches x, or x is
         *     a prefix of the mismatch, or there is no
         *     word for which x is a prefix.
        private static int prefixSearch( Object [ ] a, String x )
        System.out.println("testing to see if we get this far part 3.");
            int idx = Arrays.binarySearch( a, x );
            if( idx < 0 )
                return -idx - 1;
            else
                return idx;
         private void loadPuzzle(String fname, String fname2)
          String oneLine;
          try {
             // open file for reading
             wsFile = new BufferedReader(new FileReader(fname));
             // get the row and columns
             oneLine = wsFile.readLine();
            List puzzleLines = new ArrayList( );
            if( ( oneLine = wsFile.readLine( ) ) == null )
                throw new IOException( "No lines in puzzle file" );
            int columns = oneLine.length( );
            puzzleLines.add( oneLine );
            while( ( oneLine = wsFile.readLine( ) ) != null )
               // if( oneLine.length( ) != columns )
               //     System.err.println( "Puzzle is not rectangular; skipping row" );
               // else
                    puzzleLines.add( oneLine );
            int rows = puzzleLines.size( );
            theBoard = new char[ rows ][ columns ];
            Iterator itr = puzzleLines.iterator( );
            for( int r = 0; r < rows; r++ )
                String theLine = (String) itr.next( );
                theBoard[ r ] = theLine.toCharArray( );
                   System.out.println(theBoard[r]);      
          //BufferedReader wsFile2;
          //ring oneLine;
          try {
             // open file for reading
             wsFile2 = new BufferedReader(new FileReader(fname2));
             List words = new ArrayList( );
            String lastWord = null;
            String thisWord;
            while( ( thisWord = wsFile2.readLine( ) ) != null )
               // if( lastWord != null && thisWord.compareTo( lastWord ) < 0 )
                 //   System.err.println( "Dictionary is not sorted... skipping" );
                  //  continue;
                words.add( thisWord );
                lastWord = thisWord;
            theWords = words.toArray( );
            System.out.println(words);
          catch (FileNotFoundException e)
             System.out.println("File not found.");
          catch (IOException e)
             System.out.println("IO error.");
         //solvePuzzle();
          // Cheap main
        public static void main( String [ ] args )
          String fname = args[0];
              String fname2 = args[1];
           // String fname = "cahsiers.txt";
            //String fname2 = "cashwords.txt";
            WordFind p = null;
                try{
                    System.out.println(args[0] + " " + args[1]);
                p = new WordFind(fname, fname2);
                      catch (IOException e)
             System.out.println("IO error.");
                 System.out.println( "Solving..." );
            p.solvePuzzle( );
       private char [][] theBoard;
       private int rows, columns;
       private Object [] theWords;
       private int numWords;
         private BufferedReader wsFile;
       private BufferedReader wsFile2;
    }Sample output - notice the only output are the test print statements at the moment
    cashiers.txt cashwords.txt
    BSERENITYNZEKYI
    ZBREAMOANARHECM
    BBASSWGITOOLKAY
    QSCENERYTNLCYMM
    TUORTIASEAUBDPA
    JZIVVVYYVDXOWSE
    FSSENREDLIWAMIR
    FIRSEHRSPNLTLTT
    CLSCUILRTLYKAES
    XAOHQKFOEFYLUSR
    ORBGIIWYDSAQLEM
    GEYITNEFPGOROEA
    EKALNGGAXRERCGJ
    TEKRAMSGCAFETOY
    [ANTIQUE, BASS, BOAT, BREAM, CABIN, CAFE, CAMPSITE, CRAFTS, CROQUET, DOWNTOWN, D
    UCK, FISHING, GEESE, GOLF, GROCERY STORE, HIKING, HONEY, INN, JAM, JELLY, LAKE,
    LODGE, MARKET, MOUNTAIN, POND, PRESERVES, RELAXATION, RESORT, RIVER, SCENERY, SE
    RENITY, SPA, STREAM, TROUT, VACATION, VALLEY, VIEW, WALLEYE, WILDERNESS, ]
    Solving...
    testing to see if we get BBOOOOO.
    Press any key to continue...
    Thanks for all your help.
    Wulf

    Your problem is the duplicate declarations of rows/columns
    class fields
    private int rows, columns;
    and in loadPuzzle()
    int columns = oneLine.length( );//remove int
    int rows = puzzleLines.size( );//ditto
    the 'int' makes rows/columns local to loadPuzzle(), leaving the class fields rows/colums = 0
    the for loops of solvePuzzle() are not executed because rows = 0
    also, in loadPuzzle() you seem to have an extra readLine() at the top. This could be by design, but you will lose the first line
    // get the row and columns
    oneLine = wsFile.readLine();//<--------------
    List puzzleLines = new ArrayList( );

  • An iTunes Library Transfer Puzzle...Help!

    Okay, let me try to be as clear as possible...
    I keep my iTunes library on an external firewire drive.
    I'm preparing to transfer all operations, including iTunes, to my new Macbook (from my old eMac)
    Prepping for this move, I noticed that at some point imported music stopped going to my external drive and started going to my eMac drive.
    So now my iTunes library is split between my eMac and an external firewire drive.
    NOW FOR THE PUZZLE:
    I want to transfer all the files from the eMac to their rightful home on the external drive.
    Is there a simple way to move all these files at once (about 17 GB worth) so that the iTunes browser and my playlists will know to look for the songs on the external drive not the eMac?
    Once everything is on the external drive as it should be, I plan to transfer the whole library to the iTunes browser on my Macbook.
    My big fear is that the playlists will get screwed up (playlists consist of songs now on the eMac AND on the external drive).
    Anyone out there able to help me sort this out?
    Thanks a bunch.
    macbook   Mac OS X (10.4.8)   1.83 GHz Intel Core Duo, 1 GB SDRAM

    jsguntzel,
    Welcome to Discussions.
    Prepping for this move, I noticed that at some
    point imported music stopped going to my external
    drive and started going to my eMac drive.
    This might have happened when running iTunes with the
    external drive not yet mounted/attached.
    iTunes has to have a folder to store the next ripped
    CD and will reset the 'iTunes Music folder location'
    to the default location (on your internal disk) if it
    doesn't find your 'iTunes Music' folder.
    I want to transfer all the files from the eMac to
    their rightful home on the external drive.
    Set the 'iTunes Music folder location'
    (Preferences>Advanced>General) to the folder
    containing your music on the external disk.
    Then choose 'Consolidate Library...' from the
    Advanced menu in the menubar.
    This will copy all music which is not already there,
    to the external disk.
    After that is done, you can delete the 'iTunes Music'
    folder on the eMac.
    Note: only delete the 'iTunes Music' folder inside
    the 'iTunes' folder. Don't delete the library files.
    Once everything is on the external drive as it
    should be, I plan to transfer the whole library to
    the iTunes browser on my Macbook.
    Copy the 'iTunes Library' file (in
    /Users/Username/Music/iTunes) to the external disk.
    Attach the external disk to the MacBook.
    Copy the 'iTunes Library' file from the external disk
    to /Users/Username/Music/iTunes on the MacBook.
    Run iTunes on the MacBook. All playlists and songs
    should be there.
    To transfer the music from the external to the
    MacBook, read the detailed instructions in: iTunes: Moving your iTunes
    Music folder
    In short that would mean for your situation:
    Reset the 'iTunes Music folder location'
    Consolidate library
    At the end, all songs and playlists will be on the
    MacBook.
    More information about the library files can be found
    here: What are the iTunes library
    files?
    Hope this helps.
    M
    17' iMac 800 MHz, 768
    MB RAM, 200 GB HD, DL burner   Mac OS X (10.4.8)
      iTunes 7.0.1
    Thanks for the very helpful reply. Worked like a charm!
    All the best,
    J

  • How can I set up a page so it will copy a crossword puzzle with dark background

    I can't print crossword puzzles for my students. I need to know how to make the background show up.
    Chrome can't do it or safari, but I think there is supposed to be a way to do it on firefox.
    I'm using crosswordpuzzlegames.

    FYI - this is the Feedback about Discussions area for Using Apple Discussions.
    Here is the Tiger Printing & Faxing discussions area.
    http://discussions.apple.com/forum.jspa?forumID=756
    Here is the Using your MacBook discussions area, since there isn't a Printing & Faxing discussions area just for the MacBook.
    http://discussions.apple.com/forum.jspa?forumID=1167

  • Puzzler - Is there a way to detect when an external headphone or speaker is plugged in?

    I have a puzzler, and my initial question is simply, is there a way to see via Windows if/when an external headphone or microphone is plugged in, or is that all an electrical circuit independent of the OS?
    Background: (not necessarily the question I'm asking, but providing anyway):
    The background is this:  Dozens, Hundreds, I think Thousands of owners of Toshiba Satellite owners with Conexant sound devices (including myself) the world over have this problem where the sound stops working about 1 to 2 minutes into playing non-stop
    sounds/music/videos.  In spite of all the experts telling these poor people to run a system restore and wipe out the past years of files and everything on their computer, the problem prevails no matter what.  Some have even installed Linux, and the
    problem persists. To me, it seems that the problem doesn't occur if the only sounds are the occasional bing or bong from a system warning, it seems to fail after 1 to 2 minutes of continuous play (but this particular observation is mine only, nobody else has
    taken the time to point that out).
    A few have claimed success via blowing the jacks out with compressed air, but that's not repeatable universally.  Most people end up keeping external speakers plugged in permanently. In other words, it seems a lot like a hardware problem; However,
    {edit 3}, my addition of "Edit 2" below makes it seem less like hardware.
    One interesting thing:  Headphones/speakers work permanently, there's no problem.  More curiously, when the sound goes out, plugging any form of headphone/microphone jack into
    EITHER the headphone
    OR the microphone jack turns the sound back on too.  This includes male-to-male extension cable with nothing installed.  If nothing is on the other end, the sound will go out
    again shortly, but jiggling or removing the male to male turns it back on.
    EDIT 2: When the sound goes out, another way to get it back: From system tray, right click the speaker item and choose SOUNDS.  The virtual VU meter shows that audio is playing (in tandem with the song, etc.), and is still showing audio
    playing.  The tabs available are Playback, Recording, Sounds, and Communications.  When the sound does stop (assuming I was watching Playback), I click the Recording tab (just the tab header), and sound starts again.
    P.S. What's the difference between "High Definition Audio Controller" under System Devices, and "Conexant SmartAudio HD" under "Sound, Video, and Game Controllers", in Device Manager?  The "conexant smartaudio hd"
    points to the latest Conexant driver, the "High Definition Audio Controller" points to a default windows driver.  Just curious
    I've Binged this extensively:  Toshiba doesn't acknowledge the problem and nobody has fully solved the issue. I'm just curiously trying a few things myself, and I'm not sure if there's a way for the system to tell me an external mic/speaker has been
    plugged in.
    So to recap:  My main question, can I detect when the computer thinks a headphone or microphone is plugged in? (My theory, if I can prove that the computer THINKS something is plugged in, it's a start). 
    Only secondarily, if anyone's interested, feel free to suggest ideas (here's what dozens of other posts have disproven: System restore; windows reinstall; outdated sound driver; outdated video driver; remove and re-detect sound and device via device manager;
    malware; BIOS upgrade; Flash and/or the Flash/Firefox/Hardware Acceleration issue (problem happens with MP3, Flash, WMA, HTML5, Games, everything).
    Thanks in advance!
    EDIT: One person (theirs was under warranty, mine's not) ended up getting a new motherboard & speaker via Toshiba warranty, diagnosis ""machine intermittent no sound due to PCB faulty".  I'm still interested in troubleshooting,
    though.  Link:
    One lucky person, who got their motherboard replaced (they were under warranty, most of us aren't)

    Hi,
    If there are any headphone or speaker plugged in and detected, it will show in audio device manager console.
    Type mmsys.cpl in Run, it will open Sound console.
    Have you tried Hardware and Sound troubleshooter?
    Andy Altmann
    TechNet Community Support

  • Java program for Sudoku puzzle

    I basically need to list the possible solutions to every blank space in a sudoku puzzle. I can make my puzzle in a .txt file and then just run that in my program.
    Here's an example of a line I would create in my.txt file:
    5 3 _ _ 7 _ _ _ _ (So possible solutions for the third spot would be 1,2, or 4. Then you'd continue down the line)
    So to get started I need to create a 9x9 array to store my .txt file. Read in my input one line at a time, then use a StringTokenizer to break apart each value in the line. So basically I need help starting that beginning part of my program. I'm a pretty slow learner with this stuff so a little help getting me started helps out a lot, then I tend to catch on to what is going on and I can finish up from there.
    Thanks Guys

    I still need to loop through and rows, columns, and grid to find possible solutions but I didn't ask for help on that. I know how to set up a 2d array, but when I set it up it's not reading out my .txt file. I was going to use 'char' in my array, but I don't know how I'm going to read from that .txt file, charAt I was thinking. Then for the stringTokenizer I'm really confused on how I would break apart each value from my .txt file.So, it looks like you're panicking and trying to do everything all at once. Maybe that's why you aren't getting anywhere. You need to start small. Don't try to write the whole program in one go, but instead start with a simpler program that doesn't do the whole business. In fact, start with a really simple program that does just one thing.
    What's the first thing that's necessary? You have to read your input data from a file, one line at a time. (Yes, then you have to break each of the lines into pieces, but don't get ahead of yourself.) So write a little program that only reads your input file one line at a time. To check that it's working, just write each of the lines out to the console.
    Then when that's working, add another feature. That would be splitting the lines into pieces. Again, for now just write the pieces out to the console to check that it's working. Then carry on from there.

  • HT4314 There is a defect in SpellTower.  I was in the middle of a game of Puzzle Mode on my iPhone and had passed the 63,000  point level.  The game then disappeared without any record.  My wife had a similar problem on her iPad in Tower mode. Fibonacci44

    Has anyone else had the following problem with Spell Tower?  I was in the middle of a game in Puzzle mode on my iPhone and had passed the 63,000 point mark. I paused the game (as I had many times before).  When I tried to resume the game, the game had vanished without any record.  My wife had a similar problem in Tower Mode.  In addition, the Apple support page says that, to report an issue, one should click on a specified link at the bottom of the information page for the App in question.  There is no such link on the SpellTower information page.  Fibonacci44

    There are two separate issues here.
    1.  There is a potential problem with the game Spelltower.  That needs to be discussed directly with Spelltower.  My attempted emails to Spelltower have been bounced.
    2.  Apple, on its own webpage, purports to establish a procedure for reporting an issue with an app.  But that procedure does not work with Spelltower because someone at Apple neglected to include a link on the relevant information page.  I have been trying to find that contact info without success.  Apple should take ownership of supplying that contact info.

  • Can anyone solve this PLL puzzle?

    I created a Phase Locked Loop circuit using Multisim10.0.   It uses the Multisim clock oscillator, and the circuit appears to work great.
    However, I just discovered that if I use the same parts that I used to create the Phase Locked Loop circuit in an oscillator circuit added to the same schematic, the Phase Locked Loop circuit doesn't work any more, while the new oscillator circuit pumps out a frequency that is way off.  4+MHz is no where near 1kHz, the design frequency.
    What happened?   The evidence says my newly-added oscillator brings in something that kills a previously working circuit that uses the same old parts.   Every part used was taken from the previously working circuit, aside from the variable resistor values.  How did the Multisim rules change from 10.0 to 10.1?  What am I missing here?
    Did the Phase Locked Loop circuit really work to begin with?  Which circuit is the broken one?
    As I see things, in order to solve this puzzle, I need to come up with a factor that involves both circuits.  Some factor is going to kill both simultaneously.
    Note what I'm saying here.  (At least when I ran them this was the case.)  Delete just the oscillator circuit, and run the circuit that remains.  It works.  Undo the deletion.  The oscillator reappears where it was, and the previously working circuit stops working.  There's something in that oscillator circuit that kills.  It's like switching on and off a light bulb.
    When I tried to upload both circuits, the extension isn't acceptable now.  Therefore, change the extensions to ms10.   (What the frig is going on??  I just uploaded here yesterday and didn't change the extension.  Am I in the Twilight Zone or something?) 
    Attachments:
    phase_locked_loop.txt ‏1 KB
    phase_locked_loop_puzzle.txt ‏1 KB

    Just curious
    Attachments:
    phase_locked_loop.txt ‏1 KB
    phase_locked_loop_puzzle.txt ‏1 KB

  • Can anyone solve this Phase Locked Loop puzzle?

    I created a Phase Locked Loop circuit using
    Multisim10.0.   It uses the Multisim clock oscillator, and the circuit
    appears to work great.
    However,
    I just discovered that if I use the same parts that I used to create
    the Phase Locked Loop circuit in an oscillator circuit added to the
    same schematic, the Phase Locked Loop circuit doesn't work any more,
    while the new oscillator circuit pumps out a frequency that is way
    off.  4+MHz is no where near 1kHz, the design frequency.
    What
    happened?   The evidence says my newly-added oscillator brings in
    something that kills a previously working circuit that uses the same
    old parts.   Every part used was taken from the previously working
    circuit, aside from the variable resistor values.  How did the Multisim
    rules change from 10.0 to 10.1?  What am I missing here?
    Did the Phase Locked Loop circuit really work to begin with?  Which circuit is the broken one?
    As
    I see things, in order to solve this puzzle, I need to come up with a
    factor that involves both circuits.  Some factor is going to kill both
    simultaneously.
    Note what I'm saying here.  (At least when I ran
    them this was the case.)  Delete just the oscillator circuit, and run
    the circuit that remains.  It works.  Undo the deletion.  The
    oscillator reappears where it was, and the previously working circuit
    stops working.  There's something in that oscillator circuit that
    kills.  It's like switching on and off a light bulb.
    Message Edited by Euler's Identity on 08-02-2008 12:10 AM
    Attachments:
    phase_locked_loop1.ms10 ‏649 KB
    phase_locked_loop_puzzle1.ms10 ‏174 KB

    Ah hey why not?
    After all, I still can't predict what the next filenames I uplaod are going to look like, not yet at least.
    However, at this point, it is safe to say it won't be what I uploaded.
    [drum roll]
    Attachments:
    phase_locked_loop1.ms10 ‏649 KB
    phase_locked_loop_puzzle1.ms10 ‏174 KB

  • Can anyone solve this cmos puzzle?

    Attached are two CMOS circuits created in Multisim 10.1 (10.1.197)
    The first circuit was created after the second.
    I'd created two identical oscillators with both CMOS gates and a CMOS IC, but neither of them responded with anywhere near the correct frequency.  (The oscillator of my design wasn't working right -- the C had an impossible square waveform, which prompted further investigation into the circuit.)  I wanted to investigate this to determine what I needed to do to get the frequency roughly correct.  So I decided to go simple-stupid: start with a simple RC circuit, and slowly, step by step, transform it into a CMOS oscillator, just to see where the frequency went to lunch.  The circuits below resulted from this quest for the answer.
    I'm very puzzled.  These CMOS gates don't appear to work at all.  I never could get a legal CMOS output (<50mV). 
    As I see it, my RC oscillator has no chance of working if the gates don't work.   This is bad enough that I'm going to have to break out EWB 5.12 now, just to see if all those years ago CMOS didn't work and I'd never noticed.
    If anyone out there can solve this puzzler, modify these circuits so that I can get legal CMOS operation, I'd like to know how it's done.
    Attachments:
    cmos_puzzler.ms10 ‏90 KB
    simpleRC_becomeOSC_puzzle.ms10 ‏255 KB

    The first piece of the puzzle is that you don't have VSS tied to GND so they are disconnected.
    Second, you don't have the proper timebase set on the scope for your analysis, part of your answer lies here:
    http://www.datasheet4u.com/html/4/0/0/4001B_FairchildSemiconductor.pdf.html
    looking specifically at Tplh (time propogation low to high) with VDD at 5V.
    As I read it, the NOR should have a low based on your dual high condition, BUT, during startup, there is no stablization of during the current inrush to allow the inputs to stablize. During this process, the input ramps the output in a linear fashion, once the inputs reach proper operating level, then gate switchs after the 120ns setup prop delay time(datasheet), at which time, then goes low and remains low for the duration, as it should.
    I'm not sure how your trying to measure a frequency out of that since it becomes steady state with DC power supplies.
    This comes from the simpleRC scope.....I hope this is what you were looking for???
    Chris
    Signature: Looking for a footprint, component, model? Might be here > http://ni.kittmaster.com
    Attachments:
    SS005.png ‏13 KB

Maybe you are looking for

  • How do I scan more than one page into a single document?  The option seems to have disapperared.

    I have a Mac OS X Version 10.6.8 and am trying to scan several pages into one file, but the option to combine pages seems to have disappeared?

  • Performanc​e of mathscript in RT scan mode of CRIO 9075

    Hello,  I am working in active vibration control field. I want real time control of vibration. I am new with Labview and working with Matlab for last 3-4 years. For real time control purpose, I am using NI 9234 AI card, CRIO-9075 Integrated Controlle

  • IOS 5 Photo Albums

    I have been attempting to create new albums within the Photos app (iPhone 4, IOS 5).  It seems that after I've created them (by adding photos from the camera roll), at some point they simply disappear.  The timing doesn't seem to be consistent--somet

  • Labview can't see global channels

    This is the first time I have used DAQmx, so apologies if I'm doing something really stupid... I'm using a PCI-6221. I have configured a number of global virtual channels. However, when I try to access any of them in Labview, they are not there. If I

  • How to configure Adobe LiveCycle designer on my SAP Server?

    Dear friends. I have installed SAP ECC 6.0 and Adobe LiveCycle designer ES 8.2 on my computer. Now I want to use Adobe LiveCycle designer in SAP by TCODE:SFP. Please tell me how to configure Adobe LiveCycle designer on my SAP Server in details.