https://docs.google.com/presentation/d/1Q1mS7i_-kkTZtDw2P625NfO2TZfZFNGZ_vvtRluZ2kE/edit?usp=sharing
Introduction to Conditional Random Fields (Linear) http://blog.echen.me/2012/01/03/introduction-to-conditional-random-fields/
window.SONG_NO = 0; | |
setInterval(function () { | |
if (!$('#gp_play') || !$('#gp_play').hasClass('playing')) { | |
$($('.post_audio .play_btn_wrap')[window.SONG_NO]).click(); | |
window.SONG_NO++; | |
} | |
}, 5000); |
alert(); |
package net.tixxit.levenshtein | |
import scala.math.min | |
object EditDistance { | |
def editDist[A](a: Iterable[A], b: Iterable[A]) = | |
((0 to b.size).toList /: a)((prev, x) => | |
(prev zip prev.tail zip b).scanLeft(prev.head + 1) { | |
case (h, ((d, v), y)) => min(min(h + 1, v + 1), d + (if (x == y) 0 else 1)) | |
}) last |
/* | |
We have: | |
*/ | |
CREATE TABLE data (id BIGINT, name VARCHAR); | |
CREATE UNIQUE INDEX ON data (name); | |
INSERT INTO data (id, name) VALUES (1, 'Alex'), (2, 'Bob'), (3, 'alex'), (4, 'AleX'); | |
/* | |
If we put (3, 'Alex') then we get error: | |
*/ |
https://docs.google.com/presentation/d/1Q1mS7i_-kkTZtDw2P625NfO2TZfZFNGZ_vvtRluZ2kE/edit?usp=sharing
Introduction to Conditional Random Fields (Linear) http://blog.echen.me/2012/01/03/introduction-to-conditional-random-fields/
/** | |
Copy left Alexander Hasselbach | |
Usage: | |
val E = b.add(splitEither[Throwable,Int]) | |
val parsed = b.add(Flow[Either[Throwable,Int]]) | |
val valids = b.add(Flow[Int]) | |
val invalids = b.add(Flow[Throwable]) | |
/** | |
Copy left Alexander Hasselbach | |
Usage: | |
val E = b.add(mergeEither[Throwable,Int]) | |
val parsed = b.add(Flow[Either[Throwable,Int]]) | |
val valids = b.add(Flow[Int]) | |
val invalids = b.add(Flow[Throwable]) | |
import scala.util.Try | |
/** | |
* Адаптированная версия c https://rosettacode.org/wiki/Natural_sorting#Scala | |
*/ | |
object NaturalOrdering extends Ordering[String] { | |
def compare(a: String, b: String): Int = { | |
val aNumTry = Try(BigDecimal(a)) | |
val bNumTry = Try(BigDecimal(b)) |
Just like Lukas Prokop, I ran into an issue installing Vivado 2022.1 on Ubuntu 22.04. The error looks just like in their article: https://lukas-prokop.at/articles/2021-02-02-vivado-install-stuck
His article gives a recipe to fix 2018.1 version but it's not exactly fit for 2022.1, though an underlying issue is probably the same. Fix is very similar as well, and I'm trying to give more generalized approach.
The idea is to fix LD_LIBRARY_PATH environment varible for commands the installer runs.
# Put this script in `~/.kube/` directory | |
# > terraform init | |
# > terraform apply | |
locals { | |
# preferences | |
context2nicename_preference = { | |
"long-cluster-main" = "longcl" | |
} | |
# Directory in which a directory is created for each context from .kube/config |