Show HN: Simple command line note taking tool
4 by tomlockwood | 1 comments on Hacker News.
Thursday, October 31, 2019
Wednesday, October 30, 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
Tuesday, October 29, 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?
4 by thescribbblr | 0 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?
4 by thescribbblr | 0 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?
Monday, October 28, 2019
New TB Vaccine Could Save Millions of Lives, Study Suggests
By BY DONALD G. MCNEIL JR. from NYT Health https://ift.tt/2MSSnew
New top story on Hacker News: Ask HN: Random upper back pain is ruining my life. At wits end. Anyone else?
Ask HN: Random upper back pain is ruining my life. At wits end. Anyone else?
5 by anm89 | 3 comments on Hacker News.
I'm writing in total desperation. I feel like I can't make it through another day of meaningless, constant back pain. I've had it on and off for 7 years now, since I was 24 (now 31) It's this weird vibrating, tingling, burning, muscle sore combination that moves between the left side of my neck, under my shoulder blade, my left trap, and sort of out to the back of my ribs right below my shoulder blade. The pain moves around and sometimes I'll get a similar feeling on the other side of my body which makes it all the more confusing. I've been to doctor after doctor after doctor and I have absolute no more info then when I started. I'm on the verge of quitting my job because I feel like I can't go through another day tomorrow. The only thing I've ever correlated with more or less pain is how hydrated I am (ie less pain if more hydrated) and even that is pretty loose. Has anybody ever gone through anything like this? Has any body ever gotten over it or am I doomed to this for life?
5 by anm89 | 3 comments on Hacker News.
I'm writing in total desperation. I feel like I can't make it through another day of meaningless, constant back pain. I've had it on and off for 7 years now, since I was 24 (now 31) It's this weird vibrating, tingling, burning, muscle sore combination that moves between the left side of my neck, under my shoulder blade, my left trap, and sort of out to the back of my ribs right below my shoulder blade. The pain moves around and sometimes I'll get a similar feeling on the other side of my body which makes it all the more confusing. I've been to doctor after doctor after doctor and I have absolute no more info then when I started. I'm on the verge of quitting my job because I feel like I can't go through another day tomorrow. The only thing I've ever correlated with more or less pain is how hydrated I am (ie less pain if more hydrated) and even that is pretty loose. Has anybody ever gone through anything like this? Has any body ever gotten over it or am I doomed to this for life?
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?
6 by keithwhor | 3 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.
6 by keithwhor | 3 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.
Sunday, October 27, 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?
5 by gcj | 0 comments on Hacker News.
Just curious about scripts and things you guys have automated
5 by gcj | 0 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.
Saturday, October 26, 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?
Friday, October 25, 2019
New top story on Hacker News: Nth commit must have commit hash with N leading zeros
Nth commit must have commit hash with N leading zeros
21 by lifthrasiir | 5 comments on Hacker News.
21 by lifthrasiir | 5 comments on Hacker News.
Thursday, October 24, 2019
Wednesday, October 23, 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
7 by paulgerhardt | 0 comments on Hacker News.
7 by paulgerhardt | 0 comments on Hacker News.
Tuesday, October 22, 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?
7 by hereiskkb | 1 comments on Hacker News.
In relation to the Technological and Geo-political landscape.
7 by hereiskkb | 1 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.
Monday, October 21, 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.
The Loudest Bird in the World Has a Song Like a Pile Driver
By BY CARA GIAIMO from NYT Science https://ift.tt/2o59KPz
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?
Sunday, October 20, 2019
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.
New top story on Hacker News: Facebook is removing opinions about Israel as being against Community Standards
Facebook is removing opinions about Israel as being against Community Standards
3 by fbcomta | 1 comments on Hacker News.
A lot of friends reported that facebook started removing their old posts in which they express opinions about (Israel, Palestine, Hamas, Hezbollah, etc). The reason given by facebook is that those posts go against the Community Standards. Here is an example : https://ift.tt/33N3efK (the post and comments are in arabic, you may translate them). I’m posting this to HN to raise the issue and get your opinions on the matter, in a time social media giants took over blogs, and became nearly the main gate to share what you think with a large audience. Please keep the discussion civil.
3 by fbcomta | 1 comments on Hacker News.
A lot of friends reported that facebook started removing their old posts in which they express opinions about (Israel, Palestine, Hamas, Hezbollah, etc). The reason given by facebook is that those posts go against the Community Standards. Here is an example : https://ift.tt/33N3efK (the post and comments are in arabic, you may translate them). I’m posting this to HN to raise the issue and get your opinions on the matter, in a time social media giants took over blogs, and became nearly the main gate to share what you think with a large audience. Please keep the discussion civil.
New top story on Hacker News: Ask HN: Feasible Alternative to the MacBook Pro?
Ask HN: Feasible Alternative to the MacBook Pro?
7 by ryanmccullagh | 2 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.
7 by ryanmccullagh | 2 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.
Saturday, October 19, 2019
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.
Friday, October 18, 2019
Thursday, October 17, 2019
Get Ready for NASA’s First All-Female Spacewalk
By BY JESSICA BENNETT AND MARY ROBINETTE KOWAL from NYT Science https://ift.tt/2qoj8yG
Wednesday, October 16, 2019
Tuesday, October 15, 2019
Subscribe to:
Posts (Atom)