Programming Languages-Other

19K

Solutions

66

Articles & Videos

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,
Is there one example to read each message, one by one, for one specific text string, within Sent folder of Outlook?
0
Industry Leaders: We Want Your Opinion!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

I have a python script that will construct a list of futures contracts for a specified symbol, exchange, and year window.  The script will download pricing information from Quandl for each contract in the strip.  This script works properly.

import pandas as pd
from pandas import ExcelWriter
import quandl

symbol = 'ES'
exchange = 'CME/'

start_year = 2015
end_year = 2016


#Constructs a list of futures contract codes for a particular symbol
#and timeframe.
futures = []
months = 'HMUZ'
for y in range(start_year, end_year+1):
    for m in months:
        futures.append("%s%s%s%s" % (exchange, symbol, m, y))

#Download the data from Quandl.
for f in futures:
    quandl.ApiConfig.api_key = "xxxx"  
    data = quandl.get(str(f))
    data = data.drop(data.columns[[3, 4, 7]], axis=1)

I have another python script that will create a continuous futures contract from 2 consecutive contracts in the futures strip.  It uses the perpetual method; identifying the roll date as the first day where volume of the far contract exceeds volume of near contract, and then adjusts the prices of the previous 4 sessions to roll date by weighting the near and far contracts in increments/decrements of 20%.  This script works properly.

import pandas as pd
from pandas import ExcelWriter
import quandl

#Get quandl futures data
quandl.ApiConfig.api_key = "xxxx"    
contract_near = quandl.get("CME/ESH2015")
contract_far = quandl.get("CME/ESM2015")

#Drop the columns …
0
Hi,
Further to this
https://www.experts-exchange.com/questions/29029100/Problem-to-show-list.html?anchor=a42174635¬ificationFollowed=190745230#a42174635

and I have ImageHandler.cs like
using System;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.Data.OleDb;
using System.Xml;
using System.Globalization;
using System.Collections.Generic;
using System.Drawing;
using System.Text; // This was needed to make ASCIIEncoding function
using System.Security.Cryptography; // This was needed to make everything related to MD5 function
using System.Web.Services;

