Compare service-types.db.pacnew, binary file

After today's update I have /usr/lib/avahi/service-types.db.pacnew. I use 'Meld' to usually, compare .pacnew with the original file. However I am unable to do so because 'Meld' says, "Could not read file... appears to be a binary file".
I don't have any knowledge of comparing binary files.. I don't know how to deal with it even if I use any other utility which might read binaries.
I need to know, whether it will be safe to delete either file, /usr/lib/avahi/service-types.db or /usr/lib/avahi/service-types.db.pacnew?
I am sure I never edited the said file, unless some application did so.
The Forum guidance is requested.
Thanks.
Last edited by fantab (2013-03-03 11:28:50)

I got the reply to my query with the package maintainer:
Gaetan Bisson wrote:
Feel free to inspect the svnlog:
        https://projects.archlinux.org/svntogit … ages/avahi
Notice that this changed to the backup array was introduced to
"implement FS#33930", and check the corresponding bug report:
        https://bugs.archlinux.org/task/33930
https://projects.archlinux.org/svntogit … 842f2d4496
If someone can translate the gist of the links in simple English I will be grateful.
Thanks...

Similar Messages

  • [SOLVED] Avahi + service-types.db.pacnew

    Hi there,
    just a quick question: With the latest updates came avahi-0.6.31-6 to my system (Arch_x64). Pacman told me:
    Warning: /usr/lib/avahi/service-types.db installed as /usr/lib/avahi/service-types.db.pacnew
    Does anybody know, if I have to check something before using the .pacnew? I tried to have a look with meld, but that doesn't work - obviously - because the files in question are binary files
    Last edited by swordfish (2013-03-03 11:25:27)

    From looking at `$ pacman -Qii avahi`, I gather that /usr/lib/avahi/service-types.db file is marked for backup. Searching the 'net, I found that this (binary) file can be regenerated when you make any local changes to /usr/share/avahi/service-types and reinstall Avahi.
    Looking at the changes to the avahi package, I found this change adding it to the list of backup files, apparently related to this bug report: FS#33930 - [avahi] missing backups.
    So I guess that unless you have made any local changes, it's OK to replace the original with the .pacnew.
    As always, if you don't trust my judgement, ask the package maintainer or the upstream developers :-)
    Last edited by ackalker (2013-03-01 17:12:49)

  • How to compare the content of 2 binary file???

    Plz show me the way.
    Best regards
    Hoa

    - Create two input streams
    - Read a byte from both
      - If they're the same, continue
      - If they're not, return false
    - If there are no more bytes available in one of the two streams, return whether they're both completely read
    Kind regards,
      Levi

  • Binary file compare

    I'm sorry. I didn't want to have to post here, but I've been banging my head on this all week. Hopefully somebody here can shed some light on this for me.
    I'm trying to write an application that compares a series of binary files in a user-defined order. The user needs to be able to specify the type of change that has occured ( > < = !, and numerical searches) for a given byte. (I am also supporting WORD/DWORD, but it's the same principal) To clarify, imagine:
    Byte at given offset: (((fileA < fileB) = fileC) != fileD) ...
    Now, my original code worked, but it was extremely poor. It had two methods fullCompare() and partialCompare(), it read data directly from the DataInputStream, and used skipBytes() to pass over bytes that had been excluded from a previous search. I kept thinking "There has to be a better way to do this." So I made it as simple as possible! I created an inner class called BinaryFile. BinaryFile reads the data (using getUnsignedByte() getByte() getUnsignedShort() getShort() etc... depending on the user's option.
    I created two instances of this class... One I call 'result' and the other 'bin' the files are read in by the constructor and stored in an ArrayList<Integer> (later I cast my Shorts to int)
    Now, 'result' holds the first file opened, and bin holds each additional file, ex:
    BinaryFile result = new BinaryFile("C:\\test1.bin", BinaryFile.UNSIGNED_WORD);
    All of this works�. OK, so now I run my first compare:
    compare(new BinaryFile("C:\\test2.bin", BinaryFile.UNSIGNED_BYTE), GREATER_THAN);
    again, everything works like a champ.. now to actually compare the files, I do this:
    public void compare(BinaryFile bin, int compareType) {
    for (int count=0; count < results.values.size(); count++) {
    if (results.values.get(count) != null) {
    switch (compareType) {
    case GREATER_THAN:
    if (bin.values.get(count) > results.values.get(count))
    results.values.set(count, bin.values.get(count));
    else
    results.values.set(count, null);
    break;
                        ����������..
    Now, it works for the FIRST two files that I compare, but after that it's like it started setting null when it wasn't supposed to�. I know that nobody probably read this far, but somebody please help me, this is killing me.

    I posted that at some unruly hour of the morning, while tired and frustrated... I had a flight from Korea to Japan today and spent the entire trip reading J2SE 5 docs about collections and generics, etc... So I'm going to give this one more go-round before I ask for help. I hate being beaten by a machine, asking for help makes me feel like I lost!
    Thanks

  • How can I read a binary file stream with many data type, as with AcqKnowledge physio binary data file?

    I would like to read in and write physiological data files which were saved by BioPac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/ app156Fi
    leFormat/FileFormat.htm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/ app155macffmt/macff.htm).
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, I was a little unsure which LabView data types correspond to int, char , short, long, double, byte, RGB and Rect. And, since it is for PC I am also assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    Two samples *.acq binary files are attach to this post to the list. Demo.acq is for version 3.7-3.7.2, while SCR_EKGtest1b.acq was recorded and saved with AcqKnowledge 3.8.1, which version number is 41.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to i
    llustrate it.
    Many thanks in advance for your help.
    Donat-Pierre
    Attachments:
    Demo.acq ‏248 KB
    SCR_EKG_test1b.acq ‏97 KB

    The reading of double is also straight forward : just use a dble float wired to the type cast node, after inverting the string (indian conversion).
    See the attached example.
    The measure of skin thickness is based on OCT (optical coherent tomography = interferometry) : an optical fiber system send and received light emitted to/back from the skin at a few centimeter distance. A profile of skin structure is then computed from the optical signal.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Read_AK_time_info.vi.zip ‏9 KB

  • Writing binary files & trouble with no unsigned byte type

    I've got a fair amount of Java experience, enough to know what I'm doing most of the time but I do have a vast experience with C & C++ which helps my Java. I've stumbled across a problem when trying to write out files in binary.
    If I was to write out a binary file, I would always choose C/C++ to do this because simply because I'm at ease with the implementation.
    I've now written a Java program which needs to output a file in binary and I'm having real issues doing the most simple things because of no unsigned support.
    I want to write out elements byte-by-byte and make use of the 8-bits provided in the byte type in Java.
    Let's assume I've done my processing and I end up with an int. I know that this int is 0-255 in value. I now want to pack it into a byte and write it to my file. How do I go about assigning the byte without Java 'converting' it to a signed byte? I simply want to copy the lower 8-bits of the int and duplicate them into the byte variable - no conversion.
    In C you would do something like this:
    char mySignedChar = *( (char*)&(unsigned char)myInt ) );
    What's the Java equivalent? Am I going about this the right way?

    Whether a byte is signed or unsigned only matters if one is doing arithmetic on it. If the int is 0-255 then you just cast to a byte using
    byte theByte = (byte)theIntValue;When reading back you just use
    int theByteAsAnInt = theByte & 0xff;

  • Compare binary file

    Hi,
    I am using LV 8.5.1. Would like to know, is there any method can compare 2 binary files? Same function as command prompt below:
    fc /b "file 1 path" "file 2 path"
    First do not consider use the system exec.vi.
    Appreciate your feedback.
    Thanks.
    Solved!
    Go to Solution.

    Doing it in LabVIEW is fraught with all sorts of issues that the fc command has probably already addressed.  But if you want to do it, I would recommend the following:
    Read your file in 65,000 byte chunks to optimize disk I/O.
    Compare each chunk.  Your compare operation is up to you.  Note that depending on how you want to compare, you may want to do this byte by byte or chunk by chunk to find the locations of differences, but also find locations which equal, even if they have different offsets (e.g. a difference is a single byte inserted into the file).
    Output your results.  The output is also up to you.  It could be a file, a front panel indicator, the operating system error buffer, etc.
    All in all, this is a lot of work vs. just using the fc command.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Reading a binary file using the type cast function is not working

    Hello
    I am trying to read a binary file.  Using the Read from binary file and type cast functions I can actually get the information from the file.
    I set an indicator in the “Normal” option in Properties. I can read the header and footer but not the body of the file; For the body of the file all I can see is characters of the type
    “C¾ Ü Qþ  X@ “. One of the other options, Password, seems to provide an output of just the characters that were originally written, but then again, I can not read the characters because it is only asterisks and I can not copy them onto a word processor either.
    I tried setting the indicator in Hexadecimal mode, then creating a local variable that acts as a control and use the type cast function again to see if  could convert the Hexadecimal string to readable ASCII characters; unfortunately, this did not work either.
    I don’t know what else I should try or if there is something that I may not be doing right and for that reason I am not getting the desired results. I hope someone has an idea about this issue.
    Regards,
    Roberto

    Thank you for your reply,
    Well, actually I don’t have any information about this file. I will try to obtain information about it though.
    This is a file that contains velocity information; there are 65 channels that form a velocity profile in a pipe. Also, there are 4096 velocity profiles. I don’t know what is the format of these values.
    The software that creates the file provides a text file. Using this text file the velocity information can be processed and then plotted.
    I want to avoid all these intermediate steps and read, process and plot everything using only LabView. BTW, I am using LabView 8.2
    Roberto

  • How can I read a binary file stream with many data type, as with AcqKnowled​ge physio binary data file?

    I would like to read in and write physiological data which was saved by Biopac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/app156FileFormat/FileFo​rmat.h
    tm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/app155macffmt/macff.ht​m) .
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, because it is for PC I am assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to illustrate it.
    Many thanks in advance for your help.
    Donat-Pierre

    One more step...
    short are U16 integer
    double are double precision float
    bool seem to be 2 bytes (= U16)
    char are string (variable length)
    rgb are U16 integer, with high order byte = 0
    rect should be 4 x U16 (top, left, bottom, right)
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Binary File Type in Portal 3.0 Form

    Has anyone successfully created a form in 3.0.7 for inserting BLOBs as part of a table record?
    I recently observed that the form wizard now includes a binary file field option. WebDB did not support this.
    Does this feature allow the blob object to be saved into any table w/o separate DAD management?
    Thanks,
    James

    Surprise Surprise !!!!!!!
    I made a copy of the "Oracle Portal Home Page". In that copy, when I switch language to french in any sub page ("Build" page included), It works perfectly !!!!
    Can I have explanations of what occued exactly ?
    Thanks a lot.

  • Binary file data plugin : navigating through different data types

    Hi
    I am currently trying to load a binary file into DIAdem with the following structure:
    block 1
    1x 8-bit ascii
    12x double
    block 2
    1280x int16
    block 3
    1280x int16
    block 4
    12x double
    block 5
    1280x int16
    block 6
    1280x int16
    block 7
    12x double
    block 8
    1280x int16
    block 9
    1280x int16
    I managed to read the first string value, but I was unsuccessful in getting any further.
    Could anyone please give me a lead on how to proceed?
    /Phex

    Sorry for revoking this thread, but I need some further advice on two issues:
    1. All values that are set to -32768 in the data mean actually NaN. Right now I am converting all those values to NaN in a post-processing script using the CTNV function. Is there a way to do this directly in the DataPlugin? My idea was to apply the NoValueSet command but the bInterfaceLocked variable returned TRUE, so not accessible. No problem if there is no other way, I can live with the CTNV function.
    2. When I tested the DataPlugin with larger files (up to 1 GB) I pretty quickly ran into the maximum channel number limitation of DIAdem (available 65k, needed 400k). The only thing I could think of right now is to concatenate all data to a few channels and then extract the relevant blocks needed for the analysis during post processing. But that does not seem very efficient and will surely bring up other problems. Is there a way to work with the DataPlugin interactively, i.e. tell the plugin to read X number of blocks at file position Y? Or is it possible to save loaded data sequentially to different files within the plugin? Increase the number of available channels? Any comments or other ideas are very much welcome.
    /Phex 

  • Fulltext search of binary files outside of database in SQL 2012/Server 2012

    This may be more of a Windows Server 2012 question but I'm not sure.
    I have a system that holds large amounts of binary files (pdf, doc, etc.).  The files themselves are held outside the database in a folder and a SQL table holds the metadata.  I used the Indexing Service available through Windows Server 2008 to
    create a catalog called "EFCATALOG" to index the contents of the external folder, then created a linked server called MYIDXS which allowed me to query that external indexing catalog from within SQL with a query like this:
    EXEC sp_addlinkedserver MYIDXS, 'Internal App', 'MSIDXS', 'EFCATALOG'
    SELECT * FROM MYDOCS
    LEFT JOIN OPENQUERY(MYIDXS,'SELECT FILENAME FROM SCOPE() WHERE CONTAINS (''test'')') AS MYTBL
    ON MYDOC_FILE_NAME = MYTBL.[FILENAME]
    With Windows Server 2012, I'm missing the functionality to create the indexing service catalog.  I've added the Windows Search Service and see how I can configure folders for searching, but there is no naming functionality for this and I don't see how
    I can get the above query/structure to work in Windows Server 2012/SQL Server 2012 environment.  In fact, there isn't much at all online regarding the search service or the relationship back to the older versions in 2008 and before.
    Is there any way to continue this structure in 2012?  I would like to avoid recoding my application to work with a different structure.  I'm afraid that changing everything to work with the FILETABLE/FILESTREAM functionality added in SQL 2012
    will be necessary which is fine long term, but not convenient right now.
    Thanks in advance for any suggestions/help.

    Thank you Fanny Liu, based on your link the syntax has changed dramatically. I need to query SYSTEMINDEX now and the structure is very different.    It still seems that this new syntax requires creating a linked server of a different type. 
    I've tried:
    EXEC sp_addlinkedserver @server = 'TEST', @provider = 'Search.CollatorDSO.1', @datasrc = 'SYSTEMINDEX', @srvproduct = '', @provstr='Application=Windows'
    SELECT FileName FROM OPENQUERY("TEST", 'SELECT Filename FROM SYSTEMINDEX')
    Msg 7302, Level 16, State 1, Line 1
    Cannot create an instance of OLE DB provider "Search.CollatorDSO.1" for linked server "TEST".
    I've also tried using just "Search.CollatorDSO"as the provider since that is the provider name listed in management studio but basically the same error comes back.
    So I have 2 questions:
    1) Is it possible for my original process to work in Windows Server 2012 in any way (meaning that the OPENQUERY example I provided can remain relatively unchanged)?
    2) If change is necessary using this new SYSTEMINDEX and linked server combination, why is my linked server definition failing?  I'm using SQL Server 2012....Microsoft SQL Server 2012 - 11.0.2100.60 (X64)
     Feb 10 2012 19:39:15
     Copyright (c) Microsoft Corporation
     Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    Thank you.

  • Transfer a binary file stored in a table field in oracle to another table different schema in oracle

    I would like to know if it is possible to use ssis to transfer a binary file of a datatype of long raw in a field in one table in oracle to a new table in a different schema of a datatype blob in oracle? The binary file is a Crystal reports executable
    which is used in a application that I support. I are trying to consolidate data fields over many schemas into one main schema to simplify the support issues.

    Hi r_peterser,
    SQL Server Integration Services maps DT_IMAGE data type to LONG RAW and BLOB in Oracle. So, you can directly use an OLE DB Source or Oracle Source adapter to extract the LONG RAW column from the Oracle database, and then load the data to the BLOB column
    of the Oracle table through an OLE DB Destination or Oracle Destination adapter.
    Reference:
    http://technet.microsoft.com/en-us/library/ms141036.aspx 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • How can I read a binary file?

    In my AIR application, I'm trying to read a binary file and then post it via an HTTPService to a remote ColdFusion component that accepts a "binary" type argument.  The result of the post is always:
    The FILEOBJ argument passed to the addFile function is not of type binary.
    Here is how I'm reading the file in Flex, where fileObj is of type File:
    var fs : FileStream = new FileStream();
    var bytes : ByteArray = new ByteArray();
    fs.open(fileObj, FileMode.READ);
    fs.readBytes(bytes, 0, fs.bytesAvailable);
    fs.close();
    I then pass "bytes" as the parameter to my HTTPService's send call, like so:
    var params : Object = {method : "addFile", fileObject : bytes};
    service.send(params);
    When I debug, bytes contains the correct file size.  Is it not in binary form?  I've tried several other suggestions, but with the same result, so would appreciate any help.
    Thanks!

    One more step...
    short are U16 integer
    double are double precision float
    bool seem to be 2 bytes (= U16)
    char are string (variable length)
    rgb are U16 integer, with high order byte = 0
    rect should be 4 x U16 (top, left, bottom, right)
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Binary file with File adapter

    Hi gurus,
    I am getting binary file as base64binary (not a text/xml file) in a request XML tag. I need to write this file to a file directory with the file adapter after retrieving it from the request message by a message/java mapping and use another field in XML as the file name.
    I followed the blog `how to send binary data through PI` but in that case, the request message is also the same. Mine requires a mapping to be executed and in this case I cannot use dummy names for message types/interfaces as Enterprise Repository development is required.
    How can I achieve this?
    Thanks
    Gokhan

    Just solved the problem actually
    As I was trying to write a binary file directly with the receiver file adapter, I wasn't sure how to define a data type / message type for it. I developed a java mapping that decodes the base64 to binary data and writes it to the output stream, and used a dummy message type / data type for the service interface as the target in Operation Mapping
    And it worked!
    Regards,
    Gökhan

Maybe you are looking for