[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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 Experts

Could you point what must to be done to make a PowerBuilder 6.5 project to be used on PowerBuilder 7.0?

I saw that "workspace"  must to be used but how to make the old  libraries to enter on it...


Thanks in advance!
0
CompTIA Network+
LVL 12
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

Avoid Empty Catch Blocks
It’s a very bad habit to leave catch blocks empty, as when the exception is caught by the empty catch block, the program fails in silence, which makes debugging harder. Consider the following program which calculates sum of two numbers from command-line arguments:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public class Sum {
    public static void main(String[] args) {
        int a = 0;
        int b = 0;
 
        try {
            a = Integer.parseInt(args[0]);
            b = Integer.parseInt(args[1]);
 
        } catch (NumberFormatException ex) {
        }
 
        int sum = a + b;
 
        System.out.println("Sum = " + sum);
    }
}
Note that the catch block is empty. If we run this program by the following command line:
1
java Sum 123 456y
It will fail silently:
1
Sum = 123

Open in new window


when i tried above example i am getting different error as below istead of getting 123


public class Sum {
    public static void main(String[] args) {
        int a = 0;
        int b = 0;
 
        try {
            a = Integer.parseInt(args[0]);
            b = Integer.parseInt(args[1]);
 
        } catch (NumberFormatException ex) {
        }
 
        int sum = a + b;
 
        System.out.println("Sum = " + sum);
    }
}

Open in new window


Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
      at Sum.main(Sum.java:7)

https://www.codejava.net/coding/10-java-core-best-practices-every-java-programmer-should-know

even below good catch block example also gives same error
public class SumFixed {
    public static void main(String[] args) {
        int a = 0;
        int b = 0;
 
        try {
            a = Integer.parseInt(args[0]);
            b = Integer.parseInt(args[1]);
 
        } catch (NumberFormatException ex) {
            System.out.println("One of the arguments are not number." +
                               "Program exits.");
            return;
        }
 
        int sum = a + b;
 
        System.out.println("Sum = " + sum);
    }
}

Open in new window

Please advise
0
I have had a few people tell me that when trying to visit a site using safari on their iPhones, they get an error that says:

Safari cannot open the page because the server cannot be found.

I asked other people to test on their iPhones and they said it works fine. After asking Google about this it seems that the answer is always something to do with the phone itself. But, it is not realistic to ask everyone with an iPhone to check this setting, and check that setting in order to try use the website.

Does anyone have any suggestions regarding this?
0
Does anyone know of resources either in books or on the web, or does anyone have experience of using SCSI Pass Through / Direct using (ideally VB6).
I am interested in how to set up the IOCTL_SCSI_PASS_THROUGH / DIRECT without using .net I have tried some sample .net code and it is clunky and very slow.
0
Hi,
How to resolve the attached problem below?

31k.png
0
I am working with matcher and pattern in Java. I think this test code should work to add and print my desired search but it is not. If anyone can take a look and fix this it would be much appreciated. Note the if I just use the while loop it works fine. It is when I add in the for loop to iterate through the array list is when it prints out blank.

Screen-Shot-2018-08-29-at-11.51.28-A.png
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class test {


    public static void main(String[] args) {

        ArrayList<String> linet = new ArrayList<>();
        ArrayList<String> lines = new ArrayList<>();

        lines.add("O#833452-14943408 PO#Subject: Re: gg  - Oops. Your O#purchase order is missing key payment information.PPO O#769117789:C11134 [ ref:_00D30dWxY._5001311TVgB:ref ]");
        lines.add("SO#833452-14943408 PO#Subject: Re: gg  - Oops. Your O#purchase order is missing key payment information.PPO O#769165189:C11134 [ ref:_00D30dWxY._5001311TVgB:ref ]");
        lines.add("O#833452-14943408 PO#Subject: Re: gg  - Oops. Your O#purchase order is missing key payment information.PPO SO#7696561189:C11134 [ ref:_00D30dWxY._5001311TVgB:ref ]");
        lines.add("CASE-1443453931800\tPN#109684324201-2 qty1EA\t\"");

        for (int i = 0; i < lines.size(); i++) {

            String line = lines.get(i);

            String so1 = "SO#";
            Pattern p = Pattern.compile(so1);
            Matcher m = …
0
Dear,
Any help to this problem?
31h.png
0
Dear,
I get overflow error, due to the below line
                    RowID2 = c.Row

Open in new window

                   
in Macro (as attached). Why?
Gold-Star-ACER-BKSI-20082018-d.xlsm
0
what are differences between eclipse short cuts F3 and Control +Shift+G
when to use which one?

Please advise
0
Update Word Document with Data entered in Excel
sp
I have Excel sheet displayed on the screenshot above.
I also have word documents with the name that matches exactly the name of each Comp-Name.

BATH.docx
MONR.docx
STAR.docx
JUSGB.docx




Each word document has a table with the same column names as the Excel sheet

I would like to have the respective word document table updates automatically  its data to match the new entered data in Excel .
for instance If I have a new purchase, I can manually add it to a new Excel row, and the program should add that new row automatically to the corresponding word document.

Example:
I have new purchase for a company MONR
On Excel , I will add new entry:
MONR      TX      3/3/2018      3/8/2018

on a corresponding word document MONR.doc, I should have the new entry added automatically to the table in word.

Any help will be very much appreciated.

Thanks
0
Exploring ASP.NET Core: Fundamentals
LVL 12
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

I've been using the Azure ML Studio and it is great.

I get the basics of what ML is and what it does. But now I'd like to learn it in more detail - understand the deeper issues, the math behind it, what the different algorithms do and so on.

But I don't know where to go for this. Most of the introductions to ML use Python and TensorFlow. Ideally I'd like to stick to Azure ML Studio but I just can't find anything that tells me about the theory of ML rather than how to use Azure ML Studio.

I'm talking about books or courses - I think ideally a book but either would be fine.

This book might be promising:

Predictive Analytics with Microsoft Azure Machine Learning 2nd Edition Paperback – 19 Aug 2015
by Valentine Fontama (Author), Roger Barga (Contributor), Wee Hyong Tok (Contributor)

But I'm concerned it doesn't give the background - the reviews seem to indicate this.

Let me know if you have read a good book or completed a good course that explains the math of ML and would be something I could use with the Azure ML Studio.

Thanks!
0
exception java.net.MalformedURLException is never thrown in body of corresponding try statement
exception java.io.IOException is never thrown in body of corresponding try statement

i am getting above compilaion error in one of my facade manager class.

i wonder what that means

if i do not throw it but still catch that should be ok right right?
why i get compilation error

Please advise
0
Hello EE,

Can someone please help me with how to convert date and times to 30 minutes interval in Microsoft Power BI.

Thanks
0
FlightsDestination.valueOf("price")


i was wondering how valueOf() method there on a custom objet
i thought it is just method on String class
https://study.com/academy/lesson/how-to-convert-int-to-string-in-java-valueof-method.html

does take string as input parameter like below
FlightsDestination.valueOf("price")

or
FlightsDestination.valueOf(price)

or

FlightsDestination.valueOf("400")

or
FlightsDestination.valueOf(400)



please advise
0
How to compare a String in scala against a constant value?

def desks(sorted:Boolean, includeNtf:Boolean) = {

    val output = for {
        desk <- TableQuery[Desks] if(includeNtf && desk.test === Some("Y"))
    }

I want to set "desk" to only the records in TableQuery[Desks] that have test="Y"

test is type String

This does not work with various errors... desk.test === Some("Y")

I have never touched scala code before.

Thanks
0
restfu get and post example


https://www.mkyong.com/webservices/jax-rs/restfull-java-client-with-java-net-url/
i am trying above example in eclipse.

I am not sure what all jars needed and what set up is needed to see that outputs

Please advise
0
Return Keyword in Javascript function.
I have the code below that runs and gets the results as expected:
var person = function(name,age,state){
var temp={};
	temp.name = name;
	temp.age = age;
	temp.state = state;

temp.printperson=function(){
	document.write(this.name);
};
[b]return[/b] temp;
};

var person1=person('Omar','25','CS');

person1.printperson();

Open in new window


I would like to know what the keyword "return" does in the code above.

Thank you
0
Desktop Vs Web Application

I would like to know if Nowadays there is any difference between Desktop Application and Web Application, seeing that you can make web application do what classic Desktop application does. I mean you can create forms on the Browser, validate data, connect to the database and  modify/ add  /fetch data, and present it to end user. The good thing about it, you do not need to install the client application on the end user's desktop, user can just open the browser and go to the link you provided them.

I could be wrong though.
Any insights will be considered

Thanks
1
JavaScript Web Developer foundation Skills.

I would like to learn Web development (Front End/Back End) using JavaScript, however after reading online the skills that goes with JavaScript developer are numerous..
Initially I Thought you will have to know:
for Front End Development
HTML
CSS
JavaScript

for Back End Development
JavaScript
NodeJs

However, when reading online, they mention : Jquery ,Angular,Bootstrap,Json,AJAX , probably more than that....

What I would like to know is what are the main areas I should focus in learning to become either Front/Back end Developer

Thank you,
0
Build an E-Commerce Site with Angular 5
LVL 12
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Is SOLID Outdated?

What are more modern definitions/terms for design principles for OOP?

Thanks
1
object aid

when i try to add object aid uml plugin worked on one laptop

other laptop
when i gave the name

Name as Object Aid UML Explorer
Location http://objectaid.com/update/current

from eclipse-->help->install new softwares


getting below error

Unable to read repository at http://objectaid.com/update/current/content.xml.
Unable to read repository at http://objectaid.com/update/current/content.xml.
Malformed reply from SOCKS server


please advise
0
GUI Language for user input and Database programming.

I would like to know , which programming language nowadays is good to use for Database programming using GUI ,Visual Drag and Drop components, that have event handlers, and visual Data Object that connects you to the Database.
If I remember well in VB, a programmer will use a Form, then drag and drop Data Object widget that will connect the Application to the Database, then drag and drop other widgets such as , Textbox,Buttons,Drop down arrow to select an object from the list, also List box, Check box, radio button.....etc.... these mentioned components all have their properties and Event in a visual panel, where you can change their properties and select what Event you want to associate with the component.
The only thing a programmer left to do  is to write a code for the specific event that is chosen for the specific component.

I have looked at Python, as it is advertised as an easy language and you can do a lot with it. But I did not like at all the way it uses GUI (Tkinter,PyQT,etc...) , as the programmer has to write a code to produce the widget, the size and the placement of it in the main window.  which can be a lot of waste of time.

I have not looked at Java JDBC to see if it has a GUI like VB.
It is like you cannot find a programming language good for everything ( Web and Desktop Apps). JavaScipt is said to be better than other languages in Web Dev, but not great at Desk Apps for database Dev

Any …
0
when we go to eclipse market place vs when we go
install new software option under eclise-->help

please advise
0
objectaid ul plugin now working

i went to eclipse -->help--->install new software

then i put url
http://www.objectaid.net/update
it brings windwo with saying
Add Repository
with 3 text boxes
Name
Location
not sure what to give above text boxes
after some times says
it says coulld find
http://www.objectaid.net/update

please advise
0
JavaScript,PHP,Python, XML

I have read that JavaScript is Front End, but what does that mean in a development standpoint?.  Does the Developer change the Webpages in an automation way on the web server?
I am not sure how Javascript is used in the business world ,whether it is installed on the Server(windows server or Linux) or on a workstation( windows 7)
Let's say we have Javascript installed on Windows Server , then web server is installed on the same box(windows server), then JS will automate the web pages that got generated in the web server. is that the Front End

Back End, probably they mean the Program language used such as PHP or Python or Java, will use  the Web Server as well as the Database( MSSQL,MySQL,SQLLITE.etc...)

I threw in this question XML, because I am not sure if it gets created automatically or a developer has to manually write it like he/she will write HTML

Thank you
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.