skysight-inc/HackerNews huggingface dataset:
Getting Started with Salesforce DX Part I
I do the same thing by bike. I often see weird stuff off the side of the road that you miss in a car and I can pull off and have a look easily.
I consider $1000 for a good logo and design/use guidelines to be an incredible bargain.
I use these functions a lot: down and up. They're quite useful for navigating big source trees where stuff isn't well laid-out but you don't remember exact paths.

They work kind of like z/j, but you don't have to have been there before and it will constrain to the current tree.

down SUB1 SUB2[...] does a breadth-first search down-tree from your current location, and takes you to the first directory with all the given substrings in order in its path.

This differs from just wrapping basic find . -ipath, which does depth-first. That way, down libs lands you in ./src/libs instead of ./src/a_subcomponent/foo/bar/libs.

up SUB1 does the same, but moves you up the tree instead. I didn't do multiple substrings here because I never needed them--I mostly use them with down to anchor to a subtree (e.g., down a_sub libs if I wanted the above result).

Both are case-insensitive as written. Change ipath to path in down and grep -oi to grep -o in up to make them case sensitive instead.

They may or may not be symlink safe, and may or may not be spaces-in-paths safe. Neither is in play in my source bases.

Last note, these were originally written in fish (ask me for those versions if you want them) before I ported them to bash, so may not be examples of stunning bash code. They've been tested on bash 3.2 (Mac), 4.x, and 5.0.

function joinstr {
local IFS="$1"
shift;
echo "$*"
}

function down {
if [ -z "$1" ]; then
echo "Usage: down SUBSTR [SUBSTR...]"
return 1
fi

# foo bar baz becomes *foo*bar*baz*
local pathspec=( "$@" )
pathspec="*"$(joinstr "*" ${pathspec[@]})"*"

local depth=1
local dest=""

# iterative depth first traversal to simulate breadth-first
while true; do
# Anything at all at this depth?
local first_result=$(find . -mindepth "${depth}" -maxdepth "${depth}" -type d -print -quit)
if [ -z "${first_result}" ]; then
# nope, we're done
break
fi

# How about what we're looking for?
dest=$(find . -mindepth "${depth}" -maxdepth "${depth}" -ipath "${pathspec}" -type d -print -quit)
if [ -n "${dest}" ]; then
# found it!
break
fi

depth=$((${depth} + 1))
done

if [ -z "${dest}" ]; then
echo "down: could not find path matching ${pathspec}"
return 2
fi

echo "down: changing directory to ${dest}"
cd "${dest}"
}

