The Corporate Tax Cut Is Paying for Itself - <AUTHOR> https://www.wsj.com/articles/the-corporate-tax-cut-is-paying-for-itself-1537310846 <comment><USER2> Stephen Moore also predicted tax revenue growth and reduced deficits for the Bush tax cuts ([https://www.newyorker.com/magazine/2004/09/06/tax- code](https://www.newyorker.com/magazine/2004/09/06/tax-code)) and Kansas' recent tax cuts ([https://www.washingtonpost.com/posteverything/wp/2016/07/14/...](https://www.washingtonpost.com/posteverything/wp/2016/07/14/dynamic- scoring-abuse-making-bad-tax-plans-look-good/)). Maybe he'll be right this time....

</comment><comment><USER3> Article is a fluff piece and provides zero support for its thesis.

</comment><comment><USER4> I always find it interesting/dismaying how quickly people think the economy can react to changes in policy. For a single family, a change in economic status, such as a new job, pay rise, etc. takes at least many months or years to have a meaningful effect on debt and financial health of that family. A giant economy would take much longer, a few years at minimum, so see the true effects. It's like steering a giant ship in the water; you can't make changes and expect it to immediately have an effect. Any benefits we see right now are either a result of the previous administration's policies, or in the case of the stock market, pricing of future expected gains already made in the market.

</comment><comment><USER5> Any of that growth gonna trickle down to workers or nahh?

<comment><USER6> Of course not, and why should it, all of the growth is entirely attributable to the tax cut. <sarcasm>

</comment></comment><comment><USER7> any non-paywall link?

<comment><USER8> You can get around paywalls with outline.com (where you just copy paste the URL) or by searching for the article from Google and clicking the link in search results.

