Vim Only Keep Some Characters
-- Original method public String updateTotalPayTemporaryHourly(int form_sn) -- fail! when(formDao.updateTotalPayTemporaryHourly(any())).thenReturn(""); only mock object, so updateTotalPayTe...
-- Original method public String updateTotalPayTemporaryHourly(int form_sn) -- fail! when(formDao.updateTotalPayTemporaryHourly(any())).thenReturn(""); only mock object, so updateTotalPayTe...
%s/\([^,()]*\)/?/g Will convert (FORM_SN,ATTEND_DATE,DATE_PROPERTY,START_TIME,END_TIME,REST_TIME,REST_PRICE,LEGAL_PAY_BASE,EXT_HOUR_BEFORE,EXT_HOUR_AFTER,REGULAR_HOUR_MAX_EIGHT,TOTAL_HOUR,COMMEN...
String contextPath = request.getContextPath(); // e.g., "/AttendApply" targetURL = contextPath + "/" + targetURL; return Response.seeOther(URI.create(targetURL)).build(); Because root of api is ...
Tomcat suddenly can’t install => invalidate cache RESTful unit test fail
// Tomcat still return full HTML thing. response.sendError(((CustomizedException) ex).getHttpStatusCode(), ex.getMessage()); return; // Adopt this: response.setStatus(((CustomizedException) ex...
:%g!/matching words/d
:%g!/matching words/d
Ref: In Vim how to delete all words and characters not matching a pattern :%s/\v(.*)(someting to match)(.*)/\2 \v The “very magic” flag is useful for limiting the number of backslashes and...
Query encountered an error: Unsupported Predicate: Captured/constant values of type 'DayPhase' are not supported Failure1 let night = DayPhase.night _lastNightLogs = Query(filter: #Predicate&l...
Ref.: Custom Alert in SwiftUI