Programming Languages-Other





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

Example of a Neural Network?

I am interested to know what I can do with Neural Networks and hope to see an example.

Got any?

Why Diversity in Tech Matters
LVL 13
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

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

Can a PLC extract information from a XML stream ?  How?
1.What code can be uses to looks for values in the below XML code example?  For example,  looks for "LaserPower" and then extract the values that follows . In the below code the value that follows is 95.  

2- Can we do that with FactoryTalk or a PLC?

<?xml version="1.0" encoding="UTF-8"?>
<DynaMark-Project title="Demo" version="0.2">
      <MachineSetup type="string" />
      <EditorType type="string" />
      <EditorVersion type="string"></EditorVersion>
   <Dynamark-Object type="CObjText">
      <CObjBaseData template-version="0.2">
         <ObjName type="string">Text</ObjName>
         <ParamDelaysName type="string">Default</ParamDelaysName>
         <Invers type="bool" value="false" />
         <Mark type="MarkEnableMode" value="true" />
         <Offset type="CPoint" value="-56.0489 16.1231" />
         <ScaleX type="float" value="2" />
         <ScaleY type="float" value="2" />
         <RadiantX type="float" value="-1.5708" />
         <RadiantY type="float" value="-1.5708" />
         <MirrorX type="bool" value="true" />
         <MirrorY type="bool" value="true" />
         <Hatching type="Hatching" value="none" />
         <LaserNr type="integer" value="0" />
         <MinVectorLength type="float" value="0" />
         <XCenterMode type="CenterMode" value="center" />
         <YCenterMode type="CenterMode" value="center" />
         <Locked type="bool" value="false" />

Open in new window

I have written following Python code,But it's Not working. No results showing

with open('Test.csv') as csvfile:
	      for row in readCSV:

Open in new window

Program executes on the Python 3.7.0 Shell
hello all

i am trying to hide some nodes in graphviz while preserving the relationships between visible nodes

a -> b
b -> c

should be somehow transformed into

a -> c


one simple real use case is the following
which i'm generating quite simply by hiding all the libs from debtree's output

