Scrupuli

blunt essays with sharp points

I have been attacking the problems at Project Euler.net

by Scrvpvlvs
Apr 26, 2011 6:30 PM–… and Project Euler is winning Round 34.

I have been working my way through some fun problems at Project Euler.net. Fun for me, anyway. To solve them takes what Edsger Dijkstra called mathematical engineering: mathematics and programming skills used together.

There are many problems to choose from, from very easy to very challenging. But they all have this in common: though it takes time and thought to analyze each problem, the solution should run on any basic computer in less than a minute.

Which is great! It means that nobody needs a supercomputer to solve these problems: just a PC and the will to learn and succeed.

Which brings me to Problem 34, find the sum of all numbers which are equal to the sum of the factorial of their digits. This problem is eating my lunch.

My solutions to problems 1–33 were sometimes lazy. Yes, some run under a millisecond, or scale to much bigger problems than those posed … but I have also been perfectly satisfied with brute force solutions if they ran under a minute on my old PC.

But, so far, my solution to Problem 34 takes more than 2 minutes to run and its output is rejected by Project Euler for no good reason that I can see. Suddenly I cannot afford to be lazy.

Incidentally, all my solutions are written in Perl. I have, as I hoped, learned quite a bit about optimizing Perl programs that I did not know before.

In case you can’t tell, I am really enjoying this!

Labels: , , , , , , , ,

(go to complete article)

Share:

1 comments

Do it yourself repair of a Panasonic KX-FL511 fax machine

by Scrvpvlvs
Apr 6, 2011 1:41 PM–I solved a CALL SERVICE 3 condition by fabricating a one dollar wire for the fuser unit.

The machine reported a CALL SERVICE 3 condition and recorded a cause distinction code of 01DF, which means the heat roller temperature sensor was still at 23 °C (room temperature) 22 seconds after the heater circuit was energized. The fuser stayed cool to the touch, so I agreed with the sensor.

This could have been a fault anywhere in the heater control system. I pulled the fuser assembly because the moving parts and heater have a high potential for failure.

The multimeter showed the heater circuit had no continuity (bad), but the bulb had continuity (good). So I started removing wiring, and terminal plate wire B came out in two pieces.

The wire runs across one end of the heat roller. In my unit, it was installed wrong and was in contact with the heat roller. Over time, the heat roller sawed through the wire.

I fabricated a new wire because I did not find one in stock. I used bare solid copper wire of slightly heavier gauge than the original.

After reassembling, I cleared the CALL SERVICE 3 using service function 529.

This was my first use of the KX-FL511 service manual. It is a very good, detailed and complete manual. It has some mistakes in the cross references, some poor grammar, and some missing text cut off by the margin, all of which might have been caused by Japanese–English conversion. But it was still so good that even someone like myself who does not normally service electronics can be successful using it.

References

Service Manual: High Speed Laser Fax and Copier: KX-FL511 (for U.S.A.). KMF0304645C1. Panasonic, eBook. 6 Apr 2011. <http://www.eserviceinfo.com/download.php?fileid=38206>

Labels: , , , , , , , , ,

(go to complete article)

Share:

4 comments

about.me

Follow

feed

E-mail: enter address

Project Euler competitor metaed

vs.

Project Euler competitor db8

profile for MetaEd on Stack Exchange, a network of free, community-driven Q&A sites

Recent Articles

Cataclysm

Open letter re: Grinnell College alumni “lifetime”...

Spybot – Search & Destroy interferes with Lync 201...

A moment of silence

Rondeau

Howard Schultz of Starbucks: firm on support for m...

In each of us, two natures are at war

Clorox does not understand how to measure bleach

This season’s pie recipe

Adamah

Archives

November 1999
June 2000
July 2000
September 2001
October 2001
February 2002
March 2002
June 2003
February 2004
June 2004
July 2004
August 2004
September 2004
February 2005
March 2005
November 2005
July 2007
March 2008
April 2008
May 2008
October 2008
November 2008
December 2008
January 2009
April 2009
September 2009
December 2009
February 2010
March 2010
May 2010
June 2010
September 2010
October 2010
November 2010
December 2010
January 2011
April 2011
June 2011
July 2011
August 2011
September 2011
December 2011
February 2012
April 2012
May 2012
June 2012
July 2012
August 2012
September 2012
November 2012
January 2013
February 2013
April 2013
February 2014
May 2014
October 2014
June 2017
February 2019