Pages

Showing posts with label detect. Show all posts
Showing posts with label detect. Show all posts

Monday, July 24, 2017

Detect Dementia 20 Years In Advance!

Detect Dementia 20 Years In Advance!




If someone in your family has Alzheimer�s or dementia, you may even at a young age, already be worrying if this is going to happen to you. Whether you want to know the truth ahead of time is another decision all together, but it seems as though science will be offering you that option relatively soon.

The research team from the Banner Alzheimer�s Institute in Phoenix, Arizona, studied 44 people aged between 18 and 26, half of which carried a gene mutation which causes the disease. The team found these people had structural differences in parts of the brain and larger quantities of protein in their cerebrospinal fluid than people without the gene mutation, even before they showed signs of memory problems, or plaques in the brain associated with the disease. It appeared that changes in the brain and substances in the fluid surrounding the spinal column can be found in people who will develop inherited Azheimer�s disease decades before symptoms will develop. When caught this early on, drugs designed to halt the progression of the condition are likely to be more effective than once memory problems have taken hold, the researchers said.

[The findings], �They raise new questions about the earliest brain changes involved in the predisposition to Alzheimer�s and the extent to which they could be targeted by future prevention therapies,� said David Cameron, who also announced that a series of clinics will be established to use brain scans and memory tests to diagnose Alzheimer�s disease earlier. This could cause a significant decrease in the severity of people�s dementia, and increase the quality of life for an extended period of time. Not only that, but it gives time to prepare for the future, before you are unable to do so, if the disease reaches that point for you even with preventative measures. We can�t wait to hear more about these clinics and where we can utilize the preventative testing.
Read more »

Saturday, July 1, 2017

Detect the browser resolution by php and js

Detect the browser resolution by php and js


Code:




Read more »

Tuesday, June 20, 2017

Detect Enemy Illegal Click !! MapHack Detector

Detect Enemy Illegal Click !! MapHack Detector


Created by Blasz on PlayDota Forum

Download:�http://www.mediafire.com/?2uu6j4h7mqd2tj8



this program can seperate between ally click and enemy click, so it more easy to use...

1. Download DotaReplay Parser
2. Install the parser.
3. Extract enemy_click.exe to the same folder as your DotaReplay parser.
4. Open DotaReplay parser and click on the settings file on the left.
5. Put the correct directory of your replay folder in the Replay folder box and click update.
6. Click the replay tab, and check the Log actions box at the bottom, if it is not checked, the program�� will not work.

How to illegal click check?

1. Open the replay you want to check in DotaReplay parser.
2. Go to your command prompt/terminal, for windows, press windows_key + r and type in "cmd" + enter.
3. Change to your Replay Parser directory. For windows, type
cd "C:InsertPathDirectoryHere"
replacing your actual path directory inside the double quotes and hit enter.
Note: If your directory is in a different drive (eg, the D drive instead of the C drive) you will need to��� use the /d parameter after cd, eg:
cd /d "D:DotA Replay Manager"����� To skip this step in the future, make a shortcut of command prompt and right click it --> properties. Put��� your DotaReplay parser directory path in the "Start In" box.
4. Type "enemy_click.exe log.txt" without the double quotes and hit enter.
5. Type in the time you want to check enemy clicks up until using the format mm:ss, if the correct format is�� not used, it will default to 02:15.
6. You will then be asked if you want to check enemy clicks for just 1 player, type y or yes, anything else�� will exit the program.
7. If you chose yes, enter the player slot number of the person you want to check (1 = blue ... 10 = brown)
8. Type in the time you want to check enemy clicks up until using the format mm:ss. Type "all" if you want to��� see all the clicks of that person (up to 99:59). If the correct format is not used, it will default to 02:15.
9. To check another replay, just open up another replay and pressing the up arrow key in the terminal window�� will bring back your last command and press enter.

Question is Welcome :)
Read more »

Monday, June 19, 2017

Detect and check if your app run in multi window mode

Detect and check if your app run in multi window mode



