- Nov 2023
-
github.com github.com
-
Yeah, I agree that lib (or app/lib
-
The real fundamental problem is that lib is a kitchen sink
-
Everything has a place so do better and find it. There is a certain belief that everything within app should be organized into functionally-named directories and any files placed in app/lib actually belongs in app/services or app/interactors or app/models or someplace if the developers just tried harder. The implication is that developers are bad developers if they don’t yet know what kind of constant they have and where its forever home should be. I reject this. Over the lifespan of an application, there will be constants that have not yet found their functional kin, if those kin ever come to exist at all; sometimes you simply need some code and a place to put it. app/lib can be the convention for where those constants can live temporarily or as long as necessary. Autoloading is really nice, let’s treat them to it.
-
- Aug 2022
-
a16zcrypto.com a16zcrypto.com
-
so almost paradoxically, projects might want to reduce liquidity for the sake of protecting governance.
the same reversal can be found in the decreasing the value of an attack approach: incentives for an attack are aligned with the DAO success.
-
- Jun 2022
-
www.waltongas.com www.waltongas.com
-
The phrase "now you're coking with gas" was coined by American Gas Association publicist Carroll Everard "Deke" Houlgate. Deke's son indicated that his father "planted it with Bob Hope's writers" and it was ultimately used in one of his radio shows. From there it turned into one of his catchphrases and it was adopted by others including The Jack Benny Program and Maxwell House Coffee Time.
Incidentally, Houlgate was also a football journalist who devised the first college football rankings methodology that determined the national champions from 1929 to 1958.
Is this the same Houlgate, or perhaps his son who played for USC Trojans in the 1931 and 1932 Rose Bowl games?
References: (see also and check...) - A Way With Words co-host Martha Barnette https://soundcloud.com/waywordradio/now-youre-cooking-with-gas
-
- Apr 2022
-
stackoverflow.com stackoverflow.com
-
PHP try/catch and fatal error
-
- Mar 2022
-
www.theguardian.com www.theguardian.com
-
Geddes, L., & correspondent, L. G. S. (2022, March 2). Scientists seek to solve mystery of why some people do not catch Covid. The Guardian. https://www.theguardian.com/world/2022/mar/02/scientists-seek-to-solve-mystery-of-why-some-people-do-not-catch-covid
-
- Jul 2021
-
stackoverflow.com stackoverflow.com
-
You can do this elegantly with throw/catch, like this:
-
In most languages, there is no clean equivalent for breaking out of a recursive algorithm that uses a recursive function. In Ruby, though, there is!
-
it's much faster—the stack frame does not have to be carried along the "thrown symbol", and no object is created. Lightweight nonlinear flow control.
-
Throw it's a more elegant way to use an exception-like system as a control flow.
-
- May 2021
-
github.com github.com
-
It's a chicken-and-egg-like problem: If we use module: 'commonjs', then if any TS files import ES Modules (indirectly in their dependency graph), then Node throws an error because CommonJS modules can not import ES Modules.
-
- Feb 2021
-
github.com github.com
-
Since we're not passing any inputs to ListAccounts, it makes sense to use .run! instead of .run. If it failed, that would mean we probably messed up writing the interaction.
-
-
github.com github.com
-
As a workaround, I guess I'll have to disable my strict CSP in development, but I'd prefer to keep it strict in development as well so that I ran into any CSP issues sooner...
-
-
sobolevn.me sobolevn.me
-
Literally, everything in this example can go wrong. Here’s an incomplete list of all possible errors that might occur: Your network might be down, so request won’t happen at all The server might be down The server might be too busy and you will face a timeout The server might require an authentication API endpoint might not exist The user might not exist You might not have enough permissions to view it The server might fail with an internal error while processing your request The server might return an invalid or corrupted response The server might return invalid json, so the parsing will fail And the list goes on and on! There are so maybe potential problems with these three lines of code, that it is easier to say that it only accidentally works. And normally it fails with the exception.
-
Exceptions are just like notorious goto statements that torn the fabric of our programs.
-
-
jrsinclair.com jrsinclair.com
-
As you can see, we end up with a lot of boilerplate if-statements. The code is more verbose. And it’s difficult to follow the main logic.
-
In JavaScript, we have a built-in language feature for dealing with exceptions. We wrap problematic code in a try…catch statement. This lets us write the ‘happy path’ in the try section, and then deal with any exceptions in the catch section. And this is not a bad thing. It allows us to focus on the task at hand, without having to think about every possible error that might occur.
-
And they are not the only way to handle errors.
-
In this article, we’ll take a look at using the ‘Either monad’ as an alternative to try...catch.
-
-
-
In the short term you may have the stamina to get up earlier, stay later, and out-work the demands you face. But the inverse equation of shrinking resources and increasing demands will eventually catch up to you, and at that point how you involve others sets the ceiling of your leadership impact.
-
- Jan 2021
-
redfin.engineering redfin.engineering
-
Oh, silly me, that won’t work. We can’t update index.html at all, so we certainly can’t remove the call to register!
-
-
github.com github.com
-
the behavior you want happen is actually a chicken and egg situation, you need to initialise FancyList in order to get the value for let:prop from the FancyList, however you can't initialise FancyList without the value of id which comes from within FancyList.
-
- May 2020
-
www.iubenda.com www.iubenda.com
-
if you lack the consent necessary to contact users, then you likely lack the consent needed to even email them to ask for consent.
-
-
-
Unfortunately, loading their code from their CDN is the only way those services permit their use.
-
-
github.com github.com
-
Mozilla does not permit extensions distributed through https://addons.mozilla.org/ to load external scripts. Mozilla does allow extensions to be externally distributed, but https://addons.mozilla.org/ is how most people discover extensions. The are still concerns: Google and Microsoft do not grant permission for others to distribute their "widget" scripts. Google's and Microsoft's "widget" scripts are minified. This prevents Mozilla's reviewers from being able to easily evaluate the code that is being distributed. Mozilla can reject an extension for this. Even if an extension author self-distributes, Mozilla can request the source code for the extension and halt its distribution for the same reason.
Maybe not technically a catch-22/chicken-and-egg problem, but what is a better name for this logical/dependency problem?
-
- Mar 2020
-
-
To complicate things further, if you classify your social-sharing-plugins-usage as required functionality, and those need to set their own 3rd party cookies (as they themselves classify those as required), hello to 3rd party cookies being set by default and no way for users to opt-out (except by turning them off via browser, which means the whole thing is redundant, might as well just instruct users to disable third party cookies if they don't want to participate in social sharing crap?)
-
-
security.googleblog.com security.googleblog.com
-
CAPTCHAs will be dead in the next 10 years, because computers will be better at solving them than any human.
-
-
complianz.io complianz.io
-
And this is where we can all see dark clouds forming: if Recaptcha is opt-in (as the GDPR requires) then all a spammer needs to do to bypass Recaptcha, is to not accept cookies, right?
-
-
www.oracle.com www.oracle.com
-
Also note that the first two opt out tools are currently cookie-based and prevent Oracle from using, sharing, or selling your personal information for interest-based advertising on the browser on which they are installed. As a result, the opt out will only function if your browser is set to accept third-party cookies and may not function where cookies are sometimes automatically disabled or removed (e.g., certain mobile devices and operating systems). If you delete cookies, change your browser settings, switch browsers or computers, or use another operating system, you will need to opt out again. Oracle does not use persistent, unique identifiers to revive a previously opted-out profile or deleted cookie.
-
-
-
Note that the scope of personal data is truly broad, which makes processing complex and tricky. So, even though, for instance, you employ anonymization in Google Analytics to get rid of all information that falls under this category, you’re still in a catch-22 situation. This is because GA stores a visitor online identifier in a cookie, and under the GDPR that file constitutes a piece of personal data. That means you still need to obtain consent from visitors to process their data.
-
- Jan 2020
-
www.reddit.com www.reddit.com
-
That's the problem with therapy: The people who really need help are often the onesnot trusting others (as a result of bad experiences)not recognizing they have a problem in the first placebeing too scared to open up (or leave the house)being too exhausted to goless likely to be able to afford it. (That's only an issue in countries without a proper health care system.)
-
- Dec 2016
-
www.tryscribble.com www.tryscribble.com
Tags
- RR (Risk Reversal)
- P (Promise)
- KD (Key Desire/Hot Button)
- PP (Problem or Pain)
- B (Benefit)
- IG (Instant Gratification)
- SP (Social Proof)
- CE (The Common Enemy)
- CTA (Call to Action)
- PAP (Painting a Picture)
- MBG (Money Back Guarantee)
- ITO (If > Then Opener)
- S (Scarcity)
- OL (Open Loop)
- CG (Curiosity Gap)
- AO (Addressing Objections)
- F (Feature)
- H (The Hook)
- WTC (What’s the Catch Addressed)
- ET (Emotional Trigger)
Annotators
URL
-
- May 2015
-
wiki.harvard.edu wiki.harvard.edu
-
Fundamental questions for the library revolve around issues of: stewardship (what types of annotations are appropriate for library ownership, vs. say a course platform), persistence (how long should different types of annotations be persisted and preserved), costs (who will fund annotation storage over time) access (what privacy and distribution controls need to be placed on access to annotations.)
-