it's a simple question, I just want to know why this command is not working for me.
I'm using on terminal this:
lpr -o saturation=0 nameFile.png
This should print in black & white but this always is printing in color. Maybe i need to install something and I don't know, but I can't find a solution.
Someone knows what I should do? Thank you!
It may help if you try
lp -o saturation=0 nameFile.png
or
lp -d name-printer -o saturation=0 nameFile.png
Related
I am trying to switch from screen to tmux. When I run hg status, I get damaged output like this:
It doesn't happen to git, it doesn't happen with screen. Any advice will be very appreciated. Thanks.
Hmm, it seems like hg is doing something very strange. My guess is it has got completely the wrong idea about how to show colour, but there should be no reason for it to do anything different in tmux than screen.
What does echo $TERM show inside tmux before you run hg? What does it show outside tmux?
Have you created a .hgrc or similar configuration file? What's in it?
Is it the same if you do \hg --pager never --color always status?
What does \hg --pager never --color always status|od show?
Based on an answer from Nicholas Marriott and comment from Rudi: the problem seems to be that $TERM is set to screen in tmux (whilst std. gnome-terminal has it set to xterm-256color and screen to screen.xterm-256color).
Therefore the solution (at least the one working for me) is to set terminal in the ~/.tmux.conf as follows:
set -g default-terminal "screen.xterm-256color"
Note: using hg --pager never also works, however that is not an acceptable solution.
I am new to Yosys and trying to use YosysJS to generate a json description of an input verilog file.
There is documentation on how to use the command in Yosys. But I do not understand how to use it in YosysJS. I can draw an RTL diagram after different stages of synthesis using following code:
ys.write_file("input.v", document.getElementById("code").value);
ys.run("design -reset; read_verilog input.v; synth -run coarse; show -
stretch");
YosysJS.dot_into_svg(ys.read_file("show.dot"), "svg");
I would like to know what command needs to be run in the ys.run()
function as a parameter.
Thank you.
What commands you'd want run depends entirely on what you are trying to do. See What is a good "template" Yosys synthesis script? for some pointers. Running help will give you a list of all commands available (and help <command> will print details for the specified command).
I need a simple npm script to have includes in my html file to make it modular, it shouldn't be a gulp/grunt/webpack plugin, just a regular npm-lib, like node-sass or whatever.
I tried to use nunjucks/twig/html-importer - they all haven't any watch options, so if you know what I'm seeking - sharing would be appreciated!
UPD: or maybe if anyone has any ideas how to watch nunjucks templates and run build on changes - I will be happy to see your solution as a line of npm-script. nunjucks-cli doesn't work.
Ok, I've found a solution.
I still used nunjucks-cli, but I used to play with paths, and looks like they were required to be written in quotes, instead of example's version, so script "nunjucks -w -u '*.tpl' -o ./" works fine
I am desperately trying to run octave in a VirtualBox of Ubuntu 12.04. I have made a file called ANGRY.m which has lines as follows:
%How badly does octave suck?
OCTAVESUCKS=5
That is it. When I try to run it (i.e. enter ANGRY into the command line I get this error message:
error: `ANRGY' undefined near line 1 column 1
I've had things running better than this in octave and have absolutely no clue why it is doing this or how to fix it or how to go about trying to search for what is wrong. I am sorry I cannot be more helpful. But I really can't. Please aim any answer at a total moron. I'm really not a programmer.
You misspelled ANGRY when you put it into the terminal...
Do you see your file ANGRY.m when you type
ls
in Octave? Check the working dir with "pwd"!
for some reason, neither the octave terminal, nor my editor recognizes the rectangle-function.
For example, when I try to get the documentation via the help command, I get this:
octave-3.2.4:41> help rectangle
error: help: `rectangle' not found
I'm sure it's an incredibly stupid error, but I just can't find it.
Everything else is working fine.
I appreciate any help!
Hannah