WRX Alarm

How To Use The Alpine Alarm
Battery #CR2032.
Range? App 50ft. Battery fade, other cars, buildings, walls etc affect range.

1. Locking. Push the large button. This locks all the doors and will set the alarm (if equipped and in setable mode).

2. Unlocking. Push the small button once to unlock the driver’s door and disarm alarm, if set. Push the small button a second time to unlock all the doors.

3. Honking horn?
On 1999-2002 models the horn honks once for lock and twice for unlock, 3 times if a door is not closed. This audible honk feature is optional. To turn it off or to turn it on unlock all the doors and hold *both* buttons down until the horn honks once. The horn will always honk 3 times if a door is not fully closed when you lock it.
This was changed in 2003, models to a ‘chirp’. There is no longer an audible honk feature. If a door is ajar the system will chirp 5x and the lights flash.

4. Alarm. (optional)
System chirps when locked with the remote if you have an alarm, and no you can’t turn the chirp off.

5. Valet mode or alarm off: alarm light (red dot center dashboard display) rapidly flashing 3 times means the alarm is in “Valet” mode and is not setable. The light will stop flashing when you start the car.
To set valet mode or just to disable the security alarm system: 1. unlock all doors 2. physically open the driver’s door 3. hold the UNLOCK button on remote for 2+ seconds or so. The red ‘security’ light will then flash 2 times a second until the car is turned on.

6. Arming the alarm: to make an alarm in valet model arm-able, unlock all the doors and hold the small button down on the remote until the light stops flashing. Now when you lock the doors the alarm will be set and the light will flash on and off, on and off.

7. Alarm goes off?
Push the small button on the remote
OVERRIDING the alarm when you don’t have a Remote to disable it.
If you don’t have the remote put the key in the ignition and turn it on and off three times and the car will start on the 4th time

8. Program remotes: works on Alpine system.

Unlock all doors, foot on brake, all doors closed. Cycle key quickly but carefully on-off appr 10 times until the car honks one time.
Do not turn the key far enough to start the car, just to the ‘on’ position so the dashboard lights up.

When the horn honks, open and close the driver’s door, press any remote button and that’s it.
Program another remote? Quickly open and close the driver’s door again and push a button on the 2nd remote. That’s it.

When you’re done, remove the key and the horn should honk 3 times. You’re all set.
Sometime it takes more than 10 on-offs to set program mode. Open/close the door, lock/unlock etc, wait 10 minutes, then try again.

more detailed instructions
If your car is equipped with security system disarm it (with another remote if you have one or by turning the key ON LOCK 3 times in 5 seconds).
Take the key out of ignition (the key has to be taken out).
The next steps have to completed in 45 seconds.
Open and close driver door (the door open light has to come on/off on the cluster).
Put the key into ignition.
Turn the key ON LOCK 10 times in 15 seconds, leaving the key in LOCK position (do not take the key out).
Horn will sound once to indicate you are in remote programing mode (if the horn does not sound start over).
Open and close the driver door (this has to be done within 45 seconds of step 4).
Press and release any button on the remote.
Horn will sound 2 times to indicate that the remote has been programed.
If you have more remotes, repeat steps 8 to 10 (up to 4 remotes could be programed).
Remove the key from ignition.
Horn will sound 3 times to indicate the completion of the procedure.

Posted in Uncategorized

Git on Windows

In Git Bash if you try to clone a repository from a linux machine you get the following error
“FATAL ERROR: Disconnected: No supported authentication methods available (server sent:publickey)

This is a head scratcher. Your server is setup for private key authentication. You can connect to the server from the GitBash MINGW64 terminal using ssh username@linuxserver while the corresponding key information is in the file .ssh/config and the key is stored in the .ssh folder.

Then you use the “git clone ssh://username@linuxserver:/path_to_repo” then you get the above error.

That is because it depends on what your GIT_SSH environment variable is set to. If you use some corporate git servers and the required method of communication is putty and paegant for authentication and key management then the GIT_SSH should point to plink.exe. But if your git repository is a linux machine and you supply the privatekey then the GIT_SSH should be ssh.exe

More information on this link
https://stackoverflow.com/questions/3431314/github-no-supported-authentication-methods-available

Posted in Uncategorized

Python Startup

