Comments in Pro*C Configuration files

Is there way to mark a line as a comment in a Pro*C configuration file?

When I invoke Pro*C from within Visual Studio with the following pcscfg.cfg file
+# The commented lines below are in the original pcscfg.cfg file. They+
+# are commented out here in favor of command-line equivalents in the+
+# .vcproj file. See the properties on the .pc file for details+
+# include=C:/PROGRA~2/MICROS~3/VC/Include+
+# include=C:/PROGRA~2/MICROS~3/VC/Include/Sys+
+# include=C:/PROGRA~2/MICROS~3/VC/ATLMFC/Include+
+# include=C:/PROGRA~2/MICROS~3/VC/PlatformSDK/Include+
+# include=C:/PROGRA~2/MICROS~3/VC/../SDK/v2.0/Include+
+# include=%SRCHOME%/precomp/public+
define=(WIN32_LEAN_AND_MEAN)     
I get the following response from Pro*C:
System default option values taken from: d:\oracle_ic_sdk\win64\11.2\precomp\admin\pcscfg.cfg
PCC-F-02041, CMD-LINE:  Option does not exist:  # include
It's a similar response if I comment out define directives and the like. Am I doing something wrong?
Edited by: biberdorf on Feb 22, 2012 1:53 PM

Similar Messages

  • Can I add comments to a Configuration File?

    If so, how?
    I want to be able to update the values in the file. At the moment I have lines beginning with a semi colon and am reading from the configuration file, but as soon as I enable writing to the file it gets messed up (="" added to the end of every comment line, header information deleted).
    Thanks
    Richard.

    Begin and end each comment line with "\\" characters.  Extra carriage return\line feed characters are allowed (to improve readability).  I have only tried this on Windows XP so I don't know if it will work on other platforms.
    Here is an example configuration file:
    [Button1]
    Text=Production Testing
    Privileges=Operator,Technician,Admin
    VI Path=C:\\C4Test\\Strider\\software\\labview\\Production Testing.vi
    [Button2]
    Text=Advanced Testing
    Privileges=Technician,Admin
    VI Path=C:\\C4Test\\Strider\\software\\labview\\Advanced Testing.vi
    [Button3]
    Text=Maintenance
    Privileges=Technician,Admin
    VI Path=C:\\C4Test\\Strider\\software\\labview\\Maintenance.vi
    [Button4]
    Text=Updates
    Privileges=Technician,Admin
    VI Path=C:\\C4Test\\Strider\\software\\labview\\Updates.vi
    [Auxiliary1]
    Text=Documents
    Privileges=Operator,Technician,Admin
    VI Path=C:\\C4Test\\Strider\\software\\labview\\Documents.vi
    [Auxiliary2]
    Text=Home
    Privileges=Operator,Technician,Admin
    VI Path=C:\\C4Test\\Strider\\software\\labview\\Home.vi
    \\In this configuration file, square brackets enclose each section name. Every section name must be unique.\\
    \\Sections contain key/value pairs separated by an equal sign. Within each section, every key name must be unique.\\
    \\The key name represents a configuration preference and the value name represents the setting for that preference.\\
    Message Edited by Ryan Wright on 06-16-2009 10:14 AM

  • JUNIT test failure-Configuration file bc4j.xcfg not found in the classpath

    Hi All,
    As part of an ESS project,Im having a model project containing a VO(parameters VO).This VO is configured to have Read-only access through SQL query and have only one transient attribute each.For the model projects containing the VO for pre merge checker compliance I had to create JUNIT Test projects containing new AMs for testing the parametersVO. While running the JUNIT tests I got an exception like
    “oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.ConfigException, msg=JBO-33001: Configuration file /oracle/apps/hcm/goals/core/dataMigration/publicEssModel/test/applicationModule/common/bc4j.xcfg is not found in the classpath.”.—even though this file is contained in both the src/classes folder of the project.
    When i try to run the TestAM I'm getting an exception like 'configuration tester.xcfg not found in the calsspath.
    While debugging this error, we found that we are able to successfully run the JUNIT tests if we make some changes in the adf-config.xml file of the Application. The change required is to comment out the mdsC:adf-mds-config tag in the xml file.
    After doing this change Im also able to run my AM without any exception.
    Is this a known issue?.
    Since modifying the adf-config.xml is not a recommended practice is there any workaround that we can get rid of this exception.
    Regards,
    Ajin.

    Just checked but could only find this thread Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6
    As it's also dealing with junit and 11.1.1.6.0 you might want to read it.
    Timo

  • Read and write Values from Configuration File in BizTalk

    There is a requirement where Biz talk orchestration read the value dynamically from Config Store.After some process updating the value in config store.
    I though to use SQL Server and create one table with single column.Biztalk will call the Storeproc to get the value and similary for update system will call another SP.
    Instead of using SQL Server DB is there option to implement this requirement like app.config,BTSsvcxxexe.config ,SSO Config store etc.
    If multi-users access the value from Config store and try to update ,how to handle lock mechanism.

    Hi BizQ,
    Refrain from using BTSConfig file or any custom config file if you have a requirement to update the data. Modifying a
    configuration file at runtime can cause some nasty, unexpected behavior inside your application if it's not managed properly.
    I would suggest you to use Custom DB or SSO Database in this case.
    Both have their Pros and Cons.
    SSO Database:
    You get out of the box encryption
    It is a central store which will service all BizTalk servers within your group
     SSO implements a caching mechanism internally for the data
    Custom DB:
    By storing the configuration in the database you don’t have to worry about consistency of data across servers like you would with a config file.
    Cache needs to be implemented by program to avoid delays in reading from physical file.
    In your case I recommend to go with SSO DB as in terms of storing custom configuration data in SSO for End Point/Application
    specific information and credentials and potentially configuration information which you also need to write and update at runtime from your code or via an administrator.
    You can use Richard Seroter's tool to store values as "Config Store" in SSO database and then write a .net helper
    utility to retrieve it using SSOConfigStore class. It has method GetConfigInfo and you need to pass application name with other parameters. It returns ConfigurationPropertyBag from where you can read property name and values.
    http://seroter.wordpress.com/2007/09/21/biztalk-sso-configuration-data-storage-tool/ 
     http://blogs.msdn.com/b/teekamg/archive/2009/08/19/sso-configuration-application-mmc-snap-in.aspx.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • How to enable the comment option in the pdf file

    Hi,
    How to enable the comment option in the pdf file using acrobat sdk[IAC, javascript],
    Give me idea on this to automate.
    If not leave it.
    Regards,
    jkrishnanvenkat

    jkrishnanvenkat,
    I can also do this from Acrobat Pro. Click Comments - Enable for Commentingand Analysis in Adobe Reader. This can not be done through the DSK or JavaScript.
    Gregory

  • App Module Tester - JBO-33001: Cannot find the configuration file

    I have a custom main function for my application module. Launching the tester is fine
    launchTester("a.b.c.user_mnt.datamodel", "user_mntServiceLocal" );but if I comment out that line and add custom code:
    String amDef = "a.b.c.user_mnt.datamodel";
    String config = "user_mntServiceLocal";
    ApplicationModule am = Configuration.createRootApplicationModule(amDef,config);I get the following error:
    Diagnostics: (BC4J Bootstrap) Routing diagnostics to standard output
    (use -Djbo.debugoutput=silent to remove)
    [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [01] CommonMessageBundle (language base) being initialized
    [02] Configuration.loadFromClassPath() failed
    [03] Stringmanager using default locale: 'en_US'
    [04] oracle.jbo.ConfigException: JBO-33001: Cannot find the configuration file
    /a/b/c/user_mnt/common/bc4j.xcfg in the classpathBut the bc4j.xcfg exists in
    /a/b/c/user_mnt/datamodel/common/bc4j.xcfgIs there a way to change where Jdev is looking for that file?
    Thank you,
    Brian

    Completely new workspace doesn't fix the problem.
    If I move the common folder to where jdev is looking it runs fine (I get a runtime error, but it runs none-the-less).
    Any help?
    Brian

  • BUG: JBO-33001: Cannot find the configuration file bc4j.xcfg

    Hi,
    I get the exception JBO-33001: Cannot find the configuration file com\trivadis\adf\demos\login\model\common\bc4j.xcfg in the classpath
    after I have edited the file outside of JDev9052. Why? Because I followed the instructions of the help document "Modifying the JClient Login Dialog for JDBC". To get the JCLoginDialog you have to remove some lines in the bc4j.xcfg file.
    I have deleted the classes directory, rebuild the complete workspace, but I still get the exception.
    Any comments?
    Thanks,
    Markus
    Complete stacktrace:
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file com\trivadis\adf\demos\login\model\common\bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:369)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-33000: Cannot find the configuration file registerConnectionsFromDocument
         at oracle.jbo.client.Configuration.registerConnectionsFromDocument(Configuration.java:1052)
         at oracle.jbo.client.Configuration.loadFromStream(Configuration.java:264)
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:352)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.jbo.client.Configuration.registerConnectionsFromDocument(Configuration.java:1026)
         at oracle.jbo.client.Configuration.loadFromStream(Configuration.java:264)
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:352)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)

    Repost.
    The original post date was Sep 05 2004, not Aug 17 2001. :-)

  • Attaching USB Drive - Can't read AP configuration file, kills internet

    Current network:
    Airport Extreme (Sim Dual-Band)
    Mac Pro (wired Ethernet)
    MacBook Pro (wired or WiFi N)
    MacBook (WiFi N)
    2 x iPhones (WiFi G)
    Airport Extreme in use for several months with no problems. All Macs can read/write it's configuration.
    I hooked up a 1TB My Book USB HD to the Airport Extreme via USB. All three Macs (Mac Pro, MacBook Pro, MacBook) could see and read/write to the new drive. The Airport Extreme appeared in Airport Utility on all three Macs. Wired, WiFi N + G internet continued to work great... however none of the Macs could read the configuration file of the Airport Extreme. If I unplugged the USB drive all the Macs could read and write to the configuration file.
    I plugged the USB drive back in and left it overnight. This morning, everything continued to work, with the exception that none of the computers could read the configuration of the AP.
    Around 10am today the Macs/iPhones could no longer connect to the internet. I disconnected the USB drive and now the internet works again.

    Hey David,
    I know you said you read a lot of posts already and none of the other solutions worked, but just in case, if you haven't already I would run through the steps in here:
    Apple Computers: Troubleshooting the slot-loading SuperDrive
    http://support.apple.com/kb/HT2801
    Welcome to Apple Support Communities!
    Have a good one,
    Delgadoh

  • Problems with opening Acrobat Pro 9 PDF files

    Hi. We use Acrobat Pro 9.0.0 to convert our product documentation Word files into PDFs. During the last weeks our customers report more and more problems with opening these files. We usually deliver those on a DVD with Acrobat Reader 5 or another older version. (Please don't ask me why we're still on these old versions!) Did anyone experience similar problems with Acrobat Pro 9 PDF files and older versions of the Acrobat Reader? Does Acrobat Pro 9.0.0 work smoothly with the newest Acrobat Reader 9.1 download?
    Please post your comments. Thx a lot - Kay

    I would recommend distributing higher version of Reader as version 5 is just too old but looks like you can't go there.
    Acrobat 9 PDFMaker and Adobe PDF printers by default create PDF 1.5 compaible files. PDF 1.5 compatible files can be opened only in Acrobat 6 and above. That's probably the reason why your customers can't see the contents.
    What you can do is to change your conversion settings to produce PDF 1.4 compatible files:
    - In Word, select Acrobat tab or Adobe PDF menu (depending on your version of Word), select Settings
    - Select "advanced settings" in the dialog that comes up
    - Choose compatibility as "Acrobat 5", PDF 1.4
    IF you print to Adobe PDF printer, you'll find a similar setting in the print dialog.

  • Xorg configuration file

    Is there anyone using an NVIDIA Geforce GTX 285M card? If so, could you please give me your xorg.conf file? I installed arch linux on my new laptop a week ago and for some reason haven't been able to get xorg to use the nvidia drivers. I am hoping that someone would have an xorg config file, for their GTX 285M card. I would be happy to try it out.. cos Im at my wits end trying to get it to work. All of last week, was just one big drag after another trying to find a solution. This is my last resort... I hate to think i might have to install crap vinduze..
    Thank you.
    PS: actually an xorg.conf file on a system with any of the newest nvidia cards might work I think.
    thaks

    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder75) Fri Mar 12 01:42:27 PST 2010
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    Option "NoLogo" "True"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    The only line I added was "Option "NoLogo" "True"".
    As you can see, my xorg is very bare and plain. Could that be the reason why Im not getting display? Are there supposed to be certain options that I have missed?
    And is DPMS necessary?
    Thats the xorg.conf file.
    What follows is the log file that you had asked for.
    X.Org X Server 1.7.6
    Release Date: 2010-03-17
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.33-ARCH i686
    Current Operating System: Linux TheRock 2.6.33-ARCH #1 SMP PREEMPT Thu May 13 12:06:25 CEST 2010 i686
    Kernel command line: root=/dev/sdb1 ro
    Build Date: 01 April 2010 05:35:33PM
    Current version of pixman: 0.18.2
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Sat May 29 09:28:36 2010
    (==) Using config file: "/etc/X11/xorg.conf"
    (==) ServerLayout "Layout0"
    (**) |-->Screen "Screen0" (0)
    (**) | |-->Monitor "Monitor0"
    (**) | |-->Device "Device0"
    (**) |-->Input Device "Keyboard0"
    (**) |-->Input Device "Mouse0"
    (==) Automatically adding devices
    (==) Automatically enabling devices
    (WW) The directory "/usr/share/fonts/Type1" does not exist.
    Entry deleted from font path.
    (==) FontPath set to:
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF
    (==) ModulePath set to "/usr/lib/xorg/modules"
    (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    (WW) Disabling Keyboard0
    (WW) Disabling Mouse0
    (II) Loader magic: 0x81e4c60
    (II) Module ABI versions:
    X.Org ANSI C Emulation: 0.4
    X.Org Video Driver: 6.0
    X.Org XInput driver : 7.0
    X.Org Server Extension : 2.0
    (--) using VT number 7
    (--) PCI:*(0:2:0:0) 10de:060f:1558:8687 nVidia Corporation rev 162, Mem @ 0xce000000/16777216, 0xd0000000/268435456, 0xcc000000/33554432, I/O @ 0x00002000/128
    (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    (II) LoadModule: "extmod"
    (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    (II) Module extmod: vendor="X.Org Foundation"
    compiled for 1.7.6, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension MIT-SCREEN-SAVER
    (II) Loading extension XFree86-VidModeExtension
    (II) Loading extension XFree86-DGA
    (II) Loading extension DPMS
    (II) Loading extension XVideo
    (II) Loading extension XVideo-MotionCompensation
    (II) Loading extension X-Resource
    (II) LoadModule: "dbe"
    (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    (II) Module dbe: vendor="X.Org Foundation"
    compiled for 1.7.6, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
    (II) Loading extension DOUBLE-BUFFER
    (II) LoadModule: "glx"
    (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    (**) Logitech Optical USB Mouse: Device: "/dev/input/event11"
    (II) Logitech Optical USB Mouse: Found 3 mouse buttons
    (II) Logitech Optical USB Mouse: Found scroll wheel(s)
    (II) Logitech Optical USB Mouse: Found relative axes
    (II) Logitech Optical USB Mouse: Found x and y relative axes
    (II) Logitech Optical USB Mouse: Configuring as mouse
    (**) Logitech Optical USB Mouse: YAxisMapping: buttons 4 and 5
    (**) Logitech Optical USB Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    (II) XINPUT: Adding extended input device "Logitech Optical USB Mouse" (type: MOUSE)
    (**) Logitech Optical USB Mouse: (accel) keeping acceleration scheme 1
    (**) Logitech Optical USB Mouse: (accel) acceleration profile 0
    (II) Logitech Optical USB Mouse: initialized for relative axes.
    (II) config/hal: Adding input device BisonCam, NB Pro
    (**) BisonCam, NB Pro: always reports core events
    (**) BisonCam, NB Pro: Device: "/dev/input/event10"
    (II) BisonCam, NB Pro: Found keys
    (II) BisonCam, NB Pro: Configuring as keyboard
    (II) XINPUT: Adding extended input device "BisonCam, NB Pro" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "us"
    (II) config/hal: Adding input device Sleep Button
    (**) Sleep Button: always reports core events
    (**) Sleep Button: Device: "/dev/input/event4"
    (II) Sleep Button: Found keys
    (II) Sleep Button: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "us"
    (II) config/hal: Adding input device Power Button
    (**) Power Button: always reports core events
    (**) Power Button: Device: "/dev/input/event3"
    (II) Power Button: Found keys
    (II) Power Button: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "us"
    (II) config/hal: Adding input device Video Bus
    (**) Video Bus: always reports core events
    (**) Video Bus: Device: "/dev/input/event7"
    (II) Video Bus: Found keys
    (II) Video Bus: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "us"
    (II) config/hal: Adding input device Power Button
    (**) Power Button: always reports core events
    (**) Power Button: Device: "/dev/input/event6"
    (II) Power Button: Found keys
    (II) Power Button: Configuring as keyboard
    (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    (**) Option "xkb_rules" "evdev"
    (**) Option "xkb_model" "evdev"
    (**) Option "xkb_layout" "us"
    There are a few warnings regarding ACPI and "AllowEmptyInput". Could that be the problem?
    Thank you very much.

  • Script/Configuration files organization

    Just for a curiosity matter, how do you organize your files?
    I use a formatting for my configuration files and scripts like this ( Takes too much time to comment like that ):
    #---[ Aliases ]---
    alias ls='ls --color=auto'
    #+++[ Aliases ]+++
    #---[ System settings ]---
    limit -s coredumpsize 0
    umask 0027
    #---[ ZSH Options ]---
    #---Directory---
    # AUTO_CD peform cd if a directory name is given
    # AUTO_PUSHD cd push the old directory onto the directory stack
    # CD_ABLE_VARS expand text (if not a command nor a directory in PWD) to ~/text
    # PUSH_IGNORE_DUPS prohibit duplicate directories in the directory stack
    # PUSHD_SILENT do not print directory stack after pushd popd
    # PUSHD_TO_HOME 'pushd' acts like 'pushd $HOME'
    setopt AUTO_CD AUTO_PUSHD CD_ABLE_VARS PUSHD_IGNORE_DUPS PUSHD_SILENT PUSHD_TO_HOME
    #+++Directory+++
    #---Completion---
    # ALWAYS_TO_END moves the cursor to the end of the command
    # AUTO_LIST automatcally list choices on ambiguity
    # AUTO_PARAM_SLASH
    # NO_LIST_BEEP no beeping
    setopt ALWAYS_TO_END AUTO_LIST NO_LIST_BEEP
    #+++Completion+++
    EDIT: Does anyone have vim macros to do that?
    Last edited by hack.augusto (2008-11-27 21:31:37)

    Did you mean something like this?
    Premacro:
    my section title*curser is here*
    Postmacro:
    #---my section title---
    *curser is here*
    #+++my section title+++
    If thats what you meant than this should do it..
    I#<Esc>yyp3a+<Esc>3A+<Esc>k3A-<Esc>03a-<Esc>o<Esc>
    You can map that to a key using the syntax below (in this case the key is ';')
    :map ; I#<Esc>yyp3a+<Esc>3A+<Esc>k3A-<Esc>03a-<Esc>o<Esc>
    After doing the above,  you just type the section title, hit esc, then hit ';' and you'll have your pre/post comments.
    If you take out the last <Esc> you'll be left in insert mode rather than command mode.
    EDIT: Vim folding might useful to you.. allowing you to collapse/expand sections. (I don't use it much.. so dunno how well it works..)
    Last edited by sabooky (2008-11-28 06:36:14)

  • Nano syntax highlighting: catch-all syntax for configuration files

    After years of using nano, I only recently learned that it supports syntax coloring... (Why would they turn that off by default? ) Well, I thought I'll make up for it by making extra good use of it from now on...
    Unfortunately it didn't ship a highlighting syntax for the the kind of files that I use nano the most for: system configuration files.
    So I wrote my own, and after tweaking a bit here and there whenever I encountered a config file for which the highlighting wasn't satisfactory at first, I think the result is now good enough (screenshots below) that it's worth sharing with my fellow Arch users:
    Code & Instructions:
    Here is the syntax definition:
    # config file highlighting
    syntax "conf" "(\.(conf|config|cfg|cnf|rc|lst|list|defs|ini|desktop|mime|types|preset|cache|seat|service|htaccess)$|(^|/)(\w*crontab|mirrorlist|group|hosts|passwd|rpc|netconfig|shadow|fstab|inittab|inputrc|protocols|sudoers)$|conf.d/|.config/)"
    # default text
    color magenta "^.*$"
    # special values
    icolor brightblue "(^|\s|=)(default|true|false|on|off|yes|no)(\s|$)"
    # keys
    icolor cyan "^\s*(set\s+)?[A-Z0-9_\/\.\%\@+-]+\s*([:]|\>)"
    # commands
    color blue "^\s*set\s+\<"
    # punctuation
    color blue "[.]"
    # numbers
    color red "(^|\s|[[/:|<>(){}=,]|\])[-+]?[0-9](\.?[0-9])*%?($|\>)"
    # keys
    icolor cyan "^\s*(\$if )?([A-Z0-9_\/\.\%\@+-]|\s)+="
    # punctuation
    color blue "/"
    color brightwhite "(\]|[()<>[{},;:=])"
    color brightwhite "(^|\[|\{|\:)\s*-(\s|$)"
    # section headings
    icolor brightyellow "^\s*(\[([A-Z0-9_\.-]|\s)+\])+\s*$"
    color brightcyan "^\s*((Sub)?Section\s*(=|\>)|End(Sub)?Section\s*$)"
    color brightcyan "^\s*\$(end)?if(\s|$)"
    # URLs
    icolor green "\b(([A-Z]+://|www[.])[A-Z0-9/:#?&$=_\.\-]+)(\b|$| )"
    # XML-like tags
    icolor brightcyan "</?\w+((\s*\w+\s*=)?\s*("[^"]*"|'[^']*'|!?[A-Z0-9_:/]))*(\s*/)?>"
    # strings
    color yellow "\"(\\.|[^"])*\"" "'(\\.|[^'])*'"
    # comments
    color white "#.*$"
    color blue "^\s*##.*$"
    color white "^;.*$"
    color white start="<!--" end="-->"
    To install, save the above above code snippet as a file called conf.nanorc in the folder /usr/share/nano/ (or /usr/local/share/nano/ or similar if you feel strongly about the /usr <--> /usr/local separation), and then add the following to the end of the file /etc/nanorc:
    ## Configuration files (catch-all syntax)
    include "/usr/share/nano/conf.nanorc"
    Hints:
    The colors I chose look good (imo) with the terminal background and color settings that I use, but might not look good, or even readable, with yours, so simply change the color names in the code snippet to whatever you prefer - valid color names are:
    If you use a console with white background, you'll have to change at least the white color I chose for comments and punctuation.
    The first code line in the snippet includes a regular expression that defines for which file names this syntax highlighting should be used. Whenever you encounter a config file that is not matched by this, but you would still like to open it with syntax highlighting, you can manually select this syntax with nano's -Y switch, like so:
    nano -Y conf myConfigFile
    Technical Note:
    It's implemented as a single catch-all syntax, since nano chooses which syntax to apply based on the filename, and in the case of config files usually not much can be learned about the content format from the file name extension (.conf can by anything from flat key/value tuples to XML, .ini can be the official INI format or something else, etc...).
    This means that some compromises have been made, so with this highlighting syntax probably no config file looks 100% as good as a highlighting syntax that would be specifically optimized for one kind of config format, but all in all the vast majority of config files should look pretty good.
    Screenshots:
    /etc/rc.conf,  /etc/hosts:
    /etc/pacman.conf,  /etc/group:
    xorg.conf,  some .desktop file:
    httpd.conf (Apache config),  php.ini:
    More screenshots:
    /etc/fonts/fonts.conf (uses XML)
    /etc/inittab
    /etc/fstab
    /etc/inputrc
    /etc/mime.types
    /etc/protocols
    /etc/xinetd.conf
    See Also:
    nano syntax highlighting: GNU makefiles
    Update [2012-01-28]: Made some more improvements to the syntax definition (see post)
    Last edited by sas (2012-02-01 15:26:43)

    doug piston wrote:I deal with alot of .mk files and would love to see it there.
    You mean GNU makefiles?
    I'm afraid they might be out of scope for this generic config-file syntax.
    Logically they're not system config files, and technically they're a pretty specialized and complex format (different "types" of rules, rules spanning multiple lines, rules containing arbitrary Bash code, etc.).
    This is how an .mk file currently looks with this highlighting syntax:
    $ nano -Y conf /usr/lib/httpd/build/rules.mk
    And apart from highlighting variables of the form $$abc or $(abc), I'm not sure how much can be improved here without breaking the highlighting for more conventional config files.
    It would probably be better to create a specialized highlighting syntax just for .mk files.
    EDIT: I sat down and did just that, here's the result: nano syntax highlighting: GNU makefiles, and here is how the above makefile snipped looks with it:
    Last edited by sas (2012-02-01 15:18:52)

  • HT1277 Mail has gone crazy. Header's and messages are mixed up. New Mac Book Pro. Migrated files from Time machine running snow leopard. Reinstall or new computer needed?

    Mail has gone crazy. Header's and messages are mixed up. New Mac Book Pro. Migrated files from Time machine running snow leopard. Reinstall or new computer needed?

    Ok; I'm not sure what you're doing.    36 hours is rather long.  Seems like a new migration.  Not what I intended.
    Here's what I intended: from the newly-migrated and apparently-corrupt environment, create a new user, not related to any existing user, nor any migration-created user, or any other user for that matter.  That is, use  > System Preferences > Users and Groups, authenticate yourself by clicking on the padlock, and then click the + and create a wholly new user.  Then log in under that user and establish the mail access.
    36 hours?  I'm wondering if there's an error or an exceedingly slow network here?  Or a really, really slow disk?  Or a sick backup?  (WiFi isn't the path I'd usually choose, either.)
    Failing the attempted second migration, I'd try a different tactic.  Does your existing (old) system work?   If so, I'd bypass the backup and connect an external (scratch) USB disk drive to the (old) sstem and then boot and use Disk Utility booted from the installer DVD disk or boot and use Disk Utility from the recovery partition or booted from a recovery partition created on some other external storage (details here vary by the OS X version and what hardware you have), and perform a full-disk backup of your original internal disk to (scratch) external storage.  (Make sure you get the source and target disks chosen correctly here; copying the wrong way — from the scratch disk to your existing disk — will clobber your data!)  In esssence, this will clone your existing boot disk.  Then dismount the (formerly-scratch) external disk, transfer it over to the new system, and use it as the source of the migration, by performing a fresh OS X installation on the new system.
    Target Disk Mode is also sometimes an option for accessing the disk for a migration, but that requires the right cable, and requires systems that have the same external connection; newer MacBook Pro systems use Thunderbolt for this, and older systems tend to use FireWire.  And I'm guessing you don't have compatible hardware.
    The details here can and do vary by your OS X versions and your particular Mac systems — if you'll identify the specific models and hardware, somebody might be able to better tailor the above (fairly generic) sequence to your particular configuration.

  • Configuration files: ️ /etc/hosts - Count: 44 mean

    I used etrecheck on my laptop because it is very slow and the result is below. what does it mean:
    Configuration files: ℹ️
      /etc/hosts - Count: 44

    EtreCheck version: 2.1.5 (108)
    Report generated 11 January 2015 23:23:35 GMT+3
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Mid 2012) (Verified)
      MacBook Pro - model: MacBookPro9,2
      1 2.5 GHz Intel Core i5 CPU: 2-core
      4 GB RAM Upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1600 MHz ok
      Bluetooth: Good - Handoff/Airdrop2 supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 4000
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: one day 21:23:36
    Disk Information: ℹ️
      APPLE HDD ST500LM012 disk0 : (500.11 GB)
      EFI (disk0s1) <not mounted> : 210 MB
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      Macintosh HD (disk1) / : 498.88 GB (252.55 GB free)
      Encrypted AES-XTS Unlocked
      Core Storage: disk0s2 499.25 GB Online
      MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Computer, Inc. IR Receiver
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. FaceTime HD Camera (Built-in)
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
      /etc/hosts - Count: 44
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Applications/Toast 11 Titanium/Spin Doctor.app
      [loaded] com.hzsystems.terminus.driver (4) [Support]
      /Applications/Toast 11 Titanium/Toast Titanium.app
      [not loaded] com.roxio.BluRaySupport (1.1.6) [Support]
      /Library/Application Support/VirtualBox
      [loaded] org.virtualbox.kext.VBoxDrv (4.3.16) [Support]
      [loaded] org.virtualbox.kext.VBoxNetAdp (4.3.16) [Support]
      [loaded] org.virtualbox.kext.VBoxNetFlt (4.3.16) [Support]
      [loaded] org.virtualbox.kext.VBoxUSB (4.3.16) [Support]
      /Users/[redacted]/Library/Services/ToastIt.service/Contents/MacOS
      [not loaded] com.roxio.TDIXController (2.0) [Support]
    Startup Items: ℹ️
      MobileBrServ: Path: /Library/StartupItems/MobileBrServ
      Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
      [not loaded] com.adobe.AAM.Updater-1.0.plist [Support]
      [loaded] com.adobe.CS5ServiceManager.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [invalid?] com.adobe.SwitchBoard.plist [Support]
      [loaded] com.macpaw.CleanMyMac2.Agent.plist [Support]
      [loaded] com.microsoft.office.licensing.helper.plist [Support]
      [not loaded] org.virtualbox.startup.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist [Support]
      [loaded] com.adobe.ARM.[...].plist [Support]
      [invalid?] com.google.GoogleContactSyncAgent.plist [Support]
      [loaded] com.google.keystone.agent.plist [Support]
      [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist [Support]
      [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist [Support]
      [running] com.macpaw.CleanMyMac2Helper.trashWatcher.plist [Support]
      [not loaded] org.virtualbox.vboxwebsrv.plist [Support]
    User Login Items: ℹ️
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
      Google Drive Application (/Applications/Google Drive.app)
      BitTorrent Sync UNKNOWN (missing value)
      AdobeResourceSynchronizer Application (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
      Android File Transfer Agent Application (/Users/[redacted]/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app)
      Dropbox Application (/Applications/Dropbox.app)
      AdobeResourceSynchronizer Application (/Applications/Adobe Acrobat XI Pro/Adobe Acrobat Pro.app/Contents/Support/AdobeResourceSynchronizer.app)
      EvernoteHelper Application (/Applications/Evernote.app/Contents/Library/LoginItems/EvernoteHelper.app)
    Internet Plug-ins: ℹ️
      Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 [Support]
      FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
      AdobeAAMDetect: Version: AdobeAAMDetect 1.0.0.0 - SDK 10.6 [Support]
      AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Support]
      AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Support]
      Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
      Default Browser: Version: 600 - SDK 10.10
      QuickTime Plugin: Version: 7.7.3
      SharePointBrowserPlugin: Version: 14.2.0 - SDK 10.6 [Support]
      Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Support]
      JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
    Safari Extensions: ℹ️
      MacCaptain [Installed]
    3rd Party Preference Panes: ℹ️
      Flash Player  [Support]
      Flip4Mac WMV  [Support]
      Growl  [Support]
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          8% Contacts
          7% WindowServer
          6% Safari
          4% CVMCompiler
          2% hidd
    Top Processes by Memory: ℹ️
      136 MB Safari
      99 MB Mail
      86 MB AdobeAcrobat
      77 MB mds_stores
      73 MB Finder
    Virtual Memory Information: ℹ️
      523 MB Free RAM
      2.03 GB Active RAM
      593 MB Inactive RAM
      833 MB Wired RAM
      14.81 GB Page-ins
      267 MB Page-outs
    Diagnostics Information: ℹ️
      Jan 11, 2015, 09:17:03 PM /Library/Logs/DiagnosticReports/DesktopServicesHelper_2015-01-11-211703_[redact ed].cpu_resource.diag [Details]
      Jan 10, 2015, 11:29:22 AM /Users/[redacted]/Library/Logs/DiagnosticReports/garcon_2015-01-10-112922_[reda cted].crash
      Jan 10, 2015, 02:00:53 AM Self test - passed

  • Configuration file management

    I want to automate around 1000 odd test cases using labview. I have a configuration file to set the hardware channels for my inputs.
    for e.g Input A = 1!CH1 
    What is the best way to manage configuration file.The information will be used by all the test cases.I am planning to have OOP design pattern.

    uttara wrote:
    I want to automate around 1000 odd test cases using labview. I have a configuration file to set the hardware channels for my inputs.
    for e.g Input A = 1!CH1 
    What is the best way to manage configuration file.The information will be used by all the test cases.I am planning to have OOP design pattern.
    Could you share your domain model with us so we can comment appropriately?
    Even some SSD's will help.
    Lacking that, I believe the "Information Expert" design pattern says the class that aggregates the I/O realted classes should now about the config so implementing an I/O class hierachy where the Parrent class has a "Get config from file" method, you could implement over-ride VI's such that they each know how to get their config based on what the aggregate desides is appropriate for each instance. In the interest of "Low Coupling" the more you can handle with the over-ride VI's the better.
    Trying to speak LVOOP so correct my if that is wrong.
    Ben
    PS For those interested in learning OOP/D, I recomend Craig Larman's book "Applying UML and Paterns" ! Maybe someday I will write a LVOOP adendum for that book... after I get the model railroad running on live steam.
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • How to register add-on of edited system form in sap b1 9.0?.

    Hi all, I have a problem in SAP b1 9.0. Actually I added one field of BPCode to Employee master data, so I want to register an add-on of that system form in SAP b1 9.0. When I create file of .ard as we watch it in video of  Bryan Gomez Creating and R

  • Weblogic server problem

    HI i am accessing ejb bean from java client. in that i am using local host for accessing ejb in intialcontext factory for jndi loop at that time it is giving following error javax.naming.CommunicationException [Root e xception is java.net.ConnectExce

  • Problems updating ipod with Microsoft Outlook

    It used to work just fine, but now says it needs a more current version of Outlook. I'm not in a position to buy the update right now. Are there special settings I can use to keep me using what I've got? Many thanks!

  • What does this mean? drive reported error: sense key = medium error, etc,

    What does this error message mean and what can I do about it? While trying to burn a CD, about 15 seconds after the burn started, I got this error message: The drive reported an error: Sense Key = MEDIUM ERROR Sense Code = 0x73, 0x03 What does this m

  • Logic Pro 8 with M-audio Axiom?

    Hi y'all, I'm about to buy an axiom (m-audio), but I was wondering if it's compatible with Logic Pro 8? thanks