Python - Having user sort list smallest to biggest
Vote count: 0 So I'm making a code where it asks the user to to swap two places on the list until the list is from smallest to biggest. So it should look like this: Hello: Your current list is [6, 7, 8, 2 , 9, 10, 12, 15, 16, 17] Please pick your first location -> 4 Please pick your second location ...
GAM R variance explained by variable
Vote count: 0 My current problem is to calculate the variance explained by the different variables of a general additive model (GAM) with R. I followed the explanation given by Wood here : https://stat.ethz.ch/pipermail/r-help/2007-October/142743.html But I would like to do it with three variables. ...
Catch Nil Error in If/Else
Vote count: 0 While this seems beyond simple to me, I ca ot seem to figure out how to code this. I am trying to write an if/else if/else statement, but it's not working. Here's what I have: for value in values { if Float(value) > 0 { print("positive") } else if value == "N/A" { print("not available"...
simultaneous runs of two JS webworkers: one gets stuck
Vote count: 0 I'm working on a closed system web application to aid companies in their everyday online commerce chores. That means on the one hand that it won't be open to the public, on the other: it will have to deal with large amounts of data while maintaining a fluent work experience. This is wh...
Incorrectly routing /index to /show in Rails
Vote count: 0 There must be an obvious answer to this, but I'm at a loss. I have a Rails app which tracks sites. For whatever reason, localhost:3000/sites leads to my index page. However, localhost:3000/sites/index leads to my show page. Why is this? Below is the routes file: Rails.application.route...
How to add fonts using tFPDF
Vote count: 0 I try to create pdf file using tFPDF with custom font.I put arial font inside font/unifont folder.I use this code to create pdf file: $pdf->AddFont('arialbd','','arialbd.ttf',true); $pdf->SetFont('arialbd','',16); $pdf->Cell(40,6, 'OÜ Kersti Võlu Koolituskeskus', 0, 1); $pdf->SetFont('...
Cython __pyx_r may be used uninitialized in this function
Vote count: 0 I am trying to utilize cython to provide a wrapper for my C++ utilities. One such function I am trying to make accessible is an accessor that retu s an enum based on file type. Here is how I re-define the function in cython: cdef exte from "reader.h" namespace "magic_number": enum mcr_...
How do I set my svn server's password to never expire?
Vote count: 0 We are having problems with our subversion server. I am the admin of the server and the svn account users all of a sudden are not able to login on the url directories. I'm thinking its due to a password expiration issue. Is this true? If so how can I change the password expiration for ...
TFS 2015 - Track Daily Hours
Vote count: 0 Is there a way (through a report or separate utility) to track daily hours entered in TFS 2015? For example, if I wanted to see the difference in completed hours for work items between today and yesterday. asked 1 min agoHarlan Wescott Let's block ads! (Why?)
SQL Injection Vulnerable script
Vote count: 0 I've a strange question : I need to create a SQL vulnerable injection script ! The goal is that the script is vulnerable to Union based only !Here is my script : $req = "SELECT pseudo, mail FROM membres WHERE pseudo='".$_POST['membre']."'"; $ans = $bdd->query($req); while($data = $ans-...
wordpress template page error when select from database
Vote count: 0 I have take the page.php page and i have created a new template page named mytemplatepage.php The page mytemplatepage.php works normally untill i try to add an sql query. when i add the bellow code the page gives http 500 error. <?php global $wpdb; $sqlresults = $wpdb->get_results( "SE...
Caffe fully convolutional CNN
Vote count: 0 I am trying to finetune the fully convolutional CNN for my problem. It seems I have an out-of-date Caffe installed in my machine. It was mentioned in https://github.com/shelhamer/fcn.berkeleyvision.org that "These models are compatible with BVLC/caffe:master @ 8c66fa5 with the merge of...
Diffrence between keyup keydown keypress and input events
Vote count: 0 I have been trying to understand jQuery keypress, keydown, keyup and input events. Could someone please point out the exact differences ? Also I would like to know do all of them get triggered when the user paste a piece of text .Thanks asked 47 secs agoTony Vincent Let's block ads! (W...
Getting error when attempting to save score?
Vote count: 0 The following code retrieves the player's score from the Google Play Leaderboard. If the retrieved value is superior to the one already stored on the device, the score is saved. public void Update() { PlayGamesPlatform.Instance.LoadScores( "myLeaderboardID", LeaderboardStart.PlayerCent...