- Nov 2023
-
github.com github.com
-
Capybara.string(response.body)
const $html = Cypress.$(body)
-
- Oct 2023
-
kirschsubstack.com kirschsubstack.com
-
Thank you. Steve, for raising the alarm on this catastrophe! One minor comment. It should be QC'ed, not QA'ed. Quality control is done first. Quality Assurance (QA) comes after QC. QA is basically checking the calculations and the test results in the batch records. I worked in QC and QA for big pharma for decades. I tried to warn people in early 2021 that there's no way the quality control testing could be done at warp speed. Nobody listened to me despite my decades of experience in big pharma!
"warp speed" sounds fancy, plus "its an emergency, we have no time"...
it really was just an intelligence test, a global-scale exploit of trust in authorities. (and lets be honest, stupid people deserve to die.)
problem is, they (elites, military, industry) seem to go for actual forced vaccinations, which would be an escalation from psychological warfare to actual warfare against the 95% "useless eaters".
personally, i would prefer if they would globally legalize serial murder and assault rifles, then "we the people" would solve the overpopulation. (because: serial murder is the only alternative to mass murder.) but they are scared that we would also kill the wrong people (their servants because they are evil or stupid). (anyone crying about depopulation should suggest better solutions. denying overpopulation is just another failed intelligence test.)
-
- Mar 2023
-
stackoverflow.com stackoverflow.com
-
As an aside, I think I now prefer this technique to Python for at least one reason: passing arguments to the decorator method does not make the technique any more complex. Contrast this with Python: <artima.com/weblogs/viewpost.jsp?thread=240845>
-
def document(f): def wrap(x): print "I am going to square", x f(x) return wrap @document def square(x): print math.pow(x, 2) square(5)
-
- Jan 2023
-
-
Diet YAML is a light weight version of YAML that removes much of the complex aspects of the mainline YAML specification.
-
- Nov 2022
-
-
Better option: https://github.com/hashie/hashie
-
-
github.com github.com
-
Mash is an extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended. It is intended to give the user easier access to the objects within the Mash through a property-like syntax, while still retaining all Hash functionality.
-
-
- Sep 2022
-
stackoverflow.com stackoverflow.com
-
an equivalent of R's signif function in Ruby.
-
- Aug 2022
-
github.com github.com
-
- Mar 2022
-
rom-rb.org rom-rb.orgROM1
-
mainstream way: ActiveRecord
-
-
riseup.net riseup.net
-
share.riseup.net — file upload (pastebin and imagebin).
-
- Feb 2022
-
github.com github.com
-
Replaces your Rails controllers, views and forms with meta programming. Considers routes.rb, ability.rb, current_user and does the right thing.
-
- Jan 2022
-
github.com github.com
-
Instead of render props, we use Svelte's slot props: // React version <Listbox.Button> {({open, disabled} => /* Something using open and disabled */)} </Listbox.Button> <!--- Svelte version ---> <ListboxButton let:open let:disabled> <!--- Something using open and disabled ---> </ListboxButton>
-
- Jun 2021
-
github.com github.com
-
There are many projects that does not use the master branch as default. For example, Next.js uses the canary branch, the npm CLI and many more other projects uses stuff like prod, production, dev, develop, release, beta, head.
-
-
developer.mozilla.org developer.mozilla.orgProxy1
-
get: function(target, prop, receiver) { return "world"; }
-
- May 2021
-
github.com github.com
-
Are you also tired and fed up with the bulkiness of jQuery, but also don't want to have to type document.querySelector("div").appendChild(document.createTextNode("hello")); just to add some text to an element?
happy middle/medium?
-
- Apr 2021
-
en.wikipedia.org en.wikipedia.org
-
The use of U+212B 'Angstrom sign', which was encoded due to round-trip mapping compatibility with an East-Asian character encoding, is discouraged, and the preferred representation is U+00C5 'capital letter A with ring above', which has the same glyph.
Is there a difference in semantic meaning between the two? And if so, what is it? 
-
-
stackoverflow.com stackoverflow.com
-
What is the equivalent of unbuffer program on Windows?
-
-
machinelounge.com machinelounge.com
-
Use a leveling drag instead of a grass seed roller If you’re smoothing the lawn to cultivate it, a leveling drag may suffice.
-
1. Use Plywood (alternative when laying sod) One of the most inexpensive alternatives to lawn rollers is that sheet of plywood lying around your home. Plus, it’s amazingly simple to use. Follow these steps to help your sod bond with the soil…. Step 1: Place a 4 ft. by 8 ft. piece of plywood on your new lawn. Step 2: Walk over it to press your sod solidly into the soil. We suggest that you invite a friend, if possible, to walk alongside you. The plywood distributes the applied weight evenly and will have an impact similar to a commercial lawn roller.
-
-
answers.yahoo.com answers.yahoo.com
-
What can I use in place of a lawn roller?I raked in some bags of top soil and reseeded a very large section of my lawn (a walkway was moved) but the area is very soft and you sink in about 4 inches if you step there.Is there something I can use instead of a lawn roller? I don't have one...
-
-
store.steampowered.com store.steampowered.com
-
It is also the first game I've seen whose icon for "mute" is not a crossed-out speaker/note, but a symbol for "pause" in musical notation...
-
- Feb 2021
-
www.morozov.is www.morozov.is
-
Do notation provides an alternative to bind, which also flattens the code.
-
-
-
{a: 1, b: 2, c: 3, d: 4} => {a:, b:, **rest} # a == 1, b == 2, rest == {:c=>3, :d=>4}
equivalent in javascript:
{a, b, ...rest} = {a: 1, b: 2, c: 3, d: 4}
Not a bad replacement for that! I still find javascript's syntax a little more easily readable and natural, but given that we can't use the same syntax (probably because it would be incompatible with existing syntax rules that we can't break for compatibility reasons, unfortunately), this is a pretty good compromise/solution that they've come up with.
-
-
github.com github.com
-
@adisos if reform-rails will not match, I suggest to use: https://github.com/orgsync/active_interaction I've switched to it after reform-rails as it was not fully detached from the activerecord, code is a bit hacky and complex to modify, and in overall reform not so flexible as active_interaction. It has multiple params as well: https://github.com/orgsync/active_interaction/blob/master/spec/active_interaction/modules/input_processor_spec.rb#L41
I'm not sure what he meant by:
fully detached from the activerecord I didn't think it was tied to ActiveRecord.
But I definitely agree with:
code is a bit hacky and complex to modify
Tags
- hard to understand
- switching/migrating to something different
- I agree
- evaluating software options
- flexibility
- too coupled/dependent
- active_interaction
- reform (Ruby)
- pointing out gaps/downsides/cons in competition/alternatives
- recommended software
- too complicated
- recommended option/alternative
Annotators
URL
-
-
github.com github.com
-
Set your models free from the accepts_nested_attributes_for helper. Action Form provides an object-oriented approach to represent your forms by building a form object, rather than relying on Active Record internals for doing this.
It seems that the primary/only goal/purpose was to provide a better alternative to ActiveRecord's accepts_nested_attributes_for.
Unfortunately, this appears to be abandoned.
-
-
github.com github.com
-
Set your models free from the accepts_nested_attributes_for helper. Active Form provides an object-oriented approach to represent your forms by building a form object, rather than relying on Active Record internals for doing this.
-
- Jan 2021
-
forums.theregister.com forums.theregister.com
-
+1 For Devuan here, running it on my home and work machines, and on my son's laptop, despite his IT teacher telling him to install a proper operating system like Windows 10....
-
- Dec 2020
-
github.com github.com
-
github.com github.com
-
Some devs prefer Svelte’s minimal approach that defers problems to userland, encouraging more innovation, choice, and fragmentation, and other devs prefer a more fully integrated toolkit with a well-supported happy path.
tag?: what scope of provided features / recommended happy path is needed?
-
- Nov 2020
-
github.com github.com
-
For use$ since svelte is never going to support actions for components, i designed something that reminds React hooks that will in some ways replace this feature.
Isn't that what use$ is trying to do already? How is that "something that reminds React hooks" any different? Will be interested to see...
-
@monkeythedev I am curious how do you "organize" your work - You forked https://github.com/hperrin/svelte-material-ui and https://github.com/hperrin/svelte-material-ui is not very active. Do you plan an independent project ? I hope the original author would return at some times, if not, i'll see
Tags
- react hooks
- maintenance status uncertain
- forked because no longer maintained
- Svelte: problem: use actions on component
- Svelte: action (use:)
- no good alternative
- maintainer is missing (uncertain if they plan to continue maintaining)
- avoid forking if possible
- alternative to:
- should they fork and create new alternative independent project?
- comparison
Annotators
URL
-
-
github.com github.com
-
gist.github.com gist.github.com
-
I'm excited for the RTM of webpack 2!
I assume this is just a more polite variant of RTFM?
-
-
imfeld.dev imfeld.dev
-
Converting Angular components into Svelte is largely a mechanical process. For the most part, each Angular template feature has a direct corollary in Svelte. Some things are simpler and some are more complex but overall it's pretty easy to do.
-
-
jonudell.info jonudell.info
-
http://jonudell.info/h/tag-rename-02.mp4
Most people would embed a YouTube video. Nice to see no dependency on 3rd-party service here.
-
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
FI:
I assume "FI" means "for instance"
-
-
github.com github.com
-
For event listeners we support the standard jsx naming convention onEventname (this is converted to on:eventname in svelte) as well.
-
-
-
I recommend folks use https://github.com/shama/bel instead of this package; we've been working hard on it for the past two years to make sure it has all the features you could want to write inline HTML. Hope it's good; closing for now!
-
-
github.com github.com
-
Hyperscript syntax for React.js markup
-
-
-
I've recently started playing with segmentio/deku, an alternative to React, and I'm also using Babel to transpile my js and jsx code.
-
-
github.com github.com
-
Deku is a library for rendering interfaces using pure functions and virtual DOM.
-
-
svelte.dev svelte.dev
-
This is the Svelte version of this example: https://codesandbox.io/s/reactivity-react-responds-to-changing-props-forked-d2j44?file=/src/Label.js
-
-
github.com github.com
-
They even named the main file
react.js
so when converting/migrating components from React you could (at least some of the time, perhaps) simply leave some of the imports as-is:import {createHooks, useRef} from './react';
-
-
-
The $: can also be used to trigger effects.
-
We can run effects when some data changes using watchEffect - it takes a function that runs whenever a reactive value used inside changes.
-
- Sep 2020
-
sapper.svelte.dev sapper.svelte.dev
-
page components can have an optional preload function that will load some data that the page depends on. This is similar to getInitialProps in Next.js or asyncData in Nuxt.js.
-
-
shipshape.io shipshape.io
-
-
github.com github.com
-
I don't plan to push this to npm, cause I'm in favour with Deno's approach.
Tags
Annotators
URL
-
-
daveceddia.com daveceddia.com
-
-
React doesn’t provide something like ng-class, but there is a great library called classnames that does the same and more. Install it:
-
- Aug 2020
-
unix.meta.stackexchange.com unix.meta.stackexchange.com
-
I went against the grain, applying other tools that people have written over the years to directly perform the job at hand which do not involve entering a program for awk or a shell to run, with answers like https://unix.stackexchange.com/a/574309/5132 and https://unix.stackexchange.com/a/578242/5132 . Others have done similar. https://unix.stackexchange.com/a/584274/5132 and https://unix.stackexchange.com/a/569600/5132 are (for examples) answers that show alternative tools to answers employing shell script and (yet again) awk programs, namely John A. Kunze's jot and rs (reshape), which have been around since 4.2BSD for goodness' sake!
-
- Jul 2020
-
www.graphitedocs.com www.graphitedocs.comGraphite1
- Jun 2020
-
github.com github.com
-
No need for DatabaseCleaner (rolling back transactions are usually faster than truncate).
-
-
opensource.com opensource.com
-
Using OpenBTS, which we will be including in FreedomBox soon, and with cheap additional hardware, a FreedomBox can talk directly to GSM handsets, to provide alternatives to commercial mobile services.
-
- May 2020
-
docs.gitlab.com docs.gitlab.com
-
Not merge the values of the keys.
This is one of the biggest limatations of
<<: *anchor
: it overwrites values of keys. It's too heavy-handed and therefore of limited use. You can only use it if you don't mind keys getting overwritten (such as if you are going to overwrite the keys below the<<:
.). -
GitLab will perform a reverse deep merge based on the keys
-
It’s an alternative to using YAML anchors and is a little more flexible and readable
-
-
www.simplechurchathome.com www.simplechurchathome.com
-
examples, listing both the conventional systems and their counterpart systems: Conventional schooling Home schooling Encyclopedia Britannica Wikipedia Microsoft Office Open Office Taxicabs Uber Hotel chains Airbnb Big-box stores Ebay National currency Cryptocurrency
-
- Apr 2020
-
www.popularmechanics.com www.popularmechanics.com
-
Take a moment to consider the alternative. No, not the IT department's fantasy world, that never-gonna-happen scenario where you create a strong, unique password for every account, memorize each one, and refresh them every few months. We both know it's not like that. The reality is that in your attempts to handle all those passwords yourself, you will commit the cardinal sin of reusing some. That is actually far more risky than using a password manager. If a single site that uses this password falls, every account that uses it is compromised.
-
-
-
Non-traditional navigation styles can be a fun way to break up some of the same old design patterns.
See the really creative/fun example image above.
-
-
www.techrepublic.com www.techrepublic.com
-
there's no reasonable way to communicate effectively with the less technically minded without acquiescing to the nontechnical misuse of the term "hacker"
-
The more easily relabeled of the two uses of the term "hacker" is the malicious security cracker: it is not only the more recent phenomenon to acquire that label, but also the one whose meaning is most easily evoked by an alternative term. This is why, when you read an article of mine that talks about malicious security crackers, I use the term "malicious security cracker"
Tags
- language: misuse of word
- "hacker" vs. "cracker"
- communication
- alternative to mainstream way
- acquiescing/giving in
- popular misconceptions
- communicating with less technical people
- hoping/trying to convince others that your view/opinion/way is right by consistently sticking to it despite many being ignorant/mistaken/unaware/holding different opinion
- language
Annotators
URL
-
-
github.com github.com
-
There are a couple of similar packages for anyone who does not want to completely accept standard:
-
-
github.com github.com
-
Not everybody uses rubygems as their package management system. If this sounds odd to you, read https://gist.github.com/54177.
Tags
Annotators
URL
-
- Mar 2020
-
Tags
Annotators
URL
-
-
www.iubenda.com www.iubenda.com
-
27$/year
They spell it "27$/year" instead of "$27/year". I love it that they bucked the useless convention of putting $ sign first and did it the way that makes more sense. We've all had that thought, why do we say it "27 dollars" but write it, "dollars 27". It just doesn't make sense.
-
-
matomo.org matomo.org
-
It’s the ethical alternative to Google Analytics.
-
-
www.wired.com www.wired.com
-
I usually write in Google's online word processor Google Docs, even when noting the company's shortcomings. This article is different: it was drafted in a similar but more private service called Graphite Docs.
-
-
matomo.org matomo.org
-
Source at: https://github.com/matomo-org/matomo
-
-
www.quora.com www.quora.com
-
If these asset owners regarded the “robots” as having the same status as guide dogs, blind people or default human citizens, they would undoubtedly stop imposing CAPTCHA tests and just offer APIs with reasonable limits applied.
-
-
github.com github.com
-
Q. Why does Rubinius not support frozen and tainted? A. Rubinius has better features; frozen and tainted are considered harmful. To elaborate... Both frozen and tainted depend on strewing checks throughout the source code. As a classic weak-link system, only one of those checks needs to be misplaced for the guarantees offered by either to fail. Since the number of checks is high, and as new code is written new checks need to be considered, the features inherently constitute unbounded complexity and unbounded risk.
-
-
-
You could try AoE (ATA over Ethernet, very fast since it's Layer 2 protocol). SSHfs is yet another option (fast setup and encrypted by default). Or iSCSI (wich is tricky to setup).
-
-
github.com github.com
-
stylemixthemes.com stylemixthemes.com
-
This might not be the most user-friendly solution. But it’s certainly creative and something different from your typical captcha systems. Pennyauth aims to verify your users by asking them to pay $0.01 per login. Payments are processed using QUID — and users can submit payment in as little time as it takes for them to grab their credit card.
-
-
thepugautomatic.com thepugautomatic.com
-
If you ever need to work with external translators, it’s a bit of a pain sending both your YML files and a bunch of views like index.en.html.erb. For one thing, you need some code to find all those files and send them, and put them back after receiving the translations. For another, your translator must respect the markup and code of the template, and know not to translate them. And if you want to use tools like WebTranslateIt, it’s easier to stick to YML.
Good point. Better to store translations in your I18n backend in the same place as your subject translations, etc. (which by default is in YAML file).
-
- Dec 2019
-
github.com github.com
-
ReST
"ReST" instead of "REST". I like how this way matches the case of the actual phrase that it's standing in for "Representational State Transfer", so you can better tell which letters are the beginning of words (all but "e").
-
-
github.com github.com
-
Here are a few common cases where you might want to try something else:
-
- Nov 2019
-
github.com github.com
-
Revery is like flutter in that it does not use native widgets.
-
Today, Electron is one of the most popular tools for building desktop apps - using an HTML, JS, CSS stack. However, it has a heavy footprint in terms of both RAM and CPU - essentially packing an entire browser into the app.
-
-
github.com github.com
-
REST and GraphQL are wonderful tools to create an API that is meant to be consumed by third parties. Facebook's API, for example, is consumed by ~200k third parties. It is no surprise that Facebook is using (and invented) GraphQL; a GraphQL API enables third parties to extensively access Facebook's social graph enabling them to build all kinds of applications. For an API with that many consumers, GraphQL is the fitting tool. But, to create an internal API (an API developed and consumed by code written by the same organization), RPC offers a simpler and more powerful alternative. Large companies, such as Netflix, Google and Facebook, are starting to replace REST/GraphQL with RPC for their internal APIs. Most notably with gRPC which is getting popular in the industry.
-
- Sep 2019
-
github.com github.com