HN user

cookerware

36 karma
Posts8
Comments17
View on HN

I did it because a new webapp deployment costs nothing, no extra work involved at all with DO, just add a snapshot and ssh key to a new droplet. If something needs to be consolidated, I just use DO api and paramiko to ssh into each droplet and run new commands. If it's updating the webapp across all customers, it's a matter of issuing restart command to all the droplets via API.

curious who do you use as a host for 32 cores with ton of ram? I also favor this vertical scaling over splitting over multiple servers and replicating database with a load balancer sitting on top. Best to deal with one point of failure, if you need network concurrency up the ram and bandwidth. RAM should be easily upgradeable up to a descent double digit gig figure. For disk space and backup.

my current setup on DO, I would like some inputs.

website hosted on 1 droplet. additional 1 droplet per every customer is deployed through Stripe and DO api.

DO let's you save a snapshot and load it to the droplet. I have a snapshot that is basically a copy of my 'software'. It's a LAMP stack with init script to load the webapp from git repo.

Customer logs in at username.mywebapp.com

The beauty of this is that I never have to worry about things breaking or becoming a bottle neck. if one customer outgrows themselves, they won't affect other resources. It has linear scalability, new customers, add a new droplet. I don't need to worry about writing crazy deployment scripts although I use paramiko to ssh in to each server when I need to get dirty.

The main website is mostly static content. I could host it even on Amazon S3 but currently using cloudflare.

Updating the product code requires me to restart the droplet instance. However, I test things out on another staging droplet. Once things work on there, I use the DO api to iterate through all the customer droplets and do a restart.

there's few different categories of FU money each with increasingly lower probability

1 million dollars: doable but very hard. you can finally buy that crack shack in vancouver, bc

10 million dollars: could be doable depending how you got to your first million. if it's scalable operation, no problem.

100 million dollars: continued growth from previous operation with compounding returns or have been part of a successful startup that was sold.

1000 million dollars: founder/co-founder of a company that was sold previously to a very large search engine or social network.

10000 million dollars: own majority equity in a very well known public company, inherited.

100000 million dollars: run a country that produces oil or cocaine as it's most popular exports. You can't have any competition around. launder it excessively.

10 million dollars after taxes so I'm guessing the actual amount is higher, possibly around 15 million dollars. on top of that 300k a year will be subjected to taxation, you will end up with 188k a year, not quite the 300k. you would need around 450k a year and after taxes, you will end up with 300k. to be able to produce that much you'd need about 15 million dollars after taxes. so in reality you'd need about 20 million dollars.

20 million dollars, would generate 300k after taxes if invested in bonds. from the 20 million, you'd end up with 15 or 14 million dollars after paying taxes.

so 20 million dollars is what one would need to target for.

however, note that you'd need to live in a large mansion that's already paid for and maintenance and expenses, property taxations being paid, I'd put away 30~50k for upkeep. You will probably have two kids on average so it will be another 100,000 to support them.

21 million, seems to be the true 'FU' money. After that leave off 400,000 after tax a year in money.

21 million is a staggering figure for someone starting out. I don't even know if I will get to one million.

Well, that mechanism has not worked well. Especially, someone with a large reputation point appears to be exempt and there exists elitism amongst it's members.

Largely, Stackoverflow has now become something like wikipedia, just an index of questions and answers with zealous moderators and elitists and no longer a community.

I remember being ridiculed for having more questions than answers. It's skewed to the idea that answering and contributing your thought is of more important than the question generating such thought.

Regardless, Stackoverflow has fell off it's high place.

are there any other JavaScript to native compiler projects in the works? last time I heard there was llvm.js or something like that was doing the same thing as hyperloop.

holy crap!

I've avoided iOS because Objective-C scared me and I stuck to Android. I have some pending questions before I use this however.

1) How much code share can there be between Android and iOS? Is it just limited to business logic like Xamarin?

2) Can you use an Android game engine, create the game in Android and build for iOS?

3) In order to create and run iOS simulator, do you need to be on the mac and have Xcode? Any way to do it on a non-Mac machine?

4) Can you use RoboVM to create Android and iOS at the same time?

Amazing stuff!

I remember a coworker telling me in a condescending tone 'this is how a startup runs, you break even and try to expand market share, burning investors cash and growing without profit' when I asked about how it is that our company that has not made any profit in the past 4 years serving enterprise customers is able to still be solvent. What if investors suddenly stop injecting cash? Financials would be negative in the first quarter.

I never understood the working models of growing at the sole expense of investors money. Because I don't know but last time I checked capitalism and free market still is king, and they always have a history of major market correction. When something's not efficient or something's offplace, market has a tendency to correct itself, in a big, unexpected, ruthless sort of way and we've seen this again and again, but history seems to teach people nothing.

this is a bit worrying, the news article claims that these are still active users regardless but as far as I know, I get random tweets from bots and strangers promoting their own thing and largely I don't have a very active engagement with Twitter.

What about BC? I signed a non-compete clause a while back and it says I can't work for any competitor startup or start my own in that niche. Apparently the non-compete extends for a year after leaving. It mentions I can't offer consulting or work for the competition. It's been a few years now, but I wonder what other dirty tricks they may have up their sleeves regarding this.

I want to start my own company in this niche and I can't do it because of the fear that they will sue me if I ever make it on their radar.

BC government also is not in the habit of protecting tech workers and cares more about tax revenues. Maybe I should move to Ontario or leave Canada all together.

HHVM 3.0.0 12 years ago

What server can I use with HHVM to get the performance boost claimed in the video? Does it have a built in HTTP server?

Are there any benchmarks proving that HHVM improves performance?

Can I get a better performance than my current setup of Nginx + uWSGI + Flask ?

I was also a software developer, not as successful but was living in a nice flat in downtown, but I ended up getting fired a few times within the year.

The first time it was smoking heroin and cocaine. Lasted about 2 months. I used to do it at work too because I was addicted. Shortly after getting fired, I smoked crystal meth to get through the heroin withdrawl. This is how scary heroin is, I was addicted after the second time I picked up. With the help of a marijuana dealer, I got clean after he cut off my heroin dealer. I'd call like crazy but he would no longer sell it.

I still remember laying on my bed on my 25th birthday, withdrawing from heroin, thinking how seriously I fucked up. It took a few months of feeling complete apathy until I began to improve. However, I still relied on tobacco and weed to get through the hard stuff.

Few more months later I found another job, higher paying and less stressful. However, I began drinking this time. Half a bottle of vodka everyday after work and smoking weed before and after work. I'd come over with a hangover everyday and I eventually couldn't keep this up for long.

Fast forward to now, I'm totally clean from any substance. I have absolutely zero fucking desire to repeat what has been a complete wreckage of my financial savings, losing my flat, and a waste of time.

What does worry me is the health effect it might have, especially the street drugs I took during this short period of time on top of the weed and alcohol. I'm alright now but I still can't wash myself of the guilt and the regret. However, it keeps me well away from it.

Looking on to the future, I am willing to be successful, and I realized that I can't do it with dependence on drugs and alcohol. I simply couldn't allow it to get in my way.