Tag Type Detection

I am building some dynamic menus and I want do place them in
different positions based on what my parent tag is. I'm using
object.parentNode to get the parent tag of something I'm inserting.
I know that I can use the typeof function, but that only returns
"object" to me, doesn't it? And I know if Safari, when I alert()
the object it tells me what type of tag it is, but that's the only
browser that does this. Is there an easy way to find out what type
of tag (td, tr, table, ul, li, etc) my parentNode is, or am I stuck
testing to see if specific properties exist on the object? Thanks
in advance!

The tagName property should help you out.
var parentType = object.parentNode.tagName;
if(parentType=='table')
//do something
etc, etc.
"BeniRose" <[email protected]> wrote in
message
news:ekhvej$2vi$[email protected]..
>I am building some dynamic menus and I want do place them
in different
> positions based on what my parent tag is. I'm using
object.parentNode to
> get
> the parent tag of something I'm inserting. I know that I
can use the
> typeof
> function, but that only returns "object" to me, doesn't
it? And I know if
> Safari, when I alert() the object it tells me what type
of tag it is, but
> that's the only browser that does this. Is there an easy
way to find out
> what
> type of tag (td, tr, table, ul, li, etc) my parentNode
is, or am I stuck
> testing to see if specific properties exist on the
object? Thanks in
> advance!
>

