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 this site
http://my-friend.co/Test_rec4/Default.aspx?userid=mc23

I want to decrease the width of the highlighted area (in red), and increase the width of the area (highlighted in yellow), and to put two more buttons (under current Delete button). Can you please show me the change for these?
16j.png
0
Want Experts Exchange at your fingertips?
LVL 9
Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

hi,

in eclipse java project i have below stored procedure in a DAO class say LMN.java


abc_TerminalXYZ_Select

wen i search on it eclipise not finding.
how to find all the stored proc similar to above in all DAO classes?
what are best search strategies to find what i want in eclipise?
please advise
0
I Want to disable clipboard option for citric clients, and in citrix  server'.
how to disable can anyone help me please
0
What is tunneling and JRMP and DMZhow they are related to firewall and ports and network. Why we use tunneling. please advise
0
Hi,
I sent a data through Hyperterminal and I am able to see the data in TMC420 Display Screen.
But When I send data through Labview I am not able to see the data in display screen.
Is there any hints?



Thanks,
Mohanraj
0
http://codingbat.com/prob/p128270
public int[] front11(int[] a, int[] b) {
 
  if (a.length==0) return new int[]{b[0]};
  if (b.length==0) return new int[]{a[0]};
   if ((a.length==0) && (b.length==0)) return new int[]{};
  return new int[]{a[0],b[0]};
}





public int[] front11(int[] a, int[] b) {
    if ((a.length==0) && (b.length==0)) return new int[]{};
  if (a.length==0) return new int[]{b[0]};
  if (b.length==0) return new int[]{a[0]};

  return new int[]{a[0],b[0]};
}




why first one fails below test with ArrayIndexOutOfBoundsException
Expected	Run		
front11([1, 2, 3], [7, 9, 8]) → [1, 7]	[1, 7]	OK	
front11([1], [2]) → [1, 2]	[1, 2]	OK	
front11([1, 7], []) → [1]	[1]	OK	
front11([], [2, 8]) → [2]	[2]	OK	
front11([], []) → []	ArrayIndexOutOfBoundsException: 0 (line:3)	X	
front11([3], [1, 4, 1, 9]) → [3, 1]	[3, 1]	OK	
front11([1, 4, 1, 9], []) → [1]	[1]	OK	
other tests
OK	
Correct for more than half the tests

Your progress graph for this problem

Open in new window


please advise
0
I have question about the GA application in an intrusion detection, what programming language can be applied for this type of problem.
0
hi,

http://codingbat.com/prob/p136950

for above challenge
Map-1 > mapAB4
prev  |  next  |  chance

Modify and return the given map as follows: if the keys "a" and "b" have values that have different lengths, then set "c" to have the longer value. If the values exist and have the same length, change them both to the empty string in the map.

mapAB4({"a": "aaa", "b": "bb", "c": "cake"}) → {"a": "aaa", "b": "bb", "c": "aaa"}
mapAB4({"a": "aa", "b": "bbb", "c": "cake"}) → {"a": "aa", "b": "bbb", "c": "bbb"}
mapAB4({"a": "aa", "b": "bbb"}) → {"a": "aa", "b": "bbb", "c": "bbb"}

what are input parameters for the method.

what is the return for it?


"a": "aaa", "b": "bb", "c": "cake"//is these are bunch of string values pretending to be key and value for a map??

please advise on how to understand and approach this challenge
0
Hello,

I need a collision function for a random number of 3D objects (TCube) in a Viewport.

Only one of TCube object is moving at a time (by mouse move) and i need to collide (and stop) when another 3D object standing in his way.

I try a lot of ideeas but with small result.
0
I had this question after viewing VB .Net - web browser control.  Automate clicking on and manipulating popup windows after downloading .exe file.

Basically, I am trying to do almost the same thing but I don't want to wait for the "Choose File to Upload" window to load. Instead, I'd like to:

1) Wait till the window becomes available
2) Automatically hide the window and send it back once it becomes available by intercepting the opening of that window
3) Set the file location to the file upload window in the background
4) Once set, click the "Open" button (like how it is being done now)

Could someone please provide some code on this scenario as I really need to get this working.

Cheers.
0
Get 15 Days FREE Full-Featured Trial
LVL 1
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Hi,
I tried below challenge as
http://codingbat.com/prob/p167430
public class Has271 {

	public static void main(String[] args) {
		int[] arr={1, 2, 7, 1};
		// TODO Auto-generated method stub
		System.out.println("Value is"+has271(arr));//should get true but getting false
	}
	
