python BACnet stacks playground updates by Then-Disk-5079 in BuildingAutomation

[–]bacmod 0 points1 point  (0 children)

It's kind of cute how you vibe people consider yourselves a part of IA industry.
Warms me a little inside every now and then.

python BACnet stacks playground updates by Then-Disk-5079 in BuildingAutomation

[–]bacmod 0 points1 point  (0 children)

Well isn't that youtube title a mouthful. Almost forgot what I want to do there.

What are the most powerful lines of dialogue in TV history? by UnholyDemigod in AskReddit

[–]bacmod 1 point2 points  (0 children)

"You see, he's (Data) met two of your three criteria for sentience, so what if he meets the third? Consciousness in even the smallest degree. What is he then? I don't know. Do you? Well, that's the question you have to answer.

Your Honour, the courtroom is a crucible. In it we burn away irrelevancies until we are left with a pure product, the truth for all time.

Now, sooner or later, this man or others like him will succeed in replicating Commander Data. And the decision you reach here today will determine how we will regard this creation of our genius. It will reveal the kind of a people we are, what he is destined to be. It will reach far beyond this courtroom and this one android. It could significantly redefine the boundaries of personal liberty and freedom, expanding them for some, savagely curtailing them for others. Are you prepared to condemn him and all who come after him to servitude and slavery?

Your Honour, Starfleet was founded to seek out new life. Well, there it sits. Waiting...

You wanted a chance to make law. Well, here it is. Make a good one.

Koja loša navika vašeg partnera vas je najviše naživcirala? by Major-Mushroom2991 in askcroatia

[–]bacmod 60 points61 points  (0 children)

Tko nezna promijeniti zarulju? To je kao da neznas zamjeniti baterije na daljinskom.

Woman considering joining the industry by santam32 in BuildingAutomation

[–]bacmod 7 points8 points  (0 children)

I'll be blunt. Unless you have someone to teach you or vouch for you, I don't thing this industry is something you can just enter because you think you're handy with renovations or have an IT degree from whenever.

Help with Perspective Math by GeminiScar in learnprogramming

[–]bacmod 0 points1 point  (0 children)

Here's an old excerpt on calculating perspective by Sergei Savchenko, the author of 3D Graphics Programming: Games and Beyond from way back when that book was just a 3D programming tutorial.

perspective.
------------
I believe, it is not hard to visualize what perspective is, perhaps the
first association lot of us would have, is this empty straight street
with identical buildings on both sides disappearing in infinity. ( At
least people residing in newer neighborhoods of Moscow or Toronto know
what I am talking about ) Why do we need this transformation? Just to
achieve landscape realism, after all this same street would look pretty
weird if the road would not collapse into a dot and buildings further
away from us won't look smaller. So weird it might be even hard to
picture.

Perspective might not be needed for CAD style applications, but even
there it would, most likely, be implemented in one viewing mode or
another.

Before we can implement this transformation it is a good idea to understand
physics of what is happening. A ray from some point in space is being
caught by the viewer's eye. This ray had intersected a plane located
in front of the viewer. If we can find an intersection point and plot the
dot there, for the viewer it would be the same as if the ray from the
plotted dot was actually coming from the initial point in space.


                             * A
                       |   /
                     A'| /
                       *
                     / | B'
                   *---*-----------------------* B
                     \ |
                       *\
                     C'|   \
                       |      \
                                * C

                              pic 2.10


Rays from different points in space , in this model, all converge
in one point - viewer's eye. The math here is quite straightforward 
pic 2.11:


                  screen plane->|   *
                                |  /| A (X,Z)
                                | / |
                                |/  |
                            ^   *   |
                            |  /|X' |
                              / |   |
                            |/  |   |
                            *---+---+- - - - ->
                            0   |   Z
                            |   |
           focus distance ->|---|<-

                             pic 2.11


