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

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
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.

visio 2013 standard does not show the "UML Sequence" template as shown below
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
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
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
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!
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
    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 …
how does Auto Merge in Team Foundation Server work? There must be an algorithm to auto merging in for Code management.
I have a multi-dimensional array that i want to loop through and find any key/value duplicates. If there is a duplicate i want to add the quantities together and then remove one of them from my array (array_filter).

For example, this is my Array of Arrays. If there is a duplicate sku => i want to add their quantities together and then remove one from the array based on the ID (it will always be unique).

DEP1030BLKCO - this sku is duplicated twice. So i would like to add their quantities together (8+8) and remove one of their keys so its a single DEP1030BLKCO sku with quantity of 16.

I know that i can initialize an array variable $duplicates to store IDs of duplicates and then use an array filter function to filter out any IDs added to the array (essentially removing duplicates) but how can i find the duplicates? I saw array_unique but im unsure if that will help in this situation.

Is there a better approach than *this?

Array (   

  [DEP2000RODSIDL2] => Array
            [product_id] => 167
            [sku] => DEP2000RODSIDL2
            [name] => Side Rod - Large
            [weight] => 1.00
            [quantity] => 32
            [product_options] => 
            [id] => DEPRODSIDL

    [1DEP1030BLKL] => Array
            [product_id] => 173
            [sku] => DEP30BLKL
            [name] => Large Black
            [weight] => 12
            [quantity] => 1
            [product_options] => 
            [id] => 

Open in new window

I have the following String.Join that I'm creating a csv export from but I'm having dificulty formating to a new line when it come the  Done By property String.Join(",", x1.StationActivity.SelectMany( y => y.ProductsUsed).Select(z => z.DoneBy))?? string.Empty,

I have included a screen shoot in what I'm trying to accomplish with my sample code.

                headerNames1.Add(ServiceAssistant.Tools.Language.Translate(Tools.Language.Keys.Product_Code, ViewBag));
                headerNames1.Add(ServiceAssistant.Tools.Language.Translate(Tools.Language.Keys.Description, ViewBag));
                headerNames1.Add(ServiceAssistant.Tools.Language.Translate(Tools.Language.Keys.Target, ViewBag));
                headerNames1.Add(ServiceAssistant.Tools.Language.Translate(Tools.Language.Keys.Done, ViewBag));
                var headers1 = String.Join(",", headerNames1.ToArray());

                foreach (var x1 in (List<StationHistoryReportResults>)TempData["excsv"])

                    var data1 = String.Join(",", new string[] {
                      String.Join(",", x1.StationActivity.SelectMany( y => y.ProductsUsed).Select(z => z.ProductCode))?? string.Empty,
                      String.Join(",", x1.StationActivity.SelectMany( y => y.ProductsUsed).Select(z => z.ProductTranslatedDescription))?? string.Empty,

Open in new window

hi using MKS 9.6 took kit 9n windows and controlm  on windows to delete a file
 when the file went  over 300 megs it started to failing. saying  file in use. it is not in use. always run second  attempt
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!

Is there any website where one can post there understanding of computer science concepts or explain them and then user can ask questions. Although expert exchange also has article section.
But i want to specifically do it for Java concepts Java 8 features etc.
The idea is to feel motivated to study it... as it helps learning the material in a quicker way
Any alternative suggestions
I have a Tkinter application (python 2.7) that copies , configures , remove files. During this operation, I would like to pop up a please wait message box without any buttons while the process is running to inform the users What is the best way to do this.
Thank you for your Quick Prompts.
In Component-Based Software Engineering (CBSE) we turn requirements into a domain model and use cases.
Then we turn use cases into interfaces.
And finally, we factor interfaces and turn them into components.

What approach do you use at the design stage of SDLC to design modules?
Question about openxml and column width.
I set the column width like the following

Columns columns = new Columns(
                        new Column // Pos No.
                            Min = 1,
                            Max = 1,
                            Width = 3.71,
                            CustomWidth = True

Open in new window

I check the XML (open up the .xmlx file in VS2017) and it displays the correct value

    <x:col min="1" max="1" width="3.71" customWidth="1" />
    <x:col min="2" max="3" width="11.5" customWidth="1" />
    <x:col min="4" max="4" width="4.86" customWidth="1" />
    <x:col min="5" max="5" width="7.71" customWidth="1" />
    <x:col min="6" max="6" width="7.14" customWidth="1" />
    <x:col min="7" max="8" width="8.14" customWidth="1" />
    <x:col min="9" max="9" width="4.86" customWidth="1" />
    <x:col min="10" max="12" width="8.14" customWidth="1" />
    <x:col min="13" max="13" width="8.43" customWidth="1" />
    <x:col min="14" max="14" width="22" customWidth="1" />
    <x:col min="15" max="15" width="6.14" customWidth="1" />
    <x:col min="16" max="16" width="20" customWidth="1" />

Open in new window

but when I view the excel file, the column width is smaller than whats specified.
What am I overlooking?

There is following code -
   public CompletionStage<Void> addEmail(Long userID, String email) {

      CompletableFuture<GetMappingResponsePayload> getMappingResponsePayloadCompletionStage =
              (CompletableFuture<GetMappingResponsePayload>) addressResolver.getEmailMapping(email);

    return addressResolver.addEmailMapping(email, userID)
        .thenCompose(__ -> emailsDao.upsertEmail(userID, email, true));

Open in new window

I want to fetch the object GetMappingResponsePayload from above.
The getEmailMapping function is a synchronous call so when the code gets executed the result will be there.
To give the context there is a Boolean attribute inside GetMappingResponsePayload and based on that
i want to return an exceptionallyCompletedFuture in case the value is false.
otherwise the next return statement is executed.
How do i achieve this neatly

I am trying to install a .NET 2008 application with click once and I am receiving the below error.  Any ideas?

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Running checks for package '.NET Framework 3.5', phase BuildList
Reading value 'Install' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5\1033'
Read integer value 1
Setting value '1 {int}' for property 'DotNet35InstallSuccess'
The following properties have been set for package '.NET Framework 3.5':
Property: [DotNet35InstallSuccess] = 1 {int}
Running checks for command 'DotNetFX35\dotNetFx35setup.exe'
Result of running operator 'ValueEqualTo' on property 'DotNet35InstallSuccess' and value '1': true
Result of checks for command 'DotNetFX35\dotNetFx35setup.exe' is 'Bypass'
'.NET Framework 3.5' RunCheck result: No Install Needed
Running checks for package 'Crystal Reports …
I have a PLSQL procedure that embed with HTML code. How can I use this procedure to print in JSP? Can provide sample code?
Which is the best out of the three -


Is all of them support CRUD operation with default search options or filter options for any table or entity defined ?
if anyone of them has it by default, please let me know.
Does anyone knows the differences and pros and cons of the above?
Is there is any other open source is better than the above for java app?
Looking for a Java Open Source for work flow management tool. Looking for the following

1. customizable
2.  workflow editor
3. well-documented
4. forums and support available for any queries
5. approval, rejection, notifications
6. CRUD operations for displaying table records for view/edit/delete/filter  (Optional)

Please kindly suggest a good one which either need to build the full app using the work flow management tool or develop an application and integrate the workflow with the app,
SolarWinds® VoIP and Network Quality Manager(VNQM)
SolarWinds® VoIP and Network Quality Manager(VNQM)

WAN and VoIP monitoring tools that can help with troubleshooting via an intuitive web interface. Review quality of service data, including jitter, latency, packet loss, and MOS. Troubleshoot call performance and correlate call issues with WAN performance for Cisco and Avaya calls

I had this question after viewing Enforcing Outlook Categories in every Outlook Appointment.

When creating a Appointment, is there a way to ensure at appointment is loaded as "Free".  
Also is there a way to code the renaming of categories by the flag color?   .Categories = "Red" = MyRenamedRedCat  or  .Categories = "Green" = MyRenamedGreenCat

Any ideas?  Please advise and thanks.
what are the best methods to build a free web site without knowledge of html & other programming stuff?
I am trying to learn how to use D3.js so that I can produce graphs for visualized data on my web page which is based on using Javascript.
But I am struggling trying to get an axis scale correctly rendered.
Below is the code where I draw the graph and "attempt" to put the X & Y scales on the axis.   However, if you look at the attach JPG file, the X axis is being drawn at the TOP of the graph, not the bottom where it was supposed to be.   I was calling the d3.axisBottom() as you can seen from the code.  Also, the Y axis is being placed about 10 pixels inside the left side of the graph, again even though I am using the d3.axisLeft() class.  Again you can see this in the attached file screen shot.

From the code below, does anyone have any idea what I am doing wrong?

Thank you,

var dataset = [77,361,7,9,0,0,0,0,0,266,228,454];

var svgWidth = 500;
var svgHeight = 500;
var barPadding = 5;
var barWidth = (svgWidth / dataset.length);

var svg ='svg')
	.attr("width", svgWidth)
	.attr("height", svgHeight);

var xScale = d3.scaleLinear()
        .domain([0,svgWidth + 150])
        .range([0,svgWidth + 150]);

var x_axis = d3.axisBottom()


var yScale = d3.scaleLinear()
        .domain([d3.min(dataset),(d3.max(dataset) + 200)])

var y_axis = d3.axisLeft()

        .attr("transform", "translate(50,10)")

Open in new window

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>

#define N 4
#define NxN (N*N)
#define TRUE 1
#define FALSE 0

struct node {
	int tiles[N][N];
	int f, g, h;
	short zero_row, zero_column;	/* location (row and colum) of blank tile 0 */
	struct node *next;
	struct node *parent;			/* used to trace back the solution */

int goal_rows[NxN];
int goal_columns[NxN];
struct node *start,*goal;
struct node *open = NULL, *closed = NULL;
struct node *succ_nodes[4];
pthread_barrier_t barrier_before_filtering, barrier_after_filtering;
int finish=0, multithread=0;

void print_a_node(struct node *pnode) {
	int i,j;
	for (i=0;i<N;i++) {
		for (j=0;j<N;j++) 
			printf("%2d ", pnode->tiles[i][j]);

struct node *initialize(int argc, char **argv){
	int i,j,k,index, tile;
	struct node *pnode;

	pnode=(struct node *) malloc(sizeof(struct node));
	index = 1;
	for (j=0;j<N;j++)
		for (k=0;k<N;k++) {
			if(tile==0) {
	printf("initial state\n");

	pnode=(struct node *) malloc(sizeof(struct node));

	for(index=1; index<NxN; index++){

Open in new window


My requirement is to develop an application in power builder, which receives Scanned barcodes and decodes it

The application should also be able to reveal hidden ASCII codes in the scanned barcodes.

TAB - 9
BS Backspace  - 8
EOT End of Transmission - 4
FF Form Feed - 12      

When scanned codes arrives at datawindow, rich text input, single line edit  it comes as one character at a time
So my logic would be is to take that character before it is written in Datawindow or rich text input and  find its ascii value and if it is less the 32 (which means it is  a hidden character)
I can give brackets around it and show in display screen. so that hidden characters are not missed out.

Eg Scanned code abc<TAB>def<FF>gh

Decoded code will be abc[09]def[12]gh

So I tried with EditChanged, itemchanged , KeyDown events but I am unable to get the character before it is written in datawindow. Because once it is been written in datawindow hidden characters will be missed out.

Is there any event in powerbuilder will  give me the scannedcode after it has been scanned but before it has been written in data window or rich text control,
Something like PreviewTextInput Event, which will preview the  text before writing it into the data window.

Thanks and regards,
When using ExpandPath, I will occasionally get something unexpected. For instance, I'm trying to move a file from one directory to another.
<cffile action="MOVE" source="#ExpandPath('/tmp/bloop.jpg')#" destination="#ExpandPath('/final-images/bloop.jpg')#">

Open in new window

This is the error I'm receiving:
An exception occurred when performing a file operation moving a file to another filesystem on files /var/www/vhosts/[sitename].com/tmp/bloop.jpg and /opt/coldfusion10/cfusion/bin/redirect:/final-images/bloop.jpg.The cause of this exception was: /opt/coldfusion10/cfusion/bin/redirect:/final-images/bloop.jpg (No such file or directory).

You'll notice that the expanded base of the source is /var/www/vhosts/[sitename].com (which is what you'd expect it to be) while that of the destination is /opt/coldfusion10/cfusion/bin/redirect:

What's going on here? This isn't the first time I've run across this issue, but I can't seem to Google anything up about it. We're running CF10 on a Linux server. Thanks!






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.