namespace Own_rec
{
    public class ImageHandler : IHttpHandler
    {
        /// <summary>
        /// You will need to configure this handler in the Web.config file of your 
        /// web and register it with IIS before being able to use it. For more information
        /// see the following link: http://go.microsoft.com/?linkid=8101007
        /// </summary>
        public void ProcessRequest(HttpContext context)
        {
            //string userId = string.Empty;
            int userId = 0;
            //-- get the ID from query string you get from <img src tag
            if (null != 

Open in new window

0
Hi,
Using these codes

        public static List<HouseData> GetHouseList()
        {
            List<HouseData> houseList = new List<HouseData>();
            using (SqlConnection sqlConn = new SqlConnection(ConfigurationManager.ConnectionStrings["Mssqlconn3"].ConnectionString))
            {
                using (SqlCommand sqlCmd = new SqlCommand("SELECT house_name, address1, address2, price, price_curr, raised_by_user_id FROM house_tab", sqlConn))
                {
                    sqlConn.Open();
                    sqlCmd.CommandType = CommandType.Text;
                    SqlDataAdapter sqlAd = new SqlDataAdapter(sqlCmd);
                    DataTable sqlDt = new DataTable();
                    sqlAd.Fill(sqlDt);
                    sqlConn.Close();
                    if (null != sqlDt)
                    {
                        houseList = sqlDt
                                        .AsEnumerable()
                                        .Select(dataRow => new HouseData
                                        {
                                            house_name = dataRow.Field<string>("house_name"),
                                            address1 = dataRow.Field<string>("address1"),
                                            address2 = dataRow.Field<string>("address2"),
                                            price = dataRow.Field<decimal>("price"),
                                            price_curr = 

Open in new window

0
I'm trying to read a string from a plain text file. The string contains the degree symbol(°). In the code ,it is read as ° (capital A circumflex accent and then the degree symbol). How can I just read the degree symbol?
I'm using Qt creator as the IDE and the language is FORTRAN 77
0
Hi,
I also want to capture values of M/C/O, on either Column 3 or 4 of Sheet5. How to adjust Scan_list4, of the attached file?
Columns-Map2.xlsm
0
How to visualize call hierarchy in java using a pencil and paper all the way from beginning till end from UI to say model to controllers to dao to db calls etc including which object go in method and where the values changing etc in the new project

Please advise
0
Hi,
I am looking for String Format Method example using various date formats
https://www.javatpoint.com/java-string-format.

I found above link but no example there using the date format though like MMDDYYYY or YYYYMMDD etc to represent date?
please advise
0
I have a list of 493 peeople buried in section B of the local cemetery.  I know which “lot” in the section and which of the 12 grave sites in the particular lot they are buried in.  Using Inkscape, I have drawn the names of the dead people in sections C, CE, D, and E. I was going to draw this section too but is there any way to have inkscape do it automatically from a csv file of the name, lot, and grave site that I can easily make from the spreadsheet I already have?
0
Hi,

When i right click on junit test(say ProductWeightTest.java) and run as Junit test from eclipse i keep getting popup with error

error could not create the java virtual machine error a fatal exception has occurred. program will exit



when i run individual test (checkWeightLessthan10Lb) in above test ProductWeightTest.java  i keep getting initialization error in eclipse console.

i tried changing eclise .ini entries but still getting same error. please advise
0
Enroll in June's Course of the Month
LVL 8
Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

when i run junit test class getting initializationError Runner: Junit 4

not sure why suddenly i am getting that error and how to resolve it.

please advise
0
Hi,

I have a setter method(setBeginDate) that changed by some one from calendar date object to String object.

now i have to change my unit test to reflect that by changing to String.

articleVisibleData.setBeginDate(setDateMonthYear(30, 1, 2015));

How i edit method above so that i get String

earlier method is

            public Calendar setDateMonthYear(int day, int month, int year) {
            Calendar cal = GregorianCalendar.getInstance();
            cal.clear();
            cal.set(Calendar.DAY_OF_MONTH, day);
            cal.set(Calendar.MONTH, month);
            cal.set(Calendar.YEAR, year);
            return cal;
      }

now i am trying like below but wont work


      public String setDateMonthYear(int day, int month, int year) {
            String str="";
            str= str.concatenate(date).concatenate(month).concatenate(year)
            return str;
      }


earlier from test case i used to call like

articleVisibleData.setDate(setDateMonthYear(30, 1, 2015));

please advise
0
Good Day Experts!

I have recently been displaced from my Developer position.  It was a vb.Net windows/console project position.  As expected, the market is very thin for that.  The majority of the positions in my area involve some form of WebDevelopment.  I have been seeing plenty of .NET, C#, Java, JavaScript, AWS, MSSQL or MySQL, Node.js, HTML, CSS, JavaScript, Web Services/APIs, XML, XSL,  MVC.

Short of going back to school at a local community college for a 2yr CS degree, do you have any OnLine learning sites or books/programming tutorials that I could start taking a look at?

I have 20yrs of a variety of experience from RPG IV/AS400, Calico, VB6, EDI, SAP Business One, VB.Net, SQL Server.

Thanks,
jimbo99999
0
Hello,
In this C++ statement; T∗ begin(Vector<T>& x)  what is & doing, or supposed to do?
Thanks
0
Hi,
I want to split one file into several others, and each file is having 5000 lines by these
                string N0 = "F" + F0.ToString().Trim();
                using (StreamReader sr = new StreamReader(@"c:/dp2/inp.txt", Encoding.Default))
                {

                    while ((line = sr.ReadLine()) != null)
                    {
                        {
                            using (StreamWriter sw = new StreamWriter(@"c:/dp2/"+N0+".txt"))
                            {
                                sw.WriteLine(line);
                            }
                            
                            if (C0 % 5000 == 0)
                            {
                                F0++;
                                N0 = "F" + F0.ToString().Trim();
                            }
                            C0++;
                        }
                    }
                }

Open in new window

what to adjust to get what I expect to have?
0
I am trying to sort a multi-dimensional array.  In my code, I capture data (item 'ID' and 'Priority' value) from my SharePoint list and dump it into an array as objects.  For some odd reason, it does not get inserted in the order I expected so I am trying to sort the array by the 'ID'.
Here's my code that created the array of objects.
/*Array will contain two values, item id and new priority value. Global so it can be used in multiple functions.*/
var items = [];
var itemsID = [];
var projItemArray = new Array();
var i = 0;	

/*-------------------------------------------------------------------------------------------------------*/
//Success on data retrieval from 'retrieveListItems()'. Transforms HTML table to datatable and creates
//range functionality.
/*-------------------------------------------------------------------------------------------------------*/		
function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();

    //Will be used to build object array of ID and priorityNumber
    //var projItemArray = new Array();    	

    //1st call to retrieve the level. 2nd call below while loop
    var levels = determineGroup();
    // alert("onQuery: "+levels);

    var i = 0;
    while (listItemEnumerator.moveNext()) {
        var oListItem = listItemEnumerator.get_current();

        var itemUid = oListItem.get_item('ID');
        var colVal;
        var valSelect = " ";
        if 

Open in new window

0
Hello, In the paragraph below; am I to understand that java does not use "pass by reference."  Would this apply to inheritance?

https://docstore.mik.ua/orelly/java-ent/jnut/ch02_10.htm
2.10.4. Terminology: Pass by Value

I've said that Java handles arrays and objects "by reference." Don't confuse this with the phrase "pass by reference."[5] "Pass by reference" is a term used to describe the method-calling conventions of some programming languages. In a pass-by-reference language, values--even primitive values--are not passed directly to methods. Instead, methods are always passed references to values. Thus, if the method modifies its parameters, those modifications are visible when the method returns, even for primitive types.
[5]Unfortunately, previous editions of this book may have contributed to the confusion!
Java does not do this; it is a "pass by value" language. However, when a reference type is involved, the value that is passed is a reference. But this is not the same as pass-by-reference. If Java were a pass-by-reference language, when a reference type was passed to a method, it would be passed as a reference to the reference.

thanks
0
I am using an ERP product called Epicor and trying to create a calculated field using their query tool.  The code as I understand is Progress.

I have a value in a number field of 24,165 which represents the seconds past midnight.  When converting it to a readable time it is 06:42:45 AM.  Here is the code to get that which I am converting to a character field......
String(Integer(LaborHed.Number01),"HH:MM:SS")

My issue is I need to round up this to the closest 15 minute interval which in this case would be 07:00:00 AM.  Here is my lame attempt......
String(Round(LaborHed.Number01 * 60 * 60 / 3600,0),"HH:MM:SS")
0
Hi,
Here is error I can see
https://app.box.com/s/hdp8hqqcknt3ls98jnrrlnc21bug9c20

on Chrome browser, while I have such codes

            if (!File.Exists(str0))
            {
                System.IO.File.Copy("C:/inetpub/VS2012/Own_rec4/empty.jpg", str0, true);
            }

Open in new window


and str0 is having value like

C:/inetpub/VS2012/Own_rec4/output63626911810308.jpg

What is the reason of the error?
0
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Hi,
How to correct
Error      3      The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

while I have Excel 2007 on my Desktop?
0
https://github.com/mazen160/struts-pwn/blob/master/README.md

I refer to the above url & I've got python 2.7 installed successfully on my Win XP.

When I ran the command below, got the error below:  need to help with the line 13 & importError :
 C:\rootc\strut>python struts-pwn.py --check --url 'http://www.google.com'
Traceback (most recent call last):
  File "struts-pwn.py", line 13, in <module>
    import requests
ImportError: No module named requests


Attached is the python script I downloaded ie struts-pwn.py
struts-pwn.py
0
What is the most comprehensive, and with highest quality, cheat sheets (infographics) source for programmers available?

I found the best source about ten years ago, but I can't find it now. It had cheat sheets in full-colour and laminated, just like on this page:

http://www.cheat-sheets.org/saved-copy/jquery12_colorcharge.png

The best would be if they are available in digital format also. Price doesn't matter. They should encompass any scripting and programming language, both on client side and server side.
0
Started angular2 app in a mvc application.
want to upgrade to the latest using webpack Angular Cli.

The application works as is using the app folder in the root and my mvc is called in my views folder and my main layout.cshtml is used here to call my
main page.
 <script>
        System.import('app').catch(function(err){ console.error(err); });
    </script>

my index.cshtml located in my view Home folder.    <callindex-app></callindex-app>

If I use webpack System.import is not supported and that eliminates my index.cshtml from using any of the angular2 functions.

Is there a way I can still call an angular2 application and embed it in a index.cshtml page like I am doing with systemjs angular2
0
Hi,
The connection to Database should be fine but I get

08S01: [Microsoft][ODBC SQL Server Driver]Communication link failure

on PHP page. Why?
0
I'm searching historical grades to compile the accumulative GPA in a sub-query.  I want to bring all these records back and search the same historical grades table but only for this year's semester 1 (S1) grades. and output the accumulative and the S1 GPA's.
My results don't output any student that doesn't have an S1 grade.

SELECT Student_number,Cum_GPA,SUM(sgs.earnedcrhrs) AS Earned,sum(sgs.potentialcrhrs) AS Potential,ROUND((AVG(sgs.gpa_points + sgs.gpa_addedvalue)),4) AS S1_GPA
FROM (SELECT s.id,s.student_number, ROUND((SUM((sg.gpa_points + sg.gpa_addedvalue) * sg.earnedcrhrs) / SUM(sg.potentialcrhrs)),4) AS Cum_GPA
      FROM storedgrades sg
      RIGHT OUTER JOIN students s on sg.studentid = s.id
      WHERE sg.storecode = 'Y1'  AND sg.grade_level > 8 AND Ps_Customfields.Getcf('Students',S.Id,'selectgrp3') = '2016 12th grader' AND sg.excludefromgpa = 0
      GROUP BY s.id,s.student_number)
LEFT JOIN storedgrades sgs ON id = sgs.studentid
WHERE sgs.termid BETWEEN '2600' AND '2699' AND sgs.storecode = 'S1' AND sgs.excludefromgpa = 0
GROUP BY Student_numberCum_GPA
0

Programming Languages-Other

19K

Solutions

66

Articles & Videos

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.