Friday, December 13, 2013

Can't find Oracle TNS service in Admin Service Box Windows7 (TNS-12560,TNS-0053)

Today I have a problem with ORACLE TNS in my client's PC, He can not find Oracle TNS service in his Windows7 Admin Service Box. There are some solutions from Google. This problem may caused by the UAC of Windows7 itself.
Here is the working solution for this case (TNS-12560: TNS:protocol adapter error TNS-00530: Protocol adapter error)
  • 1. Open command box as machine Administrator
  • 2. Type "lsnrctl start" the program will automatically check and fix some errors
  • 3. Done
  • ref. https://forums.oracle.com/thread/2443451

    Friday, August 23, 2013

    Armor for android fake anti-virus?

    วันนี้ผมเผลอกดติดตั้ง Armor for android - Antivirus จาก การแนะนำของเกมออนไลน์บน Android บางเกม หลังติดตั้งแล้ว เหมือนถูกมันยึดเครื่องไปซะงั้น uninstall ก็ไม่ได้ครับ โปรแกรมหลัก จะ Link ไปให้ดาวน์โหลดตัวโปรแกรม .apk ที่อยู่นอก googlePlay มาติดตั้งเอง ตรงนี้ก็ต้องยอมรับว่าพลาด ไว้ใจมันมากไป ค้น web เพื่อหาข้อมูลก็ไม่พบรายงานว่ามันเป็นโปรแกรมที่อันตรายหรือไม่ พยายามหาข้อมูลเพิ่มเติมก็พบ Clip หนึ่งใน Youtube บอกว่ามันน่าจะเป็นโปรแกรม Antivirus ปลอม ซึ่งจะขึ้นหน้าจอ พยายามชักชวนให้กดซื้อโปรแกรมตลอดเวลา http://www.youtube.com/watch?v=FMiarJAJW0w วิธีแก้ไข ของผมก็คือ ติดตั้งโปรแกรม Mobile Security & Antivirus จาก Google Play หลังติดตั้งก็ให้มันทำการสแกน ก็พบว่าโปรแกรม Armor for android เป็นตัวอันตรายตัวหนึ่งที่โปรแกรมมันรู้จัก ก็สั่งดำเนินการถอดมันออกไปเสีย ก็เป็นอันเรียบร้อย ประสบการณ์ที่ได้จาก งานนี้ก็คือ โปรแกรมหลักแม้เราจะเอามาจาก GooglePlay ก็อาจเชื่อมโยงไปถึงโปรแกรมไม่พึงประสงค์ที่อยู่นอก Google Play ได้ และ สิ่งที่ผู้ใช้งาน SmartPhone ควรทำก็คือ ควรถอดการเชื่อมต่อ ทางการเงินออกจากบัญชีใช้งานไว้ก่อน ไม่ว่าจะเป็น ของ Apple หรือ ของ Android อย่าผูกบัญชี จ่ายเงินไว้ถาวร เราจะซื้ออะไรก็กลับไปผูกการจ่ายเงินกันเป็นคราวๆไป จะปลอดภัยกว่า ธเนศ Today I try the program named "Armor for android",the anti-virus, on my android phone but I feel it is a fake antivirus program. It scan my phone and report that there are threats to fix.. but to fix these threats I must use the premium version of the program, and it lead me to the purchasing page in every step I try to find the information about the threat. This is weird for me. So I try to uninstall it. But can not find the way to uninstall it. After googling for information, I found one clip on YouTube showing the same problem. The clip maker say that Armor for android is a fake antivirus. You must use other antivirus program to remove it. Clip: http://www.youtube.com/watch?v=FMiarJAJW0w So I install the software "Mobile Security & Antivirus" download from Google Play and re-scan my Android.. The new program found "Armor for android" as one the threats to be removed. So I follow the step and the fake program was removed easily. Thanes

    Friday, May 10, 2013

    Can't start virtualbox VM after upgrade from Ubuntu 12.10 to 13.04

    Can't start virtualbox VM after upgrade from Ubuntu 12.10 to 13.04
    Error : Kernel driver not installed (rc=-1908) error
    Here are steps I did to solve the problem on my PC.
    Open terminal as root
    $sudo apt-get remove dkms
    $sudo apt-get install dkms
    $sudo apt-get install linux-headers-generic
    $sudo /etc/init.d/vboxdrv setup
    Exit terminal

    reboot
    Done.
    Thanes S.

    Tuesday, April 16, 2013

    Firefox Sync

    I get alert message from FireFox asking for updating software to version 20.xxx
    After searching through FF Tools menu to find the software update menu, I found the menu name "Firefox Sync" this is not the software update but what for. Firefox Wiki has the answer.

    Firefox Sync, originally branded Mozilla Weave,[2] is a browser synchronization feature that allows users to partially synchronize bookmarks, browsing history, preferences, passwords, filled forms, add-ons and the last 25 opened tabs across multiple computers.[3]
    It keeps user data on Mozilla servers, but the data is encrypted in such a way that no third party, not even Mozilla, can access user information.[4]
    Firefox Sync was originally an add-on[5] for Mozilla Firefox 3.x and SeaMonkey 2.0, but it has been a built-in feature since Firefox 4.0[6] and SeaMonkey 2.1.[7]

    Ok, back to the Firefox update issue. you can update your firefox from Help>About Firefox menu , it will check and update your firefox browser automatically.


    Thanes

    Monday, April 8, 2013

    Using date string in SQL statement MS Access Tip

    MS Access normally translate our input date from text box to US-format. So to avoid this we have to convert our date string from text box to US-Format before using it in our SQL statement.


    Ok here is the code,

    ....
    USdate = Format(InputDate,"mm/dd/yyyy")
    Sqlstring = " Select * from [Table1] where [datadate] = #"& USdate &"# "
    ....

    Hope this help.
    Thanes

    --------- `

    MS Access ปกติแล้วจะแปลวันที่ที่เราป้อนเข้าไปทาง Text box ต่างๆเป็น รูปแบบของ US ก่อนเอาไปประมวลผล ดังนั้นถ้าจะเลี่ยงปัญหานี้ ก็แค่แปลง รูปแบบของวันที่ที่ป้อนไปเป็น US format ก่อน เอาไปรวมใน SQL Statement  แค่นั้น

    ตัวอย่าง
    ....
    USdate = Format(InputDate,"mm/dd/yyyy")
    Sqlstring = " Select * from [Table1] where [datadate] = #"& USdate &"# "
    ....

    หวังว่าจะช่วยได้ครับ
    Thanes

    Thursday, April 4, 2013

    Microsoft Access

    Currently I'm working on MS-Access modification project for some clients, never use it before. Yes it is the good database program. The greatest thing about MS-Access is it simple data import process, user with little tech-skill can use it, copy some data from EXCEL and paste it it ACCESS data sheet. Wow!

    Cool


    Monday, March 25, 2013

    ActiveCalibration - โปรแกรมบริหารงานสอบเทียบ

    ทดสอบใช้งานโปรแกรม ActiveCalibration - โปรแกรมบริหารงานสอบเทียบ ที่
    http://calibration.datasoftinternet.com


    Try calibration management program ,ActiveCalibration, at
    http://calibration.datasoftinternet.com

    Friday, January 18, 2013

    Install LAMP in Ubuntu for software developing

    Ref:  jamespcole Blog
    http://setupguides.blogspot.com/2012/04/install-lamp-in-ubuntu-1204.html
    Very useful .. time saver for me

    Repost it here .. for my next setup.
     
    -----


    Install LAMP in Ubuntu 12.04 Precise(Apache, MySQL, PHP)

    This is a short guide to installing a basic LAMP(Linux, Apache, MySQL, PHP) development environment on Ubuntu 12.04 Precise Pangolin.

    First install lamp:
    Open a terminal and run the following:

    sudo apt-get install lamp-server^

    After the lamp server installation you will need write permissions to the /var/www directory.  Follow these steps to configure permissions.

    Add your user to the www-data group

    sudo usermod -a -G www-data <your user name>

    now add the /var/www folder to the www-data group

    sudo chgrp -R www-data /var/www

    now give write permissions to the www-data group

    sudo chmod -R g+w /var/www

    now log out and log back in to see the changes reflected in nautilus.

    Some extra things to install
    The following are not essential but they are things I almost always need as part of a LAMP install so I have included instructions on installing them.

    Curl:

    sudo apt-get install php5-curl

    Mod rewrite:

    sudo a2enmod rewrite

    GD2 Graphics Lib:

    sudo apt-get install php5-gd


    And that's it, how easy was that?  Ubuntu rocks!