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

for consuming web service apart from WSDL why we need to provide XSD of XML again?

WSDL it self has all information about request and responses right?

in <wsdl:types> element of wsdl has the xsd name in it?
xmls:tns means what in wsdl
what is
xmlns:soap means?
targetNamespace="http://xyz.com/courses"> means what?
in <wsdl:types> what is <xs:complexType name="courseDetails"> means?
why we use it?
Please advise with any good links, references, code examples, video tutorials etc
0
hi,
while working with the SOAP web service i gave below as request from wizdler.

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
   
   
    <Body>
        <GetCourseDetailsRequest xmlns="http://xyz.com/courses">
            <id>123</id>
        </GetCourseDetailsRequest>
    </Body>
</Envelope>

i am getting below response when i click go button with POST method selected from drop down

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
        <SOAP-ENV:Fault>
            <faultcode>SOAP-ENV:Client</faultcode>
            <faultstring xml:lang="en">com.sun.xml.wss.XWSSecurityException: Message does not conform to configured policy [ AuthenticationTokenPolicy(S) ]:  No Security Header found; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurityException: Message does not conform to configured policy [ AuthenticationTokenPolicy(S) ]:  No Security Header found</faultstring>
        </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


can you please advise how to resolve this
whizler1.png
0
Are SOAP web services are state-full

I read REST ones are stateless

https://www.tutorialspoint.com/restful/restful_statelessness.htm

Please advise
0
HTTP PUT
Generally – not necessarily – PUT APIs are used to update the resource state. If you invoke a PUT API N times, very first request will update the resource; then rest N-1 requests will just overwrite the same resource state again and again – effectively not changing anything. Hence, PUT is idempotent.

https://restfulapi.net/idempotent-rest-apis/


I am reading as above.

What is meaning of resource state.

why it wont change when i keep on updating that resource say student respurce course i updated from java to  javascript?
when they say server what server is it?
database server like oracle
or application server like web-logic etc?

Please advise
0
I am attempting to use an HTML form contained in a modal to transmit a PDF and an image to a PostgreSQL database. I don't have the database set up yet, but I've already run into an issue. My file structure has a folder for 'models', 'routes', 'views', and a main 'app.js' file. I've included the app file below as well as the files containing the issue. The form is in the 'btb.html' file (contained within the views folder) and begins on line 211 (there is a second form below it, but I haven't begun to use that one yet). The form should be posting to the URL of the 'btbRoute.js' file (contained within the routes folder) and the "router.post" there should handle the response and create an entry in the database. I've also included two files from the 'models' folder-- the 'order.js' file that defines the schema model for my database entry and the 'index.js' file that will eventually connect all my models together.

I'll eventually want to render the information that I'm inputting elsewhere on the website, so if anything that I'm doing would prevent that I would need to find a different solution (I have no idea if that's even a thing, but just in case).

