Jump to content

Wikipedia:Reference desk/Archives/Computing/2023 July 21

From Wikipedia, the free encyclopedia
Computing desk
< July 20 << Jun | July | Aug >> Current desk >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


July 21

[edit]

True Image Compatible Toner Cartridge

[edit]

Do you have use True Image toner cartridge? I want to know if it have high quality as the original. I think the original toner cartridge has higher price than this product. But I worry about the quality about compatible toner cartridge. Nancy2342 (talk) 02:24, 21 July 2023 (UTC)[reply]

I don't think our reference desk is the right forum to discuss the quality of compatible toner cartridges of specific manufacturers. Any answers given here would be anecdotal anyway; as with any product, some users will have had only good experiences while some will have been less happy. Here are some links to consumer reviews: [1], [2], [3], [4].  --Lambiam 06:33, 21 July 2023 (UTC)[reply]
Here is a meta-reviews site. You may wish to enter "toner cartridges" or "toner cartridges for color images" and contemplate the results. This site belongs to Nexstar Media Group. I can't guarantee that they aren't paid to promote products, nor can I guarantee that about anyone you might seek reviews from.  Card Zero  (talk) 06:35, 21 July 2023 (UTC)[reply]

Installing Composer

[edit]

Please consider the command:

php composer-setup.php --filename=composer --install-dir=/usr/local/bin

What is the purpose of the --filename=composer flag?

I didn't find an explanation in man php. In the php manual only this appears:

--file file
    -f file Parse and execute file

It doesn't help me understand what is that --filename=composer.

Thanks. 2A10:8012:F:9121:5771:DF0E:20E2:993A (talk) 14:15, 21 July 2023 (UTC)[reply]

Judging by the installation instructions here, the file composer-setup.php is what begins downloading if you visit getcomposer.org/installer, although it downloads under the name "installer". Opening this file in a text editor reveals lines such as:
$filename = getOptValue('--filename', $argv, 'composer.phar');
and
if ($installer->run($version, $installDir, $filename, $channel)) {
and this in function displayHelp()
--filename="..." accepts a target filename (default: composer.phar)
and these lines at the start of the function run()
* @param string $filename Specific filename to save to, or composer.phar
public function run($version, $installDir, $filename, $channel)
...followed by
$this->initTargets($installDir, $filename);
and later on there's
if (!$write) {
throw new RuntimeException(sprintf('Unable to write %s to: %s', $filename, $path));
I could go on, but I think you get the drift. If you don't supply a name, the name will be composer.phar. If you supply the name "composer", so far as I can tell the resulting PHAR (file format) file will be called composer. This seems like a slightly worse choice than the default.  Card Zero  (talk) 14:45, 21 July 2023 (UTC)[reply]
To clarify, the --filename parameter is being passed to the php script composer-setup.php, not to php itself. So the php man page won't know anything about it. CodeTalker (talk) 23:38, 21 July 2023 (UTC)[reply]