Jetty maxFormContentSizeJetty not working? Here’s the fix

People are generally prescribing something like this to configure maxFormContentSize for jetty in the jetty.xml:

<Configure id="Server" class="org.eclipse.jetty.server.Server">
	...
    <Call name="setAttribute">
        <Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
        <Arg>10000000</Arg>
    </Call>
</Configure>

In my experience, in 2024 with a recent version of jetty (9.4.53), this isn’t working inside apache’s karaf or in embedded mode within maven, and may not be working in other containers as well.

Continue reading

Coronavirus Simulator

It seems that a lot of people don’t understand the purpose of flattening the curve with quarantine. I’ve made a crude simulator that demonstrates hospital resource exhaustion if the number of cases continues to grow at the current rate (25% per day as of March 22, 2020).

Check it out:

http://www.codercowboy.com/coronasim/

Vintage Computer Software Resources In 2020

I’ve recently dived into collecting vintage computing hardware. Vintage software is somewhat hard to find these days, especially old boot disks and OS installation CDs. I found the following resources while reviving an old IBM Aptiva 2134 Pentium-era machine:

Continue reading

Collecting Vintage Computer Hardware In 2020

I recently purchase and Aptiva 2134 from a vintage computer collector on Facebook Marketplace in an effort to fully immerse myself in Windows 9x nostalgia while writing a book.

The 2134 is a Windows 95 era machine produced in 1996 that sports a 120mhz Pentium processor, 96MB of ram, three ISA slots, an on-board graphics chip with SVGA support, two PCI slots, an 3com Etherlink III ISA card, an awful horrible painful sound card called an MWave, and a 2GB hard drive – or, at least, that’s the configuration mine came in. I think the stock version came with perhaps 12MB of ram, and a choice of processor speeds.

If you’re looking for vintage hardware to collect, I’d recommend the following search terms to try on ebay, craigslist, and/or Facebook Markeplace: IBM, Compaq, Packard Bell, E-Machines, Gateway, Vintage Computer, Old Computer, XT, AT, 286, 386, 486, Pentium, 3dfx, Voodoo, Macintosh, Apple, Performa, Power PC, G3, G4, ThinkBook, iBook, Windows 95, Windows 98, etc. Also consider the Vintage Computers facebook group and/or the Computer Collecting subreddit. I’ve also made a reddit custom feed that collects retro computing subreddits.

Finding old hardware like the Aptiva will prove more difficult as time marches on, partially due to extreme obsolescence, but also because the old intel chips up to and including the Pentium 2 have gold in them. In recent years, the value of gold has risen so much that many of the processors are being recycled to extract the gold from them.

Thanks to Jack of Bachelor Uncle fame for helping me locate the Aptiva computer.

Wicket 7 Debug Bar Empty? Add a DebugBarInitializer to your app.

In Wicket 7.12.0, adding a DebugBar to your page will result in an empty / useless debug bar if you don’t add a DebugBarInitializer to your app. Hopefully this will be documented by the wicket project in the future, but it isn’t right now.

Continue reading

Java HashMap.hashCode() Not Unique With String Keys And Values

Java’s HashMap (AbstractMap really) hashCode() implementation sums the hash codes of its entries rather than multiplies them by a prime number like String.hashCode() does. This can cause weird collisions in very similar maps.

Continue reading

Trash Bird Fix

Haven’t posted in a while, mostly because my life has been a complete fucking wreck for the past year or so.

Anyway. I fixed the trash bird with a chrome extension.

Continue reading

Music to Code By – 2015, or, how I learned to love the Dire Straits

Standard Disclaimer: My favorite band ever is The Smashing Pumpkins, or possibly Nine Inch Nails. In recent years my favorite genres of music have been EDM and Post Rock. If it’s dark, and/or mopey, I probably love it. If it starts off slow and sad and crescendos with catharsis 9 minutes later, I probably love it. Consider yourself warned.

Continue reading

Yet Another OSX Yosemite Wifi / Bluetooth Connectivity Fix

Some users have problems with OSX Mavericks/Yosemite wifi connectivity – there’s all sorts of things that can go wrong.

This stackexchange thread has a variety of solutions that you should probably try.

Continue reading

Link Dump – March 2015

Time for another collection of random amazing things.

Long Reads

New websites worth following or bookmarking:

Important Images

Video

Games

Random

Want more? See past link dumps.