If we have a server action like this:
'use server';
export async function serverActionRoutine(){
throw new Error('prod error');
}
If we have a server action like this:
'use server';
export async function serverActionRoutine(){
throw new Error('prod error');
}
doing migration with Drizzle ORM delete/truncated all data from our "skills" table:
ALTER TABLE "skills" ALTER COLUMN "default_val" SET DEFAULT '{"value":1}';
ALTER TABLE "skills" ALTER COLUMN "skill_desc" SET DATA TYPE jsonb;
ALTER TABLE "skills" ALTER COLUMN "skill_desc" SET DEFAULT '[]'::jsonb;
ALTER TABLE "skills" ALTER COLUMN "skill_desc" SET NOT NULL;
ALTER TABLE "skills" ALTER COLUMN "search_vector" SET DEFAULT ''::tsvector;
ALTER TABLE "skills" ALTER COLUMN "embedding" SET DEFAULT null;
⨯ [Error: {"error":{"error":{"name":"NeonDbError","sourceError":{}},"trace":"dd-trace-upsert-coach-profile"},"trace":"dd-trace-a6c5-f92d9122e890"}] { | |
digest: '1396788746' | |
} | |
import gleam_cowboy | |
import gleam/http.{Request, Response} | |
import gleam/http/response.{ok} | |
pub fn main() { | |
gleam_cowboy.start(fn(_req: Request) { | |
ok("Hello, Gleam!") | |
}, on_port: 3000) | |
} |
Code looks fine to me. There might be a hidden race condition. The p.Count++ and p.Count-- are atomic ops. For every ++ it's corresponding -- should be called TBD.
package pool
import (
we can use this domain middleware
const Domain = require('domain');
app.use((req,res,next) => {
const getBBBMeetingInfo = async (meetingID) => { | |
const getMeetingInfo = api.monitoring.getMeetingInfo(meetingID); | |
const result = await bbb.http(getMeetingInfo); | |
result.meetingID = meetingID; | |
if(result.returncode == 'FAILED'){ | |
updateNotificationCallStatus(meetingID) | |
} |
This is some bad code, but illustrates the difficulty, futility, and pointlessness of implementing map/filter with Iterables.
Note that these are lazy (not eager). Nothing runs until the for..of
is called on an instance, etc.
class IterableWMapFilter<T> {
vals : T[]= [];
const http = require('http'); | |
const server = http.createServer((request, response) => { | |
response.end(` | |
<html> hello world this is julian, here is an image: <br> | |
<img src="https://static.wikia.nocookie.net/history/images/6/6a/Classical_greece..jpg"></img> | |
</html> |
this code does what you'd expect and useful for avoiding unnecessary arrays (although a standard for-loop is usually fine...)
export class IterableInt {
point = 0;
start: number = 0;
end: number = 0;