Profile_bird

Hey there! usamurai is using Twitter.

Twitter is a free service that lets you keep in touch with people through the exchange of quick, frequent answers to one simple question: What's happening? Join today to start receiving usamurai's tweets.

Already using Twitter
from your phone? Click here.

usamurai

  1. Sorting information can be included by appending a semi-colon and the name of an indexed field. e.g. q=myField:Java; date asc #lucene #solr
  2. Dos command error "Not resetting system file". command to remove the system & hidden attributes simultaneously: ATTRIB -S -H <filename> #DOS
  3. good read & interesting though. Google Closure: How not to write JavaScript. http://is.gd/4ZHye
  4. RT @alisohani: 40-30-30 Rule: Pushing outside of your comfort zone is a crucial part of the creative process http://j.mp/3PcIsZ @Yarapav ...
  5. tag cloud formula. var multiplier = (maxPercent-minPercent)/(max-min); var size = minPercent + (count-min)*multiplier; http://is.gd/4XKbK
  6. case insensitive searching of utf-8 elements in an array. <? in_array( mb_strtolower($tag, "UTF-8"), $arr); ?> #php #utf8
  7. split utf8 string into tags with "u" modifier. $tags=preg_split(”/[\s,;:,]+/u”, $input, null, PREG_SPLIT_NO_EMPTY); http://is.gd/4XJTq #php5
  8. svn diff command for viewing changes of a file between two versions: $ svn diff -r rev_number1:rev_number2 <filename> #svn #diff
  9. check if a file has been selected in a form or not. if(!empty($_FILES['userfile']['tmp_name']) ){echo "set";} else { echo "not set";} #php
  10. "as sub-domains r cross domains,if u have 2 make an ajax call 2 da same server, don't code da domain as part of da request;just use da path"
  11. for ref: Cross domain AJAX querying with jQuery http://bit.ly/196Sju
  12. access to restricted uri denied" code: "1012 - error in firefox. for reason & solution see http://is.gd/4M01F #ajax #firefox #cross-site-scr
  13. @wave_info Requested my Google Wave Invite! Get yours now at http://tinyurl.com/free-gwave - #googlewave #googlewaveinvite
  14. Javascript: Send / Pass value of child window to parent window - http://is.gd/4JnWb #js #child_window #parent_window
  15. pass data from child window to parent window. var val = 'child val'; opener.document.search_form.booking_no.value = val; self.close(); #js
  16. If you are interested in the diffs between, say, revision 10 and the revision just before it, the command is: svn log -vq -r10
  17. get the checked item value of a radio button element by jquery. var gender = $("input[name='gender']:checked").val(); #jquery #js #radio
  18. handling array of form elements using javascript: var mutli_education = document.form_name.elements["education[]"]; #javascript #array #form
  19. to force pear to install alpha state package use the -f switch. $ pear install -f HTTP_Request2
  20. at last started posting something in my blog :). know the secrets of sitelinks in google search results, http://is.gd/3Wxzf #seo #sitelinks