Original image

9 Tips for that James K. Polk Bash You’re Probably Planning

Original image

Wikimedia Commons

Looking for ways to go wild this weekend? Then think about throwing a big-time 217th birthday bash for one of America’s least known presidents of all time, Mr. James K. Polk, born November 2, 1795. Here are some hosting tips to get you started...

1. Keep a low profile...

We’ve all been to parties with an overbearing host who insists on being the center of attention. But your posh Polk party demands a self-effacing touch. Be the mysterious, shadowy host that blends into the background. Even at the height of his career, Polk was known for being unknown—particularly outside of the world of politics. In fact, in the 1844 election, Polk’s opponents alluded to his rival’s obscurity with one pithy campaign slogan: “Who is James K. Polk?”

2. But be accessible.

Polk may have been the most available president in United States history. Polk held presidential “office hours” twice a week, during which concerned citizens could drop by to chat. All you had to do was knock on the White House door, present your card to the doorman, and wait your turn. So when you host your posh Polk party, make yourself available to chat with your guests about any party-related questions or concerns.

3. WWJD?

Polk was a big fan of Wacko Jacko (Old Hickory’s other, lesser-known nickname). In fact, Polk was probably the most Jacksonian president in history—even more devoted to Manifest Destiny than Andrew Jackson himself. Indeed, Polk oversaw the greatest territorial expansion of the United States to date: a one-third increase in land size. So whenever the stress of party planning seems like too much, ask yourself one simple question: What would Jackson do?

4. No Drinking/Dancing/Cards Permitted...

Polk’s wife Sarah was a devout Presbyterian who banned dancing, card games, and liquor at White House receptions. In deference to her unwavering convictions, music and dancing were suspended at the inaugural ball, then resumed after she and the president left. These rather strict limitations may sound like bad news for your bash. Look at it this way: You’ll save a ton on entertainment costs. But to ensure that your guests don’t stage a mutiny, you should probably make sure the food’s good.

5. But You Can Play Oregon Trail.

Remember that sick computer game from elementary school—the one where you had to survive a rough-and-tough wagon ride across the American countryside by fording rivers, hunting bison, and steering clear of dysentery? Without Polk, this groundbreaking diversion might not exist. Polk entered the presidency with the intention of putting an end to Britain’s claims to the Oregon Territory—hence the campaign slogan “54-40 or fight.” Thankfully, the U.S. never actually went to war. Through a combination of military threats and diplomacy, Polk arrived at a compromise with England that fixed the Oregon Territory’s boundary at the 49th parallel. Seeing as basically every form of merrymaking will be prohibited at your bash, you can at least entertain guests with their favorite childhood game. In fact, there’s even a newer 2011 iOS/Android version of this old classic.

6. Break out the Brandy.

Although drinking should be mostly prohibited at your bash, you should definitely break out a bottle of brandy as a tribute to Polk’s bad-assedness. At 17, Polk underwent an operation to have his kidney stones removed. Because anesthesia wasn’t available, Polk was awake during the entire surgery, with nothing but a bit of brandy to dull the pain. The procedure was a success; however, some historians suspect it may have left him sterile.

7. Work Yourself to Death

Polk may have been the hardest working president in history. In fact, he once declared, "No President who performs his duties faithfully and conscientiously can have any leisure.” Right from the get-go, Polk set out to achieve five major goals during the following four years: reestablish an independent treasury; lower the tariff; resolve the dispute with England over Oregon; acquire California; and annex Texas. After only one term, he’d accomplished his ambitious agenda. All that hard work came with a price, though. 53-year-old Polk died three months after leaving office—making his the shortest retirement of any American president. While Polk died of cholera, some historians have suggested that his years of non-stop working may have weakened his body and made him more vulnerable to infection. So be warned: Planning a posh Polk bash requires some serious stamina.

8. Keep It Short and Sweet.

James K. Polk solidified support among his divided Democratic party by promising he wouldn’t run again, thus giving other presidential hopefuls a shot at the presidency. Even despite calls for reelection in after a successful first term, Polk happily threw in the towel after his first four years were up—becoming the first U.S. president to voluntarily retire after one term. Follow Polk’s lead, and make sure your party doesn’t go on indefinitely. To ensure that guests don’t overstay their welcome, establish a non-negotiable end time. Believe it or not, invitees might be more apt to attend if they know they’ve got an excuse to curl up in bed at midnight with the latest episode of The Walking Dead.

9. Keep It Understated.

Polk is known as the dark horse president—a relative unknown who rose from obscurity to steal the nomination and later the election. Polk’s meteoric rise to fame was launched by intra-party tension. In 1844, the Democrats became embroiled in a nomination battle between former President Martin Van Buren (who’d lost reelection 4 years earlier) and Michigan senator Lewis Cass. While Van Buren won the most votes, he didn’t garner the required 2/3 majority to secure the nomination. When it became obvious that neither he nor Cass would be able to mobilize enough support, Polk was offered up as compromise candidate—a Jacksonian Democrat who supported the annexation of Texas. Polk went on to defeat Whig rival Henry Clay in the general election.

