Various methods using Alfresco's RegexQNamePattern to get associations using:
- RegexQnamePattern.MATCH_ALL to get all associations
- Getting associations by name without a namespace
- Getting all associations in a particular namespace
| Rotate videos 90 or 180 degrees using ffmpeg. |
| _ |
| rem Tell ffmpeg to copy the video and audio codecs and specify the start time (ss) and duration (t). | |
| ffmpeg -i video.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:00:04 trimmed_video.avi |
| http://HOST:PORT/solr/update?stream.body=<delete><query>*:*</query></delete>&commit=true | |
| or | |
| http://HOST:PORT/solr/CORE/update?stream.body=<delete><query>*:*</query></delete>&commit=true |
Various methods using Alfresco's RegexQNamePattern to get associations using:
| _ |
| // Set up search params with unlimited results | |
| SearchParameters sp = new SearchParameters(); | |
| sp.setLanguage(SearchService.LANGUAGE_LUCENE); // Can be lucene, FTS, CMIS, etc. | |
| sp.setQuery(query); | |
| sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); | |
| sp.setMaxItems(Integer.MAX_VALUE); | |
| sp.setMaxPermissionChecks(Integer.MAX_VALUE); | |
| // Execute query. | |
| ResultSet resultSet = searchService.query(sp); |
| // Get the current system time to calculate duration | |
| long startTime = System.currentTimeMillis(); | |
| // Do logic here | |
| // Get the end time and calculate duration | |
| long endTime = System.currentTimeMillis(); | |
| long durationInMs = endTime - startTime; | |
| long durationInMins = durationInMs/60000; |
| call sc.exe create MyNewServiceName binPath= "\"C:\path\to\bin\mybin.exe\" --service --config | |
| = \"C:\path\to\config\myconfig.cfg\"" DisplayName= "My New Service" start= "auto" |