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

Hey i need to make an algorithm which fills in a sudoku block if there is just one possibility left.

This is how that alghoritm needs to look like:

    candidates(x,y) = 1..9 - numbers_row - numbers_col - numbers_block

I need to impliment candidates() like this:

    >>> from sudoku import candidates, load
    >>> candidates(load("easy/puzzle1.sudoku"), 1, 1)
    {2, 3, 4, 5}

So i already made a load function which looks like this:

def load(filename):
    sudoku = []                                       
    with open(filename,"r") as sudoku_raw:     
        for line in sudoku_raw:                         
            line = line.rstrip("\n").replace(" ","")
            row = line.split(',')                   
    return sudoku

Open in new window

The output of this code is:
[['7', '9', '0', '0', '0', '0', '3', '0', '1'],
 ['0', '0', '0', '0', '0', '6', '9', '0', '0'],
 ['8', '0', '0', '0', '3', '0', '0', '7', '6'],
 ['0', '0', '0', '0', '0', '5', '0', '0', '2'],
 ['0', '0', '5', '4', '1', '8', '7', '0', '0'],
 ['4', '0', '0', '7', '0', '0', '0', '0', '0'],
 ['6', '1', '0', '0', '9', '0', '0', '0', '8'],
 ['0', '0', '2', '3', '0', '0', '0', '0', '0'],
 ['0', '0', '9', '0', '0', '0', '0', '5', '4']]

The file that i am using looks like this:


Can anyone help me write this code?
Become a CompTIA Certified Healthcare IT Tech
LVL 13
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Hi guys

I'm not a developer so bear with me with the simplistic question. I'm trying to understand how API's work. For example, let's say an ecommerce platform says that you can connect to their API in order to do your queries from your site. My question is, how do you know what programming language to write it in so that you can have your query made?

Does the platform provider have to tell you the language compatibility?

Thanks for helping
We have customers where we deliver nod32
However, customers who use an RDP session on a Vmware host (Windows 10-pro)
problem the delay by starting Nod32, and the moment from the Net use batch file processing the maps becoming active,
If the user is already trying to work before Nod32 is ready, it will crash.

Is there an option to view the status of Nod32 being completely on-line in vb6 or command-line etc.
So that we can monitor after that we release the software to the user

Batch sample

NET USE J: \\ \ Jdrive “123456” /user:jack /persistent:yes
How many computers does SETI have access to?

I am curious about using a large number of systems to solve a super-computer grade math problem. So, I wonder if SETI still has people volunteer their systems for SETI's use when they machine is idle. I hope to learn more about that distributed processing model.

Is that still part of the SETI project? Got any links to that?

If they still do this, How many systems do they have access to? Any idea of the raw power they can produce?

I have Git installed on my Windows 10 PC, and have a fairly basic understanding on how to use it.  However, when I attempted to publish a project the other day, I learned that it wasn't actually configured with my personal github account. It was instead configured with an account that I'd set up for one of my client's projects that I worked on a few years ago.  I know this not only because I remembered it, but because even though the project seemed to be have been successfully published to a repo, .. it never actually showed up in my account.  It only showed up in my account when I installed and used "Github Desktop" to publish (configured with my personal Github account credentials).  

How and where can I change the login credentials for the command line version of Git that I have installed?  Should I uninstall and re-install it?  Or is there an easier way?

On a related note .. when using the command line version of Git, how do I create a new repository or specify which repository I want to publish a project to?  

- Yvan
I'm using HostAccess by Rogue Wave Software to connect to a Terminal Server. I'd like to add a login macro so that the users will have a few simple commands sent over before they do anything.

I've tried creating a macro in the wizard but it won't recognize many of the characters. Inside their help file there are some syntax commands and I've dumbed it down to the following (using ****** to protect our information). See code below.

It keeps balking at the SENDTERM commands despite them being in the actual program's help menu.

Any ideas from the coders in the house?  Thanks.


REM Send User
SENDTERM ******, CHR$(13)

REM Delays for 2 seconds

REM Send password
SENDTERM *****, CHR$(13)

REM Delays for 2 seconds

REM Send command to access correct system
REM SENDTERM ******, CHR$(13)

Is there an expert in vba who could help me some programming issues in excel? This requires and online screen share and brief discussion. I will pay if needed please.

Thank you,
Using Google Sheets where column D contains a list of email addresses previously in use. In comes a new email containing basically the same list of emails, but potentially with some additions which I then add to the bottom of my sheet in column D.  What I want to do now is highlight all the newly pasted emails that are not in the original list above. The first list is D2:D226 and the new list is D228:D270.  Items in D228:D270 should be highlighted if they are duplicates so that I can remove them.

