Formatting code and output with Courier font

Hi,
I have several problem in inserting code and output for SQL and PL/SQL.
I.e.:
If I insert the code below formatting usin Syntax highlight as SQL:
SELECT empno, sal
  FROM emp
WHERE sal > ALL (2000, 3000, 4000);
Is there a way to have Courier as font to retain the correct indentation?
Another problem. Suppose that I run the query below:
SELECT *
  FROM emp
WHERE deptno = 10;
and I want to paste the output as Courier:
If I copy and paste the output from SQL Plus:
EMPNO ENAME 
JOB         
MGR HIREDATE    
SAL  
COMM
DEPTNO
7782 CLARK 
MANAGER    
7839 09-JUN-81  
2450               
10
7839 KING  
PRESIDENT       
17-NOV-81  
5000               
10
7934 MILLER
CLERK      
7782 23-JAN-82  
1300               
10
It is pasted as a table. Even changing the font is not helping to have a good formatted code (note the header not aligned with data columns).
I can use HTML code to paste it. I.e.:
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
      7839 KING       PRESIDENT            17-NOV-81       5000                    10
      7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
But it is taking quite a lot to paste the code.
Any suggestion?
Regards.
Al
Message was edited by: AlbertoFaenza

BluShadow wrote:
Well, I hope they get around to using fixed space fonts on the Syntax Highlighting options, as I quite like the fact it creates line numbers for the code, as that will be useful when discussing issues.
I agree Blu. The line number is useful. If they only can use a fixed space font would be perfect.
I also have the problem that randomly my output is pasted as a HTML table and still could not understand why it happens.
This one i.e.:
EMPNO ENAME
JOB        
MGR HIREDATE   
SAL 
COMM
DEPTNO
7369 SMITH
CLERK     
7902 17-DEC-80  
800              
20
7566 JONES
MANAGER   
7839 02-APR-81 
2975              
20
7788 SCOTT
ANALYST   
7566 19-APR-87 
3000              
20
7876 ADAMS
CLERK     
7788 23-MAY-87 
1100              
20
7902 FORD 
ANALYST   
7566 03-DEC-81 
3000              
20
I notice that just adding a blank line as first line solve the issue.Regards.
Al

