Go Premium for a chance to win a PS4. Enter to Win

x

Programming Languages-Other

19K

Solutions

19K

Contributors

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Thousands of different programming languages have been created, mainly in the computer field, and many more still are being created every year. The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, the C programming language is specified by an ISO Standard), while other languages (such as Perl) have a dominant implementation that is treated as a reference. Some languages have both, with the basic language defined by a standard and extensions taken from the dominant implementation being common.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,
To the prompt, after having pressed Password button below. I expect the password strength to be shown, exactly after having input two password (but before Submit button is pressed). What to adjust?
http://my-friend.co/UserMaintenance2/Default.aspx?userid=mc23&readonly=n
0
Keep up with what's happening at Experts Exchange!
LVL 11
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

hi,

while doing maven install i got below error
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

while doing maven clean it is success though
i follwed below steps to resolve
http://javarevisited.blogspot.com/2016/06/maven-eclipse-error-no-compiler-is-no-JRE-JDK-installed.html

how
 maven clean
maven install
maven update
are different?
why maven clean is success and no issues in doing maven update as well where as maven install complained above jre?
0
I was able to retrieve the attached file thru a soap call to a web service, now i need to convert this xml file to a .csv file, is there an easy method of walking thru the xml file to extrtact the fields i need?
Tempxml3.xml
0
hi,

while executing below xquery

for $x in doc("Books.xml")/books/book
return if{$x/@category="XML")then<XMLBOOK>{data($x/title)}</XMLBOOK>
else <NONXML>{data($x/title)}</NONXML>


on below xml


<?xml version="1.0" encoding="UTF-8"?>
<books>
	<book category="JAVA">
		<title>Master Core Java</title>
		<author>JG</author>
		<year>2015</year>
		<price>50</price>
	</book>

	<book category="DOTNET">
		<title>Get Certified in .Net</title>
		<author>BG</author>
		<year>2016</year>
		<price>60</price>
	</book>

	<book category="XML">
		<title lang="en">XML and XML Schema Definition in easy steps</title>
		<author>BT</author>
		<year>2014</year>
		<price>20</price>
	</book>

	<book category="XML">
		<title lang="en">XSLT XPATH and XQuery Fundamentals</title>
		<author>BT</author>
		<year>2016</year>
		<price>30</price>
	</book>
</books>

Open in new window

getting below error

