Simon Willison’s Weblog

Subscribe
Atom feed for quora

1,005 items tagged “quora”

2012

What web programming framework best supports ’drag and drop’ actions?  Please give examples of sites and/or plug-ins that support the interaction.

Drag and drop is a client-side thing—it has nothing to do with the server-side technology being used.

[... 72 words]

Why did Twitter have so many problems if it is made with Ruby?

The technical problem Twitter solves (distributing millions of short messages per minute to an enormous graph of follow relationships) is extremely hard in any language.

[... 44 words]

Is it reasonably safe to visit Ethiopia and then to fly from Ethiopia back home via Cairo?

If you’re specifically interested in the Cairo leg then yes, it’s safe. Cairo is a modern city if over 20 million people. Tourism is Egypt’s most important industry and they are very, very good at protecting that cash cow even during times of political turmoil. If you pay attention to the news and don’t go actively looking for street riots to get involved with you’ll be fine.

[... 90 words]

What is the best way to allow  users to add videos on a website ?

Encourage them to host their videos on YouTube, Vimeo etc and give you the URL, then generate an embed code on your site (using your own code or with the http://embed.ly/ API).

[... 71 words]

System Administration: What service/product do you recommend for central logging of events and errors from multiple servers? Why?

We rolled our own solution to this using MongoDB, due to its super-fast writes and ability to store, index and search JSON. We were also attracted by its capped collections, which make it easy to e.g. only log the last 100,000 items.

[... 113 words]

What are some good startup events/meetups in LA during February and March 2012?

The next LA Hacker News Meetup is on the 25th of Feb in Santa Monica: http://www.meetup.com/Los-Angele...

[... 70 words]

What are the best sites to find events by location?

It depends on what kind of event you are looking for.

[... 86 words]

How can a new developer get involved in open-source projects?

I was going to say the same thing. Find a useful project in GitHub (preferably one that clearly has an active maintainer), fork it, fix a bug (look at the project’s issue tracker) then make a pull request.

[... 80 words]

Why are front end developers so high in demand at startups if front end development is relatively easier than other fields of engineering?

You’re starting with an invalid assumption. Front end development is absolutely not “easier” than other forms of engineering.

[... 333 words]

Which core programming principles apply to all languages?

YAGNI: http://en.wikipedia.org/wiki/You...

[... 17 words]

Wouldn’t an ASCII cellular automaton in javascript be the simplest starting point to teach/learn programming?

Absolutely not. The first step in learning to program is understanding that a computer can be quickly made to do something useful by executing lines of code. Personally I’m a big fan of firing up something with an interactive prompt (like Python, or even Firebug or the Google Chrome JS console) and demonstrating that typing a line of code hitting return will get a useful response.

[... 87 words]

How can I see what questions I am following on Quora?

Click on your name in the grey bar at the top of the screen to get to your profile page. Then click on “Topics” in the lighter grey bar next to your photo (the same bar that has the Followers and Following items in it).

[... 62 words]

Python Django load MySQL database from csv files performance issue?

Don’t use the Django ORM for bulk imports—the performance overhead is pretty small for regular web page stuff, but it adds up if you are running millions of inserts.

[... 63 words]

How can you build a search engine for a website built in PHP/MySQL?

There are a bunch of options.

[... 310 words]

Can Scala gain wider usage than Java any time soon?

No, because Scala is harder to master than Java.

[... 54 words]

If you missed out on joining to work at Google and Facebook, what should you do?

Remind yourself that there will always be more opportunities, and obsessing over what might have been is a huge waste of your time.

[... 45 words]

What is the best NoSQL database to store unstructured data?

Any of the document stores are worth a look—I’d suggest investigating MongoDB, Riak and CouchDB.

[... 33 words]

What is an intuitive explanation of Unicode and why a programmer needs to know it?

Check out “The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)” by Joel Spolsky: http://www.joelonsoftware.com/ar...

[... 55 words]

How do you change page content and URL without reloading the whole page?

This can only be done using JavaScript. You use XMLHttpRequest to pull in new information from the server (also known as Ajax—most people use a JavaScript library such as jQuery to handle this) and then use the HTML5 history API, in particular the pushState method, to update the URL.

[... 133 words]

Should I take the time to learn programming, or take my idea and run with it?

Stop reading, start building. You’ll progress a LOT faster if you’re solving actual problems and writing real code, rather than spending 5-8 hours a day reading but not practicing.

[... 156 words]

Tech Startups: What skills/technologies would the ideal technical co-founder possess?

The most important indicator is: can they ship? Can they prove that they know how to take a project from idea to running code deployed to a server somewhere with actual people interacting with it?

[... 109 words]

Which is the best open source tool to populate my database with test data for my load test?

I’ve seen tools that do this, but to be honest it’s very simple to write your own script for this (especially if you’re using an ORM). The other benefit to writing your own script for this is that you’ll have a much better chance of accurately representing your expected data, sizes etc.

[... 221 words]

How did slashes become the standard path separators for URLs?

I’m going to take an educated guess and say it’s because of unix file system conventions. Early web servers mapped the URL to a path on disk inside the document root—this is still how most static sites work today.

[... 57 words]

What tech and/or start up events are you attending at SXSW ’12?

Our unofficial sxsw schedule site currently has 66 sessions with the “startups” topic—you can browse and search them here: http://sxsw.lanyrd.com/?topics=s...

[... 85 words]

What is the optimal description length in the Apple App Store?

Have you ever come across one if those ugly, long pages advertising an ebook—the ones that bang on for dozens of paragraphs with bullet points, pictures, testimonials, headings, more testimonials, more bullet points and so on?

[... 106 words]

What conferences held in the Southeastern US cater to those in dot-com and startup roles?

Here are a few:

[... 104 words]

How can I look up Django functions?

You can use the ./manage.py shell command to get a shell which will import any Django modules (or any of your own code) without complaining about the location of the settings.py module. Install IPython first to get a much more useful interactive shell when you run that command.

[... 190 words]

What are some good conference directories or calendars other than Lanyrd?

Meetup: http://www.meetup.com/cities/ca/...

[... 93 words]

How do I get inside Battersea Power Station?

I think it’s available to hire as a venue—there was a conference there called the PowerOfOne last year.

[... 34 words]

What are some places that serve X-Y food in Z?

I found an Indian restaurant in Luxor, Egypt that sold English-style Indian food—it was in an area of town with a bunch of other English restaurants, all run by expats.

[... 53 words]