Posts

c# - tweetinvi, I can't retrieve messages -

i want monitor retrieve messages bot can respond them. i can send pm using tweetinvi reason, can't retrieve of messages in account. getlastmessage returns null. i have tried following: in test, have timer runs every 1s , pols messages. private static void ontwittertimedevent(object source, system.timers.elapsedeventargs e) { try { ienumerable<imessage> msg = controller.getlatestmessagesreceived(); ; // message.getlatestmessagesreceived(100); if (msg != null) { console.writeline(msg.elementat(0).senderscreenname + msg.elementat(0).text); if ((msg.elementat(0).senderid == ####myid#####) & (msg.elementat(0).text == "?")) { message.publishmessage(tweet, ####myid#####); console.foregroundcolor = consolecolor.darkgreen; console.writeline(msg.elementat(0).senderscreenname + msg.elementat(0).text); console.resetcolor(); ...

Slider revolution and fancybox-3 -

hi try implement fancybox 3 in carousel plugin slider revolution. next code work fancybox 2 fancybox 3 arrows not work. want o know if have solution. link: https://www.themepunch.com/faq/using-fancybox-with-slider-revolution/ code work in fancybox2 not show arrows in fancybox3 /* change revapi1 whatever api name being used slider */ var api = revapi1; /* no need edit below unless want change default fancybox settings */ api.on('revolution.slide.onloaded', function() { jquery(this).find('.fancybox').each(function() { var $this = jquery(this); if(!$this.is('a')) $this = $this.removeclass('fancybox').find('a'); $this.addclass('fancybox').attr('rel', 'gallery').fancybox({ /* begin fancybox options */ width: 'auto', height: 'auto', autosize: true, aspectratio: true, fittoview: true, autocenter: true, scrollin...

Yii2 yii console commands not work -

Image
i try run command, 1 answer command how run commands? i did not find solution, reinstallation yii2 helped me.

c++ - Is it possible to reserve memory in icu::UnicodeString? -

i wondering if possible reserve memory in icu::unicodestring (icu 59.1) similar how done in std::string through std::string::reserve method? have looked through documentation provided icu::unicodestring , have not seen method allow me that. have missed one, or not possible? thanks!

formatting output data neatly C++ -

Image
this question has answer here: format output in table, c++ 4 answers when print results of program screen, data on place want align results best possible. using setw(10) in order it's not working can me? thanks this output looks like: this print function: void print(const call_record *call_db, int & count) { cout << fixed << showpoint << setprecision(2); for(int i= 0; <= count; i++) { cout << call_db[i].firstname <<" " << call_db[i].lastname <<" " << call_db[i].cell_number <<setw(15) << call_db[i].relays <<setw(10) << call_db[i].call_length; cout <<setw(10) << call_db[i].net_cost <<setw(10) << call_db[i].call_rate << setw(10) << call_db[i].call_tax <<setw(10) << call_db[i].total...

c++ - Bizzare identical incorrect results across different MWR2MM algorithms for RSA montgomery multiplication -

Image
background i'm trying implement rsa 2048 in hardware (xilinx zynq fpga) using variety of different montgomery methods. implementing algorithm using xilinx hls (essentially c++ code synthesized hardware). note: sake of post, treat standard c++ implementation, except can have variables act bit-vectors 4096 bits wide, , access individual bits using foo[bit] or foo.range(7,0) syntax. haven't yet parallelized it, should behave standard c++ code. please don't afraid , stop reading because said word fpga , hls. treat 1 c++ code. i've been able working prototype uses standard square-and-multiply modular exponentiation, , standard radix-2 mm algorithm modular multiplication, takes space on fpga , need use less resource-heavy algorithms. to save space, i'm trying implement tenka-koc scalable multiple word radix 2 montgomery multiplication (mwr2mm) proposed here . i've been struggling month no avail. there interesting problem resulting out of struggles canno...

Batch learning general algorithm -

i have been reading reinforcement learning: introduction sutton , barto (2012) , have come across batch learning method. unfortunately, method not described in book , scientific articles regarding batch learning yet advanced me. could please elaborate on method , provide exemplary pseudo-algorithm reinforcement learning method?