on-internet

How To Embed YouTube Video on Android using Phonegap

I've been trying to embed YouTube videos inside my phonegap Android app using the new YouTube iframe API. The embed itself working and a YouTube window pops in with the preview picture and the play button in the center. The problem is when I click the button to start streaming the video the embed doesn't play the video - just loads the preview picture in and does nothing. The code used is below if it helps. & lt;iframe title="YouTube video player" class="YouTube-player" type="text/HTML" width="320" height="194" src="http://www.youtube.com/embed/xxxxxxxx" frameborder="0"></iframe> I read from a

Join the discussion →

htaccess redirect specific URL to different domain

I have 2 domain pointing to same directory, Now I want to redirect some URLs to one specific domain and rest should be on main domain. I have one domain www.xyz.com this is main domain site will be open with this domain, from this domain I want to redirect specific URLs to different domain so if someone open www.xyz.com/a/theatre then it should redirect to www.abc.com/a/theatre. And now from same this new domain if someone click on URL which don't have "/a/theatre" in URL then it should redirect back to main domain. So if someone open www.abc.com/a/classes then it should redirect to www.xyz.co

Join the discussion →

Finding controls within Devexpress ASPxGridView

I have a code that contains an ASPxGridView and a ASPxCheckBox and Label within in like: <dx:ASPxGridView ID="gvTableSearchHomes" runat="server" DataSourceID="XmlHomes" Width="341px" CssClass="tableViewSearchGrid" ClientInstanceName="gvTableSearchHomes" AutoGenerateColumns="False" EnableRowsCache="false" KeyFieldName="ID"> <%--<Columns>--%> <%-- DXCOMMENT: Within ASPxGridView, add a column whose values will participate in filtering --%> <%--<dx:GridViewDataTextColumn FieldName="Address"> <PropertiesTextEdit NullText="Search your home"></PropertiesTextEdit> <Settings AllowAutoFilterTextInputTim

Join the discussion →

Visual Studio Build Very Slow

This applies to both 2008 and 2010 versions (and probably earlier ones too). Also to both C++ and C# projects. An initial build (after reboot) runs at normal speed and with reasonably good CPU utilisation. After "some time" (ie using the computer for "stuff"), a subsequent build might run very, very slowly and with very low CPU utilisation. The only fix I have found seems to be a reboot, then the cycle starts all over again. This happens on both WPF and non-WPF projects, though it's 10 times worse with WPF. This has happened to me on different machines, even working for different organisations

Join the discussion →

Facebook login for wordpress without a plugin

I'm providing a custom login page for the website visitors and would like to include the Login with Facebook button such that the application checks if the user email is registered, and if so it will log the user in. using wp_signon I can log a user in by providing the email and password, but in that case I don't have a password for the user, so is there a way I can provide a Facebook login button without using plugins?

Join the discussion →

Eclipse: An internal error occurred during: "Updating Maven Project". org/apache/maven/plugin/war/util/MappingUtils

Adding a dependency on pom.xml and updating via Maven -> Update Project I get this error (see .log below) !ENTRY org.eclipse.core.jobs 4 2 2012-08-22 10:04:31.078 !MESSAGE An internal error occurred during: "Updating Maven Project". !STACK 0 java.lang.NoClassDefFoundError: org/apache/maven/plugin/war/util/MappingUtils at org.maven.ide.eclipse.wtp.namemapping.PatternBasedFileNameMapping.mapFileName(PatternBasedFileNameMapping.java:36) at org.maven.ide.eclipse.wtp.WebProjectConfiguratorDelegate.configureClasspath(WebProjectConfiguratorDelegate.java:367) at org.maven.ide.eclipse.wtp.WTPProjectCon

Join the discussion →

Convert HTML5 to Flash

I am using impress.js extensively to create a lot of HTML5 presentations. These presentations need to be displayed on touch-screen kiosks. Unfortunately, the vendor handling the kiosks has said that only Flash content can be displayed on these kiosks. Is there a work-around for this (changing vendor is ruled out, as they control most kiosks here)? How do I convert HTML5 to Flash, without losing the effects my presentations have?

Join the discussion →

How to validate inputs dynamically created using ng-repeat, ng-show (angular)

I have a table that is created using ng-repeat. I want to add validation to each element in the table. The problem is that each input cell has the same name as the cell above and below it. I attempted to use the {{$index}} value to name the inputs, but despite the string literals in HTML appearing correct, it is now working. Here is my code as of now: <tr ng-repeat="r in model.BSM "> <td> <input ng-model="r.QTY" class="span1" name="QTY{{$index}}" ng-pattern="/^[\d]*\.?[\d]*$/" required/> <span class="alert-error" ng-show="form.QTY{{$index}}.$error.pattern"><strong>Requires a number.</strong></