function up {
if [ -z "$1" -o -n "$2" ]; then
echo "Usage: up SUBSTR"
return 1
fi

# look for substr starting at parent
local dest=$(echo ${PWD%/*} | grep -oi ".*$1[^/]*")

if [ -z "${dest}" ]; then
echo "up: could not find path matching *$1*"
return 2
fi

echo "up: changing directory to ${dest}"
cd "${dest}"
}
> Solar and wind are economical, so now the biggest issue is scaling them up.

I appreciate your passion and desire to fix our planet. But am I the only one who thinks this is the biggest distraction to solving the energy problems of today and the next 100 years? It is just very difficult to get solar to produce the type of energy the world needs for the next 100 years. And it’s the 21st century — its embarrassing that we are talking about wind energy!

Simply put, we need nuclear power. We need to spend more time and energy trying to innovate on nuclear energy. That’s what is needed to support the power needs of 10 billion people who will have the energy demands of a modern western nation today. Solar and wind will just not cut it.

See this talk at NeurIPS 2017

https://nips.cc/Conferences/2017/Schedule?showEvent=8729

https://youtu.be/HL60wgrT67k
It would not be so ridiculous if the driver had stopped somewhere and been warned that the conditions were dangerous and that the flat tire could start a fire then the driver decided to continue operation.
Yes, at least for finger prints. Getting the print is easy, especially with glass back phones, it's making a good enough fake that's non-trivial.
> That's ridiculous. Broadly, there's nothing preventing California from seizing PG&E's assets as partial compensation for the company's past behavior.

Nothing besides the fact that the state has no interest in running a power company? They could have nationalized it long ago if they wanted to.
> The FAA is also proposing allowing discretionary waivers ... for those that do not meet its anti-collision lighting requirement.

Huh? What would be a legitimate reason for that?
Behind paywall. Do not even have a summary. Is it public or inter-bank or inter-customer? Otherwise why blockchain not just an internal dB?
"Probably async"? Could you expand on it?
Not sure if it's a good idea though. SSDs tend to fail without warning. I guess that's why we have RAID but still I wouldn't want my backup storage to be so volatile.
You can access it via web with any modern web browser, so does it matter?
Careful - after iOS 12 that defaults to calling 911 for you (while also locking your device). You can change that in the settings though.
Slow but Inevitable Shift to Cloudy Infrastructure
What is life? A forkbomb implemented in hardware.
Game Isn’t Worth the Candle: Reflections on the JPM Healthcare Conference
Michael from MongoDB here. Amazon, Microsoft, and Google are certainly big players in this field, and common wisdom is that they are best qualified to scale, but in this case, we have a clear counterexample. DocumentDB clusters are limited to a single region of AWS. MongoDB Atlas clusters can span the entire globe with low-latency reads and writes in multiple regions. In terms of pricing, DocumentDB is cheaper when you choose to go with 2 instances. AWS achieves this by shifting high availability to the storage layer which in turn means that any failover could require between 1 and 2 minutes to happen - this compares to seconds that this would take with MongoDB Atlas. If you go with the default DocumentDB configuration and use 3 instances you end up paying a premium between 20-35%. With this in mind, it really depends on your use case whether DocumentDB ends up being cheaper for you. In terms of reliability and the hosting service is global, Atlas currently outperforms DocumentDB.
Some Sony cameras were able to remove the IR filter automatically - they called it "Night Shot" mode. There was a IR LED that would help light the scene. They had to cripple it when it was discovered that some clothing was translucent in IR.
You can hardly call it a conviction when it was based on deception.
Don't forget the context: I'm brushing it off in terms of its impact on the decision of whether to travel to a particular country.

Or go ahead and forget the context so you can make me sound worse, seems to be your thing.
And everything else? You can use craigslist over TOR

All DNMs offer an expanded audience and borderless payment system that wont freeze your account
It wasn't entirely clear how strongly this would invalidate conclusions drawn from a belief it was matrilinial descent only. For instance, is this enough to totally wreck the single-eve hypothesis? Or, change some of the patterns of human dispersion models? Or the neanderthal-sapiens crossbreeding?
Nuclear is never going to happen, ever, due to a combination of issues (cost, regulation, liability, waste disposal and reprocessing). China is throwing in the towel on most of it's nuclear power plants [1].

I am deeply disappointed you dismiss wind and solar. They're extremely cheap (~2-4 cents/kwh at utility scale), require very little permitting to deploy, and fail safely. You're limited solely by how fast you can churn out PV panels, wind turbines, and get those components installed. Enough sunlight falls on the Earth in 30 minutes to power humanity for a year. The potential is there, and scaling is orders of magnitude more simple with renewables than nuclear. >90% of new generation in the US along each year are renewables. Coal fired plants are decomissioning decades earlier than predicted. Not even natural gas is as profitable as expected in some markets (Texas) due to how much wind power has been generated. 150+ GWac of new solar generation is planned to be online within the next five years in the US [2].

It would take two decades to replace all fossil generation with wind and solar. Faster if we taxed carbon and poured that money into renewables and battery storage. Nothing fancy required. Anyone can be trained to install solar panels, on rooftops or on ground mounts.

[1] https://www.technologyreview.com/s/612564/chinas-losing-its-... (China’s losing its taste for nuclear power. That’s bad news.)

[2] https://pv-magazine-usa.com/2019/01/01/solar-tsunami/
I think that's actually a fair point and would agree with you on that wholeheartedly.
I think the problem is that it isn't a single nut to crack - everyone works slightly differently, some like a clean interface, others like all the info laid for them.

With Notes and tasks, it is quite personal, so any issues in the interface are seen as worse, eg we are more likely to accept a slightly shitty interface when paying a bill or logging on to a corporate system than a product we use daily.
Neither. The technology is made in China or Korea, and owned by the Koreans. We couldn't build modern smartphone screens in the US without doing serious industrial espionage on our own ally, and even then setting up the manufacturing capability would cost billions, if we could get it working and not have a problem like the "capacitor plague" that happened when the Chinese tried stealing Japanese capacitor formulae back in the late 90s or early 2000s and didn't quite get it right.
I don't think Kodak was blind to the potential of digital cameras. It's just that the digital camera business didn't have the overall revenue potential of the film business no matter how you handled the transition. Remember that between raw film, processing, and printing, they were getting a huge cut out of every picture taken. There's no similar revenue stream in digital.
The following two twitter threads are more sober look at Solar and Wind.

https://twitter.com/peterzeihan/status/989868124525809664?la...

https://twitter.com/peterzeihan/status/1074644971720986624
Sigh. But Ipvm? Would anyone notice?
Read the China law blog. If you are an English teacher, you might think you have a proper work permit when your employer has done something really dodgy. They do that because they can’t hire foreign teachers properly, and everyone was just expected to break the rules in the past.

For high paid high tech workers this isn’t much of a problem, we got proper work permits, I think.
They continue to insult mainframes by comparing them to large PCs...
This is one of the reasons I'm looking forward to the Purism Librem 5. Running essentially standard GNU/Linux with mainline kernel drivers for all the peripherals means you're not dependent on any one entity to provide security updates.
> Well out of convenience you kind of have to.

What a sentence.
This suggests an opportunity for a separately priced "family" option to allow sharing for non-commercial use. Say $7/mo for up to 4 users?
Surveillance for law enforcement is the easy one that everybody's going to worry about. I can also see some niche uses for wildlife observation.
Lots of safety concerns are brought up, but I'm really curious how drones will play out in conjunction with noise and NIMBYism. Drones are loud, so I can't imagine that commercial drone activity (Especially at night) will happen without heavy pushback from locals.

NASA did a study and found that the noise drones make is perceived to be more annoying than those from cars [1]. They acknowledge noise-based pushback as an issue, even if they're no louder than cars.

[1] https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/201700...
You think HDD can't fail without warning? OK, I get that SSD don't implement S.M.A.R.T but..
Being a Great Engineering Mentor
MX Cherry Low might have me try a mechanical. It looks good in videos. Was hard to find typing videos/examples, but thank you! I have a lead!
Yes, the only thing US-centric about the post is they are using USD for the currency to compare the world-wide damages in multiple countries (USA, Japan, Philippines, Europe).
Cleantech is an industry term used to describe products or services that improve operational performance, productivity, or efficiency while reducing costs, inputs, energy consumption, waste, or environmental pollution [0].

[0] https://en.wikipedia.org/wiki/Clean_technology#Cleantech
Could just be for night shots over ones house or fireworks... OR for low flying drones to view citizens
This seems inconsistent, coming from the administration of a president who is hyper-concerned about terrorism and tends to overstate the security implications of just about everything. Close the borders, but open the skies?
Watch https://youtu.be/HL60wgrT67k and then give me your thoughts. I am curious to hear them.
Oh I see, so the whole weapon system including the computer systems etc.

The way the quote literally reads is that software virtualization and HPC somehow solved a physical geometry problem.
64 bytes is quite a lot if you use it cleverly enough. Sure, it's not enough for media but it's plenty to implement control loops and algorithms... Unless your code had to share that 64 bytes too, I guess.
Mine has an expires set: 2046-05-31T19:47:10.000Z
Plenty of front range Colorado would qualify. Sure, it isn't dry year-round, but it gets plenty dry during fire season. And with the pine beetle problem, there are large areas with massive amounts of fuel.
> Under the FAA’s proposals, operators would be able to fly small unmanned aircraft weighing 0.55 pounds (0.25 kg) or less over populated areas without any additional restrictions.

> For drones weighing more than 0.55 pounds, however, a manufacturer would need to demonstrate that if an “unmanned aircraft crashed into a person, the resulting injury would be below a certain severity threshold.”

I assume this also includes the weight of the package. I'm pretty sure most of my Prime boxes weight more than half a pound.

I wonder what the severity threshold is. Like, are propeller guards enough or is there still innovation that needs to happen?
As I said above, everyone who would abandon MS, already has (this apparently includes you). Everyone who hasn't yet, never will. So at this point, MS has nothing to lose by treating their customers like crap. The people who still use MS desktops certainly aren't going to switch to Linux, and the people who use MS servers and other business products are locked in and probably not interested in changing anyway because all their IT expertise is invested in that ecosystem. The people who demand you run everything on Linux aren't MS customers at this point, so MS doesn't care about pissing them off.
What about PKI? I ran a decent size K8s cluster for a while and proper PKI was a pretty important thing IMHO. Everything running in a K8s environment supports PKI (roots, intermediates, client / server cn / rbac verification, etc) and there's no excuse to set things up properly when tools like cfssl exist and can be automated in deployment pipelines.

Edit: CRL[0] and OCSP(maybe?) appear to be coming soon.

0: https://github.com/kubernetes/kubernetes/issues/18982
an MCU can bitbang the lowest speed USB connections, and a connector can be had for a few pennies
I recall a couple years ago that it was rumored that Apple had bought FDB with the intention of replacing Cassandra (and I think, at the time, Apple had the largest Cassandra cluster ever known).

Combined with other statements in this thread, I think that may be true. I remember reading once that iMessage used to be served by Cassandra, but now its served by FDB.

This is all speculation though.
New phones' impact on the world is substantially more than the percentage of landfill it makes up. For example, look at it from a financial perspective. Suppose you spend 1/6 of a premium smartphone's price per month on food. You buy a new smarthphone every 2 years. So for every dollar you spend on food, you throw 25 cents at a smartphone company. Considering the regularity with which we have been doing that, how can that not have a significant impact on society?

Then again, one of the pillars of the consumerist dogma is that you can change yourself and the world by changing how you consume, which, in my opinion, is false, at least in our current socioeconomic reality. So while I think it definitely matters where you put those 25 cents, consumerism as a whole is as much a distraction as a problem.
Can you elaborate? What financial crisis are we talking about here?
Rise of the Swiss Army Gadget
I'm not totally familiar with the data set, but it would be nice to plot more things from it. For instance, what were the chords that were popular during certain years? You mention that the chords have changed, what does that graph look like? Is there any correlation between, I dunno, the DJIA's derivative and the 'sounds' of popular music.

Great work though! I really like the clear and informative data displays.
My point is mostly that you can get away with explicitly typing less things in flow and still get similar levels of coverage. For example, consider this example:

export function formatTime(time: Date) {
return digitize(time.getHours()) + ':' + digitize(time.getMinutes());
}
function digitize(n) {
return ('0' + n.toStirng()).substring(-2);
}

Just a single type declaration is enough to let Flow catch the typo here. In TS, you'd also have to write the argument types for `digitize`. Importantly, if you wanted to explicitly add arg types for `digitize` w/ Flow, your editor can tell you what they are supposed to be.
Unless I'm mistaken, one major difference is that Webstorm costs money.
They are loud for now. That will change.
Hack a Tesla 3 Pwn2Own to own a Tesla 3
Personally, I'm considering looking at computer monitors the next time I need to buy a living room display. Some of the larger gaming monitors announced at CES are so much better than my 37" 720p TV, it may be worth the cost to avoid the SmartTV stuff.
Based on that and your pricing page you need roughly 50 paying business customers to get to break even. Make that your goal for the next three months. Focus completely on that (no comfort zone adding just one more feature) actually get out market and sell. If you can't add the 50 customers in three months then pull the pin. If you do at least you're at break even and you can coast for a while deciding what to do next.

I'm ignoring for the moment that there is a cost to servicing each customer - you might need to factor that in to you breakeven calcs.
The anticollision light has to be visible from three miles away. I could see that being excessive and disruptive for certain urban use cases.
Why don’t they just let the market decide. Avg Joe can launch an ICO in his pajamas and these bankers think it’s hard? Puh-leaze!!!
Also... weight is not a useful metric. A 1lb rock has very different ballistic properties than a 1lb feather. A typical 9mm bullet weighs 0.01lbs.
You can barely hear (or even see) a small drone above about 100m.
the day my new boss told me he didet get paid so i could escalate at nite

Great, I want to go hourly, or if staying salaried I want to be paid as if hourly. That means I'm paid 33% for all time that I keep myself available while on-call, and paid 2x (or more?) for time spent actually responding because it's after-hours overtime.

If I'm going to be 24/7/365 with no backup and get crap about "I'm not paid for you to escalate to me at night," you're going to pay through the nose.
But is this behaviour implemented in hardware or software?
I do think it's a safe bet that anyone who blames the blue team for everything will tend to be from the red team, yes. That is, unfortunately, the way American politics works.
I'd hew closer to
TeMPOraL's definition.

On the one hand, one obviously needs some technological leeway to write a fun novel set in the future.

On the other, if every roadblock is responded to by suspending scientific treatment, it doesn't seem like that's a good faith "hard" effort.

I think Ringworld is instructive. The Wikipedia article specifically calls out technical inaccuracies in the original... inaccuracies Niven specifically made an effort to patch up in later books.

So the count of intentional lapses seems as decent a proxy for hardness as anything else.
Quick comments from skimming the video:

* Speaker shows slide showing power demand increasing sharply into the future. This doesn't square with first world historical electrical demand growth data, and future growth is going to be a function of how quickly the third world develops. Aging first world countries will use less power, China's economy is rapidly slowing, India has an enormous effort to move to solar at the moment [1] [2], and Africa is a wildcard.

* Speaker states that renewables can't provide industrial heat. This is false; there are several methods through which you can obtain industrial heat without fossil fuels [3].

* Speaker states that renewables can't compete with paid off fossil fuel plants. This is false; renewables are already cheaper than continuing to run existing sunk cost thermal generators [4] [5].

* Speaker appears to be advocating for fusion as a viable technology to solve climate change when no production commercial fusion generation technology exists.

[1] https://qz.com/india/1519929/india-will-add-a-record-level-o...

[2] https://qz.com/india/1475736/india-is-now-a-world-leader-in-...

[3] https://en.wikipedia.org/wiki/Renewable_heat

[4] https://www.cbsnews.com/news/its-now-cheaper-to-build-a-new-...

[5] https://www.utilitydive.com/news/even-in-indiana-new-renewab...
Probably obstruction of justice IMHO
> I get that SSD don't implement S.M.A.R.T

Despite the S.M.A.R.T data is less predictive on SSDs, they do have it, at least for SATA disks...
Updated from “2018 US natural disaster losses: $160B”.
That's typescript's type definition.

Flow recognizes that concat returns a new array, so it specifies that calling concat on an Array<T> with an Array<S> as an argument returns an Array<T|S>. Their actual definition is:

declare class $ReadOnlyArray<+T> {
// concat creates a new array
concat<S, Item: $ReadOnlyArray<S> | S>(...items: Array<Item>): Array<T | S>;

Personally, I'm ok with that and think it is useful. Although the return value could be an array of any type more general than T|S and the types of the argument arrays could vary. (i.e. Array<T>.concat(Array<S1>,Array<S2>,...): Array<? extends (T|S1|S2)>) but I don't know if that can be expressed in flow.

I don't think either gets it perfect, but flow is trying to at least capture the fact that the return value can't be an array of a type that is disjoint from T|S.

In practice, I've been impressed by the level of detail of information that is captured and propagated by flow's type checker.
Reverse Engineering GoDaddy's Tracking Code
Since this is about objects falling from a certain height, yes, weight is a useful metric for rough safety estimates.

A bullet does damage because it holds a lot more energy from being accelerated - a 9mm bullet will go around a mile up before falling down (source: MythBusters). Two 500g boxes dropped from a likely much lower height will have a similar effect (concussion?) when dropped on a pedestrian regardless of the contents, except for a few outliers. Even for small, heavy objects (like a 1kg camera lens) the load would be spread by its enclosure unless it separates mid-fall.
Depending on specifics (obviously), Azure is quite competitive with Amazon on pricing, and extremely competitive on "power". Your mileage will of course vary, but the interesting thing about Azure versus AWS is (surprising to some) Azure tends to use more "open standards" versus AWS' proprietary solutions. (Two examples off the top of my head: Azure supports Docker and Kubernetes directly rather than the Elastic TLAs' own in house container models and container orchestrators. Azure's most used in-memory cache is Redis.)