Well i'm learning Python cuz' i think is an awesome and powerful language like C++, perl or C# but is really really easy at same time. I'm using JetBrains' Pycharm and when i define a function it ask me to add a "Documentation String Stub" when i click yes it adds somethin like this:
"""
"""
so the full code of the function is something like this:
def otherFunction(h, w):
"""
"""
hello = h
world = w
full_word = h + ' ' + w
return full_word
I would like to know what these (""" """) symbols means, Thanks.
Ps.Data: Sorry for my bad english :D
What are some features of Emacs Lisp that you use to solve real problems?
One feature per answer
Give an example and short description of the feature, not just a link to documentation
Label the feature using bold title as the first line
See also:
Hidden features of Python
Hidden features of Ruby
Hidden features of Perl
Hidden features of Java
Hello my Dear friends!
Firstly sorry to my English I am not an expert:)
I am using freeradius 2.1.7 and MySQL instaled on Ubuntu server 9.04.
Now, the perl script called: "auth.pl" is verifying usersnames, passwords, and updating information.
The problem is that on a certain number of connections simply "NAS" - Mikrotik
until the next reboot users can not connect.
If you need i cann show you auth.pl script
Hello,
after a website mirrored using HTTrack, there is lots of ads. I just want to replace that ads by ID or class, or by text, using script (Perl, Python, Ruby, etc), or any other way
Does anyone know what script can do this job?
Thanks in advance.
I was recently looking for a personal wiki and come upon Hatta, which uses Markdown simplify editing and generate html. My question is why are there some many implementations of Markdown in Python, Javascript, PHP, etc. when an official Perl implementation already exists? Is there some benefit to having this choice?
I am looking to get into web application development. I am an undergrad CS major with experience in programming desktop apps, but with only basic knowledge regarding how web apps work. Any suggestions of where to start? Javascript, php, perl, ruby, python? Should I look into frameworks like django, seaside, ruby on rails, etc at first or wait until I am more experienced to use those?
I have an existing application written in perl. Now i need to integrate this application with ocbi. The plan is having button that user can click on to open ocbi in iframe. The ocbi resides on a different server from the running application. Has anyone done this before, know what is the best practice of doing this, and what is the effort of doing this.
another question is is it possible to add customize the ocbi displayed in iframe. thanks
Hello,
I have been working with java and python, so I found a nice web host which has support for these.
But my question is, why can you find so hard such hosts?
I understand that php is easy, I also understand that oracle host is hard to find ($$$ of course), but what do they have against some good open-source, completely free java spring, jsp, django, python, ror, perl etc etc ....
So rare to find hosts ... not to mention freelancer bids
Thank you.
Let's say I have
def
abc
xyz
abc
And I want to match
xyz
abc
as a whole
Is this possible using the most generic RegEx possible?
That is not the perl RegEx or .Net Regex which have multi line flags.
I guess it would be BNF to match this.
I'm building an internal website in Perl and I would like to get it to use Windows credentials for authentication. My research so far has turned up a lot of keywords: Kerberos, LDAP, NTLM, etc, but no solid information. Anyone got pointers or good tutorials?
Thanks.
In Perl, I would write:
$x = "abbbc";
$x =~ s/(b+)/z/;
print "Replaced $1 and ended up with $x\n";
# "Replaced bbb and ended up with azc"
How do I do this in Python -- do a regular-expression string replacement and record what it was that got replaced?
The user needs to browse sites through the Java program (not netbeans IDE), it should behave exactly like FireFox browser or IE, any suggestions ? I need to be able to access the DOM so I can manipulate DOM elements.
Also, is there something equivalent to Perl's CPAN but for Java ?
Does anybody know a clean PHP-based solution that can backup remote web sites using FTP?
Must haves:
Recursive FTP backups
Possible to run through a cron job
Easy to configure (easy adding of multiple sites)
Local storage of backup files is sufficient
Would be nice:
Backed up sites are stored as zip files
A nice interface to manage things
Provides notification when backup has succeeded or failed
Does incremental backups
Does MySQL Database backups
I need this to be PHP (or Perl) based because it's going to be used on shared hosting packages that do not allow usage of the standard GNU/Linux tools available.
Let's say I have
def
abc
xyz
abc
And I want to match
xyz
abc
as a whole
Is this possible using the most generic RegEx possible?
That is not the perl RegEx or .Net Regex which have multi line flags.
I guess it would be BNF to match this.
This question relates to the command line version of cURL.
I'm trying to download a file from a cgi script.
http://someserver/perl/dl.pl?ID=2
Using a browser the filename comes up as 'remotefilename.gz'
cURL wants to save the file as 'dl.pl?ID=2'
How do I get cURL to save to a file with the filename from the response header??
I'm looking for a library that simplify tempo/bpm audio detection.
Something similar to this http://adionsoft.net/bpm/ , but to use on *NIX machines.
Any language, but preference goes to php, perl, python.
I have a Perl script that calls aspnet_compiler.exe to compile a large ASP.NET website. The problem is that it takes very long to run. Is there any way to compile just a single .aspx file from the command line? (I think that would suit the needs of my script) It seems that all aspnet_compiler.exe can do is compile at a directory level.
How can I sum (using Linux shell) numbers in a column? If possible, I don't want to use powerful tools like awk or perl. I want something like giveMeNumber | sum
We are going to publish API documentation on our web site.
The documentation is generated by Doxygen from sources.
The problem is that Doxygen generate weird file names (which is no so good for SEO).
For example, for source file RO4_Languages.h Doxygen generate _r_o4___languages_8h.htm.
Is it possible to change name of generated files?
PS: I know that it possible to change output using 3rd party tools/scripts (awk/sed/perl/etc).
is it possible to build a full functional, small scaled website, without java or python or perl or php? and with xml files as simple data storage? therefore, i can move my website any where I want.....
any experiences like this to share?
thanks.
Hi,
I have an XML file which is coming from the back end through an HTTP service(Using the perl cgi) and I want to display it in an advanced data grid....as in if I click the parent element the children have to be displayed in the corresponding columns...I'm trying it with my data provider but its not working. Is it possible?
Thanks in Advance.
I want to put custom scripts/programs in ~/bin on few machines under version control (repository is on a remote server). In the bin/ folders I have many perl/sh/bash scripts, as well as small .c programs. What layout would you use for such repo?