744 karma · joined Apr 15, 2010 (16y ago) · 104 submissions
Github: https://github.com/zmoazeni
comment 7y ago · link · parent
Previously, I saw his talk about generating mazes and it has always stuck with me. (Unfortunately that one wasn't recorded). Speaking as a developer, I have been writing code and solving problems professionally for so long that I have forgotten what it's like to just write code for fun. For me, and not for anyone else. Without any expectations or stress. And listening to him talking about rediscovering fun by exploring different ways to create mazes really clicked with me.
I've only recently gotten back into that, and it has been embarrassingly awkward to knock off the rust and put myself in the mindset of "Let's just do this because it could be cool".
I even bought his book on generating mazes. Not because I'm particularly into them, but to help exercise those sore muscles and I'm thinking I can perhaps feed on his passion. A coworker told me he also put one out about building ray tracers. To branch out beyond that, I've also begun putting together a list of fun hacks that interest me personally.
Now I say all of this, but I do think while time away from your day-to-day is very important (take some vacation time! spend time exploring other hobbies!), even after a significant time away, when you come back to your day job you may still be unmotivated/numb/demoralized. I'm hoping rediscovering the fun in what I do helps put things in perspective more than just listening to others preach. Helps rekindle the feelings and reasons why I pursued my career in the first place beyond just making a living.
Good luck. I wish you the best.
Edit: OH! I completely forgot. Make sure to prioritize the easy-to-ignore-things. Spend time with friends/family. Exercise. Make sure you're getting enough sleep.
Those sound so simple, but I strongly believe it's incredibly tough when you ignore those basics.
comment 8y ago · link · parent
You need to also realize that database server itself takes a load hit when it kicks off these operations on large tables. I'm not sure on PostgreSQL, but I know sometimes you can not immediately cancel these operations in the middle on MySQL (it also takes time to revert).
With gh-ost you have full control over how fast this process goes and can even pause/resume it if you're experiencing issues.
But let's say it IS instantly cancelled. You're also ignoring the fact that you will take the same hit on any replicas if this statement is successful.
Some production environments don't take kindly to having all replicas lagging as the replication thread is blocking on the DDL change. My team has the luxury of being able to have our entire production environment served by a single master server (though we avoid it as much as possible), but it won't be long before we outgrow that and require at least one up to date replica. Many teams are already in that situation and for that, gh-ost is a godsend.
comment 8y ago · link · parent
comment 8y ago · link · parent
This is wrong on a couple levels. First it doesn't copy the whole table: https://dev.mysql.com/doc/refman/5.6/en/innodb-create-index-...
However, it can take a while if MySQL is evaluating the consistency. But you can disable that with `SET FOREIGN_KEY_CHECKS = 0` which turns it into a metadata change (nearly instantaneous).
You still will need to check for violations, but you can do that in a more friendly-to-load manner, and of course will need to deal with any violations manually.
But that strategy is a good middle ground to all-or-nothing FKs.
Edit: Whoops, looks like I was wrong on the table-copy part. Per "Otherwise, only the COPY algorithm is supported." So it does copy the data when `FOREIGN_KEY_CHECKS=1` (the default)
comment 8y ago · link · parent
Also the linked post[3] in the readme hit us very close to home. We originally tried some of our migrations with pt-online-schema-change, which was great in theory but caused a lot of locking contention during the actual process.
I see many people hammering on the lack of foreign key support which is interesting to me. At some point, a database system grows to where relying on MySQL's Online DDL[4] "works" but not really with production load. I feel like a team knows when they need to bring in a tool like this.
The dev in me understands how wonderful FKs are for consistency. But the db-guy in me that has had to deal with locking issues recognizes FKs as a tradeoff, not dogma.
If you shy away from migrating your large or busy tables, or are scheduling frequent maintenance down times in order to migrate these tables, that's when gh-ost (and others) are appropriate to evaluate.
So for us it's not an immediate red flag that gh-ost doesn't support FKs. We just have to work around that limitation[5] because the alternatives are much worse.
For the record, we don't gh-ost all of our migrations. Only the ones that are deemed sufficiently large enough are gh-osted and those heuristics will change from team-to-team.
But as a guy who has had to deal with our database issues AND as a developer who doesn't want to be chained by a database design decision from a decade ago, I love the flexibility gh-ost gives us as we continue to grow.
[1] https://www.getharvest.com/
[2] https://dev.mysql.com/doc/refman/5.6/en/replication-features...
[3] https://dev.mysql.com/doc/refman/5.6/en/replication-features...
[4] https://dev.mysql.com/doc/refman/5.6/en/innodb-create-index-...
[5] https://github.com/github/gh-ost/issues/507#issuecomment-338...
comment 9y ago · link · parent
I don't work for GitHub but we had the same problems using pt-online-schema-change independently of their issues (lots of locking contention affecting the app negatively). We're finally moving to gh-ost for our large/risky migrations and so far it's amazing.
comment 9y ago · link · parent
comment 11y ago · link · parent
9.
Code Reviews at Harvest(techtime.getharvest.com ↗)
1 points · by zmoazeni · 12y ago · discuss
comment 12y ago · link · parent
As I understand it, as long as you use a library according to its stated API, you can do whatever you want with it and license the entire product under any license you choose. [1]
comment 12y ago · link · parent
I do think there is a subset of Haskellers who use category theory to prove certain ideas and they are able to easily express that in code. However I haven't found it necessary to understand the theory behind why something is sound in order to practically use their work in my projects. That says more about Haskell's expressiveness than the target audience to me.
Setting aside years of imperative (and also OO) programming and learning a different approach to solving problems has been the biggest challenge for me, by far. That's why I agree wholeheartedly with https://news.ycombinator.com/item?id=7687200
comment 12y ago · link · parent
Previously, I had more issues with conflicting version constraints which I think is more of an issue with library authors and not necessarily cabal itself.
comment 12y ago · link · parent
However, I don’t think this is a good use case. We can get around this problem in a cleaner and safer way by using the type system rather than subverting it.
15.
How we migrated our assets to S3 without any downtime(techtime.getharvest.com ↗)
2 points · by zmoazeni · 12y ago · discuss
comment 13y ago · link · parent
My initial opinion is that even though your SCSS code is consolidated, the resulting CSS code is still duplicated all over the place. To me, that is a code smell. Particularly when I need to debug from the web developer tools.
comment 13y ago · link · parent
Stay away from the RedundancyAnalyzer though. There be dragons.
[1] http://kschiess.github.io/parslet/
[2] https://github.com/zmoazeni/csscss/tree/ae2f22f4416bca35f903...
comment 13y ago · link · parent
[1] https://github.com/begriffs/css-ratiocinator and http://www.csstrashman.com/
19.
Csscss: a CSS redundancy analyzer that analyzes redundancy(zmoazeni.github.io ↗)
299 points · by zmoazeni · 13y ago · 43 comments
comment 14y ago · link · parent
That's pride talking. Pick and choose your battles. If you're going to pick this one, make it overwhelmingly compelling. I've never heard of this company, but my first impression is negative. Turn that around.
I wouldn't advocate ignoring it. I'd rather you make me love your company or hate it. Ignoring stuff like this is cop out.
Hell, doesn't Nikon have a camera in the $300 range? Even a response like: "We already picked the winner, and we don't have a budget for two cameras, but we were able to spring for Nikon Dxxxx" would be miles better.
Right now, the fallout, as in negative publicity, is pretty limited.
You're right. They were thrown a curve ball, and they can turn it into an opportunity to leave a positive impression on potential customers who have never heard of their product before.
comment 14y ago · link · parent
At what point does he-said/she-said matter for a company? How much is negative publicity worth to an early startup?
1) OP is completely legit, which paints JPEGmini in a bad light. Give him a camera and let it go quietly, and get some kudos for giving out two cameras.
2) OP is not legit, which with his compelling argument will still have people thinking something is fishy. Give him a camera and let it go quietly, and get some kudos for giving out two cameras.
For $850, I think winning the kudos would be far more important than a company trying to prove somebody wrong. Sounds like pride is getting in the way here. Chalk up the the drawing as a lesson-learned and figure out a less ambiguous way to deal with the next one.
24.
Podcast: Highs and Lows of Remote Work(wideteams.com ↗)
1 points · by zmoazeni · 14y ago · discuss
comment 14y ago · link · parent
Someone was asking me about my thoughts on static vs dynamic. And I realized that I have two reasons for my tests a) I didn't do something stupid like mistype a method or variable name and b) validate my logic.
Sometimes I think it swings 20/80 and others 80/20. But either way, I know that's why I gravitate towards integration tests in Ruby, and that some of them would go away if it were statically typed.
Even after coding in Ruby all these years, I'm still just as afraid of (and susceptible to) problems in a).
comment 14y ago · link · parent
Edit: related http://steve-yegge.blogspot.com/2006/03/math-for-programmers...
comment 14y ago · link · parent
I'm not saying your statement is wrong, but am I the only one who thinks something is wrong here? Are most startups worth 5-10M right after seed? I would say no.
Conservatively, I would tend to agree with the author. 2M is high for a company that only has seed money.
28.
Show HN: GitHub Repository Pushes Per Day(zmoazeni.github.com ↗)
1 points · by zmoazeni · 14y ago · discuss
comment 14y ago · link · parent
I'm a remote worker, so I have switched to tmux + console emacs (some guys prefer vim). That works much better than ScreenSharing and a typical GUI editor.
I've checked out wemux, but it didn't solve my pain-point which was the ssh setup at the remote end.
The bigger deal is not whether your team has the tools. But whether they use the tools. Co-located people may talk in campfire/irc/group chat, and some may not even log in. But remote workers depend on it.
comment 14y ago · link · parent
Speaking from experience on both sides of that coin (currently the remote-side). It stinks. Communication incentives are out of wack. Remote people feel isolated and missing out on conversations, whether needed for a project or just missing out on camaraderie. Co-located people feel the distance of the remote people, and they either make conscious inefficient communication choices to include them or continue with the confortable in-person efficient choices.
It's hard work to have a minority of your workforce remote. I believe that if the balance tips the other way, remote communication and coordination gets easier and more streamlined. Even if it's not fully remote or separate co-located teams.