Thanks in advance.
index.js
order.js
btbRoute.js
btb.html
app.js
0
ardunio on board memory manipulation have a arduino mega now what is the best way to do the following, i want to have the program running and then update the array on board the arduino with out reloading the program, so lest say i have an array with 10 numbers and depending on the feed back from the card i am going to change location #4 of the in the 10 mem locations that i have set up how is the best way to do this please from the code running on the pc , would i access the arduino then the mem location and go from there, any ideas in this correct direction would be helpful
0
Hi
I need your help . I think there is possible to use something in Visual Studio Net (2017, C#) to calculate FFT, FIR and IIR filters.  I remember I read it somewhere but
I don't remember what was it.
Do you know what can I use for very fast process?
Looking forward for your suggestions.
0
What are my options for creating a PDF file from my WebApi2... initiated from my SPA using Sencha ExtJs? The concept is I want to have a template in PDF with a grid, and based on user selection from my front end website, fill in the grid with data from my database. I'm not looking for someone to write code for me, just for a path to go down. I am open to suggestions so if a template is too complex I am open to creating the PDF from stratch every time. Whichever is the least complicated option as I am definitely no expert.

thanks!
0
I would not even begin to tell you why I need this, but does anyone know the Hexadecimal code for a zero-width joiner or a zero-width non-joiner? [/b]
1
how utf-8, unicode are different for latin kind of characters with carrot or cap etc on them


in java are those both same?
are they different in other languages?

how html decimal code is different?
what other formats out there?
which one to use when?
which one to use to support sms on emails, sms text and different browsers, gif. pdf kind of reports etc without having to see some junk ?? kind of display issues
0
what does below command do
maven update

i am using above from eclipse

what are other commonly used maven commands and their uses, advantages, differences
i can do maven update on multiple projects once i select them in one stroke.

After this maven update one project java file keep on complaining
Error: Could not find or load main class com.ups.rms.testdriver.RMSTestDriver


some junits keep on complaining junit not found

then i have to do maven clean
then maven install on each individual 10 projwect i have( not sure why i cannot do maven clean and maven install on multiple projects in one stroke)
how maven clean different from regular eclipse project clean at the top of th eclipse after  File, Edit, Navigate, Search etc options?

please advise
0
Dear experts,

I am a chartered accountant, CIMA and CFA.

I have a lot of experience in writing excel formulae (the entire credit goes to this forum, thank you experts).

I now want to pursue Financial Engineering.

I am learning C, C++ now. Once I become well versed with these two languages, I will move to learning Python.

Now from robustness, depth and FE requirement is Python better or MATLAB

I am not sure I have the bandwidth to complete/learn both.

Till date I have been learning C and I did not struggle to pick up the synatax or logic.

Kindly advice.
0
I had this question after viewing How to save and retrieve localstorage with a DB.
I have tried to incorporate your script into my example script, changing some of the names to suit. I have undoubtedly not done it correctly. I have been trying to get something similar to work for about 3 weeks, but my javascript knowledge is so poor that I really need help. The ultimate aim is to get the data stored in local storage (I do not have any problem putting it there), and having it back into a PHP sript so that I can use it as a normal string. The reason is that the form will be filled in remotely on a tablet, and if the internet connection fails the data can be saved in the browser and got back when the signal returns. I have put the script for testing here: http://www.jhw1.com/local_storage.php
0
Hi
My invulnerable :) chess AI is going to be done, but I'd appreciate some pointers on a chess GUI in Python
I have a legal-move generator coming on nicely, I have pyGame.
Right now, I am printf'ing the board state to the Pycharm console, list of lists, White upper case and black lower case characters, init'ed like this:
It is legible in the fixed width font printout method below, but in array format - a GUI would ease the pain.
self.board = [[' ',' ',' ',' ',' ',' ',' ',' '] for i in range(8)]


        self.board[0] = ['R', 'N', 'B', 'Q', 'K', 'B', 'N', 'R']
        self.board[1] = ['P', 'P', 'P', 'P', 'P', 'P', 'P', 'P']
        self.board[7] = ['r', 'n', 'b', 'q', 'k', 'b', 'n', 'r']
        self.board[6] = ['p', 'p', 'p', 'p', 'p', 'p', 'p', 'p']

Open in new window


This is my ChessBoard class's print method...
    def print(self):

        for i in range(7,-1,-1):
            print(i, '>', self.board[i])

Open in new window



What might the best GUI approach be?
Would I need transparent pieces over my own board GUI, to do select and drag and drop movements w a mouse?

Thanks
0
Hi,
When running macro of attached Excel file, I get error
23g.pngdue to this line
                Worksheets(List1).Cells(RowID2, 9).Value = Mid(Worksheets(List0).Cells(RowID, 9).Value, 1, 350)
Remedy_Incidents_Analysis_-A4-_New.xlsm
0
When to use Git Merge and When to use Git Rebase ?

Practical Use cases or examples when Git Merge will be useful and Git rebase will be useful.
0
I have been asked to stand up a weighted search appliance for a company.  The decision was to use SOLR to create the search tool so they can use the associated REST API for searches and recommendations.

I'm am still beginning in SOLR and have to ask a basic architecture question.  I have a table with 220 elements, 130 Million record strong.  I grow 5 million a year.

Does this become a Hadoop solution?  or can this still be done with a single SOLR engine?  I need to know which direction to start with so I do this right

Thanks much.
0
Trying to convert Excel, with Macros, to Google sheets.

I can’t find a GoalSeek Equivalent in Sheets .

Sub Calculate()

