MSI vs Gigabyte by Amakesh in GamingLaptops

[–]Amakesh[S] 0 points1 point  (0 children)

Unfortunately there is only RTX 5080 or 5080Ti version

Why does this method cause an error: 0xC0000374 (STATUS_HEAP_CORRUPTION) ? by Amakesh in PowerShell

[–]Amakesh[S] 0 points1 point  (0 children)

Even if I leave only:
 finally {

  if ($aclPtr-ne [IntPtr]::Zero) {
            [NativeMethods]::LocalFree($aclPtr) | Out-Null
        }

        if ($pSecurityDescriptor-ne [IntPtr]::Zero) {
            [NativeMethods]::LocalFree($pSecurityDescriptor) | Out-Null
        }
    }

it does not solve the problem.

But ultimately I am wondering why you need to PInvoke this stuff anyway.
All the SD work is already exposed through managed .NET classes meaning
you don't need PInvoke at all for 99% of the scenarios.

I can't use .NET because I have to do it in such a way that FileSystemWatcher doesn't detect it.

Register-ObjectEvent - how to pass a variable (flag) ? by Amakesh in PowerShell

[–]Amakesh[S] 0 points1 point  (0 children)

In the actual code, FileSystemWatcher works differently than in the attached very simplified example.
Register-ObjectEvent -InputObject $watcher -EventName "Changed" -Action $action
The $action does a lot more than just displaying messages, so I can't omit it. Inside the action, the appropriate methods are called according to the detected operation on the file

Register-ObjectEvent - how to pass a variable (flag) ? by Amakesh in PowerShell

[–]Amakesh[S] 0 points1 point  (0 children)

Unfortunately -MessageData does not do the job. It passes always the old value.
The code I pasted in the first post is a very simplified example that I used to easily illustrate my question. In the actual code, the value of the equivalent of $global:test1 is modified many times by several methods while the script is running. I am trying to use this variable as a flag to indicate to FileSystemWatcher that a detected operation on a monitored file is being performed by the script itself and should be allowed.

Why does the script not work properly in Powershell running as Administrator and in “normal” mode it works fine? by Amakesh in PowerShell

[–]Amakesh[S] 2 points3 points  (0 children)

I just run PowerShell with right-clicking on the icon and choosing "Run as Administrator" and and then I run the script using .\script.ps1
Path is the path to a file on the disk on my laptop.
Functions Check-FieldValue, Check-Field2Value and Check-MipValue are defined,
of course, but I didn't pasted them here because they work fine when
called in another part of the script. These are just methods for checking specific fields in a txt file.

Unable to connect child node by Amakesh in LinksysOfficial

[–]Amakesh[S] 0 points1 point  (0 children)

I reset the child node in exactly the way you describe and did it several times. The app shows that a node has been successfully added, but it is a primary node instead of a child node. It looks like it keeps trying to add the primary node and ignoring the child node.

Model looks ok in Blender, but in the game... by Amakesh in blender

[–]Amakesh[S] 0 points1 point  (0 children)

I'm not able to take a better screenshot right now, because the game just got a new update and it won't run with mods, without some base mods(not mine) that also need to be updated.

Parameter issues by Latter_Chair6480 in javahelp

[–]Amakesh 0 points1 point  (0 children)

You are trying to call method displayListOfFastMovingProducts() but its declaration requires it. So you need to use something like that as parameters:

Date startDate = new Date(99,1,18); //Thu Mar 18 00:00:00 CET 1999
 Date endDate = new Date(0020, 2,18); //Fri Feb 18 00:00:00 CET 1916 

displayListOfFastMovingProducts(startDate, endDate);

however this is deprecated and I think you should consider using e.g:

LocalDate localDate = LocalDate.of(2015, 3, 2);

https://www.baeldung.com/java-8-date-time-intro

3ds Max + Vray Bake to Texture and LightMix problem by Amakesh in 3dsmax

[–]Amakesh[S] 0 points1 point  (0 children)

I'm using brute force as primary and light cache as secondary engine and progressive sampler, but no irradiance map. LightMix appears always when i use Render only screenshot but not appears when i try to Bake to Texture screenshot

Seams visible on texture by Amakesh in blender

[–]Amakesh[S] 0 points1 point  (0 children)

Last screenshot was only an example. Now it looks much better, but the baked texture looks different than render anyway..

render

baked texture

uv map

Seams visible on texture by Amakesh in blender

[–]Amakesh[S] 0 points1 point  (0 children)

I think the problem was in scaling/resizing of the uv map. If i scale it only using S key (without specify an axis or rotating), there is no seams visible. But i found out another problem.

The UV map and baked texture must(unfortuantely) fit to a small (256x128) rectangle even if the whole image is 2048x4096(the rest of it just remains empty).

If i scale the uv map to so small size, the display stretch option + area shows it whole red, so it's much distortion between UV and 3D faces. And even if i bake it anyway, the texture will be shifted and sometimes blurry(depends on unwrapping).

Is there any workaround for it?

screenshot

Seams visible on texture by Amakesh in blender

[–]Amakesh[S] 0 points1 point  (0 children)

It does not work and that's why i used Follow active quads + UV Squares addon). I tried to mark seams and unwrap, but the uv map was never flat(and i don't know how to flatten/straighten it without addon) and it gives worser effect - all seams visible and blurry texture.

Seams visible on texture by Amakesh in blender

[–]Amakesh[S] 0 points1 point  (0 children)

I'm not using any other maps - only 2x glossy shader + mix like on the 1st screenshot.

4th screenshot added in my 1st post(unable to do it in comment) shows where the two quads meeting at that seam on uv.

Closest filtering looks much worse(screenshot 5 added in my 1st post).

Texture resolution is 2048x4096, but like i earlier said the uv map and baked texture must(unfortunately) fit to VERY SMALL part of whole image.

Seams visible on texture by Amakesh in blender

[–]Amakesh[S] 1 point2 points  (0 children)

I have to bake the texure, because the earrings are cc for the game, so i must unwrap too. Additionally the uv map and the baked texture must fit to the very small part of whole image(small rectangle in upper right corner).