Perl is not dead?
Thursday 21 July 2016 @ 8:46 am

So, is Perl still not dead, as I heard on the conferences in Pisa or Lisbon?

Let’s see some data.

Are people interested in it or using it – measured by google search trends:

Trendy Google perl Caly swiat 2004

Not good.

How about the newest Perl 6? (By the way: do people use Perl 6 in real, big projects? Please post examples in comments 🙂 )

Trends Google perl 6 World 2004

Not good either…

How about the great community repository – CPAN? (not to be confused with Szczepan 🙂  )

Trends cpan World since 2004

 

Perhaps all those people dumped Perl and started using PHP and Python…

 

Trendd perl, php, python, ruby,

WTF? They did not. PHP is declining too!

Python is on one level, rising just slightly. Going head to head with Ruby.

BTW: interesting article here about Perl and Python – but Python did nor rise as much as the author expected.

Maybe Javascript is the new black (you know you can use JS server side, strange, huh)? Perhaps, but – for example – Angular does not look too great on that chart above, compared to PHP, Python and Ruby.

Let’s look closer:

Trends angular, javascript, jquery

What? Javascript is going down too? And jQuery too? WTF? If everything goes down, what goes up then?

Yes, Angular rising a little, but come on, it is still nothing compared to JS, Python etc.

So maybe we’ll look at job trends?

php, perl, ruby, javascript, python Job Trends Indeed.com

From Indeed.com

Well… Perl going down fastest, but PHP and JS nearly as fast. Ruby is on the same level, after some ups and downs, and Python… rises.

If everything (except Python) goes down – what goes up? What language will be most popular in next years? Go? C-something, Swift? CoffeeScript or another JS-something? Please post your thoughts in comments.

 

Comments (2) - Posted in future by  



Solved mystery – perl on XAMPP won’t run modified scripts “End of script output before headers”
Friday 4 April 2014 @ 10:20 am

Nice, WTFish riddle for You today. Imagine this – there is a XAMPP server – Windows, apache, Perl and PHP (from www.apachefriends.org) installed on your laptop.

I hope the previous sentence did not put you off, linux fans 😉

Still with me?  Read on: you have a typical hello world type perl script, serving as an example and test, that is delivered with that whole bunch.

It works. Shows “OK” via CGI.


#!"C:\xampp\perl\bin\perl.exe" 
 
print "Content-Type: text/html\n\n"; 
print "OK";

You write your own small script – get server error 500 – “End of script output before headers“.

You put your script in the same directory as that example – still get 500.

You copy your example script to other file in the same directory and edit it – 500.

You copy your example script to other file in the same directory and NOT edit it this time  – 500.

You edit your example script (that original file) , do the slightest change – for example change string to “OK2”  – 500.

You edit your example script back to be exactly as it was before – it works.

WTF?

Good text editor was used – Notepad++ (saving as UTF8 without BOM, line endings were not messed with), so it was not the cause of problems.

The problem was encountered by more than one person (1st, 2nd).

Guess where the problem was.

You can think for yourself, the answer to the riddle, cause and solution is below (scroll if you have no idea)

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

.

 

 

 

The antivirus/firewall program, COMODO Internet Security was causing the problem. It did not allow to run neither new perl files, nor modified existing perl files. I guess it somehow accepted the original file that was created during XAMPP installation, but when someone tried to modify it or make new one – it won’t run.

Solution – temporarily turn off sandbox feature or the whole COMODO antivirus/firewall at all. Or change it to other product.

Comments (1) - Posted in wtf by  



Fixing FUMP errors – error(s) detected and other
Monday 15 October 2012 @ 1:28 pm

Suddenly I’m becoming expert in fixing FUMP script.  FUMP stands for Follow Up Mailing List Processor and is a script used as autoresponder, with followup messages.  One person asked me to fix a problem with it (strange error). I fixed it, wrote about FUMP on my other blog, and since then a few more people asked me for help.

So, nolens volens, I became FUMP fixing expert. Quite often it is fixing “Error(s) detected” error (when logging in), but sometimes there are other problems, like the aforementioned problem with additional libraries. The interesting thing is, that the script works flawlessly, and then out of sudden it stops, showing detected error message.

 If your FUMP is broken, you can write to me at following e-mail:

poczta [ “at” sign ] arystoteles.pl

I’ll fix it.

The e-mail above is changed so the spammers don’t get it, but you know what to put between poczta and arystoteles: @

Usually I need to check what is wrong, think, find the problem, then fix it.

 What is FUMP?

It is an autoresponder script, that you host on your own server (thus avoiding monthly or yearly costs of using other autoresponders like GetResponse, Aweber etc.).  Youcan have as many mailing lists as you want for no additional costs.  The server you host Follow Up Mailing List Processor must be able to run perl (obviously).  The script is old and not supported by sellwide now, so if it stops working you need to find somebody who is not afraid of diving into mess of it’s code and will fix it.  (The code of that script by Konstantin Ursaloff  is not bad, but it definitely is not beautiful either).

I accept those task to mend the fump because it is good diversion form what i usually do.

 So, to get your FUMP fixed, write to me at:

poczta [ “at” sign ] arystoteles.pl

You know what to put between poczta and arystoteles: @

Common types of erros:

Error(s) detected (with no other message) – the most common problem.

SQL error: : ERROR: 1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘(14) ,   `procnomber` tinyint(4) NOT NULL default ‘0’,   `pid` varchar(6) NOT NU’ at line 1 at lib/dbfunc.pm line 154.

ERROR: 1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE=MyISAM AUTO_INCREMENT=2’

and so much more 🙂

If you want me to install and configure FUMP script