[edited to remove outline link for this article, technically you're not supposed to use it for copyrighted content]

<comment><USER9> Here are a couple of chrome extensions:

[https://chrome.google.com/webstore/detail/outline-read- witho...](https://chrome.google.com/webstore/detail/outline-read-without- clut/daoolpmoieinofbnddaofhkhmbagfmnj)

[https://chrome.google.com/webstore/detail/send-to- outlinecom...](https://chrome.google.com/webstore/detail/send-to- outlinecom/ibmkfdbakdbcfllldjgaeefkahecbeoe)

</comment></comment></comment><comment><USER10> Not news, but an opinion piece that seems in contrast with the CBO findings that's the budget deficit will hit $1 Trillion per year by 2019. What are the benefits for the average American an how does it impact our future?

[https://www.nationalreview.com/2018/07/trump-budget- deficits...](https://www.nationalreview.com/2018/07/trump-budget-deficits- growing-big-spending-fiscal-irresponsibility/)</comment>


The Bright side of Darkcoin - <AUTHOR> https://medium.com/p/a923facddc3c

<comment><USER2> Started investing in this coin last week due to what the developers have planned for the coin. Really like what they are doing with DarkSend and will be interested to see what else they have up their sleeves for the future.

One to look out for.

BTW, if you have invested in this coin, there was a hard fork on block 34140, (Saturday 16th March about 1PM) so make sure that you have updated to the latest wallet.

[https://bitcointalk.org/index.php?topic=421615.msg5705503#ms...](https://bitcointalk.org/index.php?topic=421615.msg5705503#msg5705503)

<comment><AUTHOR> Good point. Luckily, if you use an exchange, they should have sorted it out for you already.

</comment></comment><comment><USER3> Looks interesting, what are people's thoughts on this?

</comment><comment><USER4> Seems interesting, will definitelly use this coin

</comment><comment><USER5> nice interview! Great innovative mind that duffield</comment>


The Road Coder's Survival Kit - <AUTHOR> https://www.twilio.com/blog/2014/03/the-road-coders-survival-kit.html

<comment><USER2> I was really hoping for stuff that makes you more effective at coding while on the road. I find my productivity takes a serious hit when I'm moved from my 27" monitor +12" laptop screen to just my laptop screen.

Any suggestions for this?

<comment><USER3> that's exactly why I hope the oculus rift takes off and offers some high res models suitable for that kind of work in the future.

<comment><USER4> CastAR sounds like it might make a cool dev environment. Hang up the reflective material, put on the glasses, and you've got a screen. Doesn't block everything else out the way the Oculus does. [http://technicalillusions.com/castar/](http://technicalillusions.com/castar/)

<comment><USER3> in my fantasy world I have a computer (a laptop or maybe just a processing unit of some sort) plus something like an oculus with many cameras on it .

When I am busy, I shut off the world and get distraction-free. When I want to interact with others I composite the real world atop my VR world from the cameras, without ever lifting the headset.

Ghost in the Shell but much simpler.

</comment></comment></comment></comment><comment><USER5> If anyone is looking for pants that resist liquids, have good flex, travel well, and still have a fairly trendy cut to them, check out the Levi's commuter pants/gear [1]

I'm a bit of a trendy fop and I love them. The fabric has a bit of spandex in it, which makes them super comfortable and flexible. Even though they have the spandex, though, they also have a normal/natural sheen, so people will just think you're wearing regular slacks and not space pants.

They're made for cycling, and they also work pretty well for that, as well (which is really where the give of the spandex shines).

They run about $80 MSRP

If you want to spend an unhealthy chunk of dough, and get pants that are pretty much amazing, you should check out the Outlier OG's [2].

Again, they're designed for cycling, but they're made out of a straight up tech fabric called schoeller dryskin [3]. They're relatively water resistant and dry really quickly when they get wet. The fabric has a nice give to it, and is comfortable. Those would set you back about $180, though.

I'm a bit of a bike nerd, and do a lot of commuting by bike. Toured ireland for five or six weeks as well. I also like clothes with a good cut. I've found cycling clothes like that tend to offer a lot of functionality that makes them good travel attire and there are a number of companies out there making things with a good cut to them. Like I said, though, I'm into feeding my foppish vanity; If you're not, well, more power to you :)

[1] [http://us.levi.com/family/index.jsp?categoryId=11844101](http://us.levi.com/family/index.jsp?categoryId=11844101) [2] [http://shop.outlier.cc/shop/retail/new- og.html](http://shop.outlier.cc/shop/retail/new-og.html) [3] [http://www.schoeller-textiles.com/en/fabric-groups/soft- shel...](http://www.schoeller-textiles.com/en/fabric-groups/soft- shell/schoellerR-dryskin.html)

</comment><comment><USER6> I really like packing cubes, they can have a compression effect. One of the eagle creek half cubes for example holds 3 shirts, 3 pairs of socks and 3 pieces of underwear for example.

</comment><comment><USER7> God, those pants :O Please, fellow devs, dress better than that.

<comment><USER8> From my perspective having been on a pure road trip:

Pretty low-key for a functional not-quite-douchey-tacticool pair of pants. Pockets are of huge value when you carry your life with you on the road. Jeans are probably the next best bet if you need to look decent, but will feel bad in hot weather, not keep certain important areas dry, and lack the cargo capacity. Synthetic clothing helps a lot here. It dries very quickly and aireates better -- less trips to laundromat.

Comfort and function quickly took precedence on a half-year road trip I participated in. If you're trying to run cheap (car/forest camping for free, working in city by day), you want clothing that will not start stinking you up in under 3 days, and need certain items (phone, flashlight, pocket knife, etc.) quick at hand. If you are going to face clients/prospects, you keep a change of casual clothing fresh for just that purpose (and freshen up that day!). Granted, this is from a road-nomad perspective, but you get the idea.</comment></comment>


Is it possible to apply CSS to half of a character? - <AUTHOR> http://stackoverflow.com/questions/23569441/is-it-possible-to-apply-css-to-half-of-a-character

<comment><USER2> Extensive discussion: [https://news.ycombinator.com/item?id=7733658](https://news.ycombinator.com/item?id=7733658)</comment>


Fundamental Guidelines Of E-Commerce Checkout Design - <AUTHOR> http://www.smashingmagazine.com/2011/04/06/fundamental-guidelines-of-e-commerce-checkout-design/ <comment><USER2> Is there raw data for this available? I would like to see survey responses and footage of the testers as well.

</comment><comment><USER3> Great guide but I really think this area needs a lot of innovation, the checkout process isn't nearly as optimized as it should be. It's 2011 and you still need to fill out the form every single time you want to buy anything.

I think we need to aim for the one-click-to-buy dream to get the checkout process getting it's usability and conversion it has the potential for. Apple's App Store is a great exampel of how easy we can make this come true. Two clicks and a password and _boom_ you have bought the app. I want the same standard on all e-commerce sites, possibly with Facebook Credits/Facebook Connect, so whenever I'm logged in the purchase will take 1-3 clicks and no damn forms to fill out.

<comment><USER4> Maybe I'm the exception, but I don't want checking out to be too easy:

\- I like to type my credit card each time, I don't want sites storing it

\- I don't want to accidentally click things and buy things I don't want (I click things a lot, just to 'see what they do')

\- I want the buying process to require _some_ effort, so I only end up buying things I really want.

<comment><USER3> Of course it will require some efforts. I think the iPhone App Store purchase process handle it very nice, it requires enought effort but still makes it smooth and easy.

Usability and the most simple solution will always win in the long run.

</comment></comment></comment><comment><USER5> Interesting but there are a lot of things I would not suggest. For example, the article suggests that expiration month on credit cards be listed "exactly as it appears on the card" while failing to mention that there is no standard. The author suggests you do NOT include the name of the month next to the number but many cards use the name of the month so listing expiration as: 01-Jan, 02-Feb makes a lot of customers happy. I would read this article as great suggestions but it doesn't mean the advice applies to your store perfectly.

<comment><USER6> I have never seen month represented using the month name - at least not in Canada.

Don't know what its like in other areas of the world. Perhaps we just need to use some critical thought after reading and interpret the points based on our markets.

I mean, it isn't a hard an fast rule - they are just giving some suggestions - and I think they were pretty spot on.

</comment></comment><comment><USER7> Sites like WalMart and Zappos are mentioned in the article for doing things that are non-ideal, according to Smashing's testing. It seems pretty inconceivable for sites with such large revenues to not have done their own internal usability testing. I wonder what led these sites to their current usability/design decisions.

<comment><USER8> Online is a different world. Don't assume those who "get" brick and mortar can also "get" online. When walmart first chose to go online they realized this might be a problem and hired a group out of California (this was during the dot com bubble) to come in and do it. Those guys didn't do a very good job and there was a bunch of noise being made by internal people about "we're good enough to do this! We don't need some fancy California people!" so it came back in house. Well they weren't good enough (to be fair, the "walmart online" people weren't either).

Though, for me I always figured Walmart.com's biggest problem would be that they couldn't take advantage of the internet tax rules: they have a presence in every state afaik.

<comment><USER9> You seem to have a bit of understanding of what happened internally at walmart with walmart.com in the early days. Walmart.com is still based out of California (Menlo Park I believe) even though the company was brought back into the Walmart Inc. many years ago.

The original "walmart online" folks weren't web developers (Visual Basic coders) and really had a tough time understanding the request/response nature of the web (although they had no UX or QA people either, which led to other issues).

The Arkansas/California issues you talked about also stemmed from jealousy. There were stories of the associates in CA having pool tables, foosball tables, catered food, etc. Meanwhile, in AR the associates had extremely old PCs, old software, required to work long hours, etc.

</comment></comment></comment><comment><USER10> They mention using a single column, but what about displaying the address fields in similar way to how they're shown on paper, i.e. city, state zip in one line? Would this fall under one-column or two-column presentation?

</comment><comment><USER11> Just to double down on one of their points about showing security around sensitive fields - one of the bread and butter things we do on optimization projects is test trust logos and trust logo placement.

Getting the best vs. worst positioning can drive as much as 15 - 20% on cart abandon - more details in article:

[http://conversionvoodoo.com/blog/2010/07/proper-placement- of...](http://conversionvoodoo.com/blog/2010/07/proper-placement-of-trust- logos-can-make-a-huge-difference-in-conversion-rate/)</comment>


Ruby and Ruby on Rails latest documentation - <AUTHOR> http://prognommers.github.io/ruby-rails-documentation/

<comment><AUTHOR> Project page: <https://github.com/ProGNOMmers/ruby-rails-documentation></comment>


Help, I want to quit the startup I founded - <AUTHOR> I'm cofounder for a startup. It's been about 8 months or so. It's killing me. I don't know what it is; I clash frequently with the CEO about dumb stuff. Sometimes I love the product, sometimes I hate it. I can't see anything else because I've had my head in it for so long.
I've always been a person with depressive tendencies, but this is slowly pushing me to the edge. I smoke weed every night otherwise I can't relax and feel good. My gf tells me I should go see a psychiatrist but that'd make finances hard. I'm getting some really low lows.
I don't know what to do, help.
PS: my ability to pay rent and visa situation are very much tied to my startup... it makes things crazy.
If I quit, I'm left with 0 money. I'm unemployable by now– I can't be in at work at a decent time, I can't do what a boss tells me to, I can't take any kanban bullshit– I would not survive 1 week at a tech company.
Should I just call it quits and try to just go teach high school math or programming at a community college or something? (or go to thailand and live on the beach for $100 a month or something) <comment><USER2> As others have said - this isn't being censorious or moralistic about drugs - but step 1 is stop smoking the pot. Your mind WILL clear up after a week or two being off it and after a month or so you'll really notice the difference.

Contrary to movies like The Social Network, getting drunk and stoned all the time doesn't fit with the stresses of running a startup I'm afraid.

Burnout is an under-talked-about problem with startups. You are far from unemployable coming out of a startup. You just need a break and some time off to get your head clear. Depressive tendencies are not unusual for the kind of person drawn to entrepreneurialism.

If you can then take a break from your startup. Tell your co-founder that you need a couple of weeks off or you're gonna burn out. If they can't make that work then you don't want to be in a startup with them anyway, as there'll be more ups and downs and you need to have each others' backs during the tough times.

If this startup isn't working for you and you have no other option, getting out is not as drastic as it seems. The company will survive. You will survive. Things will not be as dire as you think. It just feels that way now and the combination of pressure and anxiety makes it hard to get a better perspective.

Being stuck in something because you feel financially bound to it is not a good thing - you'd be surprised the options that are available to you but it's hard to see them when you're in the frame of mind you are. That's not critical :-) ...it's a good thing - it means that when your mind starts to clear up you'll see many more options.

I've been in Silicon Valley for about 14 years now (really? damn I'm getting old). I've seen, and been through, every up and every down. If you want someone to talk to for a bit of perspective, I'm happy to listen any time. (Add a d in the middle of the two names my username at gmail for my email address). Perspective can help :-)

Either way, don't get too down. It's not as bad as it feels right now I promise.

<comment><USER3> In this case the substance abuse is a symptom of the bigger problems. Stopping drug use drugs is a good move, but alone will not fix him. It is escapism.

<comment><USER4> Who down-voted this? It's very accurate.

<comment><USER2> Not me, but I would take issue with it. Escapism is the symptom here not the cause. The cause of the problems is the work environment he is in. Escapism is an unhealthy response caused by an unhealthy mental state.

Telling him he should buck and and stop whining isn't really a solution. Trying to bully a depressed person into somehow changing things by yelling at them adds no value as it doesn't work.

</comment></comment></comment></comment><comment><USER5> Okay, I'll bite. I want you to know that what I'm saying I'm saying with love, as a bipolar technical co founder several times over. I find that people with mood disorders tend to either be very bad or very good at startups, depending on whether or not they have learned to manage their diseases. It sounds like you jumped in without learning to manage your depression first. It should be pretty obvious to you by now that a startup exacerbates the highs and the lows. What might not be obvious is that once you learn to deal with your depression, those same skills will transfer over to weathering the emotional roller coaster ride that comes with the territory of building and scaling a company. You have to fix your depression before you can expect anything to get better. Focus on that, first. A doctor would help, but isn't the only possibility. There are other options, from counselors to breakthrough.com to a copy of _I'm O.K., You're O.K._ and a good friend to talk to. And there are many things you can do for yourself, like exercise, take Omega 3's, keep a journal, and practice some form of Cognitive Behavioral Therapy, hopefully with a professional, but if all else fails, you would be surprised how far you can get just winging it with someone who cares about you. I hope you feel better, soon. But don't be surprised or discouraged if it takes a while. Maybe this startup works out, maybe it doesn't. But if you do decide to "give up", at least don't give up from a depressed frame of mind. You'll regret it, trust me.

<comment><USER6> I've been a technical cofounder a couple times before and am about to take another plunge.

I have to work around depression. Omega-3s, Vitamin D, exercise, good food, good people, and discipline have helped me to make it close to a non-issue.

Also listen to milkshakes, he's a good guy. :)

</comment></comment><comment><USER7> Get that weed out of your system. Marijauana isn't the devil, but it can have a very significant impact on your mental state and perception of the world.

Avoid all drugs and alcohol for a month, so your mind can adjust, and then sit down and talk this shit through with at least two smart people you trust to have your best interests in mind.

<comment><USER8> I hope this isn't downvoted, but you should realize that quitting marijuana suddenly will make his stress far worse for 2-4 weeks.

His real problem is some deeper misalignment with his emotions towards things. There's nothing bad about kanbans, they are tools used to help you get organized and get things done. There's also nothing bad about disagreements with your cofounder. The difficulty is that he's taking all of these things and reacting strongly to it. In all of my experience, I've never learned to teach this, but what he needs to learn is acceptance, and to live in the present. It's more important than ever to just give up control for a bit, let your cofounder do the leading. Taking on all the stress yourself is what kills you, and if you don't trust your cofounder, then you are taking on way more stress than you need.

</comment></comment><comment><USER9> First off, this is going to sound preachy, but you need to slow down on the weed for a little while. I know that you think it helps you, but it only masks symptoms and it messes up how you perceive the world. The problem with masking symptoms is that the underlying problems are still there. I'm not saying that weed is bad because it isn't. But in your state, it isn't good for you.

Second, ignore anyone who tells you to buck up or get over it. Seriously. Anyone who tells you to get over it has never been where you are. And therefore, they're not qualified to tell you a damned thing.

Third, if I were in your situation, I'd go to a doctor and try to get on anti- depressants. Then, I'd take a couple of weeks off and just relax. Go to the beach. Hang out at home. Play video games. Work on a project that you care about. Do anything but the startup. Maybe after a couple of weeks you'll be able to go back and work at a high level? Or maybe, after a couple of weeks, you'll realize that this startup thing isn't for you.

Worst case scenario, if a couple of weeks off and some anti-depressants can buy you another three months at this startup, that is another three months for you to save cash, and try to interview at other companies. Best case scenario, maybe you'll find your passion for it.

<comment><USER3> re: buck up

Life is hard. You're not doing him any favors by pretending otherwise.

I'm not trying to minimize his problems. His problems are real and he needs to put the work in the change himself on the inside. Excuses, silver-bullet "professional" solutions and other escapist approaches are what got him into this dire situation. More of the same is not going to turn out happy.

<comment><USER9> I'm not really sure what you're trying to say here...

Often, when people are going through a bout with a mood disorder, people who have never suffered from mood disorders will say things like 'buck up' or 'get over it'. Nobody would ever tell a cancer patient to 'buck up' or 'get over it'. But, people think it's acceptable to tell people with mood disorders to just get over them.

Mental illness is very real and trying to put on a happy face and ignore the problems is both dangerous and irresponsible. If the OP is ill, he really should pursue treatment.

<comment><USER3> Even if he seeks out professional help (I believe everyone with mental health issues should get professional help), he's still going to ultimately have to do a lot of work on himself. This is the reality he needs to adjust to if he is actually serious about getting better.

</comment></comment></comment></comment><comment><USER10> I know exactly what I would do in your situation.

Tell the CEO you need to go to Thailand for 8 weeks to chill out. Avoid quitting so that you can keep your Visa. Strongly consider going to your primary care physician (cheaper than a psychiatrist) and get on an anti- depressant. (This will hard to do at the same time as leaving a country as your doctor will likely not give you a two month prescription to start.) Bring your GF with you to Thailand for some of the time unless you are comfortable traveling alone. The travel experience may be enough to get you out of your rut, but I would get on an anti-depressant as well. Also exercise. Twice a week is enough.

Ignore anybody who tells you to "deal with it" or "subsist". There is more to life than your first startup. Learning to cope with depression is a lifelong process and isn't solved by just sucking it up. Also depression is not really a unique and beautiful snowflake of a disease. A change of scenery and anti- depressants will work 90% of the time.

</comment><comment><USER11> Believe it or not, there are low-bullshit companies out there. And they are starving for smart, nice, and capable people. Given your visa is tied to your current startup, I would find a way to apply/interview while at your current position for as long as you can.

Meanwhile, I would have a larger conversation with the CEO. What is it exactly that makes working with him/her so hard? Can you discuss with them in a non confrontational manner?

Check out the book Difficult Conversations for help on this: [http://www.amazon.com/Difficult-Conversations-Discuss- What-M...](http://www.amazon.com/Difficult-Conversations-Discuss-What- Matters/dp/0143118447)

<comment><USER12> This. I work for a low bullshit company that is always looking to hire people and has sponsored visas. Don't assume that your company represents every company.

</comment></comment><comment><USER13> Wow, well I doubt many of us can give the best advice because your situation is so specific. Not every company is going to be doing kanban type stuff. If you hate this I'm not sure teaching HS math or programming is going to be a quick fix to your problem.

Perhaps looking for a new position while remaining your employed is a good idea. If you go work at a non-startup, you may be able to earn a better salary and have a less hectic workload and you can focus on yourself, via counseling or whatever, for awhile until you feel like you can jump back into a startup.

</comment><comment><USER14> Thanks for posting this. I sometimes feel similarly, even though I don't have a co-founder. But basically I have the same issues and fears.

I'm afraid people here are right about the weed. I drink an unhealthy amount of beer (1-2 liters) every day to help me relax. I know it's fucking up my head in the long run and it would be better to get off it for a while to clear my head, but every night after a long day, even if it wasn't as productive as I'd like (actually especially if it wasn't) I go f _ck this sh_ t, I need a beer!

I'm still in the process of launching my first product, living on savings, so I too feel like being in a financial stranglehold - either this works out or I'll have to go into prostitution or something, because just as you say, there is no freaking way I can go back to a 9 to 5 programmer job, taking order from some boss or clients or even just getting up every morning to show up at some office and stay there all day.

I envy people who already have achieved financial freedom with their businesses, there is so much in life I would want to do (go scuba diving as an example), but I feel quite penniless and very limited. A horrible feeling that makes me feel depressed every other day.

Sometimes I'd just like to "break out" but I wouldn't know where to?! I already quit my job to work for myself and be my own boss. I guess this struggle is just the price I'm paying for the freedom that is hopefully to come...

Anyway man, stay strong, you're not alone.

</comment><comment><USER14> On the 100$ Thailand thing that a lot of people have been asking here:

It will be hard to live off that little. I know for some Thai people this is their salary, but they live there, have families that support them, speak the local language, have built their own hut, are connected in the village, etc.

Even 500$ isn't that much for a tourist, but it's doable.

It is not unusual for them to charge 2, 5 or even 10 times the price for a foreigner, compared to what a local Thai person pays for any given good or service. Your only way around this is either learn Thai yourself, or have a friendly local help you get some deals. My best bet would be find someone on Couchsurfing.org willing to help you.

I once met a swiss girl while travelling through South East Asia, she was working in the north of Thailand in some project, teaching children English. She said to me that they were also in need of a IT teacher. That's several years ago now and I haven't been keeping track what she's up to. The point is, she told me that in the time living and working there, she hardly spent ANY money at all, being a lot with locals, living with the school, learning Thai, starting to get fair deals on food and such, etc. If that's something you want to contemplate, the organization she is part of is: <http://www.baandoi.org>

</comment><comment><USER15> The OneWeekCure(tm) for burnout:

Step 1) Quit the weed on a Friday evening and call in sick for the following week.

Step 2) Do nothing but lie in bed for Saturday, Sunday, Monday, Tuesday, Wednesday.

Step 3) Spend Thursday, Friday working in bed.

Step 4) Take your GF out and spend as little time at home over the weekend as possible.

Step 5) Go back into the office on Monday and reflect on how different it all feels.

Repeat as necessary and always remember:

The cost of not having you around for a week a couple times a year pales in comparison to the cost of finding a replacement for you!

</comment><comment><USER16> Maybe grad school? Vacation? Learn the clarinet? It sounds like you definitely need some kind of escape from your job.

I highly, highly recommend seeing a therapist if not a psychiatrist. Your health insurance may cover that. If not, then what you're paying now for drugs you should try spending on a therapist one week, or whatever. At least give one a shot, it's amazing how much of your depression is in your head and can be resolved by working it out with a professional. And actual depression medication may also help when the therapy doesn't, and it will almost certainly work more consistently for you than weed. I won't say give up the stuff as it does seem to legitimately work for some people, but it also has bad effects that are easy to overlook when depressed because it's more of the same when you're not actively high: lack of energy, lack of motivation, lack of appetite. It's pretty nasty if you're unaware of it, and it doesn't mean you can't smoke again if you can figure out how to address those issues. But you should face this specific problem with as clear a head as you can manage.

But seriously, you are more important than your startup. Don't ever convince yourself otherwise, if Zuckerberg were feeling this shitty and I knew that facebook would blow up I would tell him the same thing. If you aren't making enough money at this place to pay for a therapist you might as well make that money doing something more relaxing, especially if you have this love/hate relationship with your startup; you can't be working at your potential if this is the case.

Anyway, if you're in a place now where you realize that there's a problem AND you're motivated enough to do something about it by posting here, then you're in a place where you have the power to address it before it really nails you later. It's not going to go away if you don't change anything. If you need anything, feel free to give me an email or give me a call.

</comment><comment><USER17> How did you become a cofounder if you and the "CEO" don't see eye to eye? Tell me I'm wrong: Comes across like you got suckered into working for very little for some "business visionary".

Must be getting real cheap weed. Surely seeing a psychiatrist would be a better "investment" for your mental health.

Could you elaborate on why you wouldn't last 1 week at a tech company?

<comment><AUTHOR> We knew each other a little, and he was looking for a tech cofounder. I accepted. The "cofounder" title he offered me seemed shiny and respectable, now it almost feels misleading.

I am definitely working for a "business visionary", although he pays me decently and we have decent traction.

I wouldn't last a week at a tech company because I have huge troubles with authority and policies and rules etc. I've never had a "real job" in my life; always in not very interesting organizations (including academia) where my lack of discipline was tolerated.

<comment><USER18> > because I have huge troubles with authority and policies and rules etc. Are > you 15? You sound tremendously immature.

<comment><USER16> Not all such problems can be traced to maturity. Some people just don't do well in environments when your behavior is controlled. Just because people learn to deal with it eventually doesn't mean it's related to maturity. Some people are born into a cubicle, others prefer less structured environments and continually fail at traditional jobs until that happens. Independence is incredibly valuable and I don't fault him at all for needing it more than the rest of society.

EDIT: And I really hope you wouldn't say this to his face, I hope you understand what you're doing. Calling him immature only makes his problems worse, he came to HN for help and got criticized unfairly.

</comment></comment></comment></comment><comment><USER19> It can be tough but this is real life. You just have to deal with it. Don't sabotage your position - instead start planning a way out. You CAN make it in a tech company, it will just be a shift in habits. In the meantime work hard and exercise. Weed can exacerbate depressive symptoms especially in lieu of exercise. Best of luck my friend.

</comment><comment><USER20> Yeah, the Bay Area will do that to you, especially if you're on a visa. Your status, self-worth, and even your ability to stay in touch with your friends are all tied to giving some job 60-70 hours a week. I sympathize.

I think you're aware of this, but you're engaging in very unrealistic, all-or- nothing thinking. If you aren't in THIS startup at THIS time then you're totally unemployable and you waste your life on a beach in Thailand. Take some time off to clear your head (if I were you I wouldn't up the weed quotient, but that's me). I don't know that you need to jet off to a different country, if you're in California there are so many great places to relax within a few days' drive.

</comment><comment><USER21> Not this bad but I have had situations where I want to quit everything, I was questioning everything I intend to do.

Why not take a long-ish no-work break. Leave everything for a while. Go somewhere - Thailand for a month or meditate in the Ashrams of Dharamsala[1], or the Osho Ashram[2] in Pune, India.

I'm sure your co-founder (CEO) will understand. After your break, go back - refreshed and ready to get back to work or be able to take a decision on what you'd do next.

1\. <http://en.wikipedia.org/wiki/Dharamsala>

2\. <http://www.osho.com/>

</comment><comment><USER22> Don't be afraid.

Subsist. Accept that you may need to prolong the status quo for a period of time.

Conquer your vision, (i.e., accept its limitations and buy into what the CEO wants, or learn how to demonstrate value via Dale Carnegie or Ray Dalio's methodologies) or plan your exit strategy. With specifics.

Or alternatively, you could conquer yourself. But probably not in the environment you're in.

If you need someone to talk to, email me for my number. kqtgtq3pk at hushmail dot com. Tell me as much of your story in as few words as possible so I know it's you.

I'll be asleep in a few hours for around nine hours because it's late here. Good luck, my heart is with you.

</comment><comment><USER23> No, stick it out and start demanding change from your CEO and improvement in the company. That's why you're on board right? It's a startup. You're experimenting with business models and should be ready to change. So change! Make it a success. Nothing is written in stone in a startup. At the least you have some source of money and a work environment you enjoy. Make it better.

Also, seriously, the top comments are all about weed? Come on. There are more important issues such as clashes with the CEO and sucky product.

</comment><comment><USER24> 1\. Take a 1 week vacation and decompress. 2\. Who's picking the fights you or the CEO? If it's you don't sweat the small stuff. 3\. Try to clearly define who decides what.if things get heated agree to walk away and try again later. 4\. Don't give up you'll regret it. 5\. stop smoking pot and get an exercise bike espcially if finances are tight. 6\. after you've done all of this if you still need to get out then come up with plan B first before you jump.

</comment><comment> rob-alarcon Watch this video, it's about the history of the founders of Airbnb, sometimes I feel like you do right now, and found "inspiration" in histories like that.

<https://www.youtube.com/watch?v=KOytubycHOg>

I also run a half-marathon or marathon each month, that helps a lot.

Keep on.

</comment><comment><USER12> You're probably looking at $500 a month for the Thai beach situation, but yes it's good deal!

<comment><USER16> Damn, I gotta go to thailand.

</comment></comment><comment><USER25> I could tell you exactly what to do (find yourself a good therapist, cut out the weed, and get an anti-depressant prescription) but instead I'll ask: what would _you_ choose if you were taking a ten- or twenty-year perspective on your decision?

</comment><comment><USER26> I know how you feel. Txt me when you need an ear. We'll hang out, get drunk. 415-810-4267.

<comment><USER20> I have this vision of you meeting the guy and it turns out to be your cofounder. Awkward. :)

</comment></comment><comment><USER27> Listen to your girlfriend before you listen to any of us Go to a good psych and see if you possibly have bi-polar disorder. Startups come and go but a disease undiagnosed will haunt you forever

</comment><comment><USER28> Be kind to yourself and build better habits and routines for yourself before making big decisions. If you're more grounded and centered it will be easier to see things in a better perspective.

</comment><comment><USER29> If you are in a startup, you've already won. You've already done what millions of people dream of doing but never had the balls to do. So be proud of what you've achieved! You are awesome.

</comment><comment><USER30> In the words of Kenny Powers:

When my ass was 19 years old, I changed the face of professional baseball. I was handed the keys to the kingdom. Multi-million dollar deals. Endorsements. Everyone wanted a piece of my shit. Just a man with a mind for victory and an arm like a fucking canon. But sometimes when you bring the thunder, you get lost in the storm. But a true champion, face to face in his darkest hour will do whatever it takes to rise above. A man fights, fights, and fights some more. Because surrender is death, and death is for pussies. And my ass ain't no pussy. My ass is a fucking champion. — Kenny Powers

</comment><comment><USER31> FYI, you can't survive in Thailand with $100 a month..

<comment><USER32> i was hoping thailand would be the answer :(

</comment></comment><comment><USER3> Stop being lazy. Nobody respectable ever got anywhere by doing what is most comfortable for them. This community is filled with hard-working collaborative people who when made aware of their own faults work hard to improve. Your use of "can't" is your biggest problem. If your belief system continually revolves around "cants" you will not ever be happy in this line of work.

<comment><USER2> I think that's an unpleasant and harsh response.

What part of the post suggested to you that laziness was the problem?

<comment><USER3> Laziness:

".. I can't be in at work at a decent time, I can't do what a boss tells me to, I can't take any kanban bullshit– I would not survive 1 week at a tech company."

"Should I just call it quits and try to just go teach high school math or programming at a community college or something? (or go to thailand and live on the beach for $100 a month or something)"

<comment><USER2> That's someone who is depressed from overwork talking irrationally.

Startups are populated by folks who cannot function well in a more structured environment and wrinkle against rules.

Escapism is a fairly typical symptom of someone too depressed to have perspective on their problems, and once they get a handle on the depression the desire for escapist solution wanes.

<comment><USER3> While that is possible and probably fairly common in our line of work, pay close attention to some of the other red flags from what he's said. For example:

"I wouldn't last a week at a tech company because I have huge troubles with authority and policies and rules etc. I've never had a "real job" in my life; always in not very interesting organizations (including academia) where my lack of discipline was tolerated."

<comment><USER2> Again, nothing suggested laziness. You're just making a mean-spirited and bullying attack on someone at a moment of weakness with no real purpose. People who lack focus and struggle in structured environments are not the same as people who are lazy. It sounds to me like the OP is doing overworking not being lazy. Your comments on here appear very angry and aggressive towards someone who is going through a difficult time.

Ad hominem attacks on the guy help no-one.

</comment></comment></comment></comment></comment></comment><comment><USER33> Whatever anybody says -- of course my advice should also be lumped into the "with a grain of salt" category -- start jogging. Jog around the block (yes, half a mile to start). Stretch a little before and after. Repeat this twice a week and don't give up. Even the TINIEST bit of exercise can have TREMENDOUS effects on your depression. I've been at rock bottom, brother. My ex-wife left me for some other dude on Christmas Eve in 2008. At the time, I was a gunner on a convoy security mission on a really shitty road in Iraq. Running helped me through that and more (much more). Exercise is the fastest, cheapest way to get yourself a one-up on the depression.

<comment><USER33> Also, as a regular cannabis user, I want to voice my opinion that a little bit of weed at night before you lay down is certainly no worse than the person who has a little night cap before bed, or wine with dinner. It gets demonized quite a lot, and I have to say that as long as you don't let it get in the way of you dealing with these problems, it's harmless (without advice from your doctor saying otherwise). THAT BEING SAID escapism with any substance is not healthy, especially in your current headspace...</comment></comment>


Ask HN: Constant List predicate in python? - <AUTHOR>

Here's something I had to write in a hurry yesterday, and I haven't had time to spend to find the "right" technique.  So I'd be interested to hear the thoughts of the hackers around here.
Write a routine that returns True iff all the elements of the input list are equal.
Here's a non-pythonic routine:

  def is_constant(l):
    for i in range(1,len(l)):
      if l[0]!=l[i]:
        return False
    return True
 That's a simple, early-terminating imperative loop.  Here's a slower and not necessarily clearer version:

  def is_constant(l):
    return min(l)==max(l)
 Personally, the fact that the code is short really appeals to me, but some people would find it unclear in how (and why!) it works.
Here's an even less clear version:

  def is_constant(l):
    return len(l)*[True]==[ l[0]==a for a in l ]
 I'd specifically like to know the answer to this question:  Suppose you have to maintain a piece of code that performs this function.  What would your ideal code be to find?
Extra marks available for code that deals cleanly with corner cases: empty lists, tuples and generators. <comment><USER2> Of course, this will run through the whole list, no matter what...

      def is_constant(l):
          return reduce(lambda x, y: x and (y == l[0]), l, True)

</comment><comment><USER3> return (len(set(l)) == 1)

<comment><USER4> I'd pick this solution.

</comment></comment><comment><USER5> def f(x): return not x or x == [x[0]] * len(x)

<comment><AUTHOR> Small, clean, clear. Fails for tuples. One could use:

        def f(x): return not x or list(x) == [x[0]] * len(x)

Does have the downside that it constructs a list, which the min==max solution doesn't.

I wonder if there is a single "ideal" solution ...

<comment><USER5> This works for a list of numbers (array or tuple), as long as numbers aren't negative:

def f(x): 0 == sum([y - x[0] for y in x])</comment></comment></comment>


Confessions of a Prolific Moonlighter (with a Chronic Writing Disorder) [video] - <AUTHOR> http://miningthesocialweb.com/2013/11/23/confessions-of-a-prolific-moonlighter-with-a-chronic-writing-disorder/

<comment><AUTHOR> The fundamental takeaway is that a tech book is a startup (if you want it to be). Thinking of it as a product (not a project) fundamentally changes the dynamics of how to go about writing and supporting it.</comment>


Using invariants in Binary Search code - <AUTHOR> http://www.solipsys.co.uk/new/BinarySearchSummary.html?HN

<comment><USER2> I think that searching all lg(n) items even if found in the first comparison is a performance killer. Binary search has poor cache locality of reference.

Normally you'd shrug off performance concerns, but the point of a binary search is to be fast.

Having said that, its like C's sort vs std::qsort - you get a big speed-up from the language mechanics and maybe that can swallow it all?

<comment><AUTHOR>
      > I think that searching all lg(n) items
      > even if found in the first comparison is
      > a performance killer.

I hear what you say, and that's an important consideration when translation this to the real world. You can get the same short-cut performance by adding a single line:

        int find(int a[], int size, int val) {
            if (size<=0) return -1;
            int lower = 0, upper=size;
            while (upper-lower>1) {
                int m = lower+(upper-lower)/2;

         ->     if (val==a[m]) return m;       <- Inserted line

                if (val<a[m]) upper = m;
                else          lower = m;
            }
            return (val==a[lower]) ? lower : -1;
        }

      > Binary search has poor cache locality of reference.

Absolutely, and for that reason there are many variants that can be devised, and then tuned for different cache considerations. I remember writing a version that measured the system cache performance every hour or so and adapted its parameters accordingly.

</comment></comment><comment><AUTHOR> I've been asked to write something more complete and more substantial on this topic, so I thought I'd make an earlier short piece available to see what people pick up on, and hence help direct my focus.

Think of this as the first step of "Release Early ..."</comment>


Computer control of a machine for exploring Mars (1964) [pdf] - <AUTHOR> https://stacks.stanford.edu/file/druid:th919jh6519/sc0524_1995-247_b27_f33.pdf <comment><USER2> Is there a program that can take a LaTeX file and create a PDF that looks like a scanned type-written paper from 1964 ;)

</comment><comment><USER3> The Automated Biological Laboratory [https://archive.org/stream/NASA_NTRS_Archive_19660027176/#pa...](https://archive.org/stream/NASA_NTRS_Archive_19660027176/#page/n343)

In OPs link there is a committee that says "No pics from mars, it's too hard to do", and then there is John talking about it like it's obvious pictures needs to be taken..

</comment><comment><USER4> Viking 1 landed on Mars only 12 years later. Interesting that a paper about exploring the possibility of a computerized machine on Mars is written a scant 12 years before an actual landing of a fairly complex lander. Life between, say, 1960 and 1980 must have felt at a breakneck pace.

Viking 1 lander's abilities:

[https://nssdc.gsfc.nasa.gov/planetary/viking1landata.html](https://nssdc.gsfc.nasa.gov/planetary/viking1landata.html)

</comment><comment><USER5> Others might also find this History of Lisp at JPL (used on both spacecraft and rovers) interesting:

[http://www.flownet.com/gat/jpl-lisp.html](http://www.flownet.com/gat/jpl- lisp.html)

</comment><comment><AUTHOR> Father of Lisp was also Grandfather of the Mars Rovers!

<comment><USER6> And the name of the proposed rover was "Beagle"!

<comment><USER7> Unfortunate name for a Mars rover, in the passage of time at least

<comment><USER6> Made me wonder if Beagle 2 was in fact inspired by that robotic thing from 1964...

<comment><USER8> I saw a TV programme about this last week, it was named after Charles Darwin's ship - H.M.S. Beagle.

A bit of interesting reading here [http://www.beagle2.com/author/beagle2/](http://www.beagle2.com/author/beagle2/)

<comment><USER6> Yes, I know, but I mean maybe there was a hidden meaning to it.

</comment></comment></comment></comment></comment></comment><comment><USER9> I'm surprised he recommended a time interrupt of around 1000 Hz, for a machine with microsecond memory cycle times.

</comment><comment><USER10> It's got some Carl Sagan in it. Very good find.

</comment><comment><USER11> Great vision from a great man.

</comment><comment><AUTHOR> Hey, HN Admins, is it really necessary to micro-manage the titles?! I had "by John McCarthy" (which is highly relevant, and in the next line in the doc)! It's just a bit prissy to have to have the titles your favorite way all the time. Please stop it, and if you need to micromanage peoples posts, you should be working for Wikipedia. Yeah, yeah, I know ... OFF TOPIC!

<comment><USER12> I know it feels like prissy micromanaging when your title is changed, but what you're really asking here is for us not to do our job. Having titles be neutral and (to use pg's original word) bookish is one of HN's key features and a far bigger deal than it might seem. If we didn't maintain that, HN would go to seed.

There are important principles behind everything we do with titles. In this case the principle is that HN works better when the emphasis is on content over personalities, so we edit out most author names and/or celebrity names in titles. This has been consistent for a long time:

[https://news.ycombinator.com/item?id=7518157](https://news.ycombinator.com/item?id=7518157)

[https://news.ycombinator.com/item?id=7668408](https://news.ycombinator.com/item?id=7668408)

[https://news.ycombinator.com/item?id=7950730](https://news.ycombinator.com/item?id=7950730)

[https://news.ycombinator.com/item?id=9671822](https://news.ycombinator.com/item?id=9671822)

[https://news.ycombinator.com/item?id=9919304](https://news.ycombinator.com/item?id=9919304)

[https://news.ycombinator.com/item?id=12573986](https://news.ycombinator.com/item?id=12573986)

<comment><AUTHOR> Yes, fine, but most of the point of this particular post was that it was John McCarthy, who is the father of Lisp. Otherwise, as someone said, it's just old flaming about mars landers. Moreover, if you take all personality out of science, you're doing science a disservice.</comment></comment></comment>


See How the World's Most Polluted Air Compares with Your City's - <AUTHOR> https://www.nytimes.com/interactive/2019/12/02/climate/air-pollution-compare-ar-ul.html <comment><USER2> This barely works on a mobile as there are so many different scrolling areas. You'd think mobile UX would be top priority these days.</comment>


Prizify – turn your things into prizes - <AUTHOR> http://prizify.co

<comment><AUTHOR> Starting out a new side-project. Looking for feedback!</comment>


Diary of a Diary – Building My First iOS App - <AUTHOR> https://medium.com/@andrewv/diary-of-a-diary-336a2f5b58b6

<comment><USER2> Loved this. Some really interesting design ideas there - I quite liked the icon-driven one with the week's worth of timelines. Since I don't lead a very busy life (at least with regards to events) I think something like that would work quite well for me, but I get how it would turn into a nightmare quickly for people with busy schedules.

<comment><AUTHOR> Thanks! Looking at implementing something similar as a week view for the app.

</comment></comment><comment><USER3> This was very interesting, thanks for writing it up! And I have to say I'm thoroughly impressed by the end result, looks fantastic!

Do you have anything planned to pull in data from the iOS calendar? Probably wouldn't be easy to work out how to fit this with the idea of possibly syncing timeless events back as well. I love your app's visuals but not so much the idea of manually keeping two calendars more or less up to date.

<comment><AUTHOR> Cheers!

Nothing planned at the moment, but I've been thinking about it. Hard to sync events with times into a diary where there is no concept of time. Even harder to go back the other way.

</comment></comment><comment><USER4> This was an interesting read, thank you. Did you do much research around the pricing and if so what prompted the final choice?

<comment><AUTHOR> Hi Dan,

I didn't do too much research to be honest. As a beginner, in-app purchasing looked a bit daunting, so I decided to start simple with an up-front cost. I chose the Tier 2 price so I can run promos to the Tier 1 ($0.99) price from time to time.

Down the track I might look at making it free with in-app purchase or something though.

</comment></comment><comment><USER5> The problem with all these apps is that you have to feed the data, which is not optimal in a mobile phone using the keyboard. So most of the times it's an overkill (loosing 5 minutes everytime you need to set up a reminder)...

I use these tools either as a small addition to my notebook, but everytime I tried to use them exclusively, I got burned.

</comment><comment><USER6> This is very good! I have a similar but tangential idea that I need to get built - good to see such a successful concept and execution.

The running icon looks really weird though!

<comment><AUTHOR> It does look a bit weird doesn't it!

</comment></comment><comment><USER7> nice app, did you use any UI libraries that you found useful while building the app , esp for the flat UI and calendar ?

<comment><AUTHOR> Hi kadder,

No I didn't, except for the Twitter-designed emoji and a few icons from an icon pack I purchased. I looked at many libraries for the month view but I ended up just making it myself so I could control exactly how it looked and felt.</comment></comment>


Elon Musk Interview – NPR Marketplace - Rick-Butler http://www.marketplace.org/topics/tech/corner-office/teslas-elon-musk-cars-design-and-those-falcon-doors <comment><AUTHOR> I really hope he can get SpaceX back on track this year. If they have another failure we'll see an endless stream of stories about how Musk should have known better than to split his efforts over two companies, and how rockets that don't cost a billion dollars can't possibly be safe.

Tesla... well, we'll see when the Model 3 comes out. That will be the dividing line between the producer of overpriced toys for rich people (and Norwegians) and a maker of mass market cars.</comment>


Dart's Macro Language - <AUTHOR> https://docs.google.com/document/d/1-We05W0xsd5hTWGsTDCY6pibf2EmmTAsm-4EhIFZoOA/ <comment><USER2> I disagree that Dart's code transformers are comparable to Macros- their intent is runtime optimization- take valid code which runs fine in the VM and optimize it for dart2js compilation.

This feels more like an advanced compilation feature than macros which are typically used to encapsulate a set of complex operations.

<comment><USER3> Code transformers are more general than macros and I focused on one way to use them. I disagree that they're an optimization in this example, since the original code isn't being transformed but rather overridden with a separate implementation. It's more like overriding a method in a subclass; the intent is probably for the implementations to have equivalent behaviors, but the details differ and there can be bugs.

Just like when a method is overridden, the reader should be able to see that there are multiple implementations and understand how they work. If you want to understand performance, you need to look at the production implementation.

</comment></comment><comment><AUTHOR> Related:

Notes from last week's DEP (Dart Enhancement Proposal) Meeting [https://github.com/dart- lang/dart_enhancement_proposals/blob...](https://github.com/dart- lang/dart_enhancement_proposals/blob/master/Meetings/2015-05-06%20DEP%20Committee%20Meeting.md)

</comment><comment><USER4> This reminds me of Turbo Pascal, where certain runtime functions can take variable arguments, yet the language does not allow defining such. It felt like magic.

Abother example is lisp, and yes lisp has the ultimate macro language (scheme, cl, clojure), and yet in Common Lisp there is the notion of "open coded" \- certain builtin names are known to the compuler/interpreter and can do also magical things. That to be said certain implementations of C/C++ also have them.

</comment><comment><USER5> Sort of lost interest in Dart since they dropped the idea of integrating the VM into Chrome.

<comment><AUTHOR> imho it makes sense to focus more on further improving dart2js to ensure it works really well across all JavaScript virtual machines and to make interop with JavaScript & TypeScript super smooth.

The Dart VM (as well as the Observatory) are fantastic. At Blossom ([https://www.blossom.co](https://www.blossom.co)) we currently use the Dart VM for command line tools but we're looking into using it on the server side as well.

I guess you were especially interested in the performance improvements that the Dart VM could bring if it was added to Chrome? I expect that we'll also see performance improvements for dart2js as JavaScript runtimes become better compilation targets (e.g. SIMD.js, BigInt, SoundScript, …).

The interesting thing here is that the Dart team can focus on other areas like …

* the standalone Dart VM

* fletch (an experimental mobile optimized runtime)

* Observatory

* async/await

* libraries (e.g. the new `test` package)

* analyzer (used for semantic code completion & warnings and powers IntelliJ, Eclipse, Sublime, Atom (soon), DartPad see [https://dartpad.dartlang.org/](https://dartpad.dartlang.org/))

* …

and many other things in the meantime. Getting the Dart VM into Chrome and have it play nicely with v8 is not trivial.

<comment><USER6> When there is no Dart VM in the browser I honestly don't see any advantage over TypeScript. Two VMs inside each other (with two garbage collectors) will always be slower and use more memory than just one. Additionally, you always need to ship the runtime with all your scripts. You also have to use FFI to interact with Javascript. All the advantages over plain JS you mentioned above are also present in TypeSctipt (or not needed).

There is also a nice discussion about TypeScript and Dart here: [https://www.youtube.com/watch?v=5AqbCQuK0gM](https://www.youtube.com/watch?v=5AqbCQuK0gM)

<comment><USER7> > Two VMs inside each other (with two garbage collectors) will always be > slower and use more memory than just one.

Is that how it works? I just assumed it would compile to JS and just use the JS garbage collector.

<comment><USER8> It does compile to JS and use the JS garbage collector. The posting you're replying to is very misinformed.

<comment><AUTHOR> As far as I understand you are also less likely to run into unpredictable performance (runtime bailing out) scenarios using Dart + dart2js.

</comment></comment></comment></comment></comment></comment><comment><USER9> He really means macros similar to the C pre-processor?

Dart is a modern dynamic language. Why should it need C-like macros?

<comment><USER8> No, they're not C-like, as mentioned they're AST transforms instead of textual substitution.

</comment></comment><comment><USER10> Google, if you're listening, get behind gopherjs. Embrace golang's minimalism. Pare down your WPL rather than tack on ever more features. Learn from your successful projects.

<comment><USER11> what is WPL? playlist?

<comment><USER10> Web Programming Language. "Dart is an open-source Web programming language..."

[http://en.wikipedia.org/wiki/Dart_%28programming_language%29](http://en.wikipedia.org/wiki/Dart_%28programming_language%29)</comment></comment></comment>


Found at Auction: The Unseen Photographs of a Legend that Never Was - <AUTHOR> http://www.messynessychic.com/2013/02/18/found-at-auction-the-unseen-photographs-of-a-legend-that-never-was/ <comment><USER2> Could someone take me through how this John Maloof fellow suddenly has all of the copyrights to these photos?

Clearly the photographer would never have sold these photos and the copyright term would not have expired. The photos would be in the "lost or stolen" category wouldn't they?

If anything at all, they should be (in a perfect world, I know copyright doesn't work this way) public domain if no heir steps forward to claim them.

<comment><USER3> He owns the negatives. I don't think the article discusses the copyright.

</comment></comment><comment><USER4> I was one of the early backers in the Kickstarter project, Maier's photography is mesmerizing, although I know nothing about photographs. I don't think they've done a very good job with handling the collection, though. Only a handful photos are available online. The prints are few and are very expensive. I recently bought the book and found both the print quality (all photos had a weird sepia tone, see Amazon comments for more details: [http://www.amazon.com/Vivian-Maier-Street- Photographer/dp/15...](http://www.amazon.com/Vivian-Maier-Street- Photographer/dp/1576875776)) and editorial content (no context for the photos, just a skimpy Introduction) not very good.

Still, overall I think John Maloof has done a good job in publicizing Maier's work.

</comment><comment><USER5> I submitted this 2 years ago but it didn't catch:

[http://lens.blogs.nytimes.com/2011/01/07/new-street- photogra...](http://lens.blogs.nytimes.com/2011/01/07/new-street- photography-60-years-old/)

<comment><USER6> Thank you!

</comment></comment><comment><USER7> I wonder, is it possible that something like this may happen after beginning of the internet era?

Like this. Year 2050, some guy accidentally discovers an abandoned site, which is created in 2010. There is a blog, which sparks this future anonymous guy's interst. The guy discovers a link to instagram on this , and then finds out that this website was quite popular back in 2010s, but gone defunct in 2020s. The full photo archive is available though. Curious, this guy downloads the whole archive and encounter amazing photo collection of cats and food on this account. The copyright law is different in 2050, so the guy decides to sell pictures on an world-wide digital auction...

Or maybe it will be no different: a real estate agent finds a small box filled with SD cards and then sells it on a local auction.

</comment><comment><USER8> This is pretty confusing: "John Maloof purchased a box of never-seen, never- developed film negatives of an unknown 'amateur' photographer for $380 at his local auction house."

If they were negatives, they were developed. Was this undeveloped film? Or do they mean "never- _printed_ negatives"? How would they know?

And the illustration above this text is a bunch of Kodak _slide boxes_ , not negative envelopes. I never got negatives back in boxes like that. So I'm confused about what is what here.

Nonetheless, the photos are wonderful!

<comment><USER9> The trailer notes that many of them were in film cans, undeveloped.

</comment></comment><comment><USER6> Vivian Maier seems like an extraordinaire photographer. And John Maloof ("Maloof collection") seems like an extraordinaire douchebag.

</comment><comment><USER10> Those were some incredible sample photos. It would be amazing to see a larger selection of them.

</comment><comment><USER11> Interesting, but I wish the author would decide if the name is spelled Vivian or Vivien. I also wish the author had said _why_ she was so important, as I know nothing about photography.

<comment><USER12> It's a bit of an exaggeration I think. Vivian Maier is tremendously talented to be sure, but "quite possibly the most important street photographer of the 20th century" is a preeeetty big leap. "Top street photographer of the 20th century" means you're going toe to toe with Henri Cartier-Bresson, Robert Frank, Elliott Erwitt, Daido Moriyama, Bruce Gilden, and a slew of others.

What does separate her from your average Flickr user is her technique and her knack for catching the Decisive Moment.

Go back and look at some of the pictures in the article. Now imagine having taken that photo 0.2 seconds later, or earlier. How many of them would've been as good? How many would be completely different and completely mundane? Knowing, seeing, and capturing the Decisive Moment is very, very hard, especially in the 50s and 60s before the advent of autofocus, auto-winding, and auto-everything.

She's also compositionally very competent. This is something that's harder to appreciate unless you're into photography yourself and have seen a large amount of work. Unlike most amateur street photographers, her photos are frequently not about the subject, but rather interesting light, textures, and geometry, in addition to the subject matter.

<comment><USER13> This is a cool comment. Thanks for writing it. I wouldn't have looked as carefully at those photos if you hadn't written it.</comment></comment></comment>


Man allegedly shoots down neighbor's drone with shotgun - <AUTHOR> http://www.digitaltrends.com/cool-tech/new-jersey-man-allegedly-shoots-neighbors-drone/?utm_source=o1&utm_medium=cpc&utm_campaign=o1

<comment><USER2> First thought: Hooray for the shotgun guy!

Second thought: why arrest a guy for simple property damage? A hundred dollars damage or so. Isn't that a civil case?

<comment><USER3> The article says they arrested him on some charges related to the gun and criminal mischief. It also says _In addition the criminal charges, the owner may choose to pursue financial compensation for the destroyed drone._

So I wonder how you decided they arrested him for simple property damage? Do you mean to obliquely dismiss the other charges?

<comment><USER2> Whoa there Max; as I wrote above, it was just a passing thought. Didn't mean anything but that.

Also around where I live, shooting your shotgun isn't any kind of offence. The whole article smells of hoax.

<comment><USER3> That's fine. My point was that he was not arrested for property damage.

If you want to rephrase it and say _How come discharging a shotgun over property you don 't own is criminal when all it does is a little bit of property damage?_, then I'm not left with anything to be pedantic about.

<comment><USER2> Thanks. I noticed there's nothing in the article that says where the shotgun was discharged; nor where the drone was when it was damaged. Also, magically the drone owner was able to point out where the shotgun was discharged. That is notoriously difficult to do - echoes, shotgun noise similar to car backfires etc.

I think its all made up.

<comment><USER3> I'm comfortable with the assumption that the drone operator was close enough to the drone to discern betwixt a gun discharge and other loud bangs. It does say they were focusing the drone on a house under construction (and even if they were flying all over the neighborhood, they would still likely end up keeping a short distance to the drone).

Edit: I'm also comfortable with the assumption that the police took the location of the firing and such into account when they made the arrest.

</comment></comment></comment></comment></comment></comment><comment><USER4> I'm afraid this is going to be my dad, if anybody ever flies a drone low over our family farm...</comment>


Spanish Hacker Claims this Exploit Returns Facebook Passwords - <AUTHOR> https://www.facebook.com/chespier.moranseverino.7/posts/1435336293368456?notif_t=comment_mention

<comment><AUTHOR> I hope this isn't stupid linkbait and apologize in advance if it is and I got pranked. An Argentinian programmer friend forwarded this to me, which is why I am posting it here for comments. He seemed to believe it was legit but sent it out as an alert rather than commenting on the script itself. Right now I'm reading through the script to check if there is reason to believe it's legit or if this is some kind of prank.

Translation:

Want to "hack" \- get the password of the account of someone on Facebook? Exploit this vulnerability before they realize and remove it, it's working RIGHT NOW!

1\. Use Google Chrome

2\. Get the person's profile

3\. Then press the F12 key

4\. Then go to the section / tab that says "Console"

5\. Copying and pasting the following code <view down>, press ENTER and presto! Pop-up window will open with the password of that person!

<comment><USER2> Of course it is a prank. It does not tell you the password, it just likes a page of their choice and tags all your friends in the comments.

<comment><AUTHOR> Sorry I'm incredibly gullible today

</comment></comment></comment><comment><USER3> "This content is currently unavailable"</comment>


Web Sockets Now Available In Google Chrome - <AUTHOR> http://blog.chromium.org/2009/12/web-sockets-now-available-in-google.html

<comment><USER2> I can abandon Flash sockets if this becomes mainstream.

</comment><comment><USER3>
      ws.onclose = function() { // websocket is closed. };

someone reformatted the code without checking...

</comment><comment><USER4> Great, with Apple, Mozilla and now Google innovating in the browser sphere, it looks like browser will be evolving at a much more rapid pace.

Gah, let's hope Microsoft gets some vision for IE too. (or ditch it like Bing ditched Live)

<comment><USER5> I agree, but I'd rather have users get some vision. You'd be surprised how many people still use IE6, even though Microsoft wants them to upgrade. Less- savvy users don't switch unless:

1\. They have to (meaning their current methods no longer do anything or the software or hardware no longer works).

2\. Someone more savvy does it for them and teaches them the new software. Usually this happens after #1.

Unfortunately, I don't know if there's much we can do about this kind of user. We shouldn't (and won't) have to hold ourselves back because they refuse to upgrade.

<comment><USER6> In addition to what danielrhodes says in his reply about corporate IT departments having legitimate reasons not to upgrade - I'd like to add that my biggest pet peeve is when someone asks me to see if I can fix their computer, and it's obvious that every IT-enthusiast before me has insisted that this person switch to -INSERT BROWSER HERE-. I helped a gentleman last week that used MSN because he found it intuitive, but had Firefox, Opera, Chrome and IE installed. Then there was the mountain of anti-spyware software everyone had installed. After uninstalling the browsers he didn't like or use (despite them being "better" according to most IT professionals) and uninstalling the spyware blockers, his computer worked just fine.

We need to remember that our job is to make the computer better for other people - not just ourselves. I'm amazed at the rate of development I've seen in browser technology, but let's not forget the millions of people that just want to get online and send an email. If we rush to upgrade everyone to "better" technology - we might end up ruining their experience.

<comment><USER7> My dad was in a similar camp. It had NOTHING to do with the browser, and everything to do with the yahoo! branded logo that SBC had installed for him. To him that logo __is __the internet.

For a host of reasons I ended setting him up with Chrome, imported his bookmarks, and changed the shortcut. Now the magic Yahoo! logo opens Chrome instead and he couldn't be more trhilled.

</comment></comment></comment></comment><comment><USER8> Are there any examples of web sockets live right now? I'd like to see it in action...

</comment><comment><USER9> As the saying goes: "that's awesome, if only it worked on IE6..."

<comment><USER10> If you care about IE6 these days, and aren't selling to corporate users forced to use it, then you're doing something wrong.

Also, you can just enable it when it's available, and fallback to comet etc when it's not.

<comment><USER11> I think the main issue here is not IE6 but all the modern browsers (FF 3.5, Safari 4, IE8) that do not support this feature. Targeting Chrome users only is not that appealing.

<comment><USER12> The feature was added to webkit so both safari, chrome and other will get the feature and so is firefox <https://bugzilla.mozilla.org/show_bug.cgi?id=472529>

</comment></comment></comment></comment><comment><USER13> I've implemented a Ruby version of WebSocket server (which is based on EventMachine and yet very experimental) - <http://github.com/laktek/Web- Socket-Examples>

</comment><comment><USER14> The main challenge with bidirectional browser communication is really in the backend. It does not scale nearly as easy as easy as RESTful HTTP requests.

I'm sure Google has developed some serious technology to address this while building Wave. Wondering if some of it come to Google AppEngine anytime soon?

</comment><comment><USER15> > The protocol is not raw TCP because it needs to provide the browser's "same- > origin" security model. It's also not HTTP because web socket traffic > differers from HTTP's request-response model.

If Websocket has something like crossdomain.xml does that mean we can build p2p applications on that?

<comment><USER16> No - it doesn't have a passive mode.

</comment></comment><comment><USER10> Does the WebSocket spec allow for gzip/deflating streams as well? I can't see anywhere if it does or not.

<comment><USER17> A quick Google search (<http://www.google.com/search?q=websocket+compression>) revealed that it's not supported yet, however it might get added in a future version: [http://www.ietf.org/mail- archive/web/hybi/current/msg00789.h...](http://www.ietf.org/mail- archive/web/hybi/current/msg00789.html)

</comment></comment><comment><USER18> I'd like to see an Erlang implementation of a WebSocket server, anyone know if this has been attempted?

<comment><USER19> Not sure if there's one in erlang, but go has a websocket server built into the standard library:

<http://golang.org/pkg/websocket/>

</comment></comment><comment><USER20> google confuse me

how was this implemented before local storage? every current version of browsers supports it apart from chrome (and opera?)

saying that it is pretty awesome, web sockets have been a long time coming</comment>


Getting around for startup school.  - <AUTHOR>

Hey, for those that have been to startup school, do you generally stay around campus when going out with groups or is a mode of transportation other than my two feet more convenient? It'll be my first time in the area and will have no car.<p>Thanks and hope to see some of you there. <comment><USER2> maps.google.com will show you the many different methods of transport you can take (such as train, bus, high-speed rail, subway, trolley, car, and walking.)</comment>


Show HN: Lescript – Simple PHP client library for Let's encrypt - <AUTHOR> https://github.com/analogic/lescript <comment><USER2> Thanks, nice looking code that is pretty darn clean. It is always refreshing to see an application that is as self contained as possible without all the multitude of required dependencies.

</comment><comment><USER3> Mate, seriously, use composer and packagist.

<comment><USER4> Well, composer needs to be installed and present on the system. As the author states, minimal dependencies.

Hell why doesn't everyone follow this? Instead I see projects with five or more build tools needed to deploy a website.

A single small website depending on... PHP/MySQL (obviously), Symfony, composer, npm, grunt, bower, ant, vagrant, docker. And well, language dependencies not needed by the website itself, just for the buildtools: python, nodejs, ruby, java plus virtualbox for vagrant!

All of this for a setup that can be (with proper documentation) replicated by hand and from scratch in <10 minutes (Debian, not RPM-based crap). The fuck are you smoking, people? Took me even WITH documentation about all those build tools 30min to get running where a simple git clone should be all that's needed. Bonus side effect: if you need to hack stuff in your deps, it's easier to ship them in your repo than if you use composer and friends.

I'd coin a new term for this: tool-sturbation.

<comment><USER3> You just don't get it :)

Whoever wish to include manually this package and use it like if it was 1993 will still be able to do by cloning this repo and including the file by hand. On the other side, 99% of the sane PHP that has been written in the last few years including fairly large projects, WILL use composer to manage external dependencies as it's probably the single project who made PHP a modern language.

So, what are the cons of releasing this as a package?

I'm not even starting the conversation where I'm trying to convince you that using a dependencies manager is always a good thing to keep the codebase sane and clean - even for small scripts. That "<10 mins thing" is an empty claim as you have to do a boilerplate once and can use it all the time (unless you are the kind of programmer who is not 'good-lazy' but rather 'bad-lazy' and love to re-do its job by hand over and over)

<comment><USER5> "99% of sane PHP" is not the audience here. There are millions and millions of shared hosting accounts running basic cPanel + PHP + some minimal form of SSH access - those are the people that won't have a way to install LetsEncrypt otherwise, except for the ability to execute some random PHP file in their SSH home directory. Step out of your walled garden and buy yourself a crappy $5/mo hosting account, and you will see why the author's choices are a blessing in disguise.

<comment><USER4> A pity you're being downvoted. People forget not everyone has the bucks to shell out for even a webhost with SSH enabled.

<comment><USER6> $5/mo shared hosting plan where you're walled and can't do anything you want, or $5/mo VPS at Digital Ocean where you have SSH enabled by default and can install anything you want.

of course, people don't have the bucks to shell out for that. I get it.

<comment><USER4> > of course, people don't have the bucks to shell out for that. I get it.

they don't know better. Don't forget what the base of most Wordpress and Drupal setups is - people with barely enough skill to do a FTP push, download and install a theme from Themeforest and done.

or they can't pay because nearly every US startup/service accepts credit cards only (which is not widespread in Europe) and no one really trusts Paypal.

<comment><USER6> > they don't know better. Don't forget what the base of most Wordpress and > Drupal setups is

Considering the audience of HN, I am astounded by the amount of people who complain about a PHP package being on Composer, yet they all use NodeJS, Go, and other things that require more than modern PHP and Composer does.

</comment></comment></comment></comment></comment></comment></comment></comment><comment><USER7> From README: If you prefer more robust and clean library see excellent [https://github.com/kelunik/acme](https://github.com/kelunik/acme)

<comment><AUTHOR> Huge obstacle from using kelunik lib is PHP7 and need of external libraries.

<comment><USER8> What's wrong with external libraries? They're a mere `composer install` away.

<comment><AUTHOR> Nothing in general, its about choice...

<comment><USER8> So this is a solution looking for a problem, then?

</comment></comment></comment></comment></comment><comment><USER9> Thanks, seems like every day we get a shorter version. This is actually quite useful since I have PHP on most system but not all the dependencies that some of the python versions require.

I'm hoping to see a single file bash script at some point :)

<comment><AUTHOR> Actually there is single bash file client [https://github.com/lukas2511/letsencrypt.sh](https://github.com/lukas2511/letsencrypt.sh) :)

</comment></comment><comment><USER8> > public function signDomains($domains)

Should this have an `array` type declaration? You used it on another function.

</comment><comment><USER10> What is Let's encrypt exactly? I thought it was just free SSL so why do I need to touch my code at all?

<comment><USER11> Let's Encrypt certificates expire after 30 days. The reason for that is to mitigate problems with old certs and to encourage automation so there's less danger of a server being left unsecured because an admin forgotten to update something. This sort of library is aimed at [sys|web|dev]ops rather than developers per se.

Ultimately services like LE will get to the point where certificates will expire in _hours_ rather than days, so a problem like Heartbleed will 'self- heal' because certificates can be fixed and servers will automatically get the patch within a day.

<comment><USER12> 90 days.

</comment></comment></comment><comment><USER13> How is this used to renew? I don't see a function related to renewals.

<comment><USER14> What would be the difference between "renewing" and running the script twice? There's no distinction made when I buy certificates from another CA.

<comment><USER13> This is probably my misunderstanding of how it works. Pardon what's probably a silly question, but do all certs work the same way (i.e., certs are never "renewed" but just reissued with new dates)?

<comment><USER15> _> certs are never "renewed" but just reissued with new dates_

This is correct.

<comment><USER16> The question arises. How Letsencrypt handle reissued certificates under one domain? Guess if I reissue million times for a specific domain, does this override the previous certificates on their database or does it create valid certificates each time I reissue? Thanks for the script.

</comment></comment></comment></comment></comment><comment><USER17> I was going to star it, until I saw the advertisement in the README.md.

<comment><USER8> Putting a line or two about why you developed a library doesn't seem unreasonable.

<comment><USER18> I'm actually happy about it in most cases, as it shows that it's likely to be maintained, as it has a existing use outside of "Hey, I wrote some code!"</comment></comment></comment>


U.S. Beer Industry Blames Trump Tariffs for 40k Job Losses - <AUTHOR> https://www.bloomberg.com/news/articles/2019-05-23/u-s-beer-industry-blames-trump-tariffs-for-u-s-jobs-decline <comment><USER2> So, uh, a merger of the two largest beer companies in the world couldn't be at fault here, could it?

Nah. Let's blame the guy we don't like instead.

<comment><USER3> Citation?

I don't understand how there could be that many jobs eliminated by a merger while the beer output remains the same.

It also often takes years for mergers to completely eliminate redundant employees.

It's hard to believe any manufacturing industry org has an anti-Republican political agenda.

<comment><USER4> > I don't understand how there could be that many jobs eliminated by a merger > while the beer output remains the same.

This is what a merger is for. You use it to enhance "synergy" (I hate that I have a legitimate for this now) and in so doing can fire as many people as possible to maintain production.

> It also often takes years for mergers to completely eliminate redundant > employees.

It is possible to prepare for a merger by pre-emptively selecting/preparing a dossier (if that is necessary, this is the US so probably not) so you can fire them as soon as all the paperwork clears.

> It's hard to believe any manufacturing industry org has an anti-Republican > political agenda.

I don't see why, but I'm also not at home in this political setting.

<comment><USER3> I know what merge are for and how they work.

I'm skeptical of the number. Even half of 40,000 is a huge number for a company with ~170,000 employees, especially in manufacturing.

<comment><USER5> Cutting almost 25% of the workforce due to the merger is at least theoretically possible.

Cutting 25% of the workforce because aluminum process went up (and beer consumption fell 1%) certainly looks like too much of a stretch.

</comment></comment></comment></comment></comment><comment><USER6> At 'retail' spot prices, Aluminum is around $1,885.29 a metric ton.

There are about 0.5714 ounces of aluminum in a typical can of beer.

That is, there is around $0.03 of Aluminum in each can. (Actually, it is a lot less as, obviously, canning companies buy Aluminum in bulk.)

Average can of beer is $1.15.

Thus, Aluminum makes up -- at most -- 2% of the price.

Assuming the "10% tariff" is completely passed on to the consumer, the increase in price would be -- wait for it -- less than a penny.

In short, the article is complete BS.

</comment><comment><USER7> Yet the end of the article says that beer drinkers have been switching to wine and spirits. I don't think I trust the industry to be unbiased when explaining it's layoffs. Having worked for a corp that had a huge annual layoff season - it's all about saving face.

</comment><comment><USER8> It's going to be wild to see what happens come Q1 2020, after everyone has had a chance to publish their 2020 price lists and push these tariffs down the supply chain.

</comment><comment><USER9> Craft beer taste better anyways.</comment>


X-37B Military Space Plane Lands After Record-Shattering Secret Mission - <AUTHOR> http://www.space.com/27427-x37b-space-plane-air-force-landing.html

<comment><USER2> I found it interesting that it lands at ~300mph, which is twice as fast as a commerical airliner and faster than the Shuttle which lands at ~220mph. The benefits of being unmanned.

There is also no way the primary mission is deploying additional payloads. No reason for it to stay in orbit that long unless it's being used as a steerable intelligence platform.</comment>