Programming

53K

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

Hi,

I used below to draw one flow diagram
https://www.draw.io/

when i saved to my computer it is saving as .XML file

I want to save it as image file for my diagram

how can i achieve this

please advise
0
Determine the Perfect Price for Your IT Services
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

How to prepare design document for a project enhancement without starting the coding work.

For the sequence and flow etc diagrams of the design document i need the class names, method names etc right even before starting the coding work.
any good links and references and tutorials, videos around this
please advise
0
I have an existing client who's asking me if I'm a "Stripe Developer" .. and I'm not exactly sure how to answer him, so I thought perhaps I should just ask here first.

QUESTION: Does implementing the Stripe payment method on a website require any kind of understanding of their API, and does it require any kind of custom programming (ie: PHP) ?  Or can it be implemented much more easily .. without any back-end programming being required at all whatsoever?  On a related note .. does the Stipe payment gateway handle the sending out of the payment confirmation emails?  Or would I need to handle that myself (ie: PHP) ?

I just want to know how to best answer my client, as I wouldn't want to underestimate the development costs.  Please advise.

Thanks,
- Yvan  

p.s. I'm already aware of the WordPress option.  Tha's not an option in this particular situation, so please withhold your responses regarding that approach.
0
I would like to build a website that has content (videos, pictures, .zip files) and the ability to download the content for only the people who sign up and pay a monthly and or yearly cost. What skills would I need to know to achieve this? For example, when signing up to Expert-Exchange, you need to create a account, what tools are behind that? Database? I don't know the correct "tech" names.
0
For a long time, I consider it very cumbersome to handle every possible exception in many function calls, especially in trivial cases where a return value could be used in a meaningful way even in the case of unexpected behaviour - Here I want to describe something I developed to make this easier.
0
Hi Expert,
I have a requirements to upgrade more than 500 SQL Server 2008 R2 along with STIG.  I have plan to have a separate image for SQL Server 2008 R2 Enterprise, Standard & Express along with STIG.

Is there any way can do automation script for STIGing version for  SQL Server 2014 or later.

Thanks

Zahid
0
Moving from Windows to Linux...

Dears,

I am about to embark in the journey of Java programming and I am seriously considering to do a switch to Linux (Ubuntu ? Zorion ? Centos???etc..).

 I would still need to run few apps on Windows, But I have made peace with this and I will be using VirtualBox VM for those specific apps. I have a powerful Laptop. and enough space.(SSD).

My question is which flavor is best for this ? (Development Platform for JAVA , Groovy, Docker...)
I need something solid and reliable..

I have read a bit and it seems that Ubuntu 18.04 is the latest stable one ... and preferable to 18.10

Please your feedhacks...

Thanks
0
I am operating Windows 7 with Access 2010.  I have been programming in Access
for close to 20 years. I also been using active X items within our programs. The one that
I need to have is the "Common Dialog" I use mostly for printer functions. I have this particular
active x in many of the forms we use. When I try try insert the common dialog box I get a
message that I don't have the rights to use them. I am not adverse to paying for the rights
if I new were to go to get them? I am curious as why this is happening now.
0
using microsoft visio 2013 standard how to draw various diagram like below
1. sequence diagrams
2. flow diagrams
3. activity diagram
4. user interaction diagrams
5. database diagrams
6. any other similar type of system, system flow diagrams

any good video tutorials, resources, , links around this?
please advise
0
Attached is an Excel document, Excel_EqualWidthCells.Xlsx that has two sheets, one labeled "Structure".
The other is labeled, "Header-Footers", and looks like this:
Headers	Footers	 -- There is inconsistent use of "…", so assume that "…Begin" and "Begin" are keywords
…Begin	…End	 -- Notice the "…" acts like it is a singe char
…If		         -- Assume case insensitivity, so "BEGIN" and "begin" are also matches
…For		

Open in new window

For simplicity, I can remove the "…" from the document. Other tables have different keywords for their headers/footers, so I'll just change the corresponding headers and footer keywords in the VBA code.

The attached Excel_EqualWidthCells---ManualInden.xlsx document shows the desired result after the indentation macro is run.

The Excel_EqualWidthCells.xlsx file is very flat looking, yet describes a complex structure using headers and footers. I manually indented sections of rows so that I could see the structure. This is tedious, but doable.