Setup a new python

I used the information from this link https://jeffknupp.com/blog/2014/02/04/starting-a-python-project-the-right-way/

Install Python

First find out where the Python is installed. In my computer i installed it here

C:\Users\<user name>\AppData\Local\Programs\Python\Python36-32\Scripts

Add this to the PATH variable so that it will be helpful in setting up the virtual environment.

Open the command prompt and go to the folder where you want to start a python projects. For example i was working on mywebproj. It will be located in D:\Projects

So from the command prompt, i go to D:\Projects and then create a folder called mywebproj.
Now I have to create a virtualenv in that folder, so that all the python libraries that i’m going to install for this project are local to that project

If the path is already set, then from the command line issue the following command
virtualenv mywebproj

it will create all the structure for a project and related libraries will be copied into that folder. Now if you use pip to install new libraries then it will be installed in that folder local to that project.
First we need to activate the virtualenv, by calling the command
mywebproj\Scripts\activate
This is how it is in my windows machine.
Now the command line will look like this
(mywebproj)D:\Projects\mywebproj

If you already installed Pycharm then open it and then open the project D:\Projects\mywebproj.
After that we need to select the interpreter properly(if it doesn’t automatically find out)
File->Settings->Project mywebproj->Project Intepreter. Now select the Gear Icon and Select Add Local.
Then browse to the project folder and find python.exe D:\Projects\mywebproj\Scripts\python.exe
Once you select the exe, then the Pycharm displays all the libraries installed for that virtual environment.

Mac OS Setup

The assumption is python 3.6 is already setup with pip3 and everything.
First create the project folder where it will be setup and in this case is mywebproj.
it will be set in /Users/<user_name>/Documents/Projects/mywebproj

Now issue the following command from the location /Users/<user_name>/Documents/Projects

pyvenv mywebproj

This will create the virtualenv in the folder mywebproj. Now activate the virtual environment by issuing the following command

source mywebproj/bin/activate

now you are in the virtual environment. You can check the version of the python and pip by issuing the following command

python –version

Python 3.6.2

That tells you that the virtual environment is set to use Python 3.6.2. To make sure that the pycharm is using the correct interpreter, once you open the pycharm and selected the correct project, now

Pycharm Community Edition -> Preferences -> Project Interpreter(mywebproj). Here you can select the correct interpreter if it is not already setup

Now install the required libraries by issuing the command pip. to install the library requests

pip install requests

 

 

Posted in python

Find the recent git branch

Find all the commits to the git repo

You have a git repo but don’t have any idea what the most recent git branch. You can find it from the git repo.
In my case i have access to the git repo in my linux machine as follows

/home/git/my_lib.git

Once you are in the folder issue the following command

git for-each-ref --sort=-committerdate refs/heads

the output will look like this

093ae543bf40e3394c95b75074d1c87f1ccd248a commit	refs/heads/br_11_20_2013
10d8be135e15b40cdf62dbf212c4768c2b4b2cab commit	refs/heads/master
e9e0cb4ac232207c970d660e08ca7214db21efd8 commit	refs/heads/br_5_17_2013
3c123ae255e9b4ec9850a889de9f3dfbb6766c1f commit	refs/heads/br_4_24_2013
ea16d0a376c125aa1a47647a562ec74212801923 commit	refs/heads/br_11_24_2012
427ad84f7f9dbef690bd875550045f02b6344736 commit	refs/heads/br_10_25_2012
35aba3460091b7d4bad8a6ca102061e21d2cb404 commit	refs/heads/br_8_19_2012
15c2db0c9289db380127d54c9ad341ece86532c7 commit	refs/heads/br_5_18_2012

Now based on the output, the most recent branch is br_11_20_2013

Posted in git

GitBash XMing on Windows

GitBash and XMing are the easiest way to have X11 forwarded from your linux machine to your windows machine. Gone are the days when you install cygwin and related items just so that you can have linux functionalities in the windows machine.

Steps

  1. First install GitBash
  2. Then install XMing
  3. open GitBash and make sure that the DISPLAY is setup

How to setup display

To forward X11 you call

ssh -Y username@server

Also you have to call

export DISPLAY=localhost:0.0

You can also set that in the .bashrc file so that everytime you open the gitbash that file is executed and the variable is set

