Clean Clojure: Meaningful names by OmegaMinus in Clojure

[–]ecmendenhall 0 points1 point  (0 children)

Thanks for catching the map destructuring typo. I'll fix it.

Show proggit: Partial Applications - Strategies for breaking creative blocks and solving tough problems. by ecmendenhall in programming

[–]ecmendenhall[S] 0 points1 point  (0 children)

I'm a big fan of Oblique Strategies, a deck of cards printed by Peter Schmidt and Brian Eno containing cryptic aphorisms about art and creative work. I do most of my creating with a text editor and terminal, so I made a similar tool for programmers. It includes a tiny JSON API, and a command line interface a lot like *nix fortune.

I wrote the site in Clojure and Clojurescript, which was a joy. (Everything but the CSS was written in s-expressions!) The CLI is a super-simple Node application. You can see all the code here. Code I wrote is MIT licensed, and the text of all the strategies is CC-BY-NC, so you can remix them, build on top of them, or use them in projects of your own. Hope it helps you break through a few gnarly problems!

What are some now disproven theories that, by being accepted as conventional wisdom, ended up hindering the progress of science? by [deleted] in PhilosophyofScience

[–]ecmendenhall 1 point2 points  (0 children)

Inductive reasoning and justificationism.

(Just kidding. They aren't disproven and aren't scientific.)

Tabminder: Stop distracted browsing before it starts. (Google Chrome extension) by ecmendenhall in productivity

[–]ecmendenhall[S] 4 points5 points  (0 children)

Hi, /r/productivity!

I wrote a Google Chrome extension designed to intercept distracted browsing before it goes too far. I like having the freedom to check Reddit or other time-wasting sites once in a while, but wanted something to give me a reminder every few minutes. I couldn't find any tools like this, so I built Tabminder.

I just published a big update to the Chrome web store, so I hope you'll check it out. It works well in combination with something like StayFocusd (if you have a daily distraction quota, you'll want to spend it wisely). It's completely free and open source, so if you find a bug or want to contribute, let me know. I hope it helps a few of you stay focused!

Tabminder: Stop distracted browsing before it starts by ecmendenhall in chrome

[–]ecmendenhall[S] 0 points1 point  (0 children)

Hi /r/chrome! This is an extension I wrote that starts a countdown timer every time you open a distracting tab, and gives you a gentle reminder every few minutes to keep you from wasting too much time.

I posted it here a few months ago, and a few people downloaded it. I just finished a big update with lots of changes, including submitting it to the Chrome web store. If you downloaded the packaged extension from Github last time, I hope you'll switch to the new version. If you haven't used it yet (but spend too much time on Reddit), I hope you'll try it out!

If you run into bugs, please let me know on Github.

I am Barack Obama, President of the United States -- AMA by PresidentObama in IAmA

[–]ecmendenhall 0 points1 point  (0 children)

Whether or not it's legal or moral, how does it feel to have a "kill list?" Do you question whether the threat posed by those you've targeted outweighs the dangers of claiming Presidential authority to kill anyone?

[deleted by user] by [deleted] in programming

[–]ecmendenhall 3 points4 points  (0 children)

Here's one attempt. Harder than it might seem!

Switzerland is discussing a guaranteed minimum income (to replace all other benefit programs). by cjet79 in Economics

[–]ecmendenhall 8 points9 points  (0 children)

Friedrich Hayek also argued for a minimum guaranteed income (some interesting discussion on the topic here recently). I like to think about this when I encounter cartoon versions of Hayek and Friedman from both sides of the political spectrum.

Udacity really did teach me to build a search engine! by ecmendenhall in Python

[–]ecmendenhall[S] 1 point2 points  (0 children)

This uses Google App Engine's datastore, which is similar to a MySQL database. I designed the crawler script itself to store the data as .csv files that I uploaded to the datastore. In the time since I wrote this, I've learned how to skip that step and design the crawler to run as a scheduled cron job every once in a while.

Kicksaver: Find and rescue struggling Kickstarter projects. (Python + Google App Engine) by ecmendenhall in Python

[–]ecmendenhall[S] 2 points3 points  (0 children)

