Posts

Indoor Positioning System

Image
Why there is need of Indoor Positioning system? 1.        GPS (Global Positioning System) is used for outdoor Global Positioning. 2.        GPS requires connection with GPS satellites for positioning. 3.        For positioning inside building, PS satellite signals are weakened by roofs or wall of buildings. 4.        In such cases we need to have own positioning system called IPS (Indoor Positioning System) How IPS (Indoor Positioning System) is different from GPS? IPS works on the same lines as GPS except you use different signals than GPS satellites. What are the ways to achieve Indoor Positioning System? 1.        Wi-Fi Triangulation – Use existing Wi-Fi Routers as signal sending devices to accurately pinpoint location inside a building. ·      Every Wi-Fi router sends signals in Circular pattern. ·          Device which falls in the range of Wi-Fi router can read the signal strength without even connecting to the router. ·        

JAVA Recieve AWS SNS HTTP Notification using Servlet

Image
Dear folks, This post is regarding using  AWS SNS HTTP Post notification feature of SNS(Simple Notification Service) of AWS(Amazon Web Services). First of all we need to understand how SNS HTTP Post notification works. 1)Go to AWS Console and login --  2)Go to SNS Service homepage -- 3)If you have SNS topic already created then click on it or create a new one. 4)When you select SNS topic,on right hand panel you can see Create Subscription Button. --  5)When you click on that button,you will be prompted to Select notification type  -- out of        JSON/Email/Http/Https and also Subscription URL. 6)For Subscription URL,it should be URL of Servlet which will capture the notifiaction. -- 7)For Servlet Code --  https://docs.google.com/file/d/0BymDvBs2sT5lVEtscWRxSW5BVW8/edit?usp=drive_web 8)After providing Subscription URL,we click subscribe button which will show Pending Subscription as  following image. -- 9)For the servlet to be able to recieve

AWS S3 -- s3cmd tool setup on Windows

Setting Up s3cmd   tool on Windows 1.       Download s3cmd   from s3tools – http://s3tools.org/download 2.       Download python 2.7 for windows –                 http://www.python.org/getit/ Set Python path                 Go to Environment Variables à                 Edit path variable and append   python path - ‘C:\Python27’ to it. Go to path of s3cmd   file ·          Install   python setup.py install ·          Configure   python s3cmd   -- configure     It will ask for     1)Access Key   2)SecretKey   3)Encryption password for python s3cmd   tool – It will used to encrypt the file while being          uploaded and will decrypt with same password while being downloaded. 4)Path to GPG program – No. 5)Use HTTPS protocol [Yes/No] 6)HTTP Proxy Server Name 7) HTTP Proxy Server Port Save this settings. ·          Run Example – Command to list all buckets               python s3cmd   ls Commands:                                

Bootable from Pendrive --- WindowsVista/7/8

How to make bootable pen drive for windows Vista/7/8 (Make sure you have already connected your pen drive to your system) ·          Open command prompt  . ·          Enter command ‘diskpart’ (if you are using windows 7 then it’ll open new prompt otherwise not) ·          Then enter ‘list disk’ This command will show you all active disks connected to your pc. Then note down disk number which shows your pendrive (I assume that is showing ‘DISK 1’ as your pendrive) ·          Now enter command ‘select disk 1’ (Here change the number 1 with your pen drive’s number ) ·          Enter command ‘clean’ ·          Enter command ‘create partition primary’ ·          Enter command ’select partition 1’ ·          Enter command ‘active’ ·          Enter command ‘format fs=ntfs’. (It will take few minutes) ·          Enter command ‘assign’ . (this will assign drive letter to your drive) ·          Enter command ‘exit’ It will close diskpart and returns to the cmd. (DO NOT CLOSE

Android Automatic Horizontal Scroll View

Android Automatically Scrolling UI Component ·         Horizontal ScrollView : 1.        Add this layout Component to <layout>.xml of screen to which you want to add Horizontal Automatic Scroll < HorizontalScrollView android:layout_width = "match_parent"       android:layout_height = "wrap_content" android:id = "@+id/horiztonal_scrollview_id" android:fadingEdge = "none" > < LinearLayout android:id = "@+id/horiztonal_outer_layout_id" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:orientation = "horizontal" android:background = "#ffffff" android:gravity = "center_vertical"                   android:paddingTop = "5dip" android:paddingBottom = "5dip" >             </ LinearLayout > </ HorizontalScrollView > 2.        HorizontalScrollingLayout.java 1.        T