Is there a way to avoid or overcome this issue? Am I modeling in a poor manner that is causing this issue? Any help is appreciated as I am new to this.
You could play with the TransporterControl setup:
Beyond that, you are at the mercy of a black-box algorithm. You can only start coding your own (which is very advanced modeling...)
Reasons:
Blacklisted phrase (1): appreciated
Blacklisted phrase (1): Any help
Blacklisted phrase (1): Is there a way
RegEx Blacklisted phrase (3): Any help is appreciated
Did you ever end up solving this problem? I'm running into the same issue extracting zip files in ios using expo and JSZIP. The UI locks up while loading the zip.
did you solve this problem yet? I am facing some problem related to how PWA open external browser in standalone mode, I would like to know how do you fix your problem.
Reasons:
Blacklisted phrase (1.5): I would like to know
Blacklisted phrase (1): how do you
RegEx Blacklisted phrase (3): did you solve this problem
RegEx Blacklisted phrase (1.5): solve this problem yet?
I have the same problem. Every other SPF or DKIM tools, besides Postmaster Tool, show as correct with no errors/issues. Logic is not present in Postmaster Tools results, at least in my case which seems to also be the case for Ching. Does anybody have a clue?
For instance, in https://mxtoolbox.com/ all checks for SPF, DKIN and DMARC show in green, meaning success.
Appreciate any clues from you guys, thanks
Reasons:
Blacklisted phrase (0.5): thanks
Blacklisted phrase (1): I have the same problem
RegEx Blacklisted phrase (3): Does anybody have a clue
Utilizing VPI significantly slows down execution. Doesn't vendors like Synopsis provide functions to access the passed structures or arrays without utilizing VPI?
I want to implement the same for my application. Could you show code snippet to see how did you implement with save_object() and renderImage()? Will be very useful.
Thanks!
Reasons:
Blacklisted phrase (0.5): Thanks
RegEx Blacklisted phrase (2.5): Could you show code
@LMC by cropping, I meant, cutting a fragment of an image and saving as another file. So, for example
img[500:1500, 500:1500]
would give an image from 500th to 1500th pixel "vertically" and from 500th to 1500th pixel "horizontally".
@Konstantin Makarov there are two issues with your codes (both not working for me):
I want to save an image as .dcm file, not .png. The reason why I need a cropped dcm file is because I got many layers from the scanner, each in the different resolutions; and I need them in the same resolution in order to be able to read them in the segmentation program, as ITKSnap or 3DSlicer.
As far as I understand your codes, you assumed that I got one .dcm file with many layers - this is not true for me, I got separate files for the each layer. I mean, each layer is lets say in (x,y) coordinates, and the next layer is some distance (in z direction) from the previous one.
Could you please edit the code, given the above clarification?
@etauger I got numpy. Your code doesnt work for me. It gives an error for the last line of code (saving file). The error is below:
"C:\Program Files\Python\Python313\python.exe" D:\praca\GUMED\serce\testy2.py
Traceback (most recent call last):
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\tag.py", line 29, in tag_in_exception
yield
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 826, in write_dataset
write_data_element(fp, get_item(tag), dataset_encoding)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 686, in write_data_element
raise ValueError(
...<3 lines>...
)
ValueError: The (7FE0,0010) 'Pixel Data' element value hasn't been encapsulated as required for a compressed transfer syntax - see pydicom.encaps.encapsulate() for more information
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\praca\GUMED\serce\testy2.py", line 10, in <module>
ds.save_as(r"D:\praca\GUMED\dicom\mrxs\1_AORTA\AO_1_014_Masson\3_0-test-cropping.dcm")
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\dataset.py", line 2642, in save_as
pydicom.dcmwrite(
~~~~~~~~~~~~~~~~^
filename,
^^^^^^^^^
...<6 lines>...
**kwargs,
^^^^^^^^^
)
^
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 1455, in dcmwrite
write_dataset(fp, dataset)
~~~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 825, in write_dataset
with tag_in_exception(tag):
~~~~~~~~~~~~~~~~^^^^^
File "C:\Program Files\Python\Python313\Lib\contextlib.py", line 162, in __exit__
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\tag.py", line 33, in tag_in_exception
raise type(exc)(msg) from exc
ValueError: With tag (7FE0,0010) got exception: The (7FE0,0010) 'Pixel Data' element value hasn't been encapsulated as required for a compressed transfer syntax - see pydicom.encaps.encapsulate() for more information
Traceback (most recent call last):
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\tag.py", line 29, in tag_in_exception
yield
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 826, in write_dataset
write_data_element(fp, get_item(tag), dataset_encoding)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\marci\AppData\Roaming\Python\Python313\site-packages\pydicom\filewriter.py", line 686, in write_data_element
raise ValueError(
...<3 lines>...
)
ValueError: The (7FE0,0010) 'Pixel Data' element value hasn't been encapsulated as required for a compressed transfer syntax - see pydicom.encaps.encapsulate() for more information
Process finished with exit code 1
Im still facing the same error and I've followed all the suggested answers, and no avail. I've added the PHP version to my linter.yml file which matches my composer version, and Im still getting the same error. Any help is appreciated!
2025-03-26 18:40:10 [FATAL] Failed to run composer install for /github/workspace. Output: Your lock file does not contain a compatible set of packages. Please run composer update.
Reasons:
Blacklisted phrase (1): appreciated
Blacklisted phrase (1): Any help
RegEx Blacklisted phrase (3): Any help is appreciated
RegEx Blacklisted phrase (1): Im still facing the same error
RegEx Blacklisted phrase (1): Im still getting the same error
Well when you're using FormData to submit your receipt with images, the request.body is getting processed differently than with regular JSON payloads, causing your permission guard to not properly access the employee credentials.
The main problem is that when using FileFieldsInterceptor or any file upload interceptors, the form data fields are parsed differently. Your guard is trying to destructure employeeCode and employeePassword directly from request.body, but with multipart/form-data, these might be coming in as strings rather than as part of a JSON object.
import {
CanActivate,
ExecutionContext,
ForbiddenException,
Injectable,
UnauthorizedException,
} from '@nestjs/common'
import { PrismaService } from '../prisma/prisma.service'
import { PermissionEnum } from '@prisma/client'
import { Reflector } from '@nestjs/core'
import { compare } from 'bcryptjs'
@Injectable()
export class PermissionGuard implements CanActivate {
constructor(
private prisma: PrismaService,
private reflector: Reflector,
) {}
async canActivate(context: ExecutionContext): Promise<boolean> {
const requiredPermission = this.reflector.get<PermissionEnum>(
'permission',
context.getHandler(),
)
if (!requiredPermission) {
return true
}
const request = context.switchToHttp().getRequest()
const tokenId = request.user?.sub
const isCompany = request.user?.pharmacy
// Handle both JSON and FormData formats
let employeeCode, employeePassword
if (request.body) {
// Handle FormData - values will be strings
employeeCode = request.body.employeeCode || request.body.employee_code
employeePassword = request.body.employeePassword || request.body.employee_password
}
if (!tokenId) {
throw new UnauthorizedException('User not authenticated')
}
let permissions: PermissionEnum[] = []
if (isCompany) {
// If company login, we need employee validation
if (!employeeCode || !employeePassword) {
throw new UnauthorizedException({
statusText: 'unauthorized',
message: 'Employee credentials required',
})
}
const company = await this.prisma.company.findFirst({
where: { id: tokenId },
include: {
employees: true,
},
})
if (!company) {
throw new UnauthorizedException({
statusText: 'unauthorized',
message: 'Farmácia não encontrada',
})
}
const employee = company.employees.find(
(employee) => employee.code === employeeCode,
)
if (!employee) {
throw new UnauthorizedException({
statusText: 'unauthorized',
message: 'Funcionário não encontrado',
})
}
const isPasswordValid = await compare(employeePassword, employee.password)
if (!isPasswordValid) {
throw new UnauthorizedException({
statusText: 'unauthorized',
message: 'Credenciais incorretas',
})
}
permissions = employee.permissions
} else {
const user = await this.prisma.user.findFirst({
where: {
id: tokenId,
},
})
if (!user) {
throw new UnauthorizedException({
statusText: 'unauthorized',
message: 'User not found',
})
}
const pharmacy = user?.pharmacies[0]?.pharmacy
if (!pharmacy) {
throw new UnauthorizedException({
statusText: 'unauthorized',
message: 'Company not encontrada',
})
}
permissions = user.pharmaceutical.permissions
}
const hasPermission = permissions.some(
(perm) => perm === requiredPermission,
)
if (!hasPermission) {
throw new ForbiddenException(`Does not have the required permission: ${requiredPermission}`)
}
return true
}
}
Key changes I made to fix your issue:
More flexible field parsing: The updated guard now checks for different possible field names (employeeCode/employee_code) since form fields are sometimes sent with underscores.
Null checking: Added validation to ensure the employee credentials are present when company login is detected.
Better error handling: More descriptive error messages to help debug authentication issues.
Safe property access: Added optional chaining in the user pharmacy access to avoid potential undefined errors.
If you're still having issues, you could also consider implementing a custom middleware specifically for handling employee authentication in FormData requests, which would run before your guard and populate request.body with the parsed credentials.
were you able to solve this? I am facing a similar issue with servereless pyspark. It's just that I am reading a path in a zip file passed through --archives using a Java code that runs through a JAR provided using --jars file
can't separate by semicolons as I want output plots in the notebook. it is so typical of computer or software responses. a guy asks a question, and no one gives a direct answer. instead, the guy gets a lecture on some view of how the world should be.
The Solution i found working is to remove the connections of OpenGIS and add conda and place conda on top for the python bindings, currently conda works but to connect with geoserver i need to add the PYNOPATH variable manually everytime and delete it when i want to use normal python installed in the windows for daily tasks.
1. Extract vocabulary from tokenizer.json
2. Train the sentencepiece tokenizer using spm_train with the extracted vocabulary (vocab_size = 32000). This generates tokenizer.model
3. Use tokenizer.py to convert the tokenizer.model to tokenizer.bin.
Even though the above steps were successful, the inference resulted in gibberish. I assume this has something to do with the tokenizer.model that was generated. If anyone could assist with this, it would be really helpful.
For embedded systems, that have limited resources, installing a package manager could be not convenient.
Do you have the toolchain that was used to cross compile Linux for your machine?
If this is the case, I would recommend you to build Mosquitto inside it, so that you find it integrated in your system, hopefully without compatibility problems.
well I just checked your code and it works fine. maybe you have some error including style.css file? it should be located in "css/style.css" directory.
some works during removeShard can occur some temporary error accordinging to mongodb's JIRA ISSUES. I assume that it's case like that. and actually i want to know full logs
This happened to us as well, we didn't find a proper solution so we ended up uploading the data by parts. If you found a solution could you please share it with us?
I don't have enough karma to write a comment, thats why I post it here.
Reasons:
Blacklisted phrase (1): If you found a solution
RegEx Blacklisted phrase (2.5): could you please share
So , I am trying the same thing and got stuck because all the messages are dynamic, and I cannot find any appropriate selector to do the task we want, so just use my trick
Step 1 - Get your driver window where all the messages are displayed
Step 2 - Get the screenshot of the whole driver with the following code snippet
driver.save_screenshot("screenshot.png")
Step 3 - Now take that screenshot and open it with the paint and take the dimensions, which will be used further to crop out the required messages using the pillow module
Step 4 - in the last step, just extract the text of the cropped screenshot and print it in your console
Any please answer this question i am facing the same issue
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Cannot connect to the Dart Observatory URL ws://127.0.0.1:41443/fdfg2c_T-Dw=/ws. Check the server log for more details
sorry to bump an old thread, but this is driving me mad. do you have any idea how to remove this orange bar at the top of every embedded player, by any chance?
hey guys i really need your help. I've been trying to create an app instance for messaging on amazon chime sdk but I've never seen anything to lead me to achieve this. kindly help me guys on how to achieve this.
Thanks for sharing a sandbox! I removed some containers and height settings. The display flex is not useful and not needed here. I see now the banner and the table as full height. Was this your approach?
Hey @mez did you have any luck with this? I am facing a similar issue, though my issue is downstream: getting Mapbox to accept a different raster-dem than its own.
Reasons:
Blacklisted phrase (1.5): any luck
RegEx Blacklisted phrase (3): did you have any luck
Did you find a solution ??I am doing the same thing and i really can't wrap around my head of how to do it ..................1127£77_7_+_+_+_+_+_++_+_++#(#!"++"+£+£+£+£+"+_++"+_+_+_+_++_+_!_+_!_+_!_!_!_+
Reasons:
RegEx Blacklisted phrase (3): Did you find a solution
Low length (0.5):
No code block (0.5):
Contains question mark (0.5):
Single line (0.5):
Starts with a question (0.5): Did you find a solution
did you get a solution for this? I am facing the exact same problem but unable to find a solution yet.. the problem is with using the RESt endpoints of keycloak for 2FA and not the browser flow.
With keycloak's forms(browser flow) its way too simpler but unable to implement 2FA using token generation thru rest endpoints of keycloak.
Kindly respond if you have figured out a way to do so
Reasons:
RegEx Blacklisted phrase (3): did you get a solution
No code block (0.5):
Me too answer (2.5): I am facing the exact same problem
Jaime Lopez, as Banno's client who is working with TruStage on this project, can I request a working session to help troubleshoot the issues that we're running into? Thank you.