RRID: CVCL_0027
DOI: 10.1158/0008-5472.CAN-23-2986
Resource: (KCLB Cat# 88065, RRID:CVCL_0027)
Curator: @abever99
SciCrunch record: RRID:CVCL_0027
RRID: CVCL_0027
DOI: 10.1158/0008-5472.CAN-23-2986
Resource: (KCLB Cat# 88065, RRID:CVCL_0027)
Curator: @abever99
SciCrunch record: RRID:CVCL_0027
RRID: CVCL_0367
DOI: 10.1158/0008-5472.CAN-23-2986
Resource: (BCRJ Cat# 0125, RRID:CVCL_0367)
Curator: @abever99
SciCrunch record: RRID:CVCL_0367
RRID: CVCL_0327
DOI: 10.1158/0008-5472.CAN-23-2986
Resource: (ECACC Cat# 92110305, RRID:CVCL_0327)
Curator: @abever99
SciCrunch record: RRID:CVCL_0327
RRID: CVCL_0336
DOI: 10.1158/0008-5472.CAN-23-2986
Resource: (KCB Cat# KCB 200970YJ, RRID:CVCL_0336)
Curator: @abever99
SciCrunch record: RRID:CVCL_0336
RRID: CVCL_0326
DOI: 10.1158/0008-5472.CAN-23-2986
Resource: (KCB Cat# KCB 200942YJ, RRID:CVCL_0326)
Curator: @abever99
SciCrunch record: RRID:CVCL_0326
One problem with using this extension is that the author stopped supporting their extensions years ago and has not been heard from since. You also need to bypass the version check per this article.
The city council president said Grants Pass’s goal was to “make it uncomfortable enough for them in our city so they will want to move on down the road.”
Why is it that so many of Americans' gut reactions is to "kick the can down the road" rather than to solve the underlying problems?
The master of ceremonies was their Indian interpreter, Squanto, who hadhelped the English survive a difficult winter. Left out of this story is thedetail (not so minor) that Squanto only knew English because he had beenkidnapped and sold as a slave to an English ship’s captain.
The fact that early Americans needed to be bailed out by others also doesn't seem to do anything to dampen either the mythology of American exceptionalism nor their "can-do attitude".
Minister der 27 Mitgliedsstaaten haben beschlossen, dass sich die Europäische Union aus dem Energy Charter Treaty zurückzieht, der es privaten Investoren erlaubt, gegen politische Regulierungen zu klagen. Allerdings bleiben fossile Installation noch einige Zeit durch eine Art Überlebensklausel des Vertrags geschützt. https://www.liberation.fr/environnement/climat/les-pays-membres-de-lue-donnent-leur-accord-pour-se-retirer-du-tce-cet-accord-international-qui-protege-les-energies-fossiles-20240307_UCNEWFBE4NHFPFGQ722PNMVHXQ/
The companies behind six of the 11 apps, including Southwest Airlines and Twitter, were not sharing how many requests they’d received and honored. Twitter said it plans to add the information.
or were left with no idea whether it worked
One of my inquiries was for anecdotes regarding mistakes made between the twins by their near relatives. The replies are numerous, but not very varied in character. When the twins are children, they are usually distinguished by ribbons tied round the wrist or neck; nevertheless the one is sometimes fed, physicked, and whipped by mistake for the other, and the description of these little domestic catastrophes was usually given by the mother, in a phraseology that is some- [p. 158] what touching by reason of its seriousness.
for - 2024 U.S. elections - polycrisis - 2024 U.S. elections - existential threat to civilization- climate crisis
summary - Some good points: - importance of Black and Latino voters - importance of a third party that can spoil the vote
Instance methods Instances of Models are documents. Documents have many of their own built-in instance methods. We may also define our own custom document instance methods. // define a schema const animalSchema = new Schema({ name: String, type: String }, { // Assign a function to the "methods" object of our animalSchema through schema options. // By following this approach, there is no need to create a separate TS type to define the type of the instance functions. methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } }); // Or, assign a function to the "methods" object of our animalSchema animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); }; Now all of our animal instances have a findSimilarTypes method available to them. const Animal = mongoose.model('Animal', animalSchema); const dog = new Animal({ type: 'dog' }); dog.findSimilarTypes((err, dogs) => { console.log(dogs); // woof }); Overwriting a default mongoose document method may lead to unpredictable results. See this for more details. The example above uses the Schema.methods object directly to save an instance method. You can also use the Schema.method() helper as described here. Do not declare methods using ES6 arrow functions (=>). Arrow functions explicitly prevent binding this, so your method will not have access to the document and the above examples will not work.
Certainly! Let's break down the provided code snippets:
In Mongoose, a schema is a blueprint for defining the structure of documents within a collection. When you define a schema, you can also attach methods to it. These methods become instance methods, meaning they are available on the individual documents (instances) created from that schema.
Instance methods are useful for encapsulating functionality related to a specific document or model instance. They allow you to define custom behavior that can be executed on a specific document. In the given example, the findSimilarTypes method is added to instances of the Animal model, making it easy to find other animals of the same type.
methods object directly in the schema options:javascript
const animalSchema = new Schema(
{ name: String, type: String },
{
methods: {
findSimilarTypes(cb) {
return mongoose.model('Animal').find({ type: this.type }, cb);
}
}
}
);
methods object directly in the schema:javascript
animalSchema.methods.findSimilarTypes = function(cb) {
return mongoose.model('Animal').find({ type: this.type }, cb);
};
Schema.method() helper:javascript
animalSchema.method('findSimilarTypes', function(cb) {
return mongoose.model('Animal').find({ type: this.type }, cb);
});
Imagine you have a collection of animals in your database, and you want to find other animals of the same type. Instead of writing the same logic repeatedly, you can define a method that can be called on each animal instance to find similar types. This helps in keeping your code DRY (Don't Repeat Yourself) and makes it easier to maintain.
```javascript const mongoose = require('mongoose'); const { Schema } = mongoose;
// Define a schema with a custom instance method const animalSchema = new Schema({ name: String, type: String });
// Add a custom instance method to find similar types animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };
// Create the Animal model using the schema const Animal = mongoose.model('Animal', animalSchema);
// Create an instance of Animal const dog = new Animal({ type: 'dog', name: 'Buddy' });
// Use the custom method to find similar types dog.findSimilarTypes((err, similarAnimals) => { console.log(similarAnimals); }); ```
In this example, findSimilarTypes is a custom instance method added to the Animal schema. When you create an instance of the Animal model (e.g., a dog), you can then call findSimilarTypes on that instance to find other animals with the same type. The method uses the this.type property, which refers to the type of the current animal instance. This allows you to easily reuse the logic for finding similar types across different instances of the Animal model.
Not sure how "communities" are going to shut down oil refineries as big as large cities in some cases.
for: question - can communities have real impact?
question: can communities have real impact?
honesty can actually threaten
for: meme - honestly can threaten hope
meme: honesty can threaten hope
“come back next year and try again”. My response is that it will be the same old thing – they’ve had 26 chances already. The planet can’t afford any more. I think the time for the Cop process is over. We just can’t keep kicking the can down the road.
for: quote - COP - Rupert Read, quote - COP - come back next year and try again, quote - alternative COP
quote
date: Dec. 4, 2021
quote
date: Dec 4, 2021
comment
Moreover, social logins are often implemented in an insecure way. Users, in this case, have to trust every application which implemented this feature to handle their identifier confidentially.
Kurz vor der COP28 kam es zu einer grundsätzlichen Einigung über die Umsetzung des Loss-and-damage-Fonds, der auf der letzten COP beschlossen worden war. Er wird zunächst von der Weltbank verwaltet werden. Die Höhe der Einzahlungen ist noch nicht klar. Aktivist:innen reagierten enttäuscht. https://www.theguardian.com/environment/2023/nov/05/countries-agree-key-measures-to-fund-most-vulnerable-to-climate-breakdown
Carbon capture is a phishing scheme introduced by the Koch brothers at MIT in 2004, the same year that Charles and David Koch provided the funds for Americans for Prosperity.
The main usage difference is that dependency can be used in a second sense as a "concrete" noun to mean a person or thing which depends on something/someone else. But note that in the programming context it's not uncommon to see it used to mean a software resource upon which some piece of software depends (i.e. - reversing the need/provide relationship).
Is that really true? Can dependency refer to a person or thing which depends on something/someone else?? I'm only used to it the other way.
And as others have pointed out, there is potential for ambiguity: if A is dependent on B, then a dependence or dependency (relationship) exists; but referring to either A or B as the dependency demands context.
"demands context" :)
one of the things I think Civil Society has to be aware of is that there's been 00:09:33 a deliberate misuse of the prospects of technology
I just wanted to tweak Java's BufferedReader to handle custom line delimiters. Thanks to private fields I have to clone the entire class rather than simply extending it and overriding readLine().
The same day, Menashe licensed 56 pictures through iStockphoto– for about $1 each.
This is interesting because I feel like the istockphoto company has gotten so many more contributors over the years that the rates have gone down drastically. I attached a website stating how much a person gets paid per photo on average which is a lot less than what the article is saying.
Although CAN-SPAM hasn't resulted in less spam, the law gives authorities a new tool in the fight against spam, Lochart said. "It's a good thing we have a law, so when we find some of these roaches, we can prosecute them," he said.
Spammers, apparently in response to CAN-SPAM, changed tactics this year, said Andrew Lochart, director of product marketing at Postini. More spammers are using so-called zombie networks -- computers hijacked with Trojan horse programs -- to send spam, and spammers are using increasingly sophisticated directory harvest attacks to spam corporate mail servers, he sai
CAN-SPAM also prohibits private citizens from suing spammers, instead allowing only state attorneys general or Internet service providers to file civil suits
Commtouch found that 80 percent of spam e-mail didn't include valid return e-mail addresses and more than 40 percent contained subject lines that weren't related to the text of the e-mail.
"There's been no reduction in the volume of spam," says Scott Chasin, MX Logic's chief technology officer. "In fact, the exact opposite--our spam rates are actually going up."
Less than 1 percent of spam e-mail sent to U.S. inboxes this month complies with a national antispam law that went into effect January 1, according to two spam filtering vendors.
I mostly included this because I think it's one of the most beautiful webpages I've ever seen
Original text of CAN SPAM
Extending the life of electronic products and re-using electrical components brings an even larger economic benefit, as working devices are certainly worth more than the materials they contain. A circular electronics system - one in which resources are not extracted, used and wasted, but re-used in countless ways - creates decent, sustainable jobs and retains more value in the industry.
This paragraph caught my attention for several reasons. The first is that it was one of the first paragraphs that I actually understood what it was saying. Additionally, it made me feel like I could do something about it. When it said that reusing electrical components are better, it helped me see a clear way that I can direct effect this. Finally, I thought this paragraph was interesting because it talked about creating jobs. This is important to note because more and more people are going to school for something involving technology. This creates jobs for that specific group of people.
before_action -> { doorkeeper_authorize! :public }, only: :index
```js import React, { Component } from 'react'; import './style.css'; import ndjsonStream from 'can-ndjson-stream';
class App extends Component { constructor(props) { super(props);
this.state = {
todos: []
};
}
componentDidMount(){ fetch('http://localhost:5000/api/10', { method: 'get' }).then(data => { return ndjsonStream(data.body); }).then((todoStream) => { const streamReader = todoStream.getReader(); const read = result => { if (result.done) return;
this.setState({
todos: this.state.todos.concat([result.value.user])
});
streamReader.read().then(read);
};
streamReader.read().then(read);
}).catch(err => {
console.error(err)
});
}
render() { return ( <div className="App">
export default App; ```
we have individual capitalists who try 00:48:45 to make the most profit and this is linked to their capital and productivity so to achieve more in less time and 00:48:57 productivity is linked to energy [Music] the only source of energy to increase profit is carbon oil and gas and this has resulted in a change in our 00:49:15 atmosphere we have to put an entities if we wish to live in our planet can our capitalism do this based on the current data we won't be able to do so 00:49:28 therefore perhaps we should do the following reflection if capitalism is unable to do so either Humanity will die with it or 00:49:42 Humanity will overcome capitalism so that we can live in our planet
!- Urrego : Key Point - Can capitalism rapidly detour away from fossil fuels? The current data indicates no. So either Humanity does our it drops capitalism
个人学习可能取决于他人行为的主张突出了将学习环境视为一个涉及多个互动参与者的系统的重要性
Much of what they do can be done without eliciting the ire of nation-states. Bike shares, pedestrian zones, insulated buildings, renovated port facilities, congestion fees, car emission limits, furnace specifications, fuel upgrades (from oil to gas to alternative energy) and white paint roofs, for example, are only some of the innovations city officials can promote to effect significant reductions in emissions and pollutants.
!- cities actions : can be done without eliciting ire of nation state - bike shares - pedestrian zones - insulated buildings - renovated ports - congestion fees - car emission limits - furnace specifications - fuel upgrades - white paint roofs - cities are the right level for focusing on effective global climate action
here states have grown dysfunctional and sovereignty has become an obstacle to global democratic action—as when the United States (or China, France, or Canada) refuses to compromise its sovereignty by permitting the international monitoring of carbon emissions on its soil—cities have increasingly proven themselves capable of deliberative democratic action on behalf of sustainability, as they have actually done in intercity associations like the C-40 or ICLEI. If presidents and prime ministers cannot summon the will to work for a sustainable planet, mayors can. If citizens of the province and nation think ideologically and divisively, neighbors and citizens of the towns and cities think publicly and cooperatively.
!- claim : cities can mitigate corrupted democracy and foster global cooperation - ie. C40 or ICLEI (also Covenant of Mayors) - cities are not plagued by the problems of state actors who cannot reach any meaningful agreement at COP conferences
Post.in_order_of(:type, %w[Draft Published Archived]).order(:created_at).pluck(:name) which generates SELECT posts.name FROM posts ORDER BY CASE posts.type WHEN 'Draft' THEN 1 WHEN 'Published' THEN 2 WHEN 'Archived' THEN 3 ELSE 4 END ASC, posts.created_at ASC
The problems that we solved are applicable to a lot of people. Most people are not even aware of these problems, so things can break in unexpected ways (Murphy's law). It's inefficient if everybody has to solve these problems over and over.
Clinical characteristics and diagnostic clues in inborn errors of creatine metabolism
PMID: 12889668<br /> Gene: GAMT Disease: GAMT deficiency Inheritance: X-linked
Benefits and drawbacks of guanidinoacetic acid as a possible treatment to replenish cerebral creatine in AGAT deficiency
PMID: 28971744 Gene: GAMT Disease: GAMT deficiency Inheritance: X-linked
Do yourself and your peers a favor, write code with them in mind.
Writing Code for Humans — A Language-Agnostic Guide…because code which people can’t read and understand is easy to break and hard to maintain.
Write code for human, not for God
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
To see if you are writing good code, you can question yourself. how long it will take to fully transfer this project to another person? If the answer is uff, I don’t know… a few months… your code is like a magic scroll. most people can run it, but no body understand how it works. Strangely, I’ve seen several places where the IT department consist in dark wizards that craft scrolls to magically do things. The less people that understand your scroll, the more powerfully it is. Just like if life were a video game.
This is so clear that you don’t even need comments to explain it.
Another type of comments are the ones trying to explain a spell.
people usually forgets about one of the greatest advantages of Open Source. YOU can fix the issue. You can download the source code and dig deep into the code allow you to keep moving. Also, you can merge this changes back to the original repository so others doesn’t have to fix it again. win-win relationship.
The rule of thumbs is, never use code that you do not understand.
Filter gives me the impression of inclusion... so if I filter by fruits, I expect to see apples, oranges, and bananas. Instead, this is more like filter out fruits... remove all the fruits, and you're left with the rest. Filter in/out are both viable. One means to include everything that matches a condition, and the other is to exclude everything that does not match a condition. And I don't think we can have just one.
Earlier this week, during a seminar at Schumacher College that included an exploration into what a Citizens Action Network might entail, a student wondered if we’d ever heard of South Africa’s CANs movement. No, we answered, we had not…
!- definition : citizen action network (CAN) !- question : rapid whole system change at community scale - Can CAN's scale globally for rapid whole system change? If so, how?
If anyone can completely refactor the JSON Schema description for OpenAPI v3.0 to accurately describe the schema in all its glory, without using this new keyword, then please do so, but I would kindly ask you to test the theory first.
This is a distillation of the results of 230+ comments on #515, not to mention the 300+ comments spread across several other older issues that fed into that one. I know it's long. Please don't complain unless you can offer a shorter write-up. :-)
Booleans and nil can be compared by identity and therefore the `be` matcher is preferable as it is a more strict test.
a rare case of "because you can, you should"?
Just because you can create a plugin for any tool and manage its versions with asdf, does not mean that is the best course of action for that specific tool.
There is a connection between the words that is from the setting, background, and image of the words.
3.6 Understand how you can become radically open-minded.
3.6 Understand how you can become radically open-minded.
08:58 - Migrant gene DRD4-7R* Allele and correlation with the pursuit of novelty
DRD4-7R is the specific gene that Peter implicates in migrants who are adventurous enough to come to America. This is associated with the "can do" perspective that has propelled America into a world leader but also drives America reflexively into the future...on autopilot.
There is something nice about aligning with the platform. But it risks being a straitjacket, and I think we can provide better ergonomics when it comes to streaming.
There is nothing stopping you from creating store objects which scrapes XE for the current rates or just returns rand(2):
It is initiated when bargaining is done between the parties, i.e employers and employees
DIRECTORY (in progress): This post is my directory. This post will be tagged with all tags I ever use (in chronological order). It allows people to see all my tags, not just the top 50. Additionally, this allows me to keep track. I plan on sorting tags in categories in reply to this comment.
External links:
Tags categories will be posted in comments of this post.
Why can you remove it? The loader will first try to resolve @import as a relative path. If it cannot be resolved, then the loader will try to resolve @import inside node_modules.
Node Sass does not yet support your current environment indicates that the version of node-sass you are trying to run is not compatible with the version of node installed.
focuses on developing college-level literacy skills. More simply, this course will prepare you for the reading, writing, and critical thinking required of you as a university student.
hold four hours a week on set days and times; M 11:15AM-12:15PM (in-person & on-line) T 10AM-11AM (on-line)W 2:15PM-3:15PM (in-person & on-line)Th 1PM-2PM (on-line) and by appointment
What happens when you look it up in a dictionary rather than as a phrase in Google? Google just catalogues other people's [mis-]uses
The automatic conversion not only confuses people but also makes the method less extensible. See [Feature #14183] for more details about the reasons for the change in behavior, and why certain implementation choices were made.
"Many North American music education programs exclude in vast numbers students who do not embody Euroamerican ideals. One way to begin making music education programs more socially just is to make them more inclusive. For that to happen, we need to develop programs that actively take the standpoint of the least advantaged, and work toward a common good that seeks to undermine hierarchies of advantage and disadvantage. And that, inturn, requires the ability to discuss race directly and meaningfully. Such discussions afford valuable opportunities to confront and evaluate the practical consequences of our actions as music educators. It is only through such conversations, Connell argues, that we come to understand “the real relationships and processes that generate advantage and disadvantage”(p. 125). Unfortunately, these are also conversations many white educators find uncomfortable and prefer to avoid."
When mocking is deemed profitable:
Is there a way to select from multiple custom tables using ActiveRecord QueryMethods? I'm trying to replicate this SQL query using Ruby's ActiveRecord Query Methods. select employee.emplid, address.location from (....) employee, (....) address where employee.emplid = address.emplid
SQL is all about nested subqueries. It's hard to escape without creating views, but who has time to lookup that syntax and get their DBA's permission to run the DDL?!?
Worth noting that in the case where you're proxying /api/ requests to an external server in nginx you can easily do this in handle today:
If you would like to make a code change, go ahead. Fork the repository, open a pull request. Do this early, and talk about the change you want to make. Maybe we can work together on it.
A good heuristic is to not trust the libraries you did not write either.
“Who cares? Let’s just go with the style-guide” — to which my response is that caring about the details is in the heart of much of our doings. Yes, this is not a major issue; def self.method is not even a code smell. Actually, that whole debate is on the verge of being incidental. Yet the learning process and the gained knowledge involved in understanding each choice is alone worth the discussion. Furthermore, I believe that the class << self notation echoes a better, more stable understanding of Ruby and Object Orientation in Ruby. Lastly, remember that style-guides may change or be altered (carefully, though!).
I actually think this is Not Constructive, since there's no absolute rule about which pairings can be joined into a single word or hyhenated, and it's pointless having "votes" here about each specific case. Follow a style guide if you have one, or search Google Books and copy whatever the majority do. Or just make your own decision.
Of course, there is no reason why you can't use <aside> for all sidenotes, if it makes your code simpler. Think of it as civil disobedience. :)
# authenticated :user, lambda {|u| u.role == "admin"} do # root to: "admin/dashboard#show", as: :user_root # end
You can also specify constraints as a lambda:
Would it be desirable to specify the new object in a block? That would make it somewhat symmetrical to how Hash.new takes a block as a default value.
This could be an operation, a workflow, or hand-baked Ruby code completely unrelated to Trailblazer.
Or if you need to change the way the string is assembled, you can provide a proc, for example: if defined?(BetterErrors) BetterErrors.editor = proc { |file, line| "vscode://file/%{file}:%{line}" % { file: URI.encode_www_form_component(file), line: line } } end
If you want to compile youself you can pass the --with-features=huge to the configure script. Note, however, this does not enable the different language bindings because those are mostly optional and also the various GUIs need to enabled specifically, because you can have only one gui.
This explains why the standard vim package on ubuntu doesn't have GUI support (I was going to say because it wouldn't know which GUI you needed, but I think it would based on the Ubuntu variant: GNOME, KDE, etc.) (maybe because it wouldn't know whether you wanted GUI support at all)
I was going to say because it wouldn't know which GUI you needed, but I think it would based on the Ubuntu variant: GNOME, KDE, etc.
found answer to that: https://hyp.is/NyJRxIgqEeuNmWuaScborw/askubuntu.com/questions/345593/how-to-build-vim-with-gui-option-from-sources
so you have to install a different package with GUI support, like vim-gtk or vim-athena
he goes on to talk about third party problems and how you're never guaranteed something is written correctly or that even if it is you don't know if it's the most optimal solution
he goes on to say that simple functions should not be packages because they are too small.
By treating even small functions like a black box it promotes separation of concerns and allows said black box to evolve independently.
Clearly JS and NPM have done a lot RIGHT, judging by success and programmer satisfaction. How do we keep that right and fix the wrong?
The elimination of what is arguably the biggest monoculture in the history of software development would mean that we, the community, could finally take charge of both languages and run-times, and start to iterate and grow these independently of browser/server platforms, vendors, and organizations, all pulling in different directions, struggling for control of standards, and (perhaps most importantly) freeing the entire community of developers from the group pressure of One Language To Rule Them All.
Another important MicroJS attribute is independence. Ember, Backbone—even Bootstrap to a degree–have hard dependencies on other libraries. For example, all three rely on jQuery. A good MicroJS library stands by itself with no dependencies. There are exceptions to the rule, but in general, any dependency is another small MicrojJS library.
I totally understand that there may be a majority still considering this a bad practice and thus keeping it disabled by default in production seem ok. But there could at least be an option to enable it for people who want to, no?
Better yet, send them a link to this page to help them understand why and how to make an example app:
Rails still encourages you to dump all validation errors at the top of a form, which is lulzy in this age of touchy UX
signal.to_h[:semantic]
Why not just allow us to call signal.semantic?
In combination with [Track()], the :magnetic_to option allows for a neat way to spawn custom tracks outside of the conventional Railway or FastTrack schema.
Instead of magnetic_to:, I propose wrapping the steps that are on a separate track in something like...
DefTrack do :paypal do
step :charge_paypal
end
or
paypal_track = RailwayTrack do :paypal do
step :charge_paypal
end
so we can reference it from outputs, like we can with tracks created with Path helper.
now that I realize how easy it is to just manually include this in my app: <%= javascript_include_tag 'xray', nonce: true if Rails.env.development? %> I regret even wasting my time getting it to automatically look for and add a nonce to the auto-injected xray.js script
That such minimalism is possible does not mean that it is necessarily desirable
Operations don't know about HTTP or the environment. You could use an operation in Rails, Hanami, or Roda, it wouldn't know.
The new 2.1 version comes with a few necessary but reasonable changes in method signatures. As painful as that might sound to your Rails-spoiled ears, we preferred to fix design mistakes now before dragging them on forever.
The new call API is much more consistent and takes away another thing we kept explaining to new users - an indicator for a flawed API.
account.first_name = first_name if first_name.present? account.last_name = last_name if last_name.present?
I guess this is needed so we don't reset to nil (erasing value in database) when they haven't even provided a new value as input.
But surely there's a cleaner way...
It makes me happy to see people actually think about things and not just accept a shitty API.
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
I did not know that 1.2 million black men served in the army during ww2.
I never realized that German army's had a separate army for African Americans and White Americans.
We could of course refactor our code to rename things any time we like, but we don’t do this enough in practice
considering PopOS is trying to tackle Ubuntu they really need their dual-boot setup to be a lot less tedious
if PopOS! really wants to be what Ubuntu was 10 years ago they need to step up and make dual booting easier.
that's a point, but I would say the opposite, when entering credit card data I would rathre prefer to be entirely in the Verified By Visa (Paypal) webpage (with the url easily visible in the address bar) rather that entring my credit card data in an iframe of someone's website.
This is open-source. You can always fork and maintain that fork yourself if you feel that's warranted. That's how this project started in the first place, so I know the feeling.
I'm very (VERY!) tempted to use that ppa, but without offense to it's maintainers... it's just some random ppa. If it had more "traction" I'd use it. Right now it has only 3 maintainers.
Progress is made of compromises, this implies that we have to consider not only disadvantages, but also the advantages. Advantages do very clearly outweigh disadvantages. This doesn’t mean it perfect, or that work shouldn’t continue to minimize and reduce the disadvantages, but just considering disadvantages is not the correct way.
I’m not a dev either, so no Ubuntu fork, but I will perhaps be forced to look at Debian testing, without some advantages of Ubuntu - but now that Unity is gone (and I deeply regret it), gap would not be so huge anymore…
If folks want to get together and create a snap-free remix, you are welcome to do so. Ubuntu thrives on such contribution and leadership by community members. Do be aware that you will be retreading territory that Ubuntu developers trod in 2010-14, and that you will encounter some of the same issues that led them to embrace snap-based solutions. Perhaps your solutions will be different. .debs are not perfect, snaps are not perfect. Each have advantages and disadvantages. Ubuntu tries to use the strengths of both.
The answer should be: you write a language that compiles to Go’s IR.
Svelte by itself is great, but doing a complete PWA (with service workers, etc) that runs and scales on multiple devices with high quality app-like UI controls quickly gets complex. Flutter just provides much better tooling for that out of the box IMO. You are not molding a website into an app, you are just building an app. If I was building a relatively simple web app that is only meant to run on the web, then I might still prefer Svelte in some cases.
All projects here are completely frozen, though feel free to fork and continue using them on your own.
Because of those similarities, it's possible to automate some of the changes.
This seems to be #31189 . It should be fixed when you update to v17.03.0-ce
It took us a long time for everyone to get on the same page about the requirements spanning frameworks, tooling and native implementations. Only after pushing in various concrete directions did we get a full understanding of the requirements which this proposal aims to meet.
We are working to develop better communication within TC39 and with the broader JavaScript community so that this sort of problem can be corrected sooner in the future.
This nested if blocks seems a bit untidy and confusing to me but I've also failed to come up with a clearer way.
I encounter this problem in all of my Svelte projects- feels like I'm missing something. Fighting it with absolute positioning usually forces me to re-write a lot of CSS multiple times. Is there is a better way to solve this that I've overlooked?
This is Sass based, and therefore doesn't require Svelte components
Just because we could make Svelte wrapper components for each Material typography [thing], doesn't mean we should.
Compare:
material-ui [react] did make wrapper components for typography.
svelte-material-ui did not.
Ignore the warning, given that it's just a warning anyways. It's annoying, but it won't break your app
This is very annoying and I think there must be a better solution.
Just coming here to voice my agreement that these warnings are annoying and exist in other libraries as well. For me this happened with svelma. I didn't write the library code, so I don't have complete control over it even though I agree there is an argument to be had around whether I should be notified anyway. In either case, these warnings should be easily disabled since libraries don't always get updated over night.
Maybe it's also a bug because every warning should be ignorable? Not sure.
I would like the compiler to add a property like canIgnore: false to the warning, if the warning cannot be disabled.
However, that really doesn't mean we should expose everything else in JSON too...
In the software industry we use "dependency" to refer to the relationship between two objects. We say "looking for dependents" for relationships to dependent things and "looking for dependencies" for relationships to prerequisite things, so it gets that connotation, but the literal meaning is the relationship itself, not the object. Finding a better word is exactly the point of the question
Every pastor is called to be a theologian.
There are other features you *could* actually polyfill, such as Array.of, Number.isNaN or Object.assign, because those don’t introduce syntax changes to the language – except that you shouldn’t.
All validators can be used independently. Inspried by functional programming paradigm, all built in validators are just functions.
I'm glad you can use it independently like:
FormValidation.validators.creditCard().validate({
because sometimes you don't have a formElement available like in their "main" (?) API examples:
FormValidation.formValidation(formElement
Yes, you can embed loops in it and compose lots of small repeated JSX snippets, but that almost never happens in practice because mixing the turing complete of javascript with the markup of HTML eliminates the readability of JSX so that it is actually harder to parse than a solution like hyperscript (the syntactical approach taken by virtual-dom).
Doesn't require the use of transpiler or modifications to all JS tooling ever invented.
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!
However, this would lead to further divergence. Tooling that is built around the assumptions imposed by template literals wouldn't work. It would undermine the meaning of template literals. It would be necessary to define how JSX behaves within the rest of the ECMAScript grammar within the template literal anyway.
This is valid javascript! Or harmony or es6 or whatever, but importantly, it's not happening outside the js environment. This also allows us to use our standard tooling: the traceur compiler knows how to turn jsx`<div>Hello</div>`; into the equivalent browser compatible es3, and hence we can use anything the traceur compile accepts!
Svelte should make something like useEffect part of the framework so that this could work better and be less verbose.
I do like the direction Svelte is heading but I think this is one area that could be improved.
I'm suggesting there should be a way to write lifecycle related code that also responds to changing props, like how useEffect works. I think how React handles this could be a good source of inspiration.
I think it just needs a few changes, possibly non-breaking additions, to be as powerful as hooks, when it comes to abstracting lifecycle related logic, and making it easy to keep effects in sync with props.
I'm not sure I understand the problem, everything you are describing is already possible.
If Svelte came up with some kind of hooks like API maybe it could solve both these issues at once.
I’d still be interested in Svelte making things easier so I’ve opened a feature request for Reactive statement cleanup functions.
Why struggle with custom Syntax DSLs when you can use one so widely supported?
It was only pragmatic to use a tool that basically gives you that all for free.
It was clear no one was interested in what I was working towards.
Very few were interested in furthering the platform in the places they just took for granted.
I started Solid years ago before I thought anyone would be interested in using it. I only started promoting it because it had already achieved the goals I had set out for it.
This issue has been resolved in version 9.1.9
do I really have to do something like that in order to have my local modules working? it's quite impracticable to explain it to a team! there's nothing a little bit more straightforward?
DX: start sapper project; configure eslint; eslint say that svelt should be dep; update package.json; build fails with crypt error; try to figure what the hell; google it; come here (if you have luck); revert package.json; add ignore error to eslint; Maybe we should offer better solution for this.
See resolution in
Also Svelte is so great because developer do not need to worry about class names conflict, except of passing (global) classes to component (sic!).
TBH It is a bit disheartening to see this issue closed when all proposed solutions do not sufficiently solve the issue at hand, I really like svelte but if this is how feature requests are handled I am probably not going to use it in the future.
The RFC is more appropriate because it does not allow a parent to abritrarily control anything below it, that responsibility still relies on the component itself. Just because people have been passing classes round and overriding child styles for years doesn't mean it is a good choice and isn't something we wnat to encourage.
new style RFC
https://github.com/sveltejs/rfcs/blob/style-properties/text/0000-style-properties.md
You must: reference each element you are extending using refs or an id add code in your oncreate and ondestroy for each element you are extending, which could become quite a lot if you have a lot of elements needing extension (anchors, form inputs, etc.)
This is where hooks/behaviors are a good idea. They clean up your component code a lot. Also, it helps a ton since you don't get create/destroy events for elements that are inside {{#if}} and {{#each}}. That could become very burdensome to try and add/remove functionality with elements as they are added/removed within a component.
But some sort of official way to do that in the language would make this nicer - and would mean I would have to worry less about destroying components when their parent is destroyed, which I'm certainly not being vigilant about in my code.
(At the point at which it does make sense to turn this into a separate Tooltip.svelte component, the extraction is a completely mechanical process that could even be automated by tooling.)
But what we should ask is "can we do better than the others".
But this is a case where it feels like we're papering over a deficiency in our language, and is the sort of thing detractors might well point to and say 'ha! see?'.
One key advantage of 'HTML-plus' languages is that you don't actually need tooling in order to be productive — most editors give you out-of-the-box support for things like syntax highlighting (though imperfect, as JavaScript expressions are treated as strings) and auto-closing tags. Tools like Emmet work with no additional setup. HTMLx should retain that benefit.
benefited from a shared set of tools for syntax highlighting, autocomplete, linting and so on.
I didn’t quite understand that until I saw this tweet from Ryan Florence, who is a genius when it comes to explaining the React programming model in ways that normal people can understand — ‘the question is not when does this effect run, the question is with which state does this effect synchronize with?’
Too much choice can be overwhelming.
As a later iteration, it might be cool to see a link between the quoted content and my comment
In fact, developers often tend to forget a simple, almost elementary fact: if users want to close the application or leave a site, they will — doesn’t matter which obstacles are placed on their path to the exit-button. The more obstacles there are the more negative the user experience will be.
So when Avdi took to air some of those grievances on Twitter, the natural thing happened that always happens when you feel your work is attacked: The core contributor group got defensive! That’s a mischaracterization! Where are the completed bug reports!? You know the drill, if you’ve ever worked on something, poured your heart into it, and then seen it criticized online. There’s that immediate, knee-jerk reaction of a sting. But it doesn’t have to sting.
"Splitters can be lumped more easily than lumpers can be split"
For example, if error messages in two narrowly defined classes behave in the same way, the classes can be easily combined. But if some messages in a broad class behave differently, every object in the class must be examined before the class can be split. This illustrates the principle that "splits can be lumped more easily than lumps can be split".
Steroids used after the first 3 to 4 days after injury do not affect wound healing as severely as when they are used in the immediate postoperative period.
Fibroblasts stimulated by growth factors can produce type I collagen and glycosaminoglycans (e.g., chondroitin sulfates), which adhere to the wound surface to permit epithelial cell migration, as well as adhesive ligands (e.g., the matrix protein fibronectin), which promote cell adhesion.
I enjoy dissent and debate among commenters, and criticism of my views is also always welcome; you are even free to call me an assclown, a dupe, a partisan ignoramus — whatever you like, as long as you don't insult other commenters.