shuffle은 굳이 안써도 되는건가요?
해결됨
파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
sample(users,4) 에서 리스트로 변환된 users의 4개를 랜덤으로 뽑는거니, shuffle(users)는 굳이 쓸 필요 없는 것 맞나요?
- python
173만명의 커뮤니티!! 함께 토론해봐요.
해결됨
파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
sample(users,4) 에서 리스트로 변환된 users의 4개를 랜덤으로 뽑는거니, shuffle(users)는 굳이 쓸 필요 없는 것 맞나요?
미해결
윤재성의 Java 기반 Android 9.0(pie) App 개발 고급 3단계
java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged () when its content changes. 요즘 이 오류가 계속 떠서 해결하려고 노력중입니다. 구글검색해서 알려주는대로 시도 해봤는데 잘 되지 않네요. 가끔씩 저 오류가 떠서 튕기는데 아마도 쓰레드가 동시에 여러개 작동하다 보니 생기는 오류인것 같습니다. 혹시 해결방법이 있을까요?
미해결
윤재성의 Java 기반 Android 9.0(pie) App 개발 기본 1단계
2개 다이얼로그를 만들었습니다. 그리고 각각 positive,negative 버튼이 있는데요. 이 버튼마다 동작하는 것이 다 다르게 하고 싶습니다. 1번 다이얼로그의 positive 버튼 따로 동작하고 2번 아이얼로그 positive동작 따로 이런식으로요. 그래서 리스너 클래스를 2개 만들었는데요. 중복된다는 생각이 들어서요. 1개의 클래스만 만들어서 분기 할수 있는 방법이 혹시 있는지 질문 드립니다.
미해결
[라즈베리파이] IoT 딥러닝 Computer Vision 실전 프로젝트
# cv2.findCountours() function changed from OpenCV3 to OpenCV4: now it have only two parameters instead of 3 cv2MajorVersion = cv2.__version__.split(".")[0] print('openCV version : ', cv2MajorVersion) # check for contours on thresh if int(cv2MajorVersion) >= 4: contours, hierarchy = cv2.findContours(thresh, cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE) else: imageContours, contours, hierarchy = cv2.findContours(thresh, cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE) --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-9-5caa6544b17f> in <module> 4 # check for contours on thresh 5 if int ( cv2MajorVersion ) >= 4 : ----> 6 contours , hierarchy = cv2 . findContours ( thresh , cv2 . RETR_LIST , cv2 . CHAIN_APPROX_SIMPLE ) 7 else : 8 imageContours , contours , hierarchy = cv2 . findContours ( thresh , cv2 . RETR_LIST , cv2 . CHAIN_APPROX_SIMPLE ) NameError : name 'thresh' is not defined
미해결
[라즈베리파이] IoT 딥러닝 Computer Vision 실전 프로젝트
# Draw digit image fig = plt.figure() ax = fig.add_subplot(1, 1, 1) # Major ticks every 20, minor ticks every 5 major_ticks = np.arange(0, 29, 5) minor_ticks = np.arange(0, 29, 1) ax.set_xticks(major_ticks) ax.set_xticks(minor_ticks, minor=True) ax.set_yticks(major_ticks) ax.set_yticks(minor_ticks, minor=True) # And a corresponding grid ax.grid(which='both') # Or if you want different settings for the grids: ax.grid(which='minor', alpha=0.2) ax.grid(which='major', alpha=0.5) ax.imshow(x_test[selected_digit], cmap=plt.cm.binary) plt.show() --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-24-1e41385f9397> in <module> 1 # Draw digit image ----> 2 fig = plt . figure ( ) 3 ax = fig . add_subplot ( 1 , 1 , 1 ) 4 5 # Major ticks every 20, minor ticks every 5
미해결
[라즈베리파이] IoT 딥러닝 Computer Vision 실전 프로젝트
# Show History model.evaluate(x_test, y_test, verbose=2) import matplotlib.pyplot as plt fig, loss_ax = plt.subplots() fig, acc_ax = plt.subplots() loss_ax.plot(history.history['loss'], 'ro', label='train loss') loss_ax.plot(history.history['val_loss'], 'r:', label='val loss') loss_ax.set_xlabel('epoch') loss_ax.set_ylabel('loss') loss_ax.legend(loc='upper left') acc_ax.plot(history.history['accuracy'], 'bo', label='train accuracy') acc_ax.plot(history.history['val_accuracy'], 'b:', label='val accuracy') acc_ax.set_ylabel('accuracy') acc_ax.legend(loc='upper left') plt.show() --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-22-ba2619a0447f> in <module> 1 # Show History ----> 2 model . evaluate ( x_test , y_test , verbose = 2 ) 3 4 import matplotlib . pyplot as plt 5 NameError : name 'model' is not defined
Vue.js 시작하기 - Age of Vue.js
삭제된 글입니다
미해결
자바 프로그래밍 입문 강좌 (renew ver.) - 초보부터 개발자 취업까지!!
이것때문에 아예 열리지 않아요ㅜㅜㅜ
미해결
[라즈베리파이] IoT 딥러닝 Computer Vision 실전 프로젝트
# convert class vectors to binary class matrices y_train = tf.keras.utils.to_categorical(y_train, num_classes) y_test = tf.keras.utils.to_categorical(y_test, num_classes) --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-17-1f535d7b0dc0> in <module> 1 # convert class vectors to binary class matrices ----> 2 y_train = tf . keras . utils . to_categorical ( y_train , num_classes ) 3 y_test = tf . keras . utils . to_categorical ( y_test , num_classes ) NameError : name 'num_classes' is not defined
미해결
React로 NodeBird SNS 만들기
middleware.js exports.postExist = async(req,res,next)=>{ const post = await db.Post.findOne({ where: { id: req.params.id } }); if (!post) { return res.status(404).send("해당 페이지가 존재하지 않습니다"); } next(); } post.js router.delete('/:id', isLoggedIn, postExist, async(req,res,next)=>{ try{ await db.Post.destroy({ where: {id: req.params.id}}); res.send(req.params.id); }catch(e){ console.error(e); next(e); } }) next()만 추가해서 다음 동작으로 갈수있게 해주었는데 더 추가할게 있는지 궁금합니다..!
해결됨
React로 NodeBird SNS 만들기
예를 들면 상위 컴포넌트에 사용할 dummy 데이터를 한번에 만들어서 각 컴포넌트의 props로 불러들이는게 나은지, 아니면 각 컴포넌트들 마다 필요한 dummy를 만드는게 나은건지, 둘다 상관은 없지만 주로 어떻게 하시는지 궁금합니다.
미해결
[2026년 출제기준] 웹디자인개발기능사 실기시험 완벽 가이드
8. css 자손 선택자 vs 자식선택자, 부모요소 vs 자식요소 강에서 border : 1px solid red ; 값을 다 주었는데 실시간 미리보기에서 박스 테투리가 안뜨고 data-brackets-id='751' data-brackets-id='753' < data-brackets-id='754'/div> data-brackets-id='755' 이렇게만 뜨는데 뭐가 오류인가요? [제가 준 브라켓 값입니다.] <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>자손vs자식</title> <link rel="stylesheet" href="css/style.css"> </head> <body> <div class = "box"> <div> <div></div> </div> </div> </body> ------------------------------------------------------- .box { border: 1px solid red; width : 600px; height: 200px; } . box > div{ border: 1px solid blue; width: 300px; height : 100px; } .box > div div{ border: 1px solid green; width: 100px; height : 100px; background-color : #4524 }
해결됨
it 취업을 위한 알고리즘 문제풀이 입문 (with C/C++) : 코딩테스트 대비
선생님 수업 잘 듣고있습니다. 강의 듣기전에 문제를 풀어보긴했는데 이런 코드도 버블정렬을 이용했다고 할수있나요??? 채점은 성공으로 나왔습니다.. int main(){ //freopen("input.txt", "rt", stdin); int n,i,j,cnt=0,temp; scanf("%d",&n); vector <int> a(n); for(i=0; i<n; i++) { scanf("%d",&a[i]); } for(i=0; i<n; i++ ) { if(a[i]<0) { for(j=i; j>=cnt+1; j--) { temp=a[j]; a[j]=a[j-1]; a[j-1]=temp; } cnt++; } } for(i=0; i<n; i++) { printf("%d",a[i]); } return 0; }
미해결
프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
이스케이프문을 변수로 사용해보고 싶은데 잘 안되서 질문드려요 프린트문을 사용한다면 print('a \nb') 했을때 출력이 a b 이렇게 나오는 것을 보고 변수 a, b를 선언한 후 똑같이 해보았는데 오류가 발생합니다 제가 시도한 코드들은 print((a),'\n'(b)) print(a,'\n',b) 입니다 형변환도 비슷한데 변수형태로 응용해보려니 잘 안되어 여쭤봅니다 try_01 = 10 try_02 = 5.9 print(type(try_01),type(try_02)) print(str(try_01), str(try_02),type(try_01), type(try_02)) print(type(try_01),type(try_02)) 이렇게 작성했는데 type을 출력하니 오류는 안나오지만 그대로 인트와 플로트가 나오네요 이러면 형 변환이 안되었다고 생각하는데 어디가 잘못된걸까요??
미해결
자바 스프링 프레임워크(renew ver.) - 신입 프로그래머를 위한 강좌
스프링 예제자료 lec24_001.dao에서 delete 메소드에 오류가 있네용 final String sql = "DELETE member WHERE memId = ? AND memPw = ?"; final String sql = "DELETE from member WHERE memId = ? AND memPw = ?"; from 을 추가해주니까 잘 됩니다.. 혹시 저같은 분이 계실까봐..
미해결
데이터베이스 중급(Modeling)
15분 18초에서요. 상위부서id에 null을 허용하는 부분이 자식은 낳을 수 있지만 안낳는것도 부모의 권리라고 하셨는데, foreign key가 null이라는건 부모가 null이라는것 아닌가요? 자기자신이 최상위 부모의 경우에는 foreign key를 null로 설정하는 것 같은데 자식을 안낳는다는 표현이 이해가안돼서요. 자식을 낳지않으면 최상위 부모가 될수없지않나요?
미해결
우리를 위한 프로그래밍 : 파이썬 중급 (Inflearn Original)
가상환경에서의 실행과 bs4의 설치또한 확인하였으나 모듈 오류가 뜹니다ㅠㅠ
해결됨
파이썬 라즈베리파이 IoT프로젝트-원격모니터링 자동차
납땜 없이 글루를 사용하셨는데요. 어떤 제품인지 알 수 있을까요.
해결됨
[라즈베리파이] IoT 딥러닝 Computer Vision 실전 프로젝트
안녕하십니까. 딥러닝, 머신러닝으로 손흥민 얼굴찾는 강의까지 끝내고 이제 여기까지 왔습니다. 이 강의는 그걸 토대로 뭔가를 만들고 주제도 흥미로워서 신청했는데요. 다름이 아니라 오프닝에서 나온 라즈베리파이, 받침대, 소리내는장치, 밧데리 까지 구매해서 직접 만들어보려고 엘레파치 라는곳에 가서 둘러보는데 너무 복잡하더라구요,,, 이런 하드웨어 제작이 처음이라 몰라서 그런지 라즈베리파이 하나만 하더라도 버전, 모델명이 다르고 선 하나를 구입하려해도 너무 많은 종류가 있고 그래서 주문할 엄두가 나질 않습니다. 저기 나오는 모든 부품의 정확한 부품이름을 알수있을까요 선생님!! 선까지두요!! 부탁드립니다.
미해결
따라하며 배우는 노드, 리액트 시리즈 - 유튜브 사이트 만들기
업로드 부분에서 알려주신 maxsize 변경으로 잘진행이 되어 썸네일까지 뜨더라구요..ㅠ 그런데. mongoDB에 업로드 하는 과정에서 에러가 떠서 .. 문의드립니다 ㅠㅠ 콘솔을 찍어도 잘모르겠네요.. 1강 넘어왔더니.. 또걸려버렸네요.. https://github.com/jangbm/youtube_clone