Configure octane laravel/octane
Install swoole extension (place in corresponding .ini file(s)):
pecl install swoole| <script setup> | |
| import {computed} from 'vue'; | |
| defineEmits(['fetchData']); | |
| const props = defineProps({ | |
| paginator: { | |
| type: Object, | |
| required: true, | |
| default: { |
| import { useNuxtApp } from '#app' | |
| import { sendRedirect } from 'h3' | |
| /** | |
| * Performs an external redirect in a Nuxt3 route middleware. Once this Nuxt3 | |
| * pull request is merged, this function can be removed in favor of navigateTo: | |
| * | |
| * https://github.com/nuxt/framework/pull/5022 | |
| * | |
| * @param url - An external url to redirect to |
| # Minor tweaks from https://eplt.medium.com/5-minutes-to-install-imagemagick-with-heic-support-on-ubuntu-18-04-digitalocean-fe2d09dcef1 | |
| sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list | |
| apt-get update | |
| apt-get -y install build-essential autoconf libtool git-core | |
| apt-get -y build-dep imagemagick libmagickcore-dev libde265 libheif | |
| cd /usr/src/ | |
| git clone https://github.com/strukturag/libde265.git | |
| git clone https://github.com/strukturag/libheif.git | |
| cd libde265/ | |
| ./autogen.sh |
Configure octane laravel/octane
Install swoole extension (place in corresponding .ini file(s)):
pecl install swoole| <template> | |
| <div class="editor"> | |
| <template v-if="editor && !loading"> | |
| <div class="count"> | |
| {{ count }} {{ count === 1 ? 'user' : 'users' }} connected to {{ projectPath }}/{{ docName }} | |
| </div> | |
| <editor-content class="editor__content" :editor="editor" /> | |
| </template> | |
| <em v-else> | |
| Connecting to socket server … |
Image.js from the source below (it is almost a copy of Image.js from tiptap-extensions
except that it has a constructor that accepts uploadFunc (function to be called with image being uploaded) and additional logic if(upload) { ... } else { ... previous base64 logic .. } in the new Plugin section.import {Node, Plugin} from 'tiptap'
import {nodeInputRule} from 'tiptap-commands'
/**
* Matches following attributes in Markdown-typed image: [, alt, src, title]
*If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.
This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.
DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.
To upgrade WSL, follow these steps,
| import level = require('level') | |
| import * as encoding from 'lib0/dist/encoding' | |
| import * as decoding from 'lib0/dist/decoding' | |
| import * as syncProtocol from 'y-protocols/dist/sync.js' | |
| import * as authProtocol from 'y-protocols/dist/auth.js' | |
| import { createMutex } from 'lib0/dist/mutex.js' | |
| const mux = createMutex() | |
| function getEmptyEncodedStateVector() { |
| STATEFP | STUSPS | NAME | xmin | ymin | xmax | ymax | ||
|---|---|---|---|---|---|---|---|---|
| 1 | 01 | AL | Alabama | -88.473227 | 30.223334 | -84.88908 | 35.008028 | |
| 2 | 02 | AK | Alaska | -179.148909 | 51.214183 | 179.77847 | 71.365162 | |
| 3 | 60 | AS | American Samoa | -171.089874 | -14.548699 | -168.1433 | -11.046934 | |
| 4 | 04 | AZ | Arizona | -114.81651 | 31.332177 | -109.045223 | 37.00426 | |
| 5 | 05 | AR | Arkansas | -94.617919 | 33.004106 | -89.644395 | 36.4996 | |
| 6 | 06 | CA | California | -124.409591 | 32.534156 | -114.131211 | 42.009518 | |
| 7 | 08 | CO | Colorado | -109.060253 | 36.992426 | -102.041524 | 41.003444 | |
| 8 | 69 | MP | Commonwealth of the Northern Mariana Islands | 144.886331 | 14.110472 | 146.064818 | 20.553802 | |
| 9 | 09 | CT | Connecticut | -73.727775 | 40.980144 | -71.786994 | 42.050587 |
| import numpy as np | |
| EPSILON = 1e-10 | |
| def _error(actual: np.ndarray, predicted: np.ndarray): | |
| """ Simple error """ | |
| return actual - predicted |