Sunday, 18 September 2016

.ONION SITES

 About two weeks ago a friend asked me about .onion websites and dark web, i literally couldn’t say much so when i got home i had to study about it.

Today i want to write about .onion sites, please post your questions and topics
you will like me to share to the world.

What are .onion sites? 
 They are mostly just like any website, except they can only be accessed
through a hidden network called TOR (and indirectly through TorVPN’s VPN proxy service).
They do not have a real domain name or IP address that exists on the regular internet.

THINGS you can find on .onion websites include image and file hosting, whistleblower website (Wikileaks), forums offering complete freedom of speech, search engines, hacking, programming and so on. Some of these websites (Such as search engines) are legal, some are consider illegal in some countries(hacking tutorials), other are completely illegal because they are related to drugs, weapons, child pornography, credit card fraud and other scams.

How to access Onion sites...
 Click the Accounts menu on the control panel.
 Click on the grey line with the server’s name (for example “Earth @ Budapest”). A popup will  appear.
 Tick the checkbox next to “Enable transparent TOR proxy”.
 Click “Save”.

 Between Tor is free a software and an open network that helps you defend against a form of network
  surveillance that threatens personal freedom and privacy, confidential business activities and
  relationships, and state security known as traffic analysis.

To download the TOR BROSWER BUNDLE go to
                                   https://www.torproject.org/download/download-easy.html.en
 Then Unzip and Install


Thanks to www.torvpn.com

Wednesday, 10 August 2016

ANDROID: Difference Between Map Fragment and Support Map Fragment with the usage

Personally, I have been struggling with both MapFragment (MF) and SupportMapFragment (SMF), but i didn't get what i wanted from places like You tube, Lynda ,stack overflow, GitHub, blog posts from Chinese and India Android bloggers so i decided to make life easy for other people trying to work with Google Maps in Android. 

Map Fragment: 

A Map component in an app. This fragment is the simplest way to place a map in an 

application. Its a wrapper around a view of a map to automatically handle the necessary life cycle needs. Being a fragment, this component can be added to an activity's layout file simply with the XML below.  
                                                                                        From developer.google
XML Code:
   <fragment 
            android:id="@+id/map"
            class="com.google.android.gms.maps.MapFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"  />

   The above code makes the Google map show on your layout, that's after you have                inserted the google Api inside the manifest.
                                         
Support Map Fragment: 
   A Map component in an app. This fragment is the simplest way to place a map in an 
application. Its a wrapper around a view of a map automatically handle the necessary life cycle needs. Being a fragment, this component can be added to an activity's layout file simply with XML below.
                                                                                        From developer.google.
<fragment 
            android:id="@+id/map"
            class="com.google.android.gms.maps.SupportMapFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"  />

By knowing the outlined differences working with MF and SMF will be easier.... 
       
MapFragment: It requires the native API Level 11 Fragment implementation, and therefore can only be used on API level 11 and higher devices. So far i haven't seen any device running in API level 11 everything has been upgraded to API Level 12.

SupportMapFragment: It can be used on Android devices running API 10 and lower, as well as Android devices running 11 and higher. Basically on both unlike MapFragment. 


Basically, SupportMapFragment supports more Android versions, but you have some additional library to add into your project, for me it depends on the Android versions you are targeting, MF and SMF also have two different java syntax


For SMF 
   SupportMapFragment sMapF = (SupportMapFragment)                                                                                  getSupportFragmentManager()findFragmentById(R.id.map);
   sMapF.getMapAsync(this);

For MF
   FragmentManager fragmentManager = getFragmentManager();
   MapFragment mapFragment =
        (MapFragment) fragmentManager.findFragmentById(R.id.Gmap);
   googleMap = mapFragment.getMap();

Finally v4 Support library needs to be installed if working on older versions, it just works automatically for recent versions (Default Components will do).


if you want to read more, Click the links below

http://developer.android.com/tools/support-library/features.html
http://developer.android.com/tools/support-library/index.html
https://developers.google.com/maps/