- Dec 2024
-
mlpr.inf.ed.ac.uk mlpr.inf.ed.ac.uk
-
If you thought that this assumption was unrealistic, howwould you relax this assumption
Flag: Don't read if don't want to see a (possibly incorrect) attempt of an answer: (Grateful for any comments/disagreements, further points to add)
Attempted answer: Assumption is that, given a class, features are independent. We could relax this by using 2-d gaussians for our class distributions that have non-zero covariance (off-diagonal) terms so that we have dependencies between features (currently we have these set to zero for independence)
-
- Nov 2024
-
-
The very unusual fact that many Americans opted to not vote for any of the national candidates while still casting votes for down-ballot candidates in their respective local elections suggests they were highly frustrated with the two options presented to them.
for - 2024 US election results - many Americans voted for down-ballot candidates but not national candidates - suggested no options available to voters - Otto Scharmer
Tags
Annotators
URL
-
-
www.youtube.com www.youtube.com
-
one man in his half a page which I actually acquired in the process of writing a book 15 years ago typ written a typewritten half a page he said what we must do we must treble our deficit treble our deficit we have a deficit which is bad we must make it three times as big and make the capitalists of the rest of the world pay for it which is exactly what happened the United States should increase its deficit and use it to create aggregate demand for the net exports of Germany and Japan and later on China
for - US foreign policy - National Security Council member suggested - triple the deficit too act as a magnet to draw in experts of other countries - Yanis Varoufakis
-
- Jan 2022
-
highlyscalable.wordpress.com highlyscalable.wordpress.com
-
en.wikipedia.org en.wikipedia.org
Tags
Annotators
URL
-
- Apr 2020
-
inquiry.writeas.com inquiry.writeas.com
-
Regarding a Hunter S. Thompson book. The reviews on Amazon. One review said to read Fear and Loathing in Las Vegas first before this one inquiry mentions. So noted.
Tags
Annotators
URL
-
- Mar 2020
-
www.telstra.com.au www.telstra.com.au
-
Position your modem off and well above the floor.
suggested actions
-
Move your modem to a central point in your home.
suggested actions
-
Here are some tips to help improve your Wi-Fi set up:
suggested tips
create need for product
-
You’ve already got your home internet from us, but with so many devices connected to your home Wi-Fi you just want it to work well. Here are some tips on how to make your experience even better.
grab attention
conditions of need for product
suggested tips
-
- Nov 2019
-
brianyang.com brianyang.com
-
Generated black magic code will give us a hard time building on top when we try to adjust or extend it without knowing what it actually does.
Generated black magic code will give us a hard time building on top when we try to adjust or extend it without knowing what it actually does.
-
- Oct 2019
-
brianyang.com brianyang.com
-
With APIs, you pull data from the provider. But webhooks allow the provider to push data to you.
With APIs, you pull data from the provider. But webhooks allow the provider to push data to you.
-
- May 2019
-
brianyang.com brianyang.com
-
Hooks enable a drastically different way to build stateful components in React, which means that they also invalidate 1 a lot of the established patterns.
Hooks enable a drastically different way to build stateful components in React, which means that they also invalidate 1 a lot of the established patterns.
-
- Mar 2019
-
-
While hooks alone are useful, they become even more powerful with the ability to combine them into custom hook functions. By building your own hooks, you are able to extract React logic into reusable functions that can simply be imported into our components. The only caveat to hooks is that you must follow some basic rules.
While hooks alone are useful, they become even more powerful with the ability to combine them into custom hook functions. By building your own hooks, you are able to extract React logic into reusable functions that can simply be imported into our components. The only caveat to hooks is that you must follow some basic rules.
-
- Feb 2019
-
brianyang.com brianyang.com
-
Where this gets even more powerful is the ability to create custom hooks that use useStaticQuery in them. Let’s say you need to query for the site title several times in your app. Instead of a call to useStaticQuery in each component, you can extract it out to a custom hook like:
Where this gets even more powerful is the ability to create custom hooks that use useStaticQuery in them. Let’s say you need to query for the site title several times in your app. Instead of a call to useStaticQuery in each component, you can extract it out to a custom hook like:
Tags
Annotators
URL
-
-
brianyang.com brianyang.com
-
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
Tags
Annotators
URL
-
-
brianyang.com brianyang.com
-
Mocking and testing fetch with Jest
Mocking and testing fetch with Jest
-
-
brianyang.com brianyang.com
-
Add notify and you’ll get desktop notifications when the test runner finishes. If you have thousands of tests, they can take a while to finish. Just by adding this flag you’ll optimize your time.
Add notify and you’ll get desktop notifications when the test runner finishes. If you have thousands of tests, they can take a while to finish. Just by adding this flag you’ll optimize your time.
-
-
brianyang.com brianyang.com
-
Adding type annotations can take a little bit of additional type, but the benefits will undoubtedly pay off. Our code will be less prone to errors, it will be self-documented, and our team members will be much more productive because they will spend less time trying to understand the pre-existing code.
type annotations help us code faster
-
- Jul 2018
-
-
It seems that users prefer to use applications instead of mobile sites on smartphones, but at the same time, they are not eager to install apps from the stores. PWAs solve that problem.
users prefer to use apps instead of mobile sites, but don't want to install apps from the app store
-
- Jun 2018
-
brianyang.com brianyang.com
-
Apollo link state is a way to combine your local state management with your remote state management. The approach assumes you are using Apollo, which allows you to use GraphQL over Rest. However, you do not need a GraphQL server in order to use this approach! – apollo-link-http allows you to write everything you need to adopt Apollo client side. This means that it's a viable all-in-one solution for state management (async and remote included), even if you aren't using GraphQL.
Manage local state and remote state with apollo-link-state, without needing GraphQL, using apollo-link-http
-
-
brianyang.com brianyang.com
-
We knew we had to solve this problem, so we asked ourselves: What would it look like to manage state in Apollo Client? First, we thought about what we liked about Redux — features like its dev tools and binding state to components via connect. We also thought about some of our pain points with Redux, like its boilerplate and its do-it-yourself approach to core features like asynchronous action creators, caching, and optimistic UI.
Managing your local data in Apollo Client with apollo-link-state
Tags
Annotators
URL
-
- May 2018
-
brianyang.com brianyang.com
-
Please use Open Zeppelin smart contracts, they help to take the guesswork out of security issues with solidity and ensure that you are deploying a safe smart contract. It is not a silver bullet, but it will help you to develop more secure code.
Use Open Zeppelin smart contracts and write more unit tests.
-
-
brianyang.com brianyang.com
-
What we need is actions and dispatchers to dynamically update the store. What if our dynamic store was just the state of a root React component?
What we need is actions and dispatchers to dynamically update the store. What if our dynamic store was just the state of a root React component?
-
-
brianyang.com brianyang.com
-
First, using change detection only for updating the view state limits the number of places where the application model can be changed. In this example it can happen only in the `rateTalk` function. A watcher cannot "automagically" update it. This makes ensuring invariants easier, which makes code easier to troubleshoot and refactor.
trigger $digest cycle on: User Interaction through events, XMLHttpRequests and Timeouts.
-
-
brianyang.com brianyang.com
-
Now that you have setup the library successful, you can use many algorithms of deep-learning in the start function after net = new convnetjs.Net();, and if you need something to run periodically then use the periodic function.
Use deep-learning algorithms with the constructor.
-
-
-
In order to ensure that happens, Webpack provides chunkhash. Chunkhash is based on the contents of each entry point rather than the entire build. Using that is just as easy:
Chunkhash is based on the contents of each entry point rather than the entire build.
-
-
brianyang.com brianyang.com
-
In this article, I am going to give a quick overview about Node.js and then we will share 50 most recommended node.js framework which will help software developer to boost their skills.
Brief on various node frameworks, mostly unmaintained.
-
-
brianyang.com brianyang.com
-
This problem is a classic one with small to medium companies. The application that is being developed in the company has only unit tests (the base of the pyramid) and nothing else.
Unit tests without integration tests is an anti-pattern
-
- Feb 2018
-
old.tg4.ie old.tg4.ie
-
Máire Ní Mhongáin
As Ciarán Ó Con Cheanainn writes in Leabhar Mór na nAmhrán, the oldest written version of this song dates to 1814, and is found in MS Egerton 117 in the British Library. Oral lore in Conneamara has it that Máire Ní Mhongáin’s three sons joined the British Army, and that Peadar deserted soon after joining, and emigrated to America. It seems probable that their involvement was in the French Revolutionary Wars or the Napoleonic Wars, the major conflicts fought by the British Army in the final decade of the eighteenth century and the first decade of the nineteenth respectively.
Máire Ní Mhongáin seems to have resonated among Irish emigrant communities in the United States. My evidence for this is that Micheál Ó Gallchobhair of Erris, County Mayo, collected songs from Erris emigrants living in Chicago in the 1930s, over a century after the occasion of ‘Amhrán Mháire Ní Mhongáin’s’ composition. It features in his collection, which you access via the following link: http://www.jstor.org.ucc.idm.oclc.org/stable/20642542?seq=2#page_scan_tab_contents
The virulent cursing of departed sons by the mother, named Máre, produces the effect of striking g contrasts with John Millington Synge’s bereaves mother, Old Maurya, in Riders to the Sea.
My Irish Studies blog features an in-depth account of typical features of the caoineadh genre to which Amhrán Mháire Ní Mhongáin belongs. You can access it via the following link: johnwoodssirishstudies.wordpress.com/2018/01/03/carraig-aonair-an-eighteenth-century-west-cork-poem/
-
-
old.tg4.ie old.tg4.ie
-
Bean an tSeanduine - Sean Nós 2
‘Bean an tSeanduine’ features all of the conventions of the malmariée genre we have previously encountered in ‘An Seanduine Cam’. Also, it is a good example of the speaker blaming her parents for her plight, which is another regular feature of this song type.
As well as being one of the finest examples of the genre, it is perhaps the most well-known and commonly sung, owing in large part to the simplicity and catchiness of its monosyllable end-rhymes.
As well as Ó Tuama, Meidhbhín Ní Úrdail has written about the common features of the chanson de la malmariée. Her article ‘The Representation of the Feminine: Some evidence from Irish language sources’ in Eighteenth-Century Ireland/Iris an Dá Chultúr is a rich source of information on the topic. In ‘Bean an tSeanduine’, we have a fine example of what Ní Úrdail calls the description of ‘the plight of a beautiful young woman, trapped in an unhappy marriage to an impotent elderly spouse who is ignorant of her mental and physical frustration’. However, when we consider the particular humour of this song, we can identify how it serves to empower the female speaker.
‘Bean an tSeanduine’ differs from ‘An Seanduine Cam’ in that there is no third-person narrator. Like ‘An Seanduine Cam’, the humour of the song relies on a ridiculing of the old man, although here the young woman herself is his detractor. Each of his brags meet a witty riposte. When he claims wealth, she calls him a miser, and when he wonders what would become of his if he died during the night, she jokes that death is an immanent danger. When mockery of this kind is voiced by the female speaker, it serves to empower her, and inspire in the listener a sense of sympathy and respect.
-
-
old.tg4.ie old.tg4.ie
-
An Seanduine Cam - Corn Uí Riada 2016
The song’s first two verses are spoken by a third-person narrator. In its humorous exaggeration, the first verse caricatures recognized conventions of arranged marriage. This narrative consciously situates itself in a genre whose familiarity to the listener is a necessary part of the humour. It addresses the economic incentives which were the major precipitating factors of marriage arrangements in rural Ireland during the eighteenth century. It also invokes the misery which such marriages often visited upon young women.
In his essay ‘Love in Irish Folksong’, Seán Ó Tuama identifies among typical features of the malmariée genre that ‘a young woman speaks (in the first person) of her anguish,’ that ‘the description of the husband can be unbelievably grotesque and ribald: he is humped, crippled; he coughs, grunts, whines at night; most of all, he is cold as lead, important, and completely fails to satisfy her desires’, and that ‘she discloses that she is going to leave him for a young man’ (149). ‘An Seanduine Cam’ provides clear examples of all of these traits.
Moreover, because these tendencies find expression in a debate form, and are redoubled in response to the unfeeling man, the resistant character of the put-upon young woman is strongly emphasized.
-
-
archive.org archive.org
-
chúige
‘what you yourself and the late John O’Daly, following in the footsteps of Edward Walsh, to some extent accomplished for Munster, more than thirty years ago’ (iv)
John O’Daly (1800-1878) was an editor and publisher. He published Edward Walsh’s Reliques of Irish Jacobite Poetry (1844), as well as two series of Poets and Poetry of Munster, the first by James Clarence Mangan (1849), and the second by George Sigerson (1860). In another of his works, Mise agus an Conradh (1937), Hyde wrote ‘Ní raibh éinne, lena linn, a rinne níos mó ar a shlí féin chun Gaeilge a leathnú agus a shaothrú’ (There was noone, during O’Daly’s time, who did as much as he did to popularize Gaelic’, my trans.) The most comprehensive biography of John O’Daly is that in Beathaninéis, vol. 2, by Diarmuid Breathnach and Mairéad Ní Mhurchú. It is available online at https://www.ainm.ie/Bio.aspx?ID=1193
The most comprehensive biography I have found in English is the entry in The Oxford Companion to Irish Literature, edited by Robert Welch.
-
grádh
‘My Dear Dr. Sigerson’ (iv)
The Dr. Sigerson in question is George Sigerson (1836-1925), a physician and an eminent translator of Gaelic poetry. When the Gaelic League was founded in 1893, Hyde was elected as its present, and so absented his role as president of the National Literary Society. Sigerson succeeded him, and was the society’s incumbent present when Love Songs of Connacht was published.
A direct address to the National Literary Society was famously performed by Hyde in 1892. The central idea of his speech titled ‘The Necessity for De-Anglicising Ireland’ was that there was an indissoluble link between a nation’s language and its culture, and that it was a sign of cultural weakness to mimic English ways and habits of thought.
The beginning of Love Songs of Connacht reminds us of the ideological backdrop from which the book emerges. For in-depth accounts of the development of the idea that language and nationhood are inextricably linked, see Diarmuid Ó Giolláin’s Locating Irish Folklore: Tradition, Modernity, Identity (2000), and Joep Leerssen’s National Thought in Europe: A Cultural History (2006). You can read the text of Hyde’s 1892 speech to the National Literary Society at http://historymuse.net/readings/HYDENecessityforDeAnglicizingIreland1892.html
-
- Jan 2018
-
brianyang.com brianyang.com
-
reuse some exisitng configuration files without necessarily understand how Webpack really works.
Get around having to reuse webpack config files.
Tags
Annotators
URL
-
-
brianyang.com brianyang.com
-
What makes Watson really great to me is its Natural Language Understanding and all the Watson Developer Cloud services are available in beta form, so they are free to use.
Watson Developer Cloud services are available in beta form
Tags
Annotators
URL
-
- Jun 2017
-
-
Throughout a lot of the case studies that Addy features, the heavy-hitters in building for better web experiences lied in link rel=preload, requestIdleCallback(), and HTTP2 Server Push. There were many mentions the PRPL pattern
Build a better web experience with link rel=preload, requestIdleCallback(), HTTP2 Server Push, and PRPL
-
- Jan 2017
-
-
In fact, you can compose those components with each others to make more advanced charts. That way, you benefit from already available reusable components. You can even break those advanced components in multiple reusable ones on your end.
Victory gives you composable components and some useful abstractions out-of-the-box, but when your requirements are very specific you will need to use D3 directly.
-
-
brianyang.com brianyang.com
-
If you write code at the peak of your mental capacity, then it will be harder for you to understand it later, not to even mention your colleagues who are not even familiar with the intricacies of the algorithm
Keep your code extremely simple, so when you come back to it 6 months later, you'll know what the heck you were doing.
-
-
brianyang.com brianyang.com
-
PureComponent saves us time and helps us to avoid writing redundant code. It is important to understand the right ways to use it, otherwise its usefulness is voided. Since the PureComponent does shallow comparison, changes inside props or state will be ignored. For example, let's consider a situation where the parent component has a render method and a click handler:
Shortcut to do only shallow comparisons before triggering render will optimize React apps as deep comparisons are expensive.
-
-
-
The process of setting up Lambda that has been demonstrated in this article is very manual and somewhat ephemeral, but there are other ways to configure and initialize Lambda driven by the AWS API.
Serverless just means not having to maintain one, and instead using functions as a service. Easily configurable with some frameworks.
-
- Dec 2016
-
-
Ember tries to solve this with FastBoot. Backbone has Rendr. React has React Isomorphic.
Angular Universal over React Universal, Ember FastBoot, and Backbone Rendr
-
-
-
Whether used on their own or combined together, the best thing about these two features is that they are the perfect progressive enhancement. If your user's browser doesn't support them, they will simply fall back to HTTP/1.1 without Service Workers. Your users may not experience as fast a load time as they would with these two techniques, but it would be no different from their normal experience. HTTP/2 Server Push and Service Workers are really the perfect partners when it comes to web performance.
Pushing data to the user with HTTP2 before the browser has requested it, and serving assets from a cache on subsequent page loads with service workers.
-
-
brianyang.com brianyang.com
-
By restraining the usage of context to be just a dependency injection system, instead of a state container, we can make context based libraries and shouldComponentUpdate behave both correctly without interference, without breaking the API's of consumers. And without requiring a better context implementation in React itself. Just stick to this simple rule:
Use context as dependency injection that will only be called once within a component.
Tags
Annotators
URL
-
-
-
On a related note, multitasking is a really bad idea. To be productive, developers need to focus on one thing at a time.
It costs a lot to switch and do different things. Concentration produces better quality code with less bugs.
-
-
brianyang.com brianyang.com
-
... props are a way of passing data from parent to child. ... State is reserved only for interactivity, that is, data that changes over time.
Managing ephemeral state is often done with a predictable state container such as Redux, Flux, or MobX.
Tags
Annotators
URL
-
-
-
It's a shame that we're all still building custom solutions to this problem rather than collectively using something built into the browser. Users tend to learn the UX features of their browsers if they're exposed to them enough. We don't debate whether a user will have trouble inputting text into an <input>, or selecting an option from a <select>, because these are controls that the user sees in their browser of choice all the time.
Instead of building our own form validation styles we should be using what's built into the browser.
-
-
brianyang.com brianyang.com
-
To get to instant-loading, auto-upgrading experience, all you need to do is combine the laser-sharp leanness of AMPs with the richness of progressive web apps in one (or multiple) of the following ways: AMP as PWA When you can live with AMP's limitations. AMP to PWA When you want to smoothly transition between the two. AMP in PWA When you want to reuse AMPs as a data source for your PWA.
AMPs load instantly and PWAs give you native-like experiences. Some patterns in implementing them together.
-
-
brianyang.com brianyang.com
-
Let's say we have a page that's a simple form. Or simple form will have autocomplete, so we need to make queries. We need to submit the form so we will have a mutation. This same form will be used to allow users to edit the record, so we need multiple mutation queries in one componentX. One way to accomplish this is with compose, which takes multiple mutation queries and runs them simultaneously. You will need to name your queries.
How to GET, POST, and DELETE in one view in a React component on a reactive server with GraphQL
Tags
Annotators
URL
-
-
brianyang.com brianyang.com
-
This is really simple to use once you have React v15.4.0 in your project. We kindly copied the guide for Google Chrome from v15.4.0 release notes:
Component profiling now ready with React v15.4 in Chrome devtools timeline
Tags
Annotators
URL
-
-
brianyang.com brianyang.com
-
This is where babel-preset-env comes in: it's a Babel preset that automatically determines the correct Babel plugins to use based on the provided environments
Babel presets let you target supported environment. Tell the transpiler how to handle ES2015 and ES2016 constructs and avoid transpiling everything down to ES5, for example.
Tags
Annotators
URL
-
-
-
make your own successful strategy to transform your technology stack quickly and successfully
make your own successful strategy to transform your technology stack quickly and successfully
-
-
brianyang.com brianyang.com
-
automatically update links in a navigation list based on scroll position.
Scrollspy is used to automatically update links in a navigation list based on scroll position.
-
-
-
So as a developer you don't bother with complicated interactions. You just manage changes to the state in response to user or server changes. The UI then updates itself. And they all use a "virtual dom" for performance (use service workers) and to increase portability of rendering (server, client or even native mobile app). A CLI to simplify common tasks and facilitate recommended best-practices.
Predominant theme in JS frameworks - manage changes in your state, directed by the user or server, and the UI updates itself.
-
-
brianyang.com brianyang.com
-
Use React for ephemeral state that doesn't matter to the app globally and doesn't mutate in complex ways.
React components handle state effectively, there's no need to throw in Redux because that's what all the cool kids are doing.
-
-
brianyang.com brianyang.com
-
Electron compiles desktop applications for Windows, Linux, and Mac. Meteor creates a full stack web application and potentially iOS and Android apps via Cordova.
Electron compiles desktop applications for Windows, Linux, and Mac. Meteor creates a full stack web application and potentially iOS and Android apps via Cordova.
-
- Feb 2015
-
firstaid.cloud.answerhub.com firstaid.cloud.answerhub.com
-
Positive-stranded RNA viruses: I went to a retro (retrovirus) toga (togavirus) party, where I drank flavored (flavivirus) Corona (coronavirus) and ate hippy (hepevirus) California (calicivirus) pickles (picornavirus).
I would add "positively fun" to the mnemonic for positive-stranded RNA viruses, so it reads, "I went to a POSITIVELY FUN retro toga party, where I drank flavored Corona and ate hippy California pickles.
-