This example show how to detect and check if your app run in multi window mode, target Android N with Multi-Window Support, by calling isInMultiWindowMode() and override onMultiWindowModeChanged() methods.


package com.blogspot.android_er.androidmultiwindow;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

TextView textPrompt;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
textPrompt = (TextView)findViewById(R.id.prompt);

if(isInMultiWindowMode()){
textPrompt.setText("onCreate run In Multi Window Mode ");
}else{
textPrompt.setText("onCreate run NOT In Multi Window Mode ");
}
}

@Override
public void onMultiWindowModeChanged(boolean isInMultiWindowMode) {
super.onMultiWindowModeChanged(isInMultiWindowMode);

if(isInMultiWindowMode){
textPrompt.setText("It is In Multi Window Mode ");
}else{
textPrompt.setText("It is NOT In Multi Window Mode ");
}
}
}


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout

android_layout_width="match_parent"
android_layout_height="match_parent"
android_padding="16dp"
android_orientation="vertical"
tools_context="com.blogspot.android_er.androidmultiwindow.MainActivity">

<TextView
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_layout_margin="20dp"
android_layout_gravity="center_horizontal"
android_autoLink="web"
android_text="http://android-er.blogspot.com/"
android_textStyle="bold"/>
<TextView
android_id="@+id/prompt"
android_layout_width="match_parent"
android_layout_height="wrap_content"
android_textSize="28dp"
android_textStyle="bold"/>
</LinearLayout>


Next:
- onConfigurationChanged() called when window size changed in Multi-Window Mode

Read more »

Monday, June 12, 2017

Detect when a user stops typing with jQuery

Detect when a user stops typing with jQuery


When writing forms I frequently find I need to do some of my validation server side(for example checking if a username is already taken) but want to have a responsive real-time field validation displayed to the user. Obviously this effect can be achieved using AJAX but if you want to validate while the user is typing sending an AJAX request on every keypress is a very inefficient way of doing things. It seems to me that a "onInputFinished" event is needed so that you can detect and take action when a user stops typing in an input field.

I had a bit of a google around and couldnt find an elegant solution for it so I decided to roll my own using jQuery. This simple jQuery script allow you to add the "onfinishinput" attribute to HTML input fields in the same way you would use normal onclick and onkeyup events.

you can check out a working example here:

http://dl.dropbox.com/u/6217043/js-example/example.html

Using the Script:
After including the script on your page you can use the new event like this:

<input type="text" onfinishinput="alert(You typed + input_field.val())" />

NOTE: instead of using "this" when referring to the element use "input_field" like the example above.

Installing the Script:
The script can be downloaded from here:
http://dl.dropbox.com/u/6217043/js-example/onfinishinput.js

The script requires jQuery to function, the latest jQuery can be downloaded from here:
http://jquery.com/

Just include the scripts on your page and you are ready to go.
Read more »

Monday, June 5, 2017

Detect user touch with GestureDetectorCompat

Detect user touch with GestureDetectorCompat



Android example to Detect user touch with GestureDetectorCompat:


MainActivity.java
package com.blogspot.android_er.androidgesturedetector;

import android.os.Bundle;
import android.support.v4.view.GestureDetectorCompat;
import android.support.v7.app.AppCompatActivity;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

private GestureDetectorCompat gestureDetectorCompat;
TextView textInfo;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
textInfo = (TextView)findViewById(R.id.info);

gestureDetectorCompat = new GestureDetectorCompat(
this, new MySimpleOnGestureListener(textInfo));
}

@Override
public boolean onTouchEvent(MotionEvent event) {
gestureDetectorCompat.onTouchEvent(event);
return super.onTouchEvent(event);
}

private class MySimpleOnGestureListener
extends GestureDetector.SimpleOnGestureListener{

TextView textView;


public MySimpleOnGestureListener(TextView v) {
super();
textView = v;
}

@Override
public boolean onSingleTapUp(MotionEvent e) {
textView.append(" - onSingleTapUp -");
return super.onSingleTapUp(e);
}

@Override
public void onLongPress(MotionEvent e) {
textView.append(" - onLongPress -");
super.onLongPress(e);
}

@Override
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
textView.append(" - onScroll -");
return super.onScroll(e1, e2, distanceX, distanceY);
}

