Programming

52K

Solutions

40K

Contributors

Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.

Share tech news, updates, or what's on your mind.

Sign up to Post

Dear experts,

Can anyone point to any online site which can has c/c++/Python programs written/used for Financial Engineering.

The idea is show the content/calculations involved in Financial Engineering to my tutor who can then teach me leading to building my fundamentals.

My tutors teaches for Engineering college students and may not have the orientation of Financial Engineering programming features/calculations.

Kindly guide.

Thank you
0
Free Tool: Port Scanner
LVL 12
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Hello, I am a beginner in Python and I started about a week ago.  I would like to continue with Python, but there is a problem: I successfully added Python to path, so I could open MS Powershell and then type py to get started with some features like downloading modules with pip.  As I was told, I need to add pip to my path too and make a new environment variable. I copied the exact location of the file in this way C:\Users\Myname\Downloads\get-pip (get-pip was name of the file after download). I also tried C:\Users\Myname\Downloads\get-pip.py. Both of these options did not work. Then I thought that I didn't download it correctly. So I started as they wrote on their official website. https://pip.pypa.io/en/stable/installing/ After the first step MS Powershell showed me the following Error:
curl : Požadavek byl přerušen: Nelze vytvořit zabezpečený kanál SSL/TLS..
At line:1 char:1
+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
I use Windows 10. I would be very pleased, if you would answer me. If any additional information is needed,just tell me , I will try to do my best to provide it.
0
Anyone used Webflow.com to generate code and export it to be used in a programming project for the HTML and CSS?

Do you recommend it? Does it export bloated code? Can you pick through it and get to the important things? I didn't like the HTML code generators in the past due to bloated code and want to confirm that it is actually a good code generator.

thanks!
0
Hello,

I am working of getting the output sent to a printer to print correctly.

The application transfer the file directly to the printer, so there is no printer driver directly involved (driver is built in to the application).

I have a report that I want to print from this application.

When I use pdf, the report is not properly centered on the page - left margin is much smaller than right margin. Changing the pdf configuration setting directly in the printer to "scale to fit" improves the results, but still not centered properly.

If PCL is used for printing, the output is properly centers, but the last line of the page is truncated. (cut). Again it looks like the document is not properly centered lengthwise on the paper.

It does not matter if pcl or pdf is used to print the document. What is important is the the data be properly centered, both vertically and horizontally.

Does PCL have a command to automatically scale to fit that I can insert within the document or is there a better way to accomplish this with pdf as source?

Any suggestions would be greatly appreciated.

We are using a LexmarkMX611de

Thanks,

Mark
0
FILE *fp;
	if ((fp = fopen("map.bin", "rb")) == NULL) {
		puts("Unable to open file.");
		exit(7);
	}
	float mapLenght, alt;
		if (fread(&mapLenght, sizeof(float), 1, fp) != 1) {
			puts("Unable to read from file.");
			exit(18);
		}
		if (fread(&alt, sizeof(float), 1, fp) != 1) {
			puts("Unable to read from file.");
			exit(20);
		}
	//Now that the 2 floats are out of the way, I can start reading objects from the file.
	char *mapTerrain = (char *)calloc(mapLenght, sizeof(char));
	
	while (1) {
		if (fread(&Node, sizeof(struct Node), 1, fp) != 1) {
			printf("fread: %d\n", fread(&Node, sizeof(struct Node), 1, fp)); //this bit right here is problematic
			puts("Unable to read from file.");
			exit(30);
		}
	*mapTerrain = Node.terrainType;
	}
	puts("Terrain type map: ");
	while (*mapTerrain) {
		printf("[%c]", *mapTerrain);
	}
	free(mapTerrain);

}

Open in new window

Task is to display a map. A binary file begins with 2 floats and continues with objects of this format:
struct Node {
	float height;
	int terrainType;
	float visitsCount;
	struct Node *next;
}Node;

Open in new window

The function reads the first 2 floats just fine, but when it comes reading the objects, it fails for some reason, it reads 0 objects.
0
I used following code for phone call.But the call is not working .can anyone help me? I also given manfest Call Phone permission.

 call = (TextView) findViewById(R.id.GuestPhoneNo1);
        call.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                String no = call.getText().toString();
            //    Toast.makeText(Accepted_Details.this, no, Toast.LENGTH_SHORT).show();
                Intent callIntent = new Intent(Intent.ACTION_CALL);
                callIntent.setData(Uri.parse("tel:" + no));


                /*if (ActivityCompat.checkSelfPermission(Accepted_Details.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
                    // TODO: Consider calling
                    //    ActivityCompat#requestPermissions
                    // here to request the missing permissions, and then overriding
                    //   public void onRequestPermissionsResult(int requestCode, String[] permissions,
                    //                                          int[] grantResults)
                    // to handle the case where the user grants the permission. See the documentation
                    // for ActivityCompat#requestPermissions for more details.
                    return;
                }*/
                startActivity(callIntent);
            }
        });