The instructions on this page say to do the following.

Select the whole column
Click Format
Click Conditional formatting
Click Add new rule
Set Format cells if to: Custom formula is:
Set value to: =countif(A:A,A1)>1
Set the formatting style.
Ensure the range applies to your column (e.g., A1:A100).
Anything written in the A1:A100 cells will be checked, and if there is a duplicate (occurs more than once) then it'll be coloured.
For locales using comma (,) as a decimal separator, the argument separator is most likely a semi-colon (;). That is, try: =countif(A:A;A1)>1, instead.

I don't fully understand the syntax to be used or how to implement it. Assistance is greatly appreciated.
Free code sharing solution with edit history

I am looking for a free codesharing solution with edit history.  The service here is fantastic However, it allows anyone with the link to edit, doesn't provide edit history, and they start charging if you want to protect the code that you have written.

The language I am using is gscript based on Java and C#, but I would like to be able to put in any kind of code at all, even something not recognized.

Assistance in finding a better solution is greatly appreciated.
While I'll be delighted if anyone comes forward with a solution to this problem, I'm not expecting it. I'll settle for better ways, than I've so far tried, to diagnose it.

It is a perennial problem I've failed to resolve for about 15 years.  The symptom is simple to describe. In certain circumstances, the menu bar created with foxpro's menu.mpr or derivatives will suddenly start to flicker as though it's being refreshed or reloaded about 5-10 times a second.

I've never managed to figure out what causes this behaviour because it NEVER happens in the programming environment, only in the compiled exe.

I've tried writing loop traps and counters. I've tried writing simple logic traps which prevent any calls to run the menu code once it has been activated.

It has also, till now, been a low priority because it's occurrence has been rare, intermittent and unpredictable. On some installations it happens more than others (say, daily) and on some never. These differences persist even on identical workstations with identical sofware installed and running on the same network.

It's just become a priority because a new form I've added to the mix is causing the problem in an entirely predictable and routine manner - i.e. every time the modal form is invoked, on release back to the main form, we get the flicker. The flickering, incidentally, doesn't prevent the sofware working although it does become sluggish. Some users simply ignore it. Others are disturbed by it.

Angular Fundamentals
LVL 13
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Hi ,