Posted in Uncategorized

Privacy Policy

Privacy Policy
Last updated: 02/08/2017
SuriyaSuneel Inc created this app Remote for Roku with Voice (the
“App”). This page informs you of our policies regarding the collection, use and disclosure of
Personal Information we receive from users of the Site.
I do not collect any personal information while you are using the App. The use of RECORD_AUDIO permission is only to convert your voice into a command for the device it is controlling. No information is transferred to any outsider or any information is stored in the device.

Changes To This Privacy Policy
This Privacy Policy is effective as of 02/08/2017 and will remain in effect except with respect to any
changes in its provisions in the future, which will be in effect immediately after being posted on this
page.
We reserve the right to update or change our Privacy Policy at any time and you should check this
Privacy Policy periodically. Your continued use of the Service after we post any modifications to the
Privacy Policy on this page will constitute your acknowledgment of the modifications and your
consent to abide and be bound by the modified Privacy Policy.
Contact Us
If you have any questions about this Privacy Policy, please contact us at suneelsuriya@gmail.com

Posted in Uncategorized

php 5.6 on ubuntu

PHP 5.6 on Ubuntu 14

To install PHP 5.6 or to upgrade from PHP 5.5 on Ubuntu 14:

  1. Enter the following commands in the order shown:
    apt-get -y update
    add-apt-repository ppa:ondrej/php
    apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip
    apt-get -y update
    
  2. Enter the following command to verify PHP 5.6 installed properly:
    php -v
    

    Following is a sample response that indicates PHP 5.6 is installed:

    PHP 5.6.22-4+deb.sury.org~trusty+1 (cli)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    

    The preceding message confirms that the Zend OPcache is installed. We strongly recommend using the OPcache for performance reasons. If your PHP distribution does not come with the OPcache, see the PHP OPcache documentation.

Posted in Uncategorized

Breaker Config

My Breaker Config

 

 

Switch Rooms Affected
7 Prayer Room, Hall,Suneels Bedroom,Suriya’s room,Master Bedroom
10 Main Dining Room
19 Water Softener, tool room, Server

 

Posted in Uncategorized

Reset mysql root password if forgotten

How can I reset my MySQL password?

IconsPage/warning.png Following this procedure, you will disable access control on the MySQL server. All connexions will have a root access. It is a good thing to unplug your server from the network or at least disable remote access.

To reset your mysqld password just follow these instructions :

  • Stop the mysql demon process using this command :
    •    sudo /etc/init.d/mysql stop

  • Start the mysqld demon process using the –skip-grant-tables option with this command
    •    sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &

Because you are not checking user privs at this point, it’s safest to disable networking. In Dapper, /usr/bin/mysqld… did not work. However, mysqld --skip-grant-tables did.

  • start the mysql client process using this command
    •    mysql -u root

  • from the mysql prompt execute this command to be able to change any password
    •    FLUSH PRIVILEGES;

  • Then reset/update your password
    •    SET PASSWORD FOR root@'localhost' = PASSWORD('password');

  • If you have a mysql root account that can connect from everywhere, you should also do:
    •    UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';

  • Alternate Method:
    •    USE mysql
         UPDATE user SET Password = PASSWORD('newpwd')
         WHERE Host = 'localhost' AND User = 'root';

  • And if you have a root account that can access from everywhere:
    •    USE mysql
         UPDATE user SET Password = PASSWORD('newpwd')
         WHERE Host = '%' AND User = 'root';

For either method, once have received a message indicating a successful query (one or more rows affected), flush privileges:

FLUSH PRIVILEGES;

Then stop the mysqld process and relaunch it with the classical way:

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start
Posted in mysql

Remove a google account from Samsung

I added a google account to my Galaxy Note 4. There was this main gmail account and then a secondary account that i use for my kids for them to watch youtube. I added this to my phone and the nightmare started. Once my trial is finished i wanted to remove it from my phone. The proper way is to go to Settings->General->Accounts and then select Google and it should show the list of Google accounts that are linked to the phone and i can select the one that i want to remove.

Once i click Google, the Settings will crash. After some research I found that all you have to do is open Gallery and then from the Menu you can go to the accounts associated and from there you can remove that account

Posted in Uncategorized