SAMPLE:C,DECIMAL TO HEXADECIMAL OR REVERSE

제품 : PRECOMPILERS
작성날짜 : 2002-05-26
SAMPLE:C,DECIMAL TO HEXADECIMAL OR REVERSE
==========================================
PURPOSE
다음의 간단한 두 C Source code들은
16진수를 10진수로 10진수를 16진수로 바꾸는 방법의 예를 보이고 있습니다.
EXAMPLE
prompt$ vi hex2dec.c
#include <stdio.h>
int main(void) {
unsigned int num;
printf("Hexadecimal number ? ");
scanf("%x", &num);
printf("(%d)10\n", num);
return 0;
:wq
prompt$ vi dec2hex.c
#include <stdio.h>
int main(void) {
unsigned int num;
printf("Decimal number ? ");
scanf("%d", &num);
printf("(%X)16\n", num);
return 0;
:wq
prompt$ cc -o hex2dec hex2dec.c
prompt$ cc -o dec2hex dec2hex.c
prompt$ ./hex2dec
Hexadecimal number ? 7FFF
(32767)10
prompt$ ./dec2hex
Decimal number ? 32767
(7FFF)16
Reference Document
------------------

Try the SDK forum.

Similar Messages

  • Convertion from Decimal to Hexadecimal

    Hi,
    Can you please tell me the way to covert a given decimal number into hexadecimal (for example 4 -> 04, 20 -> 14 etc) and also the vice versa.
    thank you.

    Hi
    Try this function module:
    " CRM_EI_KB_CONV_DEC_TO_HEX "
    This fm converts any decimal to hexadecimal, but not vice-versa.........
    Hope it helps....

  • Conversión decimal a hexadecimal

    ¡Hola!
          Quiero convertir un número decimal en hexadecimal. A medida que varíe un "pointer slide" con valores decimales, un indicador númerico me vaya mostrando dicho numero pero en formato hexadecimal.
    ¿Se puede, alguien sabe cómo hacerlo?
    Adjunto una imagen de la idea para que sea más clara la pregunta.
    Saludos.
    Adjuntos:
    Ejemplo.png ‏7 KB

    Estoy controlando un variador de velocidad por medio de Modbus (empleo una conexión RS485). Dicho variador se programa con formato HEXADECIMAL.
    Para lograr esto estoy utilizando la libreria Modbus, en la cual sus entrada acepta un valor U16 (unsigned 16 bits).
    La pregunta es:
    ¿Cómo hago o existe algun bloque para convertir un número decimal (el cual lo voy variando con una perilla desde el panel frontal) en U16 hexadecimal? Usé un conversor decimal/hexadecimal pero la salida del mismo es un string y esto no me sirve.
    Adjunto una imagen para que sea más claro.
    Adjuntos:
    Esquema.JPG ‏45 KB

  • Decimal to Hexadecimal convertion

    Hi, how can I converte decimal(NUMBER) to Hexadecimal in PL/SQL ?
    I need to translate the NUMBER: 50545326 to haxadecimal: 030342AE
    But my SQL return C43337361B, see below:
    SELECT RAWTOHEX( utl_raw.cast_from_number( 50545326 ) )  --> I wish 030342AE value
      FROM DUAL;

    Luciana T. Angeli wrote:
    One more question, I see that negative numbers can't be converted to Hexadecimal this way.
    It is possible to convert negetive decimal numbers to hexadecimal format ?Negative numbers need to be displayed as 2's complement to be shown in hexadecimal, so you would have to specify (in effect) how many bytes you are dealing with.
    e.g. if you know your are dealing with 4 byte numbers...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select &num as num from dual)
      2* select to_char(case when num<0 then 65536+num else num end, 'fmXXXX') as hx from t
    SQL> /
    Enter value for num: 123
    old   1: with t as (select &num as num from dual)
    new   1: with t as (select 123 as num from dual)
    HX
    7B
    SQL> /
    Enter value for num: -1
    old   1: with t as (select &num as num from dual)
    new   1: with t as (select -1 as num from dual)
    HX
    FFFF
    SQL> /
    Enter value for num: 32767
    old   1: with t as (select &num as num from dual)
    new   1: with t as (select 32767 as num from dual)
    HX
    7FFF
    SQL> /
    Enter value for num: -32768
    old   1: with t as (select &num as num from dual)
    new   1: with t as (select -32768 as num from dual)
    HX
    8000
    SQL>If your numbers are larger you need to increase your format mask and increase the value (65536) appropriately.

  • Is there a way to convert decimal or hexadecimal string to bcd on labview 8.0 or 7.1??

    i am trying to convert user input data to bcd data. is there a way to do this besides converting each individual data bit to binary?

    How do you want the data represented in memory? Because the BCD code only takes 4 bits there are several options:
    One byte per digit with the unused bits set to zero
    One byte per digit with the unused bits set to ones (hardly anybody does this anymore)
    Two digits stored in each byte
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Reversing Midi in Logic Pro

    Hey all-
    I am having a hard time reversing a piano chord so that you get the effect of the decay growing to the actual hit. Is there a way to do this? When I have done the reverse position command it doesn't do anything. Help?
    Thanks.
    PM

    Mlanders way is the way to do this.
    It can't happen in MIDI, because the samples themselves aren't recorded in reverse.
    If the piano is in the EXS, you technically could select all the zones, and reverse the sample in each zone, so essentially all the piano samples were playing backwards. But then the whole piano part would be playing backwards.
    And besides, as you'll soon find out, for what you're wanting to do, you don't want where the actual note ends on the piano sample to be where it starts once it's reversed. The volume is too low. It would take to long to go from nothing to the point where it's audible.
    Trust me, Mlanders way IS the easiest. And it really is very easy to do.
    If you want the reversed piano chord to last, say, 2 bars, simply play it normally for at least 2 bars (not much longer though). Make sure that those 2 bars is it's own region. Then select File>Export>Region as Audio File. Drag that new audio window to the arrange page, and put it in place on a stereo audio track (you could also drag it any where in the song, and select "Move to original record position", and it will snap into place).
    Then go to the sample editor, and select reverse. Done.
    You will find that you will probably need to scoot this new audio region earlier in time, so that the loudest part of the reversed sample (where the keys were first pressed), lines up with the point where you want it to end, which is usually a downbeat.

  • Reversing an audio cue?

    I've done this before, do it all the time in Final Cut.
    How can I reverse an audio cue in Logic.  Say I have a drum kick and I want to reverse it to get that whoosh before the hit, how would I do this?
    I know this sounds slightly dumb, but if I don't ask: and is there a way to reverse a midi drum kick, without having to turn it into audio first?
    I'll be happy just to know how to do the audio reverse.  The midi would be a bonus - though I can't imagine how it would work.
    All ears,
    Ben

    Midi would be tricky, and would depend on where it came from. In EXS, you can reverse the samples, but then timing the midi note so that the meat of the sample happened when you wanted would be difficult. Just hit the edit button on the interface, and you will get to the multi samples window. Each of the samples has a check box for reverse.
    A lot of effort!.
    I would bounce in place one midi kick note to convert it to audio, double click on the resultant region to open the sample edit window, and one of the functions there is reverse. This writes over the audio file to create a new file, reversed. It doesn't really overwrite it, because you can still undo, but if you want to keep the original file, best to make a copy. (audio>convert region(s) to new audio file). Once you have reversed the audio file, you can then nudge it until it feels right in the track. Then select snap to bar (or beat), and option drag it everywhere else you want it.
    Good Luck.
    Cheers Q

  • Reverse Track

    I am trying to reverse a guitar solo track. The manual indicates either Functions>Reverse or, Shift-Control-R. Seems simple however; do I select the track first and then press Shift-Control-R? Also, silly question but where is Functions located?

    Select your guitar solo region and open the Sample Editor. When in the Sample Editor hit Command+A to select the entire region, then ControlShiftR and click "process" in the pop-up window to reverse your solo. Another way to do it is to go to "Functions" in the Sample Editor menu bar and select "reverse" in the drop-down menu.
    I guess you just found out on your own.
    Message was edited by: Guitartist

  • Problem in getting the Date object based on the TimeZone

    Hi,
    I need to create a Date object that holds the time of the specified TimeZone.
    I am using TimeZone and Calendar object for that, but when I call the Calendar object's getTime() method, it returns
    a Date object that holds the local time.
    Can somebody let me know what why?
    Here is what I uses in my code.
    TimeZone tz = TimeZone.getTimeZone("IST");
    Calendar cal = new GregorianCalendar(tz);
    System.out.println("Date of "IST" TimeZone = " + cal.getTime());
    Instead of cal.getTime, if I do the following I am getting the values correctly.
    int month = cal.get(Calendar.MONTH); // 0..11
    int day = cal.get(Calendar.DATE); // 0..11
    int hour12 = cal.get(Calendar.HOUR); // 0..11
    int minutes = cal.get(Calendar.MINUTE); // 0..59
    Can somebody let me know why I am not able to assign the Date of the TimeZone specified.
    Is there anything wrong with the code?
    Seb

    Is there anything wrong with the code?No, only with your understanding of the Date class. From the API:
    The class Date represents a specific instant in time, with millisecond precision.
    The different time displayed for different TimeZones around the world are just that: a display format for the same instant in time.
    To display the "instant in time" in a different TimeZone, use DateFormat. Here's a small sample:TimeZone tz = TimeZone.getTimeZone ("GMT");
    Calendar c = Calendar.getInstance (tz);
    System.out.println(c.getTime ()); // prints Tue Mar 18 02:56:53 IST 2008
    DateFormat dtf = DateFormat.getTimeInstance ();
    dtf.setTimeZone (tz);
    System.out.println(dtf.format (c.getTime ())); // prints 9:26:53 PMIt's no different from formatting the same number in various ways: 10 decimal == 0xA hexadecimal == 012 octal == 1010 binary. Same value, different representation. Same intant in time, different local time for each zone.
    Savvy?
    cheers, db

  • Setting special baudrates in NI-CAN

    Hello,
    I am trying to set baudrate of 307.690 bauds in NI-CAN.
    I read it should be possible to set non-standard baudrates:
    http://digital.ni.com/public.nsf/allkb/CBA1FC627FFA0F8F862564DC0071B3A7
    But I am unable to figure out the computation formula between decimal and hexadecimal (BTR0 & BTR1) values for non-standards baudrate ?
    I am unable to compute the values for BTR0 and BTR1 to have a baudrate near to 307.690 bauds.
    You think that baudrates no included in the table in the link above, are accepted by the card ? Because if in NI-MAX I set some extrapolated values for BTR0 and BTR1 (advanced settings), they are rounded to the nearest standard values.
    If not, they are accepted by ncSetAttr.vi but I am not sure the chipset will use effectively this baudrate (I am in a pre-study phase).
    Cheers,
    Ben
    Solved!
    Go to Solution.

    Seube wrote:
    nathand: Thanks a lot.
    For my part, I get BTR0=0x01 and BTR1=0x19 for a sampling rate of 84.6%, while your values get 76.9%
    I suppose I have to retain the values with the biggest sample point.
    Our differences can be explained by hardware differences : I have a PCI NI-CAN card.
    Actually, if you look at the link you provided, it says the BTR values are the same regardless of which CAN card you are using.  Either set of those values is likely to work (yours, or the ones I posted); a sampling point around 80% is reasonable.  The % value is not the sampling RATE, it is the sampling POINT.  It is the point during the transmission of a bit at which the value on the wire is actually sampled to determine if it's a 1 or a 0.  You don't necessarily want the maximum value (a sample point at 95% would not be ideal) because if you're too close to the end of the time period and the oscillators are not perfectly synchronized, you may read the wrong value.

  • Problem in getting the frame object in firefox 20.0.1

    When i upgraded to firefox 20.0.1 which have throw exception in javascript.
    I am using a lightstramer 3.6 library for my development.
    Program cause error by use this object.
    "var masterWinRef = self.parent.frames["push_engine"]"
    When I change this line to
    "var masterWinRef = top.document.getElementById('push_engine').contentWindow ;"
    So, what is the different between this?
    Before use firefox 19 is working.

    Is there anything wrong with the code?No, only with your understanding of the Date class. From the API:
    The class Date represents a specific instant in time, with millisecond precision.
    The different time displayed for different TimeZones around the world are just that: a display format for the same instant in time.
    To display the "instant in time" in a different TimeZone, use DateFormat. Here's a small sample:TimeZone tz = TimeZone.getTimeZone ("GMT");
    Calendar c = Calendar.getInstance (tz);
    System.out.println(c.getTime ()); // prints Tue Mar 18 02:56:53 IST 2008
    DateFormat dtf = DateFormat.getTimeInstance ();
    dtf.setTimeZone (tz);
    System.out.println(dtf.format (c.getTime ())); // prints 9:26:53 PMIt's no different from formatting the same number in various ways: 10 decimal == 0xA hexadecimal == 012 octal == 1010 binary. Same value, different representation. Same intant in time, different local time for each zone.
    Savvy?
    cheers, db

  • How to Enable MMS without BIS

    How to enable MMS without BIS
    This guide is for you if:
    you have an BlackBBerry OS 7 device on a regular (non-BIS) data plan
      and
      2. you cannot send MMS (multimedia) messages.
    Getting MMS working requires you to split, hex edit, merge and install service books, so read through the instructions and decide whether you’re up to it. I’ve attempted to explain everything as clearly as possible, but it’s a complex process and requires you to follow instructions carefully.
    It's worth asking your carrier if they can just enable MMS for you. If they can and will, you don't need this guide.
    Notes:
    The process described here may also work on earlier devices with OS 4, 5, and 6, but I don’t have those devices to test.
    Many carriers require you to have a data plan in order to send MMS messages. If you don’t have one, this guide may not help you.
    Depending on your cellular plan, sending MMS messages may involve extra charges.
    Preparation: Before You Get Started
    Software
    First, you need some tools to do the work. Download and install these three programs on your computer:
    MagicBerry 3.5 (here)
    A Hex editor (I like HxD, here)
    BlackBerry Desktop (link)
    Service Books
    You will also need a copy of the service books attached to post #1 in this thread over at CrackBerry. Extract the contents of the .zip file to a location of your choice.
    MMS Configuration Information
    Once you have the tools and service books, you need to get the MMS configuration information from your cellular carrier.
    Specifically, you need three settings: MMS Proxy, MMSC, and APN. Search on Google for something like, “MMS settings for [insert your cellular carrier’s name here]” and you should find them. Note that you also need the port number for the MMS Proxy. It should be there on the settings page.
    Note: if the port number for your MMS Proxy is in the 9000s, this process probably won’t work, since your cell carrier may be using the older WAP 1.2 specification. If anyone runs across this, let me know, and I’ll try to help you out.
    A Note on MagicBerry
    MagicBerry is an .ipd file editor. Service books, like the ones responsible for MMS, are .ipd files. The logical conclusion would be that you could edit service books with MagicBerry. But MagicBerry only shows you certain pre-set fields within the .ipd file. As a result, you can't see or edit a lot of the information in the service book. Even worse, if you do edit a service book file with MagicBerry, that unseen information is not saved, so you end up deleting it and rendering the service book useless.
    MagicBerry does have good uses, though: it splits and merges service book files perfectly. In fact, it is the best tool for splitting and merging service books, which is why you downloaded a copy.
    Due to MagicBerry’s limitations, you’re going to edit the files with the hex editor.
    Let’s get started!
    The MMS How-to Guide
    Step 1: Split the .ipd Files
    Start MagicBerry, click File > Open, and open the tmo_servicebooks.ipd file.
    Click Manipulate > Split.
    Tick the box for the MMS Config 2.0 file.
    Press “Split Selected,” enter a file name (and select a directory, so you know where the file is being saved), and press “Save.” Name the file “MMS_Config_20” so that you easily recognize it.
    Note: there are "MMS Config" and "MMS Config 2.0" service books in the tmo_servicebooks.ipd file. Make sure you select the 2.0 version.
    Step 2: Hex Edit the MMS Config 2.0 File
    Now, start your hex editor and open the “MMS_Config_20.ipd” file. It will look like this, without the highlights and bolding. I’ve added those so that it will be easier to provide instructions on editing.
    Hex Editing Basics
    In the HEX editor, the blue numbers don’t matter to you (they’re just column and row labels). Only the black ones are part of the file.
    The bytes (the two-character pairs) on the left side are all numbers, expressed in hexadecimal or “base-16”. The same information is expressed in ANSI characters on the right side.
    The basics of hexadecimal numbering are that you count as follows:
    Base-16 (hexadecimal):  1 2 3 4 5 6 7 8 9  A  B  C   D  E  F  10
    Base-10 (decimal):         1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
    So in the two-character byte pair, 0D = 13, 1F = 31, 50 = 80, etc. If you can figure out those conversions, you’re good. If not, google hexadecimal numbering, and spend some time at a lesson. You need to understand how hex works to do this. There are also decimal to hexadecimal converters online. Use them to check your work, or to do the conversion work for you.
    You can edit the file from either side of the hex editor. As you edit the information on one side, you’ll see it automatically changing on the other as well.
    It’s easier to edit the information in the green, turquoise, and red fields on the right side.
    The information in the grey, yellow, and pink fields must be edited from the left (hex) side, because it’s the hex value that matters, and it shows up as periods or jibberish on the right side. All those “dots” on the right side are not identical when you look over at the left side. They’re actually very different values. The nonsensical letters on the right side are likewise meaningful values on the left side.
    It’s not a bad idea to just spend some time playing around in the hex editor before you move on. When you’re done, close the file without saving it, and the changes you make while experimenting won’t be made permanent.
    Editing the File
    The green blocks: enter your MMS proxy in each one, with the port number following the colon. Add to or delete bytes from the highlighted field if necessary, but whatever you do, do not write over or delete bytes outside the highlighted field! Those bytes contain necessary information, and if they are not there, the service book will not work. The same rule holds true for all of the other edits. You must stay within the highlighted fields. To delete bytes, just press delete. To insert bytes, position the cursor, and go to Edit > Insert Bytes on the menu bar, and choose the number of bytes to insert. If you’re using HxD hex editor, ctrl-z will undo a mistake. It also makes your changes in red, which makes them a little easier to follow. As with all programming, the work has to be perfect. There can be no mistakes. Check everything you do carefully.
    The turquoise block: enter the MMSC address here.
    The red block: enter your APN here.
    The yellow blocks: total number of bytes in the highlighted green, turquoise, or red range that follows. Adjust it when you’ve finished editing. The number must be expressed in HEX of course. Use a decimal to hexadecimal converter online if you prefer that.
    The pink blocks: the total number of bytes in the bolded range that follow (again, in hex). Adjust it when you’re finished editing the field.
    The grey block: a count of the total number of bytes that follow it. In the original file, the value is 30 01 00 00, which breaks down as: 30(hex)=48 01(hex)=256. The total (48+256) is 304. If the number of bytes following the grey block was less than 256, there would be no 01 in the second place. For example, if there were 226 bytes following the block, the grey block would look like this: E2 00 00 00. When you are finished editing the entire file, go back and adjust the number in the grey block accordingly.
    Once you’re done, save the file.
    Step 3: Merge the MMS Config 2.0 and Wap Push Config Service Books
    Open the “MMS_Config_20.ipd” file in MagicBerry
    Once you’ve opened the file, click Manipulate > Merge.
    Tick the box for the MMS Config 2.0 file.
    On the right side of the “Merge” window, where it says, “Choose second IPD file,” press the button with the three dots.
    Choose the tmo_servicebooks.ipd file.
    Tick only the box for the “Wap Push Config” service book.
    Press “Merge Selected,” enter a file name (and select the directory if necessary), and press “Save.”
    Close MagicBerry
    Step 4: Backup Your Phone
    This is mandatory. You’ll need the backup file for step 6.
    You need to have BlackBerry Desktop installed on your computer. If you haven’t done that yet, do it.
    Connect your BlackBerry device to your computer with a USB cable. If BlackBerry Desktop does not start automatically, start it.
    Do a backup. Just hit “Back up now” and follow the prompts. Do a full backup. Once you’re done, go to step 5.
    Step 5: Merge the combined MMS Config 2.0/Wap Push Config service book file with your existing service books
    Open MagicBerry
    Press File > Open and at the bottom of the Open dialogue window beside the File name box, change “IPD Files (.ipd)” to “BBB Files (.bbb)”. Navigate to the folder where you stored your backup, and open it. It might take a while to open.
    Click Manipulate > Merge.
    Go down the list on the left hand side and tick the checkboxes for the service book entries (they will be way down). If there are service books listed for MMS Config or Wap Push Config, uncheck those boxes.
    On the right side of the “Merge” window, where it says, “Choose second IPD file,” press the button with the three dots. Choose your merged MMS Config 2.0/Wap Push Config file.
    Press “Merge Selected,” enter a file name (and select the directory if necessary), and press “Save.”
    Optional: You can merge the newly created file again with any other service books you may need – such as the Anworm service books for the browser mentioned in my thread on CrackBerry. Just follow the process used in step 3.
    Step 6: Install the Service Books to your phone:
    Connect your BlackBerry to your computer with a USB cable if it isn’t still connected.
    On your BlackBerry, go to Options > Device > Advanced System Settings > Service Book
    Hold down the “Alt” key and press S B E B. You should see a message that says, “Legacy SB Restore Enabled.” Press Okay.
    On your computer, open BlackBerry Desktop.
    Go to Device > Restore.
    Press “Change” and navigate to the folder with the merged .ipd file you created. Press “OK.” You should now see the file listed in the Restore window.
    Click on the merged .ipd file you created to select it.
    Under the heading “Select Data to Restore,” select “Select Device Data and Settings” and then tick the box for “Service Book.” This step is really important. Make sure it's done right. If you screw it up you could end up wiping a lot of settings and data.
    Press “Restore” and answer “Yes” to the confirmation dialogue.
    Close the BlackBerry Desktop software, disconnect your device, and do a battery pull to reboot.
    Voila! If everything went well, you should have MMS capabilities. Test your ability to send and receive multimedia by sending yourself a picture message. You should receive the message within about 10 seconds.
    If it doesn’t work, go back and make sure EVERYTHING in the file is done perfectly. If you find a problem, fix it, merge the files again, and reinstall the service books.
    Solved!
    Go to Solution.

    Why not just ask carrier to enable MMS? I know T-Mobile can and will do it, even if there is no data plan at all on the line. We did it for my daughter and I know T-Mobile has done it for others. I assume other carriers do the same, but don't know....Which is why I ask.
    - Ira

  • HP LaserJet Pro 400 M401a Laser Printer Not Saving Downloaded Fonts

    Hi,
    we have recently purchased an HP LaserJet Pro 400 M401a Laser Printer which needs to be used with a system that downloads fonts for correct style printouts. The problem I am having is the fonts download initially which is great, but they are not saved by the printer after 1 printout so the user is having to download the fonts everytime she wants to print something.
    All other printers in the office are HP2055 and work as expected saving the fonts after the initial download. I have asked the support team of the application to have a look at the situation and they say everything is setup correctly so it may be an issue with the printer. Printer is installed on a Windows XP SP3 PC.
    Firware version: 20121205 (15 Dec 2012)
    Driver Version: 61.140.04.14138 (1 Jan 2013)
    Any help would be appeciated, thanks.
    Robert

    If the downloaded soft fonts are definitely not being saved (despite the download presumably terminating with a 'make soft font permanent' escape sequence), then the problem must lie in the firmware - and the only resolution is if HP releases  a new version with a fix.
    To be certain about which PCL5 fonts are resident in the printer, you have presumably printed off a  'PCL5 Typeface List' via the relevant front panel menu (assuming this printer has one).
    Or you could send the following direct to the printer to invoke that report:
    <Esc>%-12345X@PJL COMMENT Print PCL Font List
    @PJL DMINFO ASCIIHEX = "040004010105020402015E"
    <Esc>%-12345X
     where <Esc> represents the non-graphic) Escape control-code character (the character with decimal code 27, or hexadecimal 1B), and each PJL statement is terminated with a LineFeed control-code (decimal 10, hexadecimal 0A).
    Assuming that the printer is USB-connected, you could send the contents of the file (name, say, testfile.prn) holding the above to the printer using the copy command in a command-prompt session:
    copy /b testfile.prn \\computer-name\share-name
     where:
    computer-name is the name of the host workstation
    share-name is a share name of the installed Windows printer instance.
    I don't have access to your model of printer, but I do use a LaserJet Pro 400 Colour MFP 475dn (MFP equivalent of M451 printer), and this does appear to retain downloaded 'permanent' soft fonts - but only until the device goes into 'sleep' mode!
    So it is probably a common 'fault' (or 'design decision'?) across this family (LJ Pro 400) of printers.

  • How to represent binary data?

    I have some binary data which I want to assign to a variable. How do I do this?
    To clarify my scenario:
    long longConstant = 1234567890L;Is there something like
    byte[] byteConstant = {1011B, 1000B, 1111B, 1101B, };Thanks in advance!

    Everything in memory is binary, so that clarification didn't clarify anything. Your original post suggests you want to know if you can include integer literals in your program in binary (not octal, decimal, or hexadecimal) representation. The answer to that question is no, but it's easy to translate binary to either octal or hexadecimal by combining groups of 3 or 4 bits.
    A hexadecimal literal starts with "0x":int abc = 0x22ab;and an octal literal just starts with "0" (zero, not oh):int def = 0777;

  • Duplex printing for last 2 pages only

    A customer has an invoice report where they want the terms and conditions (which are 2 pages) duplexed while the report itself is not printed that way.  Any ideas if this can be done using native SSRS?
    Sherry

    I am not sure this will work or not, but you could embed the printer code for duplex printing into your stream. 
    For HP printers:
    http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDisplay=wsrp-navigationalState%3DdocId%253Demr_na-bpl02705-2%257CdocLocale%253D%257CcalledBy%253D&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken#top
    Simplex/Duplex operation
    NOTE: This is only
    applicable to duplex capable printers.
    Function
    Parameter
    Command
    Decimal Value
    Hexadecimal
    Value
    Simplex Print
    Simplex
    Ec&l0S (s)
    027 038 108 048 083 (115)
    1B 26 6C 30 53 (73)
    Duplex Print
    Long-Edge Binding
    Ec&l1S (s)
    027 038 108 049 083 (115)
    1B 26 6C 31 53 (73)
    Duplex Print
    Short-Edge Binding
    Ec&l2S (s)
    027 038 108 050 083 (115)
    1B 26 6C 32 53 (73)
    Long-Edge (left) Offset Registration
    # of Decipoints (1/720")
    Ec&l#U (u)
    027 038 108 #...# 085 (117)
    1B 26 6C #...# 55 (75)
    Short-Edge (Top) Offset Registration
    # of Decipoints (1/720")
    Ec&l#Z (z)
    027 038 108 #...# 090 (122)
    1B 26 6C #...# 5A (7A)
    Page Side Selection
    Next Side
    Ec&a0G (g)
    027 038 097 048 071 (103)
    1B 26 61 30 47 (67)
    Page Side Selection
    Front Side
    Ec&a1G (g)
    027 038 097 049 071 (103)
    1B 26 61 31 47 (67)
    Page Side Selection
    Back Side
    Ec&a2G (g)
    027 038 097 050 071 (103)
    1B 26 61 32 47 (67)

Maybe you are looking for

  • Multiple itunes (libraries) for multiple ipods

    I have read the FAQ's in several places and my specific situation is not addressed so here goes... I just got a new computer and when loading my itunes library/ipod and my wife's itunes library/ipod I would like to do so without setting up a second u

  • Upgrade straight to PI 7.1 EHP1 possible?

    Hi Experts - We are running PI 7.0 SP12. Can we directly upgrade to PI 7.1 EHP1? Or firstly complete move to PI 7.1 and than apply EHP1 separately? Thanks for your ideas. Mathias,

  • Camera Raw 7.2

    Where on the Adobe site can i find the download for Camera Raw 7.2?  I have only found 7.2 and the various DNG updates.  Thank you for your help. RKMcnamara

  • Can I specify a price list for an invoice other than the customers default?

    Can I specify a price list when I enter an invoice that will override the customers default price list?

  • Goods Issue from X-steps

    Hi, I want to do GI through X-steps. i have done the following. 1.Created X-seps with Characterstics PPPI_Material_Quantity, PPPI_Material, PPPI_Material_Consumed,PPPI_Material_Short_text in Paramers tab and Valuation tab also i completed 2. then i c