Posts

github - Create a barebones version of R -

i want deploy application i've been working on in r github, , i've found can upload 25mb worth of files without using command line. i've bundled portable version of r, can found here: https://sourceforge.net/projects/rportable/ r scripts. i tried deleting files in r portable try cut down, , wondering if way of going things. alternatively, mentioned previously, can try , use command line in github, haven't had luck getting work. appreciated. edit: found can uploaded using github desktop: https://desktop.github.com/ . however, main question still stands: worth \ safe cutting down r?

c# - Error using eazfuscator.net v3.3.0 Common Language Runtime detected an invalid program -

using eazfuscator.net 3.3.0 i'm having error: "common language runtime detected invalid program" happens when put mouse cursor on datagridview. i'm using c # in visual studio 2010. another error compiling application using eazfuscator not start if not run administrator. any ideas? thank you

html - trying to make icons fixed with css -

Image
h4 { color:#ffffff; font-size:20px; letter-spacing:2px; display:inline-block; padding:0 10px; } { color:#ffffff; font-size:20px; } <div class="col-md-12"> <i class="fa fa-angle-left" id="prev" aria-hidden="true"></i> <h4 class="quotes" style="display:inline-block;"> web devloper </h4> <h4 class="quotes" style="display:inline-block;"> web designer </h4> <h4 class="quotes" style="display:inline-block;"> freelancer </h4> <i class="fa fa-angle-right" id="next" aria-hidden="true"></i> </div> how make next , previous icons stay fixed? here's problem: add icons position: absolute; , parent element position: relative; . example: #block { padding: 20px 70px; ...

python 3.x - Why does my script continue to 'while' loop when if statement is true? -

at line 11, user chooses cancel button on easygui enterbox, why code continue 'while' loop though user's choice returns 'nonetype? doesn't meet condition of 'if' statement? shouldn't script return 'main' function being called? here full script. from easygui import* def children_menu(): title2 = "children." children_menu = ["1: register child.", "2: list of registered children."] button = buttonbox("choose option", title2, choices=children_menu) if button == children_menu[0]: enter1 = enterbox(msg="enter child's first name.", title=' ', default='', strip=true, image=none, root=none) if enter1 none: main() return else: while enter1 == "" or enter1.isalpha() == false: enter1 = enterbox(msg="invalid entry. please enter child's first name using letters only....

php - How to express OR conditions with the CakePHP 3.x query builder? -

i trying build query in cakephp 3.x following structure : , b , c , [d or e] a,b, c, d, e contains array of values joined or conditions $schools = $schools->where(['a in' => $arrayofaoptions]), $schools = $schools->where(['b in' => $arrayofboptions]), $schools = $schools->where(['c in' => $arrayofcoptions]) // want firstly joined or before joining other conditions , $schools = $schools->where(['d in' => $arrayofcoptions]) //or $schools = $schools->where(['e in' => $arrayofcoptions]) the problem here , not fields d , e isolated or , join others and in cakephp 2, managed achieve following codes $queryconditions = array( 'or'=> array_merge( array( 'school.d' => $this->session->read('conditions.d') ), array( 'school.e' => $this->session->read('conditions.e') ) ) ); before merging rest on conditions appreciat...

datetime - Swift - Calculating elapsed time takes too long? -

my server call gives me json data date time per piece of data , want calculate time elapsed between , , load data structure. way i'm doing takes way long, there different design practice should using? follow function using right now func datediff(_ datestr:string) -> string { var timeago = "10m" let formatter = dateformatter() formatter.dateformat = "yyyy-mm-dd' 'hh:mm:ss" formatter.timezone = nstimezone(name: "ast") as! timezone let dateformatter = dateformatter() dateformatter.dateformat = "yyyy-mm-dd' 'hh:mm:ss" dateformatter.timezone = nstimezone(name: "ast") as! timezone let = formatter.string(from: date()) if let date = formatter.date(from: datestr){ if let nowdate = formatter.date(from: now){ let components = calendar.current.datecomponents([.day,.hour,.minute,.second], from: date, to: nowdate) let sec = components.second let min...

javascript - Using Socket.IO from Node.js to connect to external server -

background: have node.js server running on localhost (call server a); , external server running node.js @ https://example.net:3000 (call server b). not control or have access server b (it dashboard site iot device in home), need connect using socket.io , emit specific message. i can connect flat javascript file (client-side), need running server side (ultimate goal make can call http request); , examples such how connect 2 node.js servers websockets? suggest should able use socket.io-client node.js same code achieve same results. when run code node.js, cannot connect socket. below code works in flat javascript file. know works because see 'socket connect' in console, , can test the socket emit @ end. var myemail = "email@gmail.com"; var device_id = '12345'; // create socketio instance, connect var socket = io.connect('https://example.net:3000'); socket.on('connect', function(){ try { console.log('socket connect'...