skysight-inc/HackerNews huggingface dataset:
It's hard to disagree with you when you use that definition of 'magic'. This is an example of my definition...

Yesterday I was looking at a Chartbeat gem that accesses the Chartbeat REST API [1]. The entire class is 40 lines of code, however it's coded so weirdly that you'd have to read the source in order to use it. Every API call was a method_missing call, so instead of doing (in irb)

puts Chartbeat.new(:apikey => 'a', :host => 'b').public_methods

you'd have to do

puts Chartbeat::METHODS
puts Chartbeat::DASHAPI_METHODS

But I only know that because I had to look at the source code. In addition, there's no way to specify custom exceptions to the user, you have to rely on the rest_client gem's exceptions.

The code does look magical, and kudos to the developer that wrote it for the ingenius use of method_missing, but IMHO it's a bit to magical for my tastes. I like to look at a library's documentation and instantly know what methods I'm allowed to call and what exceptions/results I'm going to get back.

[1] https://github.com/ashaw/chartbeat/blob/master/lib/chartbeat...
A lot of people are talking about domain squatting.

I own LunchMeet.com and paid 5 figures for it when at the time I intended to develop a startup.

Now I want to sell it. Is it squatting if I am just trying to get my money back?
I got slashdotted today (albeit by Slashdot Japan), and hit by Hacker News yesterday.

I will put up some stats later, but HN brought in 10,000 hits, Slashdot brought in about 600 people. I think the English vs. Japanese thing scared away quite a few people (ironic considering the content of the article..)

(As an odd note, I did panic after hearing about Slashdot but not after seeing people from HN - go figure)
It's not me, It's definitely you
Amazon Cloudfront y Route 53 desde Brasil para toda latinoamérica
Is your old computer costing you more than you think?
I may be ignorant, but to write a complex app, don't you need HTML5 AND a mobile javascript framework like JQuery Mobile and Sencha? Or does HTML5 handle that too? If it does require a Javascript framework, that's when the quality deteoriates... I think imitating the look and feel of native apps is easy. Making the performance smooth on the other hand is hard.
I can give you a real number. A friend of mine runs http://youtube.com/moviebuzz. He's making $8-10K a month. He only has 144K subscribers. Not too bad for a 22 year old working 1 day a week.

He says the big guys, like DeFanco, are bringing in well over $100K a month.
https://build.phonegap.com/docs/ios-builds

"Since PhoneGap Build uses Apple's standard development process to build applications, you will need to sign up for their developer program to build iOS applications on PhoneGap Build. You will also need a Mac to configure your certificate and provisioning profile."