#debtree -I -R -r --show-all --rdeps-depth=100 --max-depth=0 x11-common | sed "/\"lib/ s/style=filled/style=invis/"
digraph "x11-common" {
	node [shape=box];
	"libice6" -> "x11-common" [color=blue];
	"libice6" [style=invis,fillcolor=azure];
	"libxt6" -> "libice6" [color=blue];
	"libsm6" -> "libice6" [color=blue];
	"libxt6" [style=invis,fillcolor=azure];
	"graphviz" -> "libxt6" [color=blue];
	"libxmu6" -> "libxt6" [color=blue];
	"libxaw7" -> "libxt6" [color=blue];
	"graphviz" [style=filled,fillcolor=azure];
	"debtree" -> "graphviz";
	"debtree" [style=filled,fillcolor=azure];
	"libxmu6" [style=invis,fillcolor=azure];
	"graphviz" -> "libxmu6" [color=blue];
	"libxaw7" -> "libxmu6" [color=blue];
	"libxaw7" [style=invis,fillcolor=azure];
	"graphviz" -> "libxaw7" [color=blue];
	"libsm6" [style=invis,fillcolor=azure];
	"libxt6" -> "libsm6" [color=blue];
	"x11-common" [style="setlinewidth(2),filled",fillcolor=honeydew];

Open in new window

i expect to produce a simple graph with "debtree -> graphviz -> x11-common"

any way to achieve that in graphviz alone without parsing the whole thing ?

thanks for your time
When I type
 in the listener, I get X=b and Y=a.
However, if I create a clause
and type
foo(Y,b). in the listener, Unification doen't occur, and I get no as an answer.
I am using Amzi Prolog with the Eclipse interface.
What is wrong?
I Got the app to post to my server ??? what I though would be more difficult... I what I need is to have the app to show the Geolocation changes on the screen ... I need to post longitude and latitude to the screen... I'm also sending Altitude and speed to server ... I can not assign  the longitude and latitude to a variable ... I also thought it may be a lazy load so I move the Geolocation function  prior to the "createLabble" still error ... How can I get the e.coor.latitude to print to label

var lat = Ti.UI.createLabel({
		top : 215,
		left : 40,
		text : latitude,
		color : "black",
		font : {
			fontSize : 10
	var Long = Ti.UI.createLabel({
		top : 215,
		left : 200,
		text : "longitude",
		color : "black",
		font : {
			fontSize : 10

Open in new window

function getLocation() {
	Ti.Geolocation.getCurrentPosition(function(e) {
		var latitude = e.coord.latitude;
	    var longitude = e.coord.longitude;

Open in new window

Get this error
Script Error {
[ERROR] :      column = 19;
[ERROR] :      line = 32;
[ERROR] :      message = "Can't find variable: latitude";
[ERROR] :      sourceURL = "file:///Users/clayrichmond/Library/Developer/CoreSimulator/Devices/2185D8C3-E658-43EC-AE86-9AB1558DD5DE/data/Containers/Bundle/Application/AA37B7DA-55C2-47E1-8C23-6AF9F9E2FECB/";
[ERROR] :      stack = "    at createTab(/app.js:32:19)\n    at (/app.js:9:26)\n    at global code(/app.js:168:70)\n    at require@[native code]\n 

Open in new window

I have just used RAD Studio Tokyo to complete my first program for Android. I have this program running well on my Amazon Fire.

There is one odd problem I am having with text. I am using Edit boxes for entry and display of numbers. Everything looks perfect at design time. But when I run it on the Fire, all of the numbers in the edit boxes are slightly cut off at the bottom as if they didn't quite fit into the edit boxes.

For a while I tried to make the edit boxes taller, but every time I changed the Height setting, it reverted to what it had been. I thought I had successfully made the edit boxes taller in the style designer. Apparently it reverted again.

It looks to me like the text should fit and so I suspect it might not be a matter of the text being too large for the edit box. Currently my Font is probably default, tahoma. I changed one Edit to Ariel, but they look exactly the same to me.

Currently the text is set to 28 and the height of the edit is 32. I would like to change this to 36. It won't let me change the height of the edit. I have text align set to center for both horizontal and vertical. I tried the other two settings for vertical. One moves the text up and now the top of the numbers are cut off. The other one lowers it and then there is even more of the bottom of the numbers being cut off.

I tried using a smaller font and that does fix it, when I get down to 24. But really I would rather have larger text in taller edit boxes.

How can I …
I am looking for a Delphi 7 example of an RDC Virtual Channel implementation.  

The need is for Topaz digital signatures that use SigSock.exe.  Sigsock.exe takes a command linek parameter that has to be the public ip of the RDP server, and Topaz does not support an RDP server cluster.  We use RemoteApp to deliver a Delphi 7 application to our end users from Azure, and we are building in redundancy.  The RemoteApp.rdp file points to a DNS A record that points to our traffic-manager(Load balancer), so we do not kow the ip of the actual server that the session will be on.

Sigsock.exe is used to capture the digital signature and send it to their OCX control that is running on the RDP server.  

The virtual channel's server executable will send the servers IP back to the client side channel dll, and the dll will spawn sigsock.exe with the correct parameters.  I can write this, but a shell that has already been tested would save a lot of time learning the ins and outs.

IT_Saige sent me some code, but it is in C# and I would rather not install VS.
PMI ACP® Project Management
LVL 13
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Hi, I'm writing a simple text editor as coding practice in C++ using the Win32 API
and I wanted to add line numbers to the left hand side of the RichEdit control. I
have created a margin by sending a EM_SETMARGINS message to the RichEdit then I
subclassed the RichEdit and responded to the WM_PAINT message. Here's the subclass code :

LRESULT CALLBACK WndEditProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
	switch (message)
	case WM_PAINT:
		CallWindowProc((WNDPROC)OldWndProc, hWnd, message, wParam, lParam);
		HDC hdc = GetDC(hWnd);
		ReleaseDC(hWnd, hdc);
		return 0;
		SetWindowLong(hEdit, GWL_WNDPROC, (LONG)OldWndProc);

	return CallWindowProc((WNDPROC)OldWndProc, hWnd, message, wParam, lParam);

Open in new window

As you can see I called the old window procedure first and then called my DisplayLineNumbers
function coz it didn't work properly if DisplayLineNumbers was called then the old window
procedure was called. But I have a problem with my DisplayLineNumbers function and I'm
not sure how to fix it. It seems to work but when I open a big file then scroll to the end
of the file the line numbers don't line up to the line of the RichEdit and when I hit enter
at the bottom of the file the line numbers skip a few. I must stress that I am a novice
coder so don't expect the code to be perfect but here's the DisplayLineNumbers function
that I wrote (hEdit is the handle of the RichEdit and hFont is the handle of the font and
it accepts a DC for the RichEdit, szBuffer is a buffer for the line number text) :

Open in new window

Hello all,

I hosting a hackathon event and I need some ideas for a t-shirt that will be given to the winning "crowd" favorite team. There are 1st, 2nd, and 3rd prizes (judged by an executive committee), but I added an additional award for all the participants to have their own say.

I need a t-shirt that is relevant to this group of Scala programmers. However, I am not immersed enough in coding and Scala to determine what isn't stupid/cheesy, but genuinely funny or "oh so true".

A few other facts that may give context:
- It a hard working group of about 200 developers
- Largely coding in Scala on Macs and Ubuntu  - WHAT? Scala is a rejected topic by EE??
- Our product is designed for the business enterprise market

Any suggestions are appreciated. They can be as actual t-shirt examples, a graphic, or a quote that I can use to make my own.

Thank you :)
I'm following this tutorial:
The problem is I can't understand what exactly is happening in the following code:

func listNotes(completion: @escaping([Note]?, CallResult?) -> Void) {
        _ = try? client.list(Empty(), completion: { (notes, result) in
            DispatchQueue.main.async {
                completion(notes?.notes, result)

Open in new window

I need someone to explain me the above piece of code in detail.
Can anyone please help?

I am trying to create a script for listing emails count which are blocked by Transport Rules. I have totally three transport rules in place, 1. Block credit card and SSN, 2. Block Driver License, 3. Block Driver License in attachments.  The whole purpose of this script is to categorize emails count based on transport rules, so that we can see how many hits for Credit card, SSN and Driver license. I have searched couple of articles but that doesn't give me the exact results what i was looking for.

Do i need to put condition based on Message body (for ex..  Messagebody contains "credit card" and Eventid contains "Fail" or "DSN"?) or Based on Transport rules Name.

It would be a great help if someone can help me with this,

Hello Team,

I have the below scripts which will provide me the details of emails which are blocked by transport rules. Can you please help me to get the report in HTML format ?

(Get-TransportService) | Get-MessageTrackingLog -ResultSize Unlimited -Start (Get-Date).AddHours(-168) | Wh
ere {$_.EventID -eq"FAIL"-OR$_.EventID -eq"DSN"} | ForEach {Get-MessageTrackingLog -ResultSize Unlimited -MessageID $_.M
essageID -Start (Get-Date).AddHours(-168) | ? {$_.EventID -notlike"HA*"-and$_.EventID -ne"PROCESSMEETINGMESSAGE"-and$_.E
ventID -ne"NOTIFYMAPI"} | Select Timestamp, EventId, Source, Sender, {$_.Recipients}, {$_.RecipientStatus}, MessageSubje
ct, TotalBytes, RecipientCount, MessageId, ClientIp, ClientHostname, OriginalClientIp, ServerIp, ServerHostname, Message
Info, MessageLatency, MessageLatencyType, {$_.EventData}, SourceContext, ConnectorId}

After migrating my Delphi application from XE2 to X10.1, I have a strange behavior at design time for one TForm
I can't enlarge it (with the mouse), it stays relatively small regarding how it was on XE2 !!!
There is no dimension constraint (all = 0)
I just now am finding out about the KMTimeLine component.  It is a multimedia timeline control similar to older version of Premiere.  It appears to have been released as BETA in 2001 for Delphi 5.0.  Nothing further was done with it.

I've Googled and contacted people associated with the control in hope to purchase it or get the source to be able to compile it with current compiler, but no success.  My last effort, before re-inventing the wheel, is to reach out to the EE community for help.  There was a similar question asked back in 2004 and someone mentioned they had the source and contacted the author for permission to redistribute.  The question was marked resolved.  

In posting here, I'm hoping for some sort of success as well.

Details about this component down below (most of the links are dead).
Merchant listing:

Product homepage :

I need a help on creating bat file script for outlook profile creation. I will be using GPO to deploy the script along all the workstations/ laptops connected to the domain, so that user don't need to manually configure the outlook. Also can some one also suggest me if its possible to include outlook rules in the script?

Also please note that this is for a Mac.

Can anyone please let me know the procedure, how to accomplish this?

I have code that will build, compile and link on IBM AIX  without any issues. I am tasked with importing the code to Linux where gcc and g++ compilers are being used.
I have gSoap version 2.8.36 on Linux but getting linking error :-

unresolved external symbol _soap_faultcode undefined reference to `soap_putheader' undefined reference to `soap_serializeheader' undefined reference to `soap_faultstring' undefined reference to `soap_check_faultsubcode' undefined reference to `soap_check_faultdetail' undefined reference to `soap_faultsubcode'

Open in new window

I had an E-mail from Genivia saying :
Mixing C and C++ source code files may cause linkage issues, so rename .c files to .cpp files to avoid that.

This is not possible because I have 10K files and the company won't let me do that.

I'm using gcc and g++ which is causing the conflicting issues.

Any ideas please ?
Exploring SQL Server 2016: Fundamentals
LVL 13
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

This is an Delphi MultiDevice app. Using Firedac Query and sQlite database
I am trying to load an image from a blob in an sqlite database into a ListView.
The database DDL
CREATE TABLE [Pictures](
    [PicId] INT, 
    [UsersImage] BLOB);

Open in new window

Here is my code
procedure LoadFromBlob;
  BlobStream: TStream;
  // FireDAC.Connected := True;
    while (not AccessCameraAppForm.viewimgquery.EOF) do
      // access a stream from a blob like this
      BlobStream := AccessCameraAppForm.viewimgquery.CreateBlobStream
      // access a string from a field like this
      if (AccessCameraAppForm.viewimgquery.FieldByName('PicId')
        .AsInteger = AccessCameraAppForm.FDQuery1.FieldByName('ID').AsInteger)
        // load your blob stream data into a control
      on e: Exception do
        // ShowMessage(e.Message);
    // FireDAC.Connected := False;

Open in new window

I am useing the live bindings to bind the querys image to the listviews item.image2
The code compiles but can not load the image from the sqlite database into the listview or a timage.
Thanks for any help .
This seems to be a problem for me.
I have attached the sorcecode.
Here is the database

I am useing differnt sql here.
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
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
So when I published an npm package, for some reason, it threw my profile name with my package information into the node_modules so here is what happens when it is installed...

--node_modules folder

this is completely the wrong project structure.  What I need is the following:

I need the following in the same folder
myprojectname folder
node_modules folder

but for some reason, the project folder gets pushed into node_modules.  What can i do to correct this?
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


I am working on an iOS application (in nativescript) that needs to get and post some data to an API in the background each 5 minutes. Now it seems that iOS is closing my application so I took a look at the long running tasks section of but I fail to see how I should configure an interval now.

Also while it works correctly on the simulator (not thinking about the interval) with the debug fetch command, I can't get it to work correctly on a real device.

Programming Languages-Other





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.