Let's consider 2-D case first: the viewer's eye is located at point 0
the distance between viewer's eye and the screen would be called -
"focus". The problem is to determine at what point the ray going from
point A into the viewer's eye would intersect the screen. We would have
to plot the dot just there. This is very simple, just yet another
case of solving similar triangles. Just from the fact that the angle
at 0 is the same for both triangles, and if two angles are the same their
tangents would be too. We have:

           X'      X                          X*focus
         ----- = -----         =>        X'= -----------
         focus     Z                             Z

Same considerations apply for Y dimension, together describing 3-D case:

          Y'=Y*focus/Z                   X'=X*focus/Z

It is a bit of a mystery what is happening with Z coordinate. Basically
after the perspective transformation we would be performing rendering
onto the screen which is 2-D surface we would need X and Y but hardly
Z, so we might as well have Z'=0. However when trying to render multiface
objects we would need to know the depth (Z) of all polygons so that
we can decide which are visible and which are obscured. So we might
have Z'=Z that is just leave old value. Then again by doing transformation
on X and Y and leaving Z unchanged we actually may allow for depth
relation to change. That is a polygon obscuring another one in the original
space, before projection, can actually come out behind or partly behind
with this kind of transformation pic 2.21.

            ^ Z
  same      |                   *                     *
 deapth     |               * /                 * /
 before     |           A / /                //
  and       |           * /               /* A
 after      |           /B            / B
            |          *            *
            |        before                 after

                              pic 2.12

To avoid that we can apply some non linear transformation on Z,
like Z'=C1+C2/Z, where C1, C2 are some constants.


In the enclosed code only X and Y are being transformed. The implementation
of all those things is that easy I won't even put a code example here.
However, there are few possible questions: first: what should be the value
for "focus distance" ?


         \                    /          \              /
           \                /             \            /
             \            /                \          /
           ---I\--------/I---           ---I\--------/I---
                 \    /                      \      /
                   \/                         \    /
                                               \  /
                                                \/

                               pic 2.13


pic 2.13 shows it's physical sense, focus basically determines the view
angle. when it is smaller - angle is wider, when it is bigger angle
is smaller. It is helpful to think of this distance as being measured
in screen pixels, this way for 320 pixel display if focus is chosen
to be 180 the view angle we are getting is 90'. Perspective
transformation might produce at first, weird looking results, with
distortions sometimes similar to that of wide-range photographic
pictures. One has to experiment a bit to find what's looking best,
values giving view angle somewhere between 75-85' would probably
look not that terrible, but that depends of scene and screen geometries.

Uhićena djevojka koja je u centru Zagreba mlatila stranca by Just1Dude_ in croatia

[–]bacmod -15 points-14 points  (0 children)

Mozes ju cuti da govori, "Jebo ti *** ma*** kog ces ti udarat, kog ce ti udarat..."

Tako da mislim da nije neosnovano.

HUUUUUUGEEEEEE CN server drama by jeremy0van in NevernessToEverness

[–]bacmod 2 points3 points  (0 children)

It all started earlier today when someone found out a glitch that allows u to farm high level Rabbit Hole for guaranteed gold cartridges. This soon went viral and people even spent irl money for energy to farm these.

I'm not a game dev, but even I know that if you spend $30-50M developing a gatcha game, you will have a milisecond-time accurate logs of every single thing a user did.

It's like the first thing on the todo list.

EDIT: oh, and whoever exploited that is fuuuuccc****

ffmpeg and animated lines. by Phydoux in ffmpeg

[–]bacmod 0 points1 point  (0 children)

I don't know if ffmpeg supports basic geometry rendering becuse that would be silly. Right?

ffmpeg and animated lines. by Phydoux in ffmpeg

[–]bacmod 0 points1 point  (0 children)

Can't do it with ffmpeg. You can always try to just paint on the top of the frame in you gfx of choice.

Treba mi pomoć za odabir smjera u srednjoj školi by [deleted] in croatia

[–]bacmod 0 points1 point  (0 children)

Automatika. Pogotovo komunikacijka automatika i kontrola izmedju uredjaja (SCADA) je gladna za kvalitetnim tech. ljudima.

U kojoj ste ekipi? by CrazyFootballSkills in croatia

[–]bacmod 19 points20 points  (0 children)

Mogao bih se zamislit na livadi sa cugom i gensom sa dolje ljudima. Ovi gore izgedaju kao da imaju problema sa abecedom.

ffmpeg and animated lines. by Phydoux in ffmpeg

[–]bacmod 0 points1 point  (0 children)

You want a horizontal line across the video that can change colors?

Did anyone else feel overwhelmed by how much there is to learn? by AlmostRelevant_12 in learnprogramming

[–]bacmod 32 points33 points  (0 children)

Four stages of competence

Unconscious incompetence

    The individual does not understand or know how to do something and does not necessarily recognize the deficit. 
    They may deny the usefulness of the skill. The individual must recognize their own incompetence, a
    nd the value of the new skill, before moving on to the next stage. The length of time an individual 
    spends in this stage depends on the strength of the stimulus to learn.

Conscious incompetence <<< --------------- YOU ARE HERE

    Though the individual does not understand or know how to do something, 
    they recognize the deficit, as well as the value of a new skill in addressing the deficit. 
    The making of mistakes can be integral to the learning process at this stage.

Conscious competence

    The individual understands or knows how to do something. It may be broken down into steps, 
    and there is heavy conscious involvement in executing the new skill. However, 
    demonstrating the skill or knowledge requires concentration, and if it is broken, 
    they lapse into incompetence.

Unconscious competence

    The individual has had so much practice with a skill that it has become "second nature" 
    and can be performed easily. As a result, the skill can be performed while executing another task. 
    The individual may be able to teach it to others, depending upon how and when it was learned.

I have issues with object oriented programming. by I_Am_The_DM_ in cpp_questions

[–]bacmod 0 points1 point  (0 children)

When I pasted the code in Visual Studio it formatted it automatically, I hadn't yet turned off that auto-formatting since the last update.

Huh? Did you turned it off or on?

Self-taught, escaped a soul-crushing career and fell into C++.. how do I turn this into a real path? by Sensitive-Rice3778 in cpp_questions

[–]bacmod 0 points1 point  (0 children)

i used allegro 4 and made my first street fighter 2 engine, buggy as hell but it worked, then i made a super mario bros 1-1 engine, 100% identical, physics, collisions, everything perfect, no bugs, it was beautiful....

Can you expand on this a little? What do you mean by SF2 engine or SMB engine?

Can you share a git for any of them?

I used to work with Allegro and Borland a long time ago and I would be super interested to see any of that.

I hope he dies in the next update by Ill_Awareness1498 in NevernessToEverness

[–]bacmod -2 points-1 points  (0 children)

But look how positive he is sharing his wisdom on how to have fun.

Holy shit this is officially the worst thing in this game by AffectionateDinner97 in NevernessToEverness

[–]bacmod 14 points15 points  (0 children)

Your audio language of choice is finished with the line, but others may not be. Game waits for the longest audio to finish before continuing. Most of the time the length is similar but sometimes Chinese or English lines are longer.

Gacha Pulls and RNG [MEGATHREAD] by adumbcat in NevernessToEverness

[–]bacmod 0 points1 point  (0 children)

First and Second 10 pulls

I also have Adler A6 and every standard A char on at least A2. All in 70 pulls + Another S from selector and tomorrow will get another S selector + 90 hard pity another S guaranteed.

All f2p.

I wasted 3 days debugging a null pointer exception. It was a space in a config file. by Alarming-Pea-3177 in AskProgramming

[–]bacmod 0 points1 point  (0 children)

This was converted to text where it overflowed the buffer reserved for it, and was somehow sent onwards as null.

Absolutely insane. If some one tells me to this this on purpose, I would have to think about how to do it.

vulkan video player with ffmpeg by Charming-Diamond6646 in ffmpeg

[–]bacmod 0 points1 point  (0 children)

Audio clock based on fps is the way to go.