« first day (3478 days earlier)      last day (639 days later) » 

4:44 AM
super mega multi duplicate (ANSWERED BY DIAMOND!) stackoverflow.com/q/73209663/2943403
 
 
2 hours later…
0
Q: syntax error: unexpected end of file (expecting "then")

Sherzod AkramovI have an entrypoint.sh file, and I try command docker-compose run web python manage.py runserver. But I get this error: : not found.sh: line 2: /entrypoint.sh: line 25: syntax error: unexpected end of file (expecting "then") ERROR: 2 My entrypoint.sh file: #!/bin/sh if [ "$DATABASE" = "postgres"...

 
8:14 AM
0
Q: read value of csv by column name from bash

108I have following CSV file Name,Subject1,Subject2 Sagar,98,20 Akshay,80,12 I want to get value of subject1 of student whose name is Sagar. I have tried following code while IFS=, read -r field1 field2 field3 do if ["$field1" == "Sagar"] then echo "$field2" fi done < sample.c...

 
 
1 hour later…
9:32 AM
21 messages moved from broomba
 
mr5
9:52 AM
I had to annotate all of the schemes lol
but this is actually just 3 apps but with multiple "environment"
1 message moved from C#
wtf have I done
1 message moved from C#
damn. I'm gonna be terminated for exposing some private company info Y_Y
4 messages moved from C#
 
 
2 hours later…
 
5 hours later…
 
1 hour later…
8:23 PM
Hi, can you help me, please?

import { Model } from 'sequelize/types';

import { internalError } from '../lib/errors';

export const findByPkOrFail = async <T extends Model>(
model: T,
id?: string,
): Promise<T> => {
const doc = await model.findByPk(id);
if (!doc) {
throw internalError('Vote does not exist');
}
return doc;
};

I'm getting error on TS `Property 'findByPk' does not exist on type 'T'.ts(2339)`. What should I do?
 
1 message moved from JavaScript
 
Hi, can you help me, please?

import { Model } from 'sequelize/types';

import { internalError } from '../lib/errors';

export const findByPkOrFail = async <T extends Model>(
model: T,
id?: string,
): Promise<T> => {
const doc = await model.findByPk(id);
if (!doc) {
throw internalError('Vote does not exist');
}
return doc;
};

I'm getting error on TS `Property 'findByPk' does not exist on type 'T'.ts(2339)`. What should I do?
 
1 message moved from JavaScript
 

« first day (3478 days earlier)      last day (639 days later) »