C.-Y. Fung
- Website: e7-87-83.github.io/
- About: This blog is inactive and replaced by https://e7-87-83.github.io/coding/blog.html ; but I post highly Perl-related posts here.
Recent Actions
-
Posted Data::Table - Weekly Travelling in CPAN to Moments on Perl or other Programming Issues
Destination: Data::TableDistribution: Data-Table
Module version: 0.38
Main Contributors: Yingyao Zhou (EZDB), Guangzhou Zou
License: [perl] … -
Posted Web::Scraper - Weekly Travelling in CPAN to Moments on Perl or other Programming Issues
Destination: Web::ScraperDistribution: Web-Scraper
Module version: 0.38
Main Contributors: Tatsuhiko Miyagawa (MIYAGAWA)
License: [perl_5]
-
Posted Graph - Weekly Travelling in CPAN to Moments on Perl or other Programming Issues
Destination: Graph
Distribution: Graph
Module version: 0.9726
Main Contributors: Jarkko Hietaniemi (JHI)
Current Maintainer: Neil Bowers (NEILB)
License: [perl_5]… -
Posted Text::Extract::Word, MsOffice::Word::Surgeon - Weekly Travelling in CPAN to Moments on Perl or other Programming Issues
Destination: Text::Extract::WordDate of Latest Release: Mar 09, 2012
Distribution: Text::Extract::Word
Module version: 0.02
Main Contributors: Stuart Watt (SN… -
Commented on Regexp::Assemble - Weekly Travelling in CPAN
Dear demerphq and Sebastian, Thanks for pointing out the optimization done by the Perl compiler! I will post a corrected performance comparison next week....
- Posted Quiq - Weekly Travelling in CPAN to Moments on Perl or other Programming Issues
-
Posted Regexp::Assemble - Weekly Travelling in CPAN to Moments on Perl or other Programming Issues
It has been on my mind quite a while. Originally it was suggested on Twitter, by Mohammad Anwar, the maintainer of "The Weekly Challenge", that the community should re-publish the CPAN Weekly, which existed before I joined the hacker community. Our plan was having the newsletter began in…
-
Posted Random Thought: Exposure of Perl in the Academic Circles to Moments on Perl or other Programming Issues
Today I have wandered on the famous academic paper archive and suddenly a thought popped into my mind - use Perl as the keyword in searching.
Computer science papers with "Perl" in the title
="https://arxiv.org/search/advanced?advanced=1&terms-0-operator=AND&terms-0-term=Perl&… -
Posted How I Uploaded a CPAN Module to Moments on Perl or other Programming Issues
An updated but yet to be completed version is here.
So, accumulating effort from Wednesday, today(Friday) I become a
-
Posted Promotion: Knight's Challenge to Moments on Perl or other Programming Issues
(image from wikipedia)…
-
Posted CY's Take on PWC#110 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenges, submit codes on-time (by GitHub or email).
Do tell me, if I am wrong or you s…
-
Posted CY's Take on PWC#109 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenges, submit codes on-time (by GitHub or email).
-
Posted [Personal Review] Codes from The Weekly Challenge Week 095-105 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenges, submit codes on-time (by GitHub or email).
-------------------------------------
-
Posted CY's Take on PWC#094 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenges, submit codes on-time (by GitHub or email).
Do tell me if I am wrong or you stro…
-
Commented on From a Reflection on The Weekly Challenge 092 Task 1
> ...it's actually quite a well-known problem. Thank you Ben again. Haha I don't mind about the tone; every stuff in a knowledge domain for a beginner is fresh-new....
-
Posted Let us Have a Productive Year of 2021 to Moments on Perl or other Programming Issues
Bye, 2020
There are 28 entries on this blog in the Year 2020.
In…
-
Commented on From a Reflection on The Weekly Challenge 092 Task 1
Thank you Ben!...
-
Commented on Perl Weekly Challenge 93: Max Points and Sum Path
> that the points of a straight line have to be immediate neighbors and that the lines can only be horizontal, vertical or diagonal. ... Hi Ben. Similar to Laurent, I also implemented a solution under a similar interpretation of...
-
Posted From a Reflection on The Weekly Challenge 092 Task 1 to Moments on Perl or other Programming Issues
Update: Ben Bullock has provided script for my question.
See the comment section. Thanks Ben.---------------------
Happy New Year!
Today's data is about$ perl pwc092-1_isomorphic.pl '茫茫人海'…
-
Commented on CY's Take on PWC#088
Toby, thank you for the attention to the details and advice....
-
Posted CY's Brute-Force Take on Task 2 of PWC#089 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenge, submit codes on-time (via GitHub or email).
-
Posted CY's Take on PWC#088 to Moments on Perl or other Programming Issues
…
-
Posted CY's Take on PWC#087 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenges, submit codes on-time (by GitHub or email).
After the long-haul Sudoku Task, this week… -
Commented on Perl Weekly Challenge 87: Longest Consecutive Sequences and Largest Rectangle
For Largest Rectangle in Perl: The answer for the last test case should be a 2x4 rectangle....
-
Commented on Permutations and Recursion
(1) How about generating recursive combinations in Perl? (2) For the issue discussed in the end of this blogpost: As I understand, strictly speaking, there are no "arrays of arrays" in Perl, but there is "arrays of 'references of arrays'"...
- Posted CY's Take on PWC#086 to Moments on Perl or other Programming Issues
-
Posted CY's Take on PWC#083 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenges, submit codes on-time (by GitHub or email).
... before coding
Long time no blo…
-
Posted OO linked lists in Perl to Moments on Perl or other Programming Issues
After many days, trying to implement linked lists by nested hash (link to Rosetta Code) (link…
-
Posted Expand one into two - CY's Take on TWC#077 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenges, submit codes on-time (by GitHub or email).
I found that I gained unnecessary promotion …
-
Posted Sum of Individuals Gives Meaning - CY's Take on PWC#076 to Moments on Perl or other Programming Issues
If you want to challenge yourself on programming, especially on Perl and/or Raku, go to https://perlweeklychallenge.org, code the latest challenges, submit codes on-time (by GitHub or email).
---
Task 1 Prime Sum
What …
Comment Threads
-
Samir Parikh commented on
Permutations and Recursion
I've been working on an implementation to generate the result with arrays (rather than strings) but have been running into some issues. I'll try to post more about what I've come up with as soon as I find more time.
You're correct about the "arrays of arrays" part. This is one area of Perl that has been challenging for me. I just need to find time to read through all of the excellent documentation!
-
laurent_r commented on
Perl Weekly Challenge 87: Longest Consecutive Sequences and Largest Rectangle
Yes, C.-Y. Fung, you're right. There was a small bug in the code, which no longer looked at the last column of the matrix. I don't know how this bug came in, as the code was originally correct, I guess I must have made a faulty copy and paste at some point. I've fixed it now. Thank you for bringing up the topic.
-
laurent_r commented on
Perl Weekly Challenge 93: Max Points and Sum Path
Hi Ben, I basically agree with C.-Y. Fung's answer. My method definitely doesn't look for points like (0,0), (1,2), (2,4). As I said in the introduction part, it appears that the given co-ordinates will be integers, that the points of a straight line have to be immediate neighbors (i.e. no gaps between them) and that the lines can only be horizontal, vertical or diagonal. Points like (0,0), (1,2), (2,4) don't fit this bill.
-
Ben Bullock commented on
Perl Weekly Challenge 93: Max Points and Sum Path
Checking for collinearity of three points in the completely general case is a matter of calculating the determinant of
1 x_1 y_1
1 x_2 y_2
1 x_3 y_3like this
Some other people such as Dave Jacoby had examples like this:
="https://github.com/benkasminbullock/perlweeklychallenge-club/blob/master/c…
-
Ben Bullock commented on
From a Reflection on The Weekly Challenge 092 Task 1
Some people on reddit also answered your query:
https://www.reddit.com/r/perl/comments/koahhf/from_a_reflection_on_the_weekly_challenge_092/
The replies might sound a bit sarcastic but that is because it's actually quite a well-known problem.
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.