you can contact me too.  I can configure your FUMP to be fully compatible with all diactricts, umlauts, international characters with very capable Unicode encoding UTF-8.

Was searched:

Comments (4) - Posted in work by  



installing from CPAN without root
Saturday 14 August 2010 @ 7:20 pm

I found this nice site, that takes you step by step through installing perl modules without root access, using local::lib

http://perl.jonallen.info/writing/articles/install-perl-modules-without-root

Enjoy 🙂

Comments (0) - Posted in cpan by  



YAPC::EU 2010 Pisa – my presentation
Thursday 5 August 2010 @ 4:35 pm

Here is my presentation for YAPC::EU 2010 in Pisa:

http://prezi.com/csbyxwomcsoi/more-wtf-in-perl-yapceu2010-pisa/

Comments (0) - Posted in yapc by  



Perl job = high salary
Thursday 29 April 2010 @ 6:46 am

Here is article (in Polish language, but you will surely understand the first bar graph) http://interaktywnie.com/biznes/newsy/raporty-i-badania/tak-w-polsce-placi-sie-pracownikom-it-12414 that shows that Perl developers earn the highest salaries in Poland (50% more than PHP coders) 😉

The numbers on graph means: length of bar – monthly salary in polish złoty (currency) – divde by 4 to get values in Euro, percentage in pink box – percentage of that language users (perl – 5%)

Comments (1) - Posted in work by  



YAPC EU 2010 is coming
Monday 26 April 2010 @ 6:16 pm

Some news about YAPC EU 2010:

Tickets:

All prices include Italian VAT (20%).

For speakers free 🙂 (lightning-talk speakers not included)

Guests: Wall, Conway, Randall, Rolsky…

There will be courses before and after conference:

Priced 150-220 euro each.

(more about courses)

And a trip to Florence is very likely to be arranged on Saturday, August 7th (just after the conference).  Yay! Remener Hannibal Lecter drawing Duomo on the wall in his cell? 😉

 

Comments (0) - Posted in yapc by  



Nothing about perl today
Wednesday 14 April 2010 @ 6:27 am

Every Wednesday I write a post here. But, due to national mourning, nothing about perl today.

As you know, near the airport of Smolensk Tupolev 154-M aircraft with President Lech Kaczynski crashed. President of the Polish National Bank also died, the head of the IPN (National Memory Institute), the Sejms and Senats (both chambers of parliament) vice heads – (Putra, Bochenek, Szmajdzinski), the former president in exile Kaczorowski, presidential ministers, Chief Gen. Gągor, the ombudsman Janusz Kochanowski, wife of the President, members of Parliament (Gosiewski, Wasserman, Jaruga-Nowacka, Szymanek-Deresz and others), bishop Tadeusz Płoski and others. Probably when making the second approach to landing plane collided with trees and crashed.

A few rather obvious parallels arise:
– that in the Katyn Polish intelligentsia perished and now again, many representatives of the Polish intelligentsia died there.
– Second, the General Sikorski and his unexplained aircraft accident
– Third – that 5 years ago, in the day before the Divine Mercy Sunday, 7 days after Eastern died Pope John Paul II. This year, exactly the same vigil before that Sunday, the President and others died.

Read more of you want:
http://en.wikipedia.org/wiki/Katyn_massacre
http://en.wikipedia.org/wiki/W%C5%82adys%C5%82aw_Sikorski#Death
http://en.wikipedia.org/wiki/Divine_Mercy_Sunday

Comments (0) - Posted in wtf by  



Perl ads here
Wednesday 7 April 2010 @ 6:53 am

There ads on this blog. Really. You probably do not see it, if you use adblock for firefox or similar solution.

Turn AdBlock off and look at right column. First, there are ads about perl – form Gabor – I wrote about it here. Then a few adsense (from Google). They should match the content of this blog. And then is a link to one particular book I like very much.

And guess what? No one clicks the ads from Google. I see that in my stats. Even though those ads are matched to site content – as you can see. I doubt if anyone clicks the ads from Gabor either (by analogy – beside, I guess, most geeks use adblock and similar solutions – so they do not even see it – and those ads are intended for THEM). If you have clicked and ad here – either from Gabors perl ad server, or google – raise your hand (add a comment).

Comments (4) - Posted in wtf by  



Masons and mason
Wednesday 31 March 2010 @ 6:57 am

I’m reading now a book by Dan Brown, author of “DaVinci code”, titled “Lost symbol”. It is mostly about masons. And it quite resemble the previous books by this author. Anyway, it is riveting.

This seemingly off-topic introduction leads to the on-topic perl thing: the mason. It is a “High-performance, dynamic web site authoring system” and “solves the common problems of site development: caching, debugging, templating, maintaining development and production sites, and more.” and “you can embed Perl code in your HTML and construct pages from shared, reusable components.”. Well, sound nice. How it looks? Like this:

(there was something wrong here. I removed it 🙂 )

Sadly, the FAQ on the official page seems to be neglected and is spammed by merchants of medications made to make your weenie harder. On the other hand, newest version is 1.44 form Jan 4, 2010 – so it is still developed.

Assuming that I would like to learn something new, like “something big, modern, to easy make web applications – with templates, cache, scalability, quick development” should I dive into mason, or better look for something else?

So, I have question, asking YOU for an insight about this like:
mason is cool, and at least better to do the same by your own from scratch
– forget it, it is so 1990’s, learn catalyst instead
– forget mason and catalyst, learn PHP symphony (- no problem for me, I know PHP – more or less 🙂 )
– ruby on rails is the real thing (no, I will not learn ruby – at least now 🙂 )
– the best is framework …. (something not mentioned above)

Please write your opinion below. Thank you.

Comments (4) - Posted in work by  



Older Posts »