Posts

ios - SNS Push Notification Service Multi threading Publish API to publish 100,000 messages in 2 seconds -

i reading following blogpost ( https://aws.amazon.com/blogs/aws/push-notifications-to-mobile-devices-using-amazon-sns/ ) sns , states can "send messages directly specific device calling publish function device’s arn. can scale handle millions of users storing endpoint arns in amazon dynamodb , using multi-threaded code on server." i'm having issues understanding how can scale 1 million users. each call taking 500-800ms me. way many parallel connections if wanted send notification million users in 10 second span. my goal able hit 100,000 users push notif using publish api using device arn directly (not topics) in 2 seconds. have suggestions @ how achieve this? thanks, matt if want send same message clients benefit subscribing "consumers" same sns topic. way need send 1 message , sns automatically fanout it's subscribers. from sns faq q: there limits number of topics or number of subscribers per topic? by default, sns offers 10 mill...

javascript - API Cluster - Using Custom Group Config for Default Endpoint -

i'm using api cluster library. when try create multiple endpoint group sometime might want use default endpoint pattern config options can different. scenario: if don't mention 'endpoint' in group value should taken default 'endpoint' pattern please have @ code click here this 1 of limitation in api cluster 1.0.5 js library. because api cluster 1.0.5 expect addanother / defaults method parameter requires below 3 options mandatory. name config endpoints defaults / addanother method creates endpoint groups, each group independent try below problem. apicluster .defaults({ name: 'mydefault', config: { 'employee': 'emp', 'details': 'defaultdetails', 'timesheet': 'timesheet' }, endpoints: { "empdetails": "_employee_/_details_/:empid/profile" } }) .addanother({ name: 'v1', config: {...

php - Issues with ungreedy match -

in php, i'm matching text here http://pastebin.com/pfjegqpd following regex: preg_match('#(.*(?s))(particella |particelle |p\.|part\.|p |part |mappale |mapp\.|mapp |n\.|\*) *(\d+[\d /\p{pd}]*)($|.{0,20}(?s)(graffati|particella |particelle |p\.|.*part\.|p |part |mappale |mapp\.|mapp |n\.|subalterno |subalterni |sub\.|s\.|sub |s |\bcat\b|\bcategoria\b|\brendita\b|\bvani\b|\bconsistenza\b|\br\.c\.\b))#i', $txt, $matches, preg_offset_capture, $offset) with $offset = 944 , i'm getting following output in $matches . i expected match 1184 matches 4 instead. tried (?su) no luck. $matches = array(6) { [0]=> array(2) { [0]=> string(59) "* 1184 sub.702, vioolo san vincenzo n.4, piano t, categoria" [1]=> int(1226) } [1]=> array(2) { [0]=> string(36) "* 1184 sub.702, vioolo san vincenzo " [1]=> int(1226) } [2]=> array(2) { [0]=> string(2) "n." [1]=> ...

java - Jframe form in netbean -

a>>> package ja7; import javax.swing.jframe; /** * * @author lalit kumar */ public class gframe extends javax.swing.jframe { /** * creates new form gframe */ public gframe() { initcomponents(); } /** * method called within constructor initialize form. * warning: not modify code. content of method * regenerated form editor. */ @suppresswarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="generated code"> private void initcomponents() { jbutton1 = new javax.swing.jbutton(); jbutton2 = new javax.swing.jbutton(); jtextfield1 = new javax.swing.jtextfield(); jtextfield2 = new javax.swing.jtextfield(); setdefaultcloseoperation(javax.swing.windowconstants.exit_on_close); settitle("try magic"); setresizable(false); jbutton1.settext("cal"); ...

java - Getting null pointer when calling web serive developed in the .net using web service client -

i consuming web service developed in .net. platform ibm rad,websphere 7 , jax rpc. i write codeto call service, getting below null pointer exception. client code: // string // endpoint="https://pilot.id3global.com/id3gws/id3global.svc/soap11_noauth"; // string endpoint="basichttpbinding_globalauthenticatestub"; // globalauthentication globalauth =new globalauthentication(); long l = new long("0"); // globalauth.setprofileid("4a6eaf41-f9a9-44f0-9700-81aa43004dab"); // globalauth.setprofileversion(l); globalprofileidversion profileidversion = new globalprofileidversion(); profileidversion.setid("4a6eaf41-f9a9-44f0-9700-81aa43004dab"); profileidversion.setversion(l); globalinputdata iinputdata = new globalinputdata(); globalpersonal personal = new globalpersonal(); globalpersonaldetails personaldetails = new globalpersonaldetails(); personaldet...

magento search not showing single product on manufactuer list page -

magneto search not showing single product on manufacturer list page, redirecting product on product page. i don't want redirect it, notable find ta redirect code. using search landing page show listing of brand vise product thanks in advance

swift - Remove visual appearance of "Adjust image when focused" in tvOS -

i have uicollectionviewcell fullsize image (constrains: 0,0,0,0). i added optional image (a 'watched image') above full screen image. works. due fact there 'zoom effect' if cell focused, have enable adjust image when focused attribute. both images resizes wished. the problem is, feature adds grey shadow layer 'watched' label not good. thats why need feature of resizing without visual appearance of it. is possible? in storyboard, try move 'watched image' in same level collection view comes after collection view in view hierarchy. should place optional view on top of collection view cell , avoid shadow falling on top of it.