I don't know the first thing about programming, but I came across something I would like to install using GitHub.
These are the steps:
Fork or Clone the repository.
Run npm install while in the directory of the project.
Open chrome and load in a new "unpacked extension" from the extensions screen.
Open project folder and load in the src folder in /chrome.
Open /app/containers/auth.js/sagas.js/ and edit the variable --CHROME_EXTENSION_ID to the one found in your chrome extensions screen.
Run npm start in the root directory of the project.
Navigate to localhost:3000/login and the chrome extension will handle the login process.
I got the "clone the repository" part lol.
Is this something that anyone can easily teach me how to do or does it require some kind of programming knowledge?
I'm sorry for the layman post.
Thanks in advance
Fork or Clone the repository. (this is covered above)
You should start by searching Google for "How do I clone using git". Git is a tool, GitHub is just a cloud service for git. git has help built in.
git help
Typically you would do this assuming you have git installed.
git clone <git repo>
Git questions need to go on SuperUser.com too.
So, it looks like you are trying to install something for NodeJS. Installing NodeJS can sometimes be tricky, but use Google if you get stuck with specific errors.
run npm install while in the directory of the project.
Typically you just need to cd into the folder you just cloned.
Then you just run:
npm install
This installs the libraries (dependencies) that the program you are using needs. Keep an eye out for any warnings.
Open chrome and load in a new "unpacked extension" from the extensions screen.
Open Chrome and paste this URL: chrome://extensions/
Open project folder and load in the src folder in /chrome.
Ideally, you have a text editor like Atom or Sublime Text. You'll want to open the Git folder you 'cloned' earlier. Both are great, Atom is free.
Open /app/containers/auth.js/sagas.js/ and edit the variable --CHROME_EXTENSION_ID to the one found in your chrome extensions screen.
I would need to see the file to help here. If it's Java it might look like this:
var CHROME_EXTENSION_ID = "SOME_ID";
or it could be in JSON format:
{
CHROME_EXTENSION_ID: "SOME_ID"
}
run npm start in the root directory of the project.
So, inside the folder you cloned you run this to start a NodeJS server.
npm start
This typically will start a local server on your computer.
Navigate to localhost:3000/login and the chrome extension will handle the login process.
An id all does well, you would just be able to open this URL in Chrome.
http://localhost:3000/login
If all went well you should be able to point the browser at your computer and see whatever you are expecting.
Related
I'm currently trying to get off of Windows and have started doing more Javascript development in visual studio code on a desktop setup running Ubuntu 16. Every time I'm building something with Angular or any modern JS framework where I'm creating components from the command line, it will lock those files or folders and tell me I don't have admin access and I have to continually unlock those files or folders every time I want to save my work.
I'm normally using Webpack or Brunch so I'm using the --watch function so when I make a change it will recompile and then refresh the browser with my changes.
I've used Nautilus to unlock the project folders, I've also used
sudo chmod 777 -R /path to folder
To try and unlock the files at the project folder level thinking by doing so any additional file or folder added therein would be unlocked, but its not working.
My question then is what do I have to do or settings can I change so this isn't an issue any more? I love my Linux setup and would hate to have to go back to Windows because of a minor permissions issue like this.
Any help or advice is greatly appreciated.
Pete
I am using Netbeans remote ftp for a while now. I have my projects all configured correctly. Usually when i work on something i right click the file download it manually and then edit and save (save auto upload set on config)
This is quite some manual work and I often forget to download latest before editing which results in loss of work.
Is there any option to set netbeans to auto download the file (when i open it to edit)?
It figures to be very dangerous to auto download the latest files without any personal monitoring.
I am now using version control system git with bitbucket. Its pretty easy to use and has private repositories in the cloud.
I am using a desktop app called sourceTree that is recommended with bitbucket but it appears netbeans has a basic features for git built in. I find it much more userfriendly to use sourceTree though.
everyone. I've been struggling with this for a long time now. So I started an Android application using the Android Development Tools (ADT) on my computer and now I want to move this project into a repository on my Ubuntu Desktop 12.04 server, so I can work on it with a friend without constantly overwriting one another. I zipped the project on my computer, extracted and imported it on the server (using Eclipse on both ends) and created a git repository on the server by right clicking and going to Team -> Share Project
Now when I try to clone it from my (Windows) computer, I can't seem to connect properly no matter what protocol I use, be it git, SSH, FTP or HTTP. I want to try HTTP since it's the easiest (or am I totally wrong?)
The server has a static IP address, namely 192.168.1.42 (it also has a WAN address which I'll give my friend once this gets sorted out), and the project, along with the .git folder inside it, are under var/www/git/Eclipse Workspace/Musica
I can browse to that folder on Chrome from my computer, and to the hidden .git folder as well, but whenever I try to connect on Eclipse it says:
[address]/info/refs?service=git-upload-pack not found
And I can't seem to get around that. I've also tried using SSH, but the first time I connect it asks me to add a key, then fails loading the files, and every attempt thereafter fails to connect in the first place. FTP isn't cooperating either, nor is git nor file.
I'm out of ideas. I would really appreciate any guidance. Thanks!
I've been trying to figure out how to use the google closure library for d-pad navigation for my web app. I cannot for the life of me get closure to work. I'm following google's guide here https://developers.google.com/tv/web/lib/closure/gettingstarted
The guide asks to checkout from their SVN repo, but I'm just using the downloaded zip of the library from github. The guide asks to perform the following command
gtv-ui-lib/closure-library/closure/bin/build/depswriter.py \
--root_with_prefix="gtv-ui-lib/source ../../../../gtv-ui-lib/source" \
--output_file=tv-deps.js
to create a deps.js file. Can somebody explain to me how to execute this command? Is it supposed to be in a python command prompt or something else? When I copy and paste their exact html and javascript page code and use the premade deps.js file for the guide, my page doesn't function with keyboard navigation, so I'm assuming the deps.js file is my problem because everything else is exactly from the guide.
You will need to have python installed on your development machine and make sure that it is added to your path environment. The closure depswriter can be executed by using python from the command line (if you are using *nix then you can just invoke the file from the cli). Try:
python WHERE-YOU-UNZIPPED-THE-ZIP-PATH/gtv-ui-lib/closure-library/closure/bin/build/depswriter.py \
--root_with_prefix="gtv-ui-lib/source ../../../../gtv-ui-lib/source" \
--output_file=tv-deps.js
I would also recommend checking out the source from the SVN repo and not using the github zip file. The SVN repo is the most upto date and the github is a mirror that can sometimes fall behind. To ensure you have the latest version of the code do install the SVN tools and checkout from the specified repo.
I created an app with Appcelerator's Titanium Mobile on my home machine. The path was /Users/[myusername]/Projects/ProjectName.
I checked my code into Mercurial.
The next day, at my office computer, I cloned the Mercurial repo, and then added the existing app. I tried to run it in the simulator and received the error:
could not find the file app.js.
I looked at the log and noticed that the path it was looking for was the path on my home computer, not the path on my office computer.
What can I do to make my app run on two different computers? I imagine that if I created a new app and then copied my code into it, it would probably work on the office machine. But if I checked my code in, and got latest at home it would probably be broken there.
Open tiapp.xml
Remove the line. f01a795a-46e7-4627-8558-465e5998c99d
Do a full rebuild
Bring guid tag back (just to make sure you still have it on tiapp.xml)
Do a full rebuild again.
Here's the source:
http://www.limechalk.com/blog/fix-runtime-error-when-running-appcelerator-app-on-android-emulator/
Can you re-create a new project? copy your files tiapp.xml as well as folder Resources to your new project and build again.
This issue mainly caused by JavaScript minification,either you have syntax error in one or more js files or which is hard to predict may you have some other files in you project that are not js files and cause this failure to build and then this common error .
my two cents open up you project files and look carefully for any file or files that are not supposed to be in it.