Enable Dashboard in OS X El Capitan

So when you start your os you will see no dashboard there don’t panic it is disabled by default.
Just go to System Preference -> Mission Control you will see off beside Dashboard. From the drop down menu you can choose either As Space or As overlay. As Space is the old way to show the dashboard so an extra desktop screen will be added in the left most side. As overlay means it will appear as overlay so you can use either keyboard shortcut or hot corners which you can choose by clicking the button Hot Corners. When you will hover your mouse pointer in the hot corners the dashboard will appear.

Enjoy 🙂

Java and….and Sublime Text (MAC OS X) Part 2

First lets see some screen shots

Screen Shot 2013-05-15 at 10.02.45 PM

Screen Shot 2013-05-15 at 10.29.30 PM

Hmm now i am going tell how to open Sublime Text from Terminal, just follow this page

you may ask for permission issues when you enter the code into terminal, just simply add sudo at the beginning. And if it says the path not found then you have to create the bin folder write in the terminal, mkdir bin

If you have not succeeded, then you have to do some work …

1. Open terminal
2. vim .bash_profile
3. type i, to get access to write
4. you will see this line, export PATH
5. add this, $PATH:~/bin
6. Finally you should have something like this, export PATH=$PATH:~/bin
7. press esc then press shift + q
8. write, wq

restart terminal, now try command subl in the terminal

you can pass many types of argument just check the link i gave earlier in this post.

Thanks to Shouro Vaia 😀


Java and….and Sublime Text (MAC OS X) Part 1

Hello everyone, are you looking for a good text editor then i guess you might try Sumlime.

Here is the link for download.
Select OS X.

After opening Sublime you will see the following window.

Screen Shot 2013-05-15 at 8.31.54 PM

After that you can drag and drop your project folder

Screen Shot 2013-05-15 at 9.06.19 PM

In the picture you can see i opened a java code. If you want to highlight syntax like mine follow the steps below

Screen Shot 2013-05-15 at 9.10.51 PM

go to view -> Syntax -> Java -> java

Well now i am going to talk about code formatting.

For this you have to install wbond

Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console.

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')

After the installation press, command + shift + P then type “Install” and select “Package Control: Install Package”. After that Select “SublimeAStyleFormatter” from list.


If everything goes write press

Ctrl+Alt+F: Format current file.
⌘+K, ⌘+F: Format current selection.

Enjoy …

Connect raspberry pi over ssh using mac os x

Well first of all today i succeeded to connect my raspberry pi over ssh. First of all you need following things to do that

1. 1 cross over cable (RJ45 connector)
2. X11 from here http://xquartz.macosforge.org/trac/wiki/X112.7.4

well lets discuss some problem that i faced.

1. First of all if you are accessing you pi for the first time make sure that your pi is already ssh enabled
i am using Soft-float Debian “wheezy”. In this OS ssh is enabled by default.

2. I am guessing that you don’t have a LCD monitor !. So how can you tell that your pi is running successfully and will connect over ssh. Well you cant. So in my case i couldn’t connect to my pi. So i connect to my old analogue TV to see whats actually going wrong. Then i saw … my pi keeps restarting -_- hmm so tried different power cable and yes it worked. (I used my mac usb port to power my pi)

3. Go to your mac network preference, from the left hand side select Ethernet and chose IPv4 configuration type DHCP

Now i am hoping your pi up and running now follow the steps bellow.

1. Open X11
2. Click X11 -> Preference -> Output -> put a tick on Full-screen mode
3. Open Terminal from Applications or command + n
4. ssh -X pi@ip_address_of_your_pi [example: pi@]
to get the ip address type following command from inside pi Terminal [you can use analogue TV to do this]

inet addr:ip_address_of_your_pi

another way is to simply write the following command from X11 Terminal

netstat -rn -finet

if you are having trouble to access the pi with your IP, then turn of your mac Ethernet and turn on again.

5. Password


6. For accessing GUI session


Thanks for reading 🙂