Coding
72 notes.
iOS: How to get App’s Version number (CFBundleVersion)
Recently, i had to make an update to one of my apps. I was trying to figure out a way to see if all the users have…
iOS: NSNotificationCenter – broadcast information within a program
An NSNotificationCenter object (or simply, notification center) provides a mechanism for broadcasting information within a program. An NSNotificationCenter object is essentially a notification…
iOS: Check whether internet connection is available
Updated for 2026: this tutorial is from 2012. For a current version in SwiftUI, see SwiftUI: Check Internet Connection with NWPathMonitor. Here, i am just checking whether network…
android.os.NetworkOnMainThreadException due to StrictMode.ThreadPolicy
StrictMode.ThreadPolicy was introduced since API Level 9 and the default thread policy had been changed since API Level 11, which in short, does not allow network operation (include HttpClient and HttpUrlConnection) get executed on UI thread. if you do this, you get NetworkOnMainThreadException.
iOS LOGIN Screen Tutorial with Server Authentication – JSON – PHP
This tutorial will guide you to create a simple app with a Login screen which takes username and password from the user and then posts it to a url and parses the JSON response form the server.
Perl: Process an array or a hash inside a Template
Process and array or a hash inside a perl template 12862637196ad249a1249d6_000041 Enjoy coding! :)
RubyOnRails: Create a Controller and Views for it using a single command
Lets create a controller named 'home' with views 'index', 'view2' view3'. Fortunately, you can do that in a single command. Enter this command in your terminal: $ rails…
Magento: Check if an admin is logged in or not
If you are writing a custom module, and you want it to be accessed only by admins, then you possibly need the following code in your controller. 12862637196ad249a1249d6_000042
Perl: Send a chat message to your gmail buddy using Jabber
Net::Jabber provides a Perl user with access to the Jabber Instant Messaging protocol. Net::Jabber is a convenient tool to use for any perl script that would like to…
Perl: Send a message to a queue or topic using Stomp
Net::Stomp module allows you to write a Stomp client. Stomp is the Streaming Text Orientated Messaging Protocol (or the Protocol Briefly Known as TTMP and Represented by the symbol…
Perl: Function to print a HASH completely
Below is a perl function that i wrote to print a HASH completely. What i mean by 'completely' is that it will expand all hashes and arrays found…
Perl: Send bulk mail via SMTP with authentication
This is a tutorial on how to send mails to multiple recipients using Perl Net::SMTP module with authentication. The smtp module implements a client interface to the SMTP…