- May 2024
-
-
documentLinks do: [:link | thisSnippet database importDocumentFrom: link ].
smalltalk myPages := documentLinks collect: [:link | thisSnippet database importDocumentFrom: link ].
En lugar dedo:
es uncollect:
para que la nueva colección quede asignada a la variablemyPages
. Una vez esto funcione, el resto de las intrucciones permite exportar sólo las nuevas páginas, en lugar de todas.
-
-
-
documentLinks collect: [:link | thisSnippet database importDocumentFrom: link ].
Este resultado hay que reusarlo, asignándolo a una variable.
smalltalk myPages := documentLinks collect: [:link | thisSnippet database importDocumentFrom: link ].
-
- Mar 2024
-
chiselapp.com chiselapp.com
-
b := [:x | x + 2]. b value: 20
La caja
b
está guardando no un valor, sino un procedimiento o cálculo futuro, cuyo resultado conocemos cuando asignamos los valores a los argumentos de los cuales dicho cálculo requiere.
-
-
chiselapp.com chiselapp.com
-
Símbolos
Un símbolo permite distinguir entre dos objetivos que tienen el mismo valor, pero no están almacenados en el mismo lugar:
-
- Jan 2024
-
en.wikipedia.org en.wikipedia.org
-
A variable is considered dependent if it depends on an independent variable. Dependent variables are studied under the supposition or demand that they depend, by some law or rule (e.g., by a mathematical function), on the values of other variables. Independent variables, in turn, are not seen as depending on any other variable in the scope of the experiment in question.[a]
Dependent variables depend upon independent variables (whereas independent variables are independent).
-
- Jun 2023
-
stackoverflow.com stackoverflow.com
-
Are protected members/fields really that bad? No. They are way, way worse. As soon as a member is more accessible than private, you are making guarantees to other classes about how that member will behave. Since a field is totally uncontrolled, putting it "out in the wild" opens your class and classes that inherit from or interact with your class to higher bug risk. There is no way to know when a field changes, no way to control who or what changes it. If now, or at some point in the future, any of your code ever depends on a field some certain value, you now have to add validity checks and fallback logic in case it's not the expected value - every place you use it. That's a huge amount of wasted effort when you could've just made it a damn property instead ;) The best way to share information with deriving classes is the read-only property: protected object MyProperty { get; } If you absolutely have to make it read/write, don't. If you really, really have to make it read-write, rethink your design. If you still need it to be read-write, apologize to your colleagues and don't do it again :) A lot of developers believe - and will tell you - that this is overly strict. And it's true that you can get by just fine without being this strict. But taking this approach will help you go from just getting by to remarkably robust software. You'll spend far less time fixing bugs.
In other words, make the member variable itself private, but can be abstracted (and access provided) via public methods/properties
-
Public and/or protected fields are bad because they can be manipulated from outside the declaring class without validation; thus they can be said to break the encapsulation principle of object oriented programming.
-
Using a property or a method to access the field enables you to maintain encapsulation, and fulfill the contract of the declaring class.
-
Exposing properties gives you a way to hide the implementation. It also allows you to change the implementation without changing the code that uses it (e.g. if you decide to change the way data are stored in the class)
Tags
- good point
- member visibility: make it private unless you have a good reason not to
- properties vs. direct access to instance variables
- contract (programming)
- +0.9
- encapsulation (programming)
- using properties to abstract, encapsulate, and control access to private instance variables/data
- I agree
- breaking encapsulation
Annotators
URL
-
- May 2023
-
chiselapp.com chiselapp.com
-
hedgeDoc := HedgeDoc new url: 'https://docutopia.sustrato.red/accesibilidad:23K?both# '; retrieveContents.
Mensaje unario:
- receptor:
hegeDoc
- mensaje:
retrieveContents
Mensaje Keyword:
- receptor:
hegeDoc
- mensaje:
url:
- argumento:
https://docutopia.sustrato.red/accesibilidad:23K?both#
- receptor:
Tags
Annotators
URL
-
- Nov 2022
-
stackoverflow.com stackoverflow.com
-
Remember there are two kinds of variable. Internal Variables and Environment Variables. PATH should be an environment variable.
In my case, I was trying to debug
which asdf
not finding asdf, in a minimal shell.I had checked
bash-5.1$ echo $PATH|grep asdf /home/tyler/.asdf/bin
but ```
The PATH environment variable
env | /bin/grep PATH
`` being empty was the key discovery here. Must have forgotten the
export`. -
All shells should tell you that your path is the same thing with BOTH of the two commands: # The PATH variable echo "$PATH" # The PATH environment variable env | /bin/grep PATH
-
- Oct 2022
-
po-ru.com po-ru.com
-
But what if we’ve more elements to ignore? people = { "Alice" => ["green", 34, "alice@example.com"], "Bob" => ["brown", 27, "bob@example.com"] } No problem. Just re-use the underscore: people.map { |name, (_, _, email)| [name, email] } You can’t do it with any variable, though, at least in Ruby 1.9. It only works with variables that are called _: people.map { |name, (x, x, email)| [name, email] } # SyntaxError: (eval):2: duplicated argument name
-
- Jun 2022
-
admrayner.medium.com admrayner.medium.com
-
contaminating interference
"confounding variables"
-
- Dec 2021
-
Local file Local file
-
. Indicators of influence
VARIABLES
-
- Nov 2021
-
www.kirillvasiltsov.com www.kirillvasiltsov.com
-
We also need at least something in our CSS that can be set from outside. CSS custom properties are a great fit for this!
-
- Oct 2021
-
Local file Local file
-
Two other controls having to do with the socioeconomic level of the resident pop- ulation are used
Control variable (alternative explanations) **Socioeconomic level of residents: When controlling for High socioeconomic factors (such as high education and high income in relationship to median income).
**Region Assumes there may be regional difference between cities, such as how old they are, their state of disrepair)_ Categorized regions northeast, north central, south and west.
-
Since the significance of the number of functions varies with the number of all other functions (i.e., the size of the employed labor force), it should be ex- pressed as a ratio to the latter. Hence the lower the ratio of managers, proprietors, and officials7 to the employed labor force the greater is the concentration of power. (This measure will hereafter be called the MPO ratio.
Sub: The ability to mobilize community people and resources requires a management class.
Independent Variable: Managers, Proprietors and officals/ to employed labor force. Census data, number of managers
Dependent Variable: Success in Urban Renewal: Stages: Planning, Execution, Completion She classifies cities by: Those that exectued Those the abandoned the problem (for whatever reason) Those who never tried urban renewal - although they quality..
Intervening variables:
-
- Aug 2021
-
destroytoday.com destroytoday.com
-
With JavaScript, you can actually calculate the width of the scrollbar and whether it’s visible by comparing two properties—window.innerWidth and document.body.clientWidth. If these are equal, the scrollbar isn’t visible. If these are different, we can subtract the body width from the window width to get the width of the scrollbar:const scrollbarWidth = window.innerWidth - document.body.clientWidthWe’ll want to perform this both on page load and on resize, in case someone resizes the window vertically and changes the overflow. Then, once we have the scrollbar width, we can assign it as a CSS variable:document.body.setProperty("--scrollbarWidth", `${scrollbarWidth}px`)
missing feature: vw/vh can't be used "directly" because doesn't account for scrollbars
-
-
jacobfilipp.com jacobfilipp.com
-
or email me at “j@thisdomain”
-
- 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
-
in languages (like JavaScript and Java) where external objects do have direct access to instance vars
-
- May 2021
-
moodle.southwestern.edu moodle.southwestern.edu
-
control
what arguments will people try to counter with? you use control variables to try and counter them
-
- Feb 2021
-
docs.travis-ci.com docs.travis-ci.com
-
CI=true
-
-
github.com github.com
-
STATSD_SAMPLE_RATE: (default: 1.0)
It's recommended to configure this library by setting environment variables.
The thing I don't like about configuration via environment variables is that everything is limited/reduced to the string type. You can't even use simple numeric types, let alone nice rich value objects like you could if configuration were done in the native language (Ruby).
If you try to, you get:
ENV['STATSD_SAMPLE_RATE'] = 1 config/initializers/statsd.rb:8:in `[]=': no implicit conversion of Integer into String (TypeError)
-
-
psyarxiv.com psyarxiv.com
-
DeYoung, C. G., & Krueger, R. (2020, October 27). To wish impossible things: On the ontological status of latent variables and the prospects for theory in psychology. https://doi.org/10.31234/osf.io/4anhr
-
- Jan 2021
-
www.py4e.com www.py4e.com
-
We need to pick a name for that value to be remembered and we can use that symbolic name to retrieve the value later
Why do we need variables?
-
- Nov 2020
-
css-tricks.com css-tricks.com
-
-
let root = document.documentElement; root.addEventListener("mousemove", e => { root.style.setProperty('--mouse-x', e.clientX + "px"); root.style.setProperty('--mouse-y', e.clientY + "px"); });
-
Here’s a CSS variable (formally called a “CSS custom property“)
-
-
developer.mozilla.org developer.mozilla.org
-
codeburst.io codeburst.io
-
A great thing about CSS variables is their reactive nature. As soon as we update them, whatever property has the value of the CSS variable gets updated as well.
-
The standard cascade rules also apply to the CSS Variables.So, if a custom property is declared multiple times, the lowermost definition in the css file overwrites the ones above it.
-
-
- Oct 2020
-
www.scribbr.com www.scribbr.com
-
Understanding types of variables
Understanding types of variables
-
- Sep 2020
-
github.com github.com
-
You can style a component by overriding the available CSS variables.
Tags
Annotators
URL
-
-
-
style.css now uses native CSS variables
-
- May 2020
-
docs.gitlab.com docs.gitlab.com
-
docs.gitlab.com docs.gitlab.com
-
Some GitLab features can behave differently for each environment. For example, you can create a secret variable to be injected only into a production environment.
-
- Apr 2020
-
stackoverflow.com stackoverflow.com
-
Ruby 2.1 added local_variable_set, but that cannot create new local variables either
-
- Jan 2020
-
Local file Local file
-
the literature can be categorized accordingto the learner and the extent to which self-directedness is an a priori personalcharacteristic and associated with other variables such as educational level, cre-ativity, learning style, and so on.
Variables: education level, personality traits, learning styles, etc.
-
- Dec 2019
-
github.com github.com
-
neutrino build --require dotenv/config You can then tell Neutrino to inject these environment variables in your neutrinorc: ['@neutrinojs/env', [ 'NODE_ENV', 'APPLICATION_NAME', 'LOGIN_STRATEGIES', 'TASKCLUSTER_ROOT_URL', ]],
-
- Oct 2019
-
medium.com medium.com
-
When making the AJAX request, make sure to set the withCredentials property to true.
This is something very important to remember.
-
- Aug 2019
-
help.photosynq.org help.photosynq.org
-
Accessing a Single Value from Variables
@n for a single variable
2n<array><value>
Tags
Annotators
URL
-
- Jul 2019
-
livebook.datascienceheroes.com livebook.datascienceheroes.com
-
2.1.8 Automatic data frame discretization
-
- Apr 2019
-
cran.r-project.org cran.r-project.org
-
Directed Acyclic Graph (DAG) with nodes representingrandom variables
-
- Mar 2019
-
blogs.articulate.com blogs.articulate.com
-
This is associated with the e-learning development tool "Articulate Storyline." There are frequent blog posts and they are not limited to or exclusive to the Articulate products. Posts are brief and not all of the content will be new, but there are worthwhile tips to be had and they combine theory (not to the extent that an academic would) with practice. rating 3/5
-
- Dec 2017
-
wiki.c2.com wiki.c2.com
-
Testing and Confinement - source that utilizes globals is somewhat more difficult to test because one cannot readily set up a 'clean' environment between runs. More generally, source that utilizes global services of any sort (e.g. reading and writing files or databases) that aren't explicitly provided to that source is difficult to test for the same reason. For communicating systems, the ability to test system invariants may require running more than one 'copy' of a system simultaneously, which is greatly hindered by any use of shared services - including global memory - that are not provided for sharing as part of the test.
Important limitation to understand.
-
- Nov 2017
-
docs.statwing.com docs.statwing.com
-
Heteroscedasticity
Heteroscedasticity is a hard word to pronounce, but it doesn't need to be a difficult concept to understand. Put simply, heteroscedasticity (also spelled heteroskedasticity) refers to the circumstance in which the variability of a variable is unequal across the range of values of a second variable that predicts it.
-
- Sep 2017
-
rampages.us rampages.us
-
ocial networks is relational data
This is different than traditional social science which focuses on independent and dependent variables. For SNA, all data is related to all other data; no variables are mutually exclusive. This is why SNA is fundamentally descriptive.
-
-
rampages.us rampages.us
-
descriptive analysis
The challenge of descriptive research for traditional social scientists is the change in how questions are asked. Questions should focus on describing something in a deep and informative way. Traditional social science relies more on predictive and inferential analysis. Can I predict what will happen if this variable changes in this way? Research questions identify the independent and dependent variables. SNA does not have IV and DV so questions are more about revealing what is going on underneath; i.e. how do the members of corporations know each other?
-
-
rampages.us rampages.us
-
tudies the relationships we have
I am a bit confused here...SNA focuses directly on the space between individuals. Our relationships live in this space. Traditional social science looks at the characteristics of individuals to see if they vary according to another variable, i.e. independent and dependent variables. There are no IV and DV in SNA, at least in basic SNA. More advanced SNA blends statistics and SNA data.
-
-
rampages.us rampages.us
-
how they influence our lives, and how individual behavior is shaped by these networks.
Networks are what sociologists talk about all the time but our methods don't fully 'see' them. We find relationships between variables--i.e. race and class--and then discuss how this relationship is due to social forces. Networks are the way in which social forces exert power!
-