One suggested approach in a different question is found here.
https://www.experts-exchange.com/questions/29131489/Use-keywords-and-expressions-to-indent-nested-structures-in-Excel.html#a42769597
"This can be done with a stack structure, where you push a set of items on the stack when some condition is detected and remove them when another condition is detected.  In your case the first set of conditions is a cell that begins with ("loop", "if") and the second set of conditions is a cell that begins with ("end").  If you're working in Excel, you might use the stack 'level' (depth) as a parameter in an .Offset() method.

"With as simple a problem as this one, your stack structure can be an integer variable.  You might indent as you iterate the rows."
0
Starting with Angular 5
LVL 12
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

I have a C# program that runs perfectly under Windows 10.  It uses Connected Services so that I can add in additional Class and Method functions to connect to Ultimate Software's HR system and pull our employee information from.  What I would like to do is run this application under Linux CentOS.  I installed Mono for Linux on both CentOS 6 and CentOS 7; and verified 100% that it can and does run compiled Visual Studio C# programs under Linux.  No problem.

However, when I run the EXE program under Linux Mono, it does not connect to the external website defined in Connected Services.

Here is the line it is failing on.

loginClient = new LoginServiceClient("WSHttpBinding_ILoginService");

Open in new window


And the error I get back, is (of course), a NullReferenceException as the defined object of 'loginClient' never gets instantiated.

System.NullReferenceException: Object reference not set to an instance of an object.

Open in new window


Has anyone ever successfully taken an EXE file for Windows using Connected Services and run it under Linux Mono?

Thank you,
Jeff
0
visio 2013 standard does not show the "UML Sequence" template as shown below
https://www.youtube.com/watch?v=_xtZIDI8Ajg
only professional viso 2013 shows it?
are there existing sample diagrams which i can use as sample and modify on top of them easily?
any alternate tool to draw these type of diagrams easily apart from visio like free open source tools?
Please advise
0
I have a text file which has duplicate lines... I need to remove any dupes and leave just one of them. The file also needs  2 different strings of words replaced with different strings of words IF either of the 2 original strings exist.

Is this even possible via Windows batch?
0
how to understand big new project code quickly and effectively to write new enhancement to existing code or to fix some defects or to debug to improve some areas of poor performance.

what are the tips and recommendations , best practices around this
Please advise
0
what is difference between below two eclipse short cuts

control +alt+h
(above does not yield any results saying members calling that method in workspace it shows at bottom again same method nothing else)

control +shift+g
(above shows like 8 references in workspace)

please advise
shortcut.png
0
How to extract NTFS Disk Security user list which was added in a disk using command prompt
0
This article examines the significance of prioritizing explainability over accuracy to enhance the transparency of the system and increase a user's trust in the system. It also gives an approach on how to implement the same.
0
LVL 1

Expert Comment

by:PeeterB
Comment Utility
Ah! Great article .... a lot of thought went into this .... and great to see this whole overview of approaches and the issues involved documented so concisely and eloquently ....
1
Hi Team, Need 2 help with my excel file.

1. I have attached 2 file. Daily report should update on  as per date in utilization sheet.xlsm. See the attached Daily Report file where i have use macro record option.

Need: I need that once date get change from 07-Jan-19 to 08-Jan-19 in (E7: Daily report.xls) so update button should take data from next column (G8, G21).

2. Once we are taking the screenshot its taking TAB name in 1st row, instead of tab name, i need that it should  take (E8) "Daily Work hour report for 07-Jan-19" text.

Thanks
Utilisations.xlsm
Daily-Report.xlsm
0
Xpdf - PDFtoPS - Command Line Utility to Convert a PDF File to PS (PostScript)
In this tenth video of my Xpdf series, I discuss and demonstrate the PDFtoPS utility, which converts a PDF file to PostScript (PS). Also, it provides an option allowing creation of an Encapsulated PostScript (EPS) file. It performs its functions via a command line interface, making it suitable for use in programs, scripts, batch files — any place where a command line call can be made.

1. Download the software


You may have already downloaded the Xpdf tools while watching one of my earlier videos in the series, but there has since been an upgrade from Version 3 to Version 4 and there is a new download site:

https://www.xpdfreader.com/download.html

Visit that site and download the pre-compiled Windows binary ZIP archive, then unzip it.

Step1

2. Locate the documentation folder for the Xpdf utilities


Go to the folder where you unzipped the downloaded ZIP file and find the doc folder.

Step2