@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
textView.append(" - onFling -");
return super.onFling(e1, e2, velocityX, velocityY);
}

@Override
public void onShowPress(MotionEvent e) {
textView.append(" - onShowPress -");
super.onShowPress(e);
}

@Override
public boolean onDown(MotionEvent e) {
textView.append(" - onDown -");
return super.onDown(e);
}

@Override
public boolean onDoubleTap(MotionEvent e) {
textView.append(" - onDoubleTap -");
return super.onDoubleTap(e);
}

@Override
public boolean onDoubleTapEvent(MotionEvent e) {
textView.append(" - onDoubleTapEvent -");
return super.onDoubleTapEvent(e);
}

@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
textView.append(" - onSingleTapConfirmed -");
return super.onSingleTapConfirmed(e);
}

@Override
public boolean onContextClick(MotionEvent e) {
textView.append(" - onContextClick -");
return super.onContextClick(e);
}
}
}


activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout

android_layout_width="match_parent"
android_layout_height="match_parent"
android_padding="16dp"
android_orientation="vertical"
tools_context="com.blogspot.android_er.androidgesturedetector.MainActivity">

<TextView
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_layout_gravity="center_horizontal"
android_autoLink="web"
android_text="http://android-er.blogspot.com/"
android_textStyle="bold" />

<TextView
android_id="@+id/info"
android_layout_width="match_parent"
android_layout_height="match_parent"
android_gravity="bottom"
android_textStyle="italic" />
</LinearLayout>


Read more »

Sunday, May 28, 2017

Detect client speed using JavaScript

Detect client speed using JavaScript


You can detect how long it toke for the browser to load the page. With load I mean the download time. Have a look at window.performance it contains all the timings. Also see html5rocks.

if (window.performance && window.performance.timing)
{
var download_time = (window.performance.timing.responseEnd  - window.performance.timing.responseStart);
var
speed = ($(html).html().length) / download_time;
if (speed < 400)
{
alert(slow);
}
else {
alert(fast);
}
}

Note that this works best it the page size is large. For small pages the TCP/IP overhead for is large compared to your download time. My page was about 19304 bytes and I was able to detect mobile vs desktop.

Also see this stackoverflow question.

This does not work for IE8 and Safari
Read more »

Saturday, May 6, 2017

Detect phone type and network type

Detect phone type and network type


Android example to detect phone (CDMA, GSM, SIP or NONE) type and network type (CDMA, EDGE, GPRS, LTE...etc).

MainActivity.java
package com.blogspot.android_er.androidphone;

import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

TextView textPhoneType = (TextView)findViewById(R.id.textphonetype);
TextView textNetworkType = (TextView)findViewById(R.id.textnetworktype);

TelephonyManager telephonyManager =
(TelephonyManager) getApplicationContext()
.getSystemService(Context.TELEPHONY_SERVICE);


if(telephonyManager == null){
textPhoneType.setText("not supported TELEPHONY_SERVICE");
}else{
int phoneType = telephonyManager.getPhoneType();
int networkType = telephonyManager.getNetworkType();

textPhoneType.setText(
"Phone Type: " + phoneType + " " + decPhoneType(phoneType));
textNetworkType.setText(
"Network Type: " + networkType + " " + decNetworkType(networkType));
}
}

private String decPhoneType(int type){
String result = "";

switch(type){
case TelephonyManager.PHONE_TYPE_CDMA:
result = "CDMA";
break;
case TelephonyManager.PHONE_TYPE_GSM:
result = "GSM";
break;
case TelephonyManager.PHONE_TYPE_NONE:
result = "NONE";
break;
case TelephonyManager.PHONE_TYPE_SIP:
result = "SLIP";
break;
default:
result = "unknown type";
}
return result;
}