Similar Messages

  • Formatting Input and Output

    Dear Forummembers
    I am having some problem in formatting output in a Java code.Actually I have to worite some data into a text file about each product.
    For each product there will be one line mentioning it's code, description and availaible quantity.As the code is of 6 digits I am having no problem in Aligning the code and description in each line.But as Description is not so, the availaible quantity can't be aligned columnwise.Can u pls help me.
    I have one mor query too -
    The program that I am writing has actually got Classes namely Product, Catalogue and Order.Product should be added to Catalogue and Order is used for accepting orders from Customers.Now I can't understand by one of the things as following -
    "Much of the systems functionality requires you to manipulate a product object. Therefore, you need to be able to obtain a reference to the product that you wish to manipulate. It is advisable that you provide a method in the Catalogue class named getProduct, which accepts the product code and returns the reference to the relevant object. If the product code supplied to this method is not the code of a valid product (according to those that in the Catalogue), then you should return null"
    I do understand what is mean by referece.But i am not clear about the functionality of the getProduct() method.After getting product code as the parameter, what should it return?
    i would be grateful to you if you can kindly address this issue
    Regards
    RK

    I don't really understand what you mean by the first part of your query, is this to align columns in the text file? Why are you using a text file to display the data instead of something with a more simple tabular layout?
    As for the reference to the object, if the method must obtain the product from a list of products then presumably the method will be along the lines of:
    public Product getById(String ID){
    ...//Loop through list of products until we find the ID
    ...//Return the Product with the specified ID (I'm presuming the ID is a variable in the Product class and not the ID in an array or list?)
    }

  • Problem with Courier font since upgrading to Office 2007

    Hi everybody,
    Since we upgraded to Office 2007, one of our Acrobat users (he is the only person in the firm really using Acrobat actually) has problems when exporting Word documents to PDF.
    So he is using Word 2007 and Acrobat Pro 9 (included in the CS4), he is modifying documents that were created with earlier versions of Word and the problem he has is since he has upgraded to Office 2007 (he was already using Acrobat Pro 9 without problem with Word 2003), text in the Courier font is replaced by those rectangles like unknown characters :
    So I would like to know what has changed in Word 2007 that makes it that the Courier font cannot be exported to a PDF (from what I read it is one of the standard fonts always included in PDF readers), if I can change some settings to fix it without modifying all the Word documents or at least get a warning when it is going to happen.
    Indeed the user's biggest concern is that he doesn't even receive a warning that that specific font won't be output correctly so he might change only some text or images in the Word document and export it to PDF and he will still have to check the whole document to make sure there was no Courier text that didn't make it through.
    P.S. He is using the Adobe PDF printer to do the export.
    Thanks.
    Jonathan V.

    Actually, I have a bit more information to share :
    In the PDF files created before upgrading to Office 2007 (with Word 2003), I can see that Courier - Type 1 - ANSI is partially embedded (I thought it was supposed to be one of the base/system fonts).
    I tried to export one of the Word documents affected again, replacing part of the Courier text with the Courier New font to see if it would work, the text in Courier New is showing correctly while the text in Courier still shows as squares.
    When I check the fonts in the PDF file, CourierNewPSMT - TrueType - ANSI, is embedded (not partially ??) and Courier - TrueType - ANSI is partially embedded.
    So I don't understand why Courier was embedded as Type 1 (but it worked) and now it supposedly embeds a TrueType Courier font that doesn't seem to work.
    Again, the major problem is that there is no warning that the font won't output correctly, so you have to check the whole document again or you might end up with some parts unreadable.

  • Air 2.6 and textField with embedded fonts weirdness on iOS

    Hi to all of you.
    Im just in the process of trying adobe air to create a gmae on iPhone 4 and i did manage to package corrrectly and intall and make some tests on optimisation with gpu mode on. During those tests, i try exporting a movieClip into a .swc and used it in FlashDevelop. Loaded the thing no problem...That movieclip contains a dynamioc textfiled wich i plan to use to show infos...
    Now i add 10  mc (dots) moving from top to bottom in one loop and i use the textfield to show some kind of score points, so i embed numbers in it with a custom font.
    now when i click a mc, i add 100 the the score and show the total in the textfield...but at 3500 points, the fps drop to 15 fps, not 3400 nor 3600...
    I did many tests, waiting longer before reaching 3500, using one dot mc instead of 10...
    The thing is memory in air player doesnt go up...stays pretty much at 2.6 mb - 30 fps but at 3500 gets to 2.6 mb 15fps...will go back to 30 at let say 4200 then back to 15fps at 5000 and so on...
    I did not implement any actions at 3500 points...
    So i implement a back button wich get the "game view" mc out of the way and stops all process in it to return to the main view ...fps is back at 30 fps steady.
    But as soon as i put the "game view" mc on the display list (even without restarting enterframe process that move the dots) it drops to 15 fps...
    So this point to the game view mc itself...then i put the embedFonts property to false on the score texfield...BAM! steady 30 fps with 40 mc animated in one loop...no more slowdowns can get to 20000 points and not a single perceptible lag (but of cours i loose my custom fonts in the textfield, showing arial instead)...
    Any pointers to the problem? Or advices with textfields, fonts and iOS ?
    I use retina resolution and pretty much all is bitmap...
    I reuse my instances, use one loop, least possible eventListeners, etc.
    Thanks for any help you can provide and thanks to adobe, this is nice to be able to test concept on touch screen. Keep up the good work !

    Hi, so it is better to place all my elements with the code and not export a mc with a lot of element in it already placed?
    As for the int value, i tought of it since it may be possible that my textfield received a value like 3500.0000000000000000000000000000000000001 and since my texfield is not autosize, i didnt see that...
    Ill give it a try
    Thaks

  • Continuous in- and output with PCI-6229

    Hi All,
    I'm currently evaluating a PCI-6229 card on RTX (and maybe InTime later on). The main goal of the evaluation is to prove we can get hard real-time, deterministic behaviour from this system in order to use it to replace our current DSP-based solution.
    To do so, I'm setting up a rather simple program that should
    - continuously acquire 1 channel @ 20kHz
    - have a processing loop of 5mSec, ie 100 samples; this loop should be entered every 5mSec as exactly as possible
    - do some simple processing in the loop (thresholding the signal)
    - bring out the result on an analog output (low signal if signal is under threshold, high signal for all samples above the threshold)
    I could get the basics working pretty quickly: continuous input, continous output, continuous input with dma, input using interrupts.
    Trying to combine everything isn't really working out however.. Normally I'd try and try until knowing the device inside-out but now I have a rather strict timeframe so hopefully someone here can provide some insight.
    Questions:
    1. For the input, I can get an SC_TC interrupt each time one frame is scanned. I measured this on a scope by toggling a digital output on the card, and there's no noticable jitter on the squarewave which is a good sign.
    However I'd like to combine this with DMA, but the DMA is lagging a bit on the interrupt so I end up having to poll the DMA after all in the ISR, so there's no use using the interrupt in the first place.
    Is there a way to set up continuous DMA servicing and get an interrupt from the DMA system itself after 100 samples are transferred?
    2. For the output, I cannot get continuous mode working with DMA, only by writing to the FIFO manually. I can preload a couple of frames with the dma, but after calling aoStart(), tDMAChannel::write() works once, but all calls afterwards return kBufferUnderflow. Any ideas?
    I probably have to check when exactly to write to the DMA, but I have no idea which of the many status functions to use. Tried with AO_Status_1.readAO_FIFO_Half_Full_St() but that's not it. tried to write it on each UC_TC interrupt but that didn't work either.
    3. DMA is, to my understanding, a more performant way of getting samples into the host and doesn't require to call AI_FIFO_Data.readRegister() in a loop and vice-versa for the output side. But are there really benefits in using DMA?
    4. I made a basic program to bring everything together the simplest way possible: preload 100 samples in the output FIFO, start analog input, start analog output, have the ISR copy all values directly from input to output FIFO.
    Putting both analog signals on a scope, I expected to see the input and about (see question5) 5mSec later the same signal on the output, with no jitter.
    However what I see is the output is just floating around, in other words there is no fixed delay between output and input! How is this possible? I use the same divisor for in-and output. Is there any sample code available that achieves what I want?
    5. Is there a way to start both input and output at the exact same time, eg at the same edge of a certain clock pulse? How are input and output synchronized? Can I be sure they never go out of sync?
    Solved!
    Go to Solution.

    update: looking at the DAQmx control samples, it seems some of them set the start trigger for the AO to the AI start trigger. I mimicked this using kAO_START1_SelectAI_START_1 with the aoTrigger method, and the sync seems better now: the output starts exactly 10mSec after the input (or 5, if I preload only one frame) and stays in sync for about 25mSec. That it goes wrong.
    At the moment I'm using no DMA, just one simple interrupt routine that basically does
    board->Interrupt_A_Ack.writeAI_SC_TC_Interrupt_Ack( 1 );
    board->Interrupt_A_Ack.flush();
    toggle ^= 1;
    board->Static_Digital_Output.writeRegister( toggle ? 0x00 : 0xff );
    for( u32 i = 0 ; i < numSamples ; ++i )
      const u32 val = board->AI_FIFO_Data.readRegister();
      board->AO_FIFO_Data.writeRegister( val );
    In the screenshot in the attachment you can see this goes wrong: cursor A shows the position of the input signal (=AI 0, yellow) that should be shown 10mSec later at the output (blue line=AO). Cursor B shows this 10mSec later position, and you can see there's some garbage right after the cursor. This is the data that was written to the AO FIFO in the fifth interrupt (interrupt position show in purple).
    Trying to figure out where that comes from, I put board->AI_Status_1.readAI_FIFO_Empty_St() in the interrupt loop. And effectively, when trying to read the 500th sample, it reports that the FIFO is empty. Consequently the data written to the AO FIFO does not make sense anymore. But I do not understand how can this ever happen? The SC_TC interrupt is fired whenever 100 samples are read from the input. So after this interrupt occurs, the FIFO should always contain at least 100 samples, no?
    Attachments:
    tek00000.png ‏22 KB

  • HUB showing contact number with country code and not with its name..blackberry Z10 STL100-2

    I have an issue with Text Messages and call lists, in my blackberry Z10 (STL100-2), which is, If I have not saved my contact numbers without country code, the msg may appear in local formate (w/o country code), and it also appear as International formate (another times), and though the number is same (only saperate is country code) in the hub, it appear as two conversation. for eg: if I sent txt to 9899100 (w/o country code), reply used to come as +960-9899100. or vice-versa.
    So its very difficult. and here i came for help.
    You might know a lot what we do not know as we do know a lot you do not know. Asking is the way to get to know....

    The movies were all on my SD card. They are also not backed up by Link which is why had them synced to my phone as a poor man's backup.
    So either Link did not backup the necessary licensing information in the main memory of my phone, or Link did not synchronize the necessary licensing information off my SD card. Either way I am stuck with 3 movies that I cannot play, because I can no longer find them in the BlackBerry World store to re-dowbload whatever licensing information is needed.
    I even just tried a media restore from Link because it was 138 MB in size (and in don't normally store anything on my phone's main storage), but alas no licensing information was restored.

  • Counting peaks within one minute intervals and outputting with time stamp

    I'm currently working on my senior design project for biomedical engineering. We are creating a piezoelectric sensor in order to measure respiration on a bed non-invasively. The sensor lays on bed under subject and records movement due to respiration. We currently have figured out how to detect peaks. However, now we want to count number of peaks detected within a 1 min time period and output that result with a 'timestamp'. We would like the output to be into excel as two columns, rate(number peaks in 1 min) and time. Time in minutes and not actual time is fine. Sampling rate was 500Hz.
    My current VI has peak detection criteria and can output total number of peaks and their locations.
    Any help would be greatly appreciated as this is our last step before verification and have been stuck on it for awhile. 
    It won't allow me to attach a tdms file in which our data is stored as, so I can't upload the data currently.
    Also attached is our current VI for peak detection labeled 3.26.Resp.PeakDetect.
    Thanks for any and all help!!
    Attachments:
    3.26.Resp.PeakDetect.vi ‏146 KB

    I see no need for a case structure.  Or did you set up a state machine that I missed?
    I recommend making a VI that does nothing but read your 30,000 samples and process it (counting the peaks and what not).  From there, you create the array for the number of peaks and the time (in minutes).  Then you can call that VI inside of a loop to build up the array of data points.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Smartform - Problem with COURIER font

    Hi All,
      I assigned a COURIER font to a field in smartform. The font in the printout is not the same as font shown in Smartstyle preview. Please suggest your ideas to solve this problem.
    Thank you.
    Regards,
    Ramesh

    Hi,
    The Courier font style works like that only. even if you do in MS-word also it will look different.
    it will display / print bigger fonts when you take the prints compared to preview
    please reduce the size of the font to 8 or 9 which is good to display
    or use HELVE which will look like ARIEL
    REgards
    Shiva

  • Formatting DATEs with FORMAT clause and not with "to_date()" ?

    Well I know I could format a DATE inline with the to_date() function.
    But is there a way to format it in a separate FORMAT clause similar to
    numbers?
    If yes how would a format of
    dd.mm.yyyy
    or
    yyyy.mm.dd hh:mm:ss
    look like?

    user559463 wrote:
    Ok, again I am searching something like
    COLUMN "expiry" FORMAT "YYYY.MM.DD HH:MM:SS"No, it can only be done via TO_CHAR or NLS_DATE_FORMAT. I think you should read SQL*Plus COLUMN command.
    SY.

  • Kerning different between mac and pc with ttf fonts?

    Hello!
    When I take a file from my PC to my company's mac the ttf font kerning is fine, but when I go from mac to pc the kernning gets all messed up. is there anything that I can do to fix this? Or do I need to buy a mac to be sure I get accurate fonts across my and my company's computers?
    Thanks!

    Kerning information is part of each font, whether TrueType, PostScript Type 1, or OpenType. If you have the exactly same font on both platforms (in their respective versions, if necessary), going back and forth should be a straightforward process. (The only exception concerns ligatures with TT and PS fonts, but, even there, the kerning should be unaffected.)
    Are you sure you are not seeing just some screen display anomaly? Have you compared actual printed output?
    Are you using a professional-grade font? Many cheap or free fonts are deficient in areas, such as kerning. You might think you have the same font on both platforms, but the "cheap" font on your Windows machine might, in fact, not be the exact equivalent of an identically named font on your company's Mac.

  • Problems in CS3 and AS3 with embedded fonts

    Hi. I recently downloaded the trial version of CS3 to test it
    out. I'm an experience AS2 developper, and have 10 years of C, C++,
    C#, Java, PHP ... programming experience on BIG projects before
    starting flash.
    I have been trying to use an embedded font in AS3 with a
    dynamically created textfield. I've tried all the examples in
    O'Reilly's ActionScript 3.0 Cookbook. They suggest using the
    [Embed] meta tag, but quite honestly it does nothing in CS3. I had
    the Size Report option selected, and it shows clearly by the file
    size the font isn't present in the SWF.
    Then I tried doing it the way I did in Flash 8. Again there
    no luck. My TextField exists, but there is simple no font being
    rendered.. Here is my bit of code.
    In my library I have a symbol called arialBold. In the
    linkage settings, I have "Export for ActionScript" checked, and
    "Export in first frame" checked. The class is "arialBold" but I
    wonder if that's right? and the Base class is "flash.text.Font"
    I tried every variation I could think of. I must be doing
    something wrong. You can find my file here :
    http://www.newcommerce.ca/as3/fonttest.fla
    Thanks for your help! If you can fix this, i'll be very
    happy!

    this code works
    var tf:TextField = new TextField();
    var tfor:TextFormat = new TextFormat();
    tfor.font = new _TrebushetMS().fontName;
    tfor.italic = true;
    tf.width = 300;
    tf.height = 200;
    tf.embedFonts = true;
    tf.border = true;
    tf.defaultTextFormat = tfor ;
    tf.text = "this is a test";
    this.addChild(tf);
    This code does not work
    var tf:TextField = new TextField();
    var tfor:TextFormat = new TextFormat();
    tfor.font = new _TrebushetMS().fontName;
    tfor.italic = true;
    tf.width = 300;
    tf.height = 200;
    tf.embedFonts = true;
    tf.border = true;
    tf.setTextFormat(tfor) ;
    tf.text = "this is a test";
    this.addChild(tf);
    i don't know why

  • Format issues and output to SD DVD

    I have about 40 hours of footage that I shot with a JVC HM100U, The file codex is 1920X1080 XDCAM EX 1080p30 (35mb/s VBR)
    It looks great on my standard TV (after outputting to mpg2 for SD DVD, But when I play them on my blu-ray (PS3) they look really choppy.
    Now my question, is there a format that I can burn then in that will allow for clean video on both machines. My commercial SD DVD don't look as good as HD stuff, but they don't look as bad as what I am getting.
    If anyone has overcome this problem I would appreciate any help.
    Also, if there is a better capture solution for this camera than what I have se;ected, please advise.
    Thanks,

    Well....
    Everyone replying to questions here is a FCP user like yourself and a volunteer.
    We don't have access to all possible hardware permutations.
    To answer your question, you would need to have someone browse through here that has knowledge of the same camera and a PS3. If coincidentally, they had experienced the same issues and found a fix, then you would have probably received a reply.

  • Formatting Bex queries output with WAD Script WebItem

    Hi All,
    We have a requirement of displaying some text for a key figure value in WAD.
    Scenario:
    We have one input enabled query lets say Q1, in that a KF1 can have either 10 or 0 value. If user input 10, then in other report lets say Q2(which is display report), status should display 'Yes' and if 0 status should display 'No'. Kindly note reports are built in WAD
    Doubts:
    1. Can we replace keyfigure value with text in WAD using Script?
    2. If Yes can you please share a sample code for the same.
    Thanks and Regards,
    Sparsh

    Hi,
    try using modification module for analysis item, try with value "string" instead of "image"
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6044cb8e-972c-2e10-a38e-ae1377028e7d?QuickLink=index&overridelayout=true
    let us know if it's ok.
    hope it helps.

  • Dreamweaver code view problem with Turkish fonts

    All my preferences is set to Turkish encoding, but only at the code window Turkish characters aren't displayed right. If i type directly into the code window, everything is ok. but if i write something to design windowi the characters change automatically. i'm attaching a picture to show.
    thanks in advance.

    What you see there is not a problem. It's the expected result.
    When the Web first started, it supported only unaccented characters. So, to create letters like ö, it was necessary to use HTML entities, which is what you see in Code view.
    Nowadays, browsers support Unicode (UTF-8), which doesn't need to convert accented characters.
    Go into Preferences (from the Edit menu on Windows, Dreamweaver window on a Mac), and select the New Document category. Set encoding to UTF-8. To change existing pages, use Modify > Page Properties, and select Title/Encoding.
    With UTF-8, ö will still be ö in Code view.

  • HT1349 I job issued me a Iphone. How do I find product code # and syce with my pc window 7?

    He has a MC608LL  Serial # 7n108smaa4s

    The model number is on the back of the phone.  You can check it against this: http://support.apple.com/kb/HT3939.  You sync it with iTunes, see http://support.apple.com/kb/HT1386.

Maybe you are looking for

  • How can I read ALL the compilation errors in a DOS window?

    On compilation using a DOS window, if the number of errors exceeds the window size, some of the errors disappear off the top of the window and I cannot read them. Is there an effective solution to somehow use scrolling of the DOS window or transfer t

  • To calculate sales price of a material

    Dear Experts We have a requirement to find the sales price of each material for a particular material. The purpose is to create the custom program that should propose the business to tell how many materials can be sold to a particular customer with t

  • Current Date in the Text Field

    Hi, I have got a requirement where i have one text field and one data/time field. Once we select the date from the date field, the date selected in the date field should be reflected in text field in the format DD.MM.YY along with some other text. fo

  • ORADIM log error message

    newbie question, taking DBA course, but instructor can't help. fresh win2000 Pro install, default install of Oracle 8i Enterprise. the default DB installed was named MyOraDb. i am going thru the steps to create a new database named DB01. created the

  • Restrict clicking enter key in the bdc program

    Hi all,          There is one BDC program for Vendor Master creation. In the output it is waiting for the enter key for each vendor creation. Suppose we have 1000 vendors to be created. Then we need to click enter key 1000 times. Anybody please sugge