Not hard:
gem environment
You can even get free bonus information about where ruby and rubygems are… but only if you order now. For a limited time, we’ll even throw in the command that got us this gem of an answer: “gem help commands”
Somebody has to do something, and it's just incredibly pathetic that it has to be us.
Not hard:
gem environment
You can even get free bonus information about where ruby and rubygems are… but only if you order now. For a limited time, we’ll even throw in the command that got us this gem of an answer: “gem help commands”
Surprising this isn’t better Google-documented. Here’s how I do it.
Make a list of your existing gems in a text file (run from machine with gems already installed):
sudo dpkg --get-selections | awk '{print $1}' > installedpackages
Copy the file to your new system. Then run:
cat installedpackages | xargs sudo aptitude install -y
It’s run through each line of your gemlist file and run “sudo aptitude install -y” on it.
So you installed the Unbox player when you were logged in as one user at Amazon, and later you purchased and downloaded videos as another user?
Well you’re going to hell, says Amazon.
I’ve just spent half an hour poring exhaustively through every nook and cranny of the Unbox UI, Unbox executable files, and even trying to go through the Modify/Repair options afforded by Windows, all to no avail. So far as I can tell, the Amazon account that you chose when you installed Unbox is the one and only account that you will be using with Unbox, unless you uninstall the entire player and reinstall it.
This is one of the few times that Amazon has chapped my hide. Usually they are decent, reasonable people.
If any commenter knows of a trick to get around this, a gaggle of Google searchers will thank you for it. Me? I just uninstalled and reinstalled Unbox, and wrote a blog about it to pass the time while I waited for the install to download & finish.
Update!
Mega awesome commenter Nick Haas has the answer! Says Nick:
I think I figured it out on Windows 7 at least:
c:\programdata\Amazon
This folder contains another folder which you can just move somewhere else on your computer. The next time you open up Unbox, it will ask you to log in again. I logged in with my other account and also changed the Computer Name and the Download Folder to remind me which account this one was. I then downloaded a free movie with the new account and it worked like a charm. When you want to go back to your other account just switch back to the folder that you moved originally.
I did not find anything to love about the results I was getting searching for queries like “Increase rubymine memory” and “set rubymine memory”. Here’s the location of the file that dictates Rubymine memory usage in my Ubuntu install:
[RUBYMINE_DIRECTORY]/bin/rubymine.vmoptions
Inside you can specify lines like:
-Xms800m
-Xmx1200m
-XX:MaxPermSize=1000m
-ea
These declare maximum memory usage, maximum sustained memory usage, and, uh, some other stuff.
[Hops onto soapbox]
I love Rubymine, but I sometimes wish that instead of adding a ridiculous number of new features, they’d just make the damn thing run consistently fast, and not make me worry about memory usage. I know that with my web site I always have a preference toward adding cool new stuff, but responsible thing to do is often to perfect the pieces that are already there. Almost everything negative I’ve heard about Rubymine (which isn’t all that much) is along this same vein, but I’ve never heard the Rubymine team admit that it wishes that the product ran faster or its memory management were better.
[Hops back down]
For my money, still definitely the best choice for Linux IDEs.
Or do you notice that every time you visit a website or a submit a form, and you get the indefinite spinner of doom, that the url always seems to end in .aspx?
Hmmmm!
We want it bad. Reeeeeal bad.
Bonanzle is still running on Subversion (via Tortoise), because comparing its UI to the UI for the de facto git standard (msysgit) is like comparing Rails to ASP on Visual Basic. Yes, the difference is that big. Msysgit is ugly as Pauly Shore, most of its windows can’t be resized, it crashes regularly, and trying to decipher the intent of its UI is like reading dead sea scrolls.
Yes, yes, I know: if you don’t like a piece of open source software, you should shut up and fix it. Unfortunately, I’m sort of single-handedly maintaining this web site that has grown to about 150k uniques this month, where two months ago we had about 10k uniques. I can not end world hunger and rescue my cat stuck in a tree.
But if there is any intelligent life out there that has spare programming cycles and the desire to make a huge difference in the world, this is my personal plea that they will consider giving some love to the woebegone msysgit… or maybe just start their own Windows git client, I can’t imagine a real hacker would take more than a week or two to match the featureset of the existing msysgit.
I’d really like to move Savage Beast to github, and I’d really like to collaborate on the other projects that are happening on there, but it just doesn’t make sense to go from a slick, error free, decipherable UI like Tortoise to the meager helpings of msysgit.
I’d happily donate to a project like better Windows git.
Preemptive note to smart alecks: No, I’m not moving to Mac (or Linux) now. There are plenty of reasons why, I’ll tell you all about it some other time. Incidentally, what is the preeminent GUI for git on Mac these days? From what I understand, many of the real hackers are perfectly content using git from the command line…? Shudder to think of reading the diffs and histories.
I’ve had a devil of a time trying to get Google to tell me how to write a Mysql query that allows us to somehow perform a MySql query that 1) filters rows on a distinct column 2) returns other columns in the query besides the distinct column and 3) allows us to order by a column. In our case, we (and you, if you’re running Savage Beast!) have a list of most recent forum posts on the site — currently, if you list all recent posts, the search will just find all posts and order by date of creation, but this makes for some dumb-looking output since you often end up with a list where 10 of the 20 posts are all from the same forum topic. All the user really wants to know is what topics have a new post in them, and to get a brief glimpse as to what that new post might be.
Thus, we want to create a query that returns the new posts, ordered by date of creation, that have a distinct topic_id.
Here’s the SQL that can make it happen:
Post.find_by_sql(“select posts.* from posts LEFT JOIN posts t2 on posts.topic_id=t2.topic_id AND posts.created_at < t2.created_at WHERE t2.topic_id IS NULL ORDER BY posts.created_at DESC”)
Hope that Google sees fit to lead other people here instead of struggling to get GROUP BY to order results beforehand (GROUP BY ‘posts.topic_id’ works, but it returns the first post in each distinct topic, rather than the last post as we desire), or get SELECT DISTINCT to return more than one column, as many forum posters unhelpfully suggested in all the results I was getting.
Update 11/26/08 – A Word of Caution
I finally got around to setting up some profiling for our site yesterday and was surprised to discover that the above query was taking longer per execution than almost anything else on our entire site. The SQL Explain was not too helpful to explain why, but it showed three joins, the join on the topics table involving every row of the table (which is presently almost 10,000).
Takeaway: for this query to work, it seems to consider every distinct topic in the table, rather than being smart and stopping when it hits the per-page paginated limit. Since I already determined that “group” and “distinct” were non-starters for being able to pick the newest post in each topic, I ended up revising the way the logic was done to an easier to manage and far-more-DB-efficient way:
We now track in each topic the newest post_id within that topic. While this adds a bit of overhead to keeping the topic updated when new posts are made to it, it allows us to do a far simpler query where we just select the more recent topics, joining to the most recent post in each topic, and then ordered by the age of those posts.
If you have the ability to create an analogous situation to solve your problem, your database will thank you for it. The above query starts getting extremely slow with more than a few thousand rows. Yet, I defy you to find an alternative to it that works at all using “group” or “distinct.”
With so many sites trying to be “the next Craigslist” these days, I thought it prudent to take explore what’s going through their minds, and why it is that they keep on failing.
The answer why lies in my Seattle Craigslist vs. Microsoft Expo, or, Don’t Ape the Mojo blog on the mothership.
To add a user group, see http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
To view a user’s groups, use “id [user]”
Hard to Google.
There is no way you could post items for sale faster anywhere on the Internet.
Please support this blog and put some stuff up for sale. The time to take pictures + visit the site + post the items is nearly guaranteed to be less than an hour in total.