Coding puzzle

Hi all, I think this should be simple but I'm having trouble - can't get my head round the various options.
Basically I need a list of which Reports are being run - the last run date and the user who ran it. I have two tables - one contains the Report name and the other has the User ID and Run Date.
So far my code gives me a uasable table but contains the last run date for all report/user combinations whereas I need simply the reports "grouped" and name of the user who last ran it. Here is the code - what am I missing?
SELECT distinct VALORE as 'Report Code'
      ,UTENTE as 'User'
      ,max(convert(date,OP_TIME,3))as 'Last Run Date'
FROM REP_AUDIT_PARAMETRI_DIM ,REP_AUDIT_OPERAZIONE
Where CODICE_DIMENSIONE = 'REPORT'
  AND OP_TIME > '2012-12-31 00:00:00.000'
  and REP_AUDIT_OPERAZIONE_OID=OID
group by  VALORE,UTENTE

Try the below:(Not tested)
;With cte as
SELECT VALORE as 'Report Code'
,UTENTE as 'User', convert(date,OP_TIME,3) as 'Last Run Date'
,Row_Number()Over(partition by VALORE,UTENTE Order by convert(date,OP_TIME,3) desc) Rn
FROM REP_AUDIT_PARAMETRI_DIM ,REP_AUDIT_OPERAZIONE
Where CODICE_DIMENSIONE = 'REPORT'
AND OP_TIME > '2012-12-31 00:00:00.000'
and REP_AUDIT_OPERAZIONE_OID=OID
) Select * From cte where Rn=1

