Programming Languages-Other

20K

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 eg-*                                                                !!!!!                                                              1

**                                                                          !!!!                                                              11

***                                                                         !!!                                                             111

****                                                                        !!                                                               1111

*****                                                                       !                                                            11111
0
Hello, I need help .. I would like to create Flash Drive (UEFI), which when run (bootable usb) clears all disks (except the USB disk with automated diskpart). (Diskpart -> select disk 1/2/3 and clean all). It would somehow create? Also, if I have the best flashdrive after launch could pull (stored in RAM) .. For example, .bat or .cmd format :) I need this flashdrive to simplify my work. :) Please help me with the creation of the USB flashdrive very please ..
0
My development tool is powerbuilder 11.5
I'll create chart in powerbuilder, but with eyecatching or much fiture. ;-)

So, I Want to use chart component - ocx form third tools.. such as (fusionchart, teechart, or other tools) ,
Note. platform application desktop version,

if any source code please share..

thanks.
0
I am trying to set the value of a checkbox to be checked but I have not been able to figure out how to determine its current state using AutoIT. Any idea how I can pull this off?

Here is the data from the control:
>>>> Window <<<<
Title:      End Labor Activity
Class:      WindowsForms10.Window.8.app.0.2004eee
Position:      78, 16
Size:      758, 694
Style:      0x16CF0000
ExStyle:      0x00050100
Handle:      0x0000000001865096

>>>> Control <<<<
Class:      WindowsForms10.Window.8.app.0.2004eee
Instance:      40
ClassnameNN:      WindowsForms10.Window.8.app.0.2004eee40
Name:      chkComplete
Advanced (Class):      [NAME:chkComplete]
ID:      8267440
Text:      
Position:      167, 279
Size:      16, 17
ControlClick Coords:      4, 13
Style:      0x56010000
ExStyle:      0x00000000
Handle:      0x00000000007E26B0
0
I get an error on running the program: No corrosponding flights found
BAPI call dosen't return data
Upon analyzing the code, I found that the program calls a BAPI:

BAPI_SFLIGHT_GETLIST

*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(FROMCOUNTRYKEY) LIKE  BAPISFDETA-COUNTRYFR
*"     VALUE(FROMCITY) LIKE  BAPISFDETA-CITYFROM
*"     VALUE(TOCOUNTRYKEY) LIKE  BAPISFDETA-COUNTRYTO
*"     VALUE(TOCITY) LIKE  BAPISFDETA-CITYTO
*"     VALUE(AIRLINECARRIER) LIKE  BAPISFDETA-CARRID DEFAULT SPACE
*"     VALUE(AFTERNOON) LIKE  BAPI_AUX-AFTERNOON DEFAULT SPACE
*"     VALUE(MAXREAD) LIKE  BAPI_AUX-MAXREAD DEFAULT 0
*"  EXPORTING
*"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
*"  TABLES
*"      FLIGHTLIST STRUCTURE  BAPISFLIST

The BAPI further calls a select:

  SELECT SFLIGHT-CARRID SFLIGHT-CONNID SFLIGHT-FLDATE
         AIRPFROM AIRPTO
         DEPTIME
         SEATSMAX SEATSOCC
         FROM SPFLI                    " connections
         INNER JOIN SFLIGHT            " flights
           ON  SPFLI~CARRID = SFLIGHT~CARRID
           AND SPFLI~CONNID = SFLIGHT~CONNID
         INNER JOIN SCITAIRP AS F      " Mapping cities to
           ON SPFLI~AIRPFROM = F~AIRPORT      " airports
         INNER JOIN SCITAIRP AS T
           ON SPFLI~AIRPTO = T~AIRPORT
         WHERE F~COUNTRY    = FROMCOUNTRYKEY    " restrictions
         AND   F~CITY       = FROMCITY
         AND   T~COUNTRY    = TOCOUNTRYKEY
         AND   T~CITY       = TOCITY
0
I have a LDAP filter that already getting the userid, I'm just trying to pass the userid from the boolean isUserAuthorized method to the doFilter method. It is printing out to the console but I can't request the value in the doFilter method. What am I doing wroing?

