Programming :: Doesn't Print Anything Trying To Run Awk Code

May 22, 2011

I am just trying to run the following piece of awk code. But it doesn't print anything. where I am doing wrong?

[code]...

View 5 Replies


ADVERTISEMENT

Programming :: Why Doesn't The Javax Swing Message Print

Mar 18, 2010

why the message string isn�t output to the Applet window in the code below?

Code:
import javax.swing.*;
class printit extends JApplet {

[code].....

View 4 Replies View Related

Programming :: Code That Doesn't Seem To Be Working Right With Gcc Compilers, But They Do Compile?

Dec 11, 2010

I actually thought there was something wrong with my programming skills.ut after I compiled the same code using Visual Studio, it worked. So here's the code that doesn't seem to be working right with gcc compilers, but they do compile. Note I'm using the Cygwin 3.4.4 version of gcc and 4.5.1 version of gcc from MinGW.

Code: #include <stdio.h>
#include <math.h>
int main()

[code]...

View 5 Replies View Related

Programming :: GDB Doesn't Provide The Correct Line In The Source Code

Jan 23, 2011

I found a strange problem when I use gdb in eclipse to debug. When I step in the program, the register RIP(I'm using x86_64 machine and that's EIP in 32 bit mode) shows correctly but the line stepping in the source code may be far from the correct line. For example, when there is no loop in the source code, the RIP keeps on increasing and the current instruction pointer goes back to several lines back. I'm sure the source code is the right one because I when I checked the memory and local variables after several lines the values are all correct. The source code has many empty lines and does it matters with GDB?

View 3 Replies View Related

Programming :: HTML::LinkExtor Doesn't Work \ Always Return 0 Links Even If The Status Code Is 200 OK?

Sep 25, 2010

I try to fetch links from a URL using HTML::LinkExtor, but it always return 0 links even if the status code is 200 OK. I am running the following code in Ubuntu 9.04, just curious if the module is too old and its ways of HTTP request is disabled by some platforms.

Code:
#!/usr/bin/perl
use HTML::LinkExtor;

[code]...

View 2 Replies View Related

Software :: CUPS - Print Jobs Shows Completed, But Page Doesn't Print?

Dec 6, 2008

I initially had a problem accessing the CUPS interface (see my other post) and got that resolved by adding the user "cupsys". Now, everything "looks" ok, and when I print a test page, it shows it as completed (in CUPS). However, the page never prints.
The printer is a Canon MP600 (using the canonmp600en.ppd file to configure it). Here's the output of my conf file.

Code:
# Show troubleshooting information in error_log.
LogLevel debug

[code]...

View 8 Replies View Related

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

Debian :: Okular Doesn't Print PDF Files?

Feb 21, 2010

Accidentally noticed that I am NOT able to print pdf files in Okular (Version 0.9.4, KDE 4.3.4). Clicked print and nothing happens, no error message.The same file CAN be printed using evince on the same system. I've created the pdf file using soffice so permissions is not a problem.However, the same file CAN be printed in openSUSE's Okular.If someone can confirm that I am right/wrong, then I can decide whether to file a bug report?

View 3 Replies View Related

Debian :: Hp Laserjet 1020 Doesn't Print

Feb 2, 2010

I have tried to download the latest version of CUPS but do not know how to install it properly using command line commands above 'sudo' and 'sh', and I have tried to install HPLIP but it needs 'cups-devel' installed apparently. My Debian can see the 1020 clearly enough to identify it and give its status as idle, via the CUPS interface. When I try and print a Test page it goes to the spooler, says it is printing OK, but nothing prints. The job then disappears and appears on CUPS as completed. In the old days we would have sent a eof() to make the printer work. Have I got a bug in my HP Laserjet 1020 driver? Or am I missing the great plug-in that is not on the Synaptic Package Manager The SPM says I have HPLIP installed.

View 5 Replies View Related

Ubuntu :: CUPS Bug: A4 Doesn't Print Correctly?

Jan 26, 2010

my printer has a known CUPS bug; A4 is printed as letter size; i.e. printing only appears on the bottom half of the page. I downloaded a ppd file at [URL] but it improved nothing. Also installed the bug's patch (sorry I don't have the bug's number) and followed the instructions; zero results. Upgraded Ubuntu 9.04's CUPS-related repositories to 9.10 but no improvement. Every test page still comes out with just the top third sitting at the bottom.

View 1 Replies View Related

Server :: CUPS Doesn't Let Me Print From Network

Oct 3, 2009

I have an ubuntu server (9.04) that needs to share a printer (a Brother 2070N on USB). To configure cups, I had to modify cups.conf quite a bit to let me access the printer management pages, but I did get it working. I can print using the lpr command, as well as print test pages using the management interface's "Print Test Page" button from any computer on my network. However, I cannot actually set up Ubuntu, Fedora, Vista, or OSX to see the network printer, and it's driving me insane.Brother from any computer on the network I can see the specific printer management page, but no computer can actually print to the printer (other than using the "print test page" button)

View 2 Replies View Related

Ubuntu :: HP F300series Printer Runs But Doesn't Print

Oct 12, 2010

I have an HP F300 series all in one printer. Until about 2 months ago it worked fine in all variations. Now it wont print. I am using Super Os 9.10 version. The printer runs but doesn't print. It works fine in windows.

View 1 Replies View Related

Hardware :: HP LaserJet 1005 Doesn't Print Anymore

Aug 18, 2010

Unfortunately my usb HP LaserJet 1005 printer stopped working since 16th august. It is running under CUPS 1.3.8, with foo2zjs driver (the only one that supports laserjet 1005). I'm not sure, but this is probably related to the updates I've done recently (I don't exactly remember when I did it, but I think it was before the 16th). Here's what I've done:

Code:
# aptitude update
# aptitude dist-upgrade

As this is a home box, I haven't done that for some months, so a lot of stuff has been updated. I'm afraid some CUPS library has been updated and is now bugged, because it always worked without any problem. My question is whether or not there are known bugs on last CUPS version with hp laserjet and if there's any solution to work it out. I already tried to reinstall the printer, reboot the box, plug it to other USB port, reboot the printer, set it as default printer, and many more things. Google search didn't turn up nothing useful. The problem is not on the printer because I plugged it to my windows pc and it worked like a charm, so I'm pretty sure some stupid configuration or bug is messing arround with my printer

[Code]...

View 3 Replies View Related

Hardware :: Hp Printer - Doesn't Work - Says The Print Job Stopped

Dec 12, 2009

I was always able to print with my HP OfficeJet 700 printer in Linux, but all of a sudden when I need to print something important, it doesn't work?! It says the print job stopped. It only printed 1/4 of 1/4 of what I needed to print. It has the correct print settings, etc... but I can't print?! Please help. It was able to print the test page before, but now even that won't print. Even CUPS is having problems connecting to the server. Printing in Windows has the same problem.

View 14 Replies View Related

Networking :: Old 'Axis 150' Print Server Doesn't Support TCP / IP

Feb 27, 2010

I have got an old print server Axis 150. It does not support TCP/IP I know that there was a thread about this print server [URL].... but I didn't found answer to "how to bring it up" there.

View 5 Replies View Related

Fedora Hardware :: Canon S100 Printer Doesn't Print

Sep 6, 2010

F13 showing that Canon s100 printer is founded, installed drivers and everything seems to be OK. But when i try to print text, testpage of what ever, nothing happened. Installed system-config-printer 1.2.4-1.f13, same udev and libs. Cups 1:1.4.4.5.f13, libraries, php modules Here is the Error msg:

[code]...

View 14 Replies View Related

Hardware :: Canon Pixma MP250 - Slackware 13 It Doesn't Print

Apr 29, 2010

Trying to make a Canon Pixma 3-in-1 MP250 to work with my Slackware. I've took the drivers from the canon website (they have .deb, .rpm and sources there) and compile. Basically I followed the instructions from INSTALL files in each subdirectory (backend,cngpij, etc).

Then I upgraded also CUPS to 1.4.3.

Installing the printer in CUPS, I end up with:

Code:
Description:Canon MP250 series
Location:
Driver:Canon MP250 series Ver.3.20 (color)
Connection:cnijusb:/dev/usb/lp0
Defaults:job-sheets=none, none media=iso_a4_210x297mm

It seems ok. But when I send a test page (or any other kind) to printer, it shows some activity on the led display, cups reports the job as completed but nothing happens!

As an extra, I tried to convert .deb packages to .tgz and install from them. The same result, except now the scangear utility is working (so scanning is ok).

How can I find what's missing from here? Maybe it's a bug with cups/drivers or something is missing from configuration?

p.s. On other machine I have an Xubuntu (Karmic Koala). Installed there from .deb packages and the printer works as expected.

View 3 Replies View Related

General :: Cups Generic Text Only Doesn't Print 255 Characters?

Dec 26, 2010

I configured cups and I managed to print successfully with generic text only but my problem is that the printout always comes out as 80 columns. anything more than 80 colums wraps on the next page. I tried changing the pagesize at the textonly.ppd but it didn't work.my textonly.ppd is

*PPD-Adobe: "4.3"
*%
*% Text-only printer definition

[code]...

View 1 Replies View Related

General :: Tried With A New Black Cartridge, Without The Colour One, But 930c Doesn't Print?

Mar 2, 2011

ho una stampante HP DeskJet 930C. Chiedo se per farla stampare devono essere necessariamente inserite entrambe le cartucce nero e colore, o se possibile stampare con il solo nero.Con una cartuccia nuova solo nero, senza l'altra del colore, lampeggia la luce per l'inchiostro e non stampa...ma la cartuccia integra e non sembrano esserci altri problemi. I've got an HP DeskJet 930c: in order to make it print, do I have to put in both the cartridges, black and colour? Or can I put in just the black one? I've tried with a new black cartridge, without the colour one, but my 930c doesn't print

View 3 Replies View Related

OpenSUSE Hardware :: HP P1006 Doesn't Print - Shows The Document Failed

Aug 10, 2010

The printer prints with ubuntu live cd. I deleted the printer from the list and I followed the instructions here. When I tried to print, sometimes it shows that the documents was printed (but my printer is standby) sometimes it shows the document failed.

View 1 Replies View Related

Applications :: Firefox 3+ Doesn't Queue Lpr Print Jobs Until After Quit On RHEL5/10.04?

Jun 8, 2010

We have a lpr server for printing (not CUPS for compatibility with complicated domain/systems). We configured our linux systems -- RHEL4, RHEL5, and Ubuntu 10.04 -- so that lpr is one of the gtk print possiblities by adding 'gtk-print-backends = "lpr,pdf,file"' to gtkrc. This works great for several gtk-enabled applications like Acrobat Reader (acroread).

However, Firefox 3+ (tested 3.6.3 & 3.0.19) doesn't actually queue any lpr jobs until after quitting the application.

View 1 Replies View Related

Slackware :: Libreoffice3.3.2 Printing In SW13.37 - Doesn't Print The Same Font On The Printer

May 21, 2011

After installing libre3.3.2 using the Slackbuild scripts, I found that it displayed fonts correctly, but doesn't print the same font on the printer. The output of the printer should be Arial, but is instead some elongated, overlapping mess.

The same Slackware package installed on SW13.1 prints normally. (Same computer, different partition)

Spadmin used to control the printer fonts, but apparently not anymore.

System: Linux nadrek 2.6.37.6-smp #2 SMP Sat Apr 9 23:39:07 CDT 2011 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ AuthenticAMD GNU/Linux.

View 14 Replies View Related

Server :: Database Table Doesn't Exist [error Code: 1146]

Jun 18, 2010

Recently I got a very rare database issue, it says: Error: Couldn't read status information for table clients_copy () mysqldump: Couldn't execute 'show create table `clients_copy`': Table 'adm_retail.clients_copy' doesn't exist (1146) Error: Couldn't read status information for table dt_mx_emp ()

[Code]...

View 2 Replies View Related

Programming :: Print NaN Using The Awk?

Jun 24, 2010

I want to print NaN value in a file containing of 3600 rows and 7 columns.The illustration of output file which I want to is as follows :

NaN NaN NaN NaN NaN NaN NaN (the first row)
NaN .... NaN
.
.
.
NaN .... NaN (the 3600 rows)

I tried to use below command

awk 'BEGIN {for(i = 1; i <= 3600; i++); printf "%s", "NaN", $1" "$2" "$3" "$4" "$5" "$6" "$7}' > output

Unfortunately, I couldn't get what I want to.

View 6 Replies View Related

Programming :: Print A Value To A File ?

Apr 12, 2010

I have this code:

How can I print &FARAchieved to a file? Or, printing the whole bioReturn would be fine too.

View 8 Replies View Related

Programming :: Print Everything After $date?

Feb 21, 2010

Say I have a line like such:

Code:
today 2010 Feb 21 test10, 12AM

How would I print everything AFTER "2010 Feb 21 "?

What I thought to do so far is to set a variable to the format used in the string like so:

Code:
date="$(date +%Y %b %e)"

So I know I have to use either awk, sed, or perhaps bash substrings to work with the variable $date, but as to how, I'm drawing a blank.

View 5 Replies View Related

Programming :: Print Variable Value In Awk?

May 16, 2011

problem statement:

pattern_search="Exam Name"
sed -n "/$pattern_search/,/hello/"p tmp5 | awk '{if ( $4 != 0 && $4 ~ /[0-9]+.*[0-9]*/ ) print "$pattern_search" " " $0 }'

"tmp5" is a file. this is printing output as

$pattern_search value1

i.e value of $pattern_search is not getting substituted. i am expecting output as

Exam Name value1

View 3 Replies View Related

Programming :: Use SSE(2,3) In C/C++ Code?

Jun 6, 2011

I am working on a project with a lot of vector math and I'd like to find a way to speed it up.eading about SSE, but I've found no explanation on how to actually use it in code (was looking for some kind of hello-world example, complete with compilation instructions).Does the gcc compiler automatically make use of SSE, if you add the -sse(2,3) option on the command line? Or are their specific functions/libraries you need to call?

View 12 Replies View Related

Programming :: Put All The HTML In A Print Statement?

Sep 14, 2010

I have a site which will have, for example, a login system where people have to enter their usernames and passwords, depending on which they'll be let in to the site. So, in code, I've got a line like:

if ($_POST['password'] == $password) {
then do whatever
}
else { print "Wrong password" ; )

My problem is, this "Wrong password" printing is just a solitary line, not keeping with the colours and style of the site, and it looks very bad. I want to ideally, output some HTML, which will have a picture, and print the "Wrong password" in the font and colours I desire. Do I have to put all the HTML in a print statement, and then deal with the nightmare of escaping all the quote marks in it with a ""? Or is there a cleaner method to the whole thing? Maybe something like this -

if ($_POST['password'] == $password) {
then do whatever
}

[code]....

View 4 Replies View Related

Programming :: How To Tell Java To Print 20 When Value Is In That Range

Jul 28, 2011

I've just started programming at my university and I'm finding it a bit hard to get started. I've been given this for homework.Given 2 integers, a and b, print their sum. However, sums in the range 10..19 inclusive, are forbidden, so in that case just print 20The problem I'm having is that i don't know how to tell java to print 20 when the value is in that range.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved