MAR
2012
07
3 Comments
4959 Hits
Android: Returning Value To The Calling Activity
Posted under: Android, Tutorial
Tags: Android

In my previous post, I had explained how to switch (call) to another activities and passing value to it. This time I will try to explain on how to return some value back to the calling activity.

Read More
MAR
2012
01
2 Comments
4980 Hits
Switching Between Activites in Android SDK
Posted under: Android, Tutorial
Tags: Android

Almost every Andoid application has many activities, a screen that interact with user. On desktop based operating system, this screen is usually called by a "form". It is very common that it is required to switch between one activity onto another activity in user interaction. In this post I will try to explain how switching between activities and passing variable into it can be done.

Read More
DEC
2011
03
2 Comments
2834 Hits
Converting Wireless Router to Access Point
Posted under: Tutorial
Tags: Networking

Basically, a wireless router is an access point (AP) with router capability. Sometimes for some reasons you may not need another router to broadcast a network wirelessly. You need an AP and not a wireless router for broadcasting a local area network wirelessly.

Why?

A wireless router has different network ID between it's WAN and LAN connector. That's what routers are for, connecting (routing) two or more different network IDs (in this case: LAN network and WAN network).

Read More
NOV
2011
16
2 Comments
6417 Hits
Building Captive Portal Using PHP and iptables Firewall on Linux

What is a captive portal?

There are many definitions out there which are explaining about captive portal like in TechTarget SearchMobileComputing, Answers.com, and Wikipedia. Still haven't got it? Well, have you found yourself connected in a public hotspot such as at the public venues, airport lounges, or hotel plaza? it's so common if we're going to browse to any pages using our favorite web browser we're forced to see a page to accept the Terms of Service (ToS) of the hotspot provider or submits username and password in order to be able to continue browse the web. Those kind of web pages are so called captive portal.

Read More
AUG
2011
13
58 Comments
4267 Hits
Easy Parsing Twitter's RSS Feed With PHP
Posted under: PHP, Tutorial

Twitter LogoFrom my previous post about fetching Tweets from Twitter by using PHP we're able to search tweet posts with Twitter API help in RSS format (XML). The specification of RSS itself described here. In order to be able to get information needed from the feed, we need to parse it into other form of data which is easy to process with PHP. In this post I will explain how to parse every items on the feed into array.

Read More
AUG
2011
12
45 Comments
6109 Hits
Fetching Tweets on Twitter by PHP
Posted under: PHP, Tutorial

Twitter BirdIf you have your own blog which is PHP powered, you can show your tweets on twitter by using PHP easily. According to GET Search Twitter API documentation and Using Search documentation, we can do any search for tweets related to any keyword provided. The resource URL for searching is:

http://search.twitter.com/search.format

where format is the format we would like to get. It could be rss, atom, or even json. The Twitter search API is very powerful, even you can get any tweets which is posted by someone near you.

Read More
JUN
2011
17
4 Comments
4307 Hits
Getting First and Last Date of Months Using C#
Posted under: Tutorial

C# has a DateTime structure to hold date and time value in a single variable. The following script will gives you first and last date of given months in two lines of C# code. Assuming that the first and last dates we're looking for is for current month (now), the code would be like this:

DateTime FirstDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
DateTime LastDate = FirstDate.AddMonths(1).AddDays(-1);
Read More
MAY
2011
25
1 Comment
2663 Hits
Adobe Reader 9.x axAcroPDFLib at closing problem C#
Posted under: Tutorial

If you code an C# .NET application using axAcroPDFLib to generate a PDF document, shows it to the user, and found error message on your application at application closing like this (instruction and memory address may vary):

The instruction at "0x0700609c" referenced memory at "0x00000014". The memory could not be read

It was caused by Adobe Reader 9.x axAcroPDFLib bug. The axAcroPDF control doesn't disposed properly during form closing event.

Read More
Prev