:(
Philip DeFranco did an AMA on reddit a few months ago[1]. In answer to how much he makes:

My companies make some nice revenue. I pay myself 60-100k though. Most of the money is reinvested. Thats the first time I've even kind of answered that question[2]

[1]http://www.reddit.com/r/IAmA/comments/gb05p/iama_professiona...

[2]http://www.reddit.com/r/IAmA/comments/gb05p/iama_professiona...
> multi-line anonymous functions

This is maybe a bit far from the topic, but I would like to know why there is such a need for anonymous functions in Python.

I understand very well the need for stateless functions (functions that do not change anything else than their return value, have no side effect, except maybe logging), and I understood it was a piece of functional programming.

In Javascript, with silent overwriting of functions and without modules, it is obviously very bad to pollute the only namespace with function names that can clash with each other, but in Python, you are or should be always inside a relatively small scope, and there you can def _my_temp_func() without any problems, no?

Moreover, as it is lame to use _temp as function name, it forces you to formulate a meaningful function name, which is good pratice, especially for your lectorate, right?

Or am I missing something?
Facebook Under Fire- The Letter of Complaint
I wonder whether Haskell is on their todo list. GHC's LLVM backend [1] might be helpful.

[1] http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler...
How much effort needed to convert my single html with few javascript files to be app-store eligible. I think there is more to just using the phonegap
http://www.mockuptiger.com/a/123wireframe.php
Thanks a lot for the feedback, will definitely add San Antonio and Austin as soon as the site gets a bit of traction.
Are they going to land on a single torch? How?
What is Javascript.next?
Agreed don -- the contract was effectively worthless in terms of 'binding nature' -- more along the lines of unprofessionalism and commitment
Supraveghere video pe internet
I'm pretty sure he used a different account to reply to the comments here on the story about him retiring, so it's probably not him.
They also sell Enterprise Software (DB2, FileNet, Lotus, Rational, and a lot more).

The ads may be for their stock (indirectly) as much as for their products
> Yes, you readjust the PHP for aesthetics

Here we differ. A code uncorrectly indented is wrong for me, and must be corrected right now. I don't care at all if it runs or not.
Good catch. I kept reading it as K*(1/(1-uptime)) and carelessly left it out.
The Omniture pricing is where you start. Then they charge additional to raise your server call limit, additional for data correlation, additional for data warehousing. Omniture has a great product, but to think that an enterprise gets away with $100k is laughable. I've had clients in 7 figures easy.

If you're a startup, the only bonus you're really getting with premium Google Analytics is SLA, which most startups can do without. Stick with free.
Flask 0.8 Released
The last line of the article "Not to mention, the sight (and sound) of AlphaDog is sure to instil more than a little fear in the enemy, too…" makes me think that even if the good information were available, the reporter doesn't have the knowledge of the area to ask the right questions.
Dynamically adding DropDownList using jQuery
Though it's hard to tell if this is just part of the sarcasm, or a legitimate concern, let me clear it up: you can sell things anywhere in the world with Stripe, you simply need to sell them from a US business entity.
Aside from security, I think what this indicates (and maybe this is fundamental to computers?) is that Unix doesn't understand that sometimes users will lie. Some of the time when I say `rm -rf` (or run a process which contains that command somewhere) I want to delete the indicated directory, but some of the time I actually don't. I'm lying.

Unix knows who I am, and it knows what I want to do, but it has no way of knowing how much.

The way we get around this is by inventing an imaginary person called "root" who always actually wants what they say they want. On the other end, the imaginary person "nobody" almost never actually wants to do anything. This is obviously a half-solution, and it shouldn't be surprising that it causes weird workflow problems.
I'd say they're both hard. As an interface designer who works on iOS apps, it always pains me to see a web technology mobile app that's trying to look like it was built with UIKit but it's ever-so-slightly off. Some pixels are broken, text looks wrong, padding is off. I know why it's alluring, but I'd much prefer to see them craft their own interface style without aping Apple's UIKit look and feel.

If someone is trying really hard to emulate a native app's interface but without native technologies, I think they're already doing it wrong. Focus on the UX, not taking a different framework's exact visual style and copying it pixel for pixel.
Bezos and Sun Tzu
Amazon Buying webOS Makes a Certain Kind of Sense
Does anyone else have an uncontrollable urge to jump on that thing and ride it around? I suppose it would be dangerous, but this could spawn a new breed of bull-riding scientist-cowboys.
Yeah, you're right. I'm on it, thank you.
Having just wasted a day trying to install ImageMagick (with no success), I have to agree. I just want to freaking resize images, I don't give a DAMN about installing prerequisites or dynamically linking so and so. I just want a simple API that I call to resize image with a width and height.
[[ and ]] will jump to the start of the previous and next block, respectively. This gets you most of the way there. If you want true % movement for Python, look no further than:

http://www.vim.org/scripts/script.php?script_id=386

But really the plugin you should get and master is EasyMotion. Like vim in general, using it is going to feel painful for the first day or so. Between that plugin and auto-folding, I've never needed to use another movement command again.
Oops:

> import subprocess
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/lib/python2.7/subprocess.py", line 429, in <module>
import select
ImportError: No module named select

Also:

> os.name
=> 'posix'
> os.uname()
=> ('Emscripten', 'emscripten', '1.0', '#1', 'x86-JS')
> os.environ
=> {'LANG': 'en_US.UTF-8', 'PYTHONHOME': '/:/', 'PWD': '/',
'USER': 'root', 'HOME': '/', 'PATH': '/', '_': './this.program'}
> os.getcwd()
=> '/sandbox'
> os.chdir('/')
> os.getcwd()
=> '/'
> os.popen2('ls -l')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/lib/python2.7/os.py", line 667, in popen2
import subprocess
File "/lib/python2.7/subprocess.py", line 429, in <module>
import select
ImportError: No module named select
> os.popen('ls -l')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 24] Too many open files

