Vote count: 0 I am trying to make ip tracking system for my web and then inserting it into the sql. But my problem is that on a single click i am getting 2-4ip in my sql. Coding am using this currently....
ادامه مطلبVote count: 0 I want to execute a R script (named script.R) within PHP code with an Apache Web Server. Here is my R code : I install packages then import data then I can proceed a classification tree on the data: library(lubridate) library(plyr) library(rpart) library(sqldf) library(survival) library(randomForest) library(rpart.plot) data=read.table(file = "t.txt",header = T,sep = ";",stringsAsFactors = T) input=read.table(file = "file.txt",header = T,sep = ";",stringsAsFactors = T) tree=rpart(sat~.,data,method="class") png("tree.png", width=1000, height=800, antialias="cleartype") plot(tree, uniform=TRUE, main="Classification Tree") text(tree, use.n=TRUE, all=TRUE, cex=0.8) dev.off() My php...
ادامه مطلبVote count: 0 I have written an R script, which I run from R using the command source("script.r"). It works perfectly. However, when I try to run the exact same script from command line using either one of the commands: Rcript script.r, R --vanilla < script.r or R CMD BATCH script.r I get the error: "Error in library(igraph): there is no package called 'igraph'" If I remove the line from the script and run it without the command library(igraph), then I get the error that function graph.frame.data could not be found, which is a function of igraph. The script that run from the Rstudio, does not contain the line library(igraph) and I don't get such an error. When trying to inform myself about p...
ادامه مطلبVote count: 0 Any way to check and run the checked file in another script via procedure in tcl? If no then what is the way to do it? asked 16 secs agoDhruv Paul Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Download not working in python? I've written a simple python program, to get files from FTP location but when executing it's give [Ero 13] Permission denied message. My code is as follows. Any idea why is this ? import ftplib from ftplib import FTP, error_perm def getFTPDir(dirpath): f = ftplib.FTP(ip, useame, password) try: f.cwd(dirpath) nameList = f.nlst() oldest = nameList[0] newest = nameList[-1] newest = oldest newDirPath = dirpath +'/'+ newest print f.cwd(newDirPath) subNameList = f.nlst() for i in range (len(subNameList)): f.cwd( newDirPath + '/' + str(subNameList[i]) ) nameList1 = f.nlst() filename = nameList1[i] print "downloading..............", filename f.retrbinary...
ادامه مطلبVote count: 0 I need this type of 4 row 4 columns bootstrap responsive carousel animation script...
ادامه مطلبVote count: 0 I've generated a fully executable spring-boot jar Is it possible to view or generate the script that the init.d service uses for the jar? asked 45 secs agoDarVar Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a foreach loop and i want to add a javascript popup within it. I have to code for the loop and the popup box, im just struggling with how to write the link, please see below. '...
ادامه مطلبVote count: 0 I'm trying to install an sql server silently and after the completion of installation I need to check it's exit code, which is created in sqlsetup log file and as per the exit code the script will prompt user that the installation is successful or not. asked 47 secs agoSupriya Let's block ads! بخوانید...
ادامه مطلبVote count: -2 for(var i=0; i...
ادامه مطلبVote count: 0 Is it possible to access a dom-repeat that is present inside a dom-if from javascript. Now i can access the dom-if using this.$.id but how can i access the dom-repeat. asked 41 secs agoa1626 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 While create the skeleton for an HTML 5 game (using canvas), I noticed an interesting quirk about the JS language that I don't seem to quite understand! Specifically, I created an array of objects (nodes) which I have no problem passing through functions (as "node"), but even after confirming that said object is recognized in the console log, the .indexOf() method doesn't seem to recognize said object as an item in the array (giving me the generic "-1" output). function StartGame(){ //Initiating draw variables cx = document.getElementById("GameMap") seeds = cx.getContext("2d") //Resetting nodes nodes = [] GenNodes() //randomly generates and scatters new coector nodes on the gam...
ادامه مطلبVote count: 0 I'm new to CKEditor and relatively new to JavaScript. I'd like to make a script/Userscript to force some sites that already use CKEditor to use the latest version of ckeditors.js to be able to use the new features. A good example is http://www.pageorama.com which use the old 3.6.2 version. You can see the version easily with alert(CKEDITOR.version); I already know how to destroy CKEditor instance with CKEDITOR.instances.editor.destroy() and add things to the toolbar. My main problem now is to have the latest CKEditor version to be used when I reload it with CKEDITOR.replace(editor); , This was I will be able to config it with the latest feature on site that use CKEditor. How I ...
ادامه مطلبVote count: 0 I have this snippet of tracking (below) I was looking at why it's possibly making 4 calls each time you click "addToCart.gif". i added "console.log()" to each if case - and noticed it's looping. Is this because it's calling the same function before the function has ended? is there a better way of doing this that you can advise? Thank you so much! // 0){ mboxDefine("clicked-addToCart","clicked-addToCart") var count=0; function addToCartClickTracking(){ if(typeof jQuery == 'function' && jQuery(".add-to-cart[src*='addToCart.gif']").length > 0 && count < 10){ console.log("adding click tracking") jQuery(".add-to-cart[src*='addToCart.gif']").click(function(){ mboxUpdate("clicked-addT...
ادامه مطلبVote count: 0 It is possible to achieve the effect comment more arrow using html5 + css + javascript? asked 18 secs agoGermán Méndez Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've got Regex targeting alpha-numeric strings that are product numbers (all will be CAP/number combinations of various lengths) wrapping these product numbers in bold tags for hundreds of generated HTML emails. This worked great to bold product numbers, but also captures random parts of URLs and hex colors in my HTML email's tags attributes. I've tried to exclude hex colors, and only include text after ">" and before "...
ادامه مطلبVote count: 0 I did this code up trying to hide a select input field until the check box is checked. It works but when the page first loads these are all visible. I need them invisible until the check box is filled in. If I load the page then click the checkbox and then uncheck the check box the object disappears so I know it's working but why does it appear at the begiing and more importantly how do I stop it from doing that? Code: function doruc() { var elem = document.getElementById("secondhalf1"), checkBox = document.getElementById("pizza11"); elem.style.display = checkBox.checked ? 'block' : 'none'; }; asked 1 min agoWestcott Louden Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm writing a C++ desktop application with An embedded webview to show the UI written in html/css/js. A C++ backend to handle all logic and core operations. In order to show the web UI in the embedded webview without problems, I need to server those files from a local directory that will be part of the application. So I need to embed an http server as part of the application as well. So I'm looking to do something like this: web_view.ShowUrl("localhost:8080"); And this should automatically open index.html in /path/to/my/ui/directory/ that the embedded http server is set up to serve. Then it should be able to handle any includes of other scripts, html/css files, resource files l...
ادامه مطلبVote count: 0 I have a page in which I am pushing some javascript using google tag manager. The javascript code has a function which executes on DOM ready and modifies certain elements on the page if it is being accessed from a mobile device. The code works fine when the page directly open in the browser but if we move out from the page by clicking a link and come back again by using the browser back button the page does not get modified that is either the code from the tag manager is not getting push into the page or somehow the code is not executed. asked 41 secs agodevkaustav Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm trying to convert a scaleR script into T-SQL (with exteal_script execution) for in-database R analytics in SQL Server. The scaleR script that I'm working with is on the DeepDive Data Science Tutorial on Fraud data by MSDN.All my data is in SQL Server now (from the tutorial), and all I want to do is query this table to get summary using the rxSummary scaleR function (in-database).This is my attempt: exec sp_execute_exteal_script @language = N'R', @script = N' sumOut...
ادامه مطلب