Could please some help to write Recursive Query in Hive (or in Pyspark) .

          , EffDt
          , NetSOLD
          , NetPurchase --Nate
          , PostSeqNum
          , TransCode
          , Amt
          , TransDescription
          , rnum
          , t_flg
          , SpecPeriodFlg
          , MaxSOLDLimit

        ( SELECT
         , StartDt                                 AS EffDt
         , CAST(SOLD - sell AS DECIMAL(18,4)) AS NetSOLD
         , CAST(Purchase - sell AS DECIMAL(18,4)) AS NetPurchase
         , renewal_seq       AS PostSeqNum
         , CAST(0 AS                INTEGER)       AS TransCode
         , CAST(0.0 AS              DECIMAL(18,2)) AS Amt
         , CAST('INIT_POSTITION' AS VARCHAR(400))  AS TransDescription
         , rnum
         , t_flg
         , SpecPeriodFlg
         , MaxSOLDLimit

        UNION ALL

         , b.EffDt
         , NetPurchase 
         , b.PostSeqNum
         , b.TransCode
         , b.Amt
         , b.TransDescription END
         , b.rnum
         , b.t_flg
         , Flg
         , b.MaxSOLDLimit
           TEST a
         , TESTDB.SOLD_Transactions_TESTCALC b
           b.rnum        = a.rnum+1

Open in new window

Hi ,
      Looking to convert below SQL (INSERT and UPDATE ) statement into Hive Query Language .

         , a.POST_DATE
         , a.EFF_DATE
         , a.SEQ
         , a.TR_CODE
         , a.TR_SIGN
         , a.IND
         , a.isValidTransaction
         , CASE WHEN la.FINAL_DRAWDOWN_IND = 'Y' THEN 'Y' ELSE 'N' end AS isBDated 
      FROM backD_trans a   
        ON la.LoanNumber = a.PURCHASE_NUMBER
       AND a.EFF_DATE BETWEEN la.src_strt_dt AND la.src_end_dt
         , a.POST_DATE
         , a.EFF_DATE
         , a.SEQ
         , a.TR_CODE
         , a.TR_SIGN
		 , a.IND
         , a.isValidTransaction
         , CASE WHEN la.FINAL_DRAWDOWN_IND = 'Y' THEN 'Y' ELSE 'N' end;

    UPDATE tgt
      FROM HL_TEST.Transactions tgt, HL_TEST.T_Bck t2
      AND tgt.POST_DATE = t2.POST_DATE
      AND tgt.EFF_DATE = t2.EFF_DATE
      AND tgt.TR_CODE = t2.TR_CODE
      AND tgt.SEQ = t2.SEQ
      AND tgt.TR_SIGN = t2.TR_SIGN 
      AND tgt.IND = t2.IND
      AND t2.isBDated = 'Y';

Open in new window

Would appreciate if some one can please help me to run above statement in Hive .

There is a DB which contains some XPages.

End-users accesses http;// to set personal settings.
Admin-users accesses http;// to set system setttings.

In this case, how to design XPages security? The Notes DB has [Admin] role which represents Admin users.
I'd like to hide to access the admin setting XPage from end-users and set the documents security (like $Author field) . Is it possible?

I faced a problem on git that the repository  will be removed without any notification
I am wondering why note that this repository has been create since 2 weeks

we are using below commands:
git add .
git commit
git push

your quick answer is highly appreciated.
I'm getting the following linker error when building a solution for a Visual Studio 2019 windows console program...

Error      LNK2001      unresolved external symbol "public: virtual void __thiscall kymeta::sensor::API::StartServiceA(void)const " (?StartServiceA@API@sensor@kymeta@@UBEXXZ)

I have no method in my code that is named 'StartServiceA'. Where is this coming from?
I chose because it states that it is open-source and free. It also appears to allow for collaborating and saving the files online.  

However, the help files are not there for the sample set of ten (10) basic shapes that it included in order to tell me what they mean.

Assistance in defining what each of the ten basic shapes below actually means would be greatly appreciated.

1. Stadium Rectangle - Terminator
2. Rectangle - Process
3. Square - Unknown
4. Circle - Connector
5. Diamond - Decision
6. Trapezoid - Data
7. Oval - Unknown
8. Right Triangle - Unknown
9. Pentagon - Unknown
10. Hexagon - Unknown

Flowchart tool
Hello ASP.Net guys,

I had not been programming for few years, and the code I have for my portal was developed in an older version of ASP.Net
I have opened my project with ASP.Net 2013 and got 102 errors, one of them is this:

Why can’t I instantiate a code class anymore?
The class DB_Survey is defined in the App_Code folder as the following:

Any idea?

Thank you,
Good Day,

My 11 year old needs to build a curriculum for the next 12 months, since he is keen on learning programming, I intend to hire teachers locally and online and also for him to go for international competition during this period to develop his skill set.

The overall goal of this training is for my son to become an expert in Hardware and Software Systems by understanding the fundamental principles governing them and be able to derive solutions to problems using analytical and programming approach coupled with hardware integration and IOT.
I have a data model like so:

using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace CB_RepWebApp.Models.DataModel
    public class FreeStockView
        public string ID { get; set; }

        public string WarehouseCode { get; set; }

        public string UM { get; set; }

        public Decimal FreeStock { get; set; }

Open in new window

And my Item.cshtml.cs page is like this:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using CB_RepWebApp.Models;

namespace CB_RepWebApp.Pages.Inventory
    public class ItemModel : PageModel
        private readonly CB_RepWebApp.Data.CRMContext _context;
        public ItemModel(CB_RepWebApp.Data.CRMContext context)
            _context = context;
            _contextB = context;

        public Models.DataModel.InventoryItem Item { get; set; }
        public Models.DataModel.InventoryItem I { get; set; }
        public Models.DataModel.InventoryItemPricingDetail ItemPricing { get; set; }
        public Models.DataModel.ItemCostPricesView_C ItemCosting { get; set; }
        public Models.DataModel.InventoryUnitMeasureBoxView_C IB { get; set; }
        public Models.DataModel.FreeStockView IFSWA { get; set; }

Open in new window

Ensure you’re charging the right price for your IT
Ensure you’re charging the right price for your IT

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


I am a beginner in programming by C ++. This is my first question on EE also.

I am learning the book of Bjarne Stroustrup "Programming. Principles and Practice Using C ++".
I'm using MS Visual Studio 2019 for creation of C ++ programs.

I am performing following exercise:
“Define an Order class with (customer) name, address, data, and vector<Purchase> members. Purchase is a class with a (product) name, unit_price, and count members. Define a mechanism for reading and writing Orders to and from a file. Define a mechanism for printing Orders. Create a file of at least ten Orders, read it into a vector<Order>, sort it by name (of customer), and write it back out to file. Create another file of at least ten Orders of which about a third arc the same as in the first file, read it into a list<Order>, sort it by address (of customer), and write it back out to file. Merge the two files into a third using std:: merge().”
I wrote the program consisting of the following files:
1.      std_lib_facilities.h
Header file from B.Stroustrup
2.      Exersize_9.h
This file contains declarations of functions.
3.      Address_definition_file.cpp , Date_definitions_file_.cpp, Order_definitions_file.cpp, Purchase_definition_file.cpp
These files contain definitions of functions
4.      Exersize_9.cpp
This is a main file.
5.      File_input.txt
Input data are in this file. For an example, I took three objects
6.      File_output.txt
 Result data are in this file

And at last problem:

This is a follow-up to a previous thread located here:

Display graphic over any content on the screen

In that previous thread, ZeropointNRG provided an excellent solution using an AutoHotkey script. However, I am having trouble with conflicting GUI position and size parameters. Specifically, after repositioning and resizing the GUI and saving the new parameters to the script, the resulting GUI box is in the correct position but is not the correct size. I don't know if the problem is resulting from the script or from my monitor coordinate system — although I have never had a problem with the latter.

For this thread, I have reduced the script to code for only a single GUI box:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.		
#Warn  ; Enable warnings to assist with detecting common errors.		
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.		
SetWorkingDir C:\Users\Steve\sb_FOLDERS-BY-TAG (Win10)\ca_AHK  ; Ensures a consistent starting directory.		
#SingleInstance, Force		
a:=10 ; Box 1's border thickness in px.		
b:=10 ; Box 2's border thickness in px.		
c:=10 ; Box 3's border thickness in px.		
d:=10 ; etc, etc		

Open in new window

hi Experts
I'm trying to creating a acrobat form which has 2 list box and radio button selection.

First list box: 12 Teams

Team 1
Team 2
Team 3
Team 12

Then have radio button choices or  “yes” or “no” if team member is applying for admin access

Based on first list each team has members who perform roles
Second list box: have 20 different roles

Team 1 can have roles
*Standard user
*lvl1 support
*lvl2 support

Team 2 can have roles
*lvl2 support
*lvl3 support

Team 3-12 can have roles another set of roles.

If on form radio button choice is “no” then role assigned will always be  “standard”

If on form radio button choice is “yes” the role are avail for selection based on check of team from first list box

Then Group Name in will be populated in a read only text field

First listbox: Teams

radio button choice to select team

second list box based on roles available to team

attached is sample form and roles matrix
have worked initial scripting using tutorials from
I have a folder name which is ServerName and inside the ServerName folder I have two sub-folders are named FULL and DIFF.
From there I would like to copy/move last write or last date modified files from source to destination using PowerShell.
Please help!
Hi everyone,

in SAS I am trying to sort one SAS dataset by a certain variable (var1) and then write all records to SAS datasets (name includes "var1") and ASCII files (name includes "var1"). I am thinking to do everything in two steps as below but I am not sure if Step 2 should be done in PROC SQL or maybe in a DATA step with macros?  If anyone knows how to do Step 2 please let me know. Any suggestions or examples would be greatly appriciated.  

Step 1. Sort olddata.sas7bdat SAS dataset by var1
Step 2. Write all records from olddata.sas7bdat for each unique var1 to its correcponding data<var1>.sas7bdat SAS datasets and data<var1>.in ASCII files

* Step 1- sorting initial dataset
proc sort data=olddata;
   by var1;

* Step 2 - creating data<var1>.sas7bdat
proc sql noprint;
  select distinct var1 into : x separated by ' ' from olddata;
%macro create;
  %do i = 1 %to %eval(%sysfunc(count(&x, %str( )))+1);
  data data%scan(&x,&i.);
  set olddata;
  if var1 = "%scan(&x,&i.)";

Open in new window

Needs some advice regarding REACT with an Express front end for API database requests.  I have added the proxy entry the package.json file.  However, the api requests are still be served by the REACT app.  I need some advice on what I am doing wrong.

Here is my package.json file:
"name": "ubwo",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "16.8.6",
"react-dom": "16.8.6",
"react-redux": "7.1.0",
"react-router": "5.0.1",
"react-router-dom": "5.0.1",
"react-scripts": "3.0.1",
"redux": "4.0.1",
"redux-thunk": "2.3.0"
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eslintConfig": {
"extends": "react-app"
"browserslist": {
"production": [
"not dead",
"not op_mini all"
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"resolutions": {
"browserslist": "4.6.2",
"caniuse-lite": "1.0.30000974"

Open in new window







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.