-
เรื่องล่าสุด
คลังเก็บ
- กุมภาพันธ์ 2021
- ธันวาคม 2020
- กรกฎาคม 2020
- มิถุนายน 2020
- กุมภาพันธ์ 2020
- มกราคม 2020
- มีนาคม 2015
- มกราคม 2015
- ธันวาคม 2014
- พฤศจิกายน 2014
- ตุลาคม 2014
- กันยายน 2014
- สิงหาคม 2014
- กรกฎาคม 2014
- มิถุนายน 2014
- พฤษภาคม 2014
- เมษายน 2014
- มีนาคม 2014
- กุมภาพันธ์ 2014
- มกราคม 2014
- ธันวาคม 2013
- พฤศจิกายน 2013
- ตุลาคม 2013
- กันยายน 2013
- สิงหาคม 2013
- กรกฎาคม 2013
- มิถุนายน 2013
- พฤษภาคม 2013
- เมษายน 2013
- มีนาคม 2013
- กุมภาพันธ์ 2013
- มกราคม 2013
- ธันวาคม 2012
- พฤศจิกายน 2012
- ตุลาคม 2012
Category Archives: ไม่มีหมวดหมู่
Enable MySQL slow query log on CentOS
Enable MySQL slow query log on CentOS Posted on มิถุนายน 13, 2019 by admin 1. แก้ไข MySQL config ได้ที่ vi /etc/my.cnf หากไม่พบ ให้ลองดูที่ /etc/mysql/my.cnf แทน 2. เพิ่มคำสั่งล่างบรรทัด [mysqld] slow_query_log = 1 log-slow-queries = /var/log/mysql-slow.log long_query_time = 2 3.สร้างไฟล์เก็บ log รอไว้ touch /var/log/mysql-slow.log … Continue reading
Posted in ไม่มีหมวดหมู่
Leave a comment
nextjs jest enzyme yarn test
1.ติดตั้ง package npm install –save-dev jest babel-jest babel-core babel-preset-env babel-preset-react 2.สร้างไฟล์ /config/jest.setup.js ใส่ code ดังนี้ import { configure } from ‘enzyme'; import Adapter from ‘enzyme-adapter-react-16′; configure({ adapter: new Adapter() }); 3. สร้างไฟล์ jest.config.js อยู่ตำแหน่งเดียวกับ package.json ใส่ค่าดังนี้ module.exports = { setupFilesAfterEnv: [‘./configs/jest.setup’], moduleNameMapper: { ‘\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga) : ‘<rootDir>/assetsTransformer.js’ }, verbose: true }; 4. สร้างไฟล์ assetsTransformer.js ใส่ค่าดังนี้ const path = require(‘path’); module.exports = { process(src, filename, config, options) { return `module.exports = ${JSON.stringify(path.basename(filename))};`; … Continue reading
Posted in ไม่มีหมวดหมู่
Leave a comment
NODEJS NEWRELIC
1) goto root folder 2) sudo npm install newrelic –save 3) copy node_module/newrelic/newrelic.js to root folder 4) edit newrelic.js ‘use strict’ /** * New Relic agent configuration. * * See lib/config/default.js in the agent distribution for a more complete * … Continue reading
Posted in ไม่มีหมวดหมู่
Leave a comment
robot framework wait until element is clickable – not working
robot framework wait until element is clickable – not working Posted on มิถุนายน 5, 2019 by admin Your screen not see the element then just scroll to top first Execute JavaScript window.scrollTo(0,0) Sleep 7s Wait Until Element Is Visible … Continue reading
Posted in ไม่มีหมวดหมู่
Leave a comment
วิธี Bind DNS Server ใน virtualmin/webmin
วิธี Bind DNS Server ใน virtualmin/webmin Posted on กันยายน 21, 2016 by admin การจะผูก domain กับ dns server ไม่ว่าจะเป็น Hosting แรก หรือเป็นการย้าย Hosting จะต้องทำขั้นตอนนี้คือ วิธี Bind DNS Server สร้างชื่อ dns ของเราเอง และนำ DNS ไปผูกใส่กับ domain ของเรา ถ้าซื้อ domain จาก godaddy ก็เข้าไปจัดการที่ godaddy … Continue reading
Posted in ไม่มีหมวดหมู่
Leave a comment