Programming Languages-Other

20K

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

How to create a cross platform application in java like ambar cloud ??

I went through the ambar cloud - open source search engine (https://ambar.cloud/ and https://github.com/RD17/ambar) and astonished at his amazing features.

I would like to build the similar one in java and not sure which tech stack i need to choose and what would be the design and what are the third party libraries might required to built it

Can some java experts help me with suggestions, comments and design and help ?
0
Greetings,

I am using evaluation version of microstrategy, can you please let me know  how can I get table and columns of that table using REST API.
OR in generic term relation between objects.
0
I am trying to us column formatting in SharePoint Online and am very new to JSON.  I am trying to use conditional formatting based on another column.  This was the code I was using when we could do calculated columns.

I would really appreciate anyones help getting me started on how to do this.

=IF(CAI=”Green”,”<img src=’../SiteAssets/Green.png’ border=’0'/><div style=’font-size: 75%;color: white; position:relative; text-align:center; width: 88px;top:-33px;word-wrap: break-word;’>”&[CAI Vendors]&”</div>”,IF(CAI=”Yellow”,”<img src=’../SiteAssets/Yellow.png’ border=’0'/><div style=’font-size: 75%;color: black; position:relative; text-align:center; width: 88px;top:-33px;word-wrap: break-word;’>”&[CAI Vendors]&”</div>”,IF(CAI=”Red”,”<img src=’..../SiteAssets/Red.png’ border=’0'/><div style=’font-size: 75%;color: white; position:relative; text-align:center; width: 88px;top:-33px;word-wrap: break-word;’>”&[CAI Vendors]&”</div>”,””)))
1
Hi,
Is there any programming examples, showing the way to detect which area it is, per given IP (Worldwide IP)?
0
I've been trying to fix this for days now. Using Xamarin and Visual Studio, I deleted the asset catalogs/media folder then I used app icon set creator to create the icons. I then went into info.plist under visual assets and hit add catalog, then dragged the icons into the slots.

No matter how many times I try this I get the same error.

Since this is xamarin, I was told I have to create an IPA file and upload using ApplicationUploader.  The file uploads but then I get an email from Apple with a build file error shown above.

Does anyone know how to fix this?

thanks!!!!

Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle

Open in new window

0
Hi,
I need to create .exe file in Autoit which will acheive this:

search c:\xml\ folder for xml filename (specific portion in a file name) that i supply/input in textbox and show it in the listbox , then have another textbox which i can give another name and change the name i choose from listbox .

let say there is xmls files in this folder:
c:\xml\

1. 658 961324913 20180422213033.xml
2. 688 9415460918 20180422221407.xml
3. 761 963837127 20180422215149.xml
4. textfilename.txt

i insert/search in the search textbox for : "9415460918"  (it will search only the number in between 2 spaces) from the  files in the folder
the search botton will list only  file number 2 (xml file)
I insert in another textbox new name like : "2154632810"
it will change the filename to : 688 2154632810 20180422221407.xml


i have play with some example that maybe help around:
#include <GuiConstantsEx.au3>
#include <File.au3>
#include <Array.au3>

;GUI
GUICreate("Rename XML files", 300, 500)
$sourceFolder = GUICtrlCreateInput("Source Folder", 10, 10, 280, 20)
$add = GUICtrlCreateButton("Search", 10, 35, 75, 20)
$mylist = GUICtrlCreateList("", 10, 60, 280, 300)


GUISetState(@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $add
            $sFolder = ControlGetText("Rename XML files", "", "Edit1")
            Local $FileList = _FileListToArray($sFolder, "*.xml")

            If @error = 1 Then
                MsgBox(0, "", "No 

Open in new window

0
I'm using EncryptedXML to decrypt a SOAP message.  I'm loading the certificate manually and trying to decrypt the message.  But I'm getting the following error:

Unable to retrieve the decryption key.

Open in new window


Here is my code:
stream.Position = 0;
var doc = new XmlDocument();
doc.PreserveWhitespace = true;
doc.Load(stream);

var clientCertEnc = new X509Certificate2(@"C:\certificates\xxxxxt.pfx", "xxxxxx");
var privateKeyRSAA = (RSACryptoServiceProvider)clientCertEnc.PrivateKey;

var exml = new EncryptedXml(doc);
exml.AddKeyNameMapping("KeyIdentifier", privateKeyRSAA);
exml.DecryptDocument();

Open in new window


Here is my xml:
<s:Envelope 
        xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
        xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <s:Header>
            <VsDebuggerCausalityData 
                xmlns="http://schemas.microsoft.com/vstudio/diagnostics/servicemodelsink">uIDPo4tYpt6X40FEk+VSAe5mc8MAAAAAP497cBuXfk+uFIOY80O0iuLtIW56q7hLktgVYPhbnHMACQAA
            </VsDebuggerCausalityData>
            <o:Security s:mustUnderstand="1" 
                xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <o:BinarySecurityToken u:Id="uuid-10490fb0-8ee0-4a4c-a8db-77242c9a3b7f-2" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" 

Open in new window

0
Hi,

I'm in the process of developing an eBay application in Microsoft Access 2016. So far my project has been fine and the API calls I have made have been successful but I have now come to a stumbling block that I need some help with.

The API calls I have used so far are all for single listings so this is easy and I just pass the XML through an HTTP request. I want to make this much more efficient and use eBay's File Transfer API where I can send more than 1 call at a time but I'm really struggling on trying to understand how to build the call.

The data has to be sent as Binary Base64 which I have a converter to do this. I can build the XML that needs to be sent but I just don't understand how to send the XML from a string as apposed to a physical file.

I've read loads on the internet about having to create it as a multipart request with boundaries but really not sure how to start building that. I can provide code if need be so you can see where I am at.

I hope this makes sense.
0
Hi,
I have a simple grammar of a subset of C I'm trying to program using Yacc. In one part of my grammar I have the following rules:
 
DeclarationsAndStatements: Statement DeclaratonsAndStatements
                                                             | Declaration DeclaratonsAndStatements
                                                             | Statement
                                                             | Declaration
                                                              ;

           Statement: error SEMI
                              ;

           Declaration: error SEMI
                              ;

Open in new window


Because I have Statement and Declaration both producing error SEMI I keep getting a shift/reduce conflict, I tried multiple solutions but I keep getting the same conflict. How can I solve this conflict?
0
Hi

I am trying to integrate .net application with goldmine. I can create contact1 but not contact2 and contsupp. Can you please help me.
I am having problem with the first function (updateContSupp)
goldminestruggle.txt
0
How to use c4.5 classifier in android studio to process the  accelerometer and and gyroscope  sensor data from phone.
0
Hi there,
I need a sample application to build off to accomplish the following:
Scan a ticket that has a QR code.
As the ticket gets scanned add it to a datagrid or listbox (doesn't matter)
Once all the codes are in this data repository and on button click stores it on a database.
I don't expect to someone in here write something from scratch this escenario. But if you have seen something that can get me ahead on things I will greatly appreciate it.
If you have an idea of an aspx app or windows
0
I ran across some python code that allows continuous, live plotting of twitter stream data and sentiment rating. When the author of the code demonstrated it on Youtube, he was able to plot the twitter in a graph, and the graph updated  with each tweet. However, when I run the same code, I get one graph for each tweet and the plot points do not form a continuous line--instead the output consists of one graph, one plot point for each tweet. I would like to  get the graph to show the plotted point for all tweets in one chart in a continuous line.

BTW I am not the  only person who ran into this same problem with the code.  FYI I am currently running python 2.7,  in a Spyder 3.2.8 development environment on Mac.  I have attached the code (without access key information) and it has not been altered from the author's version. Any assistance would be greatly appreciated.

Thanks!
wasmithpfs
test31818.py
Screen-Shot-2018-03-18-at-9.28.21-PM.png
0
About half our class turned in this assignment on its due date; many of us are lost. Even though it's past-due, it's been nagging me, and I'm curious to find out how it works. I come here, hoping someone will be able to guide me, as to what I need to know about this diagram in order to answer its accompanying questions.

Here is what I know:

  • "Sequential instruction execution" is where each instruction is fetched and executed to completion before the next one begins.
  • The `popl` instruction moves the data element from the top of the stack/register into the specified operand.
  • `%esp` is the stack pointer

y86_sequential-1.png
0
I am using following code  ( but not clear how to pass a parameter when a user click on firebase notification? )

public override void OnMessageReceived(RemoteMessage message)
        {
            base.OnMessageReceived(message);
            string click_action = message.GetNotification().ClickAction;
            SendNotificatios(message.GetNotification().Body, message.GetNotification().Title, click_action);
        }
        public void SendNotificatios(string body, string Header, string click_action)
        {
            Notification.Builder builder = new Notification.Builder(this);
            builder.SetSmallIcon(Resource.Drawable.AppLauncher);
            //Intent intent = new Intent(this, typeof(MainActivity));
            Intent intent = new Intent(click_action);
            intent.PutExtra("click", click_action);
            intent.AddFlags(ActivityFlags.ClearTop);
            PendingIntent pendingIntent = PendingIntent.GetActivity(this, 0, intent, PendingIntentFlags.OneShot);
            builder.SetContentIntent(pendingIntent);
            builder.SetLargeIcon(BitmapFactory.DecodeResource(Resources, Resource.Drawable.AppLauncher));
            builder.SetContentTitle(Header);
            builder.SetContentText(body);
            builder.SetDefaults(NotificationDefaults.Sound);
            builder.SetAutoCancel(true);
            NotificationManager notificationManager = (NotificationManager)GetSystemService(NotificationService);
            

Open in new window

0
Looking for a way to add more than one JSON file to the script, below to produce a single CSV, but with multiple rows.  Each row should include the same number of fields and attributes, but be tied to a single JSON (ROW 1 = JSON 1, ROW 2 = JSON 2, etc.).  The following produces a CSV with one row of data from a single JSON.

import pandas as pd
df = pd.read_json("pywu.cache.json")
df = df.loc[["station_id", "observation_time", "weather", "temperature_string", "display_location"],"current_observation"].T
df = df.append(pd.Series([df["display_location"]["latitude"], df["display_location"]["longitude"]], index=["latitude", "longitude"]))
df = df.drop("display_location")
print(df['latitude'], df['longitude'])
df = pd.to_numeric(df, errors="ignore")
pd.DataFrame(df).T.to_csv("CurrentObs.csv", index=False, header=False, sep=",")

Open in new window

0
i am doing my test preparation but i am unable to do this question so is any one that can help me to do this all question. in advance thanks.


Simple Imperative Language
Suppose we have the following EBNF definition of a simple imperative programming language:
<BL> ::= <S> { <S> }     // Block is a sequence of one or more Statements
<S> ::= <A> | <C> | <L>  // Statement is an Assignment, Conditional or Loop
<A> ::= <V> = <E>      // Assignment is a Variable = Expression
<E> ::= <N> | <V> | (<E> <OP> <E>) // Exp is a Num, Var, Exp Operator Exp
<OP> ::=  * | / | + | - | ^    // Operators with their standard meaning
<C> ::= if <B> then <BL> { else <BL> } end // Conditional is if-then-optional else
<B> ::= true | false | (<E> <BC> <E>) 
                                 | not <B> | (<B> and <B>) | (<B> or <B>)
<BC> ::=  eq | lt | gt | le | ge | ne    // Boolean comparison operators
<L> ::= while <B> do <BL> end
<N> ::= all numbers
<V> ::= <letter>{<letter>|<digit>}<whitespace>

1) Indicate if the following programs are valid or invalid syntax. Assume the language is case-insensitive.
A = 0 ; B = 0
if (X ne 0) then X=0
if NOT (X eq 0)  then X = X – X
do X = X – 1 end while (X gt 0)
while (true) do X = X + 1 end



2) Write a rule so that a Boolean value (i.e. expression) can be assigned to a variable. For example, flag = true. Or flag = (X eq 0).

3) Write the <N> rule that allows positive and negative integers. 
Assume <digit> ::= 0 | 1 | 2 | 3 | 4 | …
0
Hi,
I want to find, extract, and replace string on a file.

procedure TForm5.Button4Click(Sender: TObject);
var
  Stream: TFileStream;
  MS: TMemoryStream;
  Buffer: array [0 .. 1023] of AnsiChar;
  i: Integer;
  myKeyword : string;
begin
  Stream := TFileStream.Create(edtTarget.Text, fmOpenRead);
  try
    while Stream.Position < Stream.Size do
    begin
      Stream.Read(Buffer, 1024);
      m1.Lines.Add(Buffer); // no need, just display to evaluate
      (* 1. Get address of given keyword *)
      // i := Stream.PositionOf(myKeyword);   < how to do this?
      (* 2. Stream Replace *)
      // I want to replace MyKeyword with other string
    end;

    MS := TMemoryStream.Create;
    try
      MS.LoadFromStream(Stream);
      MS.SaveToFile(edtTarget.Text + '.mod');
      // save the edited file, is there any other way than using MS?
    finally
      MS.Free;
    end;

  finally
    Stream.Free;
  end;

end;

Open in new window


  1. I want to have the position of  "mykeyword" on my loaded file.
  2. I want to replace / delete "mykeyword" on my loaded file.
  3. I want to extract "mykeyword" + 1000 or some length.

my loaded file is up to 500 MB.
0
I am trying to figure out how to embed a control (rich text editor) into my java web app so I can edit odt files. This control must have this minimum features:

  • Show tables with merged cells

  • Save the original file (odt format) with the changes made

  • Export the file in odt. Preferably in some other formats (pdf, etc)

  • Add Notes to the document


Does anyone know of any solution for this?. I'd prefer if this is a free.

thanks in advance.
0
Hello Experts

what are the pre requisites to learn python, Do we need to have any programming knowledge ? is it easy for the new learners who are trying to learn ?..
0
We are using JDBCTemplate and not using Hibernate and running native SQL queries.

We need to attach/append tenant id to any query which is being executed. We are using Spring Boot and following MVC pattern.

Can someone help me with suggestion or comments how to attach the tenant id dynamically as jdbc interceptor or apply filter for queries?

Currently all queries goes like select * from...where tenant id = test

Tenant Id can be resolved in the controller. However need a generic way to inject in the business and in the DAO layer.

Passing tenent id as parameter in the controller class and accessing in service class always will be painful and maintenance issue.

Thanks.
0
Hi, so I've got an Ionic 3 app which has a native camera plugin and onesignal plugin as well for notifications.

The native camera plugin works fine in Ionic View or DevApp, and onesignal works when build it to an APK and run it natively on my Android phone.

However, when I use an emulator to run it, even on IOS, it comes up with cordova_not_available. And even the cameras don't work. i run the command

ionic cordova run android or ionic cordova run ios

Emulator shows up but the issue is that cordova doesn't seem to be compiled in. Thus causing cordova plugins to fail.

What can possible be the issue? I've removed all the plugins and android/ios platform, re-installed an still the same.

It's kind of difficult to develop the OneSignal notification when I can't run it with the emulator.

Anyone who has come across this, please advice.
0
Im trying to do a transfers but they are all pending but Eth never leaves my wallet.
They are all under SIGNER and local transactions.

Im not sure did they even leave my computer?
If I go to TxQueue Viewer I see this
Parity.JPG
Can anyone tell me whats is wrong?
0
I have an application which has a token set to officially expire after 30 minutes. If inactive at the 20- minute mark, it looks back 5 minutes for activity. If none exists, it kills the session. The majority of the users do work in the first 10 minutes and usually tend to other tasks. They are frustrated with our settings and are asking us to check back farther than 5 minutes and the 20-minute mark.

What makes sense to do here in accordance with best practice?
0
We have 4 RDS servers, and 1 RDS Gateway Server which is also the Broker. The 4 Session Host servers is divided into 2  Sessions Collections. When a user RDP into the Gateway he is getting redirected to the Wrong Session Collection.

I have search the internet and can't find a proper explanation on how to broker decide to which Session Collection to send the client. I thought it was based on the group you add when creating the Session collection.

Please any help on this will be much appreciated. The outcome is to have say User Group A to always go to Session Collection A and then User Group B to go to Session Collection B.
0

Programming Languages-Other

20K

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.