php,wordpress,parsingRelated issues-Collection of common programming errors
Danvin Lee Qicheng
php html dynamic graph
Currently I have a page where once you click that page it will fetch yahoo weather reading and supposedly it will be added to the graph (real time).Currently i have input a timer to consistly read from the page and now I can’t put it into the y value of the graph so may I request some time to take a look at my codes?P.S. line 309 is the input of y value, and line 280 is the timer that calls the file.index.php<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js”><
ThihaKyaw
php android mysql
What is this error, and why does it happen? Please explain and solve. This is sample from “androidhive”. I need help for my thesis because of my thesis android app is to store data at web server.12-10 10:08:09.556: W/System.err(401): org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused 12-10 10:08:09.556: W/System.err(401): org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused 12-10 10:08:09.686: W/System.err(401): at org.apache.h
Muhammed Aslam C
php google-app-engine curl google-api-php-client
This works in WAMP server, i get output. but not in GAE. because GAE doesn’t support cURL. and i couldn’t find any solution to use GAPI php in GAE. Is there any way to use php GAPI in GAE? Here is the example filter code the provide<?php define(‘ga_email’,’[email protected]’); define(‘ga_password’,’your password’); define(‘ga_profile_id’,’your profile id’);require ‘gapi.class.php’;$ga = new gapi(ga_email,ga_password);$filter = ‘country == United States && browser == Firefox || bro
Xalu
java php android mysql json
I am currently working on an app and I am trying to implement a user system with login/registatration. I’ve been going over several tutorials to get an idea what to do. Now I am beginng to wonder if something is wrong with my eclipse enviroment because after trying 2 or 3 tutorials (and downloading the source code to test), I keep getting the same errors.Rather than posting all the code (there is a lot)…Here is a link to the projects tutorial http://www.learn2crack.com/2013/08/develop-android-
SPeed_FANat1c
php random poker
I have made a research on poker equities. What I did is use pokerstove program with some selected. And with that program calculated the equities using enumerate all method. So pokerstove results:I also made a table where I store the random results:CREATE TABLE poker_results ( id int NOT NULL AUTO_INCREMENT, matches_id int NOT NULL, — just for filtering in case I will want another starting hands. result varchar(255) NOT NULL, winner_hands varchar(255) NOT NULL, PRIMARY KEY (id) ) The result col
Darius
php xml
I call commission junction API and receive this as a response.$xml_response = simplexml_load_file($xml_response); exit($xml_response);If I do $xml = new SimpleXMLElement($xml_response);I get an application error. (Not sure how to find what error this is, where could I set error codes to show for this part?)Warning: simplexml_load_file(): I/O warning : failed to load external entity ” 106032782478435B & H Photo VideoComputers & Solutions > Laptops > MacBookshttp://www.jdoqocy.com/cl
Martijn Riemers
php git maven vert.x
I’m trying to install the PHP language in my vert.x mods directory. I have tried both branches and both process a different answer.All these results and errors were either produced when trying to build from the git repo or using running vertx run app.php in the command line using this simple PHP script:<?phpuse Vertx\Pump;$server = Vertx::createNetServer();$server->connectHandler(function($socket) {$pump = new Pump($socket, $socket);$pump->start(); })->listen(1234, ‘localhost’);When
jbihan
java php android mysql json
Immersed in the development of my program, I encounter an error that seems to me not really speaking.So here’s my logcat in the order and the java code:When I click on the item in my listview it should return me the contact information for the update.public class MajContactActivity extends Activity {EditText txtNom; EditText txtPrenom; EditText txtNummobile; EditText txtNumfixe; EditText txtEmail; EditText txtAdresse; EditText txtProfession;Button btnSav; Button btnSup;String idCONTACT;// Progr
mrkirby153
java php sockets encryption
Recently I was experimenting with communication between a webserver and java and ended up experimenting with sockets. Putting this into production, it is a must to encrypt the data being sent to and from the java socket server and to the php webserver. As an encryption method, I am using AES. I can get the PHP web server to successfully encrypt the data and send it via a socket but I cannot get the java application to successfully decrypt the message. I keep gettingException in thread “main” jav
Inator
php javascript apache nosql couchdb
I’ve recently successfully installed CouchDB version 1.2.1 and as a test I can access it using the following Apache rewrite in CentOS 6:RewriteRule couchdb/(.*)$ http://127.0.0.1:5984/$1 [QSA,P]I have a PHP authentication class that I use across a home grown API to support my mobile apps. My API accepts and authenticates each request using an HMAC signature that is included in the URL like so:https://api.domain.com/endpoint/?timestamp=[timestamp]&signature=[signature]&id=[id]…etcEach
dunc
php mysql wordpress
A short while ago, I asked a fairly lengthy question regarding a content filter for my website. The post can be found here, please feel free to have a read at your own leisure.I’ve accepted @DampeS8N ‘s answer because he answered well and sent me in the right direction.Unfortunately, the outcome of said question was that the content filter I’m using is simply too inefficient to run in the context of my application.Here’s the information:I have ~2000+ glossary terms* and ~1200+ species profiles**
WallabyKid
jquery html wordpress jquery-ui
Hoping someone might provide some insight into the specific changes in jQuery 1.10x affecting select element behavior and scripting? While updating a WordPress plugin to utilize WP’s native jQuery UI, tabs, widgets etc. (as opposed to enqueing via Google’s AJAX Libraries API) I’m experiencing difficulty with a variety of unexpected select element behaviors (and failings) when running jQuery 1.10 as compared to the behavior running jQuery 1.9x (or less).I’d have put up a fiddle for this, but a
user007
php wordpress
Please tell how to retrieve available attributes of shortcode.I have the available shortcode but it won’t show attribute nameglobal $shortcode_tags; print_r($shortcode_tags);Someone told me to use PHP reflection API..A working plugin code which get shortcode attribute:class ShortcodeReference {/*** Shortcode* @var string*/private $_shortcode;/*** @var ReflectionFunction*/private $_function_reflection;/*** @var string*/private $_filepath;/*** Flat DocComments.* @var string*/private $_description;
Jeffrey Jenkinson
php wordpress woocommerce
I have a wordpress site running the wordpress plugin WooCommerce. Because of the sheer volume of products this site is handling we have been managing the product list outside of the site and uploading it. A lot of the products don’t have images yet but they have a hard coded image url so we can add them when we get them. To get around broken images I just do a little search for the image size and if I can’t find it and replace it with a placeholder.$src = wp_get_attachment_image_src( get_post_th
Mtblewis
php asp.net wordpress authentication single-sign-on
I am attempting to create a single sign on experience between an asp.net site and a wordpress site using a simple form POST method. I have built a simple php page that uses the native wordpress functions wp_insert_user and wp_signon to create user account in the mysql db and sign them in. In my asp.net ‘create new user’ page code behind, I’m using the post method of an HttpWebRequest to send the required information to the php page. It almost works! The new wordpress user is created in the mysql
rhand
ruby wordpress rvm macports
I have Ruby version manager RVM on OSC Mavericks with MacPorts. I was trying to update WPScan that runs on ruby. I was trying to do an update:ruby wpscan.rb –update when I run into this error: Could not find gem ‘typhoeus (>= 0.6.3) ruby’ in the gems available on this machine. I had this error before. So a ran bundle install. Then I ran into other errors:sudo bundle install Fetching gem metadata from https://rubygems.org/……… Fetching gem metadata from https://rubygems.org/.. Installing ff
Leifingson
mysql linux wordpress debian
I have a wordpress site on a VPS running Debian 7 that was working fine when I last visited it and I’ve made no changes since, but now when I visit the site it says: Error establishing a database connection. It also gives the same error in the admin portal.I had not changed the password, domain, IP, or anything and checked the wp-config.php and everything in it is accurate.I logged into my VPS as root and tried to log into mysql to check to see if wordpress was still a user, but it couldn’t loca
evan3168
mysql database wordpress innodb mysqld
So seemingly out of nowhere tonight, my wordpress site went down and I’ve traced it to problems with mysql. Mysql won’t start on the server because it keeps failing.Here is what I’m getting from the logs:140226 08:54:11 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 140226 08:58:20 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 140226 8:58:20 [Note] Plugin ‘FEDERATED’ is disabled. 140226 8:58:20 InnoDB: The InnoDB memory heap is disabled 140226 8:58:2
user3439338
php wordpress apache .htaccess mod-rewrite
I want to redirect domainA.com/folder/ which originates within an older wordpress installtion to domainB.com/folder1/folder2/ which is the link to the page within my new wordpress installation wihtout the url changing. I have managed to achieve this with the .htaccess file inside domainA.com/folder/ which reads:RewriteEngine On RewriteCond %{REQUEST_URI} ^/folder RewriteRule ^(.*)$ http://www.domainB.com/folder1/folder2/ [P] The Rewriterule [P] (proxy) flag does what I want and redirects the pag
Zach Nicodemous
php mysql wordpress loops wordpress-loop
I am trying to find a way to hook several satellite WordPress installations into a centralized installation of WordPress in order to pull post data and custom field meta from two custom post types from the central installation and display this data on the satellite sites.Is there any way to create a database connection to another WordPress database either on the same server, or on a DIFFERENT server, and then use STANDARD WORDPRESS LOOP METHODOLOGY to retrieve and display data from that second W
Satya
android parsing listview soap
I am creating two java files one is Main.java and Category.javaI am adding Library file ksoap2-android-assembly-2.6.2-jar-with-dependencies.jarBut here output is not displaying.I am doing soap XMl parsing.Here Text view but I want to a List. Please Help meMain.javapublic class Main extends Activity {private static String SOAP_ACTION = “http://tempuri.org/HelloWorld”;private static String NAMESPACE = “http://tempuri.org/”; private static String METHOD_NAME = “HelloWorld”;private static String URL
RectangleEquals
parsing scripting programming-languages antlr grammar
NOTE: This is a continuation of the topic posted HERE.I’m working on a parser for the Jass scripting language (here’s an excellent API reference for it) so that I may use it as in interpreter for another language. Using ANTLR4 + ANTLRWorks 2, I have run this complex script to test the lexer/parser’s strength, and have passed nearly all tests. The part where it fails is on in an ‘elseif’ statement, containing an expression with:an outer parenthesis… an array element… a boolean/binary operatio
Digvesh Patel
android xml parsing xml-parsing
I need some help with this.I have a xml file hosted at http://t3.netne.net/test.xml the xml file looks like this :<?xml version=”1.0″ encoding=”UTF-8″?> <game><stat><varx>5</varx><vary>10</vary></stat> </game>now I need that value of varx and vary in my android app.This is what I did so far:public class MultiPlayerGameMenuActivity extends Activity {String url = “http://t3.netne.net/test.xml”;ProgressDialog pDialog;String msgx = “x”;String msg
Tim Pietzcker
python regex parsing pcre
I have to parse some strings based on PCRE in Python and I’ve no idea how to do that.Strings I want to parse looks like : match mysql m/^.\0\0\0\n(4\.[-.\w]+)\0…\0/s p/MySQL/ i/$1/In this example, I have to get this different items : “m/^.\0\0\0\n(4\.[-.\w]+)\0…\0/s” ; “p/MySQL/” ; “i/$1/”The only thing I’ve found relating to PCRE manipulation in Python is this module : http://pydoc.org/2.2.3/pcre.html (but it’s written it’s a .so ..)Do you know if some python module exist to parse this kind
ferguior
android mysql json parsing
I’m was trying a tutorial to get data to android from a MySQL database that you can find here: http://www.helloandroid.com/tutorials/connecting-mysql-databaseSo this is the table from where I’m trying to fetch data:CREATE TABLE IF NOT EXISTS `pfc_db`.`capas` (`id` VARCHAR(10) NOT NULL ,`nombre` VARCHAR(50) NOT NULL ,PRIMARY KEY (`id`) ) ENGINE = InnoDB;This is the fragment of the php script where the query is performed:$query = “select * from CAPAS”;$sql=mysql_query($query); if (!$sql) {die(“Th
user2218667
android json parsing httprequest
I try to parse data using json and AsyncTask. But am getting the error on these line:JSONObject json = jsonParser.makeHttpRequest(url_product_detials, “GET”, params);this is my code:public class EditWatchListProducts extends Activity {EditText txtName; EditText txtPrice; Button btnSave; Button btnDelete;String pid;private ProgressDialog pDialog;JSONParser jsonParser = new JSONParser();private static final String url_product_detials = “http://192.168.2.22/android_connect/get_product_details.php”;
Samuel Liew
android json parsing android-asynctask
I am new to android and I want to parse url using json. I get exceptions when I run the code and my application says unfortunately myapp has stopped running. I have also posted my logcat. I want to read Course code:101, Course title : “blahblah” Semesters offered : Semester 1, Semester 2, Semester 3import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java
Priyanka Minhas
android json parsing networking connection
I have a small app that can connect to the internet, but I can’t figure out how to handle timeout’s and no connection errors. I have a simple JSONParser that takes request and I’ve tried catching the HttpHostConnectionException but to no avail. How can I add a timeout limit and a toast to let the user know the connection is no good, and how can I avoid my app shutting down if it can’t connect (which android currently does)?my JSONParser public class JSONParser {static InputStream is = null;stati
eento
android json http parsing request
i’m reposting here in order to get some help.I made a JSON Parser wich returns a JSONArray (in order to get info from my WebService).My last code threw a NetworkException error (on version 2.3.3 it was long but good working) when i tested it on IceScreamSandwich..I changed my code to stop it and try getting better perfs.. but it still not working on my ICS phone : now no more errors but a ioexcepetion : “failed to read from JSON URL”..I show you my Activity:public class TabNewsJSONParsingActivit
user3032470
java parsing
I cannot find the Stanford parsing models for German and French: there is no “germanPCFG.ser.gz” or “frenchFactored.ser.gz” in the jar (stanford-corenlp-3.2.0-models.jar) – only english. Have searched through posttagger jar too.Same issue encountered at : How to use Stanford CoreNLP with a Non-English parse model?
Web site is in building
I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money