import java.io.IOException;
import javax.naming.directory.Attributes;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import javax.sql.DataSource;

import org.apache.commons.configuration.Configuration;

public class myFilter extends LdapFilter {
public static FilterConfig filterConfig;
public static Attributes attributes;
public AuditOracleImpl auditor = null;

public void init(FilterConfig filterConfig) throws ServletException {
  super.init(filterConfig);
  List<String>categories = new ArrayList<String>();
  categories.add("LDAP");
  try {
    super.setConfig(categories);
  } catch (Exception ex) { 
    throw new ServletException(ex);
  } 
  try {
   // Load configuration properties.
   List<String> configList = new ArrayList<String>();
   configList.add("TC");
   configList.add("TCA");
   configList.add("LDAP");

   Configuration config = SystemUtils.getConfiguration(configList);
   String strDbConnTCA = config.getString("DB_CONN_TCA");
   

Open in new window

0
I would like to know the approach one has to take to architect software product/solution. How to device a high level architecture for a product being built from scratch? Requirements: service oriented, scalable data integration (interoperability) solution.

Please share references that may help learn software architecture/design basics. I have very broad (not deep) technical background including software engineering with basic coding skills as well.

I am not trying to become an expert architect but want to know key factors, pitfalls etc  of 'modern' software architecture.
0
I watched the movie Swordfish, Stanley said "I dropped a logic bomb through the trap door" and he says right after, he used a  "Password Sniffer".

Is what Stanley is saying reality? --"I dropped a logic bomb through the trap door"?

Is there a such thing called a "Password Sniffer"?
0
I need to create a method in scala

that estimate how many people from `data` will be alive in `year`.

  def estimatePopulation(data: List[List[String]], year: Int): Int = ???


Data refers to a file that reads

("1930, "67", "76")

("1950, "65", "77")

("1970, "64", "76")

where:

the first number represents a year

the second represents the life expectancy of a man

the third represents the life expectancy of a woman

example:

" A man born in 1930 has a life expectancy of 67 years."

How to write that function?
0
i have a tab delimited file in the following format. How can i in R language convert it  to a matrix keeping the first column as character?
NAME      A      A      C      D      M
Alex      0      0      4      0      0
Max      0      0      0      0      0
Mike      72      44      22      21      45
Ada      0      1      0      0      0
Lily      0      1      1      0      1
Sanda      0      0      0      0      0
0
My method for checking for a horizontal win is not working any help is greatful
MainFile.java
ConnectFourGame.java
0
I am looking to create a social media app like Instagram. What programming languages might get me started?
0
i want to read and write 5 wav file using for loop code
for i=1:5
    for j=1:5
        fnsil=fprintf('sad%d%d.wav'i,j);
        fid=fopen(fnsil,'r');
        fr=fscanf(fid,'%f',1);
        fclose(fid)
        for a=1;fr
            kk=fscanf(fid,'%f',1);
            ex(i)=kk
        end;
    end;
end
 i run this code it shows an error
0
Dear All

  I have a graduation research Recommender System in R , I suppose to do the filtering Model for recommended movie for a user who do a survey of movie : https://movielens.org/.

There are two type models of filtering:
1-Collaborative filtering recommender systems (CFRS) .
2-Content based recommender systems (CBRS).

I suppose to try both of them and compare the results. There are many of these models is a variable to be used by  any developer simile to the following links for (CFRS):  
http://bigdata-doctor.com/recommender-systems-101-practical-example-in-r/
https://youtu.be/aCiCwscLDz8?list=PL2TxuqOc3vGqscq8lbVFqS-mdw4zMSj8v

For the time being I'm required to do a (hybrid approach filtering)  and I need someone to help me in:
1-Creating the Hypered filtering recommended system (HFRS)  .
2-Make it as (API) package that could be installed in R package.
3-Do an Integration layer if need to be integrated with any (.Net) environment for getting the
top (3-5) the recommended movies for the user whom submitting the survey.
I have good background about Liner and Multiple regression and this well help in cooperation to create the model.

So I need your advise.
0
Hi

I am trying to change the DecimalSeparator with the following code:

procedure TWealthForm.FormCreate(Sender: TObject);
var
  SystemDecimalSep: Char;
  fs: TFormatSettings;
begin
  fs := TFormatSettings.Create();
  SystemDecimalSep := fs.DecimalSeparator;
  fs.DecimalSeparator := '.';
end;

It does not seem to work though. The default on Windows is a comma and I want to change it to a decimal point. Can anyone please assist with this?

Many Thanks.
0
I am using MATLAB 2009,I have a micro-structure image and I transformed into greyscale image and then to BW.  Now I want to know the number of pixels along the scale bar (scale bar width is one pixel size), in order to calculate grain size. Please help me to find out How many pixels in the line of specified length with constant width of pixel size. using MATLAB. or suggest me other way to find the grain size from the microstructure image.
Thank you in Advance.
0
Hi,

getElementsByTagName() works with DomDocument, but it does not work with DomDocument60.

In the below snippet, getElementsByTagName(_bstr_t(".//author"), &xml2); return a NULL pointer in xml2.

When i change from DomDocument60 to DomDocument, only then it works. i need to use DomDocument60 in my project.

Any idea how this issue can be fixed, if i use DomDocument60. Any help is appreciated.
Below is the snippet:

#include "stdafx.h"

#import "msxml6.dll" raw_interfaces_only  raw_native_types 
using namespace MSXML2;

#include "stdlib.h"
#include "stdio.h"
#include <string>
#include <list>
using namespace std;

void LoadXML()
{
	HRESULT hr1, hr;
	hr1 = CoInitialize(NULL); 
	_variant_t vaNodeVal("c://Data.xml");
	
	VARIANT var1 = vaNodeVal;
	CComPtr<IXMLDOMDocument2> sSourceInputXml = 0;
	hr = sSourceInputXml.CoCreateInstance(__uuidof(MSXML2::DOMDocument60));

	if (hr == S_OK && sSourceInputXml != NULL)
	{
		VARIANT_BOOL isSuccessful = VARIANT_FALSE;

		hr = sSourceInputXml->load(var1, &isSuccessful);

		if( hr == S_OK && isSuccessful == VARIANT_TRUE )
		{

			CComQIPtr<MSXML2::IXMLDOMNodeList> xml2;
			sSourceInputXml->getElementsByTagName(_bstr_t(".//author"), &xml2); //xml2 returned over here is NULL 

			long lCount = 0;
			xml2->get_length(&lCount);
			bool isPresent = false;
			if (lCount == 0)
			{
				isPresent = false;
			}
			else
			{
				isPresent = true;
			}
		}
	}


	CoUninitialize();  
}

Open in new window


Data.xml used is:
<?xml 

Open in new window

0
Hi team,

I am facing an issue while exporting japanese text in CSV format. Junk characters are being exported instead of original japanese text. I am using encoding format as UTF8. I debugged my code and able to convert string in memory stream and vice versa and able to see original japanese text being exported. Once exporting completed, I opened the CSV file, but only able to see junk character instead of expected text. If I open the CSV file in NotePad, then i can see the expected japanese text. It would be really helpful if someone please help me find root cause of this issue and provide a resolution.

Ex. 東京都品川区大崎 gets written as æ±äº¬éƒ½å“å·åŒºå¤§å´Ž

Thanks & Regards,
Sukanta Ghorui
0
windows 10
0
Hello Sirs,

I have an old PBL without dependency PBL to add a new function inside, my way is to export function into SRM file and edit, since it's not possible save it back through PB6 when lacking of dependency PBL, is it the right way? thanks for help.
1
I mean this is a little vague but as a rule ...how long would you have to have learned or been working on/with a language (any programming language) for potential employers to take you seriously with it?

I get mixed answers whoever I ask in person or online...some people say you can be taken on in a job even if you have under a years experience learning or working with it then others will tell me it takes 2 years then others even say 3 years minimum. I am just trying to get a rough idea here. What minimum learning time do most employers look for in experience/learning a language?

What would be the minimum time? for example; a year.
0
The goal is to attain improvements in java Code Coverage

I am writing JUnit test using Mockito to mock DAO Implementation classes created with Spring's JDBC template  and SimpleJdbcInsert.
Spring src/main/java Class:-

import java.util.HashMap;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;

public class SpringClass {
	private SimpleJdbcInsert insertObj;
	private JdbcTemplate template;
	public void setJdbcTemplate(JdbcTemplate template) {
			this.template = template;
			this.insertObj = new SimpleJdbcInsert(template).withTableName("XYZ").usingGeneratedKeyColumns("ID");
		}

	public int insertObjMethod(ParamObj paramObj){
			
			
			
			Map<String, Object> parameters = new HashMap<String, Object>();
			parameters.put("YEAR", paramObj.getYear());
			Number id = insertObj.executeAndReturnKey(parameters);
			return id.intValue();
}

Open in new window



Spring src/test/java Class:-


import org.apache.tomcat.jdbc.pool.DataSource;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;

public class SpringClassTest {
JdbcTemplate template;
	SpringClass dao;
private SimpleJdbcInsert insertObj;
Map<String, Object> parameters = new HashMap<String, Object>();
@Before
	public void setUp() throws Exception {
insertObj= Mockito.mock(SimpleJdbcInsert.class);
parameters.put("YEAR", InsertObj.getYear());
Mockito.doReturn(new Integer(1).intValue()).when(insertObj).executeAndReturnKey(parameters);
}

	@Test ///(expected=java.lang.IllegalArgumentException)
	public void testinsertObjMethod() {
Mockito.doReturn(new Integer(1)).when(insertObj).executeAndReturnKey(Mockito.anyMap());//
		//try{
		dao.SpringClassObject(insertObj);
}

Open in new window


I end up getting error:-
Stack Trace:-
java.lang.IllegalArgumentException: No DataSource specified
	at org.springframework.util.Assert.notNull(Assert.java:112)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:97)
	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
	at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:280)
	at org.springframework.jdbc.core.metadata.TableMetaDataProviderFactory.createMetaDataProvider(TableMetaDataProviderFactory.java:63)
	at org.springframework.jdbc.core.metadata.TableMetaDataContext.processMetaData(TableMetaDataContext.java:205)
	at org.springframework.jdbc.core.simple.AbstractJdbcInsert.compileInternal(AbstractJdbcInsert.java:276)
	at org.springframework.jdbc.core.simple.AbstractJdbcInsert.compile(AbstractJdbcInsert.java:263)
	at org.springframework.jdbc.core.simple.AbstractJdbcInsert.checkCompiled(AbstractJdbcInsert.java:309)
	at org.springframework.jdbc.core.simple.AbstractJdbcInsert.doExecuteAndReturnKey(AbstractJdbcInsert.java:369)
	at org.springframework.jdbc.core.simple.SimpleJdbcInsert.executeAndReturnKey(SimpleJdbcInsert.java:133)

Open in new window

0
Hello

Currently my transform template has got the code
that extracts first initial, last initial, last four of social, and month & day of birth

I want to update this code so the xslt transforms

first initial, last initial, but then use the Resume ID Number instead of part of their social and date of birth. Having said that,I need there to be eight numeric numbers, so if you could script it to fill in 0's until the eight numbers are complete,
Example
FirstName: CHUCK
LASTNAME: SCOTT
RESUMEID: 54512

I want to transform something like this ...CS54512000.

I have attached my current script with reference to my old transform.
0
I have a data base with about 180 records that have multiple yes no boxes for each record.  When I try to append information to a table based on the boxes it will not let me go above record 110 in appending the records.  ID's below 110 work find.

The code seems to be fine and there are no violation keys set.

What is happening and how can I fix this.
0
simple java chat application to develop in my java project using spring 3.0 in Eclipse IDE
0

Programming Languages-Other

20K

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.