277 questions
1 vote
1 answer
306 views
How to identify code convention issues in PHP like ESLint + Prettier
I'm working on a PHP project and I'm looking for a way to identify and fix code convention issues. I'm familiar with ESLint and Prettier for JavaScript, and I'm wondering if there are similar tools ...
2 votes
1 answer
133 views
Translating decryption function from VB6 to C#
I am updating code from VB6 to C#. I have a requirement of backwards compatibility. So files encrypted in the VB6 version need to be able to be decrypted in the C# version. So far I am unable to ...
1 vote
1 answer
144 views
Need help in finding Spark SQL code equivalent to SAS Code
I have a piece of code which I need to convert from SAS to Spark SQL. I want to know what is the equivalent function for as that in SAS SAS Code: DATA NEW_TABLE; SET SOURCE_TABLE1 SOURCE_TABLE2 ; RUN; ...
0 votes
1 answer
63 views
Equivalent of Swift's subtractingReportingOverflow in Kotlin?
What would be the Kotlin equivalent of detecting overflow as is done in Swift's subtractingReportingOverflow? For instance, the following in Swift yields shiftValue of 7212078330627782743 and ...
0 votes
2 answers
198 views
Converting aiohttp script to asyncio + requests (aiohttp not working on ubuntu while asyncio + requests works)
I am using the following script to do queries on a website. It works on macos, however it does not work with ubuntu. I have tried requests and it works, I also tried a simple asyncio + requests with ...
1 vote
1 answer
490 views
How to convert 'if the do' from SAS to Pyspark
I've a df like this: Zip City 'River' 'London' ' ' 'Rome' 'River' 'Berlin' 'River' 'Madrid' ' ' 'Munich' ' ' 'Paris' SAS code below which I've converted in Pyspark if Zip = '' then do Flud = City;...
0 votes
1 answer
228 views
Translating xtabond call from Stata to R
I am trying to replicate findings from a particular study. The study uses the xtabond command in Stata to run an Arellano-Bond estimator with lags of the dependent variables. The goal of the study is ...
0 votes
1 answer
261 views
Converting C++ API Post Request into Delphi Code
I am programming in Delphi and I'm having a hard time converting a C++ API POST Request into delphi. I have tried using Indy as I have before with previous API's but this one seems to not work with ...