Updates from hzroot RSS Toggle Comment Threads | Keyboard Shortcuts
-
hzroot
-
hzroot
Delete files where size less than X
find -size -X | xargs rm -f;
-size n[cwbkMG]
File uses n units of space. The following suffixes can be used:`b’ for 512-byte blocks (this is the default if no suffix is used)
`c’ for bytes
`w’ for two-byte words
`k’ for Kilobytes (units of 1024 bytes)
`M’ for Megabytes (units of 1048576 bytes)
`G’ for Gigabytes (units of 1073741824 bytes)
The size does not count indirect blocks, but it does count blocks in sparse files that are not actually allocated. Bear in
mind that the `%k’ and `%b’ format specifiers of -printf handle sparse files differently. The `b’ suffix always denotes
512-byte blocks and never 1 Kilobyte blocks, which is different to the behaviour of -ls. -
hzroot
The acrostic wisdom – understanding an audience
What do you want them to learn?
What is their interest in what you’ve got to say?
How sophisticated are they?
How much detail do they want?
Whom do you want to own the information?
How can you motivate them to listen to you? -
hzroot
not defterine ‘soktumun master teoremine bak’ yazmış bir adamım sen neyden bahsediyorsun?
-
hzroot
Apache Lucene between query in JAVA
Following code create filter from now to 30 days after. for indexed column startdate
if(hasDateFilter) {ChainedFilter dateFilterChained = null;
Filter[] dateChain = new Filter[1];
Calendar c1 = Calendar.getInstance();
Date now = c1.getTime();
c1.add(Calendar.DATE, +30);
Date end = c1.getTime();SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);
String startString;
String endString;
endString = sdf.format(end);
startString = sdf.format(now);
dateChain[0] = FieldCacheRangeFilter.newStringRange(“startdate”, startString, endString, true, true);
int isInRangeLogicArray[] = new int[1];
isInRangeLogicArray[0]= ChainedFilter.OR;
dateFilterChained = new ChainedFilter(dateChain, isInRangeLogicArray);
filterList.add(dateFilterChained);}
-
hzroot
neymiş adam gibi back-up almazsan bütün postların uçarmış… geçmiş olsun gencler..