	public static boolean has271(int[] nums) {
		 int val=nums[0];
		 
		 for(int i=0;i<nums.length-2;i++){
		   
		   if(  (nums[i+1]==val+5)
		   && (  (Math.abs(nums[i+2]-val)<=2) )  )
		   return true;
		   continue;
		 }
		 return false;
		}


}

Open in new window


what is wrong with my above code why i am getting false instead of true?
please advise
0
Hi,
How to adjust to list below, to have also one picture file included, that is retrieved from database?

            using (SqlConnection sqlConn = new SqlConnection(ConfigurationManager.ConnectionStrings["Mssqlconn3"].ConnectionString))
            {
                using (SqlCommand sqlCmd = new SqlCommand("SELECT house_name, address1, address2, price, price_curr 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 = dataRow.Field<string>("price_curr"),
                                        })
         

Open in new window

0
Hello
I need to know what would you advise as responsive website language to de develop a website having this features :
- Community having their own space
- Google map and geolocalisation
Thanks for your help,
Johana
0
Dear Experts, I'mt rying to use GO to read a json file that I have.

I'm using the following code:
package main

import (
	"fmt"
	"encoding/json"
	"io/ioutil"
)

func main() {

	b, _ := ioutil.ReadFile("/home/david/jsontest/create.jsontest.campaigns.ninja.json")

	type UserData struct {
		user_id    string
		user_email string
		user_name  string
	}

	type campaign struct {
		domain      string
		Ssl         int64
		server_key  string
		certificate string
		bundle      string
		php_ver     string
		wp          int64
		lang        string
		start_date  string
		end_date    string
		description string
		user_data   UserData
		CampaignID  int64
	}

	var m campaign
	err := json.Unmarshal(b, &m)
	if err != nil {
		panic (err)
	}
	fmt.Printf("%d", m.CampaignID)
	fmt.Printf("%s",m.user_data.user_email)
}

Open in new window


When I run the code however, the Result is this:
/usr/lib/golang/bin/go run /home/david/GoglandProjects/CampaignsNinja/jsontest.go
80099700
Process finished with exit code 0

Which is correct, but partial.. I'm missing the 2nd value which should be 74 (according to the  attached JSON below)

{"domain":"jsontest.campaigns.ninja","ssl":1,"server_key":"","certificate":"","bundle":"","php_ver":"5.6","wp":1,"lang":"english","start_date":"2017-02-02","end_date":"2017-03-02","description":"This is a test","user_data":{"user_id":"74","user_email":"usertest@gmail.com","user_name":"usertest"},"CampaignID":80099700}

Any Ideas why is the code behaving that way?
0
Hello

Let's say i narrow the language in github search. I further want to specify a string to search for in all the repos available. Possible? How?

thanks
0
Do you have the source code for Metro Board Game in Prolog. Here is the description : http://www.bluering.nl/sieuwert/games/metro/  Thank you.
0
I have successfully installed LinqToXSD which is supposed to enforce strong typing and also provide a relatively easy way to create XML files but there are no classes to use "new" on which should create the document.  Does anyone know how to create a class that is an XML Document that is tied to a LinqtoXSD schema?
0
Hello,
For testing and verification purposes, I am trying to compute the count of good duplicates found in both Data1 and Data2  and in Data3, and in one or the other. These are the steps I am trying to accomplish to get to my final results:

#1.  Create a list (Data4) of unique Data1 and Data2 where variable rec_flag=A, B, C, D.
#2.  Build a duplicate (Data5) file from the list in #1 by generating a record linking each two records where Var3 and Var4 are linked to the same Var6 and Var7.
#3.  Match Data5 file with Data3 where variable rec_flag=B, C, D using key variables Var3, Var4, Var6, and Var7.
#4.  Display in the output .lis the number of records in:
     #4.1 Both Data5 and Data3
     #4.2 Data5 only
     #4.3 Data3 only
 
The issue that I am having is with #2 where I need to build a duplicate file Data5.

Here is my SAS code below with missing step #2:

libname mydir "/home/myprofile/links"; 
%macro cnt_lnks;

 /*  #1 */
proc sort data=mydir.Data1
          out=Data1out(where=(rec_flag='A', 'B', 'C', 'D') keep=Var3 Var4 Var6 Var7 rec_flag);
          by Var3 Var4 Var6 Var7;
run;

proc sort data=mydir.Data2
          out=Data2out(where=(rec_flag='A', 'B', 'C', 'D') keep=Var3 Var4 Var6 Var7 rec_flag);
          by Var3 Var4 Var6 Var7;
run;

/*********************************************
 Datastep: merge Data1 & Data2
           by Var3 Var4 Var6 Var7
 ********************************************/
data all_links1;
  merge 

Open in new window

0
I have created a copy of a built-in report in SCCM (1702) and created my own custom copy. Everything is fine except I cannot figure out how to update the displayed title and description. They're not matching the actual custom report title and description defined when I "Manage" the report in SSRS b/c the fields are defined expressions that point back to some other data source.

Title:
=SrsResources.Localization.GetString("Report234_Name", User!Language) + "  "

Description:
=SrsResources.Localization.GetString("Report234_Description", User!Language)

I don't see where the "Report234" or "Report234_Description" values are defined in the report. They're not fields, variables, or parameters. I can't find them defined in any of the datasets created for the report. Where do I find these (I don't even know what to call them)?