* I liked the 'x86-JS' as the architecture.

* I know about os.listdir() but I wanted the permissions.

* I automatically did a ^W to delete a word and closed the tab. I don't feel like opening it again or I would probably have more.

* I realize that since this is a CPython -> JS converter that the REPL is running in my browser and no on a server (AFAIK) so it's not like this attempting to hack someone's server, but I found it interesting to probe the environment.
If you can figure out ways to try crack, heroin and motor oil safely, with no harmful physical side-effects and no risk of addiction, then why not? What's wrong with trying them? Do you have an ideological opposition to new experiences?

The problem with crack, heroin and motor oil is that two of them are relatively likely to get you addicted and then damage your body as you abuse them, and one is likely to kill you outright if consumed.

Psylocibin and LSD, on the other hand, are basically harmless (at a reasonable dose) from a physical standpoint, and non-addictive. So what's your rationale for not trying them?

You might argue you won't try them because most people won't try them - well, that may be a point, but a lot of people have tried hallucinogenics, especially in the 60s, and the vast (99.99+%) majority had a good time, is perfectly fine and was happy about the experience. So social proof isn't your reasoning for not trying them.

Which leaves the law. Perhaps you won't try them because they're illegal. Fine. Would you not try tomatoes if they were illegal? If you would try tomatoes even though they might be illegal, then what's the big deal about hallucinogenics?
Hmm.. I believe http://Zuora.com might be able to help as they have a European office as well.
I've spoken a little about the reason we couldn't use GHC among other things, at https://github.com/replit/repl.it/issues/43. In short, we need an interpreter rather than a compiler or a JIT, and we need the interpreter itself to run in the browser.
I'm fairly certain that the Facebook iPhone app does not UIWebViews to render anything. Their fast-scrolling tableviews are painstakingly crafted from scratch, natively, and (I believe) still use Joe Hewitt's framework for complex view rendering. I know some guys on the Facebook iPhone app team and they're die-hard Cocoa developers, I can't see them ever saying "screw it" and using a UIWebView with HTML.
The original idea was just that. But Yahoo! doesn't have direction. Even if they had a CEO, the company was just not focused enough on anything. First they said they wanted to be a search engine, then they moved to content and search...

Now they don't even have a search engine now, they use bing. They say they are a content and media company, but I don't really use any of their services other than delicious and sometimes the email, and I don't know anybody who does.

I think when they bought Delicious, it was a great idea because the company had direction and Delicious made sense. Over the years they lost focus, and have been just wandering around. They don't make sense.
In Photoshop, I opened the image up and first chose Image -> Adjustments -> Replace Color. I shift-clicked (sampled) each color of source code by clicking on a few different pixel of the text. I dragged the Lightness slider to zero to make the source code black thereby "erasing" the source from the window.

Next, I opened up Image -> Adjustments -> Levels and dragged the grey (middle) adjustment slider toward the left to lighten the darker areas. Dragging the white (right) slider a little left also helps to reduce the maximum blackness of the image.
Though to be fair, if you've got an XSS vulnerability, you can also just change the URL of the off site payment page to a phishing site, which most people will probably fall for.
I looked the Heroku sign up page, and got intimidated as heck by all the terminology they use. I can't imagine what the setup and admin process is like.. it could be simple, who knows but their pre-sales page confuse me...
http://www.youtube.com/user/bugmafia This channel makes $200 / day aka $6000 per month.
Natural office photography
It is still happening with 7. I am using Vista with the following: http://www.reddit.com/r/firefox/comments/hbqag/my_firefox_4_... (I disabled Firebug)
If I were to categorise in broad strokes, I'd probably distinguish between
recreational (euphorics, narcotics), self-medication of psychological issues
(anxiolytics, mood stabilisers) or physical issues (stimulants, nootropics), and
self-discovery/awareness (psychedelics, entheogens).

