Posts

android - Get SMS of specific phone number -

android - Get SMS of specific phone number - i wondering, how can read sms message specific number programmatically? know how read sms using content provider not sure if should utilize "person" column or "address" column or totally different way please help thanks it list out messages specified number. uri msmsinboxqueryuri = uri.parse("content://sms/inbox"); cursor cursor1 = getcontentresolver().query(msmsinboxqueryuri,new string[] { "_id", "thread_id", "address", "person", "date","body", "type" }, null, null, null); startmanagingcursor(cursor1); string[] columns = new string[] { "address", "person", "date", "body","type" }; if (cursor1.getcount() > 0) { string count = integer.tostring(cursor1.getcount()); while (cursor1.movetonext()){ string ...

java.util.Collection and java.util.Set interfaces -

java.util.Collection and java.util.Set interfaces - what's purpose of java.util.set interface if contains absolutely equal methods in comparing java.util.collection? there no prohibition multi-implementing in java, , set realization (hashset) work fine without set interfaces. why need useless baggage? javadoc describing contract of collection (emphasis mine): a collection represents grouping of objects, known elements. some collections allow duplicate elements , others not. on set : a collection contains no duplicate elements. in other words, set abstraction describes (ekhem!) subset of collection s. collections

model view controller - Mvc Front-end and Mvc Back-end: wrong architecture? -

model view controller - Mvc Front-end and Mvc Back-end: wrong architecture? - i building web-application twitter style one-page app, perchance with user authentication. 80% of interactions happen in front-end javascript, , help of backend answers providing info db... until thought utilize symfony2, plus mvc framework front-end backbone or ember (prefer ember seems more documented , in general more organized , easier). while getting learning symfony2, came attending many of things symfony2 offers of no utilize app. don't need its' views views going templated javascript, , don't need it's routers either handled states js on front-end.. symfony2 used json-responding mechanism, guess doctrine helps who's not back-end guy queries easily, , of course of study authentication. guess forms handled javascript. i've seen lots of other questions regarding symfony2 , backbone, restful, etc. there many different answers, need bundle create restful apis (wh...

lisp - How can I destructure an &rest argument of varying length in my elisp macro? -

lisp - How can I destructure an &rest argument of varying length in my elisp macro? - i have programme takes inputs chunk of info , list of rules, applying both set of standard rules , rules given input chunk of data. size of both inputs may vary. i want able write list of rules this: class="lang-lisp prettyprint-override"> (rule-generating-macro (rule-1-name rule-1-target (rule-action-macro (progn actions more-actions))) (rule-2-name rule-2-target (rule-action-macro (or (action-2) (default-action)))) ;; more rules ) right now, rules more verbose -- more class="lang-lisp prettyprint-override"> (defvar rule-list `((rule-1-name rule-1-target ,@(rule-action-macro (progn actions more-actions))) (rule-2-name rule-2-target ,@(rule-action-macro (or (action-2) (default-action)))) ;; more rules ) the latter form looks uglier me, can't figure out how write macro can handle variable-length &rest a...

c# - How to model collection of mixed entities using EF code first -

c# - How to model collection of mixed entities using EF code first - i'm using ef5 in vs2010. have working sample 2 types: person, business i'd add together collection like dbset<customer> customers where objects in customers can either person or business. in app i'd able like: mycontext.customers.add(new person()); mycontext.customers.add(new business()); i think client table like id (id of person or business) discriminator how can achieved code first? create base-class customers id property , derive person , business customers? c# ef-code-first entity-framework-5

primes - Sieve of Eratosthenes Time Complexity -

primes - Sieve of Eratosthenes Time Complexity - what time complexity of sieve of eratosthenes algorithm find prime numbers? how calculate it? please describe it... thanks help! check thess links queries regarding - http://en.wikipedia.org/wiki/sieve_of_eratosthenes http://www.algorithmist.com/index.php/prime_sieve_of_eratosthenes time-complexity primes sieve-of-eratosthenes sieve

javascript - Sharepoint 2010 List Settings -

javascript - Sharepoint 2010 List Settings - i using list in created approval required column choice(drop down) values yes or no. have people picker column. objective people picker must disabled or hide if value no beingness selected , people picker must available when value yes selected choice(drop down). ideas? thanks, prasath. you seek editing display form of list in sharepoint designer, , add together jquery script attach dropdown changed event handle diplay/hide logic. javascript sharepoint sharepoint-2010 sharepoint-list