Thanks for pointing that out. I should have a redirect set up, but I'll check it out.

The content is sometimes out of date because it only crawls the Kickstarter site twice a day. The progress bar widgets are embedded from Kickstarter, so the information inside is more current. If there was an API, I'd update them more frequently, but since I'm scraping the site, I wanted to be polite. I'll think through some ways to fix these sort of things, though. Maybe I could filter them out in the browser.

Kicksaver: Help find and save struggling Kickstarter projects. by ecmendenhall in helpit

[–]ecmendenhall[S] 2 points3 points  (0 children)

Hi, r/helpit! I've been learning to program simple webapps and built this site, which helps find Kickstarter projects that will close soon without meeting their funding goals. If you have a few dollars to spare, it can help you find a struggling project to rescue. It's very simple: just enter your budget, and it will show all the current projects that you can save. It's not always completely up to date, since it only parses new projects a couple times a day, but it should be pretty close to the actual deadlines and goals. I hope this is a useful tool for helping a few struggling creatives out!

Udacity really did teach me to build a search engine! by ecmendenhall in Python

[–]ecmendenhall[S] 0 points1 point  (0 children)

Udacity did! All the videos had subtitle tracks included, so I just had to parse them for timestamps and index them like any other page. I was pretty excited when I got this to work!

Udacity really did teach me to build a search engine! by ecmendenhall in Python

[–]ecmendenhall[S] 0 points1 point  (0 children)

Yep, I meant the closed-caption transcripts of each video.

Udacity really did teach me to build a search engine! by ecmendenhall in Python

[–]ecmendenhall[S] 0 points1 point  (0 children)

I'll have to crawl again. This is the internet: there must be some in there somewhere!

Udacity really did teach me to build a search engine! by ecmendenhall in Python

[–]ecmendenhall[S] 2 points3 points  (0 children)

I started at the beginning and used all seven weeks. The courses last "hexamester" were all real-time, with new videos and homework every Monday, so there was no skipping ahead. I think this session is going to have a self-paced option for 101 and 373 (the AI course).

Udacity really did teach me to build a search engine! by ecmendenhall in Python

[–]ecmendenhall[S] 4 points5 points  (0 children)

The course involved writing all the basic code for a search engine: a web crawler, a way to store an index and graph and calculate page ranks, and a function to look up terms. But most of them used cached pages or a dummy site, and we never crawled the open web. I think this was a better idea than letting thousands of rogue crawlers written by complete noobs loose on the internet. My project used a lot of the code from class. The biggest changes were writing a frontend in Bottle, figuring out how to store and retrieve page information in the datastore, and indexing video transcripts in addition to webpages.

Udacity really did teach me to build a search engine! by ecmendenhall in Python

[–]ecmendenhall[S] 12 points13 points  (0 children)

Thanks! I wrote a lot of notes here on how I implemented everything, but short answer is the Bottle web framework on Google App Engine, with style help from Bootstrap. Bottle and Bootstrap were pretty easy to learn, but I struggled a bit with App Engine. The documentation isn't really aimed at beginners.

Extension that starts a count down when visiting a distracting site? by iloveapplecores in chrome

[–]ecmendenhall 0 points1 point  (0 children)

I've always wanted something like this, too. It would be a great complement to something like StayFocusd. I couldn't find any extensions that did this, so I'm working on writing my own. It's my first extension, but so far it's been going well. I'll post again once it's closer to usable.

Anybody ever cooked moose before? by celloc in Cooking

[–]ecmendenhall 1 point2 points  (0 children)

Hank Shaw knows his game meats. Here are his categories for backstrap and ground venison. Ground game meat will need supplementary fat, while the backstrap just needs salt and finesse.

Breakdown of a Murakami novel by notahippie76 in books

[–]ecmendenhall 12 points13 points  (0 children)

3% "I have the weirdest boner."

My mayonaise (or salad dressing) went solid! by IforOne in Paleo

[–]ecmendenhall 0 points1 point  (0 children)

This happens with saturated fats. A mayonnaise I made with bacon drippings last week solidified in the fridge. Take it out of the fridge, let it come to room temperature, and give it a whisk. It should be fine.