3. Read the documentation for the PDFtoPS tool


Go into the doc folder and find the plain text file called pdftops.txt.

Open it with any text editor, such as Notepad, and read it. This is the documentation for the PDFtoPS tool.

Step3

4. Set up a test folder


Create a test folder.

Copy pdftops.exe from the unzipped bin32 folder into your test folder.

Copy a sample PDF file into your test folder.

Step4

5. Set up a command prompt for testing


Open a command prompt window.

Navigate to your test folder.

Issue a DIR command in the command prompt to be sure that only two files are in it - the PDFtoPS executable and the sample PDF file.

Step5

6. Run the PDFtoPS utility to create the PostScript file


Issue the following command in the command prompt:

pdftops TestFileName.pdf
1
LVL 25

Expert Comment

by:Andrew Leniart
Great video and introduction to a very useful tool indeed.
0
LVL 63

Author Comment

by:Joe Winograd, Fellow&MVE
Thank you, Andrew, I appreciate the compliment and the endorsement. Happy New Year! Regards, Joe
0
Big Business Goals? Which KPIs Will Help You
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Xpdf - PDFtoPPM - Command Line Utility to Convert a PDF File to PPM, PGM, PBM
In this ninth video of my Xpdf series, I discuss and demonstrate the PDFtoPPM tool, which converts a PDF file to color portable pixmap (PPM) format, grayscale portable graymap (PGM) format, or monochrome (black & white) portable bitmap (PBM) format. It creates a separate image file for each page of the PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any place where a command line call can be made.

1. Download the software


You may have already downloaded the Xpdf tools while watching one of my earlier videos in the series, but there has since been an upgrade from Version 3 to Version 4 and there is a new download site:

https://www.xpdfreader.com/download.html

Visit that site and download the pre-compiled Windows binary ZIP archive, then unzip it.

Step1

2. Locate the documentation folder for the Xpdf utilities


Go to the folder where you unzipped the downloaded ZIP file and find the doc folder.

Step2

3. Read the documentation for the PDFtoPPM tool


Go into the doc folder and find the plain text file called pdftoppm.txt.

Open it with any text editor, such as Notepad, and read it. This is the documentation for the PDFtoPPM tool.

Step3

4. Set up a test folder


Create a test folder.

Copy pdftoppm.exe from the unzipped bin32 folder into your test folder.

Copy a sample PDF file into your test folder, preferably one with numerous pages.

Step4

5. Set up a command prompt for testing


Open a command prompt window.

Navigate to your test folder.

Issue a DIR command in the command prompt to be sure that only two files are in it - the PDFtoPPM executable and the sample PDF file.

Step5
1
Xpdf - PDFtoHTML - Command Line Utility to Convert a PDF File to HTML
In this eighth video of my Xpdf series, I discuss and demonstrate the PDFtoHTML utility, which, exactly as its name says, converts a PDF file to HTML. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any place where a command line call can be made.

1. Download the software


You may have already downloaded the Xpdf tools while watching one of my earlier videos in the series, but there has since been an upgrade from Version 3 to Version 4 and there is a new download site:

https://www.xpdfreader.com/download.html

Visit that site and download the pre-compiled Windows binary ZIP archive, then unzip it.

Step1

2. Locate the documentation folder for the Xpdf utilities


Go to the folder where you unzipped the downloaded ZIP file and find the doc folder.

Step2

3. Read the documentation for the PDFtoHTML tool


Go into the doc folder and find the pdftohtml.txt file.

It is a plain text file. Open it with any text editor, such as Notepad, and read it. This is the documentation for the PDFtoHTML tool.

Step3

4. Set up a test folder


Create a test folder.

Copy pdftohtml.exe from the unzipped bin32 folder into your test folder.

Copy a sample PDF file into your test folder, preferably one with numerous pages.

Step4

5. Set up a command prompt for testing


Open a command prompt window.

Navigate to your test folder.

Issue a DIR command in the command prompt to be sure that only two files are in it - the PDFtoHTML executable and the sample PDF file.

Step5

6. Run the PDFtoHTML utility


Issue the following command in the command prompt:

pdftohtml TestFileName.pdf HTMLfolder
2
xpdfrc - Configuration File for All Xpdf Utilities
This is the eleventh — and final — video of my Experts Exchange Micro Tutorials on the Xpdf utilities. The first video is an overview of the command line tools. The next nine videos are tutorials on all them:

