Working with network source code

Hello all,
[CVI 8.5]
I've just noticed a problem with the CVI IDE while working with a project on
a networked share. The network went down twice in 2 days and the windows of
CVI stop responding, they become white and I can't even save my work to an
alternate location...
That sucks.
Guillaume Dargaud
http://www.gdargaud.net/

Why not use CVS or SVN that will create a concurrent copy of the repository locally and allow controlled merges to the network source with the added benefits of revision control.
I've been using CVI port on windows serverd on our local network for the past 10 years and not a single failure of corruption to date. If you need pointers let me know. 
Jattie van der Linde
Engineering Manager, Software & Automation
TEL Magnetic Solutions Ltd

Similar Messages

  • TM works with network drives?

    Just to be sure - TM works with directly attached drives. But does it also work with network drives? I hope it does at least with Apples newest update.
    Thanks
    Andreas

    There is plenty of documentation/discussion of a workaround that let's you make your computer recognize unsupported drives. Search for it using words like terminal network unsupported drive backup and you will find it. Some people say it works fine, and others caution against using it. I haven't seen a thorough discussion that really explains why Apple doesn't allow it, or why it's risky, or why it works, but that's typical of the boards that attract a techie crowd. Me? After spending $650 for a Terastation, I'm going to give it a try. Apple wants so badly for Windows users to switch to Mac, but they sometimes seem to make it very difficult and frustrating for us.

  • Problem file xls with jasper (source code mixed in the content XLS file)

    i´m writing xls file with jasper, the problem is that is mixed the source code of the JSP (where doing request) in the content of the file xls, do not import the API thah use.
    The java code whit JASPER is like:
    FacesContext ctx = FacesContext.getCurrentInstance();
    ExternalContext ectx = ctx.getExternalContext();
    JRDataSource dataSource = ......
    InputStream inputStream = ectx.getResourceAsStream(parametro);
    JasperReport jasperReport = (JasperReport) JRLoader.loadObject(inputStream);
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,new HashMap(), dataSource);
    JRXlsExporter exporter = new JRXlsExporter();
    ByteArrayOutputStream xlsReport = new ByteArrayOutputStream();
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, xlsReport);
    exporter.exportReport();
    byte[] bytes2 = xlsReport.toByteArray();
    response.setContentType("application/vnd.ms-excel");
    response.setContentLength(bytes2.length);
    response.setHeader("Content-disposition", "attachment; filename="" + "MI_EXCEL_JR" + ".xls"");
    ServletOutputStream outputStream = response.getOutputStream();
    outputStream.write(bytes2, 0, bytes2.length);
    outputStream.flush();
    outputStream.close(); whay is printed the response in the xml file?
    tnk for your help....

    hoham wrote:
    byte[] bytes2 = xlsReport.toByteArray();
    Not related to the actual problem, but this line is not very efficient. What if the report is bigger than the available server memory? Or if there are many simultaneous requests which does all the same?
    It would result in an OutOfMemoryError. Rather obtain it as an InputStream and write it in a loop to the OutputStream using a byte block as buffer. Or wrap the both streams by BufferedInputStream/BufferedOutputStream and write in a simple loop. Consult the basic Java IO tutorials for details and code examples.

  • Adobe Bridge permission issues when working with network account

    We have some users using Adobe Bridge CS3, CS4 and CS5.
    They are using Bridge to browse arround the file server.
    I have ACL's so the users can have full access using the Finder, deleting, making folders etc.
    Users are logged in to their AD account with their home folder synced to a Mac OS X server 10.6.4.
    Unless they are Posix owner of a folder they can't make changes or nothing using Bridge.
    If they log in to a local account on a Mac and then manually connect to a share on the same server all is fine with Bridge. They can make folders, delete files etc etc.
    Any ideas?
    I know Adobe made it easy for themselfs years ago by simply stating it is not supported to work on a server using any Adobe app.

    jhellstrom wrote:
    We have some users using Adobe Bridge CS3, CS4 and CS5.
    They are using Bridge to browse arround the file server.
    I have ACL's so the users can have full access using the Finder, deleting, making folders etc.
    Users are logged in to their AD account with their home folder synced to a Mac OS X server 10.6.4.
    Unless they are Posix owner of a folder they can't make changes or nothing using Bridge.
    If they log in to a local account on a Mac and then manually connect to a share on the same server all is fine with Bridge. They can make folders, delete files etc etc.
    Any ideas?
    I know Adobe made it easy for themselfs years ago by simply stating it is not supported to work on a server using any Adobe app.
    As you said Adobe washed their hands of the matter and as any business customer is almost certainly going to use a server, and as Adobe products are so expensive pretty much only business customers can afford them, this is totally inexcusable.
    I had a similar network login related problem with Acrobat Pro in version 7.0 which after +two years+ (no exaggeration) was eventually fixed in Acrobat Pro 8.1. Unfortunately it was then broken again in Acrobat Pro 9.0. Based on my experiences with Acrobat Pro and due to a totally different reason (nothing to to do with using Adobe SW) I found that when I switched from using AFP for network home directories to instead using NFS, my problems with Adobe software and network login accounts went away.
    So, it might be worth your thinking about switching to using NFS for home directories as a workaround.
    Adobe have become even worse than Microsoft for their software. They use a variety of sucky installers instead of Apple's free Installer (Microsoft have switched to using Apple's Installer), they use product activation, they are even worse than MS Office at working with servers. The only redeeming fact Adobe has is that their Mac and Windows products are mostly equivalent unlike Microsoft who still cripple their Mac software.

  • Can't get Email client to work with Network Solutions Email server

    This is a new Email account started after I installed Snow Leopard. The Email server is Network Solutions. I have tried all afternoon and evening trying to set up just one account / mailbox on the Mac and I still haven't gotten it to work. I have been over the settings multiple times with Network Solutions and they tell me all the settings are correct, but still no joy. When I try to 'Get Mail' it simply spins its wheels for a minute or so then displays a (!); i.e. it times out and stops trying. I don't know if it is something about Network Solution's servers that is causing the problem or if it something wrong on my end (most likely). Any idea what I can try? Is there a log someplace that will tell me exactly what part of the process is failing?

    Problem solved. For some reason the POP client had 'SSL' turned on. Guess I set it by accident during one of my many tries. All is well now.

  • I need a keyring (that works with network-manager)

    Hi there,
    I'm new to Arch linux (coming from Ubuntu) and I'm wondering how to set up a keyring that works with that gnome-network-manager applet and ssh(fs). I previously used GNOME and the gnome keyring, and all out of the box.
    I couldn't find any manuals on how to set up the gnome-keyring in Arch linux, neither regarding ssh(fs) nor network-manager. I read people are complaining about network-manager asking for the keyring-unlocking-password, but this doesn't happen for me.
    How do I set up the gnome-keyring propertly?

    siriusb wrote:moljac024:
    https://bugs.launchpad.net/wicd/+bug/377471
    From this bug page:
    The /etc/wicd/wireless-settings.conf file is made root-readable only. This means that any malicious users must have root access or physical access to the machine. In either of these cases, you have far more problems than worrying about the wireless network key.
    Please see http://developer.pidgin.im/wiki/PlainTextPasswords for a very good explanation as to why the passwords are not encrypted.
    It may be plain text, but only root can read/write.

  • Double Click Navigation with ABAP Source Codes of Reports On ABAP Workbench

    Hi,
    i have a problem about double click on abap source code on abap workbench. double clicking doesn't work after first double clicked on abap codes. that is going to row of first double clicking.
    did anyone have the same problem? can somebody help me please?
    thanks.

    Nurullah RÜSTEM wrote:
    > isn't there any radical solution to solve this problem?
    > these are very kill-time
    You feel
    Source Code Editor --> Utilities --> Update Navigation Index
    is not radical & kill-time.
    Can you please define "radical" & "kill-time" ?
    BR,
    Suhas

  • How To Upload Object Dependency with Long Source Code

    Hi Everyone,
    I use LSMW (IDoc:KNOMAS)  to upload the Object Dependency with T-Code CU01. However I can not upload  the formula/source code within more than 72 characters due to the maximum size of the source code field in dependency editor is 72 characters.
    Is there anyone that have the same problem and know the solution? Or is there any advice / tips how to upload the Object Dependency that have long source code?
    Any comments is appreciated. Thank you before hand.

    Hi Mika Permana,
    Same Problem am also getting when i was trying to upload more than one object dependency syntax's on CU01,
    After that i came to know we can restrict that all those things before 72 character's and we can add all those things to the next line in notepad,
    For Example,
    Header 1
    $SELF.Z_PRICE_HDC= 'HDC30' IF TURNAROUND = 'TAT5' AND NDF_COLOR1 = '4/4'
    AND NDF_COLOR1 = '4/4'
    Here We cant upload the object dependencies through to excel file,because KCD_EXCEL_OLE_TO_INT_CONVERT and ALSMEX_TABLINE function module having 'Value' field ,its length is 50 only,
    so it cant allow after 50th word. so i preferred to use notepad!!!
    the following code is for your reference.
    LOOP AT i_index WHERE knnam_001 = it_mmtab-knnam_001.
           l_count = l_count + 1.
           CONCATENATE 'RSTXP-TDLINE(' l_count ')' INTO var1.
           PERFORM bdc_field       USING var1                               " 'RSTXP-TDLINE(01)'           " syntax
                                    i_index-tdline_01_006.
           IF l_count > 15.
             MESSAGE 'LINE ITEM EXCEEDED > 15 ' TYPE 'E'.
           ENDIF.
         ENDLOOP.
    Thanks & Regards,BASTIN VINOTH NGSAP Technical Consultant, Unisoft Infotech Pvt. Ltd.,

  • LR5.2 Destroys raw-files if working with network drives

    I have a serious bug with LR5.2: It destroys my raw files CR2 (Canon ESO 60d) if I work with my local network drive. All my pictures are stored on this network drive. If I try to import from sd card or local drive new pictures and copy/move them via import or synchornize to my network drive the files are corrupted. I also can't open them with other sw-programms like DPP from Canon. The original files on the sd card are okay. Even if I copy the files via explorer to the network drive I can open them with for ex. DPP, but after I imported them into LR5.2 the files are corrupted and I can't open them with DPP again.

    LeeScoresby wrote:
    I have a serious bug with LR5.2: It destroys my raw files CR2.
    Lr doesn't write CR2 files, except if moving/copying, and then only via call to operating system. If your raw files are going bad, you probably have a system/hardware problem.

  • E-Commerce for mySAP ERP: Problem with java source code

    Hello everybody,
    we try to implement web shops on the basis of ECO for ERP 5.0. The shop is running fine and we want to start with some extensions in java classes and web UI with NWDI  2004s.
    We created a new track and our own application as described in "Development And Extension Guide". We need to extend some of the original java classes for the b2b scenario and of course the user interface.
    We got the information from SAP, that the original java classes are not intended
    to be modified by customers and therefore it is not intended to create a project with NWDI that contains that source code. But we should be able to create own DCs and copy the source code into it and then modify them on own risk.
    We tried to do that, but always got errors.
    Due to customer requirements we have to make some modifications otherwise we can not use this solution.
    If there is anybody who has already some experience with this topic we
    would be very glad to get some hints.
    Kind Regards
    Helmut

    Hello Raju,
    I am sorry, but I am no technical consultant, but I am have to change 
    the already installed application for our customers.
    Nethertheless I try to give you some information I have. I had a look at SAP note 883948 you mentioned. The software components which are listed under XECO are the software components which contain the E-Commerce Application. You also find them in the "Development and Extension Guide".
    There are some guides under  http://service.sap.com/instguides -> mySAP Business Suite Solutions -> mySAP ERP -> mySAP ERP 2005 -> Installation. In the document "SAP E-Commerce for mySAP ERP: Business Scenario Configuration Guide" there is a table of the needed components on a high level.
    From the view of the application you need the E-Commerce application itself, the TREX for searching in the product catalog, the IPC if you want to have price calculation in the shop or configuration of products with optional components.
    Hope this helps a bit
    Kind Regards
    Helmut

  • Does the Ipad 2 GSM version work with networks abroad, as in their microsim

    I realize that its a GSM model, and that, theoretically, it should work with GSM networks abroad. But remember the GSM Iphone 4? Even if you had chosen to purchase one without a contract, it will not work with GSM networks abroad. Apparently, it was locked to ATT, with or without a contract. I've tried this before. My Iphone 3Gs will not work with international sim cards. However, the iphone 4 I purchased from the UK, unlike the American iphone 4, works with any international micro-sim as long as the carrier was on a GSM network.
    So my question is, will the current American GSM Ipad 2 work abroad with international GSM micro-sims, or will it not work like the American iphone 4?

    Bo3athab wrote:
    So my question is, will the current American GSM Ipad 2 work abroad with international GSM micro-sims, or will it not work like the American iphone 4?
    As has been stated in approximately 47 other threads on this subject, the iPad, unlike the iPhone, is not locked to a carrier. Yes, you can use it in other countries with an appropriate microsim. The problem that you could run into is, if you need any kind of warranty service before the iPad is released in your country, you may find yourself in a bit of a bind.

  • Does fusion drive work with network accounts

    Hi,
    We are planning to buy new desktop systems.
    Since we work with big files, we love the idea about Fusion drive.
    Now my only question. Does this help when you use Network drives.
    Since the files are not stored on the system, but on the network, I think its better to have a server with fusion in it?
    An other solution might be using a mobile account on the desktop servers.
    Since (a copy of) all files is stored on the computer I think the speed will be approved if we use files wit fusion drive.
    Hope somebody can give his opinion with should be the best solution.
    Now working on the systems is very slow, and often a "turning ball" system is there, when we are accessing files.
    Regards,
    Flip

    Hi Uptime Jeff,
    I 100% agree with your comment.
    I would love to stop using network drives. It is slow, and I have often problems if the network is having issues.
    There is only 1 reason why we use network drives and that is because we work on iMacs in office, and use Macbooks abrought. Since we can use the same homedrive (especially the /library/ folder with settings, passwords etc) on iMac and Macbook we make use of network drives.
    Is there an other way to do this, then we can stop the full network drive.

  • Sapscript - print a list with all source code of the windows in layout

    hi all,
    i need a way to print all source code of the layout (include the source of all windows in the layout).
    thanks,
    dany

    Hi Dany
    From SE71, you can go to FORM INFO: Utilities->Form Info
    Max

  • Issues with XML Source Code

    Has anyone seen or heard fo this issue:
    I was sent a new xml source code and loaded it into my .rtf file. When I went to preview the file it showed up no problem. All great and dandy!
    When I tried to add a field and preview the field would not show up. Yes, there is data in the XML sourse code for the tag.
    I decided to run a test and load some of the old XML source code and had no problems. I was able to move fields, add plain text, and delete fields and my changes would display in the preview.
    The only thing we can think of that is different is that the previous xml source code was generated from 9. 2. 08 database we recently upgraded to 10g. The new source code is from 10g.
    Does this make any sense? Would our upgrade to 10g result in not being able to change the template? Or is it something else?
    Thanks,
    Jessica

    Tim,
    I actually just sent you an e-mail. It contains the rtf and the source codes.
    Thanks,
    Jessica

  • PKGBUILD with adjusting source code

    Hi everyone.
    The subject can be not so clear, but just have a look at dirty code below and my idea is obvious: I want to have PKGBUILD that has no "own" source files, but bases on code that belongs to another package. The main part is just to make some replacemet in files (in my case replace colors) to create new sets of GTK and icon themes:
    # Mantainer: nBVCXz <[email protected]>
    # based on https://aur.archlinux.org/packages/gtk-theme-numix/ by Diego <cdprincipe@at@gmail@dot@com>
    pkgname=numix-grey-theme
    _theme=Numix
    pkgver=1.9
    pkgrel=1
    pkgdesc="A flat and light theme with a modern look with grey look matching Lubuntu themes"
    arch=('any')
    url="http://satya164.deviantart.com/art/Numix-GTK3-theme-360223962"
    license=('GPL3')
    depends=('gtk-engine-murrine')
    source=(https://github.com/shimmerproject/${_theme}/archive/v${pkgver}.tar.gz)
    package() {
    install -d "$pkgdir/usr/share/themes/${_theme}-Grey"
    cp -rv ${srcdir}/${_theme}-${pkgver}/* "$pkgdir/usr/share/themes/${_theme}-Grey/"
    # change working dir
    cd $pkgdir/usr/share/themes/${_theme}-Grey/
    # change theme Name
    sed -i 's/Numix/Numix-Grey/g' ./index.theme
    # change some colors in GTK 2
    cd ./gtk-2.0/
    sed -i 's/base_color:#f9f9f9/base_color:#dddddd/I' ./gtkrc
    sed -i 's/bg_color:#dedede/bg_color:#dddddd/I' ./gtkrc
    sed -i 's/tooltip_fg_color:#f9f9f9/tooltip_fg_color:#2d2d2d/I' ./gtkrc
    sed -i 's/tooltip_bg_color:#2d2d2d/tooltip_bg_color:#dddddd/I' ./gtkrc
    sed -i 's/menubar_bg_color:#2d2d2d/menubar_bg_color:#dddddd/I' ./gtkrc
    sed -i 's/menubar_fg_color:#dcdcdc/menubar_fg_color:#2d2d2d/I' ./gtkrc
    sed -i 's/toolbar_bg_color:#dedede/toolbar_bg_color:#dddddd/I' ./gtkrc
    sed -i 's/menu_bg_color:#2d2d2d/menu_bg_color:#dddddd/I' ./gtkrc
    sed -i 's/menu_fg_color:#dcdcdc/menu_fg_color:#2d2d2d/I' ./gtkrc
    sed -i 's/panel_bg_color:#2d2d2d/panel_bg_color:#dddddd/I' ./gtkrc
    sed -i 's/panel_fg_color:#dcdcdc/panel_fg_color:#2d2d2d/I' ./gtkrc
    # now change some GTK 3
    cd ../gtk-3.0/
    sed -i 's/define-color bg_color #dedede/define-color bg_color #dddddd/I' ./gtk.css
    # sed -i 's/define-color tooltip_bg_color #2d2d2d/define-color tooltip_bg_color #2d2d2d/I' ./gtk.css
    sed -i 's/define-color tooltip_fg_color #f9f9f9/define-color tooltip_fg_color #dddddd/I' ./gtk.css
    sed -i 's/define-color light_shadow #fff/define-color light_shadow #dddddd/I' ./gtk.css
    sed -i 's/define-color dark_shadow #000/define-color dark_shadow #000000/I' ./gtk.css
    sed -i 's/define-color menubar_bg_color #2d2d2d/define-color menubar_bg_color @theme_bg_color/I' ./gtk.css
    sed -i 's/define-color menubar_fg_color #dcdcdc/define-color menubar_fg_color #2d2d2d/I' ./gtk.css
    sed -i 's/define-color toolbar_bg_color #dedede/define-color toolbar_bg_color @theme_bg_color/I' ./gtk.css
    sed -i 's/define-color menu_bg_color #2d2d2d/define-color menu_bg_color @theme_bg_color/I' ./gtk.css
    sed -i 's/define-color menu_fg_color #dcdcdc/define-color menu_fg_color #2d2d2d/I' ./gtk.css
    sed -i 's/define-color panel_bg_color #2d2d2d/define-color panel_bg_color @theme_bg_color/I' ./gtk.css
    sed -i 's/define-color panel_fg_color #dcdcdc/define-color panel_fg_color #2d2d2d/I' ./gtk.css
    sed -i 's/define-color osd_base #2d2d2d/define-color osd_base #dddddd/I' ./gtk.css
    sed -i 's/define-color osd_fg #dcdcdc/define-color osd_fg #2d2d2d/I' ./gtk.css
    sed -i 's/define-color wm_bg #2d2d2d/define-color wm_bg #dddddd/I' ./gtk.css
    sed -i 's/define-color wm_title_focused #dcdcdc/define-color wm_title_focused #2d2d2d/I' ./gtk.css
    sed -i 's/base_color:#f9f9f9/base_color:#dddddd/I' ./settings.ini
    sed -i 's/bg_color:#dedede/bg_color:#dddddd/I' ./settings.ini
    # sed -i 's/tooltip_bg_color:#2d2d2d/tooltip_bg_color:#2d2d2d/I' ./settings.ini
    sed -i 's/tooltip_fg_color:#f9f9f9/tooltip_fg_color:#dddddd/I' ./settings.ini
    sed -i 's/selected_fg_color:#f9f9f9/selected_fg_color:#dddddd/I' ./settings.ini
    sed -i 's/menubar_bg_color:#2d2d2d/menubar_bg_color:#dddddd/I' ./settings.ini
    sed -i 's/menubar_fg_color:#dcdcdc/menubar_fg_color:#2d2d2d/I' ./settings.ini
    sed -i 's/toolbar_bg_color:#dedede/toolbar_bg_color:#dddddd/I' ./settings.ini
    sed -i 's/menu_bg_color:#2d2d2d/menu_bg_color:#dddddd/I' ./settings.ini
    sed -i 's/menu_fg_color:#dcdcdc/menu_fg_color:#555555/I' ./settings.ini
    sed -i 's/panel_bg_color:#2d2d2d/panel_bg_color:#dddddd/I' ./settings.ini
    sed -i 's/panel_fg_color:#dcdcdc/panel_fg_color:#555555/I' ./settings.ini
    # now some for Openbox
    cd ../openbox-3
    sed -i 's/# Author: Satyajit Sahoo <[email protected]>/# Author: nbvcxz <[email protected]>/I' ./themerc
    sed -i 's/menu.border.color: #2d2d2d/menu.border.color: #ccccccc/I' ./themerc
    sed -i 's/menu.title.bg.color: #2d2d2d/menu.title.bg.color: #dddddd/I' ./themerc
    sed -i 's/menu.title.text.color: #dcdcdc/menu.title.text.color: #333333/I' ./themerc
    sed -i 's/menu.items.bg.color: #2d2d2d/menu.items.bg.color: #dddddd/I' ./themerc
    sed -i 's/menu.items.text.color: #dcdcdc/menu.items.text.color: #333333/I' ./themerc
    sed -i 's/menu.items.disabled.text.color: #888888/menu.items.disabled.text.color: #c7c7c7/I' ./themerc
    sed -i 's/menu.items.active.text.color: #f9f9f9/menu.items.active.text.color: #dddddd/I' ./themerc
    sed -i 's/menu.separator.color: #262626/menu.separator.color: #cfcfcf/I' ./themerc
    sed -i 's/window.active.border.color: #484848/window.active.border.color: #c7c7c7/I' ./themerc
    sed -i 's/window.active.title.bg.color: #2d2d2d/window.active.title.bg.color: #c7c7c7/I' ./themerc
    sed -i 's/window.active.title.separator.color: #2d2d2d/window.active.title.separator.color: #c7c7c7/I' ./themerc
    sed -i 's/window.active.label.text.color: #dcdcdc/window.active.label.text.color: #333333/I' ./themerc
    sed -i 's/window.active.handle.bg.color: #2d2d2d/window.active.handle.bg.color: #c7c7c7/I' ./themerc
    sed -i 's/window.active.grip.bg.color: #2d2d2d/window.active.grip.bg.color: #c7c7c7/I' ./themerc
    sed -i 's/window.active.button.unpressed.bg.color: #2d2d2d/window.active.button.unpressed.bg.color: #c7c7c7/I' ./themerc
    sed -i 's/window.active.button.unpressed.image.color: #dcdcdc/window.active.button.unpressed.image.color: #333333/I' ./themerc
    sed -i 's/window.active.button.pressed.bg.color: #2d2d2d/window.active.button.pressed.bg.color: #c7c7c7/I' ./themerc
    sed -i 's/window.active.button.disabled.bg.color: #2d2d2d/window.active.button.disabled.bg.color: #c7c7c7/I' ./themerc
    sed -i 's/window.active.button.disabled.image.color: #888888/window.active.button.disabled.image.color: #333333/I' ./themerc
    sed -i 's/window.inactive.border.color: #393939/window.inactive.border.color: #dddddd/I' ./themerc
    sed -i 's/window.inactive.title.bg.color: #2d2d2d/window.inactive.title.bg.color: #dddddd/I' ./themerc
    sed -i 's/window.inactive.title.separator.color: #2d2d2d/window.inactive.title.separator.color: #dddddd/I' ./themerc
    sed -i 's/window.inactive.label.text.color: #888888/window.inactive.label.text.color: #c7c7c7/I' ./themerc
    sed -i 's/window.inactive.handle.bg.color: #2d2d2d/window.inactive.handle.bg.color: #dddddd/I' ./themerc
    sed -i 's/window.inactive.grip.bg.color: #2d2d2d/window.inactive.grip.bg.color: #dddddd/I' ./themerc
    sed -i 's/window.inactive.button.unpressed.bg.color: #2d2d2d/window.inactive.button.unpressed.bg.color: #dddddd/I' ./themerc
    sed -i 's/window.inactive.button.unpressed.image.color: #888888/window.inactive.button.unpressed.image.color: #c7c7c7/I' ./themerc
    sed -i 's/window.inactive.button.pressed.bg.color: #2d2d2d/window.inactive.button.pressed.bg.color: #dddddd/I' ./themerc
    sed -i 's/window.inactive.button.pressed.image.color: #d64937/window.inactive.button.pressed.image.color: #cf978f/I' ./themerc
    sed -i 's/window.inactive.button.disabled.bg.color: #2d2d2d/window.inactive.button.disabled.bg.color: #dddddd/I' ./themerc
    sed -i 's/window.inactive.button.disabled.image.color: #888888/window.inactive.button.disabled.image.color: #d0d0d0/I' ./themerc
    sed -i 's/osd.bg.color: #dedede/osd.bg.color: #dddddd/I' ./themerc
    sed -i 's/border.width: 1/border.width: 4/I' ./themerc
    sed -i 's/padding.height: 4/padding.height: 1/I' ./themerc
    sed -i 's/menu.separator.padding.height: 1/menu.separator.padding.height: 4/I' ./themerc
    # and xfce4
    sed -i 's/#dcdcdc/#2d2d2d/I' ./themerc
    sed -i 's/#888888/#c7c7c7/I' ./themerc
    md5sums=('6adda96f008ebb36877e2f642484404f')
    and second for icons:
    # Mantainer: nBVCXz <[email protected]>
    # based on https://aur.archlinux.org/packages/gtk-theme-numix-git/ by Diego <cdprincipe@at@gmail@dot@com>
    pkgname=numix-icon-theme-grey
    pkgver=50.d21eec1
    pkgrel=1
    pkgdesc="A grey icon theme for Numix Theme matching for Lubuntu colors"
    arch=('any')
    url="https://github.com/cldx/numix"
    license=('GPL3')
    depends=()
    makedepends=('git')
    optdepends=()
    # provides=('icons-theme-numix')
    # conflicts=('icons-theme-numix')
    source=('git://github.com/cldx/numix.git' 'spacefm.svg')
    options=('!upx')
    pkgver() {
    cd numix
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
    package() {
    cd numix
    # create theme dirs
    install -d -m 755 "$pkgdir"/usr/share/icons/Numix-Grey
    # clean up
    rm -rf {.git,.gitignore,CREDITS,LICENSE,README}
    # install theme
    cp -r . "$pkgdir"/usr/share/icons/Numix-Grey/
    cd ..
    cp spacefm.svg "$pkgdir"/usr/share/icons/Numix-Grey/apps/48/
    cp "$pkgdir"/usr/share/icons/Numix-Grey/categories/gnome-system.svg "$pkgdir"/usr/share/icons/Numix-Grey/categories/48/
    cp xbmc.svg "$pkgdir"/usr/share/icons/Numix-Grey/apps/48/
    cp mplayer.svg "$pkgdir"/usr/share/icons/Numix-Grey/apps/48/
    cp smplayer.svg "$pkgdir"/usr/share/icons/Numix-Grey/apps/48/
    cp nerolinux.svg "$pkgdir"/usr/share/icons/Numix-Grey/apps/48/
    cp gtkam-camera.svg "$pkgdir"/usr/share/icons/Numix-Grey/apps/48/
    # change working dir
    cd $pkgdir/usr/share/icons/Numix-Grey
    # change icon theme Name
    sed -i 's/NUMIX/Numix-Grey/g' ./index.theme
    # change some colors
    find ./ -type f -exec sed -i 's/000000/555555/I' {} \;
    find ./ -type f -exec sed -i 's/c4905e/555555/I' {} \;
    find ./ -type f -exec sed -i 's/dfdbd2/555555/I' {} \; # transmission tray icon
    find ./ -type f -exec sed -i 's/919fa9/555555/I' {} \; # change new light gray for little darker
    # link some icons
    cd ./apps/48
    ln -s terminal.svg lxterminal.svg
    ln -s gpicview.svg geeqie.svg
    cd ../../
    # add preferences/48 desc. for index
    # sed '/[status/16]/ i\[preferences/48] \ Context=Preferences \ Size=48 \ Type=Scalable' ./index.theme # commented as need to be coded right
    rm -rf ./actions_bak
    if [ -f ./index.theme~ ]
    then
    rm ./index.theme~
    fi
    # make cache
    gtk-update-icon-cache -f ./
    md5sums=('SKIP'
    '6d4a44ed8d9cc697501ad0d7ceaa9346')
    The final efect is here: https://bbs.archlinux.org/viewtopic.php … 9#p1306969
    My first question is - if it is OK according to AUR rules (I thing so). Second - more important for me. I don't know much about programming. Can you help me write the proper loops to replace all the lines with sed -i ?
    Btw https://www.dropbox.com/sh/chfwm0woncxpoze/DTBpbr19cg here are full PKGBUILDS and some start icons for arch. Tested with Šaran - should work ok.

    Sed can take many 's//' commands in one invocation - so that would be the easiest change.
    Awk would be something like the following:
    awk '
    /item.to.edit.fg/ { gsub(/#[0-9A-Fa-f]{6}/,"#RRGGBB"); }
    /item.to.edit.bg/ { gsub(/#[0-9A-Fa-f]{6}/,"#RRGGBB"); }
    ... more of the same form ...
    // { print $0; }
    ' $file > ${file}.new && mv ${file}.new $file
    This would allow for the original source to change their colors, and this would still override the selected ones with whatever you put in "RRGGBB" and you could put all the modifications for every file in one such awk script, and just loop through every file as $file.
    But in doing this, all the content of your "package" that would go in the AUR is encoded in the aur tarball - this is wrong.
    Make an awk script with that code, put it on github, and write a PKGBUILD to that.

Maybe you are looking for