iOS: NSNotificationCenter – broadcast information within a program

On May 4, 2012, in iOS, Objective C, by Dipin Krishna

An NSNotificationCenter object (or simply, notification center) provides a mechanism for broadcasting information within a program. An NSNotificationCenter object is essentially a notification dispatch table. Objects register with a notification center to receive notifications (NSNotification objects) using the addObserver:selector:name:object: or addObserverForName:object:queue:usingBlock: methods. Each invocation of this method specifies a set of notifications. Therefore, objects may [...]

iOS: Check whether internet connection is available

On April 28, 2012, in iOS, Objective C, by Dipin Krishna

Here, i am just checking whether network connectivity is available to a server and its done synchronously. You can use Reachability if you need notifications when there is any change in the network connectivity. For this you have to include the SystemConfiguration.framework in your project. Now add, #import "SystemConfiguration/SystemConfiguration.h" and the below function to your [...]

android.os.NetworkOnMainThreadException due to StrictMode.ThreadPolicy

On April 19, 2012, in Android, Java, by Dipin Krishna

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.

Remove ui.streamride.net ads injected by ISPs (Asianet in my case)

On March 31, 2012, in General, by Dipin Krishna

Read it full here : Asianet(ISP) injecting javascript code(ads) in every webpage requested by the customer Here asianet(ISP) is injecting a javascript code into a website without the permission of the website owner and that’s against law. This is the piece of code they are inserting <br /> <div id="sTREAMrIDE" class="11;68">&nbsp;</div> <p>   <p>   [...]

Tagged with:  

Asianet(ISP) injecting javascript code(ads) in every webpage requested by the customer

On March 31, 2012, in General, by Dipin Krishna

   Yesterday, while i was browsing the internet, i noticed that an ad is shown on the right side of each webpage i pull from the internet.     What i am seeing is an ad that is generated by the javascript, but i am deeply concerned about the other activities it might be doing. [...]

Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...