Python Tutorials: List of python3 Options and arguments command lines

usage: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 [option] … [-c cmd | -m mod | file | -] [arg] … Options and arguments (and corresponding environment variables): -b : issue warnings about str(bytes_instance), str(bytearray_instance) and…

Read more »

Python Tutorials: List of Python Environment Variables

Here are important environment variables, which can be recognized by Python − Sr.No. Variable & Description 1 PYTHONPATHIt has a role similar to PATH. This variable tells the Python interpreter…

Read more »

How to verify of cobertura.jar file is loaded into jvm

scmuser created the topic: How to verify of cobertura.jar file is loaded into jvm How to verify of cobertura.jar file is loaded into jvm? I have instrumented class but Automated…

Read more »

Could not find or load main class net.sourceforge.cobertura.instrument

scmuser replied the topic: Could not find or load main class net.sourceforge.cobertura.instrument Still could not resolve the issues as below; [code language=”css”] C:\Users\rkumar11>cd C:\cobertura [/code] [code language=”css”] C:\cobertura>cobertura-check.bat Error: Could…

Read more »

A simple Ruby method to send email

scmuser created the topic: A simple Ruby method to send email A simple Ruby method to send email [code language=”css”] require ‘net/smtp’ def send_email(to,opts={}) opts[:server] ||= ‘localhost’ opts[:from] ||= ’email@example.com’…

Read more »

Add each array element to the lines of a file in ruby

scmuser created the topic: Add each array element to the lines of a file in ruby Add each array element to the lines of a file in ruby Either use…

Read more »

What is the way to iterate through an array in Ruby?

scmuser created the topic: What is the way to iterate through an array in Ruby? What is the way to iterate through an array in Ruby? This will iterate through…

Read more »

Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed

scmuser created the topic: Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Create a Ruby Array [code language=”css”]…

Read more »

Common ways to read a file in Ruby?

scmuser created the topic: Common ways to read a file in Ruby? [code language=”css”] File.open(“my/file/path”, “r”) do |f| f.each_line do |line| puts line end end # File is closed automatically…

Read more »

How to process every line in a text file with Ruby

scmuser created the topic: How to process every line in a text file with Ruby Example 1 [code language=”css”] # ruby sample code. # process every line in a text…

Read more »

Tips for learing phyton scripting

suresh created the topic: Tips for learing phyton scripting Hi everyone. Can any one suggest project for becoming the best in python scripting. Any project where we actually use python…

Read more »

Run a .bat file using python code

rajeshkumar created the topic: Run a .bat file using python code from subprocess import Popen p = Popen(“batch.bat”, cwd=r”C:\Path\to\batchfolder”) stdout, stderr = p.communicate() Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

Read more »

Perforce Python Script Collection.

rajeshkumar created the topic: Perforce Python Script Collection. Implement a script that will do following: 1. Read config file. This file will contain following settings: a. For mail delivery (SMTP)…

Read more »

Remove Control ^M from files

tpatil created the topic: Remove Control ^M from files Single file method perl -pi -e “s/\r//” filename.txt Multiple File Method find . -type f -exec perl -pi -e “s/\r//” {}…

Read more »

I need to a perl script

rajeshkumar created the topic: i need to a perl script Hi , There is a file called test.txt what are all the different ways BEGIN: test 1 test 2 %%%%%%%%%%…

Read more »

The difference between my and local

rajeshkumar created the topic: The difference between my and local There is a subtle difference. In the example below, $::a refers to $a in the ‘global’ namespace. ‘local’ temporarily changes…

Read more »

What is the meaning of rigging?

scmuser created the topic: What is the meaning of rigging? Hi, Could you please tell me meaning of rigging in perl?

Read more »

Parenthesis After Module Name And Without Parenths

scmuser created the topic: parenthesis after module name and without parenths What is the difference between having a parenthesis after module name and without parenthsis after module name?? i.e Package::Module();…

Read more »

Question Regarding to Eval Function

scmuser created the topic: question regarding to eval function I have one question regarding to eval function. I know eval function is use for error checking but I am not…

Read more »

Find a particular word in a paragraph

scmuser created the topic: Find a particular word in a paragraph Write a Perl script to find a particular word in a paragraph???

Read more »