I tried changing the description for the original report in SSRS (select report in SSRS > Manage > change description > Apply), and then rerunning the report, and the change in description is NOT displayed.  So where are these descriptions being defined?!?

I "need" to figure this out. Our service desk relies on several custom reports and it will create a lot of confusion if the wrong title and description is displayed.
0
Get HTML5 Certified
LVL 9
Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

I have fixed size panels (used for charting). It has X and Y axes virtually (not plotted visibly). So, if I add controls (say bar or lines) horizontally in the panel beyond its bounds, it will display while scrolling.

Like, if I add controls (same bar or lines) vertically in the panel beyond its bounds, it will not automatically adjust or visible, while moving horizontal scrollbar.

I dont want vertical scrollbar in panel. Need only horizontal scrollbar in panel. If I move horizontal scrollbar, vertically out of bound controls should display automatically or adjust itself.

The horizontal scrollbar in panel is not Auto Scrollbar attached to panel. We should use Horizontal Scrollbar Control and while moving the HSBar Control, the panel would move horizontally. Both should synchronize exactly.
0
Hi,
Based on schema file like the attached, how can I derive the relevant sample EDI file?
0
I'm just trying to find the right syntax to use to set the background color of a node in json with google charts.

This is the code I have and of course it's not working because I have no idea what I'm doing.

	
$style = new stdClass;
$style->p = "style: 'background-color:green;'";
$item->p = $style;

Open in new window


There's more to my code of course but this is what I'm using to set the background color of a specific node.
0
I have java text file and I want to find out how many variables are declared and initialized in that file?
I have also done one small program but that only find the how many data types are declared..........


import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;



public class Variables
{
    public static void  main(String abc[]) throws FileNotFoundException, IOException
    {
 
     try {
         ArrayList<String> a=new <String>ArrayList();
         a.add("byte");
         a.add("short");
         a.add("int");
         a.add("long");
         a.add("float");
         a.add("double");
         a.add("boolean");
         a.add("char");
         
          ArrayList<KeyWords> k;
        KeyWords kw;
        k=new <KeyWords>ArrayList();
   
       
     for(int i=0;i<a.size();i++)
       {
           System.out.println("i="+i);
              String str=a.get(i);
              System.out.println("Checking for= "+str);
     
            FileReader fileIn = new FileReader("/home/milind/fileVar.txt");
            BufferedReader reader = new BufferedReader(fileIn);
            String line;
            int count = 0;
           // String f="float";
            char chk=',';
            while((line = reader.readLine()) != null)
            {
               System.out.println(line);
               if(line.contains(str))
              …
0
I'm trying to display the word "Hello" when the time equals to a hard-coded time. What I have below doesn't work. Can you please help? Thanks!


local function alarm()
      if (year ==2017 and month == 4 and day ==23 and hour== 16 and minute == 51) then display.newText("hello", 160, 200, impact, 23)
end
0
Hi, I am using the below code to match some data from an input csv to 2 drop downs from a website, then download both a csv and pdf... (the csv, I am extracting info from, then overwriting it with the next download since I do not need it -- the pdf, I am keeping, if the day of the month is the 1st or the 15th... but, as you can see here, for testing, I have it set to today, the 14th, instead of 15th)

My problem is that it will run Ok, for the first 10 lines or so (the csv list is between 1200-2500 lines, so i'm not even close..)
but then, it will throw the below error:

[Errno 10061] No connection could be made because the target machine actively refused it

Can anyone help me resolve this? I am new to python, scraping AND selenium so would appreciate any help -- or suggestions regarding making the code more efficient in general. Thank you!

# -*- coding: utf-8 -*-

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import unittest, time, os, shutil, csv
from fuzzywuzzy import process
import datetime

class Here(unittest.TestCase):
    def setUp(self):
        path_to_chromedriver = 'chromedriver.exe'  # change path as needed
        self.driver = webdriver.Chrome(executable_path=path_to_chromedriver)
        self.base_url = "https://mybaseurl/"
        

Open in new window

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.