글

[MariaDB] erro code 1021 수 : 하드 디스크 공간이 부족, 여유 하드 디스크 공간을 증가하십시오

1021 수 : 하드 디스크 공간이 부족, 여유 하드 디스크 공간을 증가하십시오 * 환경 : ubuntu / mariadb * 해결방법  1. 임시테이블 파일 크기 확인 >  /tmp/저장파일     2. 확장할수있는 저장공간이 있으면,  저장공간을 변경. tmpdir= 3. mysql 재실행 > cd /etc/init.d > service mysql restart

[spring boot] CRUD 시, URL redirect 하기

<A.html> /** * Form 작성 */ < form name = "delete_form" action = "/TEST/DATA/DELETE" method = "post" >     < input type = "hidden" id = "delete_id" name = "id" /> </ form > /** * Form 작성한 것을 Script 로 Submit 하기 */ $(document).on( 'click' , '#delete_modal_btn' , function () {      var  delete_id = $( this ).val();      $( '#delete_modal' ).modal( 'hide' );     $( '#delete_id' ).val(delete_id);     $( 'form[name=delete_form]' ).submit(); }); <Controller.java> /** * Form 작성한 것을 Script 로 Submit 하기 */ @RequestMapping (value= " /TEST /DATA/DELETE" , method=RequestMethod. POST ) public ModelAndView delete( @RequestParam String id , Model model ) {      if ( id != null && ! id .equals( "" )) {          int delet...

### JAVA Excel POI, Cell Style 배경색 채우기

### JAVA Excel POI, Cell Style 배경색 채우기 Excel Form 만들때, 아래 처럼 Cell에 Style을 넣을 수 있다. 아래 예제는 Cell에 배경색을 넣는 예제이다. String color = "#FF0F0F"; //16진수값을 R,G,B값으로 변환 int colorR = Integer.parseInt(  color .substring(1, 3), 16); int colorG = Integer.parseInt(  color .substring(3, 5), 16); int colorB = Integer.parseInt(  color .substring(5, 7), 16); //직접 RGB 컬러값을 사용하는 경우 아래와 같이 getCustomPalette()를 사용해야 컬러값이 적용된다. palette = workbook .getCustomPalette(); HSSFColor myColor = palette .findSimilarColor( colorR , colorG , colorB ); //cell에 style 만들기 style  =  workbook .createCellStyle(); style .setFillForegroundColor( myColor .getIndex()); //위에 컬러값의 index값으로 칼라값을 지정해주게된다. style .setFillPattern(HSSFCellStyle. SOLID_FOREGROUND ); //컬러가 cell에 적용되는 style 정의 cell .setCellStyle( style ); //style을 cell에 적용 //cell에 표시할 value 값을 적용 HSSFRichTextString text = new HSSFRichTextString( value );           ...

[Spring Boot] JAVA에서 Excel 폼 작성 후, 다운로드 하기

### JAVA에서 Excel 폼 작성 후, 다운로드 하기 # 개발환경 : SPRING BOOT + JPA + MySQL 1. html파일에서 엑셀다운로드 실행위해 엑셀다운로드 버튼 클릭 < button id = "xls_btn" type = "button" onClick = "javascript:goXls()" > 엑셀다운로드 </ button > <script>     function goXls() {            location.href= "/xls";        } </script> 2. Controller 클래스에서 Excel폼을 작성을 위한 데이타를 Map 에 담아서 엑셀폼만드는 Class로 보내기 @Controller public class  XlsController {     @RequestMapping (value= "/xls" , method=RequestMethod. GET )       public ModelAndView viewExcel( HttpServletRequest request , HttpServletResponse response ){         Map<String, Object> model = new HashMap<String, Object>(); model .put( "sheetname" , date );  //Sheet Name      List<String> titles = new ArrayList<String>(); title...

sns 링크걸기

sns 링크걸기 http://narei.tistory.com/entry/SNS-%EB%A7%81%ED%81%AC%EA%B1%B8%EA%B8%B0

php 이미지 크기 조절, html 목록 채우기, 시간체크해서 남은시간 감소시키기(javascript포함)

##### php 이미지 크기 http://blog.iramine.com/entry/PHP-%EC%9D%B4%EB%AF%B8%EC%A7%80-%ED%81%AC%EA%B8%B0-%EB%B3%80%ED%99%98 ##### db에서 가져온 값으로 목록 표시 / db시간 에서 현재시간 간격체크해서 남은시간 감소해주는 코드 <? if($results != null) { ?> <table class="my_list"> <colgroup> <col style="width:110px ;" /> <col style="width:420px;" /> <col style="width:60px;" /> <col style="width:340px;" /> <col style="width:270px ;" /> </colgroup> <tbody> <? $item = 0; foreach($results as $row) { $item ++; $publish=$row['PUBLISH']; $cnt=$row['CNT']; $id=$row['ID']; $rating1=$row['RATING']; $createdat1=$row['CREATEDAT']; $title=$row['TITLE']; $image=$row['IMAGE']; $competi_title=$row['COMPETITION_TITLE']; $competi_id=$row['C...

javascript tip

#### a tag에 onclick 붙이기 <a href="#" class="btn_url" onclick="return form_video();">url등록하기</a> #### 글자수제한 input : maxlength="20" textarea : //글자수 제한 체크         function len_chk(){             var frm = document.insertFrm.test;             if(frm.value.length > 4000){                 alert("글자수는 영문4000, 한글2000자로 제한됩니다.!");                 frm.value = frm.value.substring(0,4000);                 frm.focus();             }         } #### trim() 대체함수 data = data.replace(/(^\s*)|(\s*$)/gi, "");             if(data=='') {             alert('글자없음');             } #####jquery checkb...