https://stackoverflow.com/questions/26544091/checking-if-type-list-in-python Checking if type == list in python I may be having a brain fart here, but I really can't figure out what's wrong with my code: for key in tmpDict: print type(tmpDict[key]) time.sleep(1) if(type(tmpDict[key])==list): ... stackoverflow.com https://stackoverflow.com/questions/25231989/how-to-check-if-a-variable-is-a-dictio..
https://www.w3schools.com/sql/sql_datatypes.asp SQL Data Types for MySQL, SQL Server, and MS Access W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. www.w3schools.com
package util; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Map; import java.util.Random; public class RandomUtils { private static class SHA256 { public static String encrypt(String text) { MessageDigest md = null; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } md.update(text.ge..
CREATE USER IF NOT EXISTS 'akm'@'localhost' IDENTIFIED BY 'akm' PASSWORD EXPIRE NEVER; GRANT ALL PRIVILEGES ON akm.* TO 'akm'@'localhost'; FLUSH PRIVILEGES; https://www.lesstif.com/dbms/mysql-24445981.html MySQL 데이타베이스와 사용자 계정 생성하기 설치후 최초 root 암호를 변경할 경우 아래 구문 사용 www.lesstif.com
import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class SHA256 { public String encrypt(String text) throws NoSuchAlgorithmException { MessageDigest md = MessageDigest.getInstance("SHA-256"); md.update(text.getBytes()); return bytesToHex(md.digest()); } private String bytesToHex(byte[] bytes) { StringBuilder builder = new StringBuilder(); for (byte b : byte..
URL sqlScriptUrl = MyServletContextListener.class .getClassLoader().getResource("sql/script.sql"); https://stackoverflow.com/questions/19414453/how-to-get-resources-directory-path-programmatically How to get resources directory path programmatically I have the following directory layout: src main java resources sql (scripts for database) spring (configuration) webapp Within a ServletContextListe..
public static Writer makeOrcWriter(String path, Class clazz) throws IOException { FileUtils.delete(path); Configuration conf = new Configuration(false); FileSystem fs = FileSystem.get(conf); return OrcFile.createWriter(new Path(path), OrcFile.writerOptions(conf) .inspector(ObjectInspectorFactory.getReflectionObjectInspector(clazz, ObjectInspectorFactory.ObjectInspectorOptions.JAVA)) .fileSystem(..
public static List files(String dirname) { if (dirname == null) { return Collections.emptyList(); } File dir = new File(dirname); if (!dir.exists()) { return Collections.emptyList(); } if (!dir.isDirectory()) { return Collections.singletonList(file(dirname)); } return Arrays.stream(Objects.requireNonNull(dir.listFiles())) .collect(Collectors.toList()); } https://stackoverflow.com/questions/18446..
https://stackoverflow.com/questions/2674554/how-do-you-know-a-variable-type-in-java How do you know a variable type in java? Let's say I declare a variable: String a = "test"; And I want to know what type it is, i.e., the output should be java.lang.String How do I do this? stackoverflow.com
https://stackoverflow.com/questions/13357760/mysql-create-user-if-not-exists mysql create user if not exists I have a query to check mysql users list for create new user. IF (SELECT EXISTS(SELECT 1 FROM `mysql`.`user` WHERE `user` = '{{ title }}')) = 0 THEN CREATE USER '{{ title }}'@'localhost' IDENT... stackoverflow.com
https://stackoverflow.com/questions/35592034/how-do-i-add-database-name-with-hyphen-character-using-script-in-ubuntu/35592181 how do i add database name with hyphen character using script in ubuntu I've tried using this code in a script but it just created what is inside the backtick. In this example, "echo "table-db"" was created in the database. It didn't create the name of the folder with .....
1. 이더리움이란 무엇인가? 이더리움(Ethereum) 월드 컴퓨터(World Computer) 결정론적(Deterministic) 한정되지 않은 머신(Unbounded State Machine) 전역적으로(Globally) 싱글톤(Singleton) 가상머신(Virtual Machine) 스마트 컨트랙트(smart contract) 이더(ether): 화폐; 실행 자원 비용을 측정하고 제한한다. 비트코인과의 비교 피어투피어(peer-to-peer) 네트워크 상태 변경을 동기화하는 비잔틴 결함 허용 합의(Byzantine fault-tolerant consensus) 알고리즘(작업증명 블록체인) 디지털 서명과 해시 디지털 화폐 (이더) 같은 암호학 기반 기술의 사용 등이 그런 공통 요소에 해당한다. 유틸..
https://underflow101.tistory.com/22#recentComments [통신 이론] MQTT, MQTT Protocol (MQTT 프로토콜) 이란? - 1 (이론편) 이 론 MQTT(Message Queueing Telemetry Transport)는 2016년 국제 표준화 된 (ISO 표준 ISO/IEC PRF 20922) 발행-구독(Publish-Subscribe) 기반의 메시지 송수신 프로토콜이다. 작은 코드 공간이 필요하거나 네.. underflow101.tistory.com
@Cacheable(value = "devices", key = "#hardwareId", unless = "#result == null") public Device get(String hardwareId) @CachePut(value ="devices", key= "#hardwardId", unless = "#result == null") public Device update(String hardwareId) https://stackoverflow.com/questions/48945484/java-ehcache-how-to-replace-members Java ehCache, how to replace members I have a simple method that I have annotated for..
item.1: 생성자 대신 정적 팩터리 메서드를 고려하라 전통: public 생성자 별도: 정적 팩터리 메서드 (static factory method) public static Boolean valueOf(boolean b) { return b ? Boolean.TRUE : Boolean.FALSE; } 장점 이름을 가질 수 있다. 호출될 때마다 인스턴스를 새로 생성하지 않아도 된다. 인스턴스를 통제하면 클래스를 singleton) 인스턴스화 불가 반환 타입의 하위 타입 객체를 반환할 수 있는 능력이 있다. 엄청난 유연성 입력 매개변수에 따라 매번 다른 클래스의 객체를 반환 정적 팩터리 메서드를 작성하는 시점에는 반환할 객체의 클래스가 존재하지 않아도 된다. 단점 상속을 하려면 public 이나 pro..
역자 서문 & 이 책에 대해 선후배 동료 개발자들에게 느낀 아쉬움 3가지 개발 프로세스에 대한 관심 부족 미흡한 툴 활용력 마지막으로 단위 테스트의 중요성에 대한 인식 부족 인터페이스가 직관적이지 않다, (사용법을 오해하기 쉽다.) 이책의 목표는 필요한 기본 지식 그 이상을 제공 하는데 있음 목 방식 & in-container 방식 JUnit 서드파티 확장 툴 최신JUnit으로의 이동과 선호하는 IDE로의 통합 1장 소프트웨어 개발의 역사에서 이토록 많은 사람이 이렇게 짧은 코드로부터 이토록 큰 도움을 받은 적이 없었다. - 마틴 파울러 개발자 인수 테스트(acceptance test) 코딩하고, 컴파일하고, 실행하고 프로그램 실행은 자연스럽게 테스트를 동반함 간단한 패턴: 데이터를 넣고, 확인하고, 수..
https://unix.stackexchange.com/questions/325705/why-is-pattern-command-true-useful/325727 Why is pattern "command || true" useful? I am currently exploring Debian packages, and I have been reading some code samples. And on every line in, for example, the postinst script is a pattern. some command || true another command || tr... unix.stackexchange.com
public static String getClassName() { return getClassName(2); } public static String getClassName(int depth) { Exception e = new Exception(); e.fillInStackTrace(); return e.getStackTrace()[depth].getClassName(); } public static String getMethodName() { return getMethodName(2); } public static String getMethodName(int depth) { Exception e = new Exception(); e.fillInStackTrace(); return e.getStack..
ln -s /home/seunggabi/tmp /tmp
https://jeong-pro.tistory.com/186 @Scheduled 사용법, 스케줄러 커스터마이징을 통한 제어(+스케줄러에 등록한 작업 중지하는 방법, @Scheduled 사용법 주기적인 작업이 있을 때 @Scheduled 애노테이션을 사용하면 쉽게 적용할 수 있다. ex) linux의 crontab 1. @EnableScheduling Annotation을 적어서 스케줄링을 사용한다는 것을 알린다. @Enab.. jeong-pro.tistory.com
https://d2.naver.com/helloworld/106824 https://supawer0728.github.io/2018/03/11/hazelcast/ Hazelcast 공유 In-Memory Data GridIn-Memory Data Grid(IMDG)에 관해서http://d2.naver.com/helloworld/106824 요약 분산 저장(scale out) 메모리를 사용한다 보통 객체를 저장한다(serialize) Lock, Transaction, Sharding을 지원한다 supawer0728.github.io https://pkgonan.github.io/2018/10/hazelcast-hibernate-second-level-cache Local Cache 와 Invalidatio..
https://velog.io/@hotdari90/Async-Sync-Blocking-Non-Blocking Async & Sync, Blocking & Non-Blocking RxJS 스트림에 대해서 공부하기전에 동기와 비동기, 블록과 논블록에 대해서 알아두고 가야했다. Acync & Sync 호출되는 함수의 작업 완료 여부를 신경쓰느냐 마느냐가 관점이다. Blocking & Non-Blocing velog.io https://baek-kim-dev.site/38 [카카오 면접] Blocking I/O, Syncronous Non-Blocking I/O, Asyncronous Non-Blocking I/O 카카오 면접을 준비하면서, 공부했던 내용을 정리해놓고 다시 기억하기 위한 포스팅 다른 관심사 Bl..
https://bcho.tistory.com/1247 Circuit breaker 패턴을 이용한 장애에 강한 MSA 서비스 구현하기 #1 - Circuit breaker와 넷플릭스 Hystrix Circuit breaker 패턴을 이용한 장애에 강한 MSA 서비스 구현하기 #1 Circuit breaker와 넷플릭스 Hystrix 조대협 (http://bcho.tistory.com) MSA에서 서비스간 장애 전파 마이크로 서비스 아키텍쳐 패턴은 시스템.. bcho.tistory.com https://github.com/Netflix/Hystrix GitHub - Netflix/Hystrix: Hystrix is a latency and fault tolerance library designed to is..
- Total
- Today
- Yesterday
- 책그림
- 메디파크 내과 전문의 의학박사 김영수
- wlw
- 어떻게 능력을 보여줄 것인가?
- 팔로워 수 세기
- 테슬라 추천
- Kluge
- 테슬라 레퍼럴 적용 확인
- Bot
- 인스타그램
- 연애학개론
- 테슬라 크레딧 사용
- 테슬라 리퍼럴 코드 생성
- 테슬라 레퍼럴 코드 확인
- 테슬라 레퍼럴
- follower
- 개리마커스
- 모델 Y 레퍼럴
- COUNT
- 레퍼럴
- 유투브
- 클루지
- 테슬라 리퍼럴 코드 혜택
- 할인
- 테슬라
- 모델y
- 테슬라 리퍼럴 코드
- 김달
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |