The used IDEs are: Intellij Idea and PyCharm
I use AngularJS as frontend and Django as a Server. If I create/change something in in angularJS foler (app for example) I have to run ng build --output-path=..\..\static\angularjs to build the bundles to my static folder.
Is there a listener or a hook, to run this command automaticaly if I click on 'Save' ?
You can create a File Watcher (https://www.jetbrains.com/help/pycharm/2017.1/file-watchers.html) for ng (make sure to specify a full path to ng executable as a Program) and disable 'Immediate synchronization' option so that the program is triggered on explicit Save All/changing focus only
I'm using i3wm on arch linux, and while try to run pycharm at first time there is kinda question to type my password
But password is right. I did same while tried to install other apps.
As far as I remember, there is no such problem using xubuntu.
ln -s /usr/local/bin won't take any effect.
I won't run terminal to run pycharm, and don't want to add whole folder to $PATH
bugtrack
Launch the IDE, then use Tools | Create Command-line Launcher.
Problem: I have an installer app which downloads an application in "/Applications/". I want to change some value in Info.plist of newly downloaded application when installer finishes.
Possible solution: We can use plistbuddy and NSTask() to run a script. But I do not know how to execute a command of terminal using NSTask() or how can I save script file in project and run that script when required.
Example terminal command: Running this command in terminal can change value in Info.plist of the downloaded app. How can I use this in my installer application.
/usr/libexec/PlistBuddy -c "Set :SomeValue 'ToNewValue'" /Applications/DownloadedApp.app/Contents/Info.plist
I am getting started with Meteorjs. I'm a windows user so I downloaded the windows installer package Release 0.7.0.1-win2. I use gitbash for my command line interface and can't get it to recognize meteor. I get the error "sh.exe": meteor: command not found". It works fine in windows command line but I prefer gitbash.
How do I get meteor to work with gitbash?
I have the perfect answer for you since I literally just solved the issue myself.
First of all make sure meteor works in the default windows command prompt. Next open git bash and check if the following command works:
cmd //c meteor
This runs the command meteor as if you were in the command prompt.
Next step is to set up an alias in git bash so you don't have to type that out each time.
Open git bash and enter the following:
vim ~/.bashrc
this will open/create the bashrc file in VIM, press i to insert and type the following:
alias meteor="cmd //c meteor"
Save and exit vim by first pressing the Esc key then press the ":" key. Now you should be able to enter commands in VIM. Type "wq" and press enter which will write into your .bashrc file and exit vim.
Almost there! Now that you are back in git bash, all you need to do is point to your .bashrc file by entering the following:
source ~/.bashrc
Now you will be able to run meteor commands straight from git bash! Hope that helped!
Here's the fix:
The problem is because of .bat files not being handled properly by
MinGW
Go to this directory - C:\Users[your username]\AppData\Local\.meteor
You should see a meteor.bat file there. Create a new file called "meteor" (without any extension and ""). Open it with notepad and paste the following:
#!/bin/sh
cmd //c "$0.bat" "$#"
save the file and now run git bash. You should be able to use meteor command in git bash.
Details
To run a *.bat command from MinGW's MSYS shell, you must redirect the execution to cmd.exe, thus:
cmd //c foo.bat [args ...]
The foo.bat command file must be in a directory within $PATH, (or you must specify the full path name ... using slashes, not backslashes unless you use two of them for each path name separator). Also, note the double slash to inform cmd.exe that you are using its /C option, (since it doesn't accept the -c form preferred by the MSYS shell.
If you'd like to make the foo.bat file directly executable from the MSYS shell, you may create a two line Bourne shell wrapper script called simply foo alongside it, (in the same directory as foo.bat), thus:
#!/bin/sh
cmd //c "$0.bat" "$#"
(so in your case, you'd create script file meteor alongside meteor.bat).
In fact, since this wrapper script is entirely generic, provided your file system supports hard file links, (as NTFS does for files on one single disk partition), you may create one wrapper script, and link it to as many command file names as you have *.bat files you'd like to invoke in this manner; (hint: use the MSYS ln command to link the files).
Credits to: Keith Marshall on SO and rakibul on Meteor Forums
It shouldn't be too hard - you just need to make sure that the meteor.bat file is in your executable. Check with echo $PATH from the bash console if it is already there.
For me, the meteor 0.7.0.1-win installer appended meteor's folder to the path automatically. However, you can add it manually with:
export PATH=$PATH:/path/to/user/folder/AppData/Local/.meteor
(On CygWin my user folder is at /cygdrive/c/Users/adam - I'm not sure what the equivalent path would be on git bash).
If you like, append that line to your ~/.profile to make sure meteor gets added to the path when the console opens.
Finally, on Windows the executable file is meteor.bat. I made a symbolic link to the filename meteor, just so I wouldn't have to type the .bat:
cd /path/to/user/folder/AppData/Local/.meteor
ln -s meteor.bat meteor.
Please have a look at the issue https://github.com/sdarnell/meteor/issues/18
I would suggest maybe creating a trivial wrapper script or alias that invokes LaunchMeteor.exe with the original arguments.
After more research on google I see that there isn't an implemented way to do this yet. The guys at meteor are working on it and accepting pull requests if you have a solution. The conclusion I came to is to use Vagrant and virtualbox to set up a ubuntu vm for meteor development. You can find info at this site: http://win.meteor.com/ on how to install virtual machines and provision to work with meteor.
I've got console app in Xcode which uses Core Data and should get one parameter from console. Problem is it builds without packaging into .app file. So I can't even launch it from terminal, not even pass it a parameter. Maybe I missed some project settings, allowing me to do this?
you should run the actual program within the app e.g. ./MyProgram.app/Contents/MacOS/MyProgram if you are in the directory that contains the .app.
open -a "./MyProgram.app/Contents/MacOS/MyProgram" --args myarg