Category Archives: ETC..

When it comes to the future, there are three kinds of people

When it comes to the future, there are three kinds of people:
those who make it happen, those who want it to happen and those who wonder what has happened

– X-Bit Labs –

Posted in ETC.. | Leave a comment

Dangerous Heat in New York

Oh My God :(


Posted in ETC.. | Tagged , , | 1 Comment

Check credit card risk score before shipping!


Using Maxmind, you can check your customer’s credit card risk score very easily.

(http://www.maxmind.com/app/ccv_overview)


Fraudster techniques becoming more advanced
Techniques used in online card-not-present fraud are becoming more and more sophisticated. Traditional fraud screening tools can only determine if a credit card is legitimate or if the user-entered account information matches those on record. Today, fraudsters can obtain personal credit card information, pose as the legitimate card holder, and bypass standard fraud checks.

Looking at fraud from a different angle
At MaxMind, we approach fraud screening in a different way. We examine an online transaction from various angles. Our tools are not geared towards verifying the authenticity of the credit card details used for the purchase, but rather, identifying if the purchaser is the legitimate card holder. Through our analysis, we have been able to identify traits and patterns that are associated with fraudulent orders. By asking the right questions, we can provide e-commerce businesses with the necessary information to detect fraudulent orders before the payment is processed.

Key features include: (Download MaxMind minFraud White Paper)

  • Geographical IP address location checking
  • High risk IP address and e-mail checking
  • Issuing bank BIN Number country matching*
  • minFraud Network
  • Post query analysis
  • Cost-effective pricing starting at $0.005 per transaction

:: TEST Sample Result::

distance = 19
countryMatch = Yes
countryCode = US
freeMail = Yes
anonymousProxy = No
score = 2.51  <== If more then 3, you’d better make sure its safe before shipping
binMatch = Yes
binCountry = US
err =
proxyScore = 0.00
ip_region = NY
ip_city = New York
ip_latitude = 40.7619
ip_longitude = -73.9763
binName = MBNA America
ip_isp = Road Runner
ip_org = Road Runner
binNameMatch = NA
binPhoneMatch = NA
binPhone = 5555555555
custPhoneInBillingLoc = NotFound
highRiskCountry = No
queriesRemaining = 1961
cityPostalMatch = No
shipCityPostalMatch =
maxmindID = —
isTransProxy = No
carderEmail = No
highRiskUsername = No
highRiskPassword = No
riskScore = 9.55
explanation = This order is slightly risky, and we suggest that you review it manually, especially for B2B transactions. The order is slightly riskier because the e-mail domain, yahoo.com, is a free e-mail provider

* While you testing, if you get below error,

(If you are using php higher than 5.3.0 then you might see this error because ereg function has been deprecated.)

Deprecated: Function ereg() is deprecated in …\HTTPBase.php on line 233

Open HTTPBase.php and look at the 233 line.

Replace

if (ereg (“([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})”,$content)) {

to

if (preg_match (“([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})”,$content)) {

Posted in ETC.., Tech Note | Tagged , , , | 13 Comments

[Ext-JS] How to get selected value from combo box

It was so hard to solve it. @__@;;;;

items : [
{
	xtype : 'combo',
	name : 'selected_category',
	id : 'selected_category',
	hiddenName : 'selected_category',
	fieldLabel : 'Select Category ',
	displayField : 'category',
	valueField : 'id',
	triggerAction : 'all',
	anchor : '-10',
	emptyText : "Add New Category",
	editable :false,
	store : {
		xtype : 'jsonstore',
		url : '/uniapple/getList/',
		fields : ['id','category']
	}//store
	,
	listeners : {
		'select' : function(combo, record){
			// do something
		}
	}
}
buttons : [
{
	text : 'Get Selected Combo Value',
	hidden: true,
	handler : function(){

		Ext.Ajax.request({
			url : '/uniapple/dammCombo/',
			params : {
				id : 'need selected value as id',
			},
			success : function(response){
				alert(response.responseText);
			} //success
		})		
	}
},

I have a like above combo box.

and on click a button, I want to get the selected combo box value.

May I tried about 3-50times and I give up and I use the other way :)

Before combo box, define a empty variable,

var categorySelectedId = null;

and in select listener (on select), get the value and put the empty variable.

items : [
{
	xtype : 'combo',
	name : 'selected_category',
	id : 'selected_category',
	hiddenName : 'selected_category',
	fieldLabel : 'Select Category ',
	displayField : 'category',
	valueField : 'id',
	triggerAction : 'all',
	anchor : '-10',
	emptyText : "Add New Category",
	editable :false,
	store : {
		xtype : 'jsonstore',
		url : '/uniapple/getList/',
		fields : ['id','category']
	}//store
	,
	listeners : {
		'select' : function(combo, record){
			//we can get the selected value using getValue()
			categorySelectedId = this.getValue();
		}
	}
}

and in button handler, using that variable!


buttons : [
{
	text : 'Get Selected Combo Value',
	hidden: true,
	handler : function(){

		Ext.Ajax.request({
			url : '/uniapple/dammCombo/',
			params : {
				'id' : categorySelectedId //<======
			},
			success : function(response){
				alert(response.responseText);
			} //success
		})		
	}
},

Posted in ETC.., Ext-JS, Tech Note | Tagged , , , | 17 Comments

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Posted in ETC.. | Leave a comment