Sunday 12 February 2017

Present

Present
We should live in the present, thinking of the future. If you do that, there is no more samskara formation

Desires and Happiness

Desires and Happiness
The more desires you have, the harder it will be to fulfill them all, and so the less happy you will be. Happiness is inversely related to numbers of desires

Friday 10 February 2017

Character

Character
Character is a protection around your life. Lose the character, life is lost. It is open to anybody to shoot at you, to destroy you.

Wednesday 8 February 2017

Happiness

Happiness
Temptation for money, for position, for wealth – this is how it all starts. Avoid all temptations, and you will be good, you will grow, you will be respectable and you will be happy.

Women

Women
In India, the ancient culture, the ancient tradition, says that the character of a nation is in the hands of its women. Where the women go astray, that society goes astray.

using file content as command-python



import subprocess
subprocess.call('ls')

Monday 6 February 2017

how to install application using cmd

1) open the cmd as run as admin
2)give the file path
3)program will execute


Friday 3 February 2017

command line in gcs

Create a bucket

  1. Open a terminal window.
  2. Use the gsutil mb command and a unique name to create a bucket:
    gsutil mb gs://my-awesome-bucket/
    This quickstart uses a bucket named "my-awesome-bucket." You will need to choose your own, unique, bucket name.
    If successful, the command returns:
    Creating gs://my-awesome-bucket/...
    You've just created a bucket where you can store your stuff!

Upload an object into your bucket

  1. Right-click on the following icon: . Save it somewhere on your computer, such as on the desktop.
  2. Use the gsutil cp command to copy the icon from the location where you saved it to the bucket you created:
    gsutil cp Desktop/cloud-storage-logo.png gs://my-awesome-bucket
    If successful, the command returns:
    Copying file://Desktop/cloud-storage-logo.png [Content-Type=image/png]... Uploading gs://my-awesome-bucket/cloud-storage-logo.png: 0 B/2.58 KiB Uploading gs://my-awesome-bucket/cloud-storage-logo.png: 2.58 KiB/2.58 KiB
    You've just stored an object in your bucket.

Download an object from your bucket

  1. Use the gsutil cp command to download the icon you stored in your bucket to somewhere on your computer, such as the desktop:
    gsutil cp gs://my-awesome-bucket/cloud-storage-logo.png Desktop
    If successful, the command returns:
    Copying gs://my-awesome-bucket/cloud-storage-logo.png... Downloading file://Desktop/cloud-storage-logo.png: 0 B/2.58 KiB Downloading file://Desktop/cloud-storage-logo.png: 2.58 KiB/2.58 KiB
    You've just downloaded something from your bucket.

Copy an object to a folder in the bucket

  1. Use the gsutil cp command to create a folder and copy the icon into it:
    gsutil cp gs://my-awesome-bucket/cloud-storage-logo.png gs://my-awesome-bucket/just-a-folder/
    If successful, the command returns:
    Copying gs://my-awesome-bucket/cloud-storage-logo.png [Content-Type=image/png]... Copying ...my-awesome-bucket/just-a-folder/cloud-storage.logo.png: 2.58 KiB/2.58 KiB
    You've just copied your object into a new folder in your bucket.

List contents of a bucket or folder

  1. Use the gsutil ls command to list the contents of the bucket:
    gsutil ls gs://my-awesome-bucket
    If successful, the command returns a message similar to:
    gs://my-awesome-bucket/cloud-storage-logo.png gs://my-awesome-bucket/just-a-folder/
    You've just seen the contents of your bucket.

List details for an object

  1. Use the gsutil ls command, with the -l flag to get some details about an object:
    gsutil ls -l gs://my-awesome-bucket/cloud-storage-logo.png
    If successful, the command returns a message similar to:
    2638 2016-02-26T23:05:14Z gs://my-awesome-bucket/cloud-storage-logo.png TOTAL: 1 objects, 2638 bytes (2.58 KiB)
    You've just obtained information about the object's size and date of creation.