The actual substances used in any of these roles are to some degree
interchangeable. Those who consume psychedelics for the purpose of examining
themselves from a different mind-state differ quite significantly from those who
use the same molecule to zone out and watch the internal light show. The primary factors would be intent, and responsibility.

Is "Adolescent drug use and psychological health. A longitudinal inquiry." ( http://www.ncbi.nlm.nih.gov/pubmed/2350080 ) the article you're referring to?
Traceur (http://code.google.com/p/traceur-compiler/): Its basically JavaScript with proposed language features for ECMAScript Harmony (http://wiki.ecmascript.org/doku.php?id=harmony:proposals).
Definitely super cool. I'd like to use it, (for Chrome please!), although it might be kind of terrifying. However, the more you know and all that...

Nicely done!

Edit: I love graphs! Seriously, visual representations are AWESOME.
Don't see why it was necessary to criticize the post so much. True, the title is a bit inadequate, but it's nice to find a combination of several tidbits, tips and tricks combined on one page.
I think the difference is that ideone is actually running those languages on the backend, whereas this is running JS-based interpreters in the browser.
> "You cannot safely mix tabs and spaces in Python."

You can mix spaces and tabs all you want as long as you are consistent. This is fine.

if 0:
<tab><sp><tab><sp>1
<tab><sp><tab><sp>2

This is not, for any number of spaces.

if 0:
<tab>1
<sp><sp><sp><sp><sp><sp><sp><sp>2
I completely agree, I'm just wondering how that's any different to any other hosted integration.

Perhaps I misunderstood your original point as being too specific to the embedding situation. Would you apply the same criticisms to the other common integration strategy based on redirects?

If your intended point was that any legitimate business taking credit card details via their web site should be subject to at least some basic level of audit, then I think we are probably in agreement (though I do have a thing about card companies imposing security rules on merchants but then trying to leave merchants with all responsibility for any fraud anyway, which is a totally one-sided deal).

[Edit: As an aside, I'm not sure how this would work in a case where the merchant is using an end-to-end solution, which Stripe seems to be, and has no direct relationship with any other financial services. Presumably the responsibility then has to fall on the payment service, which would have to impose some sort of reasonable audit procedure on all of its clients?]
I understand that Amazon's S3 CDN is pay for what you use. If anyone here has had a traffic spike using Amazon's CDN, what amount did you owe Mr. Bezos? I would hate to have to tell my wife that we are buying groceries with the credit card for a while because my little website was on slashdot.
Thanks for trying it out.

* The ^W is fixable, but I'm not sure how I personally feel about hijacking fundamental browser shortcuts. We'll look into it though.

* Regarding the environment, in general, multi-threading and multi-processing (and anything that depends on them) are not supported, since Emscripten translates the code to JS rather than emulating a machine.

* The Emscripten virtual filesystem has a simple single-user permission model and the libc functions for accessing/modifying the permissions are supported. So technically you could get the permissions through os.access. Not as convenient as ls, of course, but doable.
For your iOS Beta Testers - What's my UDID?
Stripe doesn't communicate directly with your users, so there is no standard look from a customer's perspective. We're providing the tools to build your own payment forms hosted on your own website. Perhaps in the future we'll look into helping by communicating more directly to customers.
To add to this, each language has an about link and an engine link (shown at the bottom when you select a language). These will take you to a page describing the language and the interpreter we're using, respectively.
This is true. I wanted the flexibility to attach PDFs, print them out, let people save them to their computers, change my URL, etc - without breaking anything. Plus, it is much easier for me to update the document via a GUI rather than trawling through HTML+imagemagick just to resize an image or something.

But it is a good point; I may change this in the future?
I do notice the growing complexity in the systems around me, I just wish more people would present solutions instead of just gawking at problems.

Pointing your finger and making noise will draw attention to the issue, but isn't likely to fix it on it's own.
We don't need to do any advanced querying or search during the real-time bidding request process - it's just raw lookup based on "cookie ids" (we're not always using cookies). Simplicity of operations, horizontal scaleability and consistent, predictable performance are the key characteristics required.

Other parts of the system have very different requirements and yes, we are considering graph oriented databases for our cross-device analytics product.
I have never actually worked for government directly, but I was referring more to things like passports, where they are very interested in what I do for a living.

I don't even know what I do for a living, I just work on what needs to be done or feels right at any given time. My job is to solve problems and create value for others, just like everyone else. You can't be more specific than that.
Adeleke
I'm also on the current program. It's true, you need at least $10K cash in the bank to be able to gain full access to the grant. We thought it would be around $5K that we would need but it's turned out to be much more.

I very much hope that this changes for the next cohort of participants.
Question: why don't pythonistas use tabs instead of spaces for indentation? To my knowledge pretty much every editor can be customized to display tabs in whatever length users want e.g. 2 spaces, 4 spaces, etc... imo it's a lot easier than dealing with different sets of code with a varying number of spaces for indentation.
Shriekback - Make It Mauve Lyrics
Pricing is pretty hard to compare directly between something like Stripe and Braintree. In particular, there is no one clear answer, because it depends on your own mixture of AMEX cards, international cards, rewards cards, etc. We have some medium sized businesses on Stripe who have run the numbers and come out cheaper with us, but that won't be true for every merchant.

Part of what we believe to be valuable here is the simplicity of knowing exactly what your fees will be on every transaction, and in aggregate. There aren't any surprises.
Jeffrey Gaines - A Dark Love Song Lyrics
Yep, I agree. I've used git for 5 months. I just know for sure what 3 commands do: git commit -a and git push and git add.

Ask me what git merge does, or how to branch, or even how to delete a file in a repository (w/o deleting it from your local), or how to revert back to another version, or how to even check out, and I'll say I dunno. I read the documentation, but am still confused. I sometimes feel like I'm dumb because I feel everyone loves git and everyone gets it. Glad to hear that I'm not alone.
if user_set_delete:
logger.info("User set flag to delete file")
delete_file()

vs

if($user_set_delete===True){
log("User set flag to delete file");
delete_file();
}

"Correct" and "looks good" can have very different consequences. Acting like proper indentation for looks is on the same level as proper indentation for execution is ignoring the real dangers of improperly indented python.

I know copying that php block will not change the execution, no matter how it is formatted vs copying python where I need to guarantee I've got it right. Hence "some overhead".
The Fire makes sense, it's a media portal that plugs directly in to Amazon's forte; books, and more recently, apps and streaming video. It's not a tablet though, and Bezos readily, and correctly, admits that. What exactly would they gain by making a phone? Sure they would stand to sell more apps, but I think Amazon is most interesting in selling books and being a player in the streaming media game. The cell phone, with its small screen, isn't well-suited for those. Not to mention that their apps are Android apps, something I wouldn't think Palm would make a great resource for. If they are buying Palm for hardware and cell phone experience, I'd think there would be a cheaper way to get those somewhere else.

Phones don't make sense in Amazon's model at all to me. Of course, I could be wrong, but unless it's driving sales of Amazon products, like the Kindle does, there's no incentive.
Apple's "App Store" app on iOS uses HTML...
> You're welcome to pick pretty much any real world application, and I bet chrome will be ahead.

There are plenty of real-world JS applications where Chrome (well, V8) is much slower than competing browsers. Just browse through V8's bug tracker. For example, here is one I filed,

http://code.google.com/p/v8/issues/detail?id=1630

And I am sure there are even more such issues on the internal (non-public) issue trackers.

Different JS engines tune for different things, we can no longer say that any one of them is simply "faster" than all the rest. It depends on the benchmark.
Watching the Dream End
I am making no such assumption. See [1] in my original post. I already talked about intersection. Feel free to add Y3K to the list of nuclear war, chinese hackers, etc. The intersection is incredibly small, and not something that I am going to include in my back-of-the-napkin calculation.