0
hi,

What kind of Proactive monitoring tools DB2 offer? can monitor DB2 programming language anti pattern e.g.

e.g. can also monitoring down to which part of query has problem?
0
hi,

What programming capability DB2 offer to developer ?
0
When I try to run the below script as python3.6 prog5.py 4 -v 1, I just get the value of the answer but not the output of print ("{}^2 == {}".format (args.square, answer)). Same thing with a value of 2

#!/usr/local/bin/python3.6

import argparse
parser = argparse.ArgumentParser()
parser.add_argument("square", type=int, help="display a square of a given number")
parser.add_argument("-v", "--verbosity",help="increase verbosity output")
args = parser.parse_args()
answer = args.square**2
if args.verbosity == 2:
    print("the square of {} equals {}".format(args.square, answer))
elif args.verbosity == 1:
    print ("{}^2 == {}".format (args.square, answer))
else:
    print(answer)
0
How to write a macro to compare 2 date columns and if equal update status in the 3rd column as equal
0
Upgrade your Question Security!
LVL 12
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Dear EE experts,

Good day! We would like to ask for tech support regarding to SharePoint Designer 2007,
where is lookup in sharepoint designer 2007 workflow actions?
We would like to add a Lookup <xxxxx> property for <xxxxxxx>, but we couldn't find that Lookup action.
Please see the attached screenshot...
We couldn't continue to move on to another step as we don't know where's that "Lookup".

The problem is, we reinstalled everything, we have a running workflow before but the person who developed that program wasn't here anymore, so after we reinstalled that MOSS 2007, and about to re-create that workflow, we got stucked on that part...

Thank you and hope to hear for possible solutions regarding this matter...
:)
Lookup-in-SPDesignerWorkflow2007.JPG
2.jpg
0
Whenever I perform a search within a document in Visual Studio it always highlights this characters below, besides the word I searched for, which makes it very hard to find what I was searching for:
 <%
%>

How can I disable highlighting those characters ?
0
I using the below vbs and js from MS Access to insert a signature block and text box on the first page (0). How can I insert the signature block and text box on all pdf pages?

Path = "U:\mail.pdf"
Set APP = CreateObject("Acroexch.app")
APP.show
Set AVDoc = CreateObject("AcroExch.AVDoc")
Set AForm = CreateObject("AFormAut.App") 'from AFormAPI

If AVDoc.Open(Path, "") Then
'//write JS-Code on a variable ---- add signature and text box

js = " var name = ""sigField""; " & vbLf _
& " var type = ""signature"" " & vbLf _
& " var page = 0;" & vbLf _
& "var mySigRect =   [72,720,216,684]; " & vbLf _
& "var sf = this.addField(name, type, page,mySigRect);" & vbLf _
& "f = this.addField(""Text1"", ""text"", 0, [0,792,126,770]);" & vbLf _
    & "f.value = None; " & vbLf _
    & "f.flatten"
    
    '//execute the js code
    AForm.Fields.ExecuteThisJavaScript js



MsgBox ("Done")
End If


Set AForm = Nothing
Set AVDoc = Nothing
Set APP = Nothing

Open in new window

0
can anyone suggest some real-time tasks or assignments on java projects, how to achieve those? just need some tips based on your project.

example, my project is xxx and so far I worked on a couple of tasks.   can you mention briefly those tasks(at least a few assignments just for reference)?

Thanks in advance guys.
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 am configuring the Search feature in SharePoint 2016 standard. I have created a search service and search center for results. I also configured the source content and the crawl schedule. However, when I start the indexing process to crawl SharePoint it never progresses past "Starting". It is in a perpetual state of starting and I have been unsuccessful at locating information on resolving this issue and completing a crawl. I have a cmd that will stop the crawl but then it switches over to a perpetual state of stopping and never goes back to idle. Has anyone else ever encountered this issue and know how to resolve it? Thanks for any help!
0
from 5:30pm - 7:30am everyday i want to forward and bcc any google email that comes in from test@test.com to test2@test2.com.
from 7:30am - 5:30pm I what to turn off the forwarding.

Can i achieve this by using a Google Apps Script ?

Ultimately i need this to be automated so it doesn't require manual intervention

Cheers

Troy
0
How to create a cross platform application in java like ambar cloud ??

