- Last 7 days
-
stanford-jblp.pubpub.org stanford-jblp.pubpub.org
-
how to manage open source technology that—by design—involves highly autonomous software.
Manage open source tech that entails autonomous software.
-
-
-
Det er ti år siden selskapet lanserte jordskruene som foreløpig selges i 12 land. Salget går strykende – ifølge Alm stiger omsetningen med rundt femti prosent hvert år.
Her har de funnet en genial løsning, vil tro de har vært i bransjen tidligere også og så løsningen på et problem som gjør ting mer tidseffektivt for folk.
-
- Jul 2022
-
stackoverflow.com stackoverflow.com
-
A more conservative workaround is find the gems that are causing issues and list them on the top of your Gemfile.
good solution ... except that it didn't help/work
-
-
discuss.rubyonrails.org discuss.rubyonrails.org
-
Overriding the ActiveStorage controllers to add authentication or customize behavior is a bit tedious because it requires either: using custom routes, which means losing the nice url helpers provided by active storage copy pasting the routes in the application routes.rb, which is not very DRY.
-
- May 2022
-
www.usmcu.edu www.usmcu.edu
-
A bottom-up approach involves aiming for maximum participation at a society-wide level. While this relates to achieving “mass and speed” of response, it also connects to psychological and philosophical research on the need for belonging and agency. One way a bottom-up approach can achieve maximum participation is through asking individuals, “How do you help us win?” or “How do you help us reach our destination of safe Earth?” This differs from most employment circumstances that issue top-down-directed work. It is anticipated that surprising answers will emerge, which allows people to align their aptitude and best skills to the mission. Two examples follow: Retired elite athletes have skills in goal setting, visualizing success, and motivating action. They could be employed as ecocoaches, supporting teams that are working on difficult transition tasks or leading health and fitness programs for the community. An elderly woman loves exploring thrift shops. She might contribute in circular economy and local recycling programs.
Indyweb harnesses the wisdom of the crowd. By providing a global space for meaningful dialogue, exchange and sharing, a diversity of solutions will emerge
-
- Apr 2022
-
-
three steps required to solve the all-importantcorrespondence problem. Step one, according to Shenkar: specify one’s ownproblem and identify an analogous problem that has been solved successfully.Step two: rigorously analyze why the solution is successful. Jobs and hisengineers at Apple’s headquarters in Cupertino, California, immediately got towork deconstructing the marvels they’d seen at the Xerox facility. Soon theywere on to the third and most challenging step: identify how one’s owncircumstances differ, then figure out how to adapt the original solution to thenew setting.
Oded Shenkar's three step process for effective problem solving using imitation: - Step 1. Specify your problem and identify an analogous problem that has been successfully solved. - Step 2. Analyze why the solution was successful. - Step 3. Identify how your problem and circumstances differ from the example problem and figure out how to best and most appropriately adapt the original solution to the new context.
The last step may be the most difficult.
The IndieWeb broadly uses the idea of imitation to work on and solve a variety of different web design problems. By focusing on imitation they dramatically decrease the work and effort involved in building a website. The work involved in creating new innovative solutions even in their space has been much harder, but there, they imitate others in breaking the problems down into the smallest constituent parts and getting things working there.
Link this to the idea of "leading by example".
Link to "reinventing the wheel" -- the difficulty of innovation can be more clearly seen in the process of people reinventing the wheel for themselves when they might have simply imitated a more refined idea. Searching the state space of potential solutions can be an arduous task.
Link to "paving cow paths", which is a part of formalizing or crystalizing pre-tested solutions.
-
-
-
Today, many web developers are even using JavaScript's native module syntax, but combining it with bare import specifiers, thus making their code unable to run on the web without per-application, ahead-of-time modification. We'd like to solve that, and bring these benefits to the web.
-
-
stackoverflow.com stackoverflow.com
-
This would work if your transaction only wraps a single model's save operation. I need to wrap at least Node + Version + Attachment
looking for a callback that you can register to happen after current transaction is committed, not just after_commit of model -- though actually, that might fire precisely when current transaction is committed, too (except that it might only get triggered for nested transactions, not the top-most transaction), so it could maybe go there ... but I think the problem is just that it doesn't belong there, because it's not specific to the model...
I guess the OP said it best:
I am not looking for model based after commits on update/create/etc, I want to be able to dynamically define a block that will be executed only if the current (top-most) transaction passes:
-
-
sambleckley.com sambleckley.com
-
Making one Comment query per Post is too expensive; it’s N+1 queries (one to fetch the posts, N to fetch the comments). You could use includes to preload all the comments for all the posts, but that requires hydrating hundreds of thousands of records, even though you only need a few hundred for your front page. What you want is some kind of GROUP BY with a LIMIT on each group — but that doesn’t exist, either in Activerecord nor even in postgres. Postgres has a different solution for this problem: the LATERAL JOIN.
-
- Mar 2022
-
hackeducation.com hackeducation.com
-
I mean there’s no single answer that will solve all of our future problems. There’s no magic bullet. Instead there are thousands of answers — at least. You can be one of them if you choose to be.'
-
-
www.3dpoolsandlandscape.com www.3dpoolsandlandscape.com
-
A problem here would be having mosquitos in and outside your house. The solution is these mosquito systems that they install.
Tags
Annotators
URL
-
- Feb 2022
-
www.npr.org www.npr.org
-
UT-Austin had toughened its ability, through software, to detect cheating.
I agree that universities should use websites that monitor students during exams to reduce cheating as it can be unfair to students who do not cheat and encourage others to cheat.
-
-
www.pbs.org www.pbs.org
-
Without a doubt, the first would be Barack Obama
If we were in the time that Barak Obama was still president this would be great for him to watch. This could be part of the solution to have less segregation in places, because this film would make him more aware of the segregation issues in neighborhoods of America.
-
But if you can’t show them what that means, on a human level, you’ve missed your opportunity as a filmmaker.
I think documentaries, podcasts, books, any form of media, if done right can shed light on important issues that people might have otherwise not known. People know housing disparities exist, but when you force them to see it i think real change can happen.
-
-
www.trustfirms.com www.trustfirms.com
-
If you face any challenges while developing an effective live streaming platform, you can go through the great selection of the world’s best Video on Demand Solutions.
-
- Jan 2022
-
-
Having a consistent and predictable pattern is key to the elegance.
-
That's like the example i wrote, and i think it's very ugly. It's annoying when frameworks are very elegant in demos and presentations but then that elegance disappear when you have to write real world code.
-
Boilerplate is only boilerplate if it's the same everywhere, which it shouldn't be.
-
-
github.com github.com
-
Its goal is to solve the problems with downloading templates to start your app from:
-
-
twitter.com twitter.com
-
ReconfigBehSci. (2021, October 20). RT @ProfJohnDrury: Sustaining mutual aid and community support groups: Covid-19 and beyond Free online event, 12.30pm November 3rd [Tweet]. @SciBeh. https://twitter.com/SciBeh/status/1453284900711370756
-
- Dec 2021
-
-
How to Create a Micro-Job Marketplace Like Fiverr: Features, Cost, TimelineTimurTech JournalistMarketplaceProduct GuideHomeBlogEntrepreneurshipHow to Create a Micro-Job Marketplace Like Fiverr: Features, Cost, TimelinePublishedNov 19, 2021UpdatedNov 19, 202120 min readIt’s no secret that the COVID-19 pandemic has led many people to reconsider their jobs. Now, freelance as an alternative career path steadily becomes a reality. 50.9% of the U.S. workforce will be freelancing by 2027, a Statista survey shows. Businesses like Fiverr and fellow gig-focused companies rode the wave. To be more precise, they adopted a model allowing the hire of independent contractors without any legwork. How do such tools set the new trend in powering freelancers? In this article, we share proven methods geared towards freelance website growth. Moreover, you will get a glimpse of how to create a micro-job marketplace like Fiverr of your own.
It’s no secret that the COVID-19 pandemic has led many people to reconsider their jobs. Now, freelance as an alternative career path steadily becomes a reality. 50.9% of the U.S. workforce will be freelancing by 2027, a Statista survey shows.
Businesses like Fiverr and fellow gig-focused companies rode the wave. To be more precise, they adopted a model allowing the hire of independent contractors without any legwork. How do such tools set the new trend in powering freelancers?
In this article, we share proven methods geared towards freelance website growth. Moreover, you will get a glimpse of how to create a micro-job marketplace like Fiverr of your own.
Tags
- Ruby on Rails marketplace
- micro-job site
- website like Fiverr
- Codcia blog
- building marketplace
- custom software
- online marketplace development
- marketplace development
- freelance marketplace
- entrepreneurship
- micro-job marketplace
- cost to build marketplace
- freelance website
- Fiverr
- micro-job website
- How to Create a Micro-Job Marketplace Like Fiverr
- two-sided marketplace
- online marketplace
- freelance portal
- Codica
- custom solution
- e-markteplace
- marketplace website
Annotators
URL
-
- Nov 2021
-
stackoverflow.com stackoverflow.com
-
Its good to know how to implement it. I would prefer to use a gem myself.
-
-
realtyassistant.in realtyassistant.in
-
Looking for a property?
Do you want to buy property in India? Are you looking for best-in-class residential and commercial properties for sale in Delhi NCR, Lucknow, Pune, Mumbai, Bangalore, Gurgaon, and Noida? Well, you have landed in the correct place.
Tags
- Real Estate Advisory Company
- Real Estate Consulting Firms In India
- Property Consultant in Noida
- Property Management Services in India
- Real Estate Consultant Company
- End to end property Management Solution
- Property Management Solutions
- Real Estate Property Consultants Noida
- Personal Property Manager Noida
- Personal Real Estate Manager
- Real Estate Management Services
- Residential and Commercial Real Estate
- Real Estate Advisory Firms
- Real Estate Advisory Firms in India
- Real Estate Property Management Services
- 360 Property Management
- Real Estate Consultants Noida
Annotators
URL
-
-
www.codica.com www.codica.com
-
Do you have a high-quality and almost irresistible application in your bag? Your potential customers will not enjoy your app to the full if they cannot access it easily and quickly. That is why you need to consider how to choose the right SaaS hosting provider carefully. In this article, we will review different SaaS cloud hosting options and their strengths and weaknesses. Read on to find out how to make hosting for your SaaS application reliable, cost-effective, and scalable.
Do you have a high-quality and almost irresistible application in your bag? Your potential customers will not enjoy your app to the full if they cannot access it easily and quickly. That is why you need to consider how to choose the right SaaS hosting provider carefully.
In this article, we will review different SaaS cloud hosting options and their strengths and weaknesses. Read on to find out how to make hosting for your SaaS application reliable, cost-effective, and scalable.
-
-
www.codica.com www.codica.com
-
4 Best Payment Solutions for Online MarketplacesDmitryCEOMarketplaceHomeBlogEntrepreneurship4 Best Payment Solutions for Online MarketplacesPublishedAug 7, 2020UpdatedAug 7, 20209 min readDid you know that payment solutions for online marketplaces can shape your e-commerce business and its success? Thus, Uber succeeded in its global expansion right after it switched to Braintree. In early Uber’s scaling, even a dollar-euro currency conversion wasn’t available. Now, with Braintree, it processes mobile payments in 130 currencies in 80+ countries. Of course, each marketplace faces its own payment challenges. So, you should rely on a payment solution with the features vital right for your e-commerce platform. To identify them, let’s dig deeper into two-sided marketplace payment processing, and analyze the best payment gateways for marketplaces.
Did you know that payment solutions for online marketplaces can shape your e-commerce business and its success? Thus, Uber succeeded in its global expansion right after it switched to Braintree.
In early Uber’s scaling, even a dollar-euro currency conversion wasn’t available. Now, with Braintree, it processes mobile payments in 130 currencies in 80+ countries.
Of course, each marketplace faces its own payment challenges. So, you should rely on a payment solution with the features vital right for your e-commerce platform. To identify them, let’s dig deeper into two-sided marketplace payment processing, and analyze the best payment gateways for marketplaces.
Tags
- ecommerce website
- emarketplace
- payment solution
- startup
- peer to peer
- gateway
- custom software
- marketplace development
- multi-vendor
- ecommerce
- web development
- entrepreneurship
- e-markteplace
- peer-to-peer
- P2P
- payment gateway
- two-sided marketplace
- online marketplace
- Codica
- custom solution
- commerce platform
- marketplace website
Annotators
URL
-
-
www.codica.com www.codica.com
-
Spree Commerce: How to Quickly Build an Ecommerce WebsiteAlinaE-Commerce & SaaS StrategistMarketplaceProduct GuideHomeBlogEntrepreneurshipSpree Commerce: How to Quickly Build an Ecommerce WebsitePublishedAug 31, 2020UpdatedAug 31, 202011 min readThe hype around Amazon and eBay has driven up the demand for marketplace development services. Business owners turn to software consultancies to launch a thriving e-commerce website. Here comes a question: what do they need to get the most successful online marketplace website? We believe that a profitable e-commerce project starts with the right tech stack. The main qualities that a modern marketplace should possess are scalability, easy customizations, and flexibility. Therefore, it’s important to choose the technologies that will help these qualities.
The hype around Amazon and eBay has driven up the demand for marketplace development services. Business owners turn to software consultancies to launch a thriving e-commerce website. Here comes a question: what do they need to get the most successful online marketplace website?
We believe that a profitable e-commerce project starts with the right tech stack. The main qualities that a modern marketplace should possess are scalability, easy customizations, and flexibility. Therefore, it’s important to choose the technologies that will help these qualities.
Tags
- software agency
- software development
- ecommerce website
- marketplace
- startup
- building marketplace
- custom software
- spree commerce
- marketplace development
- multi-vendor
- ecommerce
- web development
- entrepreneurship
- product guide
- online marketplace
- Codica
- custom solution
- e-markteplace
- marketplace website
Annotators
URL
-
-
svelte.school svelte.school
-
this action is re-usable. Anytime you want a typewriter effect added to an element, you just import the function and apply it. So elegant.
-
-
psyarxiv.com psyarxiv.com
-
Ozernov-Palchik, O., Olson, H., Arechiga, X., Kentala, H., Solorio-Fielder1, J. L., Wang, K. L., Torres, Y. C., Gardino, N. D., Dieffenbach, J. R., & Gabrieli, J. (2021). Implementing Remote Developmental Research: A Case Study of an RCT Language Intervention During COVID-19. PsyArXiv. https://doi.org/10.31234/osf.io/k9632
-
-
www.varvet.com www.varvet.com
-
I am firmly convinced that asserting on the state of the interface is in every way superior to asserting on the state of your model objects in a full-stack test.
-
- Oct 2021
-
www.npr.org www.npr.org
-
it's important to pay attention to what police are doing during protests
this can solve a lot of problems.
-
-
-
First, we have to resist concluding that condemning racist slurs is all that is required to end discrimination.
this could be a solution
-
In the food industry, for example, there is widely accepted racial hierarchy in high-end restaurants.
this could be a solution to accept everyone and stop discrimination
-
-
psyarxiv.com psyarxiv.com
-
Tanis, C., Nauta, F., Boersma, M., Steenhoven, M. van der, Borsboom, D., & Blanken, T. (2021). Practical behavioural solutions to COVID-19: Changing the role of behavioural science in crises. PsyArXiv. https://doi.org/10.31234/osf.io/q349k
-
-
psyarxiv.com psyarxiv.com
-
Puryear, C., & Gray, K. (2021). Using “Balanced Pragmatism” in Political Discussions Increases Cross-Partisan Respect. PsyArXiv. https://doi.org/10.31234/osf.io/yhpdt
-
-
uclpartners.com uclpartners.com
-
Involving patients from the very beginning for COVID rehabilitation. (n.d.). UCLPartners. Retrieved September 2, 2021, from https://uclpartners.com/blog-post/involving-patients-from-the-very-beginning-for-covid-rehabilitation/
-
- Sep 2021
-
stackoverflow.com stackoverflow.com
-
This works in my application where there's only one shadow-dom at the time, but it's not a generic solution.
-
-
www.excellentwebworld.com www.excellentwebworld.com
-
With the help of cutting-edge technologies, you can implement smart waste management that helps to reduce the costs, and increase operational efficiency. Bookmark this article to learn more about smart waste management.
-
- Aug 2021
-
stackoverflow.com stackoverflow.com
-
+1 for the creative same-origin+redirect approach
-
-
www.codica.com www.codica.com
-
Question and Answer Website Development: Functionality and Best PracticesTimur YilmazTech JournalistMarketplaceProduct GuideHomeBlogEntrepreneurshipQuestion and Answer Website Development: Functionality and Best PracticesAug 25, 202117 min readSocial media is a jumping-off point for many people to get informed. Yet, on such platforms, users are more likely to voice opinions rather than share knowledge. That's when the websites to ask questions become a good help. For example, Quora's monthly active user base grew from 200 million to 300 million in 2018 alone. In 2021, the 6.6 million downloads of the Reddit app represented a 128% increase over the previous year. What is a selling point for this kind of platform and how to build one? How do they remain beneficial in a years-long run? How Q&A websites managed to survive social network dominance? Read on to find out.
Social media is a jumping-off point for many people to get informed. Yet, on such platforms, users are more likely to voice opinions rather than share knowledge.
That's when the websites to ask questions become a good help. For example, Quora's monthly active user base grew from 200 million to 300 million in 2018 alone. In 2021, the 6.6 million downloads of the Reddit app represented a 128% increase over the previous year.
What is a selling point for this kind of platform and how to build one? How do they remain beneficial in a years-long run? How Q&A websites managed to survive social network dominance? Read on to find out.
-
-
destroytoday.com destroytoday.com
-
I know, I know—needing to use JavaScript when writing CSS does feel like defeat, but unless there’s a vwWithoutTheScrollbarPlease unit in CSS, you’re going to need use JavaScript.
-
Maybe someday, we’ll get a viewport unit that doesn’t factor in the scrollbars, but until then, we can only work around the current one.
-
-
github.com github.com
-
I'd like to update my proposal to be more general, following your answer on Stack Overflow and hack mentioned at the top of #14520
-
-
stackoverflow.com stackoverflow.com
-
This will obviate the need for a helper function of any kind.
-
- Jul 2021
-
github.com github.com
-
curl -o ~/.config/direnv/helpers.sh
-
-
www.sitepoint.com www.sitepoint.com
-
SvelteKit offers a very elegant solution for this — the load function. The load function can run both on the client and on the server side and in both cases will be executed before the component renders.
-
-
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!
-
-
unix.stackexchange.com unix.stackexchange.com
-
Any tips on how to make it exclusive (for any generic situation, not just OP's)?
-
-
stackoverflow.com stackoverflow.com
-
x = -3 "++-"[x <=> 0] # => "-" x = 0 "++-"[x <=> 0] # => "+" x = 3 "++-"[x <=> 0] # => "+"
-
-
medium.com medium.com
-
Bash is a wonderful and terrible language. It can provide extremely elegant solutions to common text processing and system management tasks, but it can also drag you into the depths of convoluted workarounds to accomplish menial jobs.
-
- Jun 2021
-
naildrivin5.com naildrivin5.com
-
It’s easy to create bugs because the environment is a somewhat degenerate settings database.
-
-
stackoverflow.com stackoverflow.com
-
I don't think it is too clever. I think it solves the problem idiomatically. I.e., it uses reduce, which is exactly correct. Programmers should be encouraged to understand what is correct, why it is correct, and then propagate. For a trivial operation like average, true, one doesn't need to be "clever". But by understanding what "reduce" is for a trivial case, one can then start applying it to much more complex problems. upvote.
-
- May 2021
-
github.com github.com
-
Non-solutions Start replacing process.env[ with ({})[ if you're sadistic
Tags
Annotators
URL
-
-
syslog.ravelin.com syslog.ravelin.com
-
Before we dive into the details of the actual migration, let’s discuss the theory behind it.
-
-
htmlpreview.github.io htmlpreview.github.io
-
Every time filter-repo is run, files are created in the .git/filter-repo/ directory. These files overwritten unconditionally on every run.
Tags
Annotators
URL
-
-
twitter.com twitter.com
-
ReconfigBehSci. (2021, May 4). RT @covidoneyearago: One year ago today: The WHO reports 81,454 new cases of COVID-19, and raises €7.4 billion for the Access to COVID-19 T… [Tweet]. @SciBeh. https://twitter.com/SciBeh/status/1389980090813980674
-
-
twitter.com twitter.com
-
Kit Yates. (2021, May 1). Just hypothetically, if it were possible, if you could go back to January 2020 would you prefer to do what New Zealand did or what the U.K. did to ‘manage the pandemic’? [Tweet]. @Kit_Yates_Maths. https://twitter.com/Kit_Yates_Maths/status/1388375916900933633
-
-
-
That image only contains 200 pixels horizontally, but the browser stretches it to 400px wide or even farther!Luckily, you’ll see there’s an easy “fix” there at the end: our old good friend the width attribute!<img src="example.gif", srcset="example.gif 200w" sizes="(min-width: 400px) 400px, 100vw" width="200" /* <=== TA-DA! */ class="logo">As long as you can specify the width attribute so it reflects the true maximum size of your largest image, you won’t run into this problem of having sizes make your image wider than it naturally should go.
-
-
www.frontiersin.org www.frontiersin.org
-
Trout, L. J., & Kleinman, A. (2020). Covid-19 Requires a Social Medicine Response. Frontiers in Sociology, 5. https://doi.org/10.3389/fsoc.2020.579991
-
- Apr 2021
-
stackoverflow.com stackoverflow.com
-
class AuthConstraint def initialize(&block) @block = block || ->(_) { true } end def matches?(req) user = current_user(req) user.present? && @block.call(user) end def current_user(req) User.find_by_id(session[:user_id]) end end This is a flexible approach to defining route access based on any desired variable (roles, auth, etc...)
Good solution, and might be needed if you want to base routes on roles, etc. — but this one is even easier if all you need is for it to be conditional based on signed in or not (because devise provides authenticated helper):
-
- Mar 2021
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
A proposal to specify the path for bury with classes as values of a hash arg: {}.bury(users: Array, 0 => Hash, name: Hash, something: 'Value') # {user: [{name: {something: 'Value'}]} So all absent nodes could be created via klass.new
Didn't understand it at first, but now I think it's a pretty clever/decent solution.
Just a bit more verbose than one might like...
At first I had reservations about the fact that this requires you to pass a hash ... or rather, once you start using a hash as your "list", you can't just "switch back" to an array (a "problem" I've noticed in RSpec, where you have some tags that are symbols, and some that are hashes: you have to list the symbols first:
describe 'thing', :happy_path, driver: :chrome
):{}.bury(users: Array, 0, 'Value')
But I think that's okay in practice. Just use a hash for all "elements" in your list:
{}.bury(users: Array, 0 => 'Value')
-
A one-liner alternative for hash-only cases can be implemented using Enumerable#reduce: root = {} [:a, :b, :c].reduce(root){@1[@2]||={}}[:d] = 'E' # root => {:a=>{:b=>{:c=>{:d=>"E"}}}}
-
I think the issues/problems specified in the comments are not present with a Hash-only implementation. :) I would be supportive of re-considering this feature just for use with a Hash, where I believe 80% of the real-life use cases would (and do) exist. I have encountered this need before in the wild, but not with Arrays.
Tags
- can't support everything / all cases
- Ruby: core
- I agree
- objects/hashes
- solving/handling the general case
- ruby: core extensions: hash
- one-liners
- simple solution
- interesting approach/solution
- solving/handling specific case instead of the general case because general solution would be too hard/complex
Annotators
URL
-
-
www.jackfranklin.co.uk www.jackfranklin.co.uk
-
but I like that Svelte comes with a good CSS story out the box.
comes with a good CSS story out the box
-
-
twitter.com twitter.com
-
Prof. Devi Sridhar. (2020, March 25). We will be stuck in an endless cycle of lockdown/release for next 18 months, if we do not start mass testing, tracing, & isolating those who are carriers of the virus while pursuing rapid research for antiviral treatment or vaccine. This is the message the public needs to hear. [Tweet]. @devisridhar. https://twitter.com/devisridhar/status/1242743618986745861
-
-
askubuntu.com askubuntu.com
-
Given the deskopen script, you can use a reference to it as the shebang line in a .desktop file
-
This is the only answer that does not require manually parsing the .desktop file, so it's the most sane (and safe) approach.
-
-
unix.stackexchange.com unix.stackexchange.com
-
(xdg-open seems to be supposed to be the universal one...)
-
-
askubuntu.com askubuntu.com
-
xdg-open should do the same thing - actually, it will call gnome-open, or kde-open, or whatever, depending on your desktop environment. Thus it's more portable.
-
The advantage is that you can use gnome-open for almost all file-types, URIs and directories. It's one command to learn, instead of trying to remember about obscure commands like sensible-browser
-
-
www.chevtek.io www.chevtek.io
-
Write modules that do one thing well. Write a new module rather than complicate an old one.
.
-
-
en.wikipedia.org en.wikipedia.org
-
Refactoring is a means of addressing the problem of software rot. It is described as the process of rewriting existing code to improve its structure without affecting its external behaviour.
-
-
en.wikipedia.org en.wikipedia.orgPyPy1
-
PyPy uses a technique known as meta-tracing, which transforms an interpreter into a tracing just-in-time compiler.
-
-
github.com github.com
-
Maybe it would be simple to always add that line, and always shift the source maps by 1.
-
-
github.com github.com
-
richard.schneeman+no-recruiters@gmail.com
Tags
Annotators
URL
-
-
github.com github.com
-
The way we do it currently is by calling load from inside of load, via different "pipelines" and processors which is quite elegant and completely impossible to work with.
-
-
css-tricks.com css-tricks.com
-
We’re not really using placeholder in our demo, but a value of a single space works:
-
:placeholder-shown is super useful for us here! It’s basically the secret selector for testing if an input currently has a value or not.
-
-
github.com github.com
-
var md = require('markdown-it')('commonmark');
first sighting: require(...)(...)
How would that work with import? Not as fluidly but...
import markdownIt from 'markdown-it' let md = markdownIt('commonmark')
-
- Feb 2021
-
github.com github.com
-
It is based on the idea that each validation is encapsulated by a simple, stateless predicate that receives some input and returns either true or false.
-
-
trailblazer.to trailblazer.to
-
Adding ends to an activity is a beautiful way to communicate more than two outcomes to the outer world without having to use a state field in the ctx. It also allows wiring those outcomes to different tracks in the container activity.
-
-
www.schneems.com www.schneems.com
-
Instead of having this confusing maze of lambdas, regexes, and strings, we could, in theory, introduce a single entry point of configuration for Sprockets to use, and in that file declare all assets we wanted to compile. Well, that’s exactly what the manifest.js file is.
-
One way to alleviate this configuration fatigue is by making configuration consistent and composable. That’s what Sprocket’s new “manifest.js” seeks to do.
-
-
sobolevn.me sobolevn.me
-
Not all cases can be covered and easily restored. And sometimes when we will reuse this function for different use-cases we will find out that it requires different restore logic.
-
But why do we return 0? Why not 1? Why not None? And while None in most cases is as bad (or even worse) than the exceptions, turns out we should heavily rely on business logic and use-cases of this function.
-
So, the sad conclusion is: all problems must be resolved individually depending on a specific usage context. There’s no silver bullet to resolve all ZeroDivisionErrors once and for all. And again, I am not even covering complex IO flows with retry policies and expotential timeouts.
-
-
dry-rb.org dry-rb.org
-
Monads provide an elegant way of handling errors, exceptions and chaining functions so that the code is much more understandable and has all the error handling, without all the ifs and elses.
-
-
jrsinclair.com jrsinclair.com
-
blog.logrocket.com blog.logrocket.com
-
One thing I really like about this style is the elegance and readability it provides to your codebase.
-
-
www.nytimes.com www.nytimes.com
-
I wanted to keep reviewing restaurants, but I didn’t want to go back into their dining rooms both because of the risk and because I was afraid readers would take it as an all-clear signal. When the governor halted indoor dining again in December, my selfish reaction was relief. Then I briefly got depressed. How would restaurants survive? And how would I keep writing about them?One answer had already started to appear on sidewalks and streets in the form of small greenhouses, huts, tents and yurts. Inside these personal dining rooms, you can (and should) sit just with people from your own household. If the restaurant thoroughly airs the space out between seatings, any germs you breathe in should be the same ones that are bouncing around your home. Many restaurants instruct their servers to stay outside the structures as much as possible, though some don’t.
Syntax of question and answer reveals itself again. His doubts and negativity are addressed within the first highlighted paragraph with a question coming to Pete's mind. He realized his influence as a critic and decided to take the right step to prevent anything bad from occurring. Despite his sacrifice, the next paragraph he discusses the clever solutions restaurants had come up with which solved his problem for the most part. This description underlines yet more change that brought upon good things, which is the main idea he is relating to the food scene. He creates a comparison between an at home setting along with the solutions restaurants have come up with to further emphasize his point of safety amidst COVID.
-
-
github.com github.com
-
It requires an account to update, but the other inputs are optional. If they're missing, it'll ignore those attributes. If they're present, it'll update them.
-
For this one we'll define a helper method to handle raising the correct errors. We have to do this because calling .run! would raise an ActiveInteraction::InvalidInteractionError instead of an ActiveRecord::RecordNotFound. That means Rails would render a 500 instead of a 404.
True, but why couldn't it handle this for us?
-
-
-
It makes me happy to see people actually think about things and not just accept a shitty API.
Tags
- can we do even better?
- intentional/well-considered decisions
- don't settle for/accept something that's not as good as it can be
- less than ideal / not optimal
- actually consider / think about how it _should_ (ideally) be
- doing something without knowing why/how it works
- describe the ideal hypothetical solution
- "makes me happy when ..."
Annotators
URL
-
-
-
I do think it's a common pattern that should be solved, and I am probably going to try and solve it as a Gem as opposed to simply writing code that we use in our code base
-
-
-
while ActiveForm currently fits 99% of my use cases, I do sometimes make modifications based on the product requirements
-
I will continue to use form objects and push changes into the repo when I feel they are universally relevant and valuable.
new tag?:
- code that is universally relevant/valuable
- non - _-specific logic
-
I typically save everything I can first, and then call the side-effects afterwards. If the side-effects fail I can handle them elsewhere and retry when necessary.
-
-
en.wikipedia.org en.wikipedia.org
-
As with other software patterns, MVC expresses the "core of the solution" to a problem while allowing it to be adapted for each system.
-
-
github.com github.com
-
This can be useful in cases like multistep registration. Previously in # rails we used to stick all of the validations in the class and then we're # stuck validating them all everytime
-
-
apcontent.collegeboard.org apcontent.collegeboard.org
-
Most importantly, let us support all of those who are using sport as a force to advance equality and opportunity;
A viable way to solve the gender inequality as a whole.
-
Not only are successful sportswomen showing girls that they can excel on the field; many are using their status to start important conversations about gender equality and to advocate for women’s rights more widely.
Being a role model that shows the world the problem of gender inequality would be a viable solution.
-
We also need more male athletes to step up with us, and model a culture that reflects equality, respect for diversity and non-violence, within and beyond sport.
Solution that may work.
-
Even when laws and policies are in place, deep-seated attitudes about gender roles can hold back substantive change
Some solution may not work even though it seems like it will. This means that we can't solve this on a government level, but on a individual's thought.
-
In November 2018, Fenerbahçe Sports Club, one of the oldest and most popular multi-sports clubs in Turkey, joined forces with HeForShe in an ’Equal together’ initiative involving its male football players, and seen by its global fan base of 25 million. They aim to achieve gender equality transformation through sport, with women- and children-friendly stadium practices, and a zero-tolerance approach to all sorts of discrimination against women and girls
A solution for combating gender inequality in sports. We can create a new program that allows equal rights and wages for all genders.
-
-
-
Universal Links allow you to register a series of domains that are allowed to interact with an installed application. If the application is not installed, the universal link is opened with Safari, allowing you to inform the user of the existence of an application or whatever is necessary.
-
- Jan 2021
-
forums.theregister.com forums.theregister.com
-
Flatpak as a truly cross-distro application solution that works equally well and non-problematic for all
-
-
-
If components gain the slot attribute, then it would be possible to implement the proposed behavior of <svelte:fragment /> by creating a component that has a default slot with out any wrappers. However, I think it's still a good idea to add <svelte:fragment /> so everyone who encounters this common use case doesn't have to come up with their own slightly different solutions.
-
-
-
Moving DOM elements around made me anxious and I wanted to preserve natural tab order without resorting to setting tabindex, so I also made a flexbox version that never moves DOM elements around. I think it's the superior solution, at least for the layouts I was going for. https://github.com/wickning1/svelte-components/blob/master/src/FlexCardLayout.svelte
-
-
github.com github.com
-
Or just watch the value with a reactive statement instead of an event handler on the input like: $: inputValue, onInput() This is a good solution and seems to work in all cases.
-
-
github.com github.com
-
A Svelte component that monitors an element enters or leaves the viewport/parent element. Performant and efficient thanks to using Intersection Observer under the hood. Can be used in multiple projects including lazy loading images, infinite scrolling, playing/pausing the video when in the viewport, tracking user behaviour firing link pre-fetching and animations and many many more.
-
-
atomiks.github.io atomiks.github.io
-
It's a generic abstraction for the logic and styling of elements that pop out from the flow of the document and float next to a reference element, overlaid on top of the UI.
-
-
github.com github.com
-
A cleaner approach could be the use:action API.
-
-
github.com github.com
-
Popper for Svelte with actions, no wrapper components or component bindings required! Other Popper libraries for Svelte (including the official @popperjs/svelte library) use a wrapper component that takes the required DOM elements as props. Not only does this require multiple bind:this, you also have to pollute your script tag with multiple DOM references. We can do better with Svelte actions!
-
- Dec 2020
-
github.com github.com
-
Jbuilder gives you a simple DSL for declaring JSON structures that beats manipulating giant hash structures. This is particularly helpful when the generation process is fraught with conditionals and loops.
-
-
developer.mozilla.org developer.mozilla.org
-
The Web Storage API provides mechanisms by which browsers can store key/value pairs, in a much more intuitive fashion than using cookies.
-
-
github.com github.com
-
Like JSON.stringify, but handles
-
-
github.com github.com
-
This is an opportunity to fix a bug: if you're on a page that redirects to a login page if there's no user object, or otherwise preloads data specific to that user, then logging out won't automatically update the page — you could easily end up with a page like HOME ABOUT LOG IN ----------------------------------------------------------------------------------------- Secret, user-specific data that shouldn't be visible alongside a 'log in' button:
-
-
github.com github.com
-
I think the main difference between the two are the way API are served. Some smelte components need you to input big chunk of json as props, while i prefer keep props as primitive types and in the other hand give you different components tags to compose.
-
-
medium.com medium.com
-
Instead of waiting for a magic fairy to appear and eliminate your problem so that you can enjoy life again, you might want to start adding those little positive events back onto your agenda despite the problem still being present
This solution based therapy focuses on trying to get people active and engaged with life even when depressed.
It is important to help patients experience those little positive events. These events can help people get back on track.
-
If you need to imagine in concrete detail how you would notice that a problem disappeared, you are challenged to leave vague descriptions like “I’ll be happy”, “I’ll be less annoyed” behind.Vagueness in the end is a cognitive avoidance mechanism. It is easy to ruminate on general emotions and thoughts but very hard to imagine concrete outcomes and changes. We would rather not face precise thoughts, emotions or memories because they can be painful. Better to stay at a safe but vague distance.
This is all about solution based therapy. We need concrete ways of fixing our problems.
Vagueness is a cognitive avoidance strategy. It is a way to avoid digging deep.
It is safer for our feelings to stay vague, but that is not where we need to improve.
-
- Nov 2020
-
acorwin.com acorwin.com
-
The answer should be: you write a language that compiles to Go’s IR.
-