본문 바로가기

Language_78

[Javascript] 디버깅 방법 Javascript를 분석해야하는데 이번에 디버깅 방법을 알아서 작성한다 ㅠ.. 우선 크롬으로 html 파일을 열어서 F12(개발자 도구)를 열어준다. Sources에 들어가서 해당 Line에 클릭을 하면 화살표가 생기는데 누르면 BP가 생긴다. F5를 눌러서 새로고침을 하면 해당 BP에 멈춰있는 것을 확인할 수 있다. 화살표 버튼을 눌러서 계속 진행할 수 있으며, Breakpoints부분을 통해 걸려있는 BP를 확인할 수 있다. 2021. 11. 14.
[javascript] 생년월일 Brute Force 코드 문제를 풀다가 javascript로 생년월일 Brute Force 해야하는 문제가 나와서 작성을 해보았다. for(var year=99; year>0; year--) { for(var month=12; month>0; month--) { for(var date=31; date>0; date--) { if(year.toString().length == 1) year ='0'.concat(year) if(month.toString().length == 1) month ='0'.concat(month) if(date.toString().length == 1) date ='0'.concat(date) value = ''.concat(year,month,date); } } } 99년도 부터 검색을 시작하도록 만들.. 2021. 11. 14.
[IntelliJ] JSP 프로젝트 생성하기. 수많은 삽질을 하다가.. 드디어 성공했다.. 운영체제 : windows 10 IntelliJ : 2021.02 Tomcat : 8.5.70 (C:\에 저장) New Project → Java 버전 확인 후 Next 클릭 Project name 설정 후 Finsh 클릭 (untitled로 해도 상관없다.) 프로젝트(spring_01) 우클릭 → Add Framework Support... 클릭 WebServices 클릭 → Version [Apache Axis]로 변경 → OK 클릭 Run → Edit Configurations.. 클릭 + → Tomact Server의 Local 클릭 * Application server에 Tomcat이 없다면 Configure..를 클릭하여 설치된 톰캣 폴더 설정 (아.. 2021. 8. 29.
[IntelliJ] 학생 인증, 설치 방법 정리 ! 현재 IntelliJ는 무료 버전(Community 에디션)과 유료 버전(Ultimate)는 기능 차이가 많다. IntelliJ 학생 인증 [IntelliJ] 학생 인증 페이지 Free Educational Licenses - Community Support Learn or teach how to code with best-of-industry tools from JetBrains. Free Educational Licenses for JetBrains' tools. www.jetbrains.com 위의 페이지로 가면 학생 인증을 할 수 있다. Apply now를 클릭하자. 위의 빈칸들을 채우고 무료 제품 신청을 클릭하면 된다. 받은 메일함을 확인하면 인증 메일 하나가 있다. 메일에 있는 링크를 클릭하여.. 2021. 8. 27.
[Python] DFS(Depth-First Search) 정점의 Depth 구하기?! DFS 란?! [Python] Graph Traversals(Search) 그래프 순회(탐색) 정리 [python] Graph Traversals(Search) 그래프 순회(탐색) 정리 보통 그래프 문제에는 DFS(Depth-First Search)와 BFS(Breadth-First Search)가 있다. DFS는 깊이 우선 탐색이라 부르고 BFS는 너비 우선 탐색이라 부른다. - 컴공이라면 전공 시간에 배운다. 수리 논리, 이산.. security-nanglam.tistory.com DFS는 깊이 우선 탐색이다.. 위의 글을 보면 쉽게 이해할 수 있을 것이다. 예제 그래프 위 그래프 정점들의 깊이를 구할 것이다. [Python/파이썬] depth_list = [0] graph = { 1 : [2, 3].. 2021. 8. 7.
[Python] abs(절대값) 함수 정리 [프로그래머스] 부족한 금액 계산하기 [프로그래머스] 부족한 금액 계산하기 8월 1주차 위클리 챌린지다. [프로그래머스] 위클리 챌린지 코딩테스트 연습 기초부터 차근차근, 직접 코드를 작성해 보세요. programmers.co.kr 문제 설명 새로 생긴 놀이기구는 인기가 매우 많아 줄 security-nanglam.tistory.com 위 문제를 풀면서 검색하게 된 함수다. 파이썬의 내장함수이고, abs(음수) = 양수, abs(양수) = 양수가 나오게 된다. abs 인자값에 정수형을 넣으면 정수형이 나오고, 실수형을 넣으면 실수형이 나온다. abs(-1) > 1 abs(1) > 1 abs(-1.1) > 1.1 abs(1.1) > 1.1 abs(0) > 0 abs(0.0) > 0.0 2021. 8. 6.
[Python] 진법 변환 총 정리?! [Pyhton 진법 변환] n진수 → 10진수 python에서는 기본적으로 int() 라는 함수를 지원합니다. int(string, base) 위와 같은 형식으로 사용하면 됩니다. base에는 진법을 넣으면 됩니다. print(int('111',2)) print(int('222',3)) print(int('333',4)) print(int('444',5)) print(int('555',6)) print(int('FFF',16)) 7 26 63 124 215 4095 이렇게 10진수로 쉽게 변경이 가능합니다. 10진수 → 2, 8, 16진수 2, 8, 16진수는 bin(), oct(), hex() 함수를 지원합니다. * 결과는 모두 string 입니다. print(bin(10)) print(oct(10)).. 2020. 12. 20.
[Flutter] "취소키 방지" WillPopScope 총 정리?! [WillPopScope] App 개발을 하다보면 취소키를 막고 싶은 경우가 있을 것이다. 이럴 때, WillPopScope를 사용하면 취소키를 눌러도 뒤로 가지 않는다. 사용 방법은 간단하다. Scaffold를 WillPopScope로 감싸주면 된다. import 'package:flutter/material.dart'; void main() => runApp( MaterialApp( title: 'MyApp', home: MyApp(), ), ); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return WillPopScope( child: Scaffold( appBar: AppBar( titl.. 2020. 11. 5.
[Flutter] Error "'package:flutter/src/painting/image_resolution.dart': Failed assertion: line 136 pos 15: 'assetName != null': is not true." 오류 해결 방법 'package:flutter/src/painting/image_resolution.dart':Failed assertion: line 136 pos 15: 'assetName != null': is not true. 의 오류 해결 방안이다 .. 이전의 코드를 보면 String _path; ... ... ... _loadValue() async { SharedPreferences prefs = await SharedPreferences.getInstance(); setState(() { _path = (prefs.getString('path') ?? ''); }); } ... ... ... Widget build(BuildContext context) { return Scaffold( appBar: nu.. 2020. 10. 17.
[Flutter] Error "setState() called after dispose(): (lifecycle state: defunct, not mounted" 해결 [stackoverflow] FlutterError (setState() called after dispose(): (lifecycle state: defunct, not mounted) the error is thrown in two areas (and the app freezes (when the app is minimized, when phones back button is clicked, or when another app runs on top of the flutter app. Flutter version: 1.20.2 (pr... stackoverflow.com flutter로 개발하다 보니 위의 에러가 떠서 한 번 찾아보았다.. stackoverflow에 해결 방법이 적혀있어 기록할 겸 그적.. 2020. 10. 15.
[Flutter] Button 총 정리! "Raised, Flat, Icon, FloatingAction" 오늘은 Flutter의 Button의 종류에 대해 알아보자. 위의 예제 처럼 Button은 4가지로 나눌수 있으며 Rainsed, Flat, Icon, FloatingAction으로 나눌 수 있다. import 'package:flutter/material.dart'; void main() => runApp( MaterialApp( title: 'MyApp', home: MyApp(), ), ); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Welcome to Flutter'), ), body: Column( main.. 2020. 10. 8.
[Flutter] Bottom Navigation Bar 의 "모든 것" [Flutter] 추천 포스팅 [Flutter] Bottom App Bars의 "모든 것" [Flutter] Bottom App Bars 의 "모든 것" [Flutter] 아래에 있는 AppBar는 Bottom App Bar라고 부릅니다..! 이 BottomAppBar를 만드는 법에 대해서 알아봅시다. 우선 BottomAppBar는 Material Design 중에 하나입니다. 사용방법은 Scaffold의 속성에 있는.. security-nanglam.tistory.com import 'package:flutter/material.dart'; void main() => runApp(MaterialApp(title: 'MyApp', home: MyApp())); class MyApp extends Stat.. 2020. 9. 30.
[Flutter] Navigator & Named Route"화면 전환의 시작" [Flutter] Navigator는 앱 화면 간 이동을 구현할 때 사용한다. Navigator는 스택 개념으로 작동을 한다. 즉 Last In First Out 특징을 갖고 있는데, 만약 first screen, second screen, third screen 3개의 화면이 존재할 때, first screen - second screen - third screen으로 이동을 했다면 third screen - second screen - first screen 화면으로 나와야 한다는 의미이다. Navigator.push( context, MaterialPageRoute( builder: (context) => routeClass(), ), ); Navigator.of(context).push( Mate.. 2020. 9. 30.
[Flutter] AppBar?! AppBar의 "모든 것" [Flutter] import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Welcome to Flutter', home: Scaffold( appBar: AppBar( title: Text('Welcome to Flutter'), ), body: Center( child: Text( 'Hello World', style: TextStyle(fontSize: 30, fontFamily: 'DoHyeonRegular'), ), ), ),.. 2020. 9. 27.
[Flutter] 외부 Font 추가 및 변경 정리 "Google Font 이용" [Flutter] import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Welcome to Flutter', home: Scaffold( appBar: AppBar( title: Text('Welcome to Flutter'), ), body: Center( child: Text('Hello World', style: TextStyle(fontSize: 30)), ), ), ); } } [Flutter] 강좌 01 : Hello W.. 2020. 9. 27.