I went through the ambar cloud - open source search engine (https://ambar.cloud/ and https://github.com/RD17/ambar) and astonished at his amazing features.

I would like to build the similar one in java and not sure which tech stack i need to choose and what would be the design and what are the third party libraries might required to built it

Can some java experts help me with suggestions, comments and design and help ?
0
I am seeking a script that will do the following:

Take a file folder and rename it to a common standard across the entire organization.
Take each file within a folder and rename it to a common standard using the existing file name.

I actually have the file folder portion completed, as the powershell

Get-ChildItem -Filter "*current*" -Recurse | Rename-Item -NewName {$_.name -replace 'current','old' }

However, the issue is that the file names used are all over the board.  Examples, amongst a horde of others:

Christopher, Jack 4.2014
Christopher, Jack 042014
Christopher Jack 04-02-2014
Jack Christopher April 2014

What I would like to do is implement a standard of:

JChristopher 042014

So the script should look at the entire file name and then rename it accordingly.

Yes.  There are subfolders sometimes 4 layers deep in some instances, and I can address that separately.

However, there are literally 8K files (not file size), but files that need to meet this new standard.

It's a non-profit who were erroneously informed that they did NOT have to meet HIPPA requirements even though they work with PHI of SP adults.

I know this should be simple, with everything else that is going on, I figured it wouldn't hurt to just ask.  Perhaps someone has already encountered something similar?

Server 2012R2, workstations all running W10Pro.

Thanks,

René
0
Get expert help—faster!
LVL 12
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

This happens when a particular table is opening upon initialization.

Got this message using EurekaLog:

Exception:
--------------------------------
  2.2 Address: 008C4A85
  2.5 Type   : EApolloError
  2.6 Message: Scope Set failed.
  2.7 ID     : 4A5B93DE
  2.11 Sent  : 0

I'm aware this question is vague but I'm hoping someone on here has encountered a similar issue. Thanks.
0
I am trying to get information from our print server using an HTA script that lists the printers by name, then I would like it so that the administrator can select a printer then hit the next button and it will then list in a new window: Printer Location, Printer Comment, Printer Status, Printer IP and Printer Detected Error State.  Pasted below is what I have so far which is an older script found on these forums, I've tried everything I can think of to get the next button to do what I want but I am at a road block at the moment.

 
<head>
<title>Printer Information</title>
<HTA:APPLICATION 
	APPLICATIONNAME="Printer Information"
	BORDER="THIN"
	SCROLL="NO"
	SINGLEINSTANCE="NO"
	WINDOWSTATE="NORMAL"
	MAXIMIZEBUTTON="NO"
	MINIMIZEBUTTON="NO"
	ID="oHTA"
>
<APPLICATION:HTA>
</head>
<script language="VBScript">
Dim arrPrintServers
arrPrintServers = array("servername here")
'If you have more than one print server, seperate by commas i.e. arrPrintServers = array("Server1","Server2","Server3")

Sub Window_Onload()
	CALL CenterWindow(520,275)
	CALL FillMultiListbox()
End Sub
    
Sub CenterWindow(widthX,heightY)
	self.ResizeTo widthX, heightY 
	self.MoveTo (screen.Width - widthX)/2, (screen.Height - heightY)/2
End Sub

Sub FillMultiListbox()
	'Clear out the list box
	For Each objOption in MultiListbox.Options
		objOption.RemoveNode
	Next
	
	for each strPrintServer in arrPrintServers
		Set objWMIService = GetObject("winmgmts:\\" & strPrintServer & "\root\cimv2")
		Set colItems

Open in new window

0
I created a project with C#, in which i used 2 calendars . i would like to choose the working dates between the 2 dates.
Firstly i would like to reduce the number of calendars to one instead of 2.
I would like to choose the 2 dates in one calendar and i would like to appear the selected dates and the working days between 2 dates.

I need your advice for this  project.

my code is presented below:

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
        {


        }

        private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
        {
            this.textBox1.Text = ": Start = " + e.Start.ToShortDateString();

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void monthCalendar2_DateChanged(object sender, DateRangeEventArgs e)
        {
            this.textBox2.Text = ": END= " + e.Start.ToShortDateString();
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }
	}

Open in new window

0
Hello all!

I am new to VBA and I am doing great thanks to members like you. I would like the document I am working on to close and be saved automatically. The code I have is giving the document a name and saves the document. But before the application to quit. it is prompted again for saving.  I don't want any prompt. I want the application to be saved and quit.

I have the flowing code;

Private Sub CommandButton2_Click()

    Set dlgSaveAs = Dialogs(wdDialogFileSaveAs)
    With dlgSaveAs
        .Name = "Code Package in " & TextBox9.Value & ".docm" ' suggested name
        .Format = wdFormatXMLDocumentMacroEnabled
        .Show
    End With
   
   Application.Quit
   UserForm1.hide
   UserForm2.hide
End Sub
0
I want to call an RPGLE program, display a customer order and display the tracking number.  I'd like to use MOUBTIN to click on the tracking number, call an HTTP with Federal Express, pass the tracking number and pull up a screen that shows where the customers package is in process.  I cannot find where/how to do the HTTP call.
0
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

Programming

52K

Solutions

40K

Contributors

Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.