Skip to content Skip to sidebar Skip to footer
Showing posts with the label Perl

Run A Python Script In Perl

I have two scripts, a python script and a perl script. How can I make the perl script run the pytho… Read more Run A Python Script In Perl

Recursively Traverse Directory And Replace Function Calls

I would like to traverse a directory recursively and find all files that have at least one of the f… Read more Recursively Traverse Directory And Replace Function Calls

Padding Multiple Character With Space - Python

In perl, I can do the following with will pad my punctuation symbols with spaces: s/([،;؛¿!'\])… Read more Padding Multiple Character With Space - Python

Combine Lines With Matching Keys

I have a text file with the following structure ID,operator,a,b,c,d,true WCBP12236,J1,75.7,80.6,65.… Read more Combine Lines With Matching Keys

How To Deserialize And Serialize Amf Packets In Python?

I am rewriting the following Perl code in Python: my $data = Data::AMF::Packet->new->deseri… Read more How To Deserialize And Serialize Amf Packets In Python?

Calculating The Distance Between Atomic Coordinates

I have a text file as shown below ATOM 920 CA GLN A 203 39.292 -13.354 17.416 1.00 55.7… Read more Calculating The Distance Between Atomic Coordinates

C, Perl, And Python Similar Loops Different Results

I wrote scripts to calculate pi in python, perl and c. They all use the same algorithm (trapezoida… Read more C, Perl, And Python Similar Loops Different Results

Use Subprocess Python Library To Unzip A File Using 7zip

I would like to unzip a file with Python using 7zip executable. In Perl this is pretty straightforw… Read more Use Subprocess Python Library To Unzip A File Using 7zip

How Can I Make Perl And Python Print Each Line Of The Program Being Executed?

I know that bash -x script.sh will execute script printing each line before actual execution. How t… Read more How Can I Make Perl And Python Print Each Line Of The Program Being Executed?

What's The Pythonic Way To Store A Data Block In A Python Script?

Perl allows me to use the __DATA__ token in a script to mark the start of a data block. I can read… Read more What's The Pythonic Way To Store A Data Block In A Python Script?

Script For A Changing Url

I am having a bit of trouble in coding a process or a script that would do the following: I need to… Read more Script For A Changing Url

Subprocess Command Encoding

I'm currently migration a script from Perl to Python3 (3.6.5). Is is running on Windows Server … Read more Subprocess Command Encoding

Listening To Keyboard Events Without Trapping Them?

I'm writing an command-line application which listens for Control key release events in X Windo… Read more Listening To Keyboard Events Without Trapping Them?

Finding The Modules Where Changes Were Checked With Svn

I have a multi module maven project. Project -Module1 -Module2 -Module3 -Module4 … Read more Finding The Modules Where Changes Were Checked With Svn

Parse Svn Log Changed Path For Package Names

I am running the following command in linux to generate a verbose log for a particular revision. sv… Read more Parse Svn Log Changed Path For Package Names

How Do I Grab A Thumbnail Screenshot Of Many Websites?

I have a list of 2500 websites and need to grab a thumbnail screenshot of them. How do I do that? I… Read more How Do I Grab A Thumbnail Screenshot Of Many Websites?

Split 10 Billion Line File Into 5,000 Files By Column Value In Perl Or Python

I have a 10 billion line tab-delimited file that I want to split into 5,000 sub-files, based on a c… Read more Split 10 Billion Line File Into 5,000 Files By Column Value In Perl Or Python

Extracting Visual Event 2 Output Into Script

In the Visual Event description, it says that it extracts 'which elements have events attached … Read more Extracting Visual Event 2 Output Into Script

How Can I Make Perl And Python Print Each Line Of The Program Being Executed?

I know that bash -x script.sh will execute script printing each line before actual execution. How t… Read more How Can I Make Perl And Python Print Each Line Of The Program Being Executed?

Script To Get The Max From Column Based On Other Column Values

I need a script to read in a csv file(orig.csv) and output a reformatted csv file(format.csv) The … Read more Script To Get The Max From Column Based On Other Column Values