Java, Eclipse Plugin Development and best software development practices
Sunday, March 22, 2015
Git: Updating a forked repository from the original repository
Let's take a scenario:
This is the remote repository: https://github.com/apache/mystudio.git
Your forked repository from the above: https://github.com/kolipakakondal/mystudio.git
'development' is the branch name both in remote and forked repository.
1. Add remote repository to forked repository
>git remote add upstream https://github.com/apache/mystudio.git
2. Fetch from remote repository .i.e upstream
> git fetch upstream
3. Rest your branch(ex: development) to the remote branch(ex: development)
> git reset --hard upstream/development
4. Pushed changes which we got it form remote repo to remote forked repo.
> git push origin development --force
Saturday, March 21, 2015
Friday, March 20, 2015
Debugging an Installer Plugin
Step 1 : Configure your Xcode project
1 | Open your plugin project in Xcode. | |
2 | Choose Project > New Executable… | |
3 | Click Choose. | |
4 | Select Installer.app.
| |
5 | Click Finish. | |
6 | Choose Project > Set Active Build configuration > Debug. | |
7 | Choose Build > Build. |
Step 2 : Debug
1 | Add breakpoints in Xcode |
2 | Copy your plugin into the Plugins folder. |
3 | Choose Debug > Debug Executable in Xcode. |
4 | Open your package with Installer.app. |
Product->Scheme->Edit scheme ->
Wednesday, March 18, 2015
How to identify mac os Eclipse is 32 bit or 64 bit ?
These are the flags you can look at to identify whether your Mac Eclipse is 32 bit or 64 bit ?
Navigate to this menu:
Eclipse ->About Eclipse -> Click on "Installation Details" -> Click on "Configuration" tab->
And look for these parameters:
macosx
-ws
cocoa
-arch
x86_64
Navigate to this menu:
Eclipse ->About Eclipse -> Click on "Installation Details" -> Click on "Configuration" tab->
And look for these parameters:
macosx
-ws
cocoa
-arch
x86_64
Here x86_64 represents 64 bit eclipse.
For 32 bit eclipse, you will find only x86.
macosx
-ws
cocoa
-arch
x86
There are few more parameters that also represent the same.
org.osgi.framework.processor=x86-64
osgi.arch=x86_64
-ws
cocoa
-arch
x86
There are few more parameters that also represent the same.
org.osgi.framework.processor=x86-64
osgi.arch=x86_64
Upgrade node.js via npm
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
This will install the latest stable version.
If you want to install a specific version.
sudo npm n 0.10.34
This will install 0.10.34 version.
Just to cross check, use below command. This will print the installed version.
node -v
Tuesday, March 17, 2015
How to remove specific npm package from windows system
> npm rm -g <packagename>
Try even this.
>npm uninstall <packagename>
Try even this.
>npm uninstall <packagename>
Subscribe to:
Posts (Atom)