How to download Appium Desktop in Ubuntu 16 - automation

I am trying to download Appium Desktop in Ubuntu 16 (I've just been using the terminal to run it so far).
I understand that for Ubuntu, I must download the source code release they have on git (Source Code tar.gz), as apposed to their .exe (windows) or .dmg (mac) releases. After downloading it and un-tarring it, I do not know how to "install" it. I tried reading the README.md, but cannot find the instruction.
How to do this?
Many thanks in advance

1.2.0-beta.2 offers an AppImage for Linux - https://github.com/appium/appium-desktop/releases/
Download it, run chmod a+x on it, and then ./AppImage to execute it.

Offical url: https://github.com/appium/appium-desktop/releases
If you have no idea which file to download, there's a file contains "linux" and end with format "yml", the file name is contained in it.
The file should be an AppImage file as above mentioned, you should change the permission by checking box of "Allow executing file as program" of its "Properties".
And then run "./appiumimagename" in terminal to launch Appium Desktop or install it.

download file named'Appium-linux-1.18.2.AppImage'.
change file permission to "Allow executing file as program" in file properties.
Right click and click on RUN.

Related

/sbin/nologin issue with msys2 on Windows 10

I have just installed MSys2 (https://msys2.github.io, msys2-x86_64-20150916.exe) on my Windows 10 computer.
Once installed, the terminal is launched. But as soon as I stop it and relaunch it, I get the error: "Failed to run /sbin/nologin: No such file or directory".
Any idea on what to do?
You should figure out why Bash is trying to run /sbin/nologin. Check your Windows home directory (e.g. C:\Users\Joe) for files like .bash_profile, .profile, and .bashrc. Inspect those files and find which one is calling nologin.
If that doesn't help, try creating an empty file in C:/msys64/sbin/nologin, or wherever you actually installed MSYS2. An empty file would be a valid shell script and run without errors.
If the error is non-fatal you might consider just ignoring it.

MSYS2/pacman can't run update-core or sync database "filename too long" error

I'm attempting to install and use MSYS2 (just getting started with it). I used the installer msys2-x86_64-20150916.exe and that seemed to go fine. Following the install directions, I ran both the update-core script and package database sync. Both fail. I show some of the output of the update core script below. The database sync fails for same "filename too long" reasons.
==> Update package databases...
:: Synchronizing package databases...
downloading mingw32.db...
downloading mingw32.db...
downloading mingw32.db...
downloading mingw32.db...
downloading mingw32.db...
error: could not open file /var/lib/pacman/sync/process?a=-3-lqCLzXmOVMGhdCngyCV4_GayxZ9J_5BY5vi5g3cT8TnaVOyHNkP3i0c8d5C4blqAp5pNlE0ed_vEU-kPSDHKOg&b=PPNTxJgmwuDT5DPf_2sovf-m6J5IoL2zxXU84ePhgAUcZBDyVD_v4wfG6xGP3FZCi8b3EStJPpKrKU8ykIp4uPYrbGFuUlsd-FOf5alMDNO2Olf-YFTsRpUe24Yfq_ATwekjooJm-B-XXCVQ1YAE-3RUWx6oUzFYRJU02LpZIsToFNPuxq-KAou5Jn0dv8rnnKahdjG5tC2rTNNj4gWmj4P_9EX4TcaNgFcSKXzudqLljMnXiamdT4NGmqOPl_cDHrPSnLGDHLWoQHEqx1lL22LYPuzY135OpobhnKym1KM1DLksJiU3U9CwbJ7-2dUD2k1mXjQYV6qGC0I6VRGIkmjkOUCiGsiLMlz-OnHKs_CgI0NyreR38yFPfW6pnW4skarOGfYj0p9pp2MMCMeXtQF6XDDZs3Hah8QoEBL8ZQjD9pArAbk34E9jUIgJXG4I&blockedUrl=http%3A%2F%2Frepo.msys2.org%2Fmingw%2Fi686%2Fmingw32.db.sig.part: File name too long
...
==> Checking if there are critical packages to upgrade.
error: could not open file /var/lib/pacman/sync/mingw32.db: Unrecognized archive format
...
I am running on Windows 7 Enterprise.
Let's look at that long filename more carefully. Here is an excerpt from it:
blockedUrl=http%3A%2F%2Frepo.msys2.org%2Fmingw%2Fi686%2Fmingw32.db.sig
It looks like you are behind some sort of firewall or censoring software that is blocking a download. You should see if you can download http://repo.msys2.org/mingw/i686/mingw32.db.sig in a normal web browser. If not, then you can report the problem to your system administrator and ask them to unblock repo.msys2.org.
When you test the download, make sure that you are able to download the file without clicking through any interstitial web pages, because the MSYS2 software will not be able to do that. You should be able to just click on the link above and it should directly download the file.

Unable to open a saved Gephi project file

Recently I worked on a project done in the network visualization and analysis software Gephi, and I saved it with the ".gephi" extension. However, when I try to reopen the file, it gives the following error message:-
"The project file couldn't be opened. Please check the file has .gephi extension.
XMLStreamException - ParseError at [row,col]:[1,1]
Message: Premature end of file."
I'm a beginner in Gephi and only an amateur programmer. I do not understand this error message, and thus have no ideas on how to resolve it. I tried updating Gephi to the latest version. I also tried to open the file from within Gephi. Neither of those steps have resolved the problem. Can anyone help me out with this, please?
The error message "premature end of file" means that the xml file was not complete. I suppose that the whole file is empty or just the xml part of the file. so maybe the file got corrupted while saving.
Can you try to open the file with notepad or a hexeditor to verify that it has some content?
There must be some bug on the gephi files writing or reading process.
In order to identify the problem it would help if you can post a gephi log file when each error happens.
You can find the log file on gephi user directory (check http://wiki.gephi.org/index.php/Troubleshooting)
For example in Windows 7 the path is C:\Users\Your_User\AppData\Roaming.gephi\dev\var\log\messages.log
Also, if you can share the files, it will be easier to fix.
This could be related to an open bug where Java6 is used to save the gephi file and then Java7 is used to load the file, say on a different machine.
The jdk used by Gephi can be specified in /etc/gephi.conf or alternatively it can be specified as a parameter --jdkhome when launching Gephi.
The problem is with java and javac:
If you created your gephi file with open java-6-openjdk (for example) and then you sitch your java to java-7-openjdk, then this problem surges.
I fix my gephi returning to the same java and javac executables in Linux by:
(In terminal)
sudo update-alternatives --config java
and then
(In terminal)
sudo update-alternatives --config javac
Hope this can help!

Testing the database connection in Yii framework

The following commands produce errors. And have only been working with yii 4 days now.. please help to solve this.
C:\wamp\www\yii\trackstar\protected\tests\unit>phpunit DbTest.php
'phpunit' is not recognized as an internal or external command, operable program or batch file.
The above error states that PHPUnit is not installed in you WAMP stack.
The easiest method to install it is using PEAR. Try following this method to install PHPUnit with PEAR :
Go to the directory where PHP is located. Typically, this is \bin\php\php5.3.8
We’ll call this path “PHP’s location”
Download “go-pear.phar” from this location:
pear.php.net/go-pear.phar
Create a folder “pear” in your PHP’s location
Put the downloaded “go-pear.phar” file in this location.
Open a command prompt with administrative privilege. For this, click
on start menu, type “cmd” – you can see the cmd.exe icon.
Right-click on this icon and click “Run as administrator”
Cmd.exe will open. Go to the direcotry of your PHP’s location, by
typing “cd” command. For example, my wamp is located in “D:\wamp”,
so I write following command:
D:
cd wamp\bin\php\php5.3.8
Now run the downloaded file, by typing:
php .\pear\go-pear.phar
Installation will begin! During installation, you’ll need to respond
to some prompts, just hit enter/press “Y” when necessary.
After installing, double-click and instal “PEAR_ENV.reg” found in
your PHP’s location.
Optionally, you can add your PHP’s location in your PATH variable.
After you can install PHPUnit like this :
Open a command-prompt, go to PHP’s location using cd, and type:
pear channel-discover components.ez.no
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear install --alldeps phpunit/PHPUnit
Type phpunit –version to confirm installation.
That should install PHPUnit, and now you may try
phpunit DbTest.php
Hopefully, it should work.
Regards,
If you're trying to set up unit tests then I found it quicker and easier to set up a ubuntu virtual machine. It will only take a couple of hours including PHPunit and selenium server. Whereas you could spend hours or days trying to get PHP paths and system variables right on windows.

How do I install uncrustify?

How do I install uncrustify? I followed the instruction to install uncrustify but when I run it, it does not work. Can anyone give me some help installing this tool? I want to run it on objective-c code in xcode 4. Thanks in adavance
On OS X Mavericks 10.9.1 :
1- to install brew, open a terminal windows and type :
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
It will ask you to download some other files, answer OK for all (for more information see : http://brew.sh/index_fr.html).
2 - to install uncrusify, open a terminal windows an type :
brew install uncrustify
3 - to make your code beautiful, download BBUncrustifyPlugin-Xcode available at https://github.com/benoitsan/BBUncrustifyPlugin-Xcode
You will just have to :
compile the project
copy the file uncrusify.cfg in your home directory
restart Xcode.
NB : With BBUncrustifyPlugin, you don't need to use Automator.
4 - After restarting Xcode, use the menu Edit > Uncrustify Selected Files to uncrustify the selected items in the project navigator.
Your code is now beautiful! That's magic!
post-scriptum : You can easily change your uncrusify configuration file by using :
https://github.com/ryanmaxwell/UncrustifyX
http://universalindent.sourceforge.net (better in my case)
I hope that this will help!
I setup Uncrustify with Xcode 4 like so: http://blog.carbonfive.com/2011/03/10/code-formatting-in-xcode-4/
Can you explain what you tried to do, what you expected to happen, and how it didn't work?
Download zip
On Windows, download the latest version of Uncrustify here: https://sourceforge.net/projects/uncrustify/files/latest/download
Extract zip
The program is a standalone exe, so just extract the downloaded uncrustify-...-win32.zip file anywhere. For this example, I'll use C:\Uncrustify. So, the uncrustify.exe would be in that directory.
Add directory to PATH System Environment Variable
In Windows 7+: Type Winkey + env - Select "Edit the system environment variables"
On the Advanced tab, click the Environment Variables button at the bottom.
In the System variables section at the bottom, click the Path variable, then click the Edit... button.
Click the New button, and type C:\Uncrustify, or the directory that you extracted uncrustify.exe to.
Important: Click OK to close the dialog boxes or your change will not save.
Verify
In a CMD window, typing where uncrustify should return the path to the uncrustify.exe.
In my case it shows C:\Uncrustify\uncrustify.exe
Close Atom and reopen it. Now you should be able to atom-beautify and it will use Uncrustify to format your selection