Launching unity app from batch file - c#

Im trying to use the integrated cluster rendering for unity. In order to do so I need to run my application from a batch file with certain command line options.
Here is he documentation
https://docs.unity3d.com/Manual/ClusterRenderingDeployment.html
I tried to open the app in -batchmode using the command line however this wasn't what the documentation meant. So i'm struggling to understand how to do this.
The command i tried is open ~/Desktop/PP/NewUnityProject/Buildtest.app -server 2 *:8888 *:* 10000
I am using mac

Related

How Powershell Core (pwsh.exe ) informs the Terminal program that the command is being executed?

I am developing a program that should work with standart streams of pwsh.exe process.
Official Microsoft Terminal application, which allows you to work with various console programs, allows you to enter characters only when the previous command is fully executed, for example, Write-Host hey1; Start-Sleep 10s; Write-Host hey2. In the profile settings for powershell core, there is only the path to the executable file.
I want to achieve similar behavior in my c# program, but I do not know by what mechanism the Microsoft Terminal get information that the previous command has been executed.
I tried checking the output stream, it doesn't have any special characters for this.

Not able to run Azure functions in VS code in mac?

I am trying to follow this tutorial to run azure function app using C# using vscode.
But when I click the run button, it shows "You must have the Azure Functions Core Tools installed to debug your local functions." But I have actually installed it in my mac. When I click the install button, it shows errors like follows:
/bin/bash: func: command not foundThe terminal process "/bin/bash '-c', 'func host start'" failed to launch (exit code: 127).
And on the right bottom there is a small window showing:
Error exists after running preLaunchTask "host start". View task output for more information.
But when I use the command func host start in my local terminal, it can run smoothly.
We have tried the same but on Windows(OS) , Below are the workaround to resolve the above issue.
Created a new Azure function with HTTP Trigger using .net 6
Before debugging we have started the Azure storage Emulator/Azurite on local.
Or Alternatively, We can add "AzureWebJobsStorage": "UseDevelopmentStorage=true", in our localsettings.json and tried to debug by using .net Function.
OUTPUT DETAILS FOR REFERENCE:-
NOTE:- To run function locally based on the given MICROSOFT DOCUMENTATION:-
Click on Ctrl - (macOS) the HttpExample function and choose Execute
Function Now
Or, we can add a breakpoint over our function.cs file and type start debug as shown below :-
For more information regarding VS CODE on macos configuration Please refer this SO THREAD discussions .

Azure speech services speech to text error

I have a free trial account of Azure speech services and I use speech to text services in a program using c#.
The utility of the program is to conevrt file audios to text files, by speech to text API. The problem is taht sometimes an error appears saying:
Status: Canceled. Reason: The recognition service encountered an internal error and could not continue.Respones
text:{"Duration":0,"Offset":0,"RecognitionStatus":"Error"}.
Someone can help me if I have an error in the program or there is a problem of the free account in azure that gives problems?
Thanks!
I found that the type a WAV file I used gave me that error, I converted it be mono using FFMPEG in Docker using the following command line in PowerShell.
mkdir $pwd\original\output\ -Force
docker run -v ${PWD}\original:/tmp/workdir jrottenberg/ffmpeg -i Dummycall.wav -map_channel 0.0.0 DummycallMono.wav
Please be aware that you may need to run this for left and right channels by modifying the arguments using -map_channel 0.0.1

How to view Database in Xamarin Forms? [duplicate]

Trying to copy file from device to desktop, here is a command:
adb pull sdcard/log.txt Users/admin/Desktop
But this command creates a folder Users/admin/Desktop inside platform-tools folder where adb is located. How to pull file to my desktop ?
Use a fully-qualified path to the desktop (e.g., /home/mmurphy/Desktop).
Example: adb pull sdcard/log.txt /home/mmurphy/Desktop
Judging by the desktop folder location you are using Windows. The command in Windows would be:
adb pull /sdcard/log.txt %USERPROFILE%\Desktop\
Be root, Define file on device and define new filename.
adb root
adb pull /data/data/.../databases/launcher.db launcher.db
On Windows, start up Command Prompt (cmd.exe) or PowerShell (powershell.exe). To do this quickly, open a Run Command window by pressing Windows Key + R. In the Run Command window, type "cmd.exe" to launch Command Prompt; However, to start PowerShell instead, then type "powershell". If you are connecting your Android device to your computer using a USB cable, then you will need to check whether your device is communicating with adb by entering the command below:
# adb devices -l
Next, pull (copy) the file from your Android device over to Windows. This can be accomplished by entering the following command:
# adb pull /sdcard/log.txt %HOME%\Desktop\log.txt
Optionally, you may enter this command instead:
# adb pull /sdcard/log.txt C:\Users\admin\Desktop\log.txt
List item
Use following command to pull data from ADB
adb pull data/user/0/project package name/files/.local/share/dbname C:\Users\vijayalaxmi.k
data/user/0/project package name/files/.local/share/dbname this path you will get when you debug application. i.e database path
project package name example => com.example
instead of C:\Users\vijayalaxmi.k user your own path where you want to save your file. for example, c:\documents
do adb pull \sdcard\log.txt C:Users\admin\Desktop

using C# with PIG on HDInsight Azure

I am working with HDInsight .NET SDK to use C# sdk with pig. I am getting error when specifying the c# application path.
here's how am defining the C# app in pig script
DEFINE pigudf `PigUDF.exe` SHIP('wasb://book#storage.blob.core.windows.net/PIG/app/PigUDF.exe');
am getting error "invalid ship specification" 'wasb://bookstore#storage160203122480.blob.core.windows.net/PIG/app/PigUDF.exe' doesn't exists, however PigUDF.exe does exists at the given path.
If I run the same query from HDInsight cluster console with both pig script file and c# app stored locally on cluster, it runs successfully.. i.e the below works on hdinsight cluster console
DEFINE pigudf `PigUDF.exe` SHIP('C:/PigUDF.exe');
where pigudf.exe is locally stored on cluster.
I even tried running it through HDInsight tools for visual studio, but I get same error.
Any help here will be appreciated.
thanks,
Saleem
Try using http:// instead of wasb://. The wasb protocol is used to access Windows Azure blob storage.
DEFINE pigudf `PigUDF.exe` SHIP('http://book#storage.blob.core.windows.net/PIG/app/PigUDF.exe');
You can copy your udf to local, update its permissions, ship it, and eventually remove it
fs -copyToLocal wasb://<container>#account/udf.exe
sh cacls udf.exe /E /G <group>:F
define myUdf `udf.exe`ship('udf.exe')
-- run your computation...
sh del udf.exe

Categories

Resources