Programming Languages-Other

19K

Solutions

19K

Contributors

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

Team,

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,


Thanks
Krish
1
Rowby Goren Makes an Impact on Screen and Online
LVL 13
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

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}

Thanks
Krish
1
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)
0
We have a custom online SharePoint for O365 created by another company - they used Visual Studio. How does it look like if we will have to hand over maintenance to another person or company? I mean do we have access to all the code created by them or is it compiled somehow and they should give us a source code?
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:
https://webcache.googleusercontent.com/search?q=cache:Tp2ZKgD5x3cJ:https://www.ciemmesoft.com/components_comp/1164/+&cd=1&hl=en&ct=clnk&gl=us
http://www.torry.net/vcl/datetime/packs/kmtimeline.zip

Product homepage :
http://kmmed.tripod.com
0
Team,

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?

Thanks
Krish
0
Hello,
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

libgsoapssl.so: undefined reference to `soap_putheader'
libgsoapssl.so: undefined reference to `soap_serializeheader'
libgsoapssl.so: undefined reference to `soap_faultstring'
libgsoapssl.so: undefined reference to `soap_check_faultsubcode'
libgsoapssl.so: undefined reference to `soap_check_faultdetail'
libgsoapssl.so: 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 ?
0
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;
var
  BlobStream: TStream;
begin
  // FireDAC.Connected := True;
  try
    AccessCameraAppForm.FDQuerySelect.Open;
    AccessCameraAppForm.FDQuerySelect.First;
    while (not AccessCameraAppForm.viewimgquery.EOF) do
    begin
      // access a stream from a blob like this
      BlobStream := AccessCameraAppForm.viewimgquery.CreateBlobStream
        (AccessCameraAppForm.viewimgquery.FieldByName('UsersImage'),
        TBlobStreamMode.bmRead);
      // access a string from a field like this
      if (AccessCameraAppForm.viewimgquery.FieldByName('PicId')
        .AsInteger = AccessCameraAppForm.FDQuery1.FieldByName('ID').AsInteger)
      then
      begin
        // load your blob stream data into a control
        AccessCameraAppForm.viewimage.Bitmap.LoadFromStream(BlobStream);
         AccessCameraAppForm.ListView2.items.Add();
        BlobStream.Free;
        AccessCameraAppForm.viewimgquery.Next;
      end;
      end;
    except
      on e: Exception do
      begin
        // ShowMessage(e.Message);
      end;
    end;
    // FireDAC.Connected := False;
  end;

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.
Project4.zip
Here is the database
flatrate.db3


I am useing differnt sql here.
Differnt-Sql-Project4.zip
0
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
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
C++ 11 Fundamentals
LVL 13
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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

-testdirectory
--node_modules folder
--package-lock.json
---node_modules/@myusername/myprojectname

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?
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
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());

                sb.AppendLine(headers1);
                foreach (var x1 in (List<StationHistoryReportResults>)TempData["excsv"])

                {
                    var data1 = String.Join(",", new string[] {
                        //string.Format("\"{0}\"",item.B_Company),
                       
                      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

0
Which is the best out of the three -

Activiti
Camunda
Flowable

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?
0
Hi,

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 https://docs.nativescript.org/core-concepts/ios-runtime/how-to/BackgroundExecution 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.
0
Hi,

I have got
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResul

Open in new window

with these codes
            List<HouseData> houseList = new List<HouseData>();
            try
            {
                using (SqlConnection sqlConn = new SqlConnection(ConfigurationManager.ConnectionStrings["Mssqlconn3"].ConnectionString))
                {
                    using (SqlCommand sqlCmd = new SqlCommand("SELECT cast(ROW_NUMBER() OVER (ORDER BY house_id ASC) as int) serial_id, house_id, rent_type, house_name, area, area_unit2, clicked_times, area_unit, area_size, isnull(construct_area_size,0) construct_area_size, isnull(request_times,0) request_times, release_period_from, CONVERT(varchar,register_date,105) register_date,CONVERT(varchar,upd_date,105) upd_date, address1, address2, price, price_curr, ltrim(rtrim(cast(raised_by_user_id as varchar))) raised_by_user_id FROM house_tab where isnull(raised_by_user_id,0)=@raiser and isnull(deleted,'')<>'Y'", sqlConn))
                    

Open in new window

0
Need a python script to copy yesterday files to a destination location and gzip them in destination directory
0
hi, i can get postman to POST to create a VM but using pycharm encountered this error.

code 1: obtain a token
==========================================================================
import requests
url = "https://IP/silvan/apigateway/v1.0/"
get_apis = "apis_include_throttles"

##API URLs
get_token_url = "https://iam-apigateway-proxy.domain.com/v3/auth/tokens"

create_volume_url = "https://evs.sitc-1.domain.com/v2/6d321dd88c7143ba8d6daf3e15f14be9/volumes"
delete_volume_url = "https://evs.stic-1.domain.com/v2/6d321dd88c7143ba8d6daf3e15f14be9/volumes/"
create_vm_url = "https://ecs.sitc-1.domain.com/v2/6d321dd88c7143ba8d6daf3e15f14be9/servers"



##Images Dictionary
images = {
    "Ubuntu 18.10": "5313ace4-4573-404b-abc6-8548ed14c4f7",
    "RHEL7.5-40G": "aa9d05f3-cb90-4776-9c02-617a9906b271",
    "WindowsServer2016WithGUI": "c54d05fa-5ad8-425e-be56-e60ede395230",
    "Windows10Pro": "29caef55-0617-4813-8a17-cb0bef19de16",
    "RHEL7.5": "c5ccd8a7-d8f3-4a4c-91c3-9d93303aee58",
    "Ubuntu16.04LTS": "3f8948fd-c108-48db-9951-1d617e8e5b03",
    "image-kvm-euler": "298e2912-5a7a-4178-8ac4-b260712d514c",
    "image-ManageOne": "80d9b0ee-a5b3-42fe-99ed-fc32c57da5b3",
    "esight_image": "e1e94234-f3e7-4793-8bdb-0cef9e3194cf"
}


def get_token():
    body = {
        "auth": {
            "identity": {
                "methods": [
                    "password"
                ],
                "password": {
                    "user": {
    …
0
i am learning to use Python / pycharm / PIP to provision 1000 VM through a script to call the  API but i don't know how to start doing it.
 
What is the proper way to install python with IDE, Pycharm and PIP for Windows 10?
Where to obtain the python template code to provision 1000 VMs for example for me to modify the flavours, image, types, servers, network?
How to put the digital token on the script and where & how to execute the script if is connected thr VPN client from my PC?
How to generate a private key from the python script as well?


I managed to use web POSTMAN from google chrome to test calling the API to provision some VM as stated in below.

1. Connected to Private Cloud Fusion Cloud 6.3 from Web POSTMAN

2. Obtained a digital token
POST => https://iam-apigateway-proxy.domain.com/v3/auth/tokens

{
"auth": {
"identity": {
"methods": [
"password"
],
"password": {
"user": {
"domain": {
"name": "XXX"
},
"name": "XXX",
"password": "XXX"
}
}
},
"scope": {
"project": {
"id": "XXX",
"domain": {
"name": "XXX"

3. Provisioned System Volume
POST => https://evs.domain.com/v2/cd088007d3b84e7fa894478e6fe667c4/volumes

{ "volume":
{
"size": 60,
"availability_zone": "az0.dc0",
"volume_type": "ssd",
"name":"volume1",
"multiattach": false,
"imageRef":"ca9384bd-5d78-49ce-a4c3-6d90d77c623c"
}
}

4. Provisioned VM  
POST => https://ecs.domain.com/v2/cd088007d3b84e7fa894478e6fe667c4/servers
{
"server": {
"flavorRef": …
0
CompTIA Cloud+
LVL 13
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Hello

This is Azizah Alqahtani

I just sent you email like this bellow and you response to give you the python code ..


Could you please help me to solve this problem,

I have to convert a python code to a Java code

Or rewrite the code with the same idea ?


The code is about one type of substitution cipher ?

If you can , I will send you the assignment page and my friend’s answer in python..


Regards..
Assignment1Python.zip
0
Hi Experts,

there are two approached to pass sheet names vaue
1st approach:

JRXlsExporter exporter = new JRXlsExporter(); exporter.setParameter( JRXlsAbstractExporterParameter.SHEET_NAMES, new String[] {"first","second","third"} ); 

Open in new window


cant we pass this value as parameter in java?

this way(1st approach) i am unable to follow because i am sheduling report for a specificdate. and passing few parameter inputs as well for the same report.

sample:
Util.getParamString(stringBuilder, "GENERATEDON", Date);//similarly few more params i am passing

Open in new window


2nd approach:

iam setting in the report properties like below(2nd approach): Property Name = "net.sf.jasperreports.export.xls.sheet.names.all"

 Property Value = "first/second/third"

is there any chance to pass this property value as dynamic.?

I have tried like below as not works for me

<line> 
<reportElement x="0" y="-1" width="1" height="1"> 
<propertyExpression name="net.sf.jasperreports.export.xls.sheet.name"><![CDATA[$F{course_name}]]></propertyExpression> 
</reportElement> 
</line>

Open in new window

1
Hi,
There is list below (in Javascript) which is not being shown well. Where to identify the issue?
http://www.SearchHouseLive.com/HouseList4/Default.aspx?userid=mc1

There is a list in highlighted place which is shown properly now.
31q.png
0
I'm looking for search application which uses solr search

one i found is Nutch but i am not very much attracted with the UI

Can you please let me know the applications which uses solar search for indexing local documents and peform search and navigate easily ?
0
Unable to install Angular on mac I got this error:
npm ERR! path /usr/local/bin/ng
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local/lib/node_modules/@angular/cli
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/saudalsahli/.npm/_logs/2018-09-02T09_31_09_443Z-debug.log
sauds-MacBook-Pro:~ saudalsahli$ sudo npm install -g @angular/cli
npm ERR! path /usr/local/bin/ng
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local/lib/node_modules/@angular/cli
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/saudalsahli/.npm/_logs/2018-09-02T09_33_27_509Z-debug.log
0
Hi all
We have a number of Android tablets, some of which are misbehaving. I need to be able to save (or send) the system logs (and maybe dmesg as well, if poss) continuously to the removeable SD card, or alternately, to send the logs out to an FTP server. Can someone help me do this please? I will not be able to "root" the devices.
Thanks in advance
Michael
0

Programming Languages-Other

19K

Solutions

19K

Contributors

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.