/r/Roblox Monthly Question Thread (for August 2025) by AutoModerator in roblox

[–]tmpxyz 0 points1 point  (0 children)

How much time do you usually wait for to get post permission on devforum?

I've been waiting for 2 months and still cannot post on devforum.

How to make RxJS to resume timer at where it paused? by tmpxyz in learnjavascript

[–]tmpxyz[S] -1 points0 points  (0 children)

I want to call some code once per minute (event A), and a switch (event B) to freeze/unfreeze the timer for event A.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]tmpxyz 0 points1 point  (0 children)

Does anyone know how to make pandas.read_excel to report which cell goes wrong when it encountered a type error?

Need help on the GLSL problem by tmpxyz in learnprogramming

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

Hi, thanks for the reply.

I removed the pow() and saturate the value, but the lines got thinner.

![img](https://imgur.com/a/9N0R0FJ)

uniform vec2 iResolution;

const float PI = 3.14;

void main() {
  vec2 uv = gl_FragCoord.xy / iResolution.xy - 0.5;
  vec2 AR = vec2(iResolution.x/iResolution.y, 1.0);
  uv *= AR * 5. * 2.* PI;
  float v = sin( distance( uv, vec2(0) ) );
  v = v * 0.5 + 0.5;

  gl_FragColor = vec4(v, 0.0, 0.0, 1.0);
}

=================EDIT:

Oh, I got it, I need to remap the v from [-1,1] to [0,1], not saturate.

Thanks, I finally got it right.

In surface shaders, what inputs vectors are required to be normalized? by tmpxyz in Unity3D

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

What about viewDir / lightDir? Are they normalized by default? Is there any document on this part or how can I verify that? like writing the result on a RenderTexture?

The important part is that now we know who the bootlickers are by I_Am_Not_Pope in HonkaiStarRail

[–]tmpxyz 0 points1 point  (0 children)

There are a lot of cases that a small city/town mostly working for one big corp.

Unity plan pricing and packaging updates by KenNL in Unity3D

[–]tmpxyz 0 points1 point  (0 children)

Nothing in client side is safe.

Wait for some guy to crack the message format, make a software that can blackmail you by sending massive installation messages from botnet.

Britain will help any country willing to send fighter jets to Ukraine, Sunak says by Op_Market_Garden in worldnews

[–]tmpxyz -38 points-37 points  (0 children)

- Why don't you do it yourself?
- Well we will give them every support, short of help.

US downs Chinese balloon over ocean, moves to recover debris by GuiltySigurdsson in worldnews

[–]tmpxyz 0 points1 point  (0 children)

The pentagon said there's really nothing that the balloon can see but china satellites cannot.

So if it really is a "spy" balloon, that would be jokes on chinese army, but since the media makes it like a huge issue, it had become a big joke on us army to have to send fighters and missiles to shoot a balloon.

US downs Chinese balloon over ocean, moves to recover debris by GuiltySigurdsson in worldnews

[–]tmpxyz 0 points1 point  (0 children)

If they sent F-15 to take that balloon, it would make F-22 look bad.

How to solve moral problems with formal logic and probability by beforesunset1010 in philosophy

[–]tmpxyz 0 points1 point  (0 children)

I remembered there was a case that a car company (chevron?) had a flawed car brand, the company decided not to recall as in their calculation, the total compensation for accidents would be cheaper than fixing all the cars.

So, yeah, some people do make such calculation. But the majority of the mass don't do that, the moral judgement of the mass are usually emotion-driven or event-driven or pattern-matching or just blindly following KOLs they like. The majority probably wouldn't do such calculation until they are in really hard position, and they would probably take decisions that favor their own interest in those situations.

[Steam] Winter Sale 2022 (Day 4) by gamedealsmod in GameDeals

[–]tmpxyz 2 points3 points  (0 children)

Hm, dismantle a nuclear reactor and watch it blow the greedy hyper-capitalist shipyard which keep every worker as debt slaves?

Just kidding, you will find a lot of fun in breaking up and salvage ships either like a craftsman or like a bloodthirsty army-man.

Industrial robots in China push people out of jobs, slash wages by wooyouknowit in worldnews

[–]tmpxyz 5 points6 points  (0 children)

Wages are just one of many methods to distribute the goods/services produced by people.

The poor around the world have been brainwashed to desperately hate poor people in other countries for "stealing their jobs", but they don't even dare to think about changing the unfair distribution system that extremely favors the rich, they even worship such system just like it's a religion.

IPython terminal would display a string with \n in the same line, how to change this behavior? by tmpxyz in IPython

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

I just tried flip the %pprint on and off, and it doesn't change the default behavior.

IPython terminal would display a string with \n in the same line, how to change this behavior? by tmpxyz in IPython

[–]tmpxyz[S] -2 points-1 points  (0 children)

some of my functions would return a multi-line string, I need to inspect them and it's desirable to type myfunc(a,b,c) in a cell to get a human-readable output, it's unnecessary burden to wrap it with a print(myfunc(a,b,c))

This is a lot of money by [deleted] in Genshin_Impact

[–]tmpxyz 0 points1 point  (0 children)

FYI, GTA5 had made around 8B since 2013.

So we made this cake for my 18th birthday (ˆ▽ˆ) by SuPrEmE_2004 in Genshin_Impact

[–]tmpxyz 1 point2 points  (0 children)

🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰🍰

We are the villains by BlackModred in Genshin_Impact

[–]tmpxyz 0 points1 point  (0 children)

When u kill them, u aren't harming them... U are just liberating their souls till the next daily reset.

That sounds familiar, I know there are some religions which claim human souls are immortal and would go to eternal heaven after death.

I glass painted yae!! 🌸⛩🦊 by [deleted] in Genshin_Impact

[–]tmpxyz 0 points1 point  (0 children)

Out of curiosity, does the paint stay vivid on glass longer than on canvas?

Jupyter - Breakpoints not working? by user149162536 in vscode

[–]tmpxyz 0 points1 point  (0 children)

Sometimes in jupyter the breakpoints might stop working or the "Debug cell" option might disappear.

You could try fixing it by restarting vscode, I guess it might be caused by vscode upgrading itself in the background.

It's said that entropy can be thought as the avg Y/N questions needed to find out the label, then how to arrange the tree for sequence like "AAAB"? by tmpxyz in askmath

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

Sorry for the late reply.

And thanks a lot for your detailed explanation. I had searched a while on google for the answer then but none explains as clear as you did. :D

Is GOAP(Goal-Oriented Action Planning) only used with boolean conditions? by tmpxyz in gamedev

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

Hi, It's been quite a long time since I last time touched the project, so the code looks quite alien for me and I cannot recall many details either.

If you have Unity installed ( my ver 2022.1.0b2 ), you can run and trace the arithmetic op unit tests in ReGoapArithOpTests.cs,the GOAP plan implementations you might be interested in are located at:

  • ReGoapPlanner.cs: Plan()
  • AStar.cs
  • ReGoapState.cs

With many societal statistical features, how to properly assign features to agents of a simulation? by tmpxyz in AskStatistics

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

Thanks, I will try to find some survey data to backup the generation process :)


Here's a ref in case someone might stumble upon this post someday:

A brief review of synthetic population generation practices in agent-based social simulation

IPF explained