Syntax error on line 2 at column 9 of file:/C:/Users/sg/gpJava/ud/xsl_xpath_jquery/XQuery/Books2.xqy near {....xml")/books/book return if...}
  XPST0003: Unrecognized node constructor if{}
Static error(s) in query

how to fix it
please advise
0
hi,

eclipse java perspective kind of messed up as i tried to expand console which went to top right corner from bottom. I further tried to move which moved outline some where else etc. How bringing back to default view of java perspective so that i can see everything as origninal? if i restart the eclipse this problem resolved or there is any trick or command to fix this java perspective(even any other perspective for that matter like J2ee etc)
i tried restarting eclipse did not help though
please advise
0
hi,

i have 3 ant projects downloaded from tfs say project1, project2, project3
i need to import them to eclipse
when i unzipped there is no .project  no .eclipse etc files. so when i import as existing java project not recognizing them as existing project.

when i import as build.xml after import i am not seeing build.xml anymore to build the project

https://stackoverflow.com/questions/3880350/importing-ant-build-xml-in-eclipse

how to import regular ant project into eclipse. please advise
0
hi,

under eclipse -->general -->network connections
i see options like manual, native, direct

when i select manual and select http(giving usernae and password) https((giving usernae and password) socks(not giving  usernae and password) in proxy entries at the top
and
at bottom proxy bypass first three like local host then 12x.x.x.xx
and
tfs.crm.com
then it is connecting.

To my friend when selecting native which choosed al other options apart from above six then it connects for him.

what is difference between native and manual
when i try to do remote debugging on one unix server they are suggesting to change to mative from manual but my fear is i cannot connect to tfs any more. if i change to native and come back to manual again does it save the configurations as earier?


when to use direct?
https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-net-preferences.htm
https://stackoverflow.com/questions/27405988/remote-debugging-failed-to-connect-to-remote-vm-connection-timed-out
please advise
0
Hi,
I want to adjust the following codes
            $(".btnDelete").click(function () { 
                var houseIdToDelete = $(this).data("house-id");
                $.confirm({
                    title: 'Confirm!',
                    content: 'Are you sure you want to delete current record?',
                    buttons: {
                        Yes: {
                            text: 'Yes',
                            btnClass: 'btn-red',
                            keys: ['enter'],
                            action: function () {
                                DeleteHouseRecord(houseIdToDelete);
                                //-- do ajax call here to delete the record
                            }
                        },
                        No: {
                            text: 'No',
                            btnClass: 'btn-green',
                            keys: ['esc'],
                            action: function () {
                                //$.alert('You clicked No!');
                            }
                        },

                    }
                });
                return false;
            });

Open in new window

to instead show with the details to input the password 2 times (one time to re-confirm it). How?
0
hi,
I was writing below example
https://www.youtube.com/watch?v=ShO_Z64sGwI&list=PLZM-6wiKGRfGmXzuR8uX3UsE8g91K6Vp1&index=5

package com.gp.mockito;

import org.junit.Before;
import org.junit.Test;
import junit.framework.Assert;
import static org.mockito.Mockito.*;

public class CalculatorServiceTest {

	CalculatorService calService;
	
	@Before
	public void setup(){
		ICalculator cal_mock = mock(ICalculator.class);
		when(cal_mock.add(2, 4)).thenReturn(6);
		calService=new CalculatorService();
		//calService.setCal(cal_mock);
		
		
	}
	@Test
	public void testAddNumbers(){
		Assert.assertEquals(6, calService.addTwoNumbers(2,4));
	}
}

Open in new window

package com.gp.mockito;

public class CalculatorService {
ICalculator cal;
public ICalculator getCal() {
	return cal;
}
public void setCal(ICalculator cal) {
	this.cal = cal;
}
public int addTwoNumbers(int x, int y){
	return cal.add(x, y);
}
}

Open in new window

package com.gp.mockito;

public interface ICalculator {
public int add(int x,int y);
}

Open in new window

why we need setter for calservice implementation class.

why are they setting interface mock object to the calservice object

observerd one example here
https://www.youtube.com/watch?v=DyuWgBHfxNQ

i do not see any setter here though?
1
I want to convert java code into php?
import com.sadad.payment.InitiatePaymentDetailsResponse;
import com.sadad.payment.ABPaymentManagerImplService;
import com.sadad.payment.InitiatePaymentDetailsRequest;
import com.sadad.payment.exception.ABPaymentManagerException; 
import com.sadad.payment.exception.ABPaymentManagerFault;

InitiatePaymentDetailsResponse response = intiatePaymentDetails(); 
initiatepaymentdetailsresponse. InitiatePaymentDetailsResponse intiatePaymentDetails() {

	URL wsdlURL = ABPaymentManagerImplService.WSDL_LOCATION;
	ABPaymentManagerImplService implService  = new ABPaymentManagerImplService(wsdlURL,   bank_SERVICE_NAME);
	ABPaymentManager port = implService .getABPaymentManager();
	InitiatePaymentDetailsRequest request = new InitiatePaymentDetailsRequest();

	// Setting the parameters to call initiate payment details
	request.setOLPIdAlias(olpIdAlias);
	request.setMerchantId(1025);
	request.setMerchantRefNum(cart.getReferenceId());
	request.setPaymentAmount(cart.getAmount());
	request.setPaymentCurrency("SAR ");//Use a custom method to get PaymentCurrency
	request.setNumOfSubMerchants(1);
	request.setLocalCurrency("SAR");
	request.setDynamicMerchantLandingURL(url1);
	request.setDynamicMerchantFailureURL(url2);
	
	InitiatePaymentDetailsResponse response = null;

	// calling the initiate payment details.
	try{
	response = port.initiatePaymentDetails(request);
	cart.setOlp_referenceId(response.getTransactionId());
	} catch (ABPaymentManagerException 

Open in new window

0
Concerto's Cloud Advisory Services
LVL 5
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

hi

i have microsot access 2016 and skype 7.40, and i use this code to dial with skype:
Dim skpSkype As SKYPE4COMLib.Skype
Dim calCall As SKYPE4COMLib.Call

Set skpSkype = New SKYPE4COMLib.Skype
'Set calCall = skpSkype.PlaceCall("+17181234567")
Set calCall = skpSkype.PlaceCall(Me.Phone_number)

Open in new window


is there some way that i can with code program that after a few seconds it's will dial an extention number for example 1#.

thanks
0
I  have scanned pdf files . i need to develop an user interface to view these files by using flip book interface via web interface.

Can an expert suggest required tools (free toolkit (if any))  to develop such an interface in .net envirnoment.
0
How to download the audio file from google meaning using python platform?  

I tried using ffmeg package but it's not working. Any small sample script could help me.


Thanks in Advance!!!
0
hi,
how to see options in advanced rest client options missing in latest version.
latest AvancedRestClient Launched From StartMenu looks quite different as attached.
i am not able to see actual response as well but just able to see response header alone

please advise
AdvanceRestClientOptions.png
latestAvancedRestClientLaunchedFromS.png
latestAvancedRestClientLaunchedFromS.png
0
By mistake i removed the jre default from eclipse java project instead of updating jre with jdk as beow

Here is the complete sequence in Eclipse Luna:
Right click your project > properties.
Select “Java Build Path” on left, then “JRE System Library”, click Edit…
Select "Workspace Default JRE"
Click "Installed JREs"
If you see JRE you want in the list select it (selecting a JDK is OK too)

how to add jdk 1.8
please advise
0
hi,

when i  try to missing junit to build path showing 2 options. i wonder why it shows same option 2 times. please advise
JUNitBuildPAth.png
0
hi,

i am importing existing project into eclipse as non maven project. Everytime i import new project i see bunch of errors. when i go to error and say fix project set up and give jdk 1.8 then issues resolves. why i have to do this everytime to every new project. can i teach eclipse some how to rememebr so that i do not have to give this again and agian. please advise
errorJDK.png
errorJDK2.png
0
Hi,

i wrote my web application with web.xml as below

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://xmlns.jcp.org/xml/ns/javaee"
	xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
	id="WebApp_ID" version="3.1">
<welcome-file-list>
    <welcome-file>simple.jsp</welcome-file>
</welcome-file-list>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>MyResources</web-resource-name>
			<url-pattern>/*</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<role-name>myuserrole</role-name>
		</auth-constraint>
	</security-constraint>
	<login-config>
		<auth-method>BASIC</auth-method>
		<realm-name>FILE</realm-name>
	<!-- 	<form-login-config>
			<form-login-page>/login.jsp</form-login-page>
			<form-error-page>/error.jsp</form-error-page>
		</form-login-config> -->
	</login-config>
</web-app>

Open in new window


i added role and username and password to tomcat-users.xml as below

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the 

Open in new window

0
I got below error
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
i checked below which has tomcat 8 already.

Project → Properties → Target Runtimes → *Apache Tomcat worked for me. There is no Target Runtimes under Facets (I'm on Eclipse v4.4 (Luna)).

i just has to remove and add again to  resolve this error.

i wonder why i have to remove and re add to resolve. this does not make sense to me. please advise
0
Free Tool: Site Down Detector
LVL 11
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

hi,

I am trying below example

http://briansjavablog.blogspot.com/2012/09/spring-jms-tutorial-with-activemq.html

i fired 100 messages as decribed in tutorial and exepcted them to be consumed with message on console.

Intead i am gettign below error


SEVERE: Could not refresh JMS Connection for destination 'jmsReceiveJndi' - retrying using FixedBackOff{interval=5000, currentAttempts=21, maxAttempts=unlimited}. Cause: Cannot send, channel has already failed: tcp://127.0.0.1:8161

under meta-inf context.xml is as below

<?xml version="1.0" encoding="UTF-8"?>
<Context>

   <!--
               Active MQ Connection Factory manages pooled connections
               to the ActiveMQ broker. Tomcat will connect with the
               broker using a TCP connection on port 61616 - this is the
               default port for ActiveMQ
   -->
   <Resource name="jms/mqConnectionFactory"
                     auth="Container"
                     type="org.apache.activemq.ActiveMQConnectionFactory"
                     description="JMS Connection Factory"
               factory="org.apache.activemq.jndi.JNDIReferenceFactory"
               brokerURL="tcp://localhost:8161" />

   <!--
               This is a reference to the first Queue we defined
               earlier in the ActiveMQ admin console
   -->
   <Resource name="jms/testQueueOne"
                     auth="Container"
                     type="org.apache.activemq.command.ActiveMQQueue"
               factory="org.apache.activemq.jndi.JNDIReferenceFactory"
               physicalName="TestQueueOne"/>

   <!--
               This is a reference to …
0
hi,

I am looking for good sample example on below area
JMS API Durable subscriber example
can you please point me to some end to end example on this using active mq.

Please advise
0
hi,

can i open two instances of eclipse mars both pointing to same tomcat 8 pointing ?
is that is ok or do i get any error like port conflict or something else?
please advise
0
hi,

within eclipse i have tomcat 8 running. I want to know what location that tomcat running from on my local windows laptop C drive as i happened to have many tomcats in my c drive under different directories
0
hi,
my project has different environment related property files like int, sT, PT, Prod etc to call various service (like email service, validate service etc)

using maven build command from command prompt or eclipse how to pass environment like integraion for example


pom.xml has filter entry i heard which does check like this
any good links, examples on this
please advise
0
hi,

I have configured eclipse with tomcat 8

i modified my tomcat-users.xml by doing cntr+shift+R and searching on tomcat-users.xml

i added below entry as i am getting tomcat username and password screen when i run rest web services 139 query parameter example from annotation
when i give tomcat , tomcat getting anauthorized error


<tomcat-users>
  <user name="admin" password="admin" roles="admin-gui,manager-gui" />
</tomcat-users>


after addin above when i restart getting below
eror
Could not load the Tomcat server configuration at /Servers/Tomcat v8.0 Server at localhost-config. The configuration may be corrupt or incomplete



How to solve:

Close Eclipse
Copy all files from TOMCAT_7_HOME/conf to WORKSPACE_FOLDER/Servers/Tomcat v7.0 Server at localhost-config
Start Eclipse
Expand the Servers project, click on the Tomcat 7 project and hit F5
Start Tomcat from Eclipse

to folow above steps how to where is my tomcat conf directory or where the tomcat directory is ?
is there is a way in eclipse you can see properties etc to find it?
how to know my server is tomcat 8 or tomcat 8.5 etc

how to solve this error
please advise
0

Programming Languages-Other

19K

Solutions

19K

Contributors

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Thousands of different programming languages have been created, mainly in the computer field, and many more still are being created every year. The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, the C programming language is specified by an ISO Standard), while other languages (such as Perl) have a dominant implementation that is treated as a reference. Some languages have both, with the basic language defined by a standard and extensions taken from the dominant implementation being common.