Python - Having user sort list smallest to biggest
◷
تاریخ انتشار: 1395/5/1 | ساعت: 7:10
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
◷
تاریخ انتشار: 1395/5/1 | ساعت: 7:10
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
◷
تاریخ انتشار: 1395/5/1 | ساعت: 7:10
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"...
How do I open a websocket connection to cloud from location behind corporate proxy
◷
تاریخ انتشار: 1395/5/1 | ساعت: 4:08
Vote count: 0 I have a nodejs websocket server ru ing in the cloud to which I can make a secured web socket co ection from any location outside of corporate firewall. Now, how can I provide proxy information while creating a websocket co ection from a resource behind corporate proxy (on-premise)? I ...
simultaneous runs of two JS webworkers: one gets stuck
◷
تاریخ انتشار: 1395/5/1 | ساعت: 4:08
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
◷
تاریخ انتشار: 1395/5/1 | ساعت: 4:08
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...
Opening file through VBA vs Windows Exploroer results in different versions
◷
تاریخ انتشار: 1395/5/1 | ساعت: 2:59
Vote count: 0 I'm having an issue where opening a workbook though a VBA macro opens a different version of the file compared to when the same file is opened through Windows Explorer. The file I'm trying to open is a log on a network drive containing various data as well as a timestamp. I've noticed ...
How to add fonts using tFPDF
◷
تاریخ انتشار: 1395/5/1 | ساعت: 2:59
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('...
Coverting JSON String which is part of JSON object to JSON Object on the run
◷
تاریخ انتشار: 1395/5/1 | ساعت: 2:59
Vote count: 0 I am consuming a REST web services using REST template in my project which retu s a JSON as below: {"data": [{ "id": "INT-1468819244684-event-no-97", "object1": { "JSONString": "{"object2":[{"object3":"value3","object4":"value4"}]}" } }] } While consuming the above JSON response I am a...
Cython __pyx_r may be used uninitialized in this function
◷
تاریخ انتشار: 1395/4/31 | ساعت: 22:19
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?
◷
تاریخ انتشار: 1395/4/31 | ساعت: 22:19
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 ...
I want to write a multi lines of code in c#
◷
تاریخ انتشار: 1395/4/31 | ساعت: 22:19
Vote count: 0 I want to write a multi lines of code in c# Help me please. screenshot asked 26 secs agoAlen Smith Let's block ads! (Why?)
MS-SQL UpdateLock reflection during backup the same database via SQL Job and TDP in the same time
◷
تاریخ انتشار: 1395/4/31 | ساعت: 21:16
Vote count: 0 When I was monitoring the backup process in MS-SQL 2008 R2, I saw the single database, say A, is handled by both SQL backup Job and TDP in the same time. When I tried to query Sys.sysprocess, I found the HEAD-block from TDP was blocking the process from SQL backup Job. For example, SPI...
TFS 2015 - Track Daily Hours
◷
تاریخ انتشار: 1395/4/31 | ساعت: 21:16
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
◷
تاریخ انتشار: 1395/4/31 | ساعت: 21:16
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
◷
تاریخ انتشار: 1395/4/31 | ساعت: 18:20
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
◷
تاریخ انتشار: 1395/4/31 | ساعت: 18:20
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
◷
تاریخ انتشار: 1395/4/31 | ساعت: 18:20
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?
◷
تاریخ انتشار: 1395/4/31 | ساعت: 15:31
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...
Disable border in tag select during printing in Opera 38.0
◷
تاریخ انتشار: 1395/4/31 | ساعت: 15:31
Vote count: 0 please, help me set border over CSS for tag select for media print in Opera 38.0. I need disable print its border. This setting not function: select{border:none !important;} Thank Jarda asked 18 secs agouser3743980 Let's block ads! (Why?)