Error in formula to neuralnet

This is actually a copy of a perfectly useful question whose answer was (partially) arrived at by the questioner. Original title: "Formulas with more than 512 characters for neuralnet model in R for text analysis". He eventually fixed the problem alt...
more »

2017-02-15 01:02 (2) Answers

PHP to Parse a HTML page and output a certain div

So I've been trying to embed a part of a website within my website due to security reasons I cannot disclose the website that I am trying to embed so for the purpose of this example I am going to use bbc.co.uk. The following is the php/html code: ...
more »

2017-02-12 18:02 (1) Answers

Find declared function from user input

I have a prompt in my "app", like irb that takes an input,I want it to parse the input and execute a function that I've defined. Similarly, my app takes an input through gets, and calls the function. For example, command = gets.gsub("\n","") take...
more »

2017-02-10 16:02 (1) Answers

Parsing simple query syntax

Let's say I have a query string like that: #some terms! "phrase query" in:"my container" in:group_3 or #some terms! or in:"my container" in:group_3 terms! "phrase query" or in:"my container" test in:group_3 terms! What is the best way to...
more »

2017-02-10 15:02 (2) Answers

Parse JSON with escaped JSON string using Jackson

I need to parse a JSON, which has an escaped JSON string as a value, into a Parcelable object. Reason I have kept it as String is that I have to deffer the parsing of this escaped JSON and the initialization of components related to it. I have succe...
more »

2017-02-09 15:02 (0) Answers

Parsing SOAP response PHP

I have a SOAP response that I am trying to parse, however I seem to be getting an error. SOAP response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <ValidateNewUserResponse xmlns="urn:websitea.com/v2">...
more »

2017-02-08 10:02 (3) Answers

jsoup : How to search for date text from a webpage

Simply this is what I am trying to do : (I want to use jsoup) pass only one url to parse search for date(s) which are mentioned inside the contents of web page Extracts at least one date from the each page contents convert that date into standard ...
more »

2017-01-31 06:01 (1) Answers

Removing <head> issues, I need guide/assistance

So guys, i'm make a web parser it was good but i saw that some words inside <head> is screwing everything up (and <strong> in the body too). My code is This one here before nokogiri but I'm new at ruby programming and just started to know...
more »

2017-01-31 02:01 (1) Answers

Parse PHP into HTML style parameter

I want to make the style parse from the information given in the query. I have the bgcolor & text color that I want displayed listed in my table, and I have tested the MySQL query and it runs fine, but I've tried to get it to run here but it doe...
more »

2017-01-29 06:01 (0) Answers

How to Connect 2 Lists

I'm not sure wheter it's a simple thing or not. I've an XML File structered like this: <DEFTABLE> <CUBE NAME="FristCube" /> <OUT NAME="Line1" /> <OUT NAME="Line2" /> <IN NAME="LineX" /> <IN...
more »

2017-01-24 11:01 (3) Answers

Can i also put a scope through the filter?

i made a taskfilter and i need to edit the tekst of the titel if another button is selected, i tried a scope but that doen't work do you guys know of mayby somethiing else if scope does not works? the rule that i am talking about it $scope,infotitel...
more »

2017-01-23 11:01 (1) Answers

Can I use Scrapy for scraping and parsing only?

I'm new to Scrapy and I've searched around, but can't seem to find any answers specifically for what I want to do. I'd like to scrape content from a pre-defined list of webpages (my growing list of bookmarks) and submit relevant content to a MySQL da...
more »

2017-01-15 23:01 (0) Answers

Json Parsing Swift 3 Alamofire

I am new at swift 3.00 and I got problems with getting Json return then sending request. I am trying to send post request to server with parameters username and password and get respond with Json with information, but I haven't been able to get the d...
more »

2017-01-10 19:01 (1) Answers

How to add a method to parse a JSON file in Java

I am trying to parse the content of JSON file text.json by using Jackson library. What I want is to make a java method in the following code to get all keys and values of it, but so far in my code I get only the first key and the first value of the ...
more »

2017-01-09 13:01 (2) Answers

Linux sscanf function doesn't fill variable

I am currently writing an FTP server and I need to parse the ip and port of a remote server from an input string buffer in the following format: xxx,xxx,xxx,xxx,yyy,zzz where: xxx stands for an ip address octet in decimal yyy is round((remote po...
more »

2017-01-09 03:01 (3) Answers

Android Studio edit text numeric type

I need to store an integer value into database, so I need to convert the value of the textfields into integers and for some reason I'm getting this exception: java.lang.NumberFormatException: Invalid int: "android.widget.EditText{431fbec VFED..CL. ....
more »

2017-01-08 19:01 (2) Answers

How does ruby parse 2 /3/ 4 as 2 ÷ 3 ÷ 4?

A lot of ruby's syntax and parsing is relatively logical, but I am confused as to how ruby knows, from context, that 2 /3/ 4 is 2 ÷ 3 ÷ 4 instead of parsing /3/ as a regex? It's a correct parsing, but /3/ is also a valid regex, and how would it kno...
more »

2017-01-04 23:01 (1) Answers

BeautifulSoup `find_all` generator

Is there any way to turn find_all into a more memory efficient generator? For example: Given: soup = BeautifulSoup(content, "html.parser") return soup.find_all('item') I would like to instead use: soup = BeautifulSoup(content, "html.parser")...
more »

2016-12-29 03:12 (3) Answers

parse_url() PHP works strange

I'm trying to get host from url using parse_url. But in some queries i get empty results. Here is my function: function clean_url($urls){ $good_url=array(); for ($i=0;$i<count($urls);$i++){ $url=parse_url($urls[$i]); //$te...
more »

2016-12-23 21:12 (5) Answers