Similar Messages

  • The swf tag spec for tag type 41 and 63?

    Hi.
    Where can I find the swf tag spec for tag type 41, 63?
    I made the tag type list by reading the SWF file format
    specification
    http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v9.pdf
    tag type:
    0: End
    1: ShowFrame
    2: DefineShape
    4: PlaceObject
    5: RemoveObject
    6: DefineBits
    7: DefineButton
    8: JPEGTables
    9: SetBackgroundColor
    10: DefineFont
    11: DefineText
    12: DoAction
    13: DefineFontInfo
    14: DefineSound
    15: StartSound
    17: DefineButtonSound
    18: SoundStreamHead
    19: SoundStreamBlock
    20: DefineBitsLossless
    21: DefineBitsJPEG2
    22: DefineShape2
    23: DefineButtonCxform
    24: Protect
    26: PlaceObject2
    28: RemoveObject2
    32: DefineShape3
    33: DefineText2
    34: DefineButton2
    35: DefineBitsJPEG3
    36: DefineBitsLossless2
    37: DefineEditText
    39: DefineSprite
    43: FrameLabel
    45: SoundStreamHead2
    46: DefineMorphShape
    48: DefineFont2
    56: ExportAssets
    57: ImportAssets
    58: EnableDebugger
    59: DoInitAction
    60: DefineVideoStream
    61: VideoFrame
    62: DefineFontInfo2
    64: EnableDebugger2
    65: ScriptLimits
    66: SetTabIndex
    69: FileAttributes
    70: PlaceObject3
    71: ImportAssets2
    73: DefineFontAlignZones
    74: CSMTextSettings
    75: DefineFont3
    76: SymbolClass
    77: Metadata
    78: DefineScaleGrid
    82: DoABC
    83: DefineShape4
    84: DefineMorphShape2
    86: DefineSceneAndFrameLabelData
    87: DefineBinaryData
    88: DefineFontName
    89: StartSound2
    And I found there are some unexplained tag types.
    Escpecially, I need the spec for tag type 41 and 63
    because those tag types exists in air files of my application
    which I built with the Flex Builder 3.
    Thanks in advance.

    I've found this: http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/swfutils/src/java/flash/ swf/TagValues.java

  • [AS CS2] Create a list of all items whose clipping type = detect edges

    I am creating myself a light preflight script for Indesign CS2 documents where a part of it creates a list of all the images that have had the clipping path "detect edges" applied. But I am struggling to work out how to address the clipping path settings. This is basically what I have tried:
    set BadClipping to the name of every link whose clipping type is detect edges
    display dialog "The following images have detect edges on: " & (BadClipping as string)
    Any help is greatly appreciated.

    On 8/7/08 10:43 AM, "Dylan" <[email protected]> wrote:<br /><br />> set BadClipping to the name of every link whose clipping type is detect edges<br /><br />'clipping type' isn't a property of links, so you're sunk there. You need to<br />go via graphics and the 'clipping path' property (the dictionary doesn't<br />list it for graphics for some odd reason, but all subclasses of graphic<br />support it so that's got to be a bug). 'clipping path' returns a reference<br />to the 'clipping path settings', one property of which is 'clipping type.<br /><br />So you need something like this:<br /><br />tell application "Adobe InDesign CS3"<br />    tell document 1<br />        try<br />            set BadClipping to every item of all graphics whose clipping<br />type of clipping path is detect edges<br />        on error<br />            -- none found<br />        end try<br />    end tell<br />end tell<br /><br />-- <br />Shane Stanley <[email protected]>

  • WebLogic 10: Custom Tag type conversion issue

    I have a tag file wherein I define an attribute to be of type "mypackage.SuperClass". At runtime this tag gets passed an instance of "mypackage.SubClass" where SubClass is a sub-class of SuperClass.
              Now this should and does work fine in WebLogic 9.2 but in 10 it gives this error:
              Cannot convert <toString output of SubClass> of type class mypackage.SubClass to class mypackage.SubClass                    I appreciate any help to resolve this issue.
              Thanks,
              Keyur

    This table has about 2 million rows.There is a date field in the table which comes as a 'nvarchar' in sql .When i try to convert it to a 'datetime' , i get an error as operation timed out..
    Refer below example.
    declare @x datetime
    set @x = '1/01/2006 12:00:00 a.m.'
    -------BELOW ERROR WILL BE DISPLAYED
    Msg 241, Level 16, State 1, Line 3
    Conversion failed when converting date and/or time from character string.
    Rather the format of datetime should be,
    set @x = '1/01/2006 12:00:00 AM'
    WORKAROUND,
    declare @x datetime
    set @x = REPLACE('1/01/2006 12:00:00 a.m.','.','')
    Regards, RSingh

  • JAXB looking for tag type rather than tag name?

    Hi everyone.
    I'm trying to use JAXB to load an xml file, [http://www.unimod.org/xml/unimod.xml|http://www.unimod.org/xml/unimod.xml] . The schema is at [http://www.unimod.org/xmlns/schema/unimod_2/unimod_2.xsd|http://www.unimod.org/xmlns/schema/unimod_2/unimod_2.xsd] . I generate my classes using xjc with no problems. My unmarshalling code is simple enough:
    try {
        JAXBContext ctx = JAXBContext.newInstance(new Class[] {UnimodT.class});
        Unmarshaller um = ctx.createUnmarshaller();
        return (UnimodT) um.unmarshal(is);
    } catch (JAXBException ex) {
    }At first I got an exception saying that unimod (the top-level tag) is unexpected and that the expected element is (none). I solved this by adding the @XmlRootElement tag into my UnimodT class. Now I am getting a javax.xml.bind.UnmarshalException :
    "unexpected element (uri:"http://www.unimod.org/xmlns/schema/unimod_2", local:"unimod"). Expected elements are <{http://www.unimod.org/xmlns/schema/unimod_2}unimodT>"
    I am guessing this means that it is looking for a <unimodT> tag while the actual tag name is <unimod>.
    This is how the xml file starts:
    <umod:unimod xsi:schemaLocation="http://www.unimod.org/xmlns/schema/unimod_2 http://www.unimod.org/xmlns/schema/unimod_2/unimod_2.xsd" majorVersion="2" minorVersion="0">
        <umod:elements>
              ....and here is the fragment from the xml schema defining the root element:
         <xs:element name="unimod" type="umod:unimod_t">Other guesses I am having are:
    1) Maybe I should do something with the namespace, "umod"?
    2) The underscore in the type name is confusing xjc?
    Please help if you can. I am guessing it is something simple but I have no idea what.

    I seem to have solved my problem by adding the namespace and name of the tag on the XmlRootElement annotation:
    @XmlRootElement(name="unimod",namespace="http://www.unimod.org/xmlns/schema/unimod_2")however I still don't understand
    1) why it's not enough to specify the name of the tag in the @XmlType annotation
    2) why the @XmlRootElement tag was not specified automatically
    I guess I should just be happy that it works now.

  • Automatic type detection when creating document from InputStream in Java

    Hello all,
    I'm trying to write a batch load program in Java, that connects to an Informix database, reads from a large document table the equivalent of BLOB fields (in Informix, a TEXT field) to a Java InputStream, and then, creates a document in iFS from this stream.
    Almost everything works, but since I have no indication of what document type the stream is, I have no clue of what name should the newly created document in iFS have.
    Knowing that the original documents can only be Word docs or TIFF images, is there any way for iFS to autodetect the document type, so it can be created with the right extension (in my case, .doc or .tif)? I'm thinking about some API class that peeks inside the stream and do some kind of autodetection based on the doc header or something, but I really don't know if it exists.
    Any help will be greatly appreciated. Thanks!
    Luis Derani ([email protected])
    DBA - ALESP
    Brazil

    Hi Luis, (funny, first time I ever see a 'Luis' like me in a Forum, with 's' and all),
    I have a column indicating the type in the original database, but of about 220000 documents, 40000 have a null in this field (talk about strong constraint enforcement - the field does not have any constraint at all!).
    I made a size checking and found that the tif images have around 100-150Kb, and most of the docs are much smaller, so I´ll make a guess and create the docs based on size. Once they are created as documents in iFS, I think it will be easier to detect and correct the type using some windows-based tool.
    Thanks for your reply!
    Luis Derani ([email protected])
    DBA - ALESP
    Brazil

  • NAT type detection from a HTTP request

    Hello there
    I got two JAVA class : httpServer and httpClient. Running in two different machines. Server is listening to a HTTP port in one machine and on the other hand client is sending its machine IP from other PC to the server. But the client is behind a NAT. Now I can detect in my httpServer class that it is behind a NAT. I check the requesting IP and the IP send inside the packet payload. If they are different, I decide there is a NAT in between. But how can I know from such HTTP request-response what kind of NAT I am behind? This is important to know because with symmetric NAT
    (http://en.wikipedia.org/wiki/Network_address_translation) , where the NAT binding also include the outgoing address as well, my application is having problem.
    I have solution like STUN/TURN server implementation. But I would like to know the type of NAT my client is behind without any extra deployment such as STUN or TURN server.
    Any suggestion to detect type of NAT without any extra deployment and merely from HTTP request-response JAVA APIs?
    Mohammed Jubaer Arif.

    Thanks
    It seems you are asking me to configure the NAT, may be with some programming. Or may be I should run the server class on the NAT machine.
    But my client and server classes will be all over the world. Thus I think it is not a practical solution to ask the NATs to assist me. The intelligence should be in my client and server messaging.
    So I was wondering, is there any way out for me to get the NAT type with JAVA programming, in the server side once I get a request from the client side. But without any extra deployment.
    But as you said �There's not much of NAT types.� :(
    Mohammed Jubaer Arif

  • NFC tags types and where to buy...

    Hi,
    I've a lumia 620. Is there any specific type of NFC tag that i need to buy. How do i check that a tag on sale (online) is compatible with my phone.
    Also where can i buy NFC tags in INDIA.

    I would try http://www.amazon.co.uk/
    Mihalis.

  • Data type detection

    Hello
    in my program i want to place a check if the comming data is int8,int16 or int32 based on that i have a case structure which will further select what to do if data is int8 then do this if int16 then do this etc.what is the suggestion regarding finding the data type means if it is  int8,int16 or int32 etc
    regards

    You can also use the "GetTypeInfo" VI found in the vi.lib\Utility\VariantDataType folder:
    I would agree with tst, though, that the polymorphic VI is probably the best option.
    Message Edited by smercurio_fc on 05-12-2010 09:09 AM
    Attachments:
    Example_VI.png ‏5 KB

  • String Tag Types + History Mode - xMII 12.0.1

    Hi all,
    I'm really newbie in Tags but i'm with the following problem:
    I'm trying to access value from a specified data range in a Tag that returns just string to me,   but I can't use the HistoryEvent Mode like I was doing for Tag Queries that return me number, I would like to know how to retrieve "non-current" string data from a Tag Query.
    Thanks in advance.
    Pedro Sena
    www.neoris.com

    Sam, is this that you are looking for? :
    Connector InSQL
    ConnectorID  
    ConnectorType TAG
    DatePrefix '
    DateSuffix '
    DaysRetention 7
    Description ---
    Enabled T
    InternalDateFormat MM-dd-yyyy HH:mm:ss
    JDBCDriver com.inet.tds.TdsDriver
    MaxRetryCount 5
    Name Alicorp_InSQL
    PoolMax 100
    PoolSize 1
    RetryInterval 60000
    ServerPackage com.sap.xmii.Illuminator.connectors.InSQL
    ServerURL jdbc:inetdae:aliargsql1:1433?database=Runtime&sql7=true
    Timeout 15
    UseCount 256
    UseOLEDB true
    UserName wwAdmin
    ValidationQuery SELECT GETDATE()
    WaitTime 30
    Tnx

  • Getting characters in a particular xml tag type during Sax parsing.

    How do I get the text within a certain XML tag using the parser. I can use the parser which will get me all the text in all the tags, but how do I get the ones I need only.
    For example:
    <channel id="south-east.bbc1.bbc.co.uk">
        <display-name lang="en">BBC1</display-name>
        <display-name>1</display-name>
      </channel>
      <programme start="20040217233500" stop="20040218000500 +0000" channel="south-east.bbc1.bbc.co.uk">
        <title lang="en">Film 2004 with Jonathan Ross</title>
      </programme>how do I get the text 'Film 2004 with Jonathan Ross' without getting the others?

    Well, the SAX parser just gives you the start/end tag
    information to a handler, right? So if you just use
    the SAX parser to get one item, then you could do it
    by running thru the entire XML file to get that item
    then get another item. Clearly this isn't the best
    way to do it.... The handler should put the data for
    the whole document into some data structure, or use
    DocumentBuilder to get a Document object. I see. Yes, that is not the way to use SAX. It's kind of an inside out way of doing things. If you using SAX you should know everything that you want before parsing and grab all of them in one fell swoop.
    If you want to get an in memory representation, the JDOM package is a whole lot eaiser to use than DOM.

  • File Type Detection

    I have a application program which allows user to open text files. However, if a user rename a .xls file to a .txt file, my program will still open it and write to it, thus corrupting the file.
    Other than checking the file extension, how can I determine a file is a text file or not?

    That is a good idea! Do you mean I check each bytes to
    see if it is between \u0021 and \u007E? or between
    \u0000 and \u007F? Thanks a lot!Use an array of bytes and convert them to a String then step through each
    Char in the string using
    boolean aboolean = aChar.isLetterOrDigit()
    and
    boolean aBoolean = aChar.isWhitspace()
    If you never get false you have text.

  • [SOLVED]mpd does not detect the music directory

    I recently installed mpd with the gmpc gui, set my "music_directory" in /etc/mpd.conf to the location of all of my music (which contains lots of other folders and subfolders), but there's no listing of the audio files in the database in gmpc.
    Here's the /etc/mpd.conf if that helps:
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/var/lib/mpd/music"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/var/lib/mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "mpd"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "nogroup"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # music_directory are changed.
    #auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a recorder output:
    #audio_output {
    # type "recorder"
    # name "My recorder"
    # encoder "vorbis" # optional, vorbis or lame
    # path "/var/lib/mpd/recorder/mpd.ogg"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    audio_output {
    type "pulse"
    name "My Pulse Output"
    server "remote_server" # optional
    sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    Last edited by vlad951 (2011-05-07 09:36:11)

    vlad951 wrote:
    Thanks, I successfully launched mpd as a user and it detected all of my music. However, if I launch mpd with the mpd.conf that I created in my home directory, it launches, but outputs the following:
    [vladislav@vladislav .mpd]$ mpd ~/.mpd/mpd.conf
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    Is this normal?
    *sigh* i answer this for the 3rd time in a row... this is no error it just says that binding to your ipv6 interface happened before the binding to ipv4.
    If you want to use your ipv4 interface hardcode it in mpd.conf
    bind_to_address "127.0.0.1"
    you can also have several binds:
    bind_to_address "127.0.0.1"
    bind_to_address "192.168.1.13"
    to make it listen on localhost and the external IP of your network card.
    If your music is on the same machine as your mpd i recommend to use a unix socket in addition.
    bind_to_address "/path/to/some/file/that/does/not/exist/yet"
    and make your client connect to that file instead of the IP. Speeds things up a log e.g. in ncmpcpp
    and btw: you can save your mpd.conf file as ~/.mpdconf and mpd will automatically use it.
    Last edited by Rasi (2011-05-07 08:41:30)

  • PRI Outage Detection

    Hello,
    We have a converged circuit setup with our ISP. We are using SIP trunking, but they are handing off the voice to us as a PRI. We were doing some HA testing and noticed that CUCM was still sending outbound calls to the H323 Gateway where we pulled the circuit. This was not pulled at the PRI level but upstream at the Provider WAN circuit with the thought that any outage would be at the level. I believe the issue is the PRI interface was still in an Up\Up status so as far as CUCM was concerned this was still a valid gateway for outbound calls.
    My question is is there any way for me to detect the upstream outage and shut down the voice port(s) on the affected gateway? I have uploaded a diagram for a more clear picture of the setup.
    Thanks,
    Art. 

    Alex,
    I tried with no luck. I think the issue is because the voice interfaces are staying up when there is an upstream outage and so are the dial peers. I believe the signaling lives in the SBC. If the outage is at the SBC level it would trigger the circuit down and the route groups would then take over?
    This is output from when the circuit was pulled at the WAN interface of the MIB.
    IRV-VOIP#sh voice call status
    CallID     CID  ccVdb      Port        Slot/DSP:Ch  Called #   Codec    MLPP Dial-peers
    0x126E5    1F61 0x4BBD5A94 0/0/1:23.1       0/1:1  *404******** None     2000/101
    1 active call found
    IRV-VOIP#
    IRV-VOIP#sh voice port sum
                                               IN       OUT
    PORT            CH   SIG-TYPE   ADMIN OPER STATUS   STATUS   EC
    =============== == ============ ===== ==== ======== ======== ==
    0/0/0:23        01  isdn-voice  up    dorm none     none     y 
    0/0/0:23        02  isdn-voice  up    dorm none     none     y 
    0/0/0:23        03  isdn-voice  up    dorm none     none     y 
    0/0/0:23        04  isdn-voice  up    dorm none     none     y 
    0/0/0:23        05  isdn-voice  up    dorm none     none     y 
    0/0/0:23        06  isdn-voice  up    dorm none     none     y 
    0/0/0:23        07  isdn-voice  up    dorm none     none     y 
    0/0/0:23        08  isdn-voice  up    dorm none     none     y 
    0/0/0:23        09  isdn-voice  up    dorm none     none     y 
    0/0/0:23        10  isdn-voice  up    dorm none     none     y 
    0/0/0:23        11  isdn-voice  up    dorm none     none     y 
    0/0/0:23        12  isdn-voice  up    dorm none     none     y 
    0/0/0:23        13  isdn-voice  up    dorm none     none     y 
    0/0/0:23        14  isdn-voice  up    dorm none     none     y 
    0/0/0:23        15  isdn-voice  up    dorm none     none     y 
    0/0/0:23        16  isdn-voice  up    dorm none     none     y 
    0/0/0:23        17  isdn-voice  up    dorm none     none     y 
    0/0/0:23        18  isdn-voice  up    dorm none     none     y 
    0/0/0:23        19  isdn-voice  up    dorm none     none     y 
    0/0/0:23        20  isdn-voice  up    dorm none     none     y 
    0/0/0:23        21  isdn-voice  up    dorm none     none     y 
    0/0/0:23        22  isdn-voice  up    dorm none     none     y 
    0/0/0:23        23  isdn-voice  up    dorm none     none     y 
    0/1/0:23        01  isdn-voice  up    dorm none     none     y 
    0/1/0:23        02  isdn-voice  up    dorm none     none     y 
    0/1/0:23        03  isdn-voice  up    dorm none     none     y 
    0/1/0:23        04  isdn-voice  up    dorm none     none     y 
    0/1/0:23        05  isdn-voice  up    dorm none     none     y 
    0/1/0:23        06  isdn-voice  up    dorm none     none     y 
    0/1/0:23        07  isdn-voice  up    dorm none     none     y 
    0/1/0:23        08  isdn-voice  up    dorm none     none     y 
    0/1/0:23        09  isdn-voice  up    dorm none     none     y 
    0/1/0:23        10  isdn-voice  up    dorm none     none     y 
    0/1/0:23        11  isdn-voice  up    dorm none     none     y 
    0/1/0:23        12  isdn-voice  up    dorm none     none     y 
    0/1/0:23        13  isdn-voice  up    dorm none     none     y 
    0/1/0:23        14  isdn-voice  up    dorm none     none     y 
    0/1/0:23        15  isdn-voice  up    dorm none     none     y 
    0/1/0:23        16  isdn-voice  up    dorm none     none     y 
    0/1/0:23        17  isdn-voice  up    dorm none     none     y 
    0/1/0:23        18  isdn-voice  up    dorm none     none     y 
    0/1/0:23        19  isdn-voice  up    dorm none     none     y 
    0/1/0:23        20  isdn-voice  up    dorm none     none     y 
    0/1/0:23        21  isdn-voice  up    dorm none     none     y 
    0/1/0:23        22  isdn-voice  up    dorm none     none     y 
    0/1/0:23        23  isdn-voice  up    dorm none     none     y 
    0/0/1:23        01  isdn-voice  up    up   none     none     y 
    0/0/1:23        02  isdn-voice  up    dorm none     none     y 
    0/0/1:23        03  isdn-voice  up    dorm none     none     y 
    0/0/1:23        04  isdn-voice  up    dorm none     none     y 
    0/0/1:23        05  isdn-voice  up    dorm none     none     y 
    0/0/1:23        06  isdn-voice  up    dorm none     none     y 
    0/0/1:23        07  isdn-voice  up    dorm none     none     y 
    0/0/1:23        08  isdn-voice  up    dorm none     none     y 
    0/0/1:23        09  isdn-voice  up    dorm none     none     y 
    0/0/1:23        10  isdn-voice  up    dorm none     none     y 
    0/0/1:23        11  isdn-voice  up    dorm none     none     y 
    0/0/1:23        12  isdn-voice  up    dorm none     none     y 
    0/0/1:23        13  isdn-voice  up    dorm none     none     y 
    0/0/1:23        14  isdn-voice  up    dorm none     none     y 
    0/0/1:23        15  isdn-voice  up    dorm none     none     y 
    0/0/1:23        16  isdn-voice  up    dorm none     none     y 
    0/0/1:23        17  isdn-voice  up    dorm none     none     y 
    0/0/1:23        18  isdn-voice  up    dorm none     none     y 
    0/0/1:23        19  isdn-voice  up    dorm none     none     y 
    0/0/1:23        20  isdn-voice  up    dorm none     none     y 
    0/0/1:23        21  isdn-voice  up    dorm none     none     y 
    IRV-VOIP#sh dial-peer voice sum
    dial-peer hunt 0
                 AD                                    PRE PASS                OUT 
    TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT    KEEPALIVE
    1      pots  up   up                                0                      down 
    100    pots  up   up             #[2-9]......       0                      up   trunkgroup Outbound
    101    pots  up   up             #1[2-9]..[2-9]..-  0                      up   trunkgroup Outbound
    102    pots  up   up             #011T              0                      up   trunkgroup Outbound
    103    pots  up   up             #1800.......       0                      up   trunkgroup Outbound
    104    pots  up   up             #1888.......       0                      up   trunkgroup Outbound
    105    pots  up   up             #1877.......       0                      up   trunkgroup Outbound
    106    pots  up   up             #1866.......       0                      up   trunkgroup Outbound
    107    pots  up   up             #[2-9]..[2-9]...-  0                      up   trunkgroup Outbound
    911    pots  up   up             911                0                      up   trunkgroup Outbound
    2000   voip  up   up             ....T              1  syst ipv4:10.22.0.203    
    2001   voip  up   up             ....T              2  syst ipv4:10.22.140.204  
    2002   voip  up   up             ....T              3  syst ipv4:10.22.21.23    
    IRV-VOIP#

  • How to detect Edit controls on web application in Firefox?

    I'm making a Coded UI Test with VS 2012 Update 4 for testing a web application.
    On one of the web pages are two buttons for generating new entries.
    These buttons are looking like that:
        <section class="well well-lg" id="sectionAddVorbe">
            <fieldset id="fieldsetAddVorbe" name="fieldsetAddVorbe">
                <legend translate="bewerbung.lebenslauf.Titel"></legend>
                <div class="form-group" id="fgAddVorbe">
                    <button type="button" id="addVorbe" name="addVorbe" class="btn btn-default" ng-click="vm.addVorbeschaeftigung()">
                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                        <span translate="global.EintragHinzufuegen" id="spanAddVorbe"></span>
                    </button>
                </div>
            </fieldset>
        </section>
        <section class="well well-lg" id="sectionAddSkills">
            <fieldset id="fieldsetAddSkills" name="fieldsetAddSkills">
                <legend translate="bewerbung.skills.Titel"></legend>
                <p translate="bewerbung.skills.Erklaerung"></p>
                <div class="form-group" id="fgAddSkill">
                    <button type="button" id="addSkill" name="addSkill" class="btn btn-default" ng-click="vm.addSkill()">
                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                        <span translate="global.EintragHinzufuegen" id="spanAddSkill"></span>
                    </button>
                </div>
            </fieldset>
        </section>
    Because there was a leak with IDs and names i added these, whereever it was necessary.
    Before the adding of the IDs and names Coded UI detected the buttons just by the text (defined by global.EintragHinzufuegen), so once one of the buttons was detected the other one couldn't be added as a seperate control to the UI-controllist of UIMap.test.
    Internet Explorer just needs the ID and name in the button-tag, to detect the two buttons as different controls - in that case as Pane controls.
    But when i make the same test with Firefox and click on the buttons while recording the test, the buttons are still detected by the text (global.EintragHinzufuegen).
    So Coded UI registers a mouseclick on the Edit control (which contains the text) and in the controlslist of UIMap.test a hierarchy of Button and Edit is added.
    Which changes have to be done in the HTML-code to make Coded UI detect the controls correctly while recording the test with Firefox?
    Thanks in advance!

    Hi Patrick Pirzer,
    >>Which changes have to be done in the HTML-code to make Coded UI detect the controls correctly while recording the test with Firefox?
    Just to make this issue clearly, did you use this extension tool "Selenium components for Coded UI Cross Browser Testing"?
    To find the controls, the coded UI test use the unique properties as the search properties, so if there are controls which have the same properties, I suggest you not use them as the search properties. Or you could custom a coded UI test with code or
    use unique properties as the search properties.
    http://blogs.msdn.com/b/mathew_aniyan/archive/2009/02/12/hand-coding-a-coded-ui-test.aspx
    If I misunderstood this issue, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for