Sheets("Amort").Range("N22").Offset(rowOffset:=Sheets("Amort").Range("J5").Value, columnOffset:=0).GoalSeek Goal:=0, ChangingCell:=Sheets("Amort").Range("P10")

Sheets("Amort").Range("W22").Offset(rowOffset:=Sheets("Amort").Range("J5").Value, columnOffset:=0).GoalSeek Goal:=0, ChangingCell:=Sheets("Amort").Range("P12")

Sheets("Amort").Range("AY22").Offset(rowOffset:=Sheets("Amort").Range("J5").Value, columnOffset:=0).GoalSeek Goal:=0, ChangingCell:=Sheets("Amort").Range("P14")

End Sub
0
I have a Samsung Galaxy S9+.
Android Version: 8.0.0

I recently put a micro SD card in it and moved many apps to it.  One of them was Bejeweled Classic by Electronic Arts.  Later I noticed that the icon for it was missing, so I went to download/install it again.  When that happened I got a strange error message: "You cannot install this app because another user has already installed an incompatible version on this device"

NOTE: I cannot find the app on my Installed Applications list.

You cannot install this app because another user has already installed an incompatible version on this device
In the link above someone wrote:
What worked for me was: adb shell pm uninstall com.packagename

I have a Terminal Emulator to try that command, I just need to know the exact packagename.

Question: How do I get a listing of package names in the Terminal Emulator?

Screenshot of error message
0
Hi,
I was making a spring web application. Where there are lot of handlers for GET request etc.
One thing came to my mind -
Suppose I make a GET request from my chrome browser from a particular tab.
And then in the response i add some values which gets back to this same chrome tab and machine.
How exactly does that happen.
How does a response object gets linked to a particular tab in a chrome broswer.

Also is it possible to send a response object without receiving a request object from spring to a particular machine and application.
I guess it should not be possible... But what makes it impossible.
Thanks
0
checked exception



public class ThrowEx {

      public static void main(String[] args) {
            
            try{
            throw new Exception("file not there");
            }
            catch(Exception e){
                  
            }

      }

}



why i ned to have try catch for above example.

If i skip i am getting compilation error


https://www.google.com/search?q=java+exception+checked&safe=active&rlz=1C1GGRV_enUS765US765&source=lnms&tbm=isch&sa=X&ved=0ahUKEwi_7qLdjLjaAhWDylMKHfzxDigQ_AUICigB&biw=1280&bih=615#imgdii=dKyeLgDJI-TIrM:&imgrc=Xm7qPed58fGj2M:

Exception could be Run time(unchecked which does not need explicit try catch like indexoutofbound, arthematic) , unchecked(which needs explicit try catch like IOException)
as well right?

please advise
0
Hi Experts,

I get the following error on the console for running the reactjs application.

   AJAX Failed: SyntaxError: Unexpected token < in JSON at position 0

Open in new window


on the developer tools console window. I got the following error.
 search-e3e9d0f9da88f042e3cb.js:446 Warning: React attempted to reuse markup in a container but the checksum was invalid. 
This generally means that you are using server rendering and the markup generated on the server was not what the client
 was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. 
 Instead, figure out why the markup being generated is different on the 
 client or server:
 (client) " data-reactid="18">Medium</div><button 
 (server) " data-reactid="18">Large</div><button s

Open in new window

It is wagtail application(it is like Django-cms), in which react module is called inside the wagtail application. The development environment is Ubuntu on aws.

Please help me in resolving this issue. I am not able to find the origin of the error.

With Many Thanks,

Bharath AK
0
Hi,
What is the reason to get
23b.png
due to Merge command of attached file below?
Remedy_Incidents_Analysis_-A4-_New.xlsm
0
looking for a vxml consultant, anyone interested ?
0
Hi
For my Python RTS / MOBA server,

I am at a decision where I should either make a class for reading UDP activity updates from the clients over TCP activity ( a failsafe)
Should I have a UDPlistener class and a TCPlistener class?
or should I have a packetListener class with a UDPlisten method and  also, a TCPlisten method? - that are each made into Threads?
I think an all-in-one approach would make linking into the game smoother?

both would work, but which would look best? Is Python better suited to one?

Thanks
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.