command-line-interface

PHP extensions not found via httpd but are found from CLI, with the same php.ini

落花浮王杯 提交于 2019-12-24 09:52:10
问题 I wanted to use some extensions of PHP 7.1 after installing it and Apache 2.4 and on my Windows 7. I wrote a small test script index.php to call some functions of the given extensions. <?php var_dump(mb_strlen('p')); var_dump(mysqli_connect_error()); and uncommented the appropriate lines from the php.ini , like ... ;extension=php_ldap.dll extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysqli.dll ;extension=php_oci8_12c.dll ; Use

PDO returns no results while MySQL command line returns expected result

大兔子大兔子 提交于 2019-12-24 08:07:03
问题 I was working with database, running dynamically generated query. Everything was just fine, when I noticed problems with encoding in couple of rows in one table, so I repopulated it from backup and rebuilt the table. After this action, PDO returns empty result and doesn't throw any exceptions, however, the same query with the same parameters executes successfully (returns some rows) from the command line. I copy-pasted both query and parameters from var_dump() output to run from command line.

How to run pytest with a specified test directory on a file that uses argparse?

感情迁移 提交于 2019-12-24 08:05:04
问题 I am writing unit tests for a Python library using pytest I need to specify a directory for test files to avoid automatic test file discovery, because there is a large sub-directory structure, including many files in the library containing "_test" or "test_" in the name but are not intended for pytest Some files in the library use argparse for specifying command-line options The problem is that specifying the directory for pytest as a command-line argument seems to interfere with using

'sstableloader' is not recognized as an internal or external command,

自古美人都是妖i 提交于 2019-12-24 07:46:36
问题 I have bunch of SSTables with me that I got from somebody within my team. Now I was trying to push those SSTABLES into Cassandra database . I created corresponding keyspace and column family successfully. Now as soon as I execute SSTableLoader command, I always get below exception? S:\Apache Cassandra\apache-cassandra-1.2.3\bin>sstableloader C:\CassandraClient-LnP\201304050000\profileks\PROFILECF 'sstableloader' is not recognized as an internal or external command, operable program or batch

Nativescript Stuck at Copying template files

半城伤御伤魂 提交于 2019-12-24 06:00:03
问题 I have a NativeScript + angular project it was working fine until i upgraded my cli to 7.0.3 now i can't run the following : tns run android --bundle because it get stuck at : Webpack compilation complete. Watching for file changes. Webpack build done! Copying template files... I've tried to wait more than an hour all it created was platform folder with android and temp-android and not the complete project it use to generate my environment is currently like this when i run ng --version from

Nativescript Stuck at Copying template files

99封情书 提交于 2019-12-24 05:59:39
问题 I have a NativeScript + angular project it was working fine until i upgraded my cli to 7.0.3 now i can't run the following : tns run android --bundle because it get stuck at : Webpack compilation complete. Watching for file changes. Webpack build done! Copying template files... I've tried to wait more than an hour all it created was platform folder with android and temp-android and not the complete project it use to generate my environment is currently like this when i run ng --version from

Nativescript Stuck at Copying template files

北战南征 提交于 2019-12-24 05:59:06
问题 I have a NativeScript + angular project it was working fine until i upgraded my cli to 7.0.3 now i can't run the following : tns run android --bundle because it get stuck at : Webpack compilation complete. Watching for file changes. Webpack build done! Copying template files... I've tried to wait more than an hour all it created was platform folder with android and temp-android and not the complete project it use to generate my environment is currently like this when i run ng --version from

How to run multiple PHP scripts from CLI

风流意气都作罢 提交于 2019-12-24 05:54:12
问题 I have three different crawler scripts that I want to run in parallel and I'm wondering what command do I use to execute all three at the same time. I'm on a nix platform 回答1: if you're on a *nix platform, putting space ampersand ( & ) at the end of the command should put it in the background, giving you back your shell to run other commands. Obviously you want to make sure the output of the job goes to a file and not standard output (screen) or the output will get confusing between the

Printing a MS Word file from cmd

梦想的初衷 提交于 2019-12-24 03:54:05
问题 Is there any way to print a .doc or .rtf file from the Windows command line silently? I am working on a receipt printing application and I would like to perform a silent automatic print using a cmd command. 回答1: Wordpad can open rtf, doc and docx files, so you don't even need word. Then you can use wordpad's command line switch to print to the default printer. start wordpad.exe /p "path\filename.ext" 回答2: Shell is an accepted Windows terminolgy and refers to the graphical user interface. It

Creating a .Net solution on the command line with mono

我只是一个虾纸丫 提交于 2019-12-24 03:50:18
问题 I run Linux and have Mono installed, I do not have MonoDevelop installed. I would like to create solution and csproj files from the command line. How do I do this? A similar question has been asked, it was asked some time ago, with an answer stating it can't be done. But I can't accept this is the case. It appears Microsoft has a such a tool, projectgen.exe, at least for projects. If this truly is not possible what other options do I have? Do I need to hand generate templates and then modify