How to chnage number of bits in every packet of a byte array

Hi I have an array of byte array of 1 and 0s. I would like to make sure every pack of 1 or 0s contains 8 number
I can use this example to explain it better. Lets say I have this array
111111110000000111111100000000
As can be first pack of 0s and the second pack of 1s contain 7 bits. I would like to programaticaaly change it to 8 so the result should be
11111111000000001111111100000000 
As can be seen now evey pack of 1s or 0s contains 8 element . Could you please help me on this.A sample code would be great
Many thanks

Reshape array is your friend.Nevermind.  I just realized what you were going for.  Will need to rethink...
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
8x bits long.png ‏21 KB

Similar Messages

  • How to get number of rows and columns in a two dimensional array ?

    Hello,
    What would be the simplest way to get number of rows and columns in a two dimensional array represented as integers ?
    I'm looking for another solution as For...Each loop in case of large arrays.
    Regards,
    Petri

    Hi Petri,
    See a attached txt file for obtaining two arrays with upper and lower index values
    Regards
    Ray
    Regards
    Ray Farmer
    Attachments:
    Get2DArrayIndex.txt ‏2 KB

  • How to use the JE database with other data types than byte arrays?

    Hi! I searched the javadoc of Berkley DB JE, for a way to introduce entry (but I need also retrieve) data with other type than byte arrays, e.g. String, or anything else, as int may be, etc.
    Still, I didn't find any such way, because the main (only?!) method to entry data into an open database - according what I found in javadoc - is:
    "public OperationStatus put(Transaction txn, DatabaseEntry key, DatabaseEntry data) throws DatabaseException"
    and both this and the corresponding method for retrieves, are based on the same DatabaseEntry type, which allow only entry data on byte[] support.
    What if I need to use Strings or int, or even char? I must do a special conversion from these types, to byte[], to use the database?
    Thank you!

    On the doc page (this is also in the download package),
    http://download.oracle.com/docs/cd/E17277_02/html/index.html
    see:
    Getting Started Guide
    Java Collections Tutorial
    Direct Persistence Layer (DPL)
    All of these describe how to use data types other than byte arrays.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How Do I Load An Animated GIF Into PictureBox Control From Byte Array?

    I'm having a problem with loading an animated GIF int a picturebox control in a C# program after it has been converted to a base64 string, then converted to a byte array, then written to binary, then converted to a base64 string again, then converted to
    a byte array, then loaded into a memory stream and finally into a picturebox control.
    Here's the step-by-step code I've written:
    1. First I open an animated GIF from a file and load it directly into a picturebox control. It animates just fine.
    2. Next I convert the image in the picturebox control (pbTitlePageImage) to a base64 string as shown in the code below:
                    if (pbTitlePageImage.Image != null)
                        string Image2BConverted;
                        using (Bitmap bm = new Bitmap(pbTitlePageImage.Image))
                            using (MemoryStream ms = new MemoryStream())
                                bm.Save(ms, ImageFormat.Jpeg);
                                Image2BConverted = Convert.ToBase64String(ms.ToArray());
                                GameInfo.TitlePageImage = Image2BConverted;
                                ms.Close();
                                GameInfo.TitlePageImagePresent = true;
                                ProjectNeedsSaving = true;
    3. Then I write the base64 string to a binary file using FileStream and BinaryWriter.
    4. Next I get the image from the binary file using FileStream and BinaryReader and assign it to a string variable. It is now a base64 string again.
    5. Next I load the base64 string into a byte array, then I load it into StreamReader and finally into the picturebox control (pbGameImages) as shown in the code below:
    byte[] TitlePageImageBuffer = Convert.FromBase64String(GameInfo.TitlePageImage);
                            MemoryStream memTitlePageImageStream = new MemoryStream(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Write(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Position = 0;
                            pbGameImages.Image = Image.FromStream(memTitlePageImageStream, true);
                            memTitlePageImageStream.Close();
                            memTitlePageImageStream = null;
                            TitlePageImageBuffer = null;
    This step-by-step will work with all image file types except animated GIFs (standard GIFs work fine). It looks like it's just taking one frame from the animation and loading it into the picturebox. I need to be able to load the entire animation. Does any of
    the code above cause the animation to be lost? Any ideas?

    There is an ImageAnimator so you may not need to use byte array instead.
    ImageAnimator.Animate Method
    http://msdn.microsoft.com/en-us/library/system.drawing.imageanimator.animate(v=vs.110).aspx
    chanmm
    chanmm

  • How to get a string or byte array representation of an Image/BufferedImage?

    I have a java.awt.Image object that I want to transfer to a server application (.NET) through a http post request.
    To do that I would like to encode the Image to jpeg format and convert it to a string or byte array to be able to send it in a way that the receiver application (.NET) could handle. So, I've tried to do like this.
    private void send(Image image) {
        int width = image.getWidth(null);
        int height = image.getHeight(null);
        try {
            BufferedImage buffImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            ImageIcon imageIcon = new ImageIcon(image);
            ImageObserver observer = imageIcon.getImageObserver();
            buffImage.getGraphics().setColor(new Color(255, 255, 255));
            buffImage.getGraphics().fillRect(0, 0, width, height);
            buffImage.getGraphics().drawImage(imageIcon.getImage(), 0, 0, observer);
            ByteArrayOutputStream stream = new ByteArrayOutputStream();
            JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(stream);
            jpeg.encode(buffImage);
            URL url = new URL(/* my url... */);
            URLConnection connection = url.openConnection();
            String boundary = "--------" + Long.toHexString(System.currentTimeMillis());
            connection.setRequestProperty("method", "POST");
            connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);
            String output = "--" + boundary + "\r\n"
                          + "Content-Disposition: form-data; name=\"myImage\"; filename=\"myFilename.jpg\"\r\n"
                          + "Content-Type: image/jpeg\r\n"
                          + "Content-Transfer-Encoding: base64\r\n\r\n"
                          + new String(stream.toByteArray())
                          + "\r\n--" + boundary + "--\r\n";
            connection.setDoOutput(true);
            connection.getOutputStream().write(output.getBytes());
            connection.connect();
        } catch {
    }This code works, but the image I get when I save it from the receiver application is distorted. The width and height is correct, but the content and colors are really weird. I tried to set different image types (first line inside the try-block), and this gave me different distorsions, but no image type gave me the correct image.
    Maybe I should say that I can display the original Image object on screen correctly.
    I also realized that the Image object is an instance of BufferedImage, so I thought I could skip the first six lines inside the try-block, but that doesn't help. This way I don't have to set the image type in the constructor, but the result still is color distorted.
    Any ideas on how to get from an Image/BufferedImage to a string or byte array representation of the image in jpeg format?

    Here you go:
      private static void send(BufferedImage image) throws Exception
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        ImageIO.write(image, "jpeg", byteArrayOutputStream);
        byte[] imageByteArray = byteArrayOutputStream.toByteArray();
        URL url = new URL("http://<host>:<port>");
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();
        connection.setDoOutput(true);
        connection.setRequestMethod("POST");
        OutputStream outputStream = connection.getOutputStream();
        outputStream.write(imageByteArray, 0, imageByteArray.length);
        outputStream.close();
        connection.connect();
        // alternative to connect is to get & close the input stream
        // connection.getInputStream().close();
      }

  • How do i covert an image in J2ME into an byte array ?

    Can anyone help to show me the way to convert an image into a byte array ?
    Thanks early reply appreciated.

    Hi! I�m developing an application to be installed in two devices. My problem is that i want to send an image: I can receive it with createImage(InputStream ip), but how can i send it with OutputStream? it needs a byte array (method write), how can i convert an image into a byte array?is there any other solution? like send it as a string...
    Thanks

  • How to get password as string back from encrypted password byte array.

    Hi All,
    I am storing encrypted password and enc key in the database.(Code included encryptPassword method for encryption and validatePassword method for validating of password). Problem is that for some reason i need to show user's password to the user as a string as he/she entered. But i am not able to convert the encrypted password from D/B to original String.
    Tell me if any body know how to get the string password back from the encrypted password byte array after seeing my existing encryption code.
    //********* Code
    private Vector encryptPassword(byte[] arrPwd)
    try
    // parameter arrPwd is the password as entered by the user and to be encrypted.
    byte[] encPwd = null;
    byte[] key = null;
    /* Generate a key pair */
    KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA", "SUN");
    SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
    keyGen.initialize(1024, random);
    KeyPair pair = keyGen.generateKeyPair();
    PrivateKey priv = pair.getPrivate();
    PublicKey pub = pair.getPublic();
    /* Create a Signature object and initialize it with the private key */
    Signature dsa = Signature.getInstance("SHA1withDSA", "SUN");
    dsa.initSign(priv);
    /* Update and sign the data */
    dsa.update(arrPwd, 0, 12);
    /* Now that all the data to be signed has been read in, generate a signature for it */
    encPwd = dsa.sign();
    /* Now realSig has the signed password*/
    key = pub.getEncoded();
    Vector vtrPwd = new Vector(2);
    vtrPwd.add(encPwd);
    vtrPwd.add(key);
    return vtrPwd;
    catch (Exception e)
    private boolean validatePassword(byte[] arrPwd,byte[] encPwd,byte[] key) throws RemoteException
    try
    // arrPwd is the byte array of password entered by user.
    // encPwd is the encrypted password retreived from D/B
    // key is the array of key through which the password was encrypted and stored.
    X509EncodedKeySpec KeySpec = new X509EncodedKeySpec(key);
    KeyFactory keyFactory = KeyFactory.getInstance("DSA", "SUN");
    PublicKey pubKey = keyFactory.generatePublic(KeySpec);
    /* Encrypt the user-entered password using the key*/
    Signature sig = Signature.getInstance("SHA1withDSA", "SUN");
    sig.initVerify(pubKey);
    /* Update and sign the password*/
    sig.update(arrPwd, 0, 12);
    return sig.verify(encPwd);
    catch (Exception e)
    Help upto any extent would be appreciated.
    Thanx
    Moti Singh

    Hi All,
    I am storing encrypted password and enc key in the
    database.(Code included encryptPassword method for
    encryption and validatePassword method for validating
    of password). Problem is that for some reason i need
    to show user's password to the user as a string as
    he/she entered. But i am not able to convert the
    encrypted password from D/B to original String.No, you are not encrypting the password in your code, you are merely signing it.
    Tell me if any body know how to get the string
    password back from the encrypted password byte array
    after seeing my existing encryption code.It is impossible to retrieve the original text out of a signature.
    You should read up on some encryption basics in order to understand the difference between signing and encrypting. Then you can find examples of how to encrypt something here: http://java.sun.com/j2se/1.4/docs/guide/security/jce/JCERefGuide.html.
    Actually there is one class specifically for keeping keys secure, KeyStore http://java.sun.com/j2se/1.4/docs/api/java/security/KeyStore.html
    - Daniel

  • How to add 16 bit message sequential number to the byte array

    hi
    iam trying to implement socket programming over UDP. Iam writing for the server side now.I need to send an image file from server to a client via a gateway so basically ive to do hand-shaking with the gateway first and then ive to send image data in a sequence of small messages with a payload of 1 KB.The data message should also include a header of 16 bit sequential number and a bit to indicate end of file.
    Iam able to complete registration process(Iam not sure yet).I dnt know how to include sequential number and a bit to indicate end of file.
    I would like to have your valuable ideas about how to proceed further
    package udp;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class Sender  {
        protected BufferedReader in = null;
        protected FileInputStream image=null;
        protected static boolean end_of_file=true;
    /** pass arguments hostname,port,filename
    * @param args
    * @throws IOException
       public static void main(String[] args) throws IOException{
            DatagramSocket socket = new DatagramSocket(Integer.parseInt(args[1]));
            boolean more_messages = true;
              String str1=null;
                * gateway registration
                try{
                     //send string to emulator
                    String str="%%%GatewayRegistration SENDER test delay 10 drop 0 dupl 0 bandwidth 1000000";
                    byte[] buff=str.getBytes();
                    InetAddress emulator_address = InetAddress.getByName(args[0]);
                    DatagramPacket packet = new DatagramPacket(buff, buff.length,emulator_address,Integer.parseInt(args[0]));
                    socket.send(packet);
                        // figure out response
                    byte[] buf = new byte[1024];
                    DatagramPacket recpack=new DatagramPacket(buf,buf.length);
                    socket.receive(recpack);
                   // socket.setSoTimeout(10000);
                    String str2=str1.valueOf(new String(recpack.getData()));
                    if(socket.equals(null))
                         System.out.println("no acknowledgement from the emulator");
                        socket.close();
                    else if(str2=="%%%GatewayConfirmation")
                    //     String str1=null;
                         System.out.println("rec message"+str2);
                    else
                         System.out.println("not a valid message from emulator");
                         socket.close();
                catch (IOException e) {
                    e.printStackTrace();
                      end_of_file = false;
         /**create a packet with a payload of 1     KB and header of 16 bit sequential number and a bit to indicate end of file
      while(end_of_file!=false)
          String ack="y";
          String seqnum=
           File file = new File(args[2]);                               
                    InputStream is = new FileInputStream(file);                 
            socket.close();
      private byte[] byteArray(InputStream in) throws IOException {
             byte[] readBytes = new byte[1024]; // make a byte array with a length equal to the number of bytes in the stream
          try{
             in.read(readBytes);  // dump all the bytes in the stream into the array
            catch(IOException e)
                 e.printStackTrace();
            return readBytes;
      

    HI Rolf.k.
    Thank you for the small program it was helpfull.
    You got right about that proberly there  will be conflict with some spurios data, I can already detect that when writing the data to a spreadsheet file.
    I writes the data in such a way, that in each line there will be a date, a timestamp, a tab and a timestamp at the end. That means two columns.
    When i set given samplerate up, that controls the rate of the data outflow from the device, (1,56 Hz - 200 Hz),   the data file that i write to , looks unorderet.
     i get more than one timestamp and severel datavalues in every line and so on down the spreadsheet file.
    Now the question is: Could it be that the function that writes the data to the file,  can't handle the speed of the dataflow in such a way that the time stamp cant follow with the data flowspeed. so i'm trying to set the timestamp to be  with fractions of the seconds by adding the unit (<digit>) in the timestamp icon but its not working. Meaby when i take the fractions off a second within the timestamp i can get every timestamp with its right data value. Am i in deeb water or what do You mean!??
    AAttached Pics part of program and a logfile over data written to file
    regards
    Zamzam
    HFZ
    Attachments:
    DataFlowWR.JPG ‏159 KB
    Datalogfile.JPG ‏386 KB

  • How to grab a certain number of bits

    hi,
    I have a 32 bit number, and I want to grab the second byte only, so from:
    00001000 00000000 01001011 00100101
    I want my variable q = 01001011, how do I do this?
    many thanks, Ron

    Hi, hmm, I still seem to be getting an error though (or a value that I am not expecting!).
    So this is what I am doing:
    q = (m_d2.getCardIntVal(j)>>>8)&0xFF;
    r = (m_d2.getCardIntVal(k)>>>8)&0xFF;
    s = q|r;
    System.out.println(...Ok, it seems fine, but when I examine the values I get this (printing out the output):
    Three of Spades 17 Ten of Spades 24 combined value = 25
    10001 11001
    Three of Spades 17 Jack of Spades 25 combined value = 25
    10001 11010
    Three of Spades 17 Queen of Spades 26 combined value = 27
    10001 11011
    Three of Spades 17 King of Spades 27 combined value = 27
    10001 11100
    Three of Spades 17 Ace of Spades 28 combined value = 29
    10001 100000
    Three of Spades 17 Deuce of Hearts 32 combined value = 49
    10001 100001
    Three of Spades 17 Three of Hearts 33 combined value = 49
    Is it because something is happening when the values are being | together because they are of different sizes?
    What I am doing is going through the deck generating all the 2 card combinations, and trying to generate a distinct value for each pair type, for example any suited jack/queen combination should generate the same value, whereas an an offsuit jack/queen would have a different value. Anyway, I just don't get why the three of spades, and deuce of hearts pair give me a value of 49, and so does the three of spades and three of hearts combo!
    This is getting annoying! Many thanks, Ron

  • What is max number of bits supported by the 2nd argument of DAQmxCreateDOChan()?

    The example file WriteDigChan.c is very helpful, but it only handles 8-bits.  I need 16 output bits.  In that example, could I simply change the second argument from "Dev1/port0/line0:7" to "Dev1/port0/line0:15"?  Or is each port limited to 8-bits?

    Hello JoeCz,
    Thank you for using NI forums.  The number of bits for each port is device specific, but most devices do have 8 bits for each port.  One thing you can try is to specify multiple ports i.e. "Dev1/port0/line0:7, Dev1/port1/line0:7".  You can then create an 8 bit array with two elements (1 element for each port) and specify the values you would like written for each line.  Try this out and let me know how it works for you.
    Regards,

  • How do I install 32 bit gcc on a OEL 5.8 64 bit system

    Hi,
    How do I install 32 bit gcc on a OEL 5.8 64 bit system
    the command to check whether the required versions of the 32-bit and 64-bit glibc packages are installed is as follows:
    rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}\n' packagename
    while I understand the package name is gcc, how do I know the name for its 32 bit counterpart?
    thanks

    Hi dude thanks a lot,
    my objective: install oracle 10gr2 on oel 5.8 remotely. I've set up a virtualbox for oel 5.8
    but right now I encountered another problem,
    enterprise manager configuration failed due to the following error - invalid value null for parameter PORT
    from Unable to start enterprise management console
    and have rebuild the repository
    oracle@source ~]$ emca -repos create
    STARTED EMCA at Aug 30, 2012 6:00:08 AM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: orcl
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:
    Do you wish to continue? [yes(Y)/no(N)]: Y
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log.
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_repos_create_<date>.log for more details.
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log for more details.
    Could not complete the configuration. Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log for more details.
    [oracle@source ~]$
    details for u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log is as follow
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2012-08-30_06-00-08-AM.log for more details.
    Aug 30, 2012 6:00:28 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error creating the repository
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:194)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    118,1 Bot
    here's my /etc/hosts profile
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1          localhost.localdomain localhost
    ::1          localhost6.localdomain6 localhost6
    #92.242.132.18          source.localdomain source
    192.168.0.211          source.localdomain source
    here's my ifconfig settings
    [oracle@source ~]$ /sbin/ifconfig
    eth0 Link encap:Ethernet HWaddr 08:00:27:EE:68:57
    inet addr:192.168.0.211 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::a00:27ff:feee:6857/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:180055 errors:0 dropped:0 overruns:0 frame:0
    TX packets:323764 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:26740364 (25.5 MiB) TX bytes:62621397 (59.7 MiB)
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:18198 errors:0 dropped:0 overruns:0 frame:0
    TX packets:18198 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:22512862 (21.4 MiB) TX bytes:22512862 (21.4 MiB)
    would really appreciate some one could really guide me what's the solutions to the above EM confugration problem as I'm run out of ideas.
    thanks a lot!

  • How to extract audit log data from every document library in site collection using powershell?

    Hi All,
    I have n number of document library in one site collection,
    My query is- How to extract audit log data from every document library in a site collection using powershell?
    Please give solution as soon as possible?

    Hi inguru,
    For SharePoint audit log data, These data combine together in site collection. So there is no easy way to extract audit log data for document library.
    As a workaround, you can export the site collection audit log data to a CSV file using PowerShell Command, then you can filter the document library audit log data in Excel.
    More information:
    SharePoint 2007 \ 2010 – PowerShell script to get SharePoint audit information:
    http://sharepointhivehints.wordpress.com/2014/04/30/sharepoint-2007-2010-powershell-script-to-get-sharepoint-audit-information/
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How to convert an int number to a byte array, and how to convert back?

    Hello, everybody,
    Just as the topic, if I have an int number(which should have 32-bit, or 4-byte), how can I convert it into a byte array. And also, how to convert it back.
    Thank you in advance!

    Alternatively you can use ByteBuffers to do this work for you
    // to a Byte Array
    int originalInt =...;
    ByteBuffer myBuffer = ByteBuffer.allocate(4);
    myBuffer.putInt( originalInt );
    byte myArray[] = myBuffer.array();
    // and back to an int
    ByteBuffer myOtherBuffer = ByteBuffer.wrap(myArray);
    int finalInt = myOtherBuffer.getInt();

  • How do you make ruler display ticks every 12 inches instead of every 16 inches?

    Hi all,
    How do you make ruler display ticks every 12 inches instead of every 16 inches?

    I just wish that common features like layers, color, swatches, styles, masks, adjustments, character, paragraph and so on - looked and functioned the same across adobe applications. Is that too much to ask for?
    In some cases, that would be absurd. Photoshop and Illustrator are fundamentally differerent environments, as they should be. Photoshop Layers and Illustrator/InDesign Layers are entirely different things, because a vector drawing program works with arranging OBJECTS (raster images, vector paths, text objects) in a Z stacking order and XY position. A Photoshop Layer is essentially just another raster image of the same pixel count as all the others, viewed optionally opaquely or transparently on your screen. It would be ridiculous if Photoshop created a whole new raster image every time you colored another selection of pixels. It would be ridiculous if Illustrator created a new Layer everytime you draw a new path.
    Regarding text, Photoshop and Illustrator share the same lame text engine. Illustrator's should be like InDesign's, not like Photoshop's.
    And that is a good case-in-point negating the silly defensiveness of Illustrator's outdated and buggy functionality. Illustrator's text handling remains poor today. But it was not updated even to today's treatment until CS 1. For most of its history, its text handling was pathetically primitive compared to that of other programs which were designed for exactly the same purpose and which competed directly with it. Should one "defend" that fact with some nonsensical argument that 'Illustrator is not meant to be a word processor'?
    It was not until AI10 that its print dialog acquired a simple Fit To Page command. You had to manually figure and enter a scale factor, and that was limited on the low end to 25%. Can that logically be "defended" on the basis that 'AI is not an imagesetter'? Every dang software on the planet provides a Fit To Page print option!
    This "It's not a technical illustration program" argument is every bit as nonsensical. Every one of Illustrator's direct competitors provides for user-defined drawing scales, and has for decades. Illustrator is just as "technical" a drawing program as those others are. It's just particularly lame at it in this regard. And since when is "technical" illustration not "illustration"? And since when is user-defined drawing scale only needed for "technical" illustration? Absolutely ridiculous.
    So what if in its infancy Illustrator was a tool for PostScript workflow? Illustrator's leading competitor for most of its history, FreeHand, was initially based on the path drawing engine of a font design software. But when it went to market as a general illustration tool, it blew the functional and interface doors off Illustrator, and continued to do so throughout its history.
    The simple fact is this: Throughout its history, Illustrator never kept up with the basic drawing features, interface refinements, and performance of its direct competitors. Its market share is primarily due to its carrying an Adobe label--and to the absurd defensiveness of too many of its users who have next to no experience with anything else.
    Ilustrator, Indesign and Photoshop share about 90% of the same functionality.
    Where do you get that?
    Photoshop's primary purpose is fine-tuning of raster imagery, especially photography. You don't do sophisticated color correction, channel operations, sharpening, etc., in Illustrator or InDesign. That's what I would call its "90% functionality."
    InDesign's primary purose is automation of repetitive assembly tasks and text handling in high page-count documents. You don't do master pages, indexes, tables of contents, constant spooling the hard disk, hundreds of externally linked raster and vector files, chapters-long threaded text stories in Illustrator or Photoshop. That's what I would call its "90% functionality."
    Illustrator's primary purpose is general-purpose vector drawing (which most certainly includes many kinds of 'technical' illustration) using cubic Bezier curves, and page-assembly for low page-count, illustration-intensive documents. That's what I would call its "90% functionality."
    Now ask yourself: Should programs fundamentally structured for different primary purposes necessarily share the same interface? I say no, not necessarily. Example: The mere use of the same term (Layers) in Photoshop and Illustrator for what are fundamentally two different things has led to a gross misunderstanding on the part of Photoshop users who are Illustrator beginners, which is repeated here in this very forum almost every day.
    Ask yourself this: Should unyielding adherance to the organizational dictates of Adobe's so-called "unified" interface be allowed to result in a palette flyout menu in InDesign that contains only one option? Is the very concept of a 'menu' not fundametally antithetical to a single choice? Is that not just poor interface design, regardless of whether it "matches" that of the other programs in the so-called "suite"? (Frankly, I find Adobe's over-use of flyout menus--which effectively HIDE important options--generally both ill-conceived and poorly executed.)
    No, there simply is no excuse for Illusrator's still lacking user-defined drawing scales, just as there was no excuse for its lacking multiple pages for two full decades, just as there is no excuse for its still lacking reliable snaps, connector lines, live shape primitives (!), proper arc-drawing, proper corner rounding, inline graphics, auto-fitting textframes, the ability to join multiple paths at once, (note that NONE of those can be called specifically "technical" drawing features) and a plethora of other functions that are bare-bones basic to vector drawing. The programs is just archaic and outdated in all these regards, and that's all there is to it.
    JET

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

Maybe you are looking for

  • Am at a loss

    I just bought a new MAC tower and transferred all my applications from my lap top Mac to the new one... Included FC Pro 6.0.4... when I open he program 6.0.4 appears but in the effects column I do not get the after Glow effect, a bin that I have on m

  • Batch details in Ap credit memo

    Hi expert s i want to add some fields from oibt table in ap credit memo pld can anyone help me regards Jenny

  • Question about  32 Bit Oracle11g Client

    hi so many downloads....... i get lost .......... from where i can download 32 Bit Oracle11g Client for windows-7 64bit that work with Oracle 11.2.0 64bit using PL/SQL developer ver 7.1 ? i really dont know what to download....... thanks in advance

  • Black screen issue on GX701

    I have issues with windows 7 on my notebook. Every now and then the screen turns black and it doesn't recognise my keyboard commands. I will have then to hold the power key for the system to turn off. I taught it was a hardware issue and i send it fo

  • Tranfer Photoshop for PC to Mac

    I purchased Adobe CS4 for a PC and I recently purchased a Mac computer. I do not want to repurchase Photoshop since I've already purchased it for the PC. Is there anyway that my purchase of Photoshop for the PC can be transferred to the Mac?