Jan 9, 2012

jQuery session timeout countdown with jQueryUI dialog

idleTimeout – jQuery Idle Session Auto Timeout with Prompt 
http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/ 
 jQuery session timeout countdown with jQueryUI dialog
http://pure-essence.net/2010/02/14/jquery-session-timeout-countdown/

Sep 8, 2011

How to scan a barcode from another Android application via Intents

http://code.google.com/p/zxing/wiki/ScanningViaIntent

Jul 14, 2011

Smartermail setup in Godday Dedicated Server


1. Host record: 
mail 
webmail


2. MX record
mail ==> MAIL

login to smartermail with admin account
settings: 
3. Outgoing gateway setting () : s2smtpout.secureserver.net [enable Enable SmarterMail gateway mode]
4. binding IP/port (bind port 25, 110, 143, 389 to 208.x.x.x)

May 23, 2011

html5 file upload

Note: slice method from File API was replaced by mozSlice in Firefox and webkitSlice in Google Chrome

May 11, 2011

save picture in Android

Uri uri = activity.getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values);


But, when I insert a new image entry instead of an audio entry I get
no error!
(import android.provider.MediaStore.Images.Media; instead of
android.provider.MediaStore.Audio.Media; would work, but I need to
insert a audio file)

Apr 17, 2011

geolocation SEO kml

http://code.google.com/apis/kml/documentation/kmlSearch.html

Apr 8, 2011

android textsize sp, px, dp


android:textSize

Since: API Level
Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).
This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.
This corresponds to the global attribute resource symbol textSize.

Mar 26, 2011

change icon when select tab in android

//TabActivity.onCreate()
TabHost tabHost = getTabHost();
TabHost.TabSpec spec;
Intent intent;

intent = new Intent().setClass(this, YourClass.class);
spec = tabHost.newTabSpec("tab_name").setIndicator("Tab Text",
getResources().getDrawable(R.drawable.ic_tab_dialer))
.setContent(intent);
tabHost.addTab(spec);
Then, you need to add ic_tab_dialer.xml to res/drawable/ directory with this content:

Jan 28, 2011

www redirect IIS 301

http://www.xoc.net/works/tips/domain.asp


IIS: Redirect a domain such as costudio.com to www.costudio.com

Jan 21, 2011

Google-Maps-Point-in-Polygon /

https://github.com/tparkin/Google-Maps-Point-in-Polygon/blob/master/maps.google.polygon.containsLatLng.js

Jan 18, 2011

jquery cool sample

http://www.ajax-zoom.com/index.php?cid=examples

Jan 16, 2011

kml parser

http://feedvalidator.org/
http://code.google.com/apis/kml/faq.html
http://www.jedit.org/

Jan 6, 2011

A potentially dangerous Request.Form value was detected from the client

A potentially dangerous Request.Form value was detected from the client


Put validateRequest="false" in your page directive or web.config file.

http://msdn2.microsoft.com/en-us/library/ms972967.aspx

Dec 19, 2010

Location sharing and updating in iphone iOS 4

iOS Devices (iPhone, iPod touch, iPad)

On the native application, which you can download from the App Store:
Enable location services on your device by going from your Home screen to Settings >General and turning "Location Services" to On.
Open the application and sign in to your Google Account if you haven't yet (Google Apps users learn more).
Enable background location reporting by going to Settings > Background updating > and turning to On.
Note: the native application will run on the iPhone 3GS, iPhone 4, iPad, and iPod touch (3rd/4th generation), with iOS 4+. However, background location updating is only supported on the iPhone 3GS, iPhone 4, and iPad 3G.

Your location will only update in the background when you're moving (exceptions: when you switch the app from foreground to background mode, or go from a "moving" to a "stationary" state, the app will continue to update your location for a few minutes). The background location update frequency isn't a fixed amount of time. The update frequency is determined by several factors, such as how much battery life your phone has, if you are moving, or how fast you are moving. Background updating will only use cell ID or WiFi location detection depending on your device. GPS will not be used in the background to preserve battery life.


http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=136647
http://itunes.apple.com/us/app/locationminder/id383031428?mt=8
http://venturebeat.com/2010/06/21/loopt-iphone-background/

Dec 3, 2010

Async in c#, web service Credential

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SimActivation.aspx.cs"  Async="true" Inherits="SimActivation" %>




com.att.wireless.eod.Provision p = new com.att.wireless.eod.Provision();
p.Credentials = new System.Net.NetworkCredential("xx",
"xx", "costudio.com");

p.Activate_SIM_PPUCompleted +=new com.att.wireless.eod.Activate_SIM_PPUCompletedEventHandler(UpdatePhoneNumber);
p.Activate_SIM_PPUAsync(koreId, "VRG1", activateDate,
"lbt", string.Empty, string.Empty,
string.Empty, string.Empty, string.Empty, string.Empty, 99, string.Empty);




public void UpdatePhoneNumber(object o, com.att.wireless.eod.Activate_SIM_PPUCompletedEventArgs e)
{
if (e.Result.Status_Code.Equals("1"))
dm.ActivateWithPhone(koreId, e.Result.MSISDN);
Response.Write("Status Code: " + e.Result.Status_Code + ", MSISDN:" + e.Result.MSISDN + ", Batch_Identifier:" + e.Result.Batch_Identifier);
Response.End();
}

Sep 10, 2010

Wordpress install

Famous 5-Minute Install




Users of XAMPP (Windows): Some versions of XAMPP do not enable mod_rewrite by default (though it is compiled in Apache). To enable it — and thus enable WordPress to write the .htaccess file needed to create pretty permalinks — you must open apache/conf/httpd.conf and uncomment the line LoadModule rewrite_module modules/mod_rewrite.so(i.e., delete the hash/pound sign at the front of the line).


\wamp\www\wordpress\wp-includes\httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so

step1: download/install
http://www.wampserver.com/en/download.php
step2:
C:\wamp\bin\apache\apache2.2.13\conf
httpd.conf :
change port from 80 to 8x
step3:
create database for wordpress in mysql
step4:
download wordpress and unzip to www folder
step5:

Editing wp-config.php


Aug 28, 2010

Location Sensor , wifi, gps

http://geosenseforwindows.com/

 Geosense is a Windows Sensor that provides positioning information. The sensor utilises the Google Location Services for WiFi and IP triangulation to provide reasonably accurate location data.


http://www.turboirc.com/gps7/
Welcome to GPSDirect NMEA Sensor Driver for Windows 7.
A driver that maps any COM-based NMEA-compatible GPS hardware to a Windows 7 Sensor.