Skip to main content

Posts

Showing posts with the label #Mac

How to Enter Split View on MAC

Enter Split  View Hover your pointer over the full-screen button in the upper-left corner of a  window . Or click and hold the button. Choose ”Tile  Window  to Left of Screen” or ”Tile  Window  to Right of Screen” from the menu. ... Then click a  window  on the other side of the screen to begin using both  windows  side by side. Hover your pointer over the full-screen button in the upper-left corner of a  window . Or click and hold the button. Choose ”Tile  Window  to Left of Screen” or ”Tile  Window  to Right of Screen” from the menu. ... Then click a  window  on the other side of the screen to begin using both  windows  side by side.

Backslash on mac

I had been struggling to type back slash ( \) character on mac japanese keyboard as they don't have it printed on the keyboard, and I was doing copy paste all the time from google when i needed to type it until recently a tip came to my rescue , shortcut to backslash on mac japanese keyboard. Alt + ¥  Hope it helps others. 

Settting up PATH Environment Variables

HOW TO EDIT PATH VARIABLES IN MAC -  1. Open terminal and enter the following command  -  touch ~/.bash_profile; open ~/.bash_profile This will open the bash_profile in text editor   2. Add the following line to the end of the file adding whatever additional directory you want in your path: export PATH="$HOME/.rbenv/bin:$PATH" 3. Save the .bash_profile file and Quit (Command + Q) Text Edit. 4. Force the .bash_profile to execute. This loads the values immediately without having to reboot. In your Terminal window, run the following command. source ~/.bash_profile Voila ! You are done.  Check your Path vars by typing echo$PATH in the editor.    Multiple path environment variable setup with bash - export PATH = "A" export PATH = "$PATH:B" export PATH = "$PATH:C"

Install apk file on your phone through adb command .

While I was trying to download an android app on my mobile phone, I was getting a error ( 498) . Tried looking for the solution but couldn't get the resolution of my problem. That's when I tweaked around and downloaded the app on phone through adb install command from my mac book .  Steps -  (Follow steps 1, 2 if Android SDK is not already installed on your system. ) 1. Download the Android Software Development Kit (SDK) from the Android SDK Download Site. 2. Once downloaded, find a safe installation location on your machine and simply extract the zipped files to this directory. For example, • on Mac or Linux, install in $HOME/ • on Windows, install in C:/ Make note of the full path to and directory name of this directory where the SDK files are unpacked on your system.  3.  If you are currently in the platform-tools directory, just call ./ adb -- help The dot is your current directory, and this tells Bash to use adb from there. Otherw

Getting Started with C or C++

On MAC : Source : [ http://www.cprogramming.com/xcode.html ] Using Apple XCode Once you've downloaded XCode, you can install it from the disk image. Then you can run XCode from Developer|Applications|XCode. XCode has lots of documentation and can walk you through setting up a project. The very simplest thing to do is to create a new project from "File|New Project...". First choose "Application" and then "Command Line Tool". This will give you a basic command line program that you can use when you're learning to program. Before you leave that screen, make sure to change the "Type" of the project to "C++ stdc++" if you are using C++ instead of C. Go through the rest of the prompts and create your new project. Now you have a small project set up that has a main.cpp file. You can edit main.cpp, but by default it will include a small sample "hello world" program. Let's go ahead and run that sample progra

Screenshot capture in MacOS

To capture the entire desktop, press Command-Shift-3 . The screen shot will be automatically saved as a PNG file on your desktop. To copy the entire desktop, press Command-Control-Shift-3 . The screen shot will be placed on your clipboard for you to paste into another program. To capture a portion of the desktop, press Command-Shift-4 . A cross-hair cursor will appear and you can click and drag to select the area you wish to capture. When you release the mouse button, the screen shot will be automatically saved as a PNG file on your desktop. (The file is saved as PDF in Mac OS 10.3 and earlier.) To capture a specific application window, press Command-Shift-4 , then press the Spacebar . The cursor will change to a camera, and you can move it around the screen. As you move the cursor over an application window, the window will be highlighted. The entire window does not need to be visible for you to capture it. When you have the cursor over a window you want to capture, jus