private String decNetworkType(int type){
String result = "";

switch(type){
case TelephonyManager.NETWORK_TYPE_1xRTT:
result = "1xRTT";
break;
case TelephonyManager.NETWORK_TYPE_CDMA:
result = "CDMA";
break;
case TelephonyManager.NETWORK_TYPE_EDGE:
result = "EDGE";
break;
case TelephonyManager.NETWORK_TYPE_EHRPD:
result = "EHRPD";
break;
case TelephonyManager.NETWORK_TYPE_EVDO_0:
result = "EVDO_0";
break;
case TelephonyManager.NETWORK_TYPE_EVDO_A:
result = "EVDO_A";
break;
case TelephonyManager.NETWORK_TYPE_EVDO_B:
result = "EVDO_B";
break;
case TelephonyManager.NETWORK_TYPE_GPRS:
result = "GPRS";
break;
case TelephonyManager.NETWORK_TYPE_HSDPA:
result = "HSDPA";
break;
case TelephonyManager.NETWORK_TYPE_HSPA:
result = "HSPA";
break;
case TelephonyManager.NETWORK_TYPE_HSPAP:
result = "HSPAP";
break;
case TelephonyManager.NETWORK_TYPE_HSUPA:
result = "HSUPA";
break;
case TelephonyManager.NETWORK_TYPE_IDEN:
result = "IDEN";
break;
case TelephonyManager.NETWORK_TYPE_LTE:
result = "LTE";
break;
case TelephonyManager.NETWORK_TYPE_UMTS:
result = "UMTS";
break;
case TelephonyManager.NETWORK_TYPE_UNKNOWN:
result = "UNKNOWN";
break;
default:
result = "unknown type";
}
return result;
}
}


layout/activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout

android_layout_width="match_parent"
android_layout_height="match_parent"
android_padding="16dp"
android_orientation="vertical"
tools_context="com.blogspot.android_er.androidphone.MainActivity">

<TextView
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_layout_gravity="center_horizontal"
android_autoLink="web"
android_text="http://android-er.blogspot.com/"
android_textStyle="bold" />

<TextView
android_id="@+id/textphonetype"
android_layout_width="match_parent"
android_layout_height="wrap_content" />
<TextView
android_id="@+id/textnetworktype"
android_layout_width="match_parent"
android_layout_height="wrap_content" />
</LinearLayout>



Read more »

Monday, April 17, 2017

Detect Your Driver Device Instance ID Code and Download Using Internet Connection

Detect Your Driver Device Instance ID Code and Download Using Internet Connection



Install your unknown device driver by finding the exact device id code of your newly installed driver. See my step-by-step guide below on how to detect your device id code and download.

How important our device driver in your computer?

In computing, a device driver or software driver is a computer program that operates or controls a particular type of device that is attached to a computer. A driver typically communicates with the device through the computer bus or communications subsystem to which the hardware connects. When a calling program invokes a routine in the driver, the driver issues commands to the device. Once the device sends data back to the driver, the driver may invoke routines in the original calling program. Drivers are hardware-dependent and operating-system-specific. They usually provide the interrupt handling required for any necessary asynchronous time-dependent hardware interface.

A device driver simplifies programming by acting as translator between a hardware device and the applications or operating systems that use it or click here for more info.
Unknown Device Driver Installed in My Computer


I Manually Retrieve the Device ID Code


And The last is how to search?


just follow the instruction in above image
or visit driver pack solution Here.

Complete installed Device Driver ID Code in My Computer.


More Tags: Angry Bird, Blogger, Fate , Plants Vs Zombie, Special Force, Point Blank, Ai Maps, Deep Freeze UnFreezer, Ninja Saga, Deep Freeze, Samsung SGH, Guitar Pro, USB XP Install, Yahoo 443 Problem, Turtle Odyssey, GTA San-Andreas, PlayStation, Tips Tweaks Tricks, HTML, Facebook, Animated JPG, Counter-Strike, USB Windows Format, Screensaver, USB Security.
Read more »