Join the discussion →

Classifying a Distribution of Points for Object Identification

I have some points that I need to classify. Given the collection of these points, I need to say which other (known) distribution they match best. For example, given the points in the top left distribution, my algorithm would have to say whether they are a better match to the 2nd, 3rd, or 4th distribution. (Here the bottom-left would be correct due to the similar orientations) I have some background in Machine Learning, but I am no expert. I was thinking of using Gaussian Mixture Models, or perhaps Hidden Markov Models (as I have previously classified signatures with these- similar problem). I

Join the discussion →

Node.js Logging

Is there any library which will help me to handle logging in my Node.Js application? All I want to do is, I want to write all logs into a File and also I need an options like rolling out the file after certain size or date. I have incorporated log4js im trying to keep all the configuration details in one file and use only the methods in other application files for ease of maintenance. But it doesnt work as expected. Here is what I'm trying to do var log4js = require('log4js'); log4js.clearAppenders() log4js.loadAppender('file'); log4js.addAppender(log4js.appenders.file('test.log'), 'test'); va

Join the discussion →

format string as table in javascript

Is it possible to achieve this in javascript? Here is the format: 1 ITEM1 9.00 0% 9.00 1 ITEM-GET01 8.00 12% 5.00 I would like to create a receipt like layout. I'm using backbone.js so there will be models and collection involve. Also if it were on a table can I use jquery to get the data from the table tr then have the result just like what is posted above? I was able to read about sprintf but I don't think it it is the one I need. any ideas? UPDATE I'm trying out sprintf here is what i've come so far var result = sprintf("%d %-s %.2f %d%% %.2f", model.get("Qty"), model.get("Itemname"), model

Join the discussion →

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

We have configure a Big F5 load balancer virtual server for a particular IP address which redirects incoming https requests to several Windows servers where there is functionality to generate responses. I am using SoapUI to test access to these windows servers via the IP address of virtual server in the Big F5. Using Server and Client certificates generated by the organization where the we have also this set up and sending requests via SoapUI I get the predicted responses back. The business requirements call for Commercially signed certificates by Thawte. We created a Certifcate Servcice Reque

Join the discussion →

Sharing dynamic client and server-side content between JSP's

I've done quite a lot of searching about capabilities of JSPs and have been unable to find a concise answer to my issue. I am currently writing a web application which uses a single jsp (with an imported CSS) to build a site with multiple functionalities. Specifically, the application has the ability to read and write data from/to an external server, as well as update user content and info. For the sake of aesthetics and clarity, it makes the most sense to designate different areas of the site to each of these tasks, one at a time. Rather than attempt to use page divisions and conditional stat

Join the discussion →

Selecting the most recent date from a table in PeopleSoft using Peoplesoft Query (Max() doesn't work)

I am building a query in people soft using Peoplesoft query manager. I am trying to pull the most recent date from the date column. I have tried using max() as an expression, however, the query doesn't pull any records. I have checked with another co-worker and they have never been able to pull records using max(). Is there any other way or workaround to pull the most recent record?

Join the discussion →

Oracle Ref cursor along with out parameters

I have a requirement to have a IN OUT parameter along with a reference cursor as a return from a stored procedure. Currently I am doing following. create table dept ( dept_id number, name varchar2(40), location varchar2(200) ); CREATE OR REPLACE PACKAGE HR.SP_PACKAGE AS TYPE dept_type IS REF CURSOR RETURN HR.dept%ROWTYPE; END SP_PACKAGE; CREATE OR REPLACE PROCEDURE HR.MIXED_IN_INOUT_REF_PARAM ( P_ID IN NUMBER , P_NAME_TO_LOCATION IN OUT VARCHAR2 , P_RCURSOR OUT SP_PACKAGE.dept_type ) AS BEGIN SELECT name INTO P_NAME_TO_LOCATION FROM HR.dept WHERE dept_id = p_id AND name = P_NAME_TO_LOCATION; O

Join the discussion →

Google adsense account not approved

I have created a Web Portal bugnull.com and applied for the Adsense account, but my Adsense account is not approved as I received the email that my site is not meeting the Google guidelines.Review my site and tell me what is wrong in my site and what kind of improvement I should made so that I can have approved Adsense account.

Join the discussion →

Find all references to an object in python

What is a good way to find all of the references to an object in python? The reason I ask is that it looks like we have a "memory leak". We are uploading image files to the server from a web browser. Each time we do this, the memory usage on the server goes up proportionately to the size of the file that was just uploaded. This memory is never getting released by the python garbage collection, so I'm thinking that there are probably stray references pointing to the image data that are not getting deleted or going out of scope, even at the end of each request. I figure it would be nice to be ab

Join the discussion →

WordPress WP_ajax not working

Have been looked at the WP ajax documentation for hours now and still can't figure this out. I am working on a plugin and this is for updating it's options without having to refresh the page. I've managed to accomplish it through wp-load, but know thats bad practice and would like to do it correctly. I will be moving the javascript to a separate .js file, once I have everything up and working. All of the code is in on single page. Trying to update some options via ajax and it just is not working. The response is saying its successful, but the current_form option is not being updated. Any help

Join the discussion →

How to list all distribution groups with name, grouptype, managedby, and AD description

I am trying to get a list of all distribution groups with name, grouptype, managedby, and AD description. get-distributiongroup | select-object name, GroupType, managedby, @{Name="Description";expression={get-qadgroup $_.name | select-object description}} This works for the most part, but the description column returns the object, not just the description. How do I get this to only return the description using powershell with QAD and exchange snapins (if needed)? Thanks!

Join the discussion →

"Column [...] in where clause is ambiguous" error 1052 from CodeIgniter query containing JOINs clauses

here is the exact error: Error Number: 1052 Column 'id' in where clause is ambiguous SELECT * FROM (`membership_personal`) JOIN `membership_account` ON `membership_account`.`memberid` = `membership_personal`.`id` JOIN `swapaccount` ON `swapaccount`.`memberid` = `membership_account`.`memberid` WHERE `id` = '5' Filename: /home/phpgod/public_html/johnnyarias/ci_website/models/generalfeaturesmodel.php Line Number: 57 I know that it has to do with the id field being present in multiple tables of the join. So my question is how do make sure that the id field in the where clause is applied only to th

Join the discussion →

How to add line break into XML file with Java?

How to add line break after the "do not edit this file" comment? I've tried to add textnode with line break but it doesn't work. Code: import java.io.File; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import org.w3c.dom.Document; import org.w3c.dom.Element; public class Main { public static void main(String[] args) { try { final Document doc = DocumentBuilderFactory.newInstance

Join the discussion →

Read the HTTP POST request of HttpWebRequest

I need to create Http POST requests and maybe a few GET requests as strings for some tests I am writing. Currently, my tests build them using a StringBuilder and hardcoded POST requests pulled out from fiddler kinda like this: var builder = new StringBuilder(); builder.Append("POST https://some.web.pg HTTP/1.1\r\n"); builder.Append("Content-Type: application/x-www-form-urlencoded\r\n"); builder.Append("Referer: https://some.referer.com\r\n"); builder.Append("Accept-Language: en-us\r\n"); builder.Append("Accept-Encoding: gzip, deflate\r\n"); builder.Append("User-Agent: Mozilla/5.0 (compatible;

Join the discussion →

Regular expression for C if statement

What is the regular expression for a C if statement? I am trying this Perl code, but it does not match: if ( $line !~ /^if \(.\) \{/) { I expect it to match this C code: if ( a ==b ) {

Join the discussion →

Teradata identity column and "Duplicate unique prime key error in dbname.tablename"

I created a table using the below definition for a Teradata identity column: ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE 0 MAXVALUE 100000000 NO CYCLE), ---- UNIQUE PRIMARY INDEX ( ID ) For several months, the ID column has been working properly, automatically generating a unique value for the column. Over the past month, however, ELMAH has been intermittently reporting the following exception from our .NET 4.0 ASP.NET app: Teradata.Client.Provider.TdException: [Teradata Database] [2801] Duplicate unique prime key error in DATABASENAME.TABLENAME. I was abl

Join the discussion →

"Notice: Undefined property: CI_DB_mysqli_result::$result_array" when accessing row data of a CodeIgniter result set object [duplicate]

I am querying my database in my model then returning the CodeIgniter result set object to the controller layer. The problem is that when I call ->result_array on my result set object, I am getting a Notice and not able to access the row data. Notice: Undefined property: CI_DB_mysqli_result::$result_array Model: function editCategory($site_referers_id) { $this->db->select('tbl_ticket_categories.category_name,tbl_ticket_categories.description,tbl_users.username,tbl_ticket_repliers.user_id'); $this->db->where('site_referers_id', $site_referers_id); $this->db->join('tbl_ticket_repliers', 'tbl_tick

Join the discussion →

Cause of Range Check Error (Delphi)

Here's a condensed version of some code that causes both a Range check error and an overflow error, should I turn on those compiler check directives. I understand why this would cause an overflow, on the multiplication of C1, it seems likely it might exceed the data-type's max valude. But why would this also trigger a Range-check error? Delphi's documentation and other posts on stack overflow make it sound like range-check errors are usually for array accesses that are out of bounds. But I'm not accessing an array on the line it's saying is causing the range-check error. Perhaps its on the ass

Join the discussion →
Older stories