전체 글(831)
-
Sencha 이미지 사이즈 변경 후 업로드하기
이미지 사이즈 변경 및 rotation 처리function resizeImage(file, callback) { const reader = new FileReader(); reader.onload = function(e) { const img = new Image(); img.src = e.target.result; img.onload = function() { let width = img.width; let height = img.height; let orientation = -1; EXIF.getData(img, function() { const exifOrientation = EXIF.getTag(this, "Orientation"); if(exifOrient..
2025.01.06 -
Java 핸드폰에서 찍은 이미지 업로드시 주의사항
핸드폰에서 찍은 이미지를 서버에 업로드시 width, height 정보를 가져올때, EXIF orientation를 고려해야 함그냥 width, height 정보를 가져오면, 옆으로 돌려서 찍은 사진의 경우 width와 height가 바껴서 나옴pom.xml com.drewnoakes metadata-extractor 2.18.0 Javaimport com.drew.imaging.ImageMetadataReader;import com.drew.metadata.Directory;import com.drew.metadata.Metadata;import com.drew.metadata.Tag;import com.drew.metadata.exif.ExifIFD..
2025.01.06 -
Ubuntu Dell에 설치
F2: Bios 진입BIOS가 UEFI로 설정SATA 작동이 AHCI(Advanced Host Controller Interface)로 설정레거시 옵션 활성화 ROM(Read-Only Memory): 비활성화하면 F12에서 Disk Driver 선택이 안나옴보안 부팅 비활성화File Browser Del Boot Option에서 모두 삭제F12: 부팅 옵션F12를 통해서만 부팅 가능함LEGACY OPTIONS: Hard Drive 선택네트웍 도구 설치sudo apt-get updatesudo apt-get upgradesudo apt-get install net-tools# 확인ifconfigGUI 설치sudo apt-get install ubuntu-desktopreboot
2025.01.04 -
PostgreSQL 'desc'도 키워드임
컬럼명에 사용하면 에러 발생함
2025.01.04 -
Sencha grid editing 가능하도록 처리
Row editingselType: 'rowmodel', // Enables row selection for editingplugins: { ptype: 'rowediting', // Enables row editing plugin clicksToEdit: 2 // Double-click to edit},Cell editingselType: 'cellmodel', // Enables cell selection for editingplugins: { ptype: 'cellediting', clicksToEdit: 1 // Single-click to edit},selType: 'cellmodel' 과 selModel: { type: 'checkboxmodel' }은 같이 ..
2025.01.04 -
Minikube PV와 PVC의 accessModes 사용방법
The accessModes field in PersistentVolume (PV) and PersistentVolumeClaim (PVC) specifies the types of access permissions available for the volume. It determines how the volume can be mounted by Pods.Access Modes:ReadWriteOnce (RWO)Description: The volume can be mounted as read-write by a single node.Use Case: Suitable for scenarios where only one Pod requires write access at a time, such as bloc..
2025.01.04