Posts

Showing posts from 2015

How to exclude a folder in sublime Search for a Directory?

Image
How to exclude a folder in sublime Search for a Directory? You can exclude .deploy or .meteor folder while searching in a directory or exclude any folder which you want from a directory To exclude follow these point   Add -(Dash) in the starting of your directory Add *(asterisk) after your folder which you want to exclude Press Ctrl+shift+F put the example string in Where text box where you have mention your searching directory Example: /home/sagar/Desktop/mywork, -/home/sagar/Desktop/ mywork /.deploy/*, -/home/sagar/Desktop/ mywork /.trash/* Above example show that sublime will search a keyword inside mywork directory but will exclude .deploy and .trash folder from directory

How to Upgrade Node.js to latest version?

Upgrading Node.js to latest version You can check your node version via this Command node -v current version of node is 0.12.1 till 30Mar 2012 If you want to upgrade the node version then run following command First run this Command sudo npm install n -g where n is version-management Then run this command for specific version sudo n 0.4.12 Or you want to upgrade node to current stable version then run this Command sudo n stable Please note this will not work for Windows

npm ERR! Error: EACCES, mkdir '/home/user/.npm/async/0.9.0'

When i am running npm it show this error that EACCES npm-container: updating npm dependencies -- request... npm ERR! Error: EACCES, mkdir '/home/sagar/.npm/async/0.9.0' npm ERR!  { [Error: EACCES, mkdir '/home/sagar/.npm/async/0.9.0'] npm ERR!   errno: 3, npm ERR!   code: 'EACCES', npm ERR!   path: '/home/sagar/.npm/async/0.9.0', npm ERR!   parent: 'form-data' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Linux 3.13.0-24-generic npm ERR! command "/home/sagar/.meteor/packages/meteor-tool/.1.0.40.1o762tv++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/bin/node" "/home/sagar/.meteor/packages/meteor-tool/.1.0.40.1o762tv++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/bin/npm" "install" "request@2.53.0" npm ERR! cwd /home/sagar/Desktop/mymeteor/packages/npm-container/.npm/package-new-acq805 npm ER

After installed Symfony2 it is showing 404 when I access app.php?

In Symfony2, when i run my application locally on app_dev.php, everything works fine. However, when I access app.php it shows the error Oops! An Error Occurred The server returned a "404 Not Found". Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for I figured out and found a simple solution. May this will work for you. just open your src\AppBundle\Controller\DefaultController.php Then you can see there in file for Home router /**    * @Route("/app/example", name="homepage") */ So the error is due to this route just change it like this /**      * @Route("/", name="homepage") */ Then go to the cache folder app\cache delete the prod folder then refresh the page

I Changed root password for phpMyAdmin, now I can't access MAMP

I Changed root password for phpMyAdmin, now I can't access MAMP This is main problem with MAMP user that when they new in MAMP they changed root password. When they go to phpMyAdmin then they can not access the MAMP Now there is a small and fast way to change the password from console of MAC Open you Console first Then run this command /Applications/MAMP/Library/bin/mysql -uroot -p It will ask for your changed password(current password) Enter password: Enter the password or if you set it as blank then just enter without typing any key. It will show something like this on your console which means you are connected now to MYSQL server via command line Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 10 Server version: 5.5.38 Source distribution mysql>   Now you need to use mysql table where is username and password are saved run this command use mysql; Now run update query to change

What is the default password for MySQL in MAMP?

The default password for MySQL under MAMP is username: root , password: root

Git commands for a beginner

Git commands for a beginner if you are beginner in git environment then you should know that git provides you a way to update the file and move you file from local server to live server with command line Like a beginner   you have installed git on your server and setup the git account and ready to use git Now here is the problem begin where to start and how to use command Like you can check in which branch you are working Example: server-localhost( master ): So master is your current branch Now you made some changes in file and you want to push it on live server So keep in mind before push any code on live server you need run pull command on same branch after changes you need you pull file from server Example: git pull origin master This command will fetch update file from live server to your local server but will not change your changes in files Now you need to add your changes on git run command to add all changed file to add in git queue git add . This command wi

How to merge two branches in GIT?

Merge two branches in GIT Some it makes confuse us that how can i merge the branches in GIT when we have two branches in GIT Let say there are two branches on GIT one is master and second is develop And you are changing the code develop branch finish you code Now you want to merge the code with master So first of all you need to go to master branch because this is the branch which you want to merge with new code So first command you will run git checkout master N ow you can see that you are in master branch Now run second command to merge both of branch git merge develop This command will merge both of branches in one now master has same code as develop Now you need to run commit command with message git commit -m "merge two branches in git" Now push the changes on your master branch to update the code on server git push origin master Its done and it simple to merge two branches. Note: Keep in mind that master branch does

What is the difference between wamp lamp mamp xampp server?

Difference wamp lamp mamp xampp Server All thing is same in all Server which i have mentioned below This is a open source platform and you can free download and use it. Apache is the web server. Mysql is the relational database management system. PHP is the object-oriented scripting language. Wamp: Full form of WAMP is Windows, Apache, MySQL and PHP. WAMP Server is work on Windows Operating System only. Lamp : Full form of LAMP is Linux, Apache, MySQL and PHP. LAMP Server is work on Linux Operating System only LAMP is a combine package of Linux, Apache, MySQL and PHP. Mamp : Full form of MAMP is MAC, Apache, MySQL and PHP. MAMP Server is work on MAC Operating System only.   Xamp p: xampp stands for x-os, apache, mysql, php , perl. X-OS means it can be used for any operating system. XAMPP for major operating system including windows, mac, Linux. XAMPP Server come along with some additional features including support of perl, filezilla, m

What is the problem with Meteor SEO?

Meteor SEO problem Here i will tell you the problem with SEO and Meteor Meteor does not have Problem with SEO  it has problem with SEO Page Okay let me explain:- If you run the page on browser of Meteor site and will check the source code by Ctrl+U then you will find that there is only some css and js file and Some JaveScript Code HTML does not render on HTML file This is the main problem with Meteor Pages When Good crawl the page and it does not found the html on pages then it google thinks that it is a blank page and does not crawl the content. So in SEO purpose Google does not crawl the content In Technical Way: if google visits your Meteor Site it Crawl the html document on your server show it and tries to understand what your document is about in page. If a user search on google for some keyword, google may think “that a page i had crawled that day, I think this can be answer the users request the best.” The thing with Meteor is, that it is a client-heavy web ap