Posts

Showing posts from 2013

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

Phonegap Framework setup for Blackberry Application Development

Image
Application Development and Deployment Document For Blackberry Application With PhoneGap Framework            1                 Introduction 1.1          PhoneGap in a Nutshell PhoneGap is an open source development framework for building cross-platform mobile apps. Build apps in HTML and JavaScript and still take advantage of core features in iPhone/iPod touch, iPad, Google Android, Palm, Symbian and Blackberry SDKs. Write once, run anywhere' platform for mobile application development, with the first three devices supported being the iPhone, Android and BlackBerry. Rob Ellis, one of the co-creators of PhoneGap said, 'The idea is you write one code base and it should work smoothly on all three devices Table 2 – Terminology 2                 Pre-Requirements 2.2          Software o         Windows XP and Windows 7 (32-bit and 64-bit) o         Sun Java Development Kit, version 1.6 (32-bit) o         ANT o         Eclip