login

Sudeep's Blog

Disorganized Thoughts in Organized Manner

Create a new post>>   |   Blog Map>>

Programming Patterns in Android Development

2014-05-26 Share on Tumblr

Here is the link to Coursera class on Programming patterns in Android Development: https://class.coursera.org/posa-002

Here is a concise list of patterns in one place:

  1. Active Object Pattern
  2. Barrier Synchronization Pattern
  3. Bridge Pattern
  4. Command Processor Pattern
  5. Factory Method Pattern
  6. Guarded Suspension Pattern
  7. Half-Sync-Half-Async Pattern
  8. Monitor Object Pattern
  9. Strategy Pattern
  10. Template Method Pattern
  11. Thread-Specific Storage Pattern
I have started creating a concise wiki (in form of .md pages) on github. Here is the link: https://github.com/sjuvekar/POSA-patterns-cheat-sheet.

Install gplots in R > 2.0

2014-03-10 Share on Tumblr

Here is the link: 

http://ivory.idyll.org/blog/2013-installing-gplots.html

Trolling SO

2014-03-07 Share on Tumblr

612.. and counting..

It gets better over time (.. and addictive)

Here: http://stackoverflow.com/users/1391220/sudeep-juvekar

In case you were wondering!

2014-02-04 Share on Tumblr



Thank you and welcome!

Adding Banner Ad to Android App

2014-01-10 Share on Tumblr

Here is how you can add banner ad to Android app.
  • Create an account on AdMob: Provide your bank details etc etc.
  • Create an ad campaign: AdMob makes it extremely easy to create a campaign. After walking through the process you will end up with an ad id of the form: ca-app-pub-XXXXXXXXXXXXXXXX/YYYYYYYYYY
  • Finally, add this code to your MainActivity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Window window = getWindow(); RelativeLayout adsLayout = new RelativeLayout(this); RelativeLayout.LayoutParams lp2 = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT); adsLayout.setGravity(Gravity.BOTTOM); AdView adView = new AdView(this, AdSize.SMART_BANNER, "ca-app-pub-XXXXXXXXXXXXXXXX/YYYYYYYYYY"); adsLayout.addView(adView); AdRequest newAdReq = new AdRequest(); adView.loadAd(newAdReq); window.addContentView(adsLayout, lp2); }

Happy New Year

2014-01-04 Share on Tumblr

...and happy coding 2014

Processing + eclipse + android

2013-12-19 Share on Tumblr

Here is a step-by-step method to create an processing sketch using Android SDK in Eclipse (instead of processing IDE):

http://niltoid.com/blog/processing-eclipse-android-proclipsoid/

Reactive Programming in Scala

2013-11-24 Share on Tumblr

Here is a set of notes maintained by me and some others on concepts related to event-sriven reactive programming in Scala: https://github.com/sjuvekar/reactive-programming-scala/blob/master/ReactiveCheatSheet.md. 

The notes originated from a Coursera's class with same title: https://class.coursera.org/reactive-001/class
Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 |