Make your object publicly accessible

  1. Use the gsutil acl ch command to grant all users read permission for the object stored in your bucket:
    gsutil acl ch -u AllUsers:R gs://my-awesome-bucket/cloud-storage-logo.png
    If successful, the command returns:
    Updated ACL on gs://my-awesome-bucket/cloud-storage-logo.png
    Now anyone can get your object.
  2. To remove this permission, use the command:
    gsutil acl ch -d AllUsers gs://my-awesome-bucket/cloud-storage-logo.png
    If successful, the command returns:
    Updated ACL on gs://my-awesome-bucket/cloud-storage-logo.png
    You have removed public access to this object.

Give someone access to your bucket

  1. Use the gsutil acl ch command to give a specific email address read and write permission for your bucket:
    gsutil acl ch -u user@gmail.com:W gs://my-awesome-bucket
    If successful, the command returns:
    Updated ACL on gs://my-awesome-bucket/
    Now someone else can put things into and take things out of your bucket.
  2. To remove this permission, use the command:
    gsutil acl ch -d user@gmail.com gs://my-awesome-bucket
    If successful, the command returns:
    Updated ACL on gs://my-awesome-bucket/
    You have removed the user's access to this bucket.

Delete objects

  1. Use the gsutil rm command to delete an object:
    gsutil rm gs://my-awesome-bucket/cloud-storage-logo.png
    If successful, the command returns:
    Removing gs://my-awesome-bucket/cloud-storage-logo.png...
    This copy of the object is no longer stored on Cloud Storage (though the copy you made in the folder just-a-folder/ still exists).

Clean up

To avoid incurring charges to your Google Cloud Platform account for the resources used in this quickstart:
  1. Open a terminal window (if not already open).
  2. Use the gsutil rm command with the -r flag to delete the bucket and anything inside of it:
    gsutil rm -r gs://my-awesome-bucket
    If successful, the command returns a message similar to:
    Removing gs://my-awesome-bucket/just-a-folder/cloud-storage.logo.png#1456530077282000... Removing gs://my-awesome-bucket/...
    Your bucket and its contents are deleted.

using linux command in windows

Please follow the instructions to install Cygwin software and run UNIX commands in Windows machine without any additional Linux system required:

click this link to download cygwin
https://www.cygwin.com/

Make sure you are downloading the appropriate version based on your operating system. (Check your system is either 64 bit operating system or 32 bit operating system). I have downloaded 64 bit because my operating system is 64 bit. You can check your operating system by Start->Right Click on Computer->Select Properties.
2) Once setup.exe file gets downloaded, double click on .exe file to initiate the installation process.

3) Click on Next button to proceed installation.
cyg2


4) Leave the default option selected as Install from Internet and click on Next.
5) Leave the default name Root Directory and click on Next.
cyg4
6) Click on Next.
cyg5
7) Click on Next again.
cyg6
8) Select any download mirror and click on Next.
Similarly keep on clicking next until you get this screen-
cyg7
9) It will take a little long time to download and install so please keep patient. After successfully installation, go to your desktop and double click on icon-
cyg8
Or Go to Start and click on Cygwin64 Terminal option.
cyg9
10) Once you double click you will see the Cygwin window looks similar as Windows command prompt.
cyg10
On this window also you can write UNIX commands and execute. But using this window you can’t update or access any file. So might be it’s not much useful here.
To perform other additional operation and to work on normal Windows command prompt we need to set Cygwin path.
Please follow the process to set the Cygwin path to work on normal Windows command prompt.
1) Go to Start and Right Click on Computer and Select properties.
cyg11
2) Click on Advanced system settings shown on left side.
cyg12
3) Click on Advanced tab and then Environment Variables button.
cyg13
4) Under system variables select Path and then click on Edit button.
cyg14
5) In variable value at the end add ;C:\cygwin64\bin\
cyg15
6) Click OK and close all the windows opened.
Open your windows command prompt and type any LINUX command. I have typed here “echo” and got the result ECHO is on. Wow it works!
cyg16
Now you have successfully set the path and ready to run UNIX commands in Windows default command prompt.
Hope you are happy with running LINUX commands in the Windows machine.

Thursday 2 February 2017

Pure Existence

Pure Existence
Those who see attachment in detachment and detachment in attachment are called saints. Such is their liberation. Their system goes beyond the levels of non-attachment and attachment, i.e. the levels of attachment and detachment, and reaches pure existence