News for hackers. Stuff that matters.

bmohlenhoff

Re:When to use Bazel? on Wednesday September 14, 2022 @09:34AM (#32836944)
Yes, I started out by using genrule before going down the custom rule path. I was able to properly trigger bazel to generate the interface bindings but then lost the thread when trying to properly configure the output files to act as proper dependencies to other code (ie. generate C++ headers and libraries that could then be properly listed as dependencies by client code.)

I think part of the issue was that the generated code from the 3rd party tool did not align with the Bazel expectations about code layout (ie. paths relative to WORKSPACE). Likely solvable but not in the amount of time I had available to dedicate to the effort.

Re:When to use Bazel? on Tuesday September 13, 2022 @05:55PM (#32830660)
I tried using Bazel a while back but immediately ran into a few issues.

The existing codebase I was working with did not lay out its dependencies and files in the manner expected by Bazel so dealing with dependency/include hell was frustrating.

Then there was a large portion of the project that depended on generated code for its interfaces (ie. similar to protobuf but slightly different) and trying to dive into the Bazel rules and toolchain with no other Bazel experience was not fun. I attempted to build off of the protobuf implementation but kept finding additional layers to the onion that didn't exactly translate to the non protobuf tooling. The project documentation seemed out of date in this area (ie. major differences in the rules engine between 1.0 and subsequent versions) and I couldn't find many examples to look at other than overly simplified toy examples.

All in all a frustrating experience. I could not even get far enough along to compile the interfaces for the project.

Everything can be a conspiracy if one tries hard enough.
Bingo; This "appeal to the court of public opinion" strikes me as a last resort due to a lack of negotiation leverage.
Re:The testing pyramid should look more like a crab on Tuesday November 03, 2020 @12:10PM (#24981544)
Don't forget that generally e2e tests take longer to run and typically require more test assets.

For example, if e2e tests involve simulations running in real time, then by increasing the number of distinct e2e tests you also increase the requirement on test assets and/or overall CI duration.

Glad to hear others used the same house rule. It's definitely cheating.
My wife created a starter from scratch last year using only water, honey, flour, and raisins. I think the recipe was similar to this (http://www.bellarminemagazine.com/making-your-own-sourdough-...). It has since churned out a loaf or two on a weekly basis (and the discard turns into pizza dough.)

My ability to remain in ketosis is apparently indirectly proportional to the availability of delicious fresh sourdough bread.

Re:Cosmopolitan Cocktail on Tuesday January 21, 2020 @01:08PM (#22109567)
Er, what? It is an IBA official cocktail.
Re:Airlines inching closer to dynamic pricing on Sunday February 25, 2018 @02:24PM (#16460654)
Should be easy to game though if they offer "bargains to induce new users" as per the article.
Re:Southwest to Stop Overbooking as United Uproar Echoes on Friday April 28, 2017 @07:41AM (#14218596)
> Business travelers are basically not going to voluntarily take a later flight at all.

This. As a business traveler, I don't know how I would justify this to my finance department and/or management. It would take too much effort to justify the change in travel plans for a shitty voucher that I'd probably never be able to redeem.

Re:Cheating on a string theory exam on Tuesday February 21, 2017 @05:10AM (#13694558)
5400 = 90 min * 60 seconds

The test is a list of 23 true/false questions, so you can think of each question as a bit.

You've prearranged a list of 5400 unique 23-bit vectors, so he determines the bit vector with the most correct answers (ie. smallest Hamming distance) and leaves at whatever time offset corresponds to that bit pattern.

It's not a perfect scheme since you only have 5400 possible bit vectors, and 2^23 > 5400.

Re:How to write a Bloom filter in C++ on Tuesday April 12, 2016 @06:48AM (#11478447)
std::bitset is also a good choice if the number of desired bits is known at compile time
Re:The Uber Model, It Turns Out, Doesn’t Translate on Wednesday March 23, 2016 @12:20PM (#11345814)
I've personally never felt that Uber was a particularly innovative business. The ability to temporarily commandeer a vehicle/driver has been a thing since vehicles were invented. The only interesting thing Uber ever did was the replacement of inefficient centralized dispatch of resources with their tech stack that directly connects consumers with suppliers.

It does not surprise me in the slightest that it doesn't translate well to other industries. If it did, I would expect to see a greater variety of preexisting businesses utilizing centralized dispatch in a manner similar to how the taxi/black car industry operated pre-Uber. Given that these are few and far between, I can only assume that either nobody thought of doing this before (unlikely) or that it's simply a losing business proposition.

Just because something has always worked one way doesn't mean it always will continue to work that way.

If a business is having trouble staffing during certain time periods then it's a pretty clear indicator that they might need to offer more to entice people to work those hours. It seems like a pretty clear example of the free market in action.

Re:Show HN: My SSH server knows who you are on Tuesday August 04, 2015 @03:15PM (#10005570)
...presumably it doesn't allow root logins via SSH
Re:Dash: A company card for every employee on Wednesday July 08, 2015 @02:53PM (#9853872)
Probably true, but it's pretty nice being able to accumulate hotel points/airline miles/car rental credits/etc while on the company dime.
It strikes me as both grammatically confusing and arrogant to refer to this organization as "the US Chamber of Commerce" when it isn't affiliated with the US government at all. It's a lobbying organization.

It's analogous to calling something "the Google" or "the Microsoft."

It hasn't been avoided. This has happened a few times to various pieces of the Internet.

https://en.wikipedia.org/wiki/IP_hijacking#Public_incidents

Radar guns are regulated by the FCC because they are RF sources. They aren't going to come after you for mounting extra lightbulbs on your car.

Infrared bulbs are more similar to polarized plastic covers that obscure the plate when viewed from certain directions. Not sure if they are illegal or not but they are definitely outside the purview of the FCC.

In my previous comment I was considering only saturation at the ADC, however, I later realized that they were probably performing cancellation in the analog domain first, and then throwing some DSP magic at it later on in the digital domain to handle reflections, etc.
I don't get it either. It seems like the receiver should be saturating if it's really receiving concurrently with the transmitter.
Re:The Challenge of Relativistic Spaceflight on Friday March 07, 2014 @10:08AM (#7360603)
Third can be used both as a noun and an adjective.

Noun form: "A third of a pizza".

Adjective form: "A third pizza".

Re:Smarter log handling, the case for opportunistic logging on Wednesday December 18, 2013 @08:56AM (#6927463)
So instead of writing stuff out to disk, the idea is to keep everything in memory forever until something bad happens? Like, for instance, your machine runs out of memory because your debug logging consumed all of it.

How is that better?

Re:Winning at Candy Crush on Friday November 15, 2013 @10:03AM (#6739786)
Step 4: Get DMCA'd for "circumventing" a "copyright protection system"
Figuring out how to use a system as designed isn't much of a hack...it would be more of a hack if he figured out how to reconfigure the system to route a bus or train directly past the front entrance of the building he was trying to get to.
Re:Microsoft does away with stack ranking on Tuesday November 12, 2013 @04:36PM (#6721343)
It's nice that now they are going to value teamwork and collaboration more highly, but I don't see the lack of a curve making much of a difference in compensation level for the average contributor. The total size of the compensation budget is fixed, and they have to spend all of it.

Just because now 30% of the staff can fall into the Exceed Expectations bucket doesn't necessarily mean that the budget increases. The money gets divided differently, that's all.

It does seem like a positive change though if they can improve the culture of the workplace and minimize the amount of backstabbing, cronyism and political nonsense.

Because it's easy and everyone else is doing it. Next question?
Re:Less is exponentially more (2012) on Friday September 20, 2013 @09:40AM (#6417606)
This. The nondeterminism induced by an uncontrollable garbage collector is unacceptable given hard realtime requirements.
Re:Facebook use 'makes people feel worse about themselves' on Thursday August 15, 2013 @04:41PM (#6220451)
Facebook is like comparing everyone else's highlight reel against your behind the scenes footage.
RF is nonionizing radiation, meaning that it isn't energetic enough to knock electrons off of individual molecules. Obviously it's impossible to say "it can't cause cancer" with 100% certainty, but in all the studies that have been conducted on RF over the last 70 years, there has never been any indication that nonionizing radiation causes an increased incidence of cancer.

Ionizing radiation (X-rays, gamma radation, etc.) is on the other side of the electromagnetic spectrum relative to visible light. These types of radiation are energetic enough to interfere with and ionize molecules, such as your DNA. This can directly lead to cancer.

The only thing dangerous about RF is that if you disperse too much RF energy into something (ie. your body) it usually comes out as an increase in temperature or as an influx of electrical current, which can cause internal/external burns, etc.

Source: mandatory yearly IEEE mandated RF safety training

Older »