일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- mosquitto
- mySQL_Replication
- pm2 확인
- pm2 상태 확인
- datagridview 직접입력
- setInterval 외부 정지
- AntDesign
- setInterval 중지
- 1883
- pm2 시작
- DatePicker
- 공인IP
- DataGridView 직접 입력
- setInterval clear
- html #select #option #multiple
- 서버동기화
- allow_anonymouse
- transfer
- pm2 설치
- listener 1883
- timepicker
- pm2
- mosquitto.conf
- invalid data
- 맥 어드레스
- c# datagridview 데이터 넣기
- Replication
- setInterval 정지
- map이 undefined가 뜰 때
- 데이터테이블 데이터 넣기
- Today
- Total
목록분류 전체보기 (740)
개발 노트
현재 시각을 얻는법 const today = new Date;//오늘 console.log(today.getTime()); 1일을 밀리세컨드로 표현하면 1,000 * 60 * 60 * 24 가된다 (1초는 1000 밀리세컨드) 날짜 객체에서 연도 구하기 Date.getFullYear() 4자리 년도 정수 반환 Date.getMonth() 0부터 시작하는 정수 월 반환(1월 -> 0, 12월 -> 11) Date.getDate() 정수 날짜 반환 연, 월, 일 더하기/빼기 const newDate = new Date('2023-01-20'); newDate.setFullYear(newDate.getFullYear() + 5); newDate.setMonth(newDate.getMonth() + 3); ne..
프로그램 작성중 일정 시간 후에 특정코드를 작동시키게끔 할때 필요한 함수가 있다. setTimeout 의 코드는 다음과 같다 function 뒤에 있는 3000은 3초를 의미한다 setTimeout(function() { console.log('Works!'); }, 3000);
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/cYAueU/btszXZk8slm/hijzWQZ7gih7lmiMWd8zs1/img.png)
nodejs 서버 생성 후 axios cheerio 라이브러리 설치 npm install axios cheerio 본 게시물에서는 inflearn 사이트를 크롤링하는 것으로 한다 inflearn.js 파일생성 // 특정 url 입력시 페이지에 있는 html 코드를 모두 가져옴 const axios = require('axios'); // 가지고 온 html을 파싱 const cheerio = require('cheerio'); const getHTML = async(keyword) => { try { // encodeURI를 사용하지않으면 한글 입력시 오류발생 return await axios.get('https://www.inflearn.com/courses?s=' + encodeURI(keyword)..
프로젝트 폴더에서 package.json 파일 생성(다음 명령어는 세팅을 생략하는 명령어이다) npm init -y express 설치 npm install express app.js 파일 생성 const express = require('express'); const app = express(); const port = 3000; app.get('/', (req, res) => { res.send('Hello, World!'); }); app.listen(port, () => { console.log(server Start!. http://localhost:${port}); }) 서버실행 명령어 node app.js 접속 URL http://localhost:3000
web 필드 칼라 설정 페이지 추가 web 개체 정보 테이블 변경 음수량 프로그램 만들기 API를 사용한 함수 만들기 급이기기설정 - 1회 공급량에서 사료량 변경 시 바로 반영시키기 카카오 지도에서 화면에 마커 표시 안 나오는 에러 고치기 매일 아침 데이타베이스 백업 음수량 - 수신 체크