PDFimages - Extract Images from PDF Files
PDFtoText - Convert PDF Files to Plain Text Files
PDFinfo - Retrieve Page Count and Other Information from PDF Files
PDFdetach - Detach Attachments from PDF Files
PDFtoPNG - Convert a Multi-page PDF File into Separate PNG Files
PDFfonts - List Fonts Used in a PDF File
PDFtoHTML - Convert a PDF File to HTML
PDFtoPPM - Convert a PDF File to PPM, PGM, PBM
PDFtoPS - Convert a PDF File to PS (PostScript)

This last video in the series discusses xpdfrc, which is the single configuration file that Xpdf uses for all nine utilities. It provides an enormous number of options, allowing extensive control of the tools, such as character mapping, font configuration, PostScript control, rasterizer settings, text control, and much more.

1. Download the software and fonts


You may have already downloaded the Xpdf tools while watching one of my earlier videos in the series, but there has since been an upgrade from Version 3 to Version 4 and there is a new download site:

https://www.xpdfreader.com/download.html

Visit that site and download the pre-compiled Windows binary ZIP archive, then unzip it.

Download the Symbol and Zapf Dingbats fonts from the same page.

Step1

2. Locate the documentation folder for the Xpdf utilities


Go to the folder where you unzipped the downloaded ZIP file and find the doc folder.

Step2
1
I need to test the below Java main class with JUnit and Mockito/EasyMock without using PowerMockito so that I get the Code Coverage in Jacoco. I want to have the output as "Mocked Result" without getting the actual output as "Actual Result" when I call the MainClass.process() method in the Test Class.

public class MainClass {
   
    public String process() {
          AnotherClass another = new AnotherClass();
     String result = another.getResult();
          return result;
    }
}
-----------------------------------------------------------------------------
public class AnotherClass {
      public String getResult() {
            return "Actual Result";
      }
}
----------------------------------------------------------------------------
0
Controllable Knight Rider LED project

I have a WS2812B-5M light strip and a SP105E Magic Controller.  Unfortunately, the SP105E does not have the mode I would like.

Specifically, i'd like to cut off about 30" of LED strip and make a controllable Knight Rider type light strip.  

What I mean about Knight Rider is that one LED will fade in then one LED will be bright and then the trailing LED fade out while moving from one end of the strip to the other and back again.  The SP105E does not have a preset program that does this.

I would also like to control:
     1.  the color of the LED
     2.  the speed of the LED (how fast the LED moves from one end and back)

The control can happen with a USB connection to my laptop although a Bluetooth iPhone connection like the SP105E would be preferred.

Can someone suggest
     1.  where I can get this code for a Knight Rider effect (or where I can have it coded for it to be fully controllable)
     2.  what controller, or hardware (Bluetooth would be so cool), I would need to download the code into and then connect to the light strip
     3.  and what I would need on my computer to download from my computer to the controller or
     4.  what software on my computer to have the light strip connected to my computer via usb to control the LED strip

thanks for your help!
0
Scenario:
A particular business card design can only accommodate up to three phone numbers.

Assume the phone numbers are always formatted as 10 digits with dashes. For example:
   Mobile: 456-789-1234
   Office: 987-654-3210
   Fax: 345-678-9012

There are only 2 lines to accommodate 3 phone numbers.

If (and only if) all 3 phone numbers contain a value, then the mobile and office numbers must appear on the first line, and the fax must appear on the second line, like this:
Mobile: 456-789-1234    Office: 987-654-3210
Fax: 345-678-9012

If (and only if) one of the 3 phone numbers does not contain a value, then the remaining 2 numbers must appear on their own line, like this:
Mobile: 456-789-1234
Fax: 345-678-9012

The example above assumes the Office number is the empty field. But if the Mobile number was the empty field then it would look like this:
Office: 987-654-3210
Fax: 345-678-9012

And if the Fax number was the empty field, then it would look like this:
Mobile: 456-789-1234
Office: 987-654-3210

If 2 of the 3 numbers are empty, then return just the one remaining number.

So given all of the possible phone number combinations, we have:
M   O   F
M   O
M       F
M
    O   F
    O
        F

Open in new window


I've managed to write JavaScript code using a bunch of if/then blocks, but I am sure there is an easier way to do it.
What is the most efficient code block that can return up to 3 phone numbers but follow the format rules above?
(Assume …
1

Programming

53K

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.