일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
31 |
- flutter
- Algorithms
- leetcode
- English
- language
- HTML
- database
- Infra
- etc
- mongodb
- Datastructure
- node.js
- frontend
- ReactJS
- nodejs
- express
- javascript
- java
- react
- DART
- Chrome
- 영어
- JSP
- Git
- db
- cloud
- CSS
- MAC
- OOP
- typescript
- Today
- Total
목록Dev (7)
henry dev
VS Code에서 React 개발을 할 때 component를 auto fix에서 import하지 못 하는 경우가 발생했다. 이를 해결하기 위해서는 프로젝트 root에서 "jsconfig.json" 파일을 생성한다. 그리고 아래와 같이 작성해주면 이후 auto fix에서 component를 import 할 수 있다. { "compilerOptions": { "module": "commonjs", "target": "es2016", "jsx": "preserve", "baseUrl": "./src", "checkJs": true }, "exclude": ["node_modules", "**/node_modules/*"] } 참고로 위 옵션 중 "checkJs"를 true로 하면 객체의 property를 사..
\o /tmp/out.txt // 다시 콘솔에 결과 출력 \o // 또는 COPY ( select ~ ) TO '/tmp/data.csv' with csv header DELIMITER ','; postgres에서 위와 같은 명령어를 입력한 후 쿼리를 실행시키면 파일에 결과가 출력된다. 다시 \o를 입력한 후 쿼리를 실행시키면 콘솔에 결과가 출력된다. 참고로 /tmp 경로가 아닌 다른 경로에 출력하려 하면 계정 권한에 따라서 출력을 못 할 수 있다.
iOS 시뮬레이터를 실행시키려고 할 때 "Unable to boot the Simulator." 에러가 발생하면서 실행이 안 되는 현상이 발생했다. 이를 해결하려면 상단 메뉴에서 about this mac-More info.-General-Storage-Developer의 느낌표-xCode cache 삭제 이 과정을 거치면 문제가 해결된다.
아래와 같이 scaffold를 탭할 때 unfocus를 해주면 input창에 포커스 가 있던게 없어진다. 그러면서 키보드도 사라진다. void _onScaffoldTap() { FocusScope.of(context).unfocus(); } ... @override Widget build(BuildContext context) { return GestureDetector( onTap: _onScaffoldTap, child: Scaffold( appBar: AppBar( ...
Flutter에서 AppBar를 많이 사용하는데 모든 화면에서 AppBar에 대한 배경색, 폰트색, 폰트 굵기 등을 정의한다면 너무 귀찮을 것이다. AppBar 성격상 동일한 스타일이 적용될건데 매번 반복 작업을 해야하기 때문이다. Scaffold의 배경색 같은 것도 마찬가지다. 이런 부분을 해결하기 위해 main.dart에서 style에 대한 전역 설정을 할 수 있다. Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( scaffoldBackgroundColor: Colors.white, primaryColor: const Color(0xFFE9435A), appBarTheme: const AppBarTheme( fore..
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Github에 push하는 과정에서 갑자기 위와 같은 에러가 발생했다. Sourcetree에 정상적으로 Github 계정을 등록했었고, 로컬 key 또한 Github 계정에 정상적으로 등록됐음을 확인했지만 지속적으로 에러가 발생했다. SSH Agent에 private key가 등록되지 않았던 것이 원인이었다. 먼저 아래와 같이 SSH Agent가 정상적으로 MAC에서 동작하고 있는지 확인했다. ps -e | grep ssh-age..