621 karma · joined January 11, 2018
graft: noun, a shoot or twig inserted into a slit on the trunk or stem of a living plant, from which it receives sap.
Edit: Ugh nevermind I found more definitions of graft. Google only showed the plant/medical-related ones by default.
With respect to exposing implementation details:
If the caller is the one who passed in the connection, then it makes complete sense to throw a SQLException so the caller can deal with it.
If the connection was opened in your method, then yes you probably should wrap it, handle it properly and clean up the connnection, and then throw a different exception.
The only time it's ambiguous is if the connection came from an instance variable. That's often a poor design, but usually means it came indirectly from the caller and so it still makes sense to throw SQLException.
In general, SQLException works fairly well as a checked exception. If some code generates a SQLException, your transaction failed and you should generally abort it (or you can check the specific error code if you are prepared to handle anticipated failures such as a duplicate key error). If it generates any other exception, you can continue working with the database (such as saving the failure status to a table).
In the app case, you bought an IAP from Apple (I know it’s Facebook’s app, but that doesn’t change the fact that the transaction was executed by Apple) but somehow think it’s ok for there to be a note saying you can pay less if you buy it on your computer instead.
I believe the (weak) answer to the above is the answer to your question. Features are what matters to the majority of users. The ability to sideload apps itself is not.
- legitimate websites using this feature for valid purposes, such as to control devices on your local network
- targeted malware attacks trying to hack devices on your local network
I’m certain we will not start getting popups for this on any mainstream website.
So as long as this permissions thing is more than a simple yes/no dialog, I’m not worried.
By the way, I think you’d be in even more trouble if you wrote:
cat /dev/zero > aMy response was based on the OP suggesting the account closure was based purely on the App Store policy violation. I’m pretty sure it’s based on more than that, such as the fact that Epic is suing them in bad faith.
There’s probably a million app developers which have violated the policies in some manner at some point and yet very few get blacklisted by Apple.
UPDATE inventory
SET quantity = inventory.quantity - daily.amt
FROM
(SELECT sum(quantity) AS amt, itemId FROM sales GROUP BY 2) daily USING( itemId );
Basically just allowing a ON/USING clause after the first FROM entry as if it was joining to the table being updated.Otherwise it's kind of annoying when you end up joining to several tables in the update, but have to use the WHERE clause to join back to the main table.
Basically the statement you made that employees are paid based on value delivered is not really accurate in most cases.
> Starting with new features, remember that PHP 8 is still in active development, so this list will grow over time.
Something doesn't seem right here :)
1. Find the server via nmap
2. Guess at some URLs until the server finally responded with some hidden data.
While neither of those would require being an expert in the field, this is well beyond the realm of browsing public websites.
Coercion can be the difference between asking for money and theft. In the case of this intel data, it was clearly coerced from a server - it's not like it was linked on Google, they had to specially craft URLs to coerce the data out.
- ensure timestamps of all files embedded in jar files is consistent
- ensure there is no BuildTime/BuildHost/BuildNumber variable of any kind being captured
- ensure the exact version of compiler is documented
- ensure exact versions of all dependencies in classpath is captured
How will your software solution guarantee that the code running is what you think it is?
Also I use a glass pot which will stay quite warm for at least an hour after turning it off.
I used to have a rice cooker. But I gave it away to free up counter space. My stove has 4 elements, but counter space is precious.
The original article describes rice cookers were invented because cooking rice over a wood fire is very difficult. I’ve no argument with that. But cooking rice with a generic pot on a modern stove is trivial, and most people buy rice cookers because they’ve been taught to.
Take a look at the first line of the article:
Cooking rice on a stovetop can be fraught. Add too much water and you end up with porridge.
Then take a look at this line shortly afterwards: These devices can seem all-knowing. So long as you add water and rice in the right proportions, it’s nearly impossible to mess up
So in other words, the device doesn't actually solve the most important problem... The timing isn't particularly important, as long as you remember to turn down the heat as soon as it starts boiling.