Files
michaelschiemer/tests/debug/verify-mask-patterns.php
Michael Schiemer fc3d7e6357 feat(Production): Complete production deployment infrastructure
- Add comprehensive health check system with multiple endpoints
- Add Prometheus metrics endpoint
- Add production logging configurations (5 strategies)
- Add complete deployment documentation suite:
  * QUICKSTART.md - 30-minute deployment guide
  * DEPLOYMENT_CHECKLIST.md - Printable verification checklist
  * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle
  * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference
  * production-logging.md - Logging configuration guide
  * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation
  * README.md - Navigation hub
  * DEPLOYMENT_SUMMARY.md - Executive summary
- Add deployment scripts and automation
- Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment
- Update README with production-ready features

All production infrastructure is now complete and ready for deployment.
2025-10-25 19:18:37 +02:00

35 lines
1.1 KiB
PHP

<?php
echo "=== ISO/IEC 18004 Mask Patterns ===\n\n";
echo "Pattern 0: (row + column) % 2 == 0\n";
echo "Pattern 1: row % 2 == 0\n";
echo "Pattern 2: column % 3 == 0\n";
echo "Pattern 3: (row + column) % 3 == 0\n";
echo "Pattern 4: (floor(row/2) + floor(column/3)) % 2 == 0\n";
echo "Pattern 5: (row * column) % 2 + (row * column) % 3 == 0\n";
echo "Pattern 6: ((row * column) % 2 + (row * column) % 3) % 2 == 0\n";
echo "Pattern 7: ((row + column) % 2 + (row * column) % 3) % 2 == 0\n\n";
// According to our Format Information, we're using Pattern 2
// Pattern 2 = "column % 3 == 0"
// Let's check which pattern Python uses (Pattern 0)
echo "Python uses Pattern 0: (row + column) % 2 == 0\n";
echo "We use Pattern 2: column % 3 == 0\n\n";
// Both are valid patterns! The issue is our mask application might be wrong
// Let's visualize Pattern 2
echo "Pattern 2 visualization (column % 3 == 0):\n";
echo " Col: 0 1 2 3 4 5 6 7 8\n";
for ($r = 0; $r < 5; $r++) {
echo "Row $r: ";
for ($c = 0; $c < 9; $c++) {
echo ($c % 3 === 0 ? '1' : '0') . ' ';
}
echo "\n";
}
echo "\nExpected: Vertical stripes at columns 0, 3, 6, ...\n";