Channel Polk’s dark-horse appeal when planning your bash. Even thought your party may not be the flashiest rager on the block, it might offer an appealing alternative. Just make sure your bash does justice to the memory of the man historians call "America’s least-known consequential president." Because the only other tribute he’s got is a There Might Be Giants song.

Original image
iStock // Ekaterina Minaeva
Man Buys Two Metric Tons of LEGO Bricks; Sorts Them Via Machine Learning
Original image
iStock // Ekaterina Minaeva

Jacques Mattheij made a small, but awesome, mistake. He went on eBay one evening and bid on a bunch of bulk LEGO brick auctions, then went to sleep. Upon waking, he discovered that he was the high bidder on many, and was now the proud owner of two tons of LEGO bricks. (This is about 4400 pounds.) He wrote, "[L]esson 1: if you win almost all bids you are bidding too high."

Mattheij had noticed that bulk, unsorted bricks sell for something like €10/kilogram, whereas sets are roughly €40/kg and rare parts go for up to €100/kg. Much of the value of the bricks is in their sorting. If he could reduce the entropy of these bins of unsorted bricks, he could make a tidy profit. While many people do this work by hand, the problem is enormous—just the kind of challenge for a computer. Mattheij writes:

There are 38000+ shapes and there are 100+ possible shades of color (you can roughly tell how old someone is by asking them what lego colors they remember from their youth).

In the following months, Mattheij built a proof-of-concept sorting system using, of course, LEGO. He broke the problem down into a series of sub-problems (including "feeding LEGO reliably from a hopper is surprisingly hard," one of those facts of nature that will stymie even the best system design). After tinkering with the prototype at length, he expanded the system to a surprisingly complex system of conveyer belts (powered by a home treadmill), various pieces of cabinetry, and "copious quantities of crazy glue."

Here's a video showing the current system running at low speed:

The key part of the system was running the bricks past a camera paired with a computer running a neural net-based image classifier. That allows the computer (when sufficiently trained on brick images) to recognize bricks and thus categorize them by color, shape, or other parameters. Remember that as bricks pass by, they can be in any orientation, can be dirty, can even be stuck to other pieces. So having a flexible software system is key to recognizing—in a fraction of a second—what a given brick is, in order to sort it out. When a match is found, a jet of compressed air pops the piece off the conveyer belt and into a waiting bin.

After much experimentation, Mattheij rewrote the software (several times in fact) to accomplish a variety of basic tasks. At its core, the system takes images from a webcam and feeds them to a neural network to do the classification. Of course, the neural net needs to be "trained" by showing it lots of images, and telling it what those images represent. Mattheij's breakthrough was allowing the machine to effectively train itself, with guidance: Running pieces through allows the system to take its own photos, make a guess, and build on that guess. As long as Mattheij corrects the incorrect guesses, he ends up with a decent (and self-reinforcing) corpus of training data. As the machine continues running, it can rack up more training, allowing it to recognize a broad variety of pieces on the fly.

Here's another video, focusing on how the pieces move on conveyer belts (running at slow speed so puny humans can follow). You can also see the air jets in action:

In an email interview, Mattheij told Mental Floss that the system currently sorts LEGO bricks into more than 50 categories. It can also be run in a color-sorting mode to bin the parts across 12 color groups. (Thus at present you'd likely do a two-pass sort on the bricks: once for shape, then a separate pass for color.) He continues to refine the system, with a focus on making its recognition abilities faster. At some point down the line, he plans to make the software portion open source. You're on your own as far as building conveyer belts, bins, and so forth.

Check out Mattheij's writeup in two parts for more information. It starts with an overview of the story, followed up with a deep dive on the software. He's also tweeting about the project (among other things). And if you look around a bit, you'll find bulk LEGO brick auctions online—it's definitely a thing!

Original image
Here's How to Change Your Name on Facebook
Original image

Whether you want to change your legal name, adopt a new nickname, or simply reinvent your online persona, it's helpful to know the process of resetting your name on Facebook. The social media site isn't a fan of fake accounts, and as a result changing your name is a little more complicated than updating your profile picture or relationship status. Luckily, Daily Dot laid out the steps.

Start by going to the blue bar at the top of the page in desktop view and clicking the down arrow to the far right. From here, go to Settings. This should take you to the General Account Settings page. Find your name as it appears on your profile and click the Edit link to the right of it. Now, you can input your preferred first and last name, and if you’d like, your middle name.

The steps are similar in Facebook mobile. To find Settings, tap the More option in the bottom right corner. Go to Account Settings, then General, then hit your name to change it.

Whatever you type should adhere to Facebook's guidelines, which prohibit symbols, numbers, unusual capitalization, and honorifics like Mr., Ms., and Dr. Before landing on a name, make sure you’re ready to commit to it: Facebook won’t let you update it again for 60 days. If you aren’t happy with these restrictions, adding a secondary name or a name pronunciation might better suit your needs. You can do this by going to the Details About You heading under the About page of your profile.

[h/t Daily Dot]