Sliding window sanario in PTF vs Availability of recently loaded data in the staging table for reporting purpose

Hello everybody, I am a SQL server DBA and I am planning to implement table partitioning on some of our large tables in our data warehouse. I
am thinking to design it using the sliding window scenario. I do have one concern though; I think the staging tables we use for new data loading and for switching out the old partition are going to be non-partitioned, right?? Well, I don't have an issue with
the second staging table that is used for switching out the old partition. My concern is on the first staging table that we use it for switch in purpose, since this table is non-partitioned and holding the new data, HOW ARE WE GOING TO USE/access THIS DATA
FOR REPORTING PURPOSE before we switch in to our target partitioned table????? say, this staging table is holding a one month worth of data and we will be switching it at the end of the month. Correct me if I am wrong okay, one way I can think of accessing
this non-portioned staging table is by creating views, which we don’t want to change our codes.
Do you guys share us your thoughts, experiences???
We really appreciate your help.

Hi BG516,
According to your description, you need to implement table partitioning on some of our large tables in our data warehouse, the problem is that you need the partition table only hold a month data, please correct me if I have anything misunderstanding.
In this case, you can create non-partitioned table, import the records which age is more than one month into the new created table. Leave the records which age is less than one month on the table in your data warehouse Then you need to create job to
copy the data from partition table into non-partitioned table at the last day of each month. In this case, the partition table only contain the data for current month. Please refer to the link below to see the details.
http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/
https://msdn.microsoft.com/en-us/library/ms190268.aspx?f=255&MSPPError=-2147217396
If this is not what you want, please provide us more information, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Simultaneous data activation in cube - request for reporting available

    Hi,
    I'm on BW 3.5.
    I am loading several million records to a cube, processing is to PSA first and subsequently to data target.
    I have broken the load up into 4 separate loads to prevent caches from filling up and causing huge performance issues.
    When I load all the data in a single load, it takes 10 hours to load.  When I break it up into 4 loads it takes 3 hours.
    My problem is that during the loading from PSA to data target, the first data load becomes green and ready for reporting before the last one has finished loading, and so the users get inaccurate report results if they happen to run a report before the last request activates.
    Is it possible to get all 4 requests to activate simultaneously?
    I have tried adding an aggregate to the cube, no good.
    I have tried loading the 4 loads to the PSA in sequential order in the process chain, and then loading from PSA to data target simultaneously (side by side), no good.
    Does anyone have a solution?
    Many thanks,
    Paul White

    Hi ....
    Have you done the Roll up ?
    Since aggregates are there on that cube....until and unless you do the roll up that request will not be available for Reporting...
    Regards,
    Debjani....

  • I operate a windows 8,  62 bit computer.  I have ordered and downloaded the following product for AU$129 Adobe Photoshop Elements 13 (Windows,English) on the understanding that it would convert PD files to word.  It is not doing so. Is this a wrong order?

    I operate a windows 8,  62 bit computer.  I have ordered and downloaded the following product for AU$129 Adobe Photoshop Elements 13 (Windows,English) on the understanding that it would convert PD files to word.  It is not doing so. Is this a wrong order?

    if you're trying to convert pdf files to word files, you want acrobat pro or acrobat standard, Buying guide | Adobe Acrobat XI Standard
    http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Hi,i have dificult to acces on itune.the avfoundationCF.dll error 7 (windows error 126) is missing from my computer.how to reinstal the program,thanks for your help

    hi i have adifficult to acess itune. the avfoundationCF.dll is missing on my laptop error 7( windows error 126).how to reinstal it,thanks for your help

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (If you've got XP, although the procedure is for Vista and 7, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever

  • Windows 7 and Internet Explorer 8 will not let me see the Download page for FireFox. How do I get around this?

    Even when I copy the http://www.mozilla.com/en-US/products/download.html url directly to the Windows browser it still will not show the FireFox download links. Has anyone else run into this problem?

    Thanks to whoever posted a reply to someone else telling them to copy the download on another machine to a ubs memory then plug it into the offending machine. It worked!

  • The software that's used to decode the media is not available on this system. Installing the correct decoders for the files you are working with may help to correct the problem.

    I'm trying to make a DVD menu in Encore, and then when it came round to loading my AVI  files into it, bam. Apparently, I don't have the decoders necessary - this is unusual.
    I'm running on a Apple MacBook Pro, and I have Perian installed for all my codec needs. I just don't understand!
    Any help would be most appreciated...

    Welcome to the forum.
    It is most likely that the error message is telling you the truth - the necessary CODEC is not available. It might not be installed, or might be broken.
    The first step is to gather the full details of your .AVI files. This ARTICLE will help explain the potential issues. Sorry that the utilities mentioned are for the PC. Do not know if you can run them in Parallels, or Bootcamp, or other, but similar should be available for the Mac if you cannot.
    I have to admit that I know little of Mac's, and especially how they install and handle CODEC's. On the PC, I can offer help there, but not in this case. Again, with my "sorry."
    There could be two ways to handle the issue, and that might depend on the info gathered afer you read the above article. It could be that the simple installation of the proper CODEC will fix it perfectly and easily. Or, it could mean that you will need to convert your .AVI to something along the lines of a DV-AVI. Though I do not use them in Encore, I have no problem working with .MOV [Animation CODEC] files from FCP in my PrPro. I've just always done all editing in PrPro, before Exporting/Importing to En. I do not know how En will handle .MOV's, but if some Mac-only CODEC is used, probably not so well.
    Good luck,
    Hunt

  • Photoshop CS6 public beta is available on labs. Please use the CS6 forum for feedback

    The public beta of Photoshop is available on http://labs.adobe.com/technologies/photoshopcs6/
    Please direct all discussions/feedback on the matter in the proper forum:
    http://forums.adobe.com/community/labs/photoshopcs6?view=discussions
    And do read the multiple FAQs on the topic that are already posted in the relevant sub-forum:
    http://forums.adobe.com/community/labs/photoshopcs6/faq?view=discussions

    john worthington wrote:
    Liquify Smart Object support was added in a update/dot release to CS6. I don't remember which one. Also we are currently investigating a possible bug where Liquify Smart Objects from older Photoshop psd files may not be recognized correctly in the latest version of Photoshop.
    Can you find out for sure on which version?  Seems strange, that CS6, no matter where it came from, wouldn't be sync'ed as far as version. I understand features coming out for PHotoshop CC, that would go forward and not be in CS6, but it seems that CS6 should be CS6 and be sync'd for features and version numbers no matter where you got it from.
    If you got CS6 from CC....and you quit CC....does that version of CS6 quit functioning or does it work still going forward if you stop paying the CC monthly rent?
    Thanks in advance,
    C

  • About sliding window

    Does anyone knows where to find sample code about implementing sliding window in java?
    thz

    You mean a splitter? Check out the turorial.

  • DG4ODBC on Windows Oracle 11.1 unable to read SQL_WCHAR ( Unicode ) data ?

    I have setup two databases on Windows that can be access by ODBC. Both database contain the following table :-
    create table test1 ( col1 varchar(10) );
    insert into test1 values ('ABCDEF');
    The first database returns columns as a SQL_CHAR and the second returns data as SQL_WCHAR.
    In SQLPlus the first database works just fine ‘ABCEDF’. The second gives ‘``````’ a single ` character for every character in the field.
    As far as I can see DG4ODBC is reading SQL_WCHAR's as UTF8 characters. Can any one confirm this and is there a way to get round the problem ?
    I have tried various HS_LANGUAGE, HS_NLS_NCHAR settings already but to no avail.

    Why does it return an SQL_WCHAR is not the issue.
    The issue is why doesn't it convert it correctly when other applications do. I am almost convinced the issue will be down to the character mapping but I'm not 100% sure where or how to set it ( HS_NLS_NCHAR or possibly HS_FDS_MAP_NCHAR ? ) . The other application I used were not configurable in terms character
    Oracle Corporation --- TUESDAY APR 15 2008 14:17:06.688
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- TUESDAY APR 15 2008 14:17:06.688
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL16UTF16"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "FB"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:FB
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=2000
    HOCXU_DB_CSET=178
    HOCXU_SEM_VER=110000
    Entered hgolofn at 2008/04/15-14:17:06
    Exiting hgolofn, rc=0 at 2008/04/15-14:17:06
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2008/04/15-14:17:06
    Entered hgolgon at 2008/04/15-14:17:06
    reco:0, name:SYSDBA, tflag:0
    Entered hgosuec at 2008/04/15-14:17:06
    Exiting hgosuec, rc=0 at 2008/04/15-14:17:06
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using SYSDBA as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/04/15-14:17:07
    HS_FDS_CONNECT_INFO = "FB"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/04/15-14:17:07
    dsn:FB, name:SYSDBA
    optn:
    ##>Connect Parameters (len=31)<##
    ## DSN=FB;
    #! UID=SYSDBA;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2008/04/15-14:17:07
    DriverName:FBODBC.DLL, DriverVer:01.02.0002
    DBMS Name:Firebird, DBMS Version:01.02.0002
    Exiting hgocont, rc=0 at 2008/04/15-14:17:07
    SQLGetInfo returns for SQL_CATALOG_NAME
    Exiting hgolgon, rc=0 at 2008/04/15-14:17:07
    Entered hgoulcp at 2008/04/15-14:17:07
    Entered hgowlst at 2008/04/15-14:17:07
    Exiting hgowlst, rc=0 at 2008/04/15-14:17:07
    SQLGetInfo returns " for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    Exiting hgoulcp, rc=0 at 2008/04/15-14:17:07
    Entered hgouldt at 2008/04/15-14:17:07
    Exiting hgouldt, rc=0 at 2008/04/15-14:17:07
    Entered hgobegn at 2008/04/15-14:17:07
    tflag:0 , initial:1
    hoi:0x12f074, ttid (len 27) is ...
    00: 54435056 31545345 6433352E 36363065 [VPCTEST1.53de066]
    10: 2E352E64 312E3132 383537 [d.5.21.1857]
    tbid (len 24) is ...
    00: 54435056 31545345 322E355B 38312E31 [VPCTEST1[5.21.18]
    10: 5B5D3735 5D342E31 [57][1.4]]
    Exiting hgobegn, rc=0 at 2008/04/15-14:17:07
    Entered hgodtab at 2008/04/15-14:17:07
    count:1
    table: RGS
    Entered hgopcda at 2008/04/15-14:17:07
    Column:1(COL1): dtype:-9 (WVARCHAR), prc/scl:10/0, nullbl:0, octet:20, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2008/04/15-14:17:07
    Entered hgopcda at 2008/04/15-14:17:08
    Column:2(COL2): dtype:-8 (WCHAR), prc/scl:10/0, nullbl:1, octet:20, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2008/04/15-14:17:08
    Entered hgopcda at 2008/04/15-14:17:08
    Column:3(COL3): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:20, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2008/04/15-14:17:08
    The hoada for table RGS follows...
    hgodtab, line 577: Printing hoada @ 022815C4
    MAX:3, ACTUAL:3, BRC:1, WHT=6
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 20 20 128/ 10 2000 0 40 COL1
    1 CHAR Y 20 20 128/ 10 2000 0 40 COL2
    4 INTEGER Y 4 4 0/ 0 0 0 0 COL3
    Exiting hgodtab, rc=0 at 2008/04/15-14:17:08
    Entered hgodafr, cursor id 0 at 2008/04/15-14:17:08
    Exiting hgodafr, rc=0 at 2008/04/15-14:17:08
    Entered hgotcis at 2008/04/15-14:17:08
    Calling SQLStatistics for RGS
    IndexType=SQL_TABLE_STAT: cardinality=0
    New Index:RDB$PRIMARY10, type=3, ASCENDING, UNIQUE, cardinality=0
    ordinal position = 1
    Calling SQLColumns for SYSDBA.RGS
    Column "COL1": dtype=-9, colsize=10, decdig=0, char_octet_length=20, cumulative avg row len=15
    Column "COL2": dtype=-8, colsize=10, decdig=0, char_octet_length=20, cumulative avg row len=35
    Column "COL3": dtype=4, colsize=10, decdig=0, char_octet_length=20, cumulative avg row len=39
    Exiting hgotcis, rc=0 at 2008/04/15-14:17:08
    Entered hgopars, cursor id 1 at 2008/04/15-14:17:08
    type:0
    SQL text from hgopars, id=1, len=50 ...
    00: 454C4553 41205443 43222E31 22314C4F [SELECT A1."COL1"]
    10: 2E31412C 4C4F4322 412C2232 43222E31 [,A1."COL2",A1."C]
    20: 22334C4F 4F524620 5222204D 20225347 [OL3" FROM "RGS" ]
    30: 4131 [A1]
    Exiting hgopars, rc=0 at 2008/04/15-14:17:08
    Entered hgoopen, cursor id 1 at 2008/04/15-14:17:08
    hgoopen, line 83: NO hoada to print
    Exiting hgoopen, rc=0 at 2008/04/15-14:17:08
    Entered hgodscr, cursor id 1 at 2008/04/15-14:17:08
    Entered hgopcda at 2008/04/15-14:17:08
    Column:1(COL1): dtype:-9 (WVARCHAR), prc/scl:10/0, nullbl:0, octet:20, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2008/04/15-14:17:08
    Entered hgopcda at 2008/04/15-14:17:08
    Column:2(COL2): dtype:-8 (WCHAR), prc/scl:10/0, nullbl:1, octet:20, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2008/04/15-14:17:08
    Entered hgopcda at 2008/04/15-14:17:08
    Column:3(COL3): dtype:4 (INTEGER), prc/scl:11/0, nullbl:1, octet:20, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2008/04/15-14:17:08
    hgodscr, line 521: Printing hoada @ 023093F8
    MAX:3, ACTUAL:3, BRC:100, WHT=5
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 20 20 128/ 10 2000 0 40 COL1
    1 CHAR Y 20 20 128/ 10 2000 0 40 COL2
    4 INTEGER Y 4 4 0/ 0 0 0 0 COL3
    Exiting hgodscr, rc=0 at 2008/04/15-14:17:08
    Entered hgoftch, cursor id 1 at 2008/04/15-14:17:08
    hgoftch, line 114: Printing hoada @ 023093F8
    MAX:3, ACTUAL:3, BRC:100, WHT=5
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 20 20 128/ 10 2000 0 40 COL1
    1 CHAR Y 20 20 128/ 10 2000 0 40 COL2
    4 INTEGER Y 4 4 0/ 0 0 0 0 COL3
    SQLBindCol: column 1, cdatatype: -8, bflsz: 22
    SQLBindCol: column 2, cdatatype: -8, bflsz: 22
    SQLBindCol: column 3, cdatatype: -16, bflsz: 4
    2 rows fetched
    Exiting hgoftch, rc=0 at 2008/04/15-14:17:08
    Entered hgoftch, cursor id 1 at 2008/04/15-14:17:08
    hgoftch, line 114: Printing hoada @ 023093F8
    MAX:3, ACTUAL:3, BRC:2, WHT=5
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 14 20 128/ 10 2000 0 40 COL1
    1 CHAR Y 20 20 128/ 10 2000 0 40 COL2
    4 INTEGER Y 4 4 0/ 0 0 0 0 COL3
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2008/04/15-14:17:08
    Entered hgoclse, cursor id 1 at 2008/04/15-14:17:12
    Exiting hgoclse, rc=0 at 2008/04/15-14:17:12
    Entered hgodafr, cursor id 1 at 2008/04/15-14:17:12
    Exiting hgodafr, rc=0 at 2008/04/15-14:17:12
    Entered hgocomm at 2008/04/15-14:17:12
    keepinfo:0, tflag:1
    00: 54435056 31545345 6433352E 36363065 [VPCTEST1.53de066]
    10: 2E352E64 312E3132 383537 [d.5.21.1857]
    tbid (len 24) is ...
    00: 54435056 31545345 322E355B 38312E31 [VPCTEST1[5.21.18]
    10: 5B5D3735 5D342E31 [57][1.4]]
    cmt(0):
    Entered hgocpctx at 2008/04/15-14:17:12
    Exiting hgocpctx, rc=0 at 2008/04/15-14:17:12
    Exiting hgocomm, rc=0 at 2008/04/15-14:17:12
    Entered hgolgof at 2008/04/15-14:17:12
    tflag:1
    Exiting hgolgof, rc=0 at 2008/04/15-14:17:12
    Entered hgoexit at 2008/04/15-14:17:12
    Exiting hgoexit, rc=0 at 2008/04/15-14:17:12
    Message was edited by:
    user630562

  • "Request for Reporting available " is not displayed after loading the data.

    Hi
    A DSO feeds the data to a cube and DSO. In dso reporting sysmbol is present. However in the cube "Request for Reporting available " is not present in the manage tab of the cube.
    Please advise on this.
    Regards
    loyee

    Hi,
    What is the status in Monitor. If it is ok, go to manage of the infocube,
    in that screen on the menu, Environment --> Automatic Request processing. Then you will get three check boxes.
    Click the first check box, (Set Quality status to OK). If you aggregates,  choose second box.
    Hope this helps.
    Regards,
    Rama Murthy.

  • TS1717 I have been running Itunes on windows vista and recently loaded Itunes on my Lap top which runs on Windows 7.  When I try to play my music the Lap top only play sample music.  Any suggestions?

    I have a desk top which has Windows Vista.  On this computer I have been running Itunes for a long time.  My new computer is a Lap top and it runs Windows 7.
    I recently loaded Itune on the new computer. I attemted to use Easy Transfer to transfer my Music but was unable to connected the two computers so I transferred my music to a external hard drive and loaded the music on the new computer.  I have the folders and files carefully and they appear to match.  When I try to run Itunes on the new computer I am unable to access the new music.  Itune always goes to the sample music.  The only difference I can come up with is Windows Vista and Windows 7.  Does anyone have any suggestions?

    Hi,
    Are you trying to use the Help -> Updates method?
    Both those patches need to be manually applied to PSE 9.
    Brian

  • I am trying to install windows on my mac via bootcamp, and it says I need to download Windows Support Software. I tried, but it says "Download can not continue. The Windows Support Software is not available.

    I am running OSX 10.6.8 Snow lepard I am trying to install windows on my intel imac 20in late 2006  via bootcamp, and it says I need to download Windows Support Software. I tried, but it says "Download can not continue. The Windows Support Software is not available. I bought the Imac secend hand and did not get the install dvd's with it What can I do?

    You don't need to download the Windows support software, because in Snow Leopard, they are only available as a download for the Late 2010 MacBook Air.
    Instead, you have to buy Mac OS X Snow Leopard. The Snow Leopard disc contains the Windows drivers for your Mac, so you have to install them after finishing the Windows installation

  • I dont know where to begin, what is a sliding window?

    The problem is to create a "smooth" image/"oil painting" image for a given image. You must create a GUI interface that include a menu which uses a JFileChooser to load/save an image file (a plain PGM file). The menu also include an exit menu item. The GUI should also include two radio buttons for smoothing/oil painting, and another group of radio buttons for choosing a sorting method. This group of buttons should have no effect if the smooth button is chosen. A text field should be included to enter the size of the sliding window. The GUI should also include a JScrollPane to display the log of processing time. My GUI looks like the following:
    In addition to your source code, you should also turn in a short report listing the experiments you perform and the processing times. You should run your code with different methods (4 methods) and window sizes ranging from (1 x 1) to (50 x 50). In your report, answer the following questions: Which one of the four methods gives the best running time for the (3 x 3) window? Which is the best for the (5 x 5) window? Which is the best for the (10 x 10) window? Which is the best for the (20 x 20) window? Which is the best for the (50 x 50) window? What is the maximal window size for which the processed image is still recognizable for the human eye?
    Here is how to proceed. Begin with the underlying classes. Develop each one with a main method for testing. As you finish one, move on to the next.
    1. Create a ImageProcess class that extends JFrame and includes all necessary GUI components.
    2. Create a SlidingWindow class that takes an image Array and an strategy object that implements Measurer :
    interface Measurer{
    int measure(Object m); //returns the measure of the object
    The class include a getNewGrayScale method that takes a pixel position of the new image and returns an integer value of the gray scale for that pixel, a setWindowSize method, and a setSortingMethod method.
    3. Two strategy classes ByAvg and ByMedian implements Measurer, one for calculating the average and one for finding the median of an array of integers. ByMedian class should include three sorting methods that implement sorting algorithms: quicksort, counting sort and insertion sort. Note: You may use the implementations of quicksort and insertion sort from your text book, but you must implement your own counting sort!
    4. The pgm (portable gray map) image format requires 4 entries followed by the greyscale values (some files include comments lines starting with the character #). The four entries are: the literal "P2", an integer representing the x dimension, an integer representing the y dimension, and an integer representing the maximum greyscale value. There should be x times y number of grey-level values after these 4 numbers. Part of a sample plain pgm image bug1.pgm is shown below. You may download a Java file to view the image. Caution: my code works very slowly for displaying large image files b/c it paints every pixel as a square. You get bonus points if you can solve the problem.
    P2
    # Created by IrfanView
    40 42
    255
    192 192 192 192 192 192 192 192 192 192 192 192 192 192 192 192 192
    192 192 192 192 192 192 192 192 192 192 197 197 197 191 192 192
    5. The processing procedure works as follows. For each pixel of an image, the procedure considers an (n x n) window centered on that pixel, computes the mean/median of gray-level values in the window, and the mean/median becomes the new gray-level value of the new image. The median is defined as the middle value in a sorted sequence. For example, consider the following (3 x 3) window of pixels: 11 90 74 71 14 92 20 87 68. The sorted sequence of these pixels is <11, 14, 20, 68, 71, 74, 87, 90, 92>, and the middle of the sequence is 71, which is the median of the window. The median of the sequence <1,4,7,9> is (4+7)/2=5. The result of replacing all pixels with average values is a smoothed image. Using median values producing the oil painting effect. On the negative side, the new image is blurrier than the original. Corners and edges of the image need to be handled differently. For this project, for the boundary cases, the sliding window will be resized and include only the image pixels within the window.
    6. Display the image. Your image should be resizable, but the height and width ratio should remain fixed, i.e draw each pixel as a square. Extra credit: if you figure out how to directly display image of pgm format in Java.
    7. Programs to convert a file to pgm format: IrfanView, ImageMagick.
    Be sure to document every class and method (including the class supplied for you). Include a printed UML diagram for this project. Don't forget to check the documentation standards and include the signed cover sheet with your printed submission.

    i need code for connection b/n jsp and mysqlWTF has this got to do with this thread?

  • Mac OS no longer available after trying to remove Windows on Bootcamp. How can I restore Mac OS without the Mac HDD in options?

    Mac OS no longer available after trying to remove Windows on Bootcamp. How can I restore Mac OS without the Mac HDD in options?
    So what I did was, I had bought my iMac from a shop and asked them to do bootcamp for me. However, they installed 32 bit instead of 64. My fault, I did not make my self clear about it. So after it has been delivered to my house, I realized that I wanted the 64 bit. I tried to remove windows on bootcamp but honestly, I have not experienced this before. So I failed. I believe, I did something wrong.
    So I opened the iMac and it keeps asking me to go to windows. Windows OS also corrupted.
    I tried the Option Key but the only option is Windows 7 only. So using a different keyboard, I press option and it only shows Windows HDD and the Mac HDD has gone.
    What am I going to do? How can I restore Mac OS without the HDD anymore?

    iMac, Mac OS X (10.7.2)   < your profile
    Try using Lion Recovery

  • HP Deskjet 3920 driver for Windows 7 64 bit not available anywhere

    Printer HP Deskjet 3920
    No drver software is available for operating system Windows 7 64 bit
    This is the 4th week since I started search.
    This question was solved.
    View Solution.

    Hello I am an employee at HP and I just replied to another person on the same type of problem.  I don't know if you already did this but I had the same problem on a different printer and it worked for me.  You have to have the printer turned on and hooked up to your PC and then do a Windows Update.  With Win7 update the process will see that you have the printer and need a driver and should give you the option to download it.  You can then select it and download it and it should work.  Here is also the text from the HP website.  I hope this works for you.
    NOTE:When you connect the USB cable to the printer, and then to the computer, Windows 7 activates Windows Update. Windows Update searches online for the most recent product driver on the Windows Update site. If the online driver is more recent than the driver stored in Windows 7, the computer downloads and installs the updated driver.The Windows Update process takes place automatically. Therefore, you might not notice that the process is in progress.

Maybe you are looking for