Duplicate borders

I want to duplicate all the borders of my 2d array a few times so I get a coppy of all outside rows and cols next to them.
Example:
Original:    1     2    3    4
(4-4)          5     6    7    8
                9    10   11  12
                13  14   15  16
Output:    1     1      2       3     4     4
6-6          1     1      2       3     4     4
               5     5      6       7     8    8
               9     9     10     11    12   12
              13   13     14    15    16   16
              13   13     14    15    16   16
(In the middle of the output array you find the origingal array)
I need to get up to 6 kopies of the borders.
So 6 kopie col than the original array and again 6 kopie col.
Same for the rows.
(example has 1 kopie col than the original array and again 1 kopie col.)
Solved!
Go to Solution.

Indeed this does the job as in the example.
But I have a 2d array whit random numers as input.
I don't know what the value of the element will be.
What makes it a lot more difficult...
It also can be this:
Original:    10      23    133    44
(4-4)          58     16     37     80
                999    10    131    72
                13      54    50      56
Output:   
(6-6)         10    10    23    133    44   44
                10    10    23    133   44    44
                58    58    16     37    80    80
                999  999  10     131   72    72 
                13    13    54     50    56    56 
                13    13    54     50    56    56 

Similar Messages

  • Black borders and duplicate restart/shutdown options

    I just started up my computer this morning and now black boxes appear around icons when I mouse over them and borders appear around lines of text - really annoying and distracting. Also, When I go to shutdown or restart, I notice that there are multiple restart, shutdown and log out options. Any ideas what I did and how to fix it?

    hi there-
    try going to system preferences > universal access. is voice over enabled?? if so, disable it, and it should get rid of your black boxes and duplicate options. [ 8 ) ]

  • Tables lines/borders, although all formatted to the required weight, once pdf'd show up as different

    Tables lines/borders – although all formatted to the required weight in MS Word 2003, once pdfd show up as different weights and the 'heavier' line varies depending on which magnification the page is in. These lines are coloured, not automatic colour. Hope someone can help. Thanks

    Close the form so you are looking at the "My Forms" tab, the view that shows you all of your forms.  In the "My Forms" tab you can right click on a form and choose "Duplicate" from the context menu or you can select a form and click on the "Duplicate" button in the toolbar above the list of forms.
    Thanks,
    Josh

  • Module borders not displaying when using Aggregator

    I am using Captivate 4.  I created a TOC for both modules in a project. Then I created an Aggregator to connect them and display both TOCs.
    The issue I am havving is that the individual modules have borders on all 4 sides, yet they do not display when using the aggregator. How do I correct this?
    Thank you.

    Lenny,
    I apologize for not having an answer to your question, but I'm envious that you've successfully configured mod_jk. I've read several different versions of how to configure this, but nothing has worked so far. I wonder if you could either point me to some correct instructions on how to integrate Apache and Tomcat so I might try to duplicate your success.
    Thanks in advance,
    Vince

  • Adjusting print borders

    One of my favorite features of Lightroom was the ability to adjust each border individually. For example, I like leaving a heavy border on the bottom of the photo and even along the sides and top. Is this possible in Aperture?

    No, you can't do that in Aperture.
    As a kind of workaround, what you can do is to duplicate the photo frame, make a thicker border and send it backward. Then you have to adjust the height of the top photo frame so that the tick border in the photo frame underneath comes visible at the bottom of the image.
    Then, printing your book it looks just like an image with nice thin borders on top, left and right, and a thick bottom border.
    Regards
    Paul K

  • How do you make borders blur to transparent?

    I'd like to post some photos to my website, which has a white background. Ideally, I'd like the edges / borders of the photos blur to transparent, so that if I post them up to white or any other colour background, they will look good.
    I'm using PSE7
    Thanks in advance!

    Chris,
    Since you want the fade to be transparent, do this variation of the example Ken posted:
    1. Duplicate the Background layer.
    2. On the duplicate layer select the rectangular border, invert and feather the selection, and delete the selection as in that example.
    3. Turn off visibility of the Background layer.
    4. Save the image in a format that supports transparency, probably gif if you are putting it on a Web page.
    http://www.pixentral.com/show.php?picture=18Rl5iwDD8Y0RO7CrdDzKFwUmUJeM8
    Actually, you don't really need to duplicate the Background layer. You can simply rename the layer and do the selection and deletion. The reason for the rename is that deletion on the Background layer is not replaced by transparency but by the current background color.

  • Past and Match Style erases my borders - should it?

    I'm working in Numbers, and when I copy a style from one cell, and paste in another, I lose all my borders. I don't know if the copy and paste style should copy borders, I don't really care, but I just don't want it to erase my borders.
    Specifically, I have a bunch of cells where I want to indent the text. As I can't make this change with multiple cells selected, I have to do it to one, then copy the style and paste the style on others. But this erases my borders.
    Is there better way to accomplish what I want? Thanks!

    Hi Yvan,
    now I realized that we did not understand each other because we were talking about different things.
    When me (and most probably Adam as well) were talking about a "Table" we did not mean the Table as a sub-item of a sheet which in Numbers (comparing to Excel) you can have more Tables in one Sheet (which I personally appreciate very much).
    To make a copy of such a Table is an easy thing. I can make my own Table template as well it is very easy to right click and make a Duplicate of a Table.
    What we were talking about is to make a copy of a table within a Table (just a group of cells within a Table with its own formatting such as fonts, borders, ... etc.)
    Please have a look here: http://www.vidovic.sk/kuko_test.numbers
    and if you can advice me, make a copy (with all the styles such as borders as well) of a table - the group of cells B2-G13 for example to area B16-G27 within the same Table.
    I truly believe this is somehow possible.
    Thank you very much in advance.

  • When I duplicate a book in Aperture 3.6 since I upgraded to Yosemite, the pages duplicate but the photos do not???

    I recently upgraded to Yosemite and I have Aperture 3.6.  When I now try to duplicate a book, the page structure duplicates but none of the photos appear?

    Hi, Thanks for the info.  I can't get the First Aid window to appear. I went into the "Trash" and emptied everything in there (some duplicate versions of photos etc. and I deleted the map page and remade the map.  Mow the book duplicates?
    I have one other problem that happened after upgrading to Yosemite.  The print quality on 4 previous books I submitted was pretty poor. I contacted the Apple Store, they said to upgrade to Yosemite as all of their printers were geared to that op system. They gave me a credit for one book, told me to upgrade, remake the book and resubmit and see what it looked like the second time around.  When I clicked on "Buy Book", then "Preview" everything was good.  I previewed the book to make sure that the spacings / borders etc. were all good as I have always done, and then closed the Adobe window / PDF and clicked "Continue".  The next page appeared like normal with my billing info etc. and I clicked "Continue".  Normally at this point a window drops down saying that the order had been received and that the data was loading. This time a window dropped down for a brief second and disappeared and then I got an error message that the "connection had been lost, try again later".  I found out that the credit card billing went through to the credit card company but the book data did not.  I had to go through a bunch of hoops to get the charges deleted on my credit card account and finally got that solved. I went back and tried again with the book. Same thing happened, same error, only this time I noticed a small text and a spinning wheel just above the browser at the bottom of the page saying "loading".  I let it run and finally it quit, about half an hour later I got an email from the Apple store saying the book was being processed and supplying an order number.  Usually, before I switched to Yosemite, I would submit, "buy book", preview and continue. A window would drop down saying the book had been submitted. Then I'd get an email with the order number saying I had up to 90 minutes to cancel the order.  This time I got none of that - only the order email about 30 minutes later?? Since then, I tried a second book with the same results (but knew what to look for this time, so I let it run through the step).  I got emails yesterday providing tracking info for both books so obviously they were printed and shipped okay. Any ideas?

  • Avoiding null and duplicate values using model clause

    Hi,
    I am trying to use model clause to get comma seperated list of data : following is the scenario:
    testuser>select * from test1;
    ID VALUE
    1 Value1
    2 Value2
    3 Value3
    4 Value4
    5 Value4
    6
    7 value5
    8
    8 rows selected.
    the query I have is:
    testuser>with src as (
    2 select distinct id,value
    3 from test1
    4 ),
    5 t as (
    6 select distinct substr(value,2) value
    7 from src
    8 model
    9 ignore nav
    10 dimension by (id)
    11 measures (cast(value as varchar2(100)) value)
    12 rules
    13 (
    14 value[any] order by id =
    15 value[cv()-1] || ',' || value[cv()]
    16 )
    17 )
    18 select max(value) oneline
    19 from t;
    ONELINE
    Value1,Value2,Value3,Value4,Value4,,value5,
    what I find is that this query has duplicate value and null (',,') coming in as data has null and duplicate value. Is there a way i can avoid the null and the duplicate values in the query output?
    thanks,
    Edited by: orausern on Feb 19, 2010 5:05 AM

    Hi,
    Try this code.
    with
    t as ( select substr(value,2)value,ind
            from test1
            model
            ignore nav
            dimension by (id)
            measures (cast(value as varchar2(100)) value, 0 ind)
            rules
            ( ind[any]=  instr(value[cv()-1],value[cv()]),
            value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
                                               and ind[cv()]=0     THEN ',' || value[cv()] END      
    select max(value) oneline
    from t;
    SQL> select * from test1;
            ID VALUE
             1 Value1
             2 Value2
             3 Value3
             4 Value4
             5 Value4
             6
             7 value5
             8
    8 ligne(s) sélectionnée(s).
    SQL> with
      2   t as ( select substr(value,2)value,ind
      3          from test1
      4          model
      5          ignore nav
      6          dimension by (id)
      7          measures (cast(value as varchar2(100)) value, 0 ind)
      8          rules
      9          ( ind[any]=  instr(value[cv()-1],value[cv()]),
    10          value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
    11                                             and ind[cv()]=0     THEN ',' || value[cv()] END 
    12          )
    13        )
    14   select max(value) oneline
    15   from t;
    ONELINE
    Value1,Value2,Value3,Value4,value5
    SQL>

  • Problem with duplicate and/or outlined fonts in Macintosh

    If you are using Frame for Macintosh and you find you have duplicate Arial and/or Times New Roman fonts, or, if these fonts show up on the screen as outlines, the problem may be that you have the 2.9x versions of these fonts, the latest as of this writing (31 August).
    You can find older 2.60 versions on the Apple OS 9.2 Install CD, deep in a Microsoft Internet Explore install folder (a Sherlock search will find them).
    DEAD LINK, LEFT HERE FOR HISTORICAL PURPOSES: In case you're interested, you can find the 2.9x versions at http://www.microsoft.com/mac/download/office2001/fontsupdate.asp. The page says "New Apple Macintosh versions of Times New Roman (2.91) and Arial (2.90) This update includes a fix for a problem that prevented certain characters from being printed on PostScript level 3 printers", so I'm hesitant to say that you should not use these newer fonts at all.

    i had been running the program inside Netbeans.
    Running the jar using the command line outside
    Netbeans i have no more problems... Does Netbeans use
    it's own JVM?Depends how you set it up, but look under the options. There are settings for the compiler and jvm that it uses.

  • Vendor duplicate payment-Report

    Dear Guru
       I have an requirement to develop a report that can tell about vendor duplicate payment considering Partial payment and residual payment and full payment.Is there any standard report available ? O r I have to develop a new Custom report.If Custom report that how can i do this ?

    Hi,
    Standared report available to get Partial/Residual/full payment details T.Code: FBL1N
    I think it is not satisfy your requirement, better to develop customized report by using tables BSIK,BSAK,BKPF
    Regards
    Viswa

  • Duplicate records for Sale Order Cycle Report(excluding item level detail)

    I have posted this issue in number of forums but till today no one is able to answer it correctly.Here it is:
    I need to create a report which I think most of the sd consultants have also done it.It basically covers sales order cycle without item lvel detail such as:
    Sale Order No -- Sales Order Date-- Delivery No-- Delivery Date
    Now as we all know ,sales orders and deliveries are connected through item table which means in the output I will get duplicate rows for the report above.For Example, if a sales order share 3 items with the delivery then we will get 3 exact duplicate rows in the report.
    What can be the best solution?connecting through VBFA has alos same result as it also has item level details.
    I need a good solution.This a common report and there must be some solution

    Hiiii,
    It is standard SAP rule that system will catch the document flow (document link history) at item level.
    Now your problem that you dont want to show the line item based report because of duplicacy.
    Try this.
    Brows table VBFA -
    In screen selection select the following......
    1. Subsiquent document category
    2. Preceding item
    select "J" in Subsiquent document category
    and "000010" in Preceding item  then execute the table.
    Now system will not show multple line item based delivery report. so No duplicacy will be there
    Regards
    Shambhu Sarkar

  • My new icloud acct on my imac is duplicating entries in calendar from my ipad; how do I get rid of the duplicates and how do I get one calendar to be the main one to start with

    I've just installed Mavericks on my iMac and now my calendar has duplicate and now sometimes tripled events by syncing with my ipad mini regardless of whether the item already existed in the iMac calendar already. How do I remove the duplicates? It was being able to sync calendars and contacts which was one of my reasons for moving from Snow Leopard to Mavericks and now it's a mess.

    Crista70, What is happening is you now have 2 calendars with the entries in them. If you go into View, then Show Calendar List, you will see all your calendars. Uncheck the ones listed as "From My Mac" or uncheck the ones listed as "iCloud" and they will no longer show as duplicates. Personally, I prefer unchecking the "From My Mac" calendars so that my calendars are all synced across the devices.

  • Duplicate user account OR migrate iPhoto/iWeb between users

    I've seen this question asked several times before, but have not seen an answer!
    So, with as many details as I can muster:
    I have, on my computer, 4 user accounts: my admin account, my user account, my boyfriend's user account, and our business account... All separate, keeps things nice and tidy (sort of!).
    I have a new and separate project that I'm starting to work on which involves lots of images, and new websites, and new and different stuff that's necessary for the project, but just clutter in any of the other accounts.
    Because this project started out as something my man wanted to play around with, all of the beginnings of this are in his iPhoto and his iWeb, and they're well organized.  I've not had luck so far moving the iPhoto and iWeb libraries to a new/blank user and maintaining the organization that I've spent time and attention making right. 
    He's not so great with technology, and gets very frustrated (and unproductive!) when anything on the computer doesn't work exactly like he expects it to. (When Lion came out and the scrolling went "the wrong direction" he was afraid to use the computer at all for a week, because "everything changed, I don't even know how to use it anymore" that's between us though, personal issure ). So I'd like to keep the user experience the same for him.   I'd like to duplicate his settings, preferences, etc. into a new user for him, and take over his current account to isolate this project. 
    So, in summary:
    I want to create a new account with the same user experience  as a current  account without having to find and reset all of his settings.
    OR
    I want an exact copy of the iPhoto and iWeb from this user account to another one, on the same machine. 
    I am currently running OSX 10.7.2, iPhoto '11 9.2.1 and iWeb 3.0.4
    Thanks in advance for any help! 

    Kenzishly wrote:
    I want to create a new account with the same user experience  as a current  account without having to find and reset all of his settings.
    That's easy, if you have Time Machine or "bootable clone" backups. (If you don't, you should anyway.  Post back if you need info on them.)
    Use Migration Assistant to transfer just that user account from the backups; it will put up a screen saying it can't transfer it under the same name as the existing account, and allowing you to rename it.
    Other than having a different name, the transferred account will be identical to the existing one.  Then you can modifiy them separately as necessary.
    EDIT:  see Using Migration Assistant on Lion for detailed instructions.  Be sure to un-check the boxes for eveything except that one user account.
    Message was edited by: Pondini

  • How can i delete duplicates from my itunes account?

    At "View" I chose "Show duplicates."
    Now what do I do to delete duplicates quickly without having to delete each one separately?
    THanks

    Hello, singinheart. 
    Thank you for the question.  Since you have already identified the duplicate media you just have a couple more steps to go.  This article outlines the remainder of the steps in order to mass delete the duplicates. 
    How to find and remove duplicate items in your iTunes library
    http://support.apple.com/kb/ht2905
    Cheers,
    Jason H. 

Maybe you are looking for

  • Process ord confirmation date

    Hi all, I am making a Zreport in PP for the client. In the report output there is one column named as "Actual finish date" which as the name suggests is the process order finished date for confirmation. For this I am using "GLTRIactual finish date" f

  • How to effectively manage large table which is rapidly growing

    All, My environment is single node database with regular file system. Oracle - 10.2.0.4.0 IBM - AIX A tablespace in this database is growing rapidly. Especially a single table in that tablespace having "Long Raw" column datatype has grown from 4 GBs

  • Can't drag clips into timeline (newbie warning)

    I'm sure that this has been discussed previously on this board, but I couldn't find a post. Back to my problem: All of a sudden, the current project that I'm working on will not let me drag clips into the timeline. The clips turn to a "lite" color of

  • Movie not playing in Videos app

    Hi! I bought a movie on the iTunes store (Monthy Python's +Life of Brian+, even though I'm not sure that might be helpful to know) and synced it to my iPod touch (2nd G). Up to then, everything seems fine, the space taken up by the movie appears on t

  • I have a e machine et1331g-03​w and want to up grade the video card and power supply

    what are your suggestions for a mid price upgrade? Mark