Posts

android - Hide ticker text in notification using Notification.Builder -

i'm trying display ongoing notification without initial ticker text display. able working older style notification setting ticker text null in constructor: mnotification = new notification(r.drawable.ic_stat_playing, null, system.currenttimemillis()); however, noticed instantiating notification way deprecated, , use of notification.builder recommended instead. however, cannot notification display without ticker text, when set ticker text null: notification.builder builder = new notification.builder(this); charsequence contenttext = "contenttext here"; intent launchintent = new intent(this, mainactivity.class); // pendingintent launch our activity if user selects // notification pendingintent contentintent = pendingintent.getactivity(this, -1, launchintent, pendingintent.flag_update_current); builder.setcontentintent(contentintent) .setsmallicon(r.drawable.ic_stat_playing) .setlargeicon(null) .setticker(null) .setonlyalertonce(...

f# - Translate Haskell parsec to FParsec -

how translate haskell code: import text.parsercombinators.parsec((<|>), unexpected, lookahead, noneof, char) import control.monad(when) data bracketelement = bechar char | bechars string | becoll string | beequiv string | beclass string p_set_elem_char = c <- noneof "]" when (c == '-') $ atend <- (lookahead (char ']') >> return true) <|> (return false) when (not atend) (unexpected "a dash in wrong place in bracket") return (bechar c) to fparsec ? preferable way without monadic syntax provide performance. thanks in advance, alexander. sorry little misleading. corrected problem make haskell code compilable: import text.parsercombinators.parsec((<|>), (<?>), unexpected, lookahead, noneof, char) import control.monad(when) import data.functor.identity import qualified text.parsec.prim pr -- | bracketelement internal module data bracketelement = bechar char | bechars string | becoll string...

wix3.5 - WIX where can i find WixUi_en-us file? -

i have installed wix 3.5 , want customize dialogs, can find wixui_en-us file? you need download wix 3.5 source from here . unzip files. want uiextension folder, located in directory structured src\ext\uiextension\wixlib edit: @ second glance, don't see wix 3.5 source posted there. maybe else knows. if need strings file though, can downloading source code 1 of latest wix 3.6 releases . not sure if has changed or not far specific file goes.

Header files for x86 SIMD intrinsics -

which header files provide intrinsics different x86 simd instruction set extensions (mmx, sse, avx, ...)? seems impossible find such list online. correct me if i'm wrong. <mmintrin.h> mmx <xmmintrin.h> sse <emmintrin.h> sse2 <pmmintrin.h> sse3 <tmmintrin.h> ssse3 <smmintrin.h> sse4.1 <nmmintrin.h> sse4.2 <ammintrin.h> sse4a <wmmintrin.h> aes <immintrin.h> avx <zmmintrin.h> avx512

calling a c# wcf webservice from c# client -

i have c# wcf web service , c# client makes calls web service working fine , have scenario below unable figure out how it. here case, have 2 methods in c# client 1st method make more time , client doesn't know going on response wcf web service take long time, implemented 2nd method gives status of 1st method call(saying first method has total of 10 tasks , performing 1 or 2 or 3 etc). don't have idea how call goes 2nd method first method not yet completed , both methods have in same client. can 1 please this. if have understand correctly... need implement asynchronous invocation . default in wcf calls synchronous. what have synchronous invocation.: method1 (client) invokes method2 (server) have tasks done. method1 waits long time until method2 finishes method1 receives true (or whatever) method 2 method 1can continue doing things. what need is: method1 (client) calls method2 (server) method2 2.1 validate request correctly formed 2.2 creates thr...

asp.net mvc 3 - Import Cardinality Mismatch Exception -

i have main app , plugin. main app exporting ihost object , plugin importing ihost object. ran mefx , recognizes both of those. when /causes on plugin gives me importcardinalitymismatchexception. container sees plugin, when call me.container.getexports(of icontroller)() doesn't return anything. my controller looks this: class controller implements icontroller ' ... <import()> public property host lazy(of ihost) ' ... end class i had <importmany()> in plugin. variable importing needed make ienumerable(of lazy(of ihost)) or use lazy(of ihost) if want <import()>

entity framework - Linq woes - A CollectionType is required -

why doesn't linq query work? i suspect may have lazy loading. seems work in linqpad. public ilist<paymentdto> getdocumentpayments(int documentid, bool? allowrepeatpayments, byte[] paymentstatuses, int[] paymentmethods) { using (var ctx = objectcontextmanager<mydatacontext>.getmanager("mydatacontext")) { var payments = new list<paymentdto>(); var ps = new list<byte>(); if (paymentstatuses != null) { ps = paymentstatuses.tolist(); } var pm = new list<int>(); if (paymentmethods != null) { pm = paymentmethods.tolist(); } iqueryable<payment> data = payment in ctx.objectcontext.documents.oftype<payment>() ps.contains(payment.status) && pm.contains(payment....