Updates from hzroot RSS Toggle Comment Threads | Keyboard Shortcuts

  • hzroot 4:37 pm on September 1, 2010 Permalink | Reply  

    -size n[cwbkMG] File uses n units of spa… 

     
  • hzroot 2:18 pm on August 26, 2010 Permalink | Reply  

    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 11:26 am on August 25, 2010 Permalink | Reply
    Tags: wisdom   

    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 8:43 pm on July 30, 2010 Permalink | Reply  

    not defterine ‘soktumun master teoremine bak’ yazmış bir adamım sen neyden bahsediyorsun?

     
  • hzroot 2:08 pm on July 30, 2010 Permalink | Reply
    Tags: between query, java, lucene   

    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 8:55 am on July 30, 2010 Permalink | Reply  

    neymiş adam gibi back-up almazsan bütün postların uçarmış… geçmiş olsun gencler..

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel