Foie Gras, Served in 1k Restaurants in NYC, Is Banned
5 by frutiger | 0 comments on Hacker News.
Thursday, October 31, 2019
New top story on Hacker News: Ask HN: How do you organize and manage database migrations?
Ask HN: How do you organize and manage database migrations?
9 by anonfunction | 0 comments on Hacker News.
When building services that rely on relational databases, in my case postgres, what are some best practices and tools to help manage schema changes? We've been using migrations and doing it all manually but it's become a bottleneck and a little bit of a nightmare with multiple consumers of the database needing to make schema changes. Another concern is multiple environments, from local development to staging and production. We're using docker-compose for local development which runs the entire "full" schema and then I'm manually applying the migration files to staging and production before we deploy. I've looked at some projects like flywaydb[1] and liquibase[2] but both are not completely free and seem proprietary. Does anyone know of another open source system that could help manage database schema versioning and migrations? Thanks so much HN, this is something that I have been struggling with. 1: https://flywaydb.org/ 2: https://ift.tt/2o6cNlU
9 by anonfunction | 0 comments on Hacker News.
When building services that rely on relational databases, in my case postgres, what are some best practices and tools to help manage schema changes? We've been using migrations and doing it all manually but it's become a bottleneck and a little bit of a nightmare with multiple consumers of the database needing to make schema changes. Another concern is multiple environments, from local development to staging and production. We're using docker-compose for local development which runs the entire "full" schema and then I'm manually applying the migration files to staging and production before we deploy. I've looked at some projects like flywaydb[1] and liquibase[2] but both are not completely free and seem proprietary. Does anyone know of another open source system that could help manage database schema versioning and migrations? Thanks so much HN, this is something that I have been struggling with. 1: https://flywaydb.org/ 2: https://ift.tt/2o6cNlU
Wednesday, October 30, 2019
New top story on Hacker News: Ask HN: Does anybody making good money from Google Adsense?
Ask HN: Does anybody making good money from Google Adsense?
8 by thescribbblr | 1 comments on Hacker News.
My earnings have dropped since last few months. So, I would like to know if anyone is making a good earning from Google Adsense or the earnings have dropped like mine?
8 by thescribbblr | 1 comments on Hacker News.
My earnings have dropped since last few months. So, I would like to know if anyone is making a good earning from Google Adsense or the earnings have dropped like mine?
Tuesday, October 29, 2019
New top story on Hacker News: Ask HN: I just wrote an O(N) diffing algorithm – what am I missing?
Ask HN: I just wrote an O(N) diffing algorithm – what am I missing?
7 by keithwhor | 5 comments on Hacker News.
Hey folks, I've been building a rendering engine for a code editor the past couple of days. Rendering huge chunks of highlighted syntax can get laggy. It's not worth switching to React at this stage, so I wanted to just write a quick diff algorithm that would selectively update only changed lines. I found this article: https://ift.tt/2lIuVkG With a link to this paper, the initial Git diff implementation: https://ift.tt/1GF9uI8 I couldn't find the PDF to start with, but read "edit graph" and immediately thought — why don't I just use a hashtable to store lines from LEFT_TEXT and references to where they are, then iterate over RIGHT_TEXT and return matches one by one, also making sure that I keep track of the last match to prevent jumbling? The algorithm I produced is only a few lines and seems accurate. It's O(N) time complexity, whereas the paper above gives a best case of O(ND) where D is minimum edit distance. function lineDiff (left, right) { left = left.split('\n'); right = right.split('\n'); let lookup = {}; // Store line numbers from LEFT in a lookup table left.forEach(function (line, i) { lookup[line] = lookup[line] || []; lookup[line].push(i); }); // Last line we matched var minLine = -1; return right.map(function (line) { lookup[line] = lookup[line] || []; var lineNumber = -1; if (lookup[line].length) { lineNumber = lookup[line].shift(); // Make sure we're looking ahead if (lineNumber > minLine) { minLine = lineNumber; } else { lineNumber = -1 } } return { value: line, from: lineNumber }; }); } RunKit link: https://ift.tt/2MTFXmv What am I missing? I can't find other references to doing diffing like this. Everything just links back to that one paper.
7 by keithwhor | 5 comments on Hacker News.
Hey folks, I've been building a rendering engine for a code editor the past couple of days. Rendering huge chunks of highlighted syntax can get laggy. It's not worth switching to React at this stage, so I wanted to just write a quick diff algorithm that would selectively update only changed lines. I found this article: https://ift.tt/2lIuVkG With a link to this paper, the initial Git diff implementation: https://ift.tt/1GF9uI8 I couldn't find the PDF to start with, but read "edit graph" and immediately thought — why don't I just use a hashtable to store lines from LEFT_TEXT and references to where they are, then iterate over RIGHT_TEXT and return matches one by one, also making sure that I keep track of the last match to prevent jumbling? The algorithm I produced is only a few lines and seems accurate. It's O(N) time complexity, whereas the paper above gives a best case of O(ND) where D is minimum edit distance. function lineDiff (left, right) { left = left.split('\n'); right = right.split('\n'); let lookup = {}; // Store line numbers from LEFT in a lookup table left.forEach(function (line, i) { lookup[line] = lookup[line] || []; lookup[line].push(i); }); // Last line we matched var minLine = -1; return right.map(function (line) { lookup[line] = lookup[line] || []; var lineNumber = -1; if (lookup[line].length) { lineNumber = lookup[line].shift(); // Make sure we're looking ahead if (lineNumber > minLine) { minLine = lineNumber; } else { lineNumber = -1 } } return { value: line, from: lineNumber }; }); } RunKit link: https://ift.tt/2MTFXmv What am I missing? I can't find other references to doing diffing like this. Everything just links back to that one paper.
Monday, October 28, 2019
New top story on Hacker News: Ask HN: What do you automate in your life and work?
Ask HN: What do you automate in your life and work?
27 by gcj | 7 comments on Hacker News.
Just curious about scripts and things you guys have automated
27 by gcj | 7 comments on Hacker News.
Just curious about scripts and things you guys have automated
New top story on Hacker News: Ask HN: What is the most beautiful piece of code you've ever read?
Ask HN: What is the most beautiful piece of code you've ever read?
6 by seisvelas | 1 comments on Hacker News.
Preferably an elegant snippet rather than an entire (well engineered) codebase.
6 by seisvelas | 1 comments on Hacker News.
Preferably an elegant snippet rather than an entire (well engineered) codebase.
Sunday, October 27, 2019
New top story on Hacker News: Ask HN: How B2B startups sell to corporates?
Ask HN: How B2B startups sell to corporates?
3 by ahmedaly | 1 comments on Hacker News.
Hi, I am founder of a chatbot startup... it's a b2b.. I am interested to know how to sell to corporate America? how does it work?
3 by ahmedaly | 1 comments on Hacker News.
Hi, I am founder of a chatbot startup... it's a b2b.. I am interested to know how to sell to corporate America? how does it work?
Saturday, October 26, 2019
Friday, October 25, 2019
Thursday, October 24, 2019
New top story on Hacker News: Hydrogen Fuel-Cell Powered Electric Aviation Powertrain
Hydrogen Fuel-Cell Powered Electric Aviation Powertrain
2 by hootbootscoot | 0 comments on Hacker News.
2 by hootbootscoot | 0 comments on Hacker News.
New top story on Hacker News: Terminal Uses “80x25” Because of Civil War Era Banknotes
Terminal Uses “80x25” Because of Civil War Era Banknotes
5 by paulgerhardt | 0 comments on Hacker News.
5 by paulgerhardt | 0 comments on Hacker News.
New top story on Hacker News: Ask HN: What does mid level product manager comp look like in SF?
Ask HN: What does mid level product manager comp look like in SF?
8 by zzzcarrot | 2 comments on Hacker News.
I'm interviewing with a non-FAANG that gave me a range of $250-$350k per year in SF for a product manager role. Is that average or low? This is with 5+ years of tech experience
8 by zzzcarrot | 2 comments on Hacker News.
I'm interviewing with a non-FAANG that gave me a range of $250-$350k per year in SF for a product manager role. Is that average or low? This is with 5+ years of tech experience
Wednesday, October 23, 2019
New top story on Hacker News: Ask HN: What are your predictions for the next 50 years?
Ask HN: What are your predictions for the next 50 years?
12 by hereiskkb | 5 comments on Hacker News.
In relation to the Technological and Geo-political landscape.
12 by hereiskkb | 5 comments on Hacker News.
In relation to the Technological and Geo-political landscape.
New top story on Hacker News: Why we are leaving the Apple AppStore and all its problems
Why we are leaving the Apple AppStore and all its problems
20 by bangonkeyboard | 0 comments on Hacker News.
20 by bangonkeyboard | 0 comments on Hacker News.
New top story on Hacker News: The 5 ft. Ground Rod and its little-known use in the NEC
The 5 ft. Ground Rod and its little-known use in the NEC
14 by turtlegrids | 0 comments on Hacker News.
14 by turtlegrids | 0 comments on Hacker News.
Tuesday, October 22, 2019
New top story on Hacker News: Blawn programming language (created by 15 years old boy)
Blawn programming language (created by 15 years old boy)
6 by joelhandwell | 3 comments on Hacker News.
6 by joelhandwell | 3 comments on Hacker News.
New top story on Hacker News: Ask HN: How was life for a regular dev during the dot com burst?
Ask HN: How was life for a regular dev during the dot com burst?
7 by kace91 | 5 comments on Hacker News.
I'm a youngish developer (28y/o), and the constant recent comments of people predicting a new burst have made me curious about how life changed for developers at the time, and maybe what to expect if such a thing were to happen again. I've heard stories of rich startup founders losing everything back then, but not much about what happened with the average devs. What was it like, living through those times? Did many people change careers? was there still a thriving industry in less risky tech companies? did salaries drop? I'm basically clueless about the whole thing.
7 by kace91 | 5 comments on Hacker News.
I'm a youngish developer (28y/o), and the constant recent comments of people predicting a new burst have made me curious about how life changed for developers at the time, and maybe what to expect if such a thing were to happen again. I've heard stories of rich startup founders losing everything back then, but not much about what happened with the average devs. What was it like, living through those times? Did many people change careers? was there still a thriving industry in less risky tech companies? did salaries drop? I'm basically clueless about the whole thing.
Monday, October 21, 2019
New top story on Hacker News: Ask HN: How do you share/organize knowledge at work and life?
Ask HN: How do you share/organize knowledge at work and life?
16 by gavribirnbaum | 4 comments on Hacker News.
I find it hard right now to share knowledge with everyone on the team and to turn knowledge into actual learnings. I don't know how you guys do it, but I would love to know. We are now 50 people in the company and I don't know anymore how to make this scale. What is your process? Do you use any tool for it? How good is it? What needs improving?
16 by gavribirnbaum | 4 comments on Hacker News.
I find it hard right now to share knowledge with everyone on the team and to turn knowledge into actual learnings. I don't know how you guys do it, but I would love to know. We are now 50 people in the company and I don't know anymore how to make this scale. What is your process? Do you use any tool for it? How good is it? What needs improving?
New top story on Hacker News: Doctor T, don’t you get tired of only seeing older patients?
Doctor T, don’t you get tired of only seeing older patients?
2 by happy-go-lucky | 0 comments on Hacker News.
2 by happy-go-lucky | 0 comments on Hacker News.
Sunday, October 20, 2019
New top story on Hacker News: Ask HN: Feasible Alternative to the MacBook Pro?
Ask HN: Feasible Alternative to the MacBook Pro?
18 by ryanmccullagh | 17 comments on Hacker News.
The MBP is by far the best laptop I’ve used. The graphics are amazing, and the touchpad is ergonomic. However, Apple has demonstrated their inability to be reliable. I bought my MBP in January of this year (2019) and tomorrow I’ll pick it up from its 3rd repair. I’ve grown tired of this repair routine. And after the 3 years runs out, they will start charging me.
18 by ryanmccullagh | 17 comments on Hacker News.
The MBP is by far the best laptop I’ve used. The graphics are amazing, and the touchpad is ergonomic. However, Apple has demonstrated their inability to be reliable. I bought my MBP in January of this year (2019) and tomorrow I’ll pick it up from its 3rd repair. I’ve grown tired of this repair routine. And after the 3 years runs out, they will start charging me.
New top story on Hacker News: How do you deal with depression?
How do you deal with depression?
13 by tokstesla | 21 comments on Hacker News.
Please I will like to read your opinions on how to deal with depression.
13 by tokstesla | 21 comments on Hacker News.
Please I will like to read your opinions on how to deal with depression.
Saturday, October 19, 2019
Friday, October 18, 2019
Thursday, October 17, 2019
Wednesday, October 16, 2019
Subscribe to:
Posts (Atom)