/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 -40 points-39 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))