Posts

r - Extracting coefficients from a regression 1 model with 1 predictor -

i have following regression model: > print(summary(step1)) call: lm(formula = model1, data = newdat1) residuals: min 1q median 3q max -2.53654 -0.02423 -0.02423 -0.02423 1.71962 coefficients: estimate std. error t value pr(>|t|) (intercept) 0.3962 0.0532 7.446 2.76e-12 *** i2 0.6281 0.0339 18.528 < 2e-16 *** i following returned data frame: estimate std. error t value pr(>|t|) i2 0.6281 0.0339 18.528 < 2e-16 i have following code: > results1<-as.data.frame(summary(step1)$coefficients[-1,drop=false]) which yields: > results1 summary(step1)$coefficients[-1, drop = false] 1 6.280769e-01 2 5.320108e-02 3 3.389873e-02 4 7.446350e+00 5 1.852804e+01 6 2.764...

vb.net - Need Help! Upgraded to a new PC and from Visual Studio 2008 to 2013. ODBC Data Connections are Broken in all my projects -

i have been using visual studio 2008 create basic search apps work. in 2008 go "add new datasource", select odbc connection , select iseries access odbc driver, select tables wanted, drag them onto datagridview in windows form. when go in vs 2013 second click on 1 of odbc connections add datasource window either disappears or error saying "object reference not set instance of object". there difference in way visual studio 2008 handles odbc connections vs visual studio 2013? i sure simple missing, really need these connections work. appreciated. *edit, have tried complete uninstall , reinstall of vs 2013 , still have same problem. visual studio 2008 continues work without issue. since have new pc, data source may not defined. check in pc admin tools > odbc data sources > as400 odbc driver >configure > server tab > lib list. libraries want access may not listed in lib list.

windows - Whatis the difference between a 32bit program on a 32bit OS and 32bit program on a 64bit OS? -

in computer running 32bit os on 64bit processor. application installed 32bit , computer having 2gb ram. if install 64bit os while keeping same 32bit applications, improve performance?? or there disadvantage? talking 32-bit , 64-bit software means such software developed in order take advantage of cpus 32-bit or 64-bit registers size. registers tiny portions of memory (not ram) used directly processing unit temporarily save operations results (kind of variables), e.g. when summing 2 numbers alu reads 2 registers, performs operation , writes answer in register. bigger registers, bigger values can handle. 32-bit processor has registers can handle values 32 bits of size, 64-bit processors can deal numbers of double size 32-bit-based processors, results in 2^32 more values. a 32-bit os os works performing cpu operations on machine 32-bit cpu registers; 64-bit os works fine on 64-bit processors, not on 32-bit ones because registers small such os. as program runs on os, 32...

php - Errors with login system.... I cant see a issue -

here code first of all <?php session_start(); //start session define(admin,$_session['name']); //get user name registered super global variable if(!session_is_registered("admin")){ //if session not registered header("location:login.php"); // redirect login.php page } else //continue current page header( 'content-type: text/html; charset=utf-8' ); ?> and i'm getting following errors notice: use of undefined constant admin - assumed 'admin' in c:\users\andrew\documents\server2server\admin\dashboard.php on line 3 notice: undefined index: name in c:\users\andrew\documents\server2server\admin\dashboard.php on line 3 fatal error: call undefined function session_is_registered() in c:\users\andrew\documents\server2server\admin\dashboard.php on line 4 does know why i'm getting these errors? here fixed code: <?php session_start(); //start session define("admin",$_session['name...

python - web.py doesn't find file -

i try create little website using web.py , webpysocketio, , have problem: web.py doesn't seem find file besides index.html. here's webpy app: import web socketio import socketioserver gevent import monkey monkey.patch_all() webpy_socketio import * urls = ( '/', 'index', ) urls += socketio_urls app = web.application(urls, globals()) socketio_host = "" socketio_port = 8080 application = app.wsgifunc() if __name__ == "__main__": socketioserver((socketio_host, socketio_port), application, resource="socket.io").serve_forever() class index: def get(self): render = web.template.render('templates/') return render.index() @on_message(channel="my channel") def message(request, socket, context, message): socket.send_and_broadcast_channel(message) in template folder have index.html ( and socketio_scripts.html ): <html> <head> <meta charset="utf...

javascript - How to make function wait for another? -

i have function, call function: function_name(1) function function_name (i) { multiply(i) console.log(i); // 1 } function multiply (i) { = i*2 } when it's executing, console.log(i) return "1". need console.log(i) return "2". how can make wait till multiply() executed? there no need wait, methods synchronous console.log() executing after multiply() executed. problem updating local scoped variable i in multiply locally scoped variable i in function_name not modified actions in multiply you can return result multiply , use value in calling function like function_name(1); function function_name(i) { = multiply(i); console.log(i); // 1 } function multiply(i) { return * 2; }

Send pdf attachment to emails in mysql database using php -

code: <?php $servername = "localhost"; $username = "username"; $password = "****"; // create connection $conn = new mysqli($servername, $username, $password); // check connection if ($conn->connect_error) { die("connection failed: " . $conn->connect_error); } $sql = "select email, name myguests"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $conn->close(); ?> <table width="348" border="0"> <tr> <td width="88">name</td> <td width="98">email</td> <td width="148">select <label> <input type="checkbox" name="checkbox" id="checkbox"> </label> </td> </tr> <tr> <?php {?><td><?php echo $row["na...