Posts

Interactive directory input in Shiny app (R) -

i building shiny app requires user select folder on local machine, contains files processed app. i using solution proposed here . works fine on local machine, not work if app deployed shinyapps server. author of solution confirmed designed work local shiny apps, since makes os shell calls display directory dialog. i wondering if there different solution directory dialog, work on deployed shiny apps (i deploying shinyapps.io). edited: notice cannot use fileinput interface 2 reasons: the users of app not technical people , not know files inside folder used app. the selected folder may contain other folders within needed files reside, such impossible select files @ once, if fileinput interface has multiple option enabled. the folder/files structure not can change, downloaded medical device , therefore thing can expect users specify parent folder , rest should done inside r code. this working example based on using "webkitdirectory" attribute. @ momen...

ios - SocketMobile SocketScan -[AccessoryMonitor CheckForChanges:] NSRangeException -

i have integrated socket mobile scanners using scanapisdk (v 10.2.227). received crash log on -[accessorymonitor checkforchanges:] seems part of sdk. has experienced before? best way find cause of issue? appreciate help. crash log below. *** -[__nsarraym getobjects:range:]: range {0, 1} extends beyond bounds empty array #7. crashed: com.twitter.crashlytics.ios.exception 0 myfirstapp 0x10076389c clsprocessrecordallthreads + 4302256284 1 myfirstapp 0x10076389c clsprocessrecordallthreads + 4302256284 2 myfirstapp 0x100763d4c clsprocessrecordallthreads + 4302257484 3 myfirstapp 0x10074e78c clshandler + 4302169996 4 myfirstapp 0x100761aa4 __clsexceptionrecord_block_invoke + 4302248612 5 libdispatch.dylib 0x1811d947c _dispatch_client_callout + 16 6 libdispatch.dylib 0x1811e4728 _dispatch_barrier_sync_f_invoke + 100 7 myfirstapp 0...

laravel 5.2 - Starting with angular 2, what is the best approach? -

i had question regarding angular 2. we using laravel 5.2 our backend or api provider , want write our frontend in angular 2. best way use them together? serve angular 2 files via laravel on same node. have separate nodes front end , backend, angular 2 runs on 1st node served node.js (as of examples on angular 2 show) , api services using laravel on 2nd node. i couldn't find best guide satisfy 1st option. can suggest how proceed? i believe both practices fine. if host on same node, won't have specify api node when making calls. if see backend api being more general service other applications building, consider second, more general node.

How do I run a python script between two times? -

i have python script run between 9 , 4 pm everyday, there's part of same script i'd run every 10 seconds during time. how go in doing this? have looked @ datetime modules, did not come across examples compare times , schedule event. there seems difference datetime module in python 2.7 , 3.x. using python 2.7. me or direct me right sources? thank you. if using linux,you should read crontab ,it powerful tool schedule. on other hand,in python2.7 ,try sched schedule repeating event . hope helps.

dataframe - Python pandas: delete the data in a data frame that the size of data is below a value -

i have data frame called df(this example, real data big, please consider computing speed) following: name id text tom 1 a1 lucy 2 b1 john 3 c1 tick 4 d1 tom 1 a2 lucy 2 b2 john 3 c2 tick 4 d2 tom 1 a3 lucy 2 b3 john 3 c3 tick 4 d3 tom 1 a4 tick 4 d4 tom 1 a5 lucy 2 b5 tick 4 d5 the dataframe can grouped name(tom, john, lucy, tick). want delete data size of each group(by name)is less 5. mean since size of name of lucy , john less 5, want delete these data , new df(just have tick , tom data), such as. could tell me how it,please! thanks! i think can use filter this. 1 line: df = pd.dataframe({'name': ['tom','lucy','john','tick','tom','lucy','john','tick', 'tom', 'lucy','john...

animation - Unreal 4 C++ Actor Movement -

i have data actors movement being read in file @ start of game. data gets read in contains vector positions actor should move next. have actor moving position position no problem... until start add animation skeletal mesh attached actor. my problem: how can found out velocity work out animation play idle, walk, jog , running? doesnt have velocity lerping position: setactorlocation(fmath::lerp(getactorlocation(), newpos, 0.01)); any thoughts on how set right animation based on distance travel , speed? should move actors movement character can use addmovementinput velocity. then, if go down route, how say: move character current position, next position in x amount of time giving character correct velocity use in animation selection. can normalize difference between 2 vector lengths (getworldlocation) , use abs(floating point) result x variable put 1d blend space idle, walk, jog, run in animation bp? sure account "acceptance radius" or else once gets locat...

image - Want to edit page layout in wordpress -

i need make website layout have in link below white frame around images , label below images on white part. not sure how it. , familiar css , html . any help, please. https://www.saatchiart.com/ use following code pure css assuming u need same design link have .maindiv \\ ur main div{width:100%; background:#fff;padding:1%;} .maindiv img \\ ur img inside div{width:100%; \\ in case} .maindiv p,maindiv \\ ur label , link {width:100%;text-align:left;} .maindiv p:first-child{font-weight:bold;font-family: ur choice;} \\ change occurence of first label in ur div .maindiv p:last-child{padding-top:1%;} \\ change last link label