instruction
stringlengths
4
105
output
stringlengths
8
56.7k
Should I support OAuth or OpenID?
pwim: Hmm, OAuth and OpenID are two different beasts.OAuth is for giving your application the ability to access someone elses, without users of your application having to supply their credentials to you.OpenID allows for users of your application to use their credentials for another service authenticate with yours.
Review Bitme.me - rank urls with Bitly
bravura: This would be useful if there were an API, that let people suck down that aggregated data and remix it.
What are your experiences with Amazon SimpleDB?
amund: If you use it from an EC2 node it is typically faster, in the experiment on http://atbrox.com/2009/10/27/unstructuredsearchforsimpledb/ I got around 20ms query latency.Regarding reasons for why to use it check out: http://perspectives.mvdirona.com/2009/11/03/OneSizeDoesNotFi...
How to jump into "real world" programming?
zackattack: If you're into hip hop then i'd be happy to give you some stuff for hiphopgoblin to work on. http://github.com/zackster/Hip-Hop-Goblin
How to jump into "real world" programming?
rms: You could try jumping in all the way... http://ycombinator.com/ideas.html
How to jump into "real world" programming?
jrockway: Write a computer program. Any computer program. Then do that again.(Note: you will probably fail if you write something that someone else wants, rather than something you want. So decide what you want, and write that.)Ignore the advice to not write another blogging engine, or whatever. You need to learn to program before your programs can change the world. So learn first, change second.
How can I move to USA?
osipov: Mind if I ask why? US is in a serious decline and the future is looking pretty bleak both politically and economically.
Is this an idea worth pursuing further?
petervandijck: If you are hoping to turn this into some kind of business or money-generating thing, it's not. You are creating very little long-term value, as the others have noted, it seems mainly an SEO play.I do like the basic idea though, If you really wanted to make it good, you'd have to create much better navigation/browsing/finding options (that's the only value you're adding), and you'd have to seed it with 10000s of videos, and you'd have to add something, like forums or reviews something, that increases the value for users.
How can I move to USA?
andr: You have 3 options:1) As an Italian citizen you can go to the US and stay there for up to 3 months at a time using the tourist visa waiver program. You are not allowed to work, but you are allowed to interview for a potential job.2) If you get a job, it is now easy for a company to sponsor you for an H-1B working visa. It will last for 2 years, after which it can be renewed.3) Other options, such as a Green Card, the EB-1 (Alien of Extraordinary Ability), and an Investor Visa (if you have more than $1 million to invest) exist, but don't apply to most people.I'd urge you to consider such a move carefully. It is a commonly exhibited bias to think everything will be better if you move to a new country, but there is hardly a correlation. For what you will gain by moving you will lose a lot of what you have in Italy.
How can I move to USA?
georgecmu: A better choice would be Canada. For an educated professional with command of English or (even better if it's "and") French, it's very easy to become a permanent resident in Canada. 3 years later you'd be eligible for citizenship and ability to work and live in the United States (on a visa, but with very few restrictions).Otherwise, not having family in the States, you don't have many options, although not needing to work makes a few things easier.The easiest one is to enroll in an academic program. Another is to marry a US citizen. I believe Italians are still eligible for green card lottery, but you may want to double-check that. If you have 500K-1M lying around, you may invest them into a company and get a green card that way. Unless you're an Arab or a Jehova witness, you probably won't qualify for refugee status. Maybe being gay in Italy can help, but I don't have much info on that. Finally, you can get a job on an H1-B and apply for employment-based green card with your employer's cooperation.
How can I move to USA?
nfnaaron: It looks like http://travel.state.gov/visa/visa_1750.html is step 1.Step 2 might be to visit the nearest US embassy or office.Step 3 is probably determined by steps 1 and 2.Step N might involve one or two visits to a specialist lawyer in your country or the US, for advice.
Is this an idea worth pursuing further?
scrr: Thanks everyone for your input! Those comments are very interesting and we have a lot to think about now. :)
How can I move to USA?
Larry42: Hi, I'm in a similar situation. I live in Europe and plan to move to the bay area after earning my bachelor degree here in Brussels.I know some of the implications of moving to America, but I am wondering if the following situation could make things easier for me.I have co-founded a non-profit organization (incorporated in NY) with my partner (who's living on a student visa himself at the moment). We also got our own web development & consultancy company (though not officially registered as a company yet), and I would like to work independently with my partner when I move to the bay area.Do you think the companies we have founded could provide us with a work visa?
If there was a bury/upmod brigade on HN, how would we know?
jacquesm: I've definitely seen evidence of 'upmod' brigades, if you refresh the 'new' page with a relatively high frequency (say once every two minutes) every now and then you pick up a new article that is complete nonsense but that already has 3 or 4 upvotes in less than the minute that it is alive.Bury brigades are less common, but there are definitely people that have a 'fanclub' that will downmod whatever they write no matter how on topic or good the contribution is.Usually this corrects itself after a while though.
If there was a bury/upmod brigade on HN, how would we know?
messel: 1) crap articles rise only as large as the brigade. If they have hundreds or thousands of coordinated voters, they'd be better off at bigger audience sites2) they'd leave a clear repeat user ID/IP trace. So moderator can automate detection of anomalous upvote coincidences3) if they faked new IPs while upvoting and rotated user IDs we'd have a more difficult detection problem. We can look at growth trends of upvotes for derivatives that are anomalous. Coincidental upvotes would show up.4) if the upvote gang rotates IDs, IPs, and upvote intervals the HN team is faced with a fun challenge. Something Digg, Stumbleupon, etc have likely faced in the past. Chances are, your attention isn't worth it. But a dangerous piece of malware may be.Interesting question. What if they faked credentials from low activity members that were compromised?
Should I support OAuth or OpenID?
najafali: Yeah, as the other posters have said, they're different things.OpenID allows users to log into _YOUR_ site with a single login that they can use for other sites that support it. An alternative is your regular user/pass login (which you'll have to implement anyway for users without openid).OAuth allows you to get data from your users accounts on other websites (twitter, yahoo, gmail etc) in a secure, supported way. An insecure and brittle alternative would be to ask your user to give you their login details for a different site on your site and then screen scrape their account.
How to become a better programmer?
tsally: It's important to differentiate between the technical ability to build web applications and the craft of programming. It seems you are interested in the former, in which case I would recommend learning a popular framework (Ruby on Rails or Django). While you are learning a framework you'll pick up the base language just fine.If you'd like to learn the more general craft of programming, Peter Norvig has some excellent advice: http://norvig.com/21-days.html. You'll find some language recommendations in the appendix.
How to become a better programmer?
tlrobinson: Learn another language. Not just because PHP isn't a particularly good one (IMHO), but because learning new languages inevitably teaches you new ways of thinking about programming.Ruby is good for OOP.
How to become a better programmer?
NathanKP: I can do everything I need to with PHP and MySQL, however I'm currently working on JSP, and planning to learn Ruby and Python.If you want to learn object oriented thinking I would recommend Java or C++. Fortunately I was already proficient at C++ before I started web programming so I already had a fairly firm grasp of object oriented thinking.As for learning programming languages, to my way of thinking the more languages you know the better, both from a job standpoint and from a flexibility standpoint.
How to become a better programmer?
meddah: 91 Ways to Become the Coolest Developer in the World http://www.techquark.com/2008/11/91-ways-to-become-coolest-d...
How to become a better programmer?
Zarathu: "improve my PHP abilities to OOP"Reading that made me laugh. PHP's OOP is extremely flawed (among various other things, like their inability to universalize the $needle and $haystack argument order: http://bugs.php.net/bug.php?id=37088), so using PHP to "improve your technical abilities" wouldn't really get you anywhere except having a better understanding of PHP.I think that what you're trying to accomplish really needs to be defined in terms that aren't so broad. Especially these days, "technical skills" is such a vague term that it can really be applied to anything.You don't need to have a complete understanding of some silly framework or whatever in order to still be considered an excellent developer in many ways. For example, you could write a stunningly elegant and clever mathematical algorithm in C without using a function more complex than sqrt(). (Or maybe you could write a more efficient sqrt!)I think that learning something like that might improve your understanding of machines and could, indirectly, improve your understanding of "web apps and services"—that is, understanding HTTP, statelessness, and so forth.tl;dr Figure out exactly what it is you want.
How to become a better programmer?
daleharvey: to build complex web applications you need to learn javascript, I would also take move along to ruby / python / erlang as well as/instead of php.then I would start bashing out applications as quick as you can, stuff with a smaller scope and a clear end so you can keep them public for quite a while and learn how to reduce/remove maintenance cost.
How to become a better programmer?
jacquesm: Hey Paton,The quickest way to become a better programmer is to take a real world problem and then to solve that with a technology that is as far removed from the ones that you are already familiar with as you can imagine.Since you're already in to the imperative mode why not try a functional or a logic language for a change to see what the other side of the street looks like ?The interesting bit in that approach is that when you return to your current languages you'll look at them in a completely new way.
How to become a better programmer?
csallen: I was in your position not long ago. I'd recommend using Ruby on Rails, which will teach you a lot about OOP and the MVC framework. There are some similar frameworks for PHP (like CakePHP), but Rails' established community and abundant documentation make it a better starting place.Javascript (http://www.w3schools.com/js) is an extremely important part of the web today, and jQuery (http://www.jquery.com) makes it more manageable than ever before. It's not difficult to learn -- you can make a lot of headway in a single day.If at all possible, work alongside other people. You'll learn a lot from their habits and their code. And work on actual projects. Learning for the sake of learning is much more difficult than learning while you're building something.
If there was a bury/upmod brigade on HN, how would we know?
ratsbane: Hacker News source: http://github.com/nex3/arc/blob/master/news.arc Check out vote-for at line 1351. I'm looking at the code and wondering how it keeps users from up/down voting for the same article more than once.* It must be there but I'm not yet following how this works. Interesting code, though. I wish I understood it better.*[edit] as this implies that it's keeping a list of votes as article-user records somewhere.
What do you think about this experimental twitter app
sandaru1: clickable linkshttps://chrome.google.com/extensions/detail/bfjidghmenmplpao...http://www.conwitter.com/
How to become a better programmer?
zaidf: A lot of good programmers aren't fans of OOP.Of course, before you can decide whether you're a fan or not, you should understand it. So I'm all for that:)
How to become a better programmer?
olalonde: I can't describe how OOP changed my life. You have to learn it.
How to become a better programmer?
vdoma: I'd say focus on the basics - learn more about algorithms, operating system internals, data structures, concurrency, human-computer interaction, general OO/Functional/Procedural programming principles, etc. Languages are dime a dozen - once you're strong in fundamentals, picking up a new technology/language/framework becomes a lot more easier.
How to become a better programmer?
Asa-Nisse: Since nobody suggested it, go to college/university and learn about data structures, lists and processor architecture. It will help you become a much more insightful programmer.
How to become a better programmer?
yannis: Before making any suggestions I would ask what is the definition of a better programmer? Since this can be a bit subjective I will suggest that you strive to become an 'expert programmer'. It is difficult to even define what an 'expert' is, but normally one would recognize an expert as someone that effortlessly accomplishes a task. Some characteristics of experts from psychological studies are:1. Experts such as chess grandmasters rely on a vast store of knowledge of game positions. They tend to organize this information in chunks, which can easily be retrieved from long-term memory. The same is true for other experts from sports to mathematics.2. They also typically engage in years of effortful study, continually tackling challenges that lie just beyond their competenceIn my opinion you need to accumulate both, ie, expand your store of knowledge, as well as continually striving to handle situations where the task in hand is beyond your ability.At this point in your experience my personal recommendation is to actually focus on number 2, for example refactor some PHP code into OOP, to give you another angle of programming as well as tackle JavaScript for the same reason.The 10-year rule states that it takes approximately a decade of heavy labor to master any field. As one that has gone through a couple of 10 years:) the best advise I can give is 'learn to program' rather than learn 'to-days-popular-framework-or-language'. Think about it as similar to writing a book, knowing English will not turn you into an author. Practice will as well as motivation.
How to become a better programmer?
alrex021: Learn a new programming paradigm. For example, if you are a OOP literate, learn FP.
What do you think about this experimental twitter app
albertsun: I see the problem you're trying to solve, I'm not sure I like the implementation. Simpler I think would be a way to create lists of users on the fly and see only their Tweets to follow a conversation.
Does Web Traffic Always Equal Income?
breck: Yes, but the level of income varies dramatically.I've worked on sites that generate on average from $0.001 per visitor ($1 RPM) all the way up to sites with less volume but generate much higher revenue per visitor ($1.25).My guess is the type of traffic you are talking about here is the former unfortunately. In other words, you may have been able to monetize those 20k visitors at $.01 per visitor (or maybe a total of $200). If you are getting over 2,000 visits per day, you can throw AdSense on the page and see how much you make.What types of sites make lots of $$ per visit?Generally product related sites, coupon sites, sites that sell something, etc.
How do you organize your code on your machine?
breck: My good code I push to github. Everything else I occasionally delete or archive to my dropbox folder.http://breckyunits.com/code/how_i_organize_my_dropbox
How to become a better programmer?
breck: Sounds similar to where I was a few years ago. Here are my tips:http://breckyunits.com/twelve_tips_to_master_programming_fas...Feel free to email me if you want to talk further. Good luck!
Does Web Traffic Always Equal Income?
zaidf: Quality of traffic matters a lot. iJigg gets over a million uniques a month. But most of it is from Thailand and thus, we barely breakeven. I know sites getting a fraction of our traffic and making few times our revenue.So yes, traffic means income. But that is super oversimplification. User intent behind your traffic matters a lot.
How can I move to USA?
physcab: Sergey Brin gave a few maybe-helpful links:http://too.blogspot.com/2009/10/journey-of-lifetime.html
How do you organize your code on your machine?
rsclarke: Two folders, 'sandbox' and 'projects'.'sandbox' is organised by language, with code snippets and small projects in each folder. If anything becomes of the small projects they migrate to the 'projects' folder. Anything in the projects folder means it must be in a repository, git or svn.
How to become a better programmer?
macco: I wouldn't concentrate so much on certain programming languages, instead I would concentrate on designing programms. I don't know your background. I guess you are learning on your own, so I would recommend http://www.htdp.org or http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Compute.... Some people will recommend Structure and Interpretation of Computer Programs. This book maybe the best on programming, but I don't think it suits a selfteaching individual.
How do you organize your code on your machine?
algorias: Each project gets its own folder that contains branches, helper scripts, release files, notes, etc. Nothing related to the project goes outside that folder... except:Working copies, demo code, samples, etc of dependencies of my projects are kept separate to avoid polluting my backups with stuff that isn't mine.When learning a new language or framework, I consider it the same as a project and make a corresponding folder. Good to keep learning material, notes, project Euler snippets, etc.Random snippets, quines that print sierpinski's gasket, and other useless stuff goes into the "Snippets" folder.
How to become a better programmer?
fleitz: PHP is mostly an imperative language with a C-like syntax. In imperative languages with a C-like syntax most OOP is just syntatic sugar on a pointer called "this" with a bit of RTTI checks for casting. If your code is unmaintainable with out OOP, OOP isn't going to help.A far more effective skill to have is to figure out how to build a complicated application simply rather than switching to language that makes it easier to increase line count and have semi-working code.I know PHP isn't cool anymore but at the same time, Facebook was built with it. One person can't build Facebook (in it's current incantation) so it's pretty useless to try and find the magic framework that will let you. Figure out how to prototype quickly: once your userbase exceeds the capabilities of whatever tech you have picked you'll usually have enough users to find capital/revenue or have it knocking your door down. At that point it's easy to find the skills to port to whatever the language / paradigm de jour is.Figure out how to make the SMTPs of the world not the X.400s once your not building X.400 you can implement SMTP in just about any language.
How do you organize your code on your machine?
Zev: $HOME/Projects/<Project Name>/ $HOME/Miscellaneous/<Language>/<description/ $HOME/College/{Fall, Spring} <year>/<class name>/{Lab, Project} #/ Which is all mirrored in a private svn repo I've got running on a VPN.
How do you organize your code on your machine?
walesmd: I don't keep any snippets around on my machine - just have a knack for remembering how to get to a specific snippet via Google.Each project gets its own directory that contains everything needed for that project (unless I have a shared framework, library, etc). All the projects are committed to a private SVN repository although I am taking a serious look at Git lately.
Does Web Traffic Always Equal Income?
antidaily: Ah yes, Allison Stokke. Not only is she cute, she's actually very good at pole vaulting.
Does Web Traffic Always Equal Income?
alain94040: The obvious answer: try a few different options and report back here on how it went. Put ads on that one page. See what happens.Then try an affiliate link for related books or stuff from Amazon. See if it works better.Don't do anything that you'd feel bad about. I'm guessing that your goal wasn't to profit from such traffic. That's why I'm saying to just put ads on that one page, not your entire blog.
Does Web Traffic Always Equal Income?
vaksel: traffic does matter, the more traffic you get the more options you have.5-10K uniques/day? Congrats you can get into the premium CPM networks.1m uniques a month? Congrats you can start direct selling your advertising, without getting hung up on.5m uniques a month? Congrats you can get into premium Google adsense, where they custom build your adsense units that will look like they belong on your site(meaning users will be hitting those links by mistake).10m uniques a month? Congrats, you can probably raise some funding to pay yourself a fat salary while you hemorrhage money.40m uniques a month? Congrats you are twitter, and you'll get a CNN article when you decide to change your homepage font from 11 to 12 pt.200m uniques a month? Congrats you are Facebook, you can raise a ton of money at 1 billion plus valuation.Basically there is nothing wrong with having excess traffic, you can always figure out a way to monetize it. i.e. how college humor started threadless tees to sell tshirts.But traffic isn't everything, you can have a finance blog with 3,000 visitors a month, and be making 6 figures, just because the niche ads for your site are $20 cpc clicks, and $100 credit card offers.
How do you organize your code on your machine?
sidmitra: Two folders,Sandbox: Contains code i'm working on or projects that i still consider active. Some of them i've converted to github.Archived: Contains old projects or code, that are inactive, or somethings that are not on my plate in the near future.For code snippets you might use gist on github, but i tend to use onenote. I have a queries notebook open on MS Onenote, and anytime i google search some new snippet, troubleshoot advice, configuration detail etc, it goes that notebook, with keyword tags.
How do you organize your code on your machine?
awolf: ~/Projects/ for what I'm buildingEverything else is in my svn repo that I can access from anywhere with svn+ssh.Recently, I've started putting code spippets that I think I will re-use in my Dropbox.
Does Web Traffic Always Equal Income?
qeorge: Put another way, are there situations where you can have boatloads of traffic and not make enough to pay for the bandwidth? Do eyeballs really mean all that much every time?Bandwidth is really cheap, so even the worst monetization can cover a $10/month shared hosting account. But that still doesn't mean its worth your time.For example, I used to own FakePosters.com (not affiliated with the current owners). It started as an SEO experiment, but the traffic grew to several million uniques a month with very little work on my end (StumbleUpon can push way more traffic than most people realize).Sounds great, but unfortunately these type of visitors just don't click on ads. The site easily covered its $10/month shared hosting bill, and made about $150/month at its peak, but 1500 bucks a year is hardly worth the time it took to run, not to mention the dubious legality of posting photos you don't own a clear copyright on. So I closed the site after 1 year and sold the domain off for $1k. I'm happy with the way it worked out, but I don't plan on a repeat performance.So if I were you, I'd move to cheap shared hosting and move on. 100k hits is nothing your ISP should be complaining about.
How do you organize your code on your machine?
gte910h: I have a directory off the root FS for code I own, a directory off the root for each other IP holder and each person's code goes in their own directory.
How do you organize your code on your machine?
jcsalterego: ~/gh/ is where I throw all my GitHub clones.~/svn/ is where I throw my SVN checkouts (sometimes google code stuff, but mainly just python trunk until it gets fully hg'd)~/scratch/ is where I create subdirectories for my quick-and-dirty scripts, or if I need to `cat` something somewhere real quickly.
How do you organize your code on your machine?
pquerna: ~/code ~/code/${company_or_topical} ~/code/${company_or_topical}/${project} Where company or topical are things like 'cloudkick', 'asf' or 'personal'. (I guess you could say, its "who owns the IP").Some of these subdirectories are actually symlinks to encrypted DMGs, again depending on who owns the IP.Project is the top level checkout of the projects.. My 'asf' (aka Apache Software Foundation) directory contains 84 project level checkouts.I also keep a ~/work/temp directory full of random source tarballs if I need to look at how something works. Currently contains glibc, python 2.6 & 3.1, dojo, and about 30 other open source projects, normally ones I'm not normally involved in patching, but often run into... difficulties with. Nothing resolves bad documentation quicker than looking at the source code...I tend to nuke temp once every 6 months.
How to setup scaled-down Craigslist for my struggling rural area?
simonk: There is a few Wordpress plugins that turn it into a simple classified site that work well.http://classifiedstheme.com/ http://wpclassipress.com/ http://wordpress.org/extend/plugins/wp-classified/ http://wordpress.org/extend/plugins/another-wordpress-classi...
How to setup scaled-down Craigslist for my struggling rural area?
anigbrowl: Ning.com (YC alumnus) offers templates for this kind of thing - you can start with a CL lookalike and remove a bunch of sections to simplify. You could consult local businesses and ask them to participate (free), maybe print up some window stickers or do a press release for your local paper, if you have one.I don't think it's too hard to set up your own domain and transfer it, there's a 'powered by ning' option or similar if you want to host offsite, as I recall.
How do you organize your code on your machine?
Calamitous: Everything I'm currently working on: ~/Projects Older stuff, or projects on hold: ~/Projects/ARCHIVE
How to setup scaled-down Craigslist for my struggling rural area?
innovate: Does your hometown have a local newspaper with a classified section? That might be a good place to see where the needs are and what sections will be most useful for your community specifically.Get something up and running fast... a modified blog as simonk suggested might be a good way to get it up quickly. Craigslist started as a mailing list of sorts among friends.
How to setup scaled-down Craigslist for my struggling rural area?
NefertitiEgypt: Happy New Year Nefertiti Egypt Teamwww.nefertiti-egypt.com www.royal-egyptian-cotton.com www.nefertiti-jp.com www.nefertiti-egypt.co.uk www.wholesaleantiquereproductionfurniture.com
New Year resolutions and programming/coding projects
arithmetic: I'll start with my own. One of the projects that I'd like to work on, is to build a site with PHP,MySQL and JQuery. It's a really simple idea, but I want to learn JQuery properly and there's no better way to learn a library than to build something that uses it.
How to setup scaled-down Craigslist for my struggling rural area?
breck: I tried this for my hometown of 100,000 3 years ago. I spent about 50 hours on it (it was called brocktonpost.com). It had amazing features. No one used it.My recommendation: Wait for Craigslist to come in.> less than 15,000 people or soIf 1% of people used this, that's 150 people. You might want to start with a simpler email group instead. If you can get 150 using an email list, then make a website to accompany it.The hard part isn't the software. In fact, it's 1000x easier to get the software going than to get people to use it.
New Year resolutions and programming/coding projects
markerdmann: Learn Haskell! I've been using learnyouahaskell.com, book.realworldhaskell.org, and haskell.org/haskellwiki. If you get stuck, the people who hang out on #haskell (freenode) are both helpful and brilliant.Learning Python and Scheme was fun. Learning Haskell feels like being in an 80s training montage. One day you're a nobody, the next day you're an FP-wielding superhero.http://www.haskell.org/haskellwiki/Applications is good for inspiration.
How to setup scaled-down Craigslist for my struggling rural area?
w3matter: Yeah, we have something simple. I'd be glad to let you get the code, or even set it up on one of our servers here. Provided you totally run it.We use it in Jamaica for stuff there. http://www.brawtalist.comDependencies? * Ruby on Rails * Redis
How do you organize your code on your machine?
keefe: insufficientlycurrently : master git repository for everything, something like ~/docs lots of breakdown of documentation more git repositories under : ~/docs/code/projects - stuff I am currently working on or using ~/docs/code/legacy_projects - stuff that I don't want to die or need for reference, but I've lost interest for one reason or another ~/docs/code/public_projects - mirrors of servers, portfolio pieces, videos, all sorts of things that other people can seeI've been flirting with mavenizing everything for some time, but I just can't seem to overcome the inertia of... current build process works, code needs to be written, deal with it later
New Year resolutions and programming/coding projects
ghotli: Flightcaster's Clojure => Cascading => Hadoop infrastructure has been tempting me. Starting with Clojure I'm working my way down the stack in hopes that I'll garner insight as to how we can use this infrastructure or something similar on our own datasets.Statistics with Incanter is another piece of this pie that seems interesting and valuable. Hopefully I'll have written something useful with these technologies by this time next year.
How do you organize your code on your machine?
revoltingx: I use eclipse because it has support for a lot of the different languages I have to work with. So I organize my projects by language first under an eclipse workspace folder.~/workspace/perl ~/workspace/erlang ~/workspace/cppThen inside each folder there is a project. And I either create them or import them using eclipse.For projects that are large and require a large number of languages. I simply create it under the workspace directory. (i.e. ~/workspace/MyBigProject)And from then I break it down into languages again along with other folder necessary for larger projects.MyBigProject -> bin/ conf/ docs/ erlang/ perl/ sql/ web/Then I tend to use the best possible layout for a project of that language. For example since I use CGI::Application a lot using perl, my perl folder uses the following structure: perl -> deps/ <-- cpan/other modules that are needed MyBigProject/ <--Namespace for project modules startup.pl <- mod_perl2 startup file templates/ <- HTML::Template templates... and MyBigProject breaks down like so: MyBigProject -> DB/ UI/ (Other Modules) and so on, the same goes for the erlang OTP: MyBigProject/erlang/ -> db/ deps/ ebin/ Makefile src and MyBigProject/web just holds all the html/javascript/css files for the WebUI.And so on.
How to setup scaled-down Craigslist for my struggling rural area?
kbob: Easiest thing would be to set up phpBB or similar forum software, then recruit a few neighbors to moderate.There is no point in applying more technology -- all the value will come from the users (if you can get them).
How do you organize your code on your machine?
newhouseb: I have a "Playground" folder with a ton of randomly named projects in it. I like using the word "Playground" because then I don't feel guilty if I don't finish something...
How do you organize your code on your machine?
johngunderman: ~/projects : where I keep my personal projects~/extern-projects : where i pull other projects from github and stuff, just to mess around with / bugfixes~/src : where I store little scripts or test code, just a sandbox area to mess around.~/test : i send testing tarballs here, basically anything I don't care too much about, as I empty this folder out periodically.
New Year resolutions and programming/coding projects
yannis: Create a 'Django' for Lisp!
How do you organize your code on your machine?
JeffJenkins: ~/<Project> for anything active, ~/Content/<Project> for anything I've stopped working on.
How do you organize your code on your machine?
vlisivka: ~/projects/PROJECT — my personal projects (no longer used);~/projects/package-gen/dst/PROJECT — my personal projects in RPM package format, with automatic build system, various templates for new packages, repository of built binary and source packages;~/work/PROJECT — work;~/bin — various personal scripts and programs;~/tmp — scratch, e.g. ~/tmp/1 or ~/tmp/foobar;~/gtd/projects — various stuff, sorted by purpose, tag or/and date. Links from here to many other places;~/gtd/income — various stuff, to be sorted;~/examples — various working snippets;/usr/share/bash-modules/ - various typical functions for bash scripts, e.g. "backtrace" or "..." (recently created as alternative to ~/examples/bash-..., see http://vlisivka.pp.ua/en/bash_modules ).I use very simple tagging tool to speedup sorting, e.g. "s foo.tar.gz foo bar" will create two hard links to "foo.tar.gz" file in ~/gtd/projects/foo/ and in ~/gtd/projects/bar/ directories, and so on.Currently, I use RPM packages only for my own projects, because they are easy to install/uninstall/upgrade, they contains documentation, changelog, and description, they are easy to verify or rebuild, and so on.
How do you organize your code on your machine?
wendroid: appl/*/*.b module/*.m
How to design a karma reward system
JeffJenkins: What I've wanted to try but I have never had the opportunity to was having karma be accumulated on a per-topic basis. I think any time you've got a wide set of topics this is necessary to avoid the issues of people being treated as credible outside of their domain of expertise, and it could help mitigate the issue on Stack Overflow where people who answer lots of easy questions can get much more karma than those who answer a few much harder ones.
How to setup scaled-down Craigslist for my struggling rural area?
Mankhool: I don't agree that CL will come in eventually. What is their attraction point to do so? Listing in your nearest CL designated area is problematic unless 1)Listers always include their town or, 2)People in non-listed towns fail to use CL because they are not listed. I think there is an opportunity to fill in between the "nodes" that CL uses, build it to scale easily, add everything you wish CL would do, but doesn't, and launch it.
How do you organize your code on your machine?
ErrantX: exactly the same way - a messThe beauty of a hosted SCM (I use Bit Bucket) is that I only have to remember to "pull" when starting work on a project and "push" when finishing and it is all kept safe :)I swap between about 4 or 5 machines here and at work so the chances of keeping it sane otherwise are low :)
How do you organize your code on your machine?
jdietrich: Git.
How to become a better programmer?
jdietrich: Build stuff. Break it. Fix it. Build more stuff.
How to design a karma reward system
karanbhangui: I'm planning on working on something potentially very similar. Here's an outline post I made a while back: http://karanbhangui.posterous.com/course-learning-aid-propos...Lemme know if you're interested in collaboration.
How to design a karma reward system
babyshake: It depends on your choice of language and some specific implementation details....and whether you are more interested in the user interface side, the data modeling, or both.There's a range of approaches to motivational systems, and I think in 2010 we'll see some real innovation in this area. For instance, I think Gowalla is doing a particularly great job.
How to become a better programmer?
cabalamat: Lots of people like Ruby+Rails or Python+Django, so these are obvious choices. Also, if you choose a system that lots of people use, it's easier to get support from the net when things go wrong (as they are bound to from time to time).
Does Web Traffic Always Equal Income?
jasonlbaptiste: Quality of your audience is key. You can always grow the subscriber base later, but you can't increase the quality too easily or at all. Look to serve a valuable demographic or niche sector. Someone here said banking. Women is another. Techno geeks like ourselves are another. Sports fans are another. The really high end and rich are another. Urban is another. General spray and pray traffic is just complete shit on a cpm basis. You need a lot of volume.I would say that Email Newsletters are the most valuable. Thrillist gets $270 cpm for a dedicated video email. Their normal ads in the emails are somewhere around $30-$60, so lets say $45 average. If you have 10,000 monthly subscribers, you could do the following. Numbers used are for a smaller newsletter who can't command a CPM like thrillist:One weekly "dedicated" email (4 per month) at $100 cpm- 4x100x10 $4000 Ads half filled at $30 CPM, 20 emails a month, so 10 opportunities due to half filled- 30x10x10- $3000That's 7,000 per month off of 10,000 subscribers. 10,000 subscribers isn't terribly difficult to achieve. You can live pretty comfortably off of that.
How do you organize your code on your machine?
cschep: Weird, I thought this would be more common, I use:~/Dropbox/code/<language>/<project name>/it's all backedup and available immediately on all my machines, pretty handy. sometimes I use git inside of dropbox, but I'm still learning git in a real way so not all of my code is in it.This is a fun thread to read, I'm starting to question my methods. At the very least seems like there is no reason not to have everything I write inside of git (or some version control).
How to design a karma reward system
gojomo: Read/watch all the Amy Jo Kim presentations you can find online.
How can I move to USA?
elblanco: 1) Come over on a student visa. Major restrictions, you have to go to school full-time and you can't work anywhere. But in the meantime you can apply for jobs at places that might sponsor an H1-B visa and/or greencard.2) Apply for a job at places that might sponsor an H1-B visa and/or greencard.3) Marry a U.S. Citizen.
How to setup scaled-down Craigslist for my struggling rural area?
dannyr: Jay,Sent you email. I may have something for you.
How do you organize your code on your machine?
mark_l_watson: I have a system that works well for me, basically separating small test/experimental bits of code from code for customer projects. I'll talk about the layout of book code later.I keep small test/experimental bits of code in sub-directories of top level directories labeled Java_stuff, Lisp_stuff, Scheme_stuff, Ruby_stuff, Python_stuff, etc. Each test/experiment is in a well named sub-directory. These small experiments are useful for both learning and for later reuse on real projects.I keep each active customer project in a directory with sub-directories for documentation, code, and test data.For work on books: similar to customer projects: sub-directories for source code, for figure files (OmniGraffle and exported vector PDF files), for code examples, and for Latex (or OpenOffice if I can't use Latex).I also keep a temp directory for downloading, building, running, and perusing source code for projects that I read about on the web. I periodically delete stuff in temp that is older than a few weeks old.Finally, not specifically for code: I use Google documents to make copious deployment notes which I use for reference for future projects.
How to setup scaled-down Craigslist for my struggling rural area?
barmstrong: Google Groups would definitely be the simplest, although not 100% like craigslist.
How to setup scaled-down Craigslist for my struggling rural area?
shawndrost: Some rural towns have a radio hour that's basically craigslist. If there's a local radio station, I'd guess you'd have more luck with this format than with a website. (Hat tip to "This American Life".)
How to setup scaled-down Craigslist for my struggling rural area?
spaghetti: Perhaps myhometown.stackexchange.com could be a good start? The format is relatively simple (just Q&A). All the hosting is taken care-of... so one could set up a stackexchange in an afternoon (just seed the questions and do some basic design).
How to design a karma reward system
Perceval: I've posted this on HN before, but I wrote a long essay about problems with account-karma-moderation systems: http://www.kuro5hin.org/story/2009/3/12/33338/3000Probably too involved for your project, but there are some problems you should be aware of from the get go.
How to design a karma reward system
Perceval: Here's a blog that might be relevant: http://buildingreputation.com/
New Year resolutions and programming/coding projects
barmstrong: Get some more traction for http://BuyersVote.comIt's stackoverflow but for product reviews, critical mass is getting there but not quite. I have some other features I want to add like "awards" which show off the best and worst rated products of the year, month, etc. It would be fun to publicly shame bad products/companies.
How do you organize your code on your machine?
malkia: Just ~/p~/p/slime ~/p/go ~/p/ccl ~/p/sbclIn ~/p itself I'm putting some .el scripts, .txt, .bat, .sh, .cmd files for various updates (when going to the folder and doing "hg pull", "svn update", "git pull", etc. is not enough).
How to design a karma reward system
Mathnerd314: http://public.research.att.com/~volinsky/netflix/For all your rating/karma/rewarding needs :-)
How to design a karma reward system
barmstrong: Related question: does anyone have any info on using a super simple voting system (thumbs up/down, or just up) that does NOT suffer from time bias. In other words, an item might have more up votes just because it's been around longer.
New Year resolutions and programming/coding projects
Hexstream: Stop trying to tackle very difficult problems and launch my damn site at last!
How to setup scaled-down Craigslist for my struggling rural area?
ews: There are actually many ways to start a community, many of the best ones have been described here.Anyways, since I am here and I work at CL: can you send me (email on my profile) information about your city and what would you specifically need on a new geo? (specific categories/forums).I can't promise anything (I don't have the last vote on the decision of whether to launch a new geo or not) but it looks like it may make sense to launch a new geo for your area at least at county level.
How to setup scaled-down Craigslist for my struggling rural area?
Scott_MacGregor: Since there seems to be no profit motive in setting this up, just possible overhead, like site maintenance and getting the word out, if it were me, before going to the effort to build and publicize a new site I would call someone over at Craig’s list and ask them to include your area in their list. Just a recommendation.
How to design a karma reward system
anamax: > I would like to introduce a 'karma reward system' in order to a) motivate people to contributeWhat evidence do you have that any karma system motivates people to contribute the kind of content that you want?Seriously - look at the top karma people on HN. What fraction of them post for karma? Of the ones who do, how many of them do you want?> and b) to crowdsource ratings both for people as well as content.Again - what evidence do you have that karma helps with this?A karma system guarantees that you'll have people posting for karma and discussing it. Both are bad. What benefits that you can reasonably expect that are more valuable?
How do you organize your code on your machine?
Hexstream: One thing I can tell you: I'll NEVER be satisfied with how my code is organised on a hierarchical filesystem (and don't tell me I can simulate a graph properly with symlinks).I think some sort of tagging filesystem would be appropriate.Also, I hate how most programming tools assume I want to choose a "canonical" representation of code into files. I'd want to mostly don't care how the code is organized on disk and then write queries which let me view and edit code coming from multiple different files at once.As a completely hypothetical, contrived example, let's say I was still doing Java and had a big class with many getters and setters, I don't want to choose whether I want the getter and setter of each attribute organised in pairs or whether I want all the getters first and then the setters. I want to be able to write a query that will constitute a new view, so if I want either option I just have to switch views. A third view would simply be the physical representation on disk, which is still needed from and dependencies-loading standpoint. This way of working would truly shine in much more complex scenarios but I hope you see what I mean.