Similar Messages

  • Doing a Jigsaw Puzzle need help :-)

    Hi hoping that I can get some help with out having to start all over on my project.  I am very new at this coding and have never coded anything before.  I see there is a ton of code out there but the examples really confuse me.  They don't tell you what or where my instance names fit into the code given.  Or that I am not familiar with it enough to see where my names for either my movie clips or button names fit into the codes available.
    The code I have for my simple puzzle is as follows:
    var pArr:Array = new Array (p1_mc, p2_mc, p3_mc, p4_mc, p5_mc, p6_mc, p7_mc, p8_mc, p9_mc, p10_mc, p11_mc);
    for (var i:uint =0;
    i < pArr.length; i++) {
    pArr[i].addEventListener(MouseEvent.MOUSE_DOWN, drag);
    pArr[i].addEventListener(MouseEvent.MOUSE_UP, drop);
    function drag(event:MouseEvent):void {
    event.currentTarget.startDrag();
    function drop(event:MouseEvent):void {
    event.currentTarget.stopDrag();
    Although this will move all the pieces around, what I need is to be able to be able to lock the pieces together, and complete it.
    Please Help
    Valerie

    The code you have now should be fine as a starting point, so chances are you can build onto what you already have.  The reason you might not be able to do that is if you find a tutorial that takes a different approach that forces you to changes things due to lack of understanding the coding/programming.
    What you should do is search Google using terms like "AS3 jigsaw tutorial" and "AS3 drag tutorial", and try to find one that somewhat matches what you have so far.
    As an aid to maybe help you to avoid having to rewrite your code to follow someone else's approach, just realize that you have the basics already in place for the dragging and dropping.  You are just missing the rest of the code you'll need in the dropping function that helps you determine when an object is placed where it belongs and how process it into whatever position is deemed necessary (where it goes versus where it came from, etc).  So you might be able to skip to the part where checking the if the drop is on target gets discussed.

  • I am making a site layout in photoshop. In my header I have a few curved lines. I have never coded

    coded curved lines in dreamweaver. How do I do that?

    A page displayed on the web consists of (among other things) an HTML framework and rectangular images that are 'supported' by that framework.  That's it.  You don't 'code' curved lines, you create graphics that contain those curved lines, and then build your HTML so that those graphics are properly placed on the page in a way that's similar to how you would put a jigsaw puzzle together.
    The most important thing you can do at this point is to gain some basic familiarity with HTML and CSS as these will be the two most important aspects of your work in assembling the web page.  And whatever you do, DO NOT rely on a graphics editor to write your HTML.
    Now - to say more about your specific question, we would need to see the graphic that you are working with.

  • Well, let's say I wanted to do a puzzle.

    It's not exactly what I'm trying to do, but I think a puzzle is a good way of describing the problem at hand. I want to lay out one new piece every time I choose the "new piece" option from a menu. Obviously the pieces I've already laid down should not move or disappear(until I say so at least). So you might say I got this incremental thing going on, with new images continously being added to my JPanel. I've tried this, and
    it did not turn out well:
    So, everytime repaint() is called this happens:
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    index=1;//
    u =0;//the matrix placeholder for the x-coordinate;
    v =0 ;//the matrix placeholder for the y-coordinate;
    //x and y are updated elsewhere, and put in their respective slots
    if(img[index] = null)
    Rectangle rec = this.getBounds();
    g.fillRect(0,0,(int)rec.getWidth(),(int)rec.getHeight());
    for(temp=0;temp<index;temp++)//draw all previous images along with this
    u++;
    v++;
    g.drawImage(img[index],imgCoordinates[u][v],this);
    index++;//the next time a image loads, it's in the next slot
    temp = 0;//zero's out so it's prepared for next redraw
    //}//end if
    }//end paintComponent
    I'm sure the solution is quite within reach, but I just dont know where to start. The most important question is probably: Do I need to redraw the entire screen everytime I add another picture, or is it possible to just
    draw the new one, leaving the other parts of the screen alone? Must I get involved with threads?
    What about seralization? Please expand my knowledge of such things.
    Best regards from frosty norway.

    Sorry bout the bad coding above. Absolutely terrible. Have not used array's
    for a while see. Here's what I actually meant to write:)
       //let's say I have 20 pieces
        private Image[] img= new Image[20];
        private int[] coor = new int[20];
        int x,y //actual x,y screen coordinates
        int u=0;//x coordinates will be stored at only even numbers;
        int v=1; //y coordinates will be stored at only odd numbers;
    public void mousePressed(MouseEvent e
         index++;// p.s I have a default image in img[0]
          u =u+2;//2,4,6...
          v  =v+2;//3,5,7...
          img[index] = source.getImage();//get the image
          coor[u]     = x;//store x
          coor[v]     =  y;//store y
    }//end mousePressed
    public void paintComponent(Graphics g)
        super.paintComponent(g);
        if(img[index] != null)
          Rectangle rec = this.getBounds();
          g.fillRect(0,0,(int)rec.getWidth(),(int)rec.getHeight());
          for(int i=0;i<index;i++)
            g.drawImage(img,coor[i],coor[i+1],this);
    }//end for
    }//end if
    }//end paintComponent
    So what's wrong with this picture? As you see, the pieces are Images so they count as objects all right, but they hardly count as components(Image is not a subclass of Component).
    Maybe it's time I got involved with Graphics 2D? And I have been wondering about this validate method
    also. What's that about?
    And last but not least what's a null-layout panel?
    Thanks for cooperating.
    Tore.

  • [Q?]I am puzzled by a small test on constructor

    puzzled by a small test on constructor
    the main is the same programme, can anybody tell me why i must pre-decalre the x1 outside the public lee1(),
    otherwise the class lee2 cannot compile?
    I am still in the basic level of OOM. I guess this is because of encapsulation, but not very afirm or clear.
    Wrong Coding
    public class lee1
         public lee1()
              int x1;
              x1 = 4;
    Right Coding
    public class lee1
         int x1;
         public lee1()
              x1 = 4;
    Same Main
    ====================
    public class lee2
         public static void main (String args[])
              //declare an object to call components in lee1.java
              lee1 abc = new lee1();
              // retrive variable using inheritance method
              System.out.println(abc.x1);
    Why prohibit me declare x1 with public visibility as this
    public class lee1
         public lee1()
              public     int x1;
              x1 = 4;
    }

    In main(), you call the lee1() constructor:
    public class lee1
         public lee1()
              int x1;
              x1 = 4;
    }with this line:
    lee1 abc = new lee1();
    After the constructor finishes executing x1 no longer exists. x1 is a local variable, and when the constructor ends it goes out of existence. Then, you do this:
    System.out.println(abc.x1);
    That line says, grab abc.x1 and display it. However, when you write:
    abc.x1
    you are saying get the member variable named x1 from the object abc. However, you didn't declare any member variables in your class, so abc doesn't have any member variables and certainly not one named x1.
    In this class:
    public class lee1
         int x1;
         public lee1()
              x1 = 4;
    }you declare the member variable x1. Then, in this line:
    lee1 abc = new lee1();
    you are telling java to create an object called abc and to use the constructor lee1() to create the object. In turn, the constructor lee1() assigns 4 to the member variable x1. Therefore, when you do this:
    System.out.println(abc.x1);
    abc.x1 instructs java to grab the member variable x1 from the object abc and display it.

  • Coding binary in Java, how is it stored or extracted? Please assist

    Hey people i came across the code below in a puzzle game and i dont really understand how binary coding works with java. could some one explain how this code would be store or extracted? Is the code below how it would be stored? please explain
    public static final int MASK_X = 0xF0000000;
    public static final int MASK_Y = 0x0F000000;
    public static final int MASK_PUZZLE_VAL = 0x000000F0;
    public static final int MASK_GRID_VAL = 0x0000000F;
    public static final int MASK_NOTES = 0x0001FF00;
    public static final int MASK_IS_DEFAULT = 0x00100000;
    public static final int MASK_IS_EDITABLE = 0x00200000;
    public static final int MASK_IS_HINT = 0x00400000;
    private static final int HEX1FF = 0x1ff; // what is this line doing?
    Cheers!

    As noted above, this is hexadecimal. So rather than using base 10, this uses base 16 so that the right hand number is simply that number (with A = 10, B = 11, C = 12... F = 15). The next column of number represents the 16 column and is multiplied by 16, the next column represents the 16x16 column... so that:
    0x1FF means
    1 * 16 * 16 +
    15 * 16 +
    15

  • Word Search Puzzle Interest

    Recently during my lunch time I was playing an old Infocom text adventure game that had a word search puzzle in it. I was really bored (hey, I was playing an old Infocom game!) so I decided to whip up a LabVIEW program to do this word search. Way overkill, obviously, but it was something to keep me busy. I tried out a couple of different ideas for an implementation and finally settled on one to do the word search. It's not optimized, but it works. I then started to wonder if this would make for an interesting coding challenge. That is, to come up with the fastest algorithm that could find a list of words in a given matrix of letters. The solution would have to be scalable so that it could accommodate very large matrices without choking, as well as be spoken-language independent. Any interest?

    sure.  you can use mousedown code to start a loop that checks the mouse/finger position and determine (on mouseup) if a word has been found and then display a highlight sprite/movieclip.

  • 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

  • Adobe Bridge CS6, Output to HTML Gallery coding issue.

    Adobe Bridge CS6, Output to HTML Gallery coding issue.
    I have created the html, JavaScript, css file using the output function in Bridge CS6, which nicely generates the coding, pages, folders and files. I can edit the html files such as gallery title, name, etc., in Dreamweaver CS6 just fine and preview them in a selected browser (both chrome and IE) and everything works fine.
    When I ftp upload the files and directories into my hosting account (Go Daddy), the images do not show up. The file table appears but the thumbs images does not appear and when selected to preview the larger image, it does not appear either. I have not altered the file structure at all. Go Daddy says it is a coding issue, but I cannot fine any errors.
    Have you seen this issue before? All Adobe help research have failed. Any suggestions??

    Have you asked on Go Daddy site for help in uploading Adobe Bridge script?  Just to say it is coding is not helpful. 

  • [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.

  • Adobe Cloud: coding auf unterster Ebene

    Ich bin jetzt 52 Jahre Alt und benutze Adobe Produkte in meinem Job und Alltag seit den Anfängen von Windows resp. Apple! Dies teils weil die Produkte gut waren oder meistens weil Adobe alles andere aufgekauft hat (siehe Makromedia)
    Ich kann behaupten dass Ich als Firmenchef, Designer, Grafiker und was noch Alles 1000de von Euro resp Dollar in den letzten 10-20 Jahren an Adobe abgedrückt habe (rechnet man die Firmen mit die Adobe alle inzwischen aufgekauft hatt)
    Ich hab jetzt ein Cloud Abbo auf meinen Namen laufen, mehrer Suits Nenn ich mein eigen und in dem Gymnasium wo Ich arbeite 100te von Adobe Lizensen eingeführt.
    Das was Adobe sich in letzter Zeit auf coding Ebene leistet, Hauptsächlich der "Adobe Application Manager" zeugt von einem Dilettantismus, einem Unvermögen Sauber zu programmieren wie es auf Ebene solch einer grossen Firma, Marketleader noch NIE gegeben hat!
    Ich habe die ganze Suite mehrmals komplett von meinem System genommen, das System läuft sauber und stabil. Sobald Ich die einzelnen Elemente "Photoshop, Dreamweaver usw über den Manager installiere crasht regelmässig mein System oder wird extrem langsam!
    Ich erinnere nur an den offenen Brief von Steve Jobs (nein, Ich bin kein Apple Jünger) an Adobe vor ein paar Jahren. Ich zahle eine Monatliche Gebühr und muss arbeiten um meine Familie zu ernähren, ADOBE!

    Ja, wissen wir doch. Schön, dass wir mal drüber gesprochen haben.
    Mylenium

  • How to get the table name in the trigger definition without hard coding.

    CREATE  TRIGGER db.mytablename
    AFTER UPDATE,INSERT
    AS
        INSERT INTO table1(col1)
        SELECT InsRec.col1   
        FROM
        INSERTED Ins
       --Below i am calling one sp for which i have to pass the table name
       EXEC myspname 'tablename'
      In the above trigger,presently i am hard coding the tablename
      but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table name

    I really liked your audit table concept.  You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields.  Wanted to share my end result.
    USE [YourDB]
    GO
    /****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
    ON [dbo].[YourTable]
    AFTER INSERT,DELETE,UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    Declare @v_AuditID bigint
    IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
    CREATE TABLE [dbo].[AutoAudit]
    ( [AuditID] bigint identity,
    [AuditDate] DateTime,
    [AuditUserName] varchar(128),
    [TableName] varchar(128) NULL,
    [OldContent] XML NULL,
    [NewContent] XML NULL
    ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
    PK_AutoAudit PRIMARY KEY CLUSTERED
    [AuditID]
    ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
    ( [TableName] ASC,
    [AuditDate] ASC
    )WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    END
    Select * Into #AuditDeleted from deleted
    Select * Into #AuditInserted from inserted
    While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
    Begin
    INSERT INTO [dbo].[AutoAudit]
    ( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
    SELECT
    GETDATE(),
    SUSER_NAME(),
    [TableName]=object_name([parent_obj]),
    [OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
    [NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
    FROM sysobjects
    WHERE
    [xtype] = 'tr'
    and [name] = OBJECT_NAME(@@PROCID)
    Set @v_AuditID = SCOPE_IDENTITY()
    Delete from AutoAudit
    Where AuditID = @v_AuditID
    AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
    Delete top(1) from #AuditDeleted
    Delete top(1) from #AuditInserted
    End
    END

  • How to create sap directories in application server by coding.

    Hi Experts,
    Please tell me how to create a sap directory via coding in application server.
    Please tell me step by step n send the code also.I have tried alot using FM  'SXPG_COMMAND_EXECUTE' but i dont know how to use it n wht are d parameters i need to pass.
    Also, i found that we need to create a external command in SM69 to pass in this FM...i dont know how to create this.
    Please help me out.

    Hi friend,
    1. Goto to Transaction SM69.
    2. Click on F5.
    3. Click on F6.
    4. Enter a name in Command Name box          ex: z_com
    5. Enter a os command in Operating system command box.     ex: mkdir (creating a directory)
    6. Give location in application server in Parameters for operating system command box   ex: /C dir
    7. Click Save.
    Goto SE 38 and develop a report using FM 'SXPG_COMMAND_EXECUTE' .
    Ex:
    REPORT  zawi_demodownload                       .
    data: g_out like BTCXPM occurs 0,
            z_com type SXPGCOLIST-NAME  value 'mkdir'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                         = z_com
      TABLES
        exec_protocol                       = g_out
      EXCEPTIONS
       NO_PERMISSION                       = 1
       COMMAND_NOT_FOUND                   = 2
       PARAMETERS_TOO_LONG                 = 3
       SECURITY_RISK                       = 4
       WRONG_CHECK_CALL_INTERFACE          = 5
       PROGRAM_START_ERROR                 = 6
       PROGRAM_TERMINATION_ERROR           = 7
       X_ERROR                             = 8
       PARAMETER_EXPECTED                  = 9
       TOO_MANY_PARAMETERS                 = 10
       ILLEGAL_COMMAND                     = 11
       WRONG_ASYNCHRONOUS_PARAMETERS       = 12
       CANT_ENQ_TBTCO_ENTRY                = 13
       JOBCOUNT_GENERATION_ERROR           = 14
       OTHERS                              = 15.
    IF sy-subrc = 0.
    ENDIF.
    Thanks.......

  • Coding Confusion: Links linking to wrong...links

    Hi everyone,
    I'm writing some code in Flash MX 2004 and everything works fine except for the last button (4DSystemsProducts). According to the coding if none of the drop down buttons work it should go to products.php, but for some reason it goes to 4DSystemsProducts.php. All of the other menus are coded the same way and work fine, if I take out that button it works fine, or if I take out button 7 and switch 4DSystems to button 7 everything works.
    Here is the code to clear up this explanation.
    [CODE]
    function getActiveSub()
        if (_ymouse >= 38 && _ymouse < 58)
            return (activeButton.btnSub1);
        else if (_ymouse >= 58 && _ymouse < 78)
            return (activeButton.btnSub2);
        else if (_ymouse >= 78 && _ymouse < 98)
            return (activeButton.btnSub3);
        else if (_ymouse >= 98 && _ymouse < 118)
            return (activeButton.btnSub4);
        else if (_ymouse >= 118 && _ymouse < 138)
            return (activeButton.btnSub5);
        else if (_ymouse >= 138 && _ymouse < 158)
            return (activeButton.btnSub6);
        else if (_ymouse >= 158 && _ymouse < 178)
            return (activeButton.btnSub7);
        else if (_ymouse >= 178 && _ymouse < 198)
         return (activeButton.btnSub8);
        else
            return (null);
        } // end else if
    } // End of the function
    var activeButton;
    var activeSub;
    btnProducts.onRollOver = function ()
        btnProducts.gotoAndPlay("drop down");
        activeButton = btnProducts;
        activeSub = null;
    btnProducts.onRollOut = btnProducts.onReleaseOutside = function ()
        btnProducts.gotoAndPlay("drop up");
        activeButton = null;
        if (activeSub != null)
            activeSub.gotoAndPlay("stoparrow");
        } // end if
        activeSub = null;
    btnProducts.onRelease = function ()
        if (activeSub == btnProducts.btnSub1)
            getURL("products.php");
        else if (activeSub == btnProducts.btnSub2)
            getURL("newreleases.php");
        else if (activeSub == btnProducts.btnSub3)
            getURL("controlgrips.php");
        else if (activeSub == btnProducts.btnSub4)
            getURL("joysticks.php");
        else if (activeSub == btnProducts.btnSub5)
            getURL("controlboxes.php");
        else if (activeSub == btnProducts.btnSub6)
            getURL("electronics.php");
        else if (activeSub == btnProducts.btnSub7)
            getURL("accessories.php");
        else if (activeSub == btnProducts.btnSub8)
            getURL("4DSystemsProducts.php");
        else
            getURL("products.php");
        } // end else if
    [/CODE]

    That was just an exerpt.  I thought it would be all you need.  Here's the entire thing (attached).
    EDIT.  Apparently I can't attach the fla, just the swf.  Hope it helps.

  • 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.

Maybe you are looking for

  • Animated gif don't see

    Hello: I have imported an animated GIF in Director MX and when I drag to the stage I don't see the image in the stage (only an empty square) In the cast I see the first image of the animated GIF. I imported with the Menu Insert/Media Element/Animated

  • Read a directory structure?

    Hallo every body, How can I read the directory structure of a system(any tutorial or hint). Thanks in advance

  • How to remove an ad from a game that came with laptop

    Would someone please explain to me how to remove an ad that comes up in the "Train Titans" game that comes with the laptop . It's in the  Windows Vista tile board. My son likes the game but cant continue playing it because the "Joss&Main" ad comes up

  • Sharing a PDF without users seeing who else has access?

    Was wondering if there was a way to sharing a PDF without users seeing who else has access?

  • Trying to keep my unlimited

    So I currently have 5 lines.  3 of which have unlimited data.  There are no upgrades available.  I'm considering terminating one of the other 2 lines early.  When terminating your line early, contact customer service.  Your etf will depend on how lon