Alexa & Google assistant — 2 in 1.

AI-driven personal assistants are becoming a part of the day to day life and I was exploring the possibilities they offered. I started with making a Pi box that runs Alexa but ended up having both Alexa and Google Home running in parallel within a box.

This particular article was very helpful to make this happen.

Here is a demo of results:

Advertisements
Alexa & Google assistant — 2 in 1.

Uninstalling Xcode completely from MacOSX

There are two ways to do it.

  1. Hard Way
  2. Easy Way

1. Hard Way

Below are the steps in the manual method:
Open the Applications folder
Drag the Xcode icon to the Trash
Clean out the Trash bin

Go to below folders and delete them:
~/Library/Developer/
~/Library/Caches/com.apple.dt.Xcode

Open Terminal.
Run: sudo /Developer/Library/uninstall-devtools –mode=all
Confirm your admin password.
Wait until the scripts are done running.
Quit Terminal.

2. Easy Way:

Use the application ‘CleanMyMac 3′.

Reference:

https://macpaw.com/how-to/uninstall-xcode-on-macos

Uninstalling Xcode completely from MacOSX

Ideas worth sharing (non-tech)

Here are few ideas and concepts in the real world which are so fascinating.
Most of them come under one category. i.e Life.
Please judge yourself.
28. This shirt is straight sorcery.

27.The science behind the smile is pretty fascinating.

26.The fastest way to fold a shirt

25. Posh restaurant

24. Incredible video captures humpback whales swimming underneath the northern lights in Norway.

https://www.facebook.com/groups/AuroraBorealisWA/permalink/1778166325772767/

23. How to fool a telephone scammer?

22. Just smile..smile..and..smile..my friends !

21. Racism DESTROYED in one minute.

20. 6 fundamental rules of life

09. A small story that shows how we deal with difficult things in life.

08. This Ramazan, Surf Excel Pakistan releases an emotionally and beautifully written script with a loving twist.

07. Why laundry is only mother’s job?

06. The importance of making your bed

05. Must watch.. Dedicated to all the religious fanatics..

04. Thought process de-mystified

03. Apollo Robbins: The art of misdirection

02. Google Search: Reunion

01. Six Life Lessons I’ve Learned from Programming

Ideas worth sharing (non-tech)

My picks from ‘TOP 50 FREE ONLINE COURSES OF ALL TIME’

Reference:

https://www.class-central.com/collection/top-free-online-courses?utm_source=top-50-course-page

https://medium.freecodecamp.com/the-best-data-science-courses-on-the-internet-ranked-by-your-reviews-6dc5b910ea40

 

 

My picks from ‘TOP 50 FREE ONLINE COURSES OF ALL TIME’

Setting up Charles Proxy and make it work behind VPN

Charles Proxy is one of the most used tools in mobile developers kit.

Here is a brief on the steps required to make it work in an enterprise VPN setup.

I am using Charles proxy version 4.1.2 on mac.

  1. Download it from here and install it. Grant necessary permission.Screen Shot 2017-05-23 at 11.57.54 AM.png
  2. Make sure in your network settings, auto proxy is not turned on.Screen Shot 2017-05-23 at 11.17.16 AM.png
  3. One point to keep in mind is that any network settings related changes should be done before running Charles. Also, make sure to run the iOS simulator only after running the Charles.
  4. Run Charles and install the root certs for iOS simulators.Screen Shot 2017-05-23 at 11.31.41 AM.png
  5. Upon success, you should be seeing this:Screen Shot 2017-05-23 at 11.43.01 AM
  6. Now, you can see all the traffic originating from your mac machine. There are two ways to segregate the data in the UI. They are Structure and Sequence. In the sequence mode, you can apply filter and see only traffic data you are interested in.
  7. Structure Views.png
  8. Sequence View with filter appliedse.png
  9. On a side note, it is a good idea to keep the request and response separate in UI.Screen Shot 2017-05-23 at 11.58.17 AM.png
  10. Run your Xcode project and identify the traffic to the domain you are interested in. At first, you would see the encrypted content like below. I just opened apple.com in iOS simulator’s Safari app.Screen Shot 2017-05-23 at 12.05.20 PM.png
  11. In the above example, we are interested in http://www.apple.com. In order to see the content in plain text we need to enable ‘SSL Proxying’ for this domain. There are multiple ways to do this. The easiest is to right click the domain in the Structure View and select the option ‘SSL Proxying’ from menuUntitled.png
  12. You should see a blue globe like icon next to all domains, whose content is decrypted or readable by Charles.

 Screen Shot 2017-05-23 at 11.50.19 AM.png

13. Once, done you can see all the traffic in plain textScreen Shot 2017-05-23 at 12.24.17 PM.png

You can also set breakpoints against a specific domain and edit the requests/responses based on your needs.There are no extra steps to be done if you are developing behind VPN, based on my experience.

Setting up Charles Proxy and make it work behind VPN

Installing certs in iOS Simulators

In older version of Xcode, installing SSL certs were done by simply dragging and dropping SSL certs into the simulator and by following the prompts till the installation is complete.

In addition to dragging and dropping SSL certs to the simulator, you need to do one more step.

General -> About -> Certificate Trust Settings -> “Enable Full Trust for Root Certificate” for your particular certificate

Screen Shot 2017-05-23 at 10.58.21 AM

Screen Shot 2017-05-23 at 10.58.33 AMScreen Shot 2017-05-23 at 10.58.39 AMScreen Shot 2017-05-23 at 10.58.46 AMScreen Shot 2017-05-23 at 10.59.01 AM

Screen Shot 2017-05-23 at 11.21.53 AM

Installing certs in iOS Simulators