Congratulations!

[Valid Atom 1.0] This is a valid Atom 1.0 feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://stackoverflow.com/feeds

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
  3.    <title type="text">Recent Questions - Stack Overflow</title>
  4.    <link rel="self" href="https://stackoverflow.com/feeds" type="application/atom+xml" />
  5.    <link rel="alternate" href="https://stackoverflow.com/questions" type="text/html" />
  6.    <subtitle>most recent 30 from stackoverflow.com</subtitle>
  7.    <updated>2025-09-13T21:16:06Z</updated>
  8.    <id>https://stackoverflow.com/feeds</id>
  9.    <creativeCommons:license>https://creativecommons.org/licenses/by-sa/4.0/rdf</creativeCommons:license>
  10.    <entry>
  11.        <id>https://stackoverflow.com/q/79763954</id>
  12.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  13.        <title type="text">Why does my real-time FFT of a logarithmic sweep keep sinking &#x2014; and why does this weird normalization fix it?</title>
  14.            <category scheme="https://stackoverflow.com/tags" term="python" />
  15.            <category scheme="https://stackoverflow.com/tags" term="audio" />
  16.            <category scheme="https://stackoverflow.com/tags" term="signal-processing" />
  17.            <category scheme="https://stackoverflow.com/tags" term="fft" />
  18.        <author>
  19.            <name>Max Boldyrev</name>
  20.            <uri>https://stackoverflow.com/users/16963287</uri>
  21.        </author>
  22.        <link rel="alternate" href="https://stackoverflow.com/questions/79763954/why-does-my-real-time-fft-of-a-logarithmic-sweep-keep-sinking-and-why-does-thi" />
  23.        <published>2025-09-13T20:46:27Z</published>
  24.        <updated>2025-09-13T20:46:27Z</updated>
  25.        <summary type="html">
  26.            &lt;p&gt;I&#x2019;m building an open-source audio spectrum analyzer for loudspeaker manufacturing. The &#x201C;killer feature&#x201D; is using a &lt;strong&gt;logarithmic sweep&lt;/strong&gt; as the excitation signal, and analyzing the response &lt;strong&gt;as the sweep is being recorded&lt;/strong&gt;, so the UI never blocks. Repo: &lt;a href=&quot;https://github.com/max-bold/Spectrum&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/max-bold/Spectrum&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Everything was peachy&#x2026; until I tried to make the analysis happen live while the sweep is still running. Then I hit a super annoying effect: as the recorded buffer grows, the plotted spectrum &lt;strong&gt;slowly drifts down&lt;/strong&gt; in level, even though the input level doesn&#x2019;t change. Classic normalization like this makes it sink:&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-py prettyprint-override&quot;&gt;&lt;code&gt;yf = np.abs(np.fft.rfft(record))&#xA;yf1 = 2 * yf / len(record)  # standard amplitude normalization&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;That&#x2019;s weird because the recorded signal level isn&#x2019;t changing over time.&lt;/p&gt;&#xA;&lt;p&gt;So, I started experimenting. I ended up with a normalization that magically stays stable regardless of the generator parameters:&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-py prettyprint-override&quot;&gt;&lt;code&gt;yf = np.abs(np.fft.rfft(record))&#xA;yf2 = yf / nk&#xA;nk = np.sqrt(length * rate / np.log10(band[1] / band[0]) / 10) * 10 ** (0.35726 / 20)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This works frighteningly well. But&#x2026; why?&lt;/p&gt;&#xA;&lt;p&gt;Below is a minimal runnable example showing what I&#x2019;m doing. It animates two traces (&lt;code&gt;line1&lt;/code&gt; with &#x201C;textbook&#x201D; normalization &#x2B; pink weighting, and &lt;code&gt;line2&lt;/code&gt; with my strange &lt;code&gt;nk&lt;/code&gt; normalization &#x2B; pink weighting). Only the second stays steady while the sweep grows.&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-py prettyprint-override&quot;&gt;&lt;code&gt;import numpy as np&#xA;import matplotlib.pyplot as plt&#xA;from matplotlib.axes import Axes&#xA;from matplotlib.lines import Line2D&#xA;&#xA;# Setting sweep params&#xA;rate: int = 96000&#xA;chunksize: int = 4096&#xA;band = np.asarray((50, 2000), np.float64) / rate&#xA;t_end = 30&#xA;length = int(t_end * rate)&#xA;nk = np.sqrt(length * rate / np.log10(band[1] / band[0]) / 10) * 10 ** (0.35726 / 20)&#xA;&#xA;# Generating sweep&#xA;k = length * band[0] / np.log(band[1] / band[0])&#xA;l = length / np.log(band[1] / band[0])&#xA;t = np.arange(0, length, dtype=np.float64)&#xA;sweep = np.sin(2 * np.pi * k * (np.exp(t / l) - 1))&#xA;&#xA;# Initialise plt in interactive mode&#xA;plt.ion()&#xA;_, ax = plt.subplots()&#xA;ax: Axes = ax&#xA;ax.grid(True, which=&amp;quot;both&amp;quot;)&#xA;(line1,) = ax.semilogx([], [])&#xA;(line2,) = ax.semilogx([], [])&#xA;line1: Line2D = line1&#xA;line2: Line2D = line2&#xA;ax.set_xlim(20, 20e3)&#xA;ax.set_ylim(-60, 60)&#xA;&#xA;for start in range(0, length, chunksize):&#xA;    end = min(start &#x2B; chunksize, int(length))&#xA;    chunk = sweep[:end]&#xA;&#xA;    xf = np.fft.rfftfreq(len(chunk), 1 / rate)&#xA;    yf = np.abs(np.fft.rfft(chunk))&#xA;&#xA;    # &amp;quot;Textbook&amp;quot; amplitude normalization&#xA;    yf1 = 2 * yf / len(chunk)&#xA;    pinked_yf1 = yf1 * np.sqrt(xf)          # pink weighting to look at ~constant SPL per octave&#xA;    log_yf1 = 20 * np.log10(pinked_yf1.clip(1e-12, None))&#xA;    line1.set_data(xf, log_yf1)&#xA;&#xA;    # My weird normalization&#xA;    yf2 = yf / nk&#xA;    pinked_yf2 = yf2 * np.sqrt(xf)&#xA;    log_yf2 = 20 * np.log10(pinked_yf2.clip(1e-12, None))&#xA;    line2.set_data(xf, log_yf2)&#xA;&#xA;    plt.draw()&#xA;    plt.pause(0.1)&#xA;&#xA;plt.ioff()&#xA;plt.show()&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;What I &lt;em&gt;think&lt;/em&gt; I understand (maybe?)&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Using &lt;code&gt;np.sqrt(length * rate)&lt;/code&gt; in the denominator feels like heading toward &lt;strong&gt;power spectral density&lt;/strong&gt; (PSD):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;10*log10(|rfft(record)/length/rate|^2) == 20*log10(|rfft(record)| / sqrt(length*rate))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I can live with that idea. But in my case &lt;code&gt;length == len(sweep)&lt;/code&gt;, not &lt;code&gt;len(record)&lt;/code&gt;. The record grows chunk by chunk, but the sweep length is fixed. That mismatch seems to matter.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;My &lt;code&gt;nk&lt;/code&gt; also includes &lt;code&gt;sqrt(1 / log10(band[1]/band[0]))&lt;/code&gt;. Intuitively, the sweep&#x2019;s energy density per log-frequency depends on the &lt;strong&gt;ratio of fmax/fmin&lt;/strong&gt; (log sweep spends equal time per octave). So some dependence on &lt;code&gt;log10(band[1]/band[0])&lt;/code&gt; makes sense&#x2026; but why &lt;strong&gt;under a square root&lt;/strong&gt;?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Then there&#x2019;s a mysterious division by &lt;strong&gt;&lt;code&gt;/ 10&lt;/code&gt;&lt;/strong&gt;. Where on earth did that creep in? Is that some hidden unit conversion (ln vs log10? octave vs decade? RMS vs peak?), or am I just compensating for something else I broke?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Finally, I have to tack on &lt;strong&gt;&lt;code&gt;10 ** (0.35726 / 20)&lt;/code&gt;&lt;/strong&gt; to kill a stubborn &lt;strong&gt;0.35726 dB&lt;/strong&gt; bias. Yuck. That feels like a smoking gun for a systematic mistake (windowing? bin-to-frequency mapping? FFT scaling convention? pink weighting reference?), but I can&#x2019;t pin it down.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;The actual questions (send help!)&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Why does the &#x201C;standard&#x201D; &lt;code&gt;2*yf/len(record)&lt;/code&gt; normalization make the spectrum drift downward&lt;/strong&gt; as &lt;code&gt;len(record)&lt;/code&gt; increases for a &lt;strong&gt;logarithmic sweep&lt;/strong&gt; analyzed in a growing prefix? The signal level isn&#x2019;t changing, yet the line sinks.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Why does a normalization of the form&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;$$&#xA;nk \propto \sqrt{\frac{length \cdot rate}{\log_{10}(f_\text{hi}/f_\text{lo})}}&#xA;$$&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;stabilize things?&lt;/strong&gt; If PSD and sweep energy distribution are the culprits, can someone derive this &lt;strong&gt;from first principles&lt;/strong&gt; (time spent per Hz vs per octave, Parseval, FFT bin width, etc.) and explain &lt;strong&gt;why the log-span lands inside a square root&lt;/strong&gt;?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;What is that &lt;code&gt;/10&lt;/code&gt; factor actually correcting?&lt;/strong&gt; Is it a base-10 vs natural-log artifact, decades vs octaves, RMS vs peak, one-sided FFT vs two-sided energy, or something else?&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Where does the stubborn 0.35726 dB offset come from?&lt;/strong&gt; Is there a known constant when mixing:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;a one-sided &lt;code&gt;rfft&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;rectangular window on an ever-growing prefix (i.e., a very non-stationary &#x201C;window&#x201D;)&lt;/li&gt;&#xA;&lt;li&gt;pink weighting via &lt;code&gt;sqrt(f)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;log sweep amplitude law&#xA;&#x2026;that would explain exactly ~0.35726 dB?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;Constraints &amp;amp; context&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I&#x2019;m doing &lt;strong&gt;real-time&lt;/strong&gt; analysis &lt;em&gt;while the sweep is still running&lt;/em&gt;. That means each FFT sees a &lt;strong&gt;different prefix of a log sweep&lt;/strong&gt;, not a stationary segment of a stationary process. I know this is hostile to &#x201C;typical&#x201D; FFT assumptions (stationarity, periodicity within the window, etc.).&lt;/li&gt;&#xA;&lt;li&gt;I intentionally use a &lt;strong&gt;rectangular window&lt;/strong&gt; (because it&#x2019;s a log sweep &#x2014; classic windows smear even more). I&#x2019;m aware this invites leakage when the instantaneous frequency doesn&#x2019;t land exactly on a bin &#x2014; which it never does here.&lt;/li&gt;&#xA;&lt;li&gt;The plotted curves apply a &lt;strong&gt;pink weighting&lt;/strong&gt; (&lt;code&gt;* sqrt(f)&lt;/code&gt;) before converting to dB. That&#x2019;s on purpose for my UX.&lt;/li&gt;&#xA;&lt;li&gt;Sample code and params are above; you can run it and watch &lt;code&gt;line1&lt;/code&gt; sink while &lt;code&gt;line2&lt;/code&gt; stays flat.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr /&gt;&#xA;&lt;h2&gt;What I&#x2019;m looking for&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A &lt;strong&gt;derivation&lt;/strong&gt; (or a pointer to one) for the correct &lt;strong&gt;real-time FFT scaling&lt;/strong&gt; of a growing-prefix &lt;strong&gt;logarithmic sweep&lt;/strong&gt;, explaining the dependence on total sweep duration, sampling rate, and log-frequency span.&lt;/li&gt;&#xA;&lt;li&gt;An explanation for the &lt;strong&gt;/10&lt;/strong&gt; and the &lt;strong&gt;0.35726 dB&lt;/strong&gt; gremlin. If these are actually masking deeper mistakes (e.g., wrong reference of pink weighting, decade vs octave constants, ln vs log10, RMS vs peak, one- vs two-sided PSD), I&#x2019;d love to fix the root cause rather than keep the band-aid.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I&#x2019;m officially out of forehead to hit the wall with and have switched to a long, plaintive whine. Any DSP folks who can help me stop hard-coding mystery constants will earn my eternal gratitude (and a crisp PR link in the repo). &#x1F64F;&lt;/p&gt;&#xA;&lt;p&gt;everything a could imagine&lt;/p&gt;&#xA;
  27.        </summary>
  28.    </entry>
  29.    <entry>
  30.        <id>https://stackoverflow.com/q/79763953</id>
  31.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  32.        <title type="text">How to fix QWebEngine ImportError on linux?</title>
  33.            <category scheme="https://stackoverflow.com/tags" term="python" />
  34.            <category scheme="https://stackoverflow.com/tags" term="pyqt6" />
  35.            <category scheme="https://stackoverflow.com/tags" term="qwebengine" />
  36.        <author>
  37.            <name>Scxve Ve</name>
  38.            <uri>https://stackoverflow.com/users/24920846</uri>
  39.        </author>
  40.        <link rel="alternate" href="https://stackoverflow.com/questions/79763953/how-to-fix-qwebengine-importerror-on-linux" />
  41.        <published>2025-09-13T20:45:36Z</published>
  42.        <updated>2025-09-13T20:45:36Z</updated>
  43.        <summary type="html">
  44.            &lt;p&gt;am making an editor for python using python and PyQt6, i have the same code that works for windows but when i run the code on linux (am on arch linux) i get this error when importing QWebEngine: &lt;code&gt;from PyQt6.QtWebEngineWidgets import QWebEngineView ImportError: /usr/lib/libgssapi_krb5.so.2: undefined symbol: k5_buf_cstring, version krb5support_0_MIT&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;i tried installing &lt;code&gt;krb5&lt;/code&gt;, &lt;code&gt;python-pyqt6-webengine&lt;/code&gt; and since am using conda env i tried &lt;code&gt;conda installPyQt6-WebEngine&lt;/code&gt; but i got the same error.&lt;/p&gt;&#xA;
  45.        </summary>
  46.    </entry>
  47.    <entry>
  48.        <id>https://stackoverflow.com/q/79763949</id>
  49.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  50.        <title type="text">Where is a right place to re-create anonymous user in FirebaseAuth</title>
  51.            <category scheme="https://stackoverflow.com/tags" term="swift" />
  52.            <category scheme="https://stackoverflow.com/tags" term="firebase-authentication" />
  53.        <author>
  54.            <name>Whirlwind</name>
  55.            <uri>https://stackoverflow.com/users/3402095</uri>
  56.        </author>
  57.        <link rel="alternate" href="https://stackoverflow.com/questions/79763949/where-is-a-right-place-to-re-create-anonymous-user-in-firebaseauth" />
  58.        <published>2025-09-13T20:21:03Z</published>
  59.        <updated>2025-09-13T20:53:07Z</updated>
  60.        <summary type="html">
  61.            &lt;p&gt;In my app, users don&#x2019;t need to be signed in strictly with a provider. However, it&#x2019;s important that they are always signed in at least anonymously.&lt;/p&gt;&#xA;&lt;p&gt;What I want to achieve is that, if the app detects a signed-out anonymous user, a new anonymous account is created immediately and assigned to that user.&lt;/p&gt;&#xA;&lt;p&gt;I&#x2019;m not entirely sure in which situations I can expect an anonymous user to be signed out. From what I understand, the SDK refreshes tokens automatically (about once per hour), so in practice it&#x2019;s probably rare that a token expires and fails to refresh.&lt;/p&gt;&#xA;&lt;p&gt;Still, let&#x2019;s say an anonymous user signs out for some reason, and I want to create another anonymous account instantly, and I assign it to that very same user, and to just continue. Where&#x2019;s the best place to handle this?&lt;/p&gt;&#xA;&lt;p&gt;Let&#x2019;s consider the following code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;public func addAuthenticatedUserListener(listener: @escaping (UserAuthInfo?) -&amp;gt; Void) -&amp;gt; AuthStateDidChangeListenerHandle {&#xA;    let handle = Auth.auth().addStateDidChangeListener { _, currentUser in&#xA;        if let currentUser = currentUser {&#xA;            let userInfo = UserAuthInfo(user: currentUser)&#xA;            listener(userInfo)&#xA;            &#xA;            validateToken(user: currentUser) { isValid in&#xA;                if !isValid {&#xA;                    try? Auth.auth().signOut()&#xA;                    listener(nil)&#xA;                } else {&#xA;                    // should I do it here?&#xA;                }&#xA;            }&#xA;        } else {&#xA;            // or here?&#xA;            listener(nil)&#xA;        }&#xA;    }&#xA;    &#xA;    return handle&#xA;}&#xA;&#xA;&#xA;private func validateToken(user: User, completion: @escaping (Bool) -&amp;gt; Void) {&#xA;    user.getIDTokenForcingRefresh(true) { _, error in&#xA;        if let error = error as NSError? {&#xA;            if error.code == AuthErrorCode.userTokenExpired.rawValue ||&#xA;               error.code == AuthErrorCode.userNotFound.rawValue {&#xA;                completion(false)&#xA;            } else {&#xA;                completion(true) // ignore other errors, just for this example&#xA;            }&#xA;        } else {&#xA;            completion(true)&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Where is the proper place to do the re-creating of anonymous account?&lt;/p&gt;&#xA;
  62.        </summary>
  63.    </entry>
  64.    <entry>
  65.        <id>https://stackoverflow.com/q/79763862</id>
  66.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  67.        <title type="text">How to use type hints in a dict with TypeVar and a function that depends on that TypeVar?</title>
  68.            <category scheme="https://stackoverflow.com/tags" term="python" />
  69.            <category scheme="https://stackoverflow.com/tags" term="python-typing" />
  70.            <category scheme="https://stackoverflow.com/tags" term="type-variables" />
  71.            <category scheme="https://stackoverflow.com/tags" term="message-bus" />
  72.        <author>
  73.            <name>MacFreek</name>
  74.            <uri>https://stackoverflow.com/users/428542</uri>
  75.        </author>
  76.        <link rel="alternate" href="https://stackoverflow.com/questions/79763862/how-to-use-type-hints-in-a-dict-with-typevar-and-a-function-that-depends-on-that" />
  77.        <published>2025-09-13T17:35:45Z</published>
  78.        <updated>2025-09-13T20:50:08Z</updated>
  79.        <summary type="html">
  80.            &lt;p&gt;I have a relative simple app in which I use a Message Bus to pass messages.&lt;/p&gt;&#xA;&lt;p&gt;I prefer a bit more stricter type checking: rather than passing arbitrary text strings as topic, I pass message objects, and to be exact: I pass instances of a subclass of the BaseMessage class, and I want to ensure that the handler is designed to take that specific subclass as parameter.&lt;/p&gt;&#xA;&lt;p&gt;Here is the working code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;from dataclasses import dataclass, field, replace&#xA;from typing import Type, TypeVar, Callable&#xA;&#xA;class BaseMessage:&#xA;    # Abstract class. All messages must be a subclass of BaseMessage&#xA;    pass&#xA;&#xA;# Message represent any subclass of BaseMessage. Used for type hints&#xA;Message = TypeVar(&#x27;Message&#x27;, bound=BaseMessage)&#xA;&#xA;# Define the different messages that can be passed around:&#xA;@dataclass&#xA;class MessageType1(BaseMessage):&#xA;    data: int&#xA;&#xA;@dataclass&#xA;class MessageType2(BaseMessage):&#xA;    point: tuple[float, float]&#xA;&#xA;&#xA;class MessageBus():&#xA;    def __init__(self):&#xA;        self.subscribers = {}&#xA;&#xA;    def subscribe(self, messagetype: Type[Message], handler: Callable[[Message], None]) -&amp;gt; None:&#xA;        &amp;quot;&amp;quot;&amp;quot;Register a handler (subscriber) for a topic.&amp;quot;&amp;quot;&amp;quot;&#xA;        self.subscribers.setdefault(messagetype, []).append(handler)&#xA;&#xA;    def publish(self, message: BaseMessage):&#xA;        &amp;quot;&amp;quot;&amp;quot;Send a message to all handlers of the topic.&amp;quot;&amp;quot;&amp;quot;&#xA;        for handler in self.subscribers.get(type(message), []):&#xA;            handler(message)&#xA;&#xA;&#xA;# Example usage&#xA;def my_handler1(message: MessageType1):&#xA;    print(f&amp;quot;my_handler1 message: {message}&amp;quot;)&#xA;&#xA;def my_handler2(message: MessageType2):&#xA;    print(f&amp;quot;my_handler2 message: {message}&amp;quot;)&#xA;&#xA;bus = MessageBus()&#xA;bus.subscribe(MessageType1, my_handler1)&#xA;bus.subscribe(MessageType2, my_handler2)&#xA;bus.subscribe(MessageType1, my_handler2)  # I want to see an error here somewhere!&#xA;bus.publish(MessageType1(3))&#xA;bus.publish(MessageType2((5.0, 2.5)))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;As you can see, I register a few handlers &lt;code&gt;my_handler1&lt;/code&gt; and &lt;code&gt;my_handler2&lt;/code&gt;, and then register them with the message bus, telling upon what message type what function should be called (with that message as parameter).&lt;/p&gt;&#xA;&lt;p&gt;For illustration purpose, this code contains a bug: &lt;code&gt;bus.subscribe(MessageType1, my_handler2)&lt;/code&gt;. This is wrong, as &lt;code&gt;my_handler2&lt;/code&gt; takes a &lt;code&gt;MessageType2&lt;/code&gt; instance instead of a &lt;code&gt;MessageType1&lt;/code&gt; instance.&lt;/p&gt;&#xA;&lt;p&gt;The good news is that in the above code, pyright alerts me about this issue:&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-none prettyprint-override&quot;&gt;&lt;code&gt;error: Argument of type &amp;quot;(message: MessageType2) -&amp;gt; None&amp;quot; cannot be assigned to parameter &amp;quot;handler&amp;quot; of type &amp;quot;(Message@subscribe) -&amp;gt; None&amp;quot; in function &amp;quot;subscribe&amp;quot;&#xA;  &#xA0;&#xA0;Type &amp;quot;(message: MessageType2) -&amp;gt; None&amp;quot; is not assignable to type &amp;quot;(MessageType1) -&amp;gt; None&amp;quot;&#xA;  &#xA0;&#xA0;&#xA0;&#xA0;Parameter 1: type &amp;quot;MessageType1&amp;quot; is incompatible with type &amp;quot;MessageType2&amp;quot;&#xA;  &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&amp;quot;MessageType1&amp;quot; is not assignable to &amp;quot;MessageType2&amp;quot; (reportArgumentType)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So everything works.&lt;/p&gt;&#xA;&lt;p&gt;The only thing what I still like to do, is to type-hint &lt;code&gt;MessageBus.subscribers&lt;/code&gt; in this snippet:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class MessageBus():&#xA;    def __init__(self):&#xA;        self.subscribers = {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I kind of assumed that this would be either&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;self.subscribers: dict[Type[Message], list[Callable[[Message], None]]] = {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;self.subscribers: dict[Type[BaseMessage], list[Callable[[BaseMessage], None]]] = {}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;However, with the first, pyright gives an error &lt;code&gt;Type Variable &amp;quot;Message&amp;quot; has no meaning in this context&lt;/code&gt;. And with the second line, pyright gives an error during during the &lt;code&gt;append()&lt;/code&gt; call: &lt;code&gt;Type &amp;quot;(Message@subscribe) &#x2192;&amp;gt; None&amp;quot; is not assignable to type &amp;quot;(BaseMessage) &#x2192;&amp;gt; None&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So my questions:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What is the correct type hint for &lt;code&gt;self.subscribers&lt;/code&gt; in the above code? (and why?)&lt;/li&gt;&#xA;&lt;li&gt;Would it be possible to define a type hinting shortcut for the function call, to enhance readability? E.g. &lt;code&gt;MessageHandler = Callable[[Message], None]&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Alternatively, is there a recommended solution with a subscriber-publish model that passes Message Objects? I prefer solutions that use the Python standard library instead of external packages.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;
  81.        </summary>
  82.    </entry>
  83.    <entry>
  84.        <id>https://stackoverflow.com/q/79763692</id>
  85.        <re:rank scheme="https://stackoverflow.com">2</re:rank>
  86.        <title type="text">why does compareTo method giving an exception?</title>
  87.            <category scheme="https://stackoverflow.com/tags" term="java" />
  88.            <category scheme="https://stackoverflow.com/tags" term="nullpointerexception" />
  89.        <author>
  90.            <name>0xChaitanya</name>
  91.            <uri>https://stackoverflow.com/users/30580675</uri>
  92.        </author>
  93.        <link rel="alternate" href="https://stackoverflow.com/questions/79763692/why-does-compareto-method-giving-an-exception" />
  94.        <published>2025-09-13T11:43:58Z</published>
  95.        <updated>2025-09-13T20:53:28Z</updated>
  96.        <summary type="html">
  97.            &lt;pre class=&quot;lang-java prettyprint-override&quot;&gt;&lt;code&gt;// File: Employee.java&#xA;&#xA;public class Employee implements Comparable{&#xA;    public Integer salary;&#xA;    public int compareTo(Object e){&#xA;        Employee other = (Employee) e;&#xA;        return Integer.compare(salary, other.salary);&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&quot;lang-java prettyprint-override&quot;&gt;&lt;code&gt;// File: Manager.java&#xA;public class Manager extends Employee{&#xA;    public Integer salary;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&quot;lang-java prettyprint-override&quot;&gt;&lt;code&gt;// File: Main.java, Contains the main method&#xA;public class Main{&#xA;    public static void main(String[] args){&#xA;        Manager m = new Manager();&#xA;        Employee e_ = new Employee();&#xA;&#xA;        m.salary = 0;&#xA;        e_.salary = 1;&#xA;&#xA;        System.out.println(e_.compareTo(m));&#xA;        // System.out.println(e.compareTo(m));&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can anyone explain to me why I am getting this error? I have initialised &lt;code&gt;m.salary = 0&lt;/code&gt;  and &lt;code&gt;e_.salary = 1&lt;/code&gt; after creating objects of the &lt;code&gt;Manager&lt;/code&gt; and &lt;code&gt;Employee&lt;/code&gt; classes, which should set the instance fields in each Manager and Employee object to 0 and 1, respectively.&lt;/p&gt;&#xA;
  98.        </summary>
  99.    </entry>
  100.    <entry>
  101.        <id>https://stackoverflow.com/q/79763568</id>
  102.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  103.        <title type="text">C&#x2B;&#x2B;Builder 13 fails to link while Webroot SecureAnywhere is running</title>
  104.            <category scheme="https://stackoverflow.com/tags" term="c&#x2B;&#x2B;builder" />
  105.            <category scheme="https://stackoverflow.com/tags" term="c&#x2B;&#x2B;builder-13-florence" />
  106.        <author>
  107.            <name>Bob Penoyer</name>
  108.            <uri>https://stackoverflow.com/users/14593559</uri>
  109.        </author>
  110.        <link rel="alternate" href="https://stackoverflow.com/questions/79763568/cbuilder-13-fails-to-link-while-webroot-secureanywhere-is-running" />
  111.        <published>2025-09-13T07:12:06Z</published>
  112.        <updated>2025-09-13T20:47:46Z</updated>
  113.        <summary type="html">
  114.            &lt;p&gt;C&#x2B;&#x2B;Builder 13 cannot find file &lt;code&gt;MyApp.tds&lt;/code&gt; while Webroot SecureAnywhere is running. Compile and link are possible only when Webroot SecureAnywhere has been shut down.&lt;/p&gt;&#xA;&lt;p&gt;Is there a way to keep Webroot SecureAnywhere running but not interfere with compiling and linking?&lt;/p&gt;&#xA;
  115.        </summary>
  116.    </entry>
  117.    <entry>
  118.        <id>https://stackoverflow.com/q/79763430</id>
  119.        <re:rank scheme="https://stackoverflow.com">2</re:rank>
  120.        <title type="text">Python Script Processing Order with JSON Input</title>
  121.            <category scheme="https://stackoverflow.com/tags" term="python" />
  122.            <category scheme="https://stackoverflow.com/tags" term="json" />
  123.            <category scheme="https://stackoverflow.com/tags" term="netmiko" />
  124.        <author>
  125.            <name>Brian</name>
  126.            <uri>https://stackoverflow.com/users/20145979</uri>
  127.        </author>
  128.        <link rel="alternate" href="https://stackoverflow.com/questions/79763430/python-script-processing-order-with-json-input" />
  129.        <published>2025-09-12T23:16:14Z</published>
  130.        <updated>2025-09-13T20:56:13Z</updated>
  131.        <summary type="html">
  132.            &lt;p&gt;I&#x27;m working through some changes to a script I had working. I have changed the input of an IP address file to a json file so that I can include key details like the hostname and maybe later on more details if needed.&lt;/p&gt;&#xA;&lt;p&gt;After a lot of crazy results I got the script to finish without error and somewhat work. I&#x27;m uncertain though what is causing my current issue and how to fix it.&lt;/p&gt;&#xA;&lt;p&gt;I have one test router, TACOSPLEASE-R1 (10.255.221.11), and it works. The second router, TACOSPLEASE-R1 (10.255.221.12), does not exist for error handling purposes.&lt;/p&gt;&#xA;&lt;p&gt;When I was using a text file for IP address input the script worked fine. R1 was backed up and R2 failed to connect as expected.&lt;/p&gt;&#xA;&lt;p&gt;With the json input I&#x27;m getting some weird results. The output is saying R1 doesn&#x27;t work and R2 does. I think the json keys are mixed up but I&#x27;m unsure how to fix it so that R1/10.255.221.11 always stay together and so on.&lt;/p&gt;&#xA;&lt;p&gt;Results below&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;brian@tacosplease-scripts:~/scripts$ python3 junos-backups.py&#xA;Config backups started at: 20250912-15:35:41&#xA;&#xA;Connecting to device: TACOSPLEASE-R1&#xA;Error connecting to TACOSPLEASE-R1: Either ip or host must be set&#xA;&#xA;Connecting to device: TACOSPLEASE-R2&#xA;Connected to TACOSPLEASE-R2&#xA;Configuration backed up to /home/brian/backups/TACOSPLEASE-R2-Config-Backup-20250912-15:35:41.txt&#xA;Disconnected from device.&#xA;Config backups completed at: 20250912-15:35:41&#xA;brian@tacosplease-scripts:~/scripts$&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;json file is below&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;hosts&amp;quot;: [&#xA;  {&#xA;   &amp;quot;hostname&amp;quot;: &amp;quot;TACOSPLEASE-R1&amp;quot;,&#xA;   &amp;quot;address&amp;quot;: &amp;quot;10.255.221.11&amp;quot;&#xA;  },&#xA;  {&#xA;    &amp;quot;hostname&amp;quot;: &amp;quot;TACOSPLEASE-R2&amp;quot;,&#xA;    &amp;quot;address&amp;quot;: &amp;quot;10.255.221.12&amp;quot;&#xA;  }&#xA; ]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Script is below&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;from netmiko import ConnectHandler&#xA;from datetime import datetime&#xA;from os import getenv&#xA;import json&#xA;&#xA;# Open json file to read password&#xA;with open(&#x27;/home/brian/script-variables/passwords.json&#x27;, &#x27;r&#x27;) as pwd_file:&#xA;        pwd_data = json.load(pwd_file)&#xA;&#xA;juniper_password = pwd_data[&#x27;password&#x27;]&#xA;&#xA;&#xA;# netmiko variables for juniper&#xA;juniper_device = {&#xA;    &#x27;device_type&#x27;: &#x27;juniper_junos&#x27;,&#xA;    &#x27;username&#x27;: &#x27;root&#x27;,&#xA;    &#x27;password&#x27;: juniper_password,&#xA;}&#xA;&#xA;&#xA;# Get the current date/time and format it for our filenames&#xA;current_datetime = datetime.now()&#xA;formatted_datetime = current_datetime.strftime(&amp;quot;%Y%m%d-%H:%M:%S&amp;quot;)&#xA;&#xA;&#xA;# Print the start time&#xA;print(&amp;quot;Config backups started at:&amp;quot;, formatted_datetime)&#xA;&#xA;&#xA;# Open file to read IP addreses from&#xA;with open(&#x27;/home/brian/script-variables/devices.json&#x27;, &#x27;r&#x27;) as dvc_file:&#xA;        device_file = json.load(dvc_file)&#xA;        json_device_file = device_file[&amp;quot;hosts&amp;quot;]&#xA;&#xA;        # Loop through the devices json file so that we can connect to every device&#xA;        for value in json_device_file:&#xA;&#xA;                print(f&amp;quot;\nConnecting to device: {value[&#x27;hostname&#x27;]}&amp;quot;)&#xA;&#xA;                # Create a dictionary for the current device&#x27;s connection&#xA;                current_device = juniper_device.copy()&#xA;                juniper_device[&amp;quot;host&amp;quot;] = value[&#x27;address&#x27;]&#xA;&#xA;                try:&#xA;                        net_connect = ConnectHandler(**current_device)&#xA;                        print(f&amp;quot;Connected to {value[&#x27;hostname&#x27;]}&amp;quot;)&#xA;&#xA;                        # Pull the configuration in &#x27;set&#x27; format&#xA;                        config_output = net_connect.send_command(&#x27;show configuration | display set&#x27;, use_textfsm=False)&#xA;&#xA;                        # Set the backup file name&#xA;                        backup_filename = f&amp;quot;/home/brian/backups/{value[&#x27;hostname&#x27;]}-Config-Backup-{formatted_datetime}.txt&amp;quot;&#xA;&#xA;                        # Save the configuration to a file&#xA;                        with open(backup_filename, &#x27;w&#x27;) as device_file:&#xA;                                device_file.write(config_output)&#xA;                        print(f&amp;quot;Configuration backed up to {backup_filename}&amp;quot;)&#xA;&#xA;                except Exception as e:&#xA;                        print(f&amp;quot;Error connecting to {value[&#x27;hostname&#x27;]}: {e}&amp;quot;)&#xA;&#xA;                finally:&#xA;                        if &#x27;net_connect&#x27; in locals() and net_connect.is_alive():&#xA;                                net_connect.disconnect()&#xA;                                print(&amp;quot;Disconnected from device.&amp;quot;)&#xA;&#xA;&#xA;# Print the finish time&#xA;print(&amp;quot;Config backups completed at:&amp;quot;, formatted_datetime)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;
  133.        </summary>
  134.    </entry>
  135.    <entry>
  136.        <id>https://stackoverflow.com/q/79763405</id>
  137.        <re:rank scheme="https://stackoverflow.com">-9</re:rank>
  138.        <title type="text">Why does reversing an array in Java require swapping only up to length / 2 elements? [closed]</title>
  139.            <category scheme="https://stackoverflow.com/tags" term="java" />
  140.        <author>
  141.            <name>Raju Kumar</name>
  142.            <uri>https://stackoverflow.com/users/31479363</uri>
  143.        </author>
  144.        <link rel="alternate" href="https://stackoverflow.com/questions/79763405/why-does-reversing-an-array-in-java-require-swapping-only-up-to-length-2-eleme" />
  145.        <published>2025-09-12T22:42:28Z</published>
  146.        <updated>2025-09-13T20:58:38Z</updated>
  147.        <summary type="html">
  148.            &lt;pre&gt;&lt;code&gt;int[] arr = {1, 2, 3, 4, 5};&#xA;for (int i = 0; i &amp;lt; arr.length / 2; i&#x2B;&#x2B;) {&#xA;    int temp = arr[i];&#xA;    arr[i] = arr[arr.length - 1 - i];&#xA;    arr[arr.length - 1 - i] = temp;&#xA;} &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Why don&#x2019;t we swap through the entire length of the array? What would happen if we looped through the full array instead of half?&lt;/p&gt;&#xA;
  149.        </summary>
  150.    </entry>
  151.    <entry>
  152.        <id>https://stackoverflow.com/q/79763041</id>
  153.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  154.        <title type="text">Remotion Video has audio quality issue</title>
  155.            <category scheme="https://stackoverflow.com/tags" term="javascript" />
  156.            <category scheme="https://stackoverflow.com/tags" term="node.js" />
  157.            <category scheme="https://stackoverflow.com/tags" term="aws-lambda" />
  158.            <category scheme="https://stackoverflow.com/tags" term="video-encoding" />
  159.            <category scheme="https://stackoverflow.com/tags" term="remotion" />
  160.        <author>
  161.            <name>Ananth</name>
  162.            <uri>https://stackoverflow.com/users/1847451</uri>
  163.        </author>
  164.        <link rel="alternate" href="https://stackoverflow.com/questions/79763041/remotion-video-has-audio-quality-issue" />
  165.        <published>2025-09-12T14:04:25Z</published>
  166.        <updated>2025-09-13T21:10:31Z</updated>
  167.        <summary type="html">
  168.            &lt;p&gt;I&#x27;m trying to generate a video using &lt;code&gt;remotion library&lt;/code&gt;.&lt;br /&gt;&#xA;We can combine the video and text and generate an new video.&lt;br /&gt;&#xA;I used to place the text at the bottom of the video and generate an video.&lt;/p&gt;&#xA;&lt;h4&gt;Scenario 1:&lt;/h4&gt;&#xA;&lt;p&gt;When I use a video with audio, then new video is not generating properly, The new video has audio quality issue. PFA.&lt;/p&gt;&#xA;&lt;h4&gt;Scenario 2:&lt;/h4&gt;&#xA;&lt;p&gt;When i use a video without audio, then combine it with audio and text, then the new video is working fine.&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-js prettyprint-override&quot;&gt;&lt;code&gt;import { renderMediaOnLambda } from &#x27;@remotion/lambda/client&#x27;;&#xA;&#xA;const { renderId, bucketName } = await renderMediaOnLambda(&#xA;  { region       : &amp;quot;us-east-1&amp;quot;&#xA;  , functionName : config.lambdaFunction&#xA;  , serveUrl     : config.serverUrl&#xA;  , composition  : composition&#xA;  , inputProps   : jsonData&#xA;  , codec        : &amp;quot;h264&amp;quot;&#xA;  , audioCodec   : &amp;quot;mp3&amp;quot;&#xA;  , audioBitrate : &amp;quot;1M&amp;quot;&#xA;  , videoBitrate : &amp;quot;1M&amp;quot;&#xA;  , outName: &#xA;      { bucketName : config.bucket&#xA;      , key        : outputFileName&#xA;      }&#xA;  , imageFormat     : &amp;quot;jpeg&amp;quot;&#xA;  , maxRetries      : 1&#xA;  , framesPerLambda : 1000&#xA;  , privacy         : &amp;quot;public&amp;quot;&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h4&gt;Example 2: Actual data&lt;/h4&gt;&#xA;&lt;p&gt;&lt;strong&gt;jsonData&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-json prettyprint-override&quot;&gt;&lt;code&gt;  { &amp;quot;design&amp;quot; : &#xA;    { &amp;quot;id&amp;quot;    : &amp;quot;BlrKj0qKg1PX7vfx&amp;quot;&#xA;    , &amp;quot;size&amp;quot;  : &#xA;      { &amp;quot;width&amp;quot;  : 1080&#xA;      , &amp;quot;height&amp;quot; : 1920&#xA;      }&#xA;    , &amp;quot;fps&amp;quot;    : 30&#xA;    , &amp;quot;tracks&amp;quot; : &#xA;      [&#xA;        { &amp;quot;id&amp;quot;      : &amp;quot;k9aar-Jm6RQoPT3Yvyk3C&amp;quot;&#xA;        , &amp;quot;accepts&amp;quot; : &#xA;          [ &amp;quot;text&amp;quot;, &amp;quot;image&amp;quot;, &amp;quot;video&amp;quot;, &amp;quot;audio&amp;quot;, &amp;quot;composition&amp;quot;, &amp;quot;caption&amp;quot;, &amp;quot;template&amp;quot;&#xA;          , &amp;quot;customTrack&amp;quot;, &amp;quot;customTrack2&amp;quot;, &amp;quot;illustration&amp;quot;, &amp;quot;custom&amp;quot;, &amp;quot;main&amp;quot;, &amp;quot;shape&amp;quot;&#xA;          , &amp;quot;linealAudioBars&amp;quot;, &amp;quot;radialAudioBars&amp;quot;, &amp;quot;progressFrame&amp;quot;, &amp;quot;progressBar&amp;quot;&#xA;          , &amp;quot;rect&amp;quot;, &amp;quot;progressSquare&amp;quot;&#xA;          ]&#xA;        , &amp;quot;type&amp;quot;     : &amp;quot;text&amp;quot;&#xA;        , &amp;quot;items&amp;quot;    : [ &amp;quot;UyDpqx4ZxJY0CRsV&amp;quot; ]&#xA;        , &amp;quot;magnetic&amp;quot; : false&#xA;        , &amp;quot;static&amp;quot;   : false&#xA;        }&#xA;      , { &amp;quot;id&amp;quot;      : &amp;quot;tl2rFnfH3Mn2kRWKkC_88&amp;quot;&#xA;        , &amp;quot;accepts&amp;quot; : &#xA;          [ &amp;quot;text&amp;quot;, &amp;quot;image&amp;quot;, &amp;quot;video&amp;quot;, &amp;quot;audio&amp;quot;, &amp;quot;composition&amp;quot;, &amp;quot;caption&amp;quot;, &amp;quot;template&amp;quot;&#xA;          , &amp;quot;customTrack&amp;quot;, &amp;quot;customTrack2&amp;quot;, &amp;quot;illustration&amp;quot;, &amp;quot;custom&amp;quot;, &amp;quot;main&amp;quot;, &amp;quot;shape&amp;quot;&#xA;          , &amp;quot;linealAudioBars&amp;quot;, &amp;quot;radialAudioBars&amp;quot;, &amp;quot;progressFrame&amp;quot;, &amp;quot;progressBar&amp;quot;&#xA;          , &amp;quot;rect&amp;quot;, &amp;quot;progressSquare&amp;quot;&#xA;          ]&#xA;        , &amp;quot;type&amp;quot;     : &amp;quot;video&amp;quot;&#xA;        , &amp;quot;items&amp;quot;    : [ &amp;quot;H5HD31deQOSTyVlo&amp;quot; ]&#xA;        , &amp;quot;magnetic&amp;quot; : false&#xA;        , &amp;quot;static&amp;quot;   : false&#xA;        }&#xA;      ]&#xA;    , &amp;quot;trackItemIds&amp;quot;  : [ &amp;quot;H5HD31deQOSTyVlo&amp;quot;, &amp;quot;UyDpqx4ZxJY0CRsV&amp;quot; ]&#xA;    , &amp;quot;trackItemsMap&amp;quot; : &#xA;      { &amp;quot;H5HD31deQOSTyVlo&amp;quot;: &#xA;        { &amp;quot;id&amp;quot;      : &amp;quot;H5HD31deQOSTyVlo&amp;quot;&#xA;        , &amp;quot;details&amp;quot; : &#xA;          { &amp;quot;width&amp;quot;        : 960&#xA;          , &amp;quot;height&amp;quot;       : 960&#xA;          , &amp;quot;opacity&amp;quot;      : 100&#xA;          , &amp;quot;src&amp;quot;          : &amp;quot;https://v3.fal.media/files/monkey/xbAZ2BQi73CF7Gkv6hnAF_6z6-Lkg6MeICe-cIXwqMs_video.mp4&amp;quot;&#xA;          , &amp;quot;volume&amp;quot;       : 100&#xA;          , &amp;quot;borderRadius&amp;quot; : 0&#xA;          , &amp;quot;borderWidth&amp;quot;  : 0&#xA;          , &amp;quot;borderColor&amp;quot;  : &amp;quot;#000000&amp;quot;&#xA;          , &amp;quot;boxShadow&amp;quot;    : &#xA;            { &amp;quot;color&amp;quot; : &amp;quot;#000000&amp;quot;&#xA;            , &amp;quot;x&amp;quot;     : 0&#xA;            , &amp;quot;y&amp;quot;     : 0&#xA;            , &amp;quot;blur&amp;quot;  : 0&#xA;            }&#xA;          , &amp;quot;top&amp;quot;        : &amp;quot;480px&amp;quot;&#xA;          , &amp;quot;left&amp;quot;       : &amp;quot;60px&amp;quot;&#xA;          , &amp;quot;transform&amp;quot;  : &amp;quot;scale(1.125)&amp;quot;&#xA;          , &amp;quot;blur&amp;quot;       : 0&#xA;          , &amp;quot;brightness&amp;quot; : 100&#xA;          , &amp;quot;flipX&amp;quot;      : false&#xA;          , &amp;quot;flipY&amp;quot;      : false&#xA;          , &amp;quot;rotate&amp;quot;     : &amp;quot;0deg&amp;quot;&#xA;          , &amp;quot;visibility&amp;quot; : &amp;quot;visible&amp;quot;&#xA;          }&#xA;        , &amp;quot;metadata&amp;quot;     : { &amp;quot;previewUrl&amp;quot;: &amp;quot;https://remotionlambda-useast1-myb.amazonaws.com/demo-assets/group-1.png&amp;quot; }&#xA;        , &amp;quot;trim&amp;quot;         : { &amp;quot;from&amp;quot;: 0, &amp;quot;to&amp;quot;: 5015.011 }&#xA;        , &amp;quot;type&amp;quot;         : &amp;quot;video&amp;quot;&#xA;        , &amp;quot;name&amp;quot;         : &amp;quot;video&amp;quot;&#xA;        , &amp;quot;playbackRate&amp;quot; : 1&#xA;        , &amp;quot;display&amp;quot;      : { &amp;quot;from&amp;quot;: 0, &amp;quot;to&amp;quot;: 5015.011 }&#xA;        , &amp;quot;duration&amp;quot;     : 5015.011&#xA;        , &amp;quot;isMain&amp;quot;: false&#xA;        }&#xA;      , &amp;quot;UyDpqx4ZxJY0CRsV&amp;quot;: &#xA;        { &amp;quot;id&amp;quot;      : &amp;quot;UyDpqx4ZxJY0CRsV&amp;quot;&#xA;        , &amp;quot;name&amp;quot;    : &amp;quot;text&amp;quot;&#xA;        , &amp;quot;type&amp;quot;    : &amp;quot;text&amp;quot;&#xA;        , &amp;quot;display&amp;quot; : { &amp;quot;from&amp;quot;: 0, &amp;quot;to&amp;quot;: 5000 }&#xA;        , &amp;quot;details&amp;quot;: &#xA;          { &amp;quot;text&amp;quot;            : &amp;quot;Heading and some body&amp;quot;&#xA;          , &amp;quot;fontSize&amp;quot;        : 120&#xA;          , &amp;quot;width&amp;quot;           : 600&#xA;          , &amp;quot;fontUrl&amp;quot;         : &amp;quot;https://fonts.gstatic.com/s/roboto/v29/KFOlCnqEu92Fr1MmWUlvAx05IsDqlA.ttf&amp;quot;&#xA;          , &amp;quot;fontFamily&amp;quot;      : &amp;quot;Roboto-Bold&amp;quot;&#xA;          , &amp;quot;color&amp;quot;           : &amp;quot;#ffffff&amp;quot;&#xA;          , &amp;quot;wordWrap&amp;quot;        : &amp;quot;break-word&amp;quot;&#xA;          , &amp;quot;textAlign&amp;quot;       : &amp;quot;center&amp;quot;&#xA;          , &amp;quot;borderWidth&amp;quot;     : 0&#xA;          , &amp;quot;borderColor&amp;quot;     : &amp;quot;#000000&amp;quot;&#xA;          , &amp;quot;boxShadow&amp;quot;       : { &amp;quot;color&amp;quot;: &amp;quot;#ffffff&amp;quot;, &amp;quot;x&amp;quot;: 0, &amp;quot;y&amp;quot;: 0, &amp;quot;blur&amp;quot;: 0}&#xA;          , &amp;quot;fontWeight&amp;quot;      : &amp;quot;normal&amp;quot;&#xA;          , &amp;quot;fontStyle&amp;quot;       : &amp;quot;normal&amp;quot;&#xA;          , &amp;quot;textDecoration&amp;quot;  : &amp;quot;none&amp;quot;&#xA;          , &amp;quot;lineHeight&amp;quot;      : &amp;quot;normal&amp;quot;&#xA;          , &amp;quot;letterSpacing&amp;quot;   : &amp;quot;normal&amp;quot;&#xA;          , &amp;quot;wordSpacing&amp;quot;     : &amp;quot;normal&amp;quot;&#xA;          , &amp;quot;backgroundColor&amp;quot; : &amp;quot;transparent&amp;quot;&#xA;          , &amp;quot;border&amp;quot;                : &amp;quot;none&amp;quot;&#xA;          , &amp;quot;textShadow&amp;quot;            : &amp;quot;none&amp;quot;&#xA;          , &amp;quot;opacity&amp;quot;               : 100&#xA;          , &amp;quot;wordBreak&amp;quot;             : &amp;quot;normal&amp;quot;&#xA;          , &amp;quot;WebkitTextStrokeColor&amp;quot; : &amp;quot;#ffffff&amp;quot;&#xA;          , &amp;quot;WebkitTextStrokeWidth&amp;quot; : &amp;quot;0px&amp;quot;&#xA;          , &amp;quot;top&amp;quot;                   : &amp;quot;748.5px&amp;quot;&#xA;          , &amp;quot;left&amp;quot;                  : &amp;quot;240px&amp;quot;&#xA;          , &amp;quot;textTransform&amp;quot;         : &amp;quot;none&amp;quot;&#xA;          , &amp;quot;transform&amp;quot;             : &amp;quot;none&amp;quot;&#xA;          , &amp;quot;skewX&amp;quot;                 : 0&#xA;          , &amp;quot;skewY&amp;quot;                 : 0&#xA;          , &amp;quot;height&amp;quot;                : 423&#xA;          }&#xA;        , &amp;quot;metadata&amp;quot; : {}&#xA;        , &amp;quot;isMain&amp;quot;   : false&#xA;        }&#xA;      }&#xA;    , &amp;quot;transitionIds&amp;quot;  : []&#xA;    , &amp;quot;transitionsMap&amp;quot; : {}&#xA;    , &amp;quot;scale&amp;quot;: &#xA;      { &amp;quot;index&amp;quot;     : 7&#xA;      ,  &amp;quot;unit&amp;quot;     : 300&#xA;      ,  &amp;quot;zoom&amp;quot;     : 0.0033333333333333335&#xA;      ,  &amp;quot;segments&amp;quot; : 5&#xA;      }&#xA;    , &amp;quot;duration&amp;quot;   : 5015.011&#xA;    , &amp;quot;activeIds&amp;quot;  : [ &amp;quot;H5HD31deQOSTyVlo&amp;quot; ]&#xA;    , &amp;quot;structure&amp;quot;  : []&#xA;    , &amp;quot;background&amp;quot; : { &amp;quot;type&amp;quot;: &amp;quot;color&amp;quot;, &amp;quot;value&amp;quot;: &amp;quot;transparent&amp;quot; }&#xA;    }&#xA;  , &amp;quot;options&amp;quot;: &#xA;    { &amp;quot;fps&amp;quot;    : 30&#xA;    , &amp;quot;size&amp;quot;   : { &amp;quot;width&amp;quot;: 1080, &amp;quot;height&amp;quot;: 1920 }&#xA;    , &amp;quot;format&amp;quot; : &amp;quot;mp4&amp;quot;&#xA;    }&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;inputJSON&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-json prettyprint-override&quot;&gt;&lt;code&gt;  { &amp;quot;region&amp;quot;       : &amp;quot;us-east-1&amp;quot;&#xA;  , &amp;quot;functionName&amp;quot; : &amp;quot;remotion-render-myfunc-240sec&amp;quot;&#xA;  , &amp;quot;serveUrl&amp;quot;     : &amp;quot;https://remotionlambda-useast1-mybucket.s3.us-east-1.amazonaws.com/sites/dev/index.html&amp;quot;&#xA;  , &amp;quot;composition&amp;quot;  : &amp;quot;RenderVideo&amp;quot;&#xA;  , &amp;quot;inputProps&amp;quot;   : jsonData&#xA;  , &amp;quot;codec&amp;quot;        : &amp;quot;h264&amp;quot;&#xA;  , &amp;quot;audioCodec&amp;quot;   : &amp;quot;mp3&amp;quot;&#xA;  , &amp;quot;audioBitrate&amp;quot; : &amp;quot;1M&amp;quot;&#xA;  , &amp;quot;videoBitrate&amp;quot; : &amp;quot;1M&amp;quot;&#xA;  , &amp;quot;outName&amp;quot;: &#xA;    { &amp;quot;bucketName&amp;quot; : &amp;quot;remotionlambda-useast1-3rne5v73bs&amp;quot;&#xA;    , &amp;quot;key&amp;quot;        : &amp;quot;demo-vid-9169.mp4&amp;quot;&#xA;    }&#xA;  , &amp;quot;imageFormat&amp;quot;     : &amp;quot;jpeg&amp;quot;&#xA;  , &amp;quot;maxRetries&amp;quot;      : 1&#xA;  , &amp;quot;framesPerLambda&amp;quot; : 1000&#xA;  , &amp;quot;privacy&amp;quot;         : &amp;quot;public&amp;quot;&#xA;  }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;INPUT VIDEO URL: &lt;a href=&quot;https://v3.fal.media/files/monkey/xbAZ2BQi73CF7Gkv6hnAF_6z6-Lkg6MeICe-cIXwqMs_video.mp4&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://v3.fal.media/files/monkey/xbAZ2BQi73CF7Gkv6hnAF_6z6-Lkg6MeICe-cIXwqMs_video.mp4&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Output Generated Video URL:&#xA;&lt;a href=&quot;https://vimeo.com/1118133462?share=copy&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://vimeo.com/1118133462?share=copy&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Reference URL:&#xA;&lt;a href=&quot;https://www.remotion.dev/docs/lambda/rendermediaonlambda&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.remotion.dev/docs/lambda/rendermediaonlambda&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Reference URL which as all the props related to this function:&#xA;&lt;a href=&quot;https://www.remotion.dev/docs/cli/render#--muted&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.remotion.dev/docs/cli/render#--muted&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Note: We can use any video with audio to reproduce this issue with Remotion.&lt;/p&gt;&#xA;&lt;p&gt;Any help would be highly appreciated.&lt;/p&gt;&#xA;
  169.        </summary>
  170.    </entry>
  171.    <entry>
  172.        <id>https://stackoverflow.com/q/78764969</id>
  173.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  174.        <title type="text">How to read `DeclaringType` from `JsonPropertyTypeInfo` in System.Text.Json?</title>
  175.            <category scheme="https://stackoverflow.com/tags" term="c#" />
  176.            <category scheme="https://stackoverflow.com/tags" term="json" />
  177.            <category scheme="https://stackoverflow.com/tags" term="serialization" />
  178.            <category scheme="https://stackoverflow.com/tags" term="system.text.json" />
  179.        <author>
  180.            <name>Ilya Chernomordik</name>
  181.            <uri>https://stackoverflow.com/users/1671558</uri>
  182.        </author>
  183.        <link rel="alternate" href="https://stackoverflow.com/questions/78764969/how-to-read-declaringtype-from-jsonpropertytypeinfo-in-system-text-json" />
  184.        <published>2024-07-18T14:16:20Z</published>
  185.        <updated>2025-09-13T20:56:19Z</updated>
  186.        <summary type="html">
  187.            &lt;p&gt;I want to customize serialization based on the type of the property. To do that I would like to read &lt;code&gt;DeclaringType&lt;/code&gt; from &lt;code&gt;JsonPropertyInfo&lt;/code&gt;. This is an example from &lt;a href=&quot;https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/custom-contracts&quot; rel=&quot;nofollow noreferrer&quot;&gt;Microsoft documentation&lt;/a&gt; on how to create such a modifier&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-cs prettyprint-override&quot;&gt;&lt;code&gt;    // Custom modifier that increments the value&#xA;        // of a specific property on deserialization.&#xA;        static void IncrementCounterModifier(JsonTypeInfo typeInfo)&#xA;        {&#xA;            foreach (JsonPropertyInfo propertyInfo in typeInfo.Properties)&#xA;            {&#xA;                if (propertyInfo.PropertyType != typeof(int))&#xA;                    continue;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &lt;code&gt;DeclaringType&lt;/code&gt; property is not available directly on &lt;code&gt;JsonPropertyInfo&lt;/code&gt; though unfortunately (for some strange reason it is defined as &lt;code&gt;internal&lt;/code&gt;), but on a generic type that inherits from it. Is there a way without reflection to read it in modifier?&lt;/p&gt;&#xA;
  188.        </summary>
  189.    </entry>
  190.    <entry>
  191.        <id>https://stackoverflow.com/q/74937233</id>
  192.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  193.        <title type="text">how to fix &#x27;noindex&#x27; detected in &#x27;X-Robots-Tag&#x27; http header error in wordpress NGINX server?</title>
  194.            <category scheme="https://stackoverflow.com/tags" term="wordpress" />
  195.            <category scheme="https://stackoverflow.com/tags" term="seo" />
  196.            <category scheme="https://stackoverflow.com/tags" term="sitemap" />
  197.            <category scheme="https://stackoverflow.com/tags" term="google-search-console" />
  198.            <category scheme="https://stackoverflow.com/tags" term="sitemap.xml" />
  199.        <author>
  200.            <name>S.S.P Smart Study Portal</name>
  201.            <uri>https://stackoverflow.com/users/20877180</uri>
  202.        </author>
  203.        <link rel="alternate" href="https://stackoverflow.com/questions/74937233/how-to-fix-noindex-detected-in-x-robots-tag-http-header-error-in-wordpress-n" />
  204.        <published>2022-12-28T07:05:50Z</published>
  205.        <updated>2025-09-13T21:03:35Z</updated>
  206.        <summary type="html">
  207.            &lt;p&gt;I created a sitemap using rankmath plugin when i added that sitemap url to the search console it shows couldn&#x27;t fetct error then i used URL Inspection tool to check my sitemap It show  url is not on google. After live test It shows &#x27;noindex&#x27; detected in &#x27;X-Robots-Tag&#x27; http header.&lt;/p&gt;&#xA;&lt;p&gt;check this image to view issue&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&quot;https://i.sstatic.net/YQZ97.png&quot; alt=&quot;1&quot; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;I want to fix this issue. If anybody know how to fix x-robots noinex tag from response header of sitemap please hrlp to fix it.&lt;/p&gt;&#xA;
  208.        </summary>
  209.    </entry>
  210.    <entry>
  211.        <id>https://stackoverflow.com/q/74336124</id>
  212.        <re:rank scheme="https://stackoverflow.com">9</re:rank>
  213.        <title type="text">How to justify text in Quarto?</title>
  214.            <category scheme="https://stackoverflow.com/tags" term="html" />
  215.            <category scheme="https://stackoverflow.com/tags" term="text" />
  216.            <category scheme="https://stackoverflow.com/tags" term="quarto" />
  217.            <category scheme="https://stackoverflow.com/tags" term="justify" />
  218.        <author>
  219.            <name>Quinten</name>
  220.            <uri>https://stackoverflow.com/users/14282714</uri>
  221.        </author>
  222.        <link rel="alternate" href="https://stackoverflow.com/questions/74336124/how-to-justify-text-in-quarto" />
  223.        <published>2022-11-06T13:08:26Z</published>
  224.        <updated>2025-09-13T20:48:09Z</updated>
  225.        <summary type="html">
  226.            &lt;p&gt;I would like to justify the text in a &lt;code&gt;Quarto&lt;/code&gt; document. This means that it should automatically add text between words so that both edges of each line of text are aligned with both margins. In a &lt;code&gt;word-document&lt;/code&gt; this would be the following highlighted symbol:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.sstatic.net/fOk9x.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.sstatic.net/fOk9x.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So I was wondering if this method is possible in a &lt;code&gt;Quarto&lt;/code&gt; document? Here is a reproducible example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;---&#xA;title: &amp;quot;How to justify text in Quarto&amp;quot;&#xA;format: html&#xA;editor: visual&#xA;---&#xA;&#xA;## Quarto&#xA;&#xA;Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see &amp;lt;https://quarto.org&amp;gt;.&#xA;&#xA;Quarto is based on Pandoc and uses its variation of markdown as its underlying document syntax. Pandoc markdown is an extended and slightly revised version of John Gruber&#x27;s Markdown syntax. &#xA;&#xA;Markdown is a plain text format that is designed to be easy to write, and, even more importantly, easy to read:&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.sstatic.net/vdWxA.png&quot; rel=&quot;noreferrer&quot;&gt;&lt;img src=&quot;https://i.sstatic.net/vdWxA.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;hr /&gt;&#xA;&lt;p&gt;As you can see the text is not justified, because the lines of text are not all at both edges of each line with both margins.&lt;/p&gt;&#xA;
  227.        </summary>
  228.    </entry>
  229.    <entry>
  230.        <id>https://stackoverflow.com/q/72940602</id>
  231.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  232.        <title type="text">ModuleNotFoundError: No module named &#x27;learning_logs.urls&#x27;</title>
  233.            <category scheme="https://stackoverflow.com/tags" term="python" />
  234.            <category scheme="https://stackoverflow.com/tags" term="django" />
  235.            <category scheme="https://stackoverflow.com/tags" term="django-urls" />
  236.        <author>
  237.            <name>szhang04</name>
  238.            <uri>https://stackoverflow.com/users/19420526</uri>
  239.        </author>
  240.        <link rel="alternate" href="https://stackoverflow.com/questions/72940602/modulenotfounderror-no-module-named-learning-logs-urls" />
  241.        <published>2022-07-11T15:00:27Z</published>
  242.        <updated>2025-09-13T20:52:30Z</updated>
  243.        <summary type="html">
  244.            &lt;p&gt;I&#x27;m working on a Django project from a book right now. The version is a little outdated so I&#x27;ve been trying to follow the documentation for the more up to date version on some things. I&#x27;m running into an issue adding the urls. It says:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ModuleNotFoundError: No module named &#x27;learning_logs.urls&#x27;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My urls.py code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;from django.contrib import admin&#xA;from django.urls import path&#xA;from django.urls import include, path&#xA;&#xA;urlpatterns = [&#xA;    path(&#x27;admin/&#x27;, admin.site.urls),&#xA;    path(&#x27;&#x27;, include(&#x27;learning_logs.urls&#x27;))&#xA;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Is there any other code I need to add?&lt;/p&gt;&#xA;
  245.        </summary>
  246.    </entry>
  247.    <entry>
  248.        <id>https://stackoverflow.com/q/70890070</id>
  249.        <re:rank scheme="https://stackoverflow.com">16</re:rank>
  250.        <title type="text">webpack 5 - Parsed request is a module</title>
  251.            <category scheme="https://stackoverflow.com/tags" term="javascript" />
  252.            <category scheme="https://stackoverflow.com/tags" term="node.js" />
  253.            <category scheme="https://stackoverflow.com/tags" term="reactjs" />
  254.            <category scheme="https://stackoverflow.com/tags" term="webpack" />
  255.            <category scheme="https://stackoverflow.com/tags" term="webpack-5" />
  256.        <author>
  257.            <name>Gowtham Ganapathi</name>
  258.            <uri>https://stackoverflow.com/users/14027299</uri>
  259.        </author>
  260.        <link rel="alternate" href="https://stackoverflow.com/questions/70890070/webpack-5-parsed-request-is-a-module" />
  261.        <published>2022-01-28T07:15:48Z</published>
  262.        <updated>2025-09-13T20:58:11Z</updated>
  263.        <summary type="html">
  264.            &lt;p&gt;I&#x27;m creating webpack5 setup for an small app and while doing I&#x27;m facing the below mentioned issue. Please suggest the way to resolve&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Issue Snapshot&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Module not found: Error: Can&#x27;t resolve &#x27;faker&#x27; in &#x27;C:\Gowtham\micro-frontend-training\products\src&#x27;      &#xA;resolve &#x27;faker&#x27; in &#x27;C:\Gowtham\micro-frontend-training\products\src&#x27;&#xA;  Parsed request is a module&#xA;  using description file: C:\Gowtham\micro-frontend-training\products\package.json (relative path: ./src)&#xA;    Field &#x27;browser&#x27; doesn&#x27;t contain a valid alias configuration&#xA;    resolve as module&#xA;      C:\Gowtham\micro-frontend-training\products\src\node_modules doesn&#x27;t exist or is not a directory&#xA;      looking for modules in C:\Gowtham\micro-frontend-training\products\node_modules&#xA;        single file module&#xA;          using description file: C:\Gowtham\micro-frontend-training\products\package.json (relative path: ./node_modules/faker)&#xA;            no extension&#xA;              Field &#x27;browser&#x27; doesn&#x27;t contain a valid alias configuration&#xA;              C:\Gowtham\micro-frontend-training\products\node_modules\faker is not a file&#xA;            .js&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;Folder Structure&lt;/strong&gt;&#xA;&lt;a href=&quot;https://i.sstatic.net/6sSy7.png&quot; rel=&quot;noreferrer&quot;&gt;folder structure&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;webpack.config.js&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;module.exports = {&#xA;  mode: &amp;quot;development&amp;quot;,&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;package.json&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;  &amp;quot;name&amp;quot;: &amp;quot;products&amp;quot;,&#xA;  &amp;quot;version&amp;quot;: &amp;quot;1.0.0&amp;quot;,&#xA;  &amp;quot;description&amp;quot;: &amp;quot;&amp;quot;,&#xA;  &amp;quot;main&amp;quot;: &amp;quot;index.js&amp;quot;,&#xA;  &amp;quot;scripts&amp;quot;: {&#xA;    &amp;quot;start&amp;quot;: &amp;quot;webpack&amp;quot;&#xA;  },&#xA;  &amp;quot;keywords&amp;quot;: [],&#xA;  &amp;quot;author&amp;quot;: &amp;quot;&amp;quot;,&#xA;  &amp;quot;license&amp;quot;: &amp;quot;ISC&amp;quot;,&#xA;  &amp;quot;dependencies&amp;quot;: {&#xA;    &amp;quot;faker&amp;quot;: &amp;quot;^6.6.6&amp;quot;,&#xA;    &amp;quot;webpack&amp;quot;: &amp;quot;^5.67.0&amp;quot;,&#xA;    &amp;quot;webpack-cli&amp;quot;: &amp;quot;^4.9.2&amp;quot;&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;strong&gt;src/index.js&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;import faker from &amp;quot;faker&amp;quot;;&#xA;&#xA;let products = &amp;quot;&amp;quot;;&#xA;&#xA;for (let i = 0; i &amp;lt; 3; i&#x2B;&#x2B;) {&#xA;  const name = faker.commerce.productName();&#xA;  products &#x2B;= `&amp;lt;div&amp;gt;${name}&amp;lt;/div&amp;gt;`;&#xA;}&#xA;&#xA;console.log(products);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;
  265.        </summary>
  266.    </entry>
  267.    <entry>
  268.        <id>https://stackoverflow.com/q/65467502</id>
  269.        <re:rank scheme="https://stackoverflow.com">7</re:rank>
  270.        <title type="text">Multiple components use the same tag in blazor</title>
  271.            <category scheme="https://stackoverflow.com/tags" term="c#" />
  272.            <category scheme="https://stackoverflow.com/tags" term="blazor" />
  273.        <author>
  274.            <name>KingKerosin</name>
  275.            <uri>https://stackoverflow.com/users/615288</uri>
  276.        </author>
  277.        <link rel="alternate" href="https://stackoverflow.com/questions/65467502/multiple-components-use-the-same-tag-in-blazor" />
  278.        <published>2020-12-27T15:44:40Z</published>
  279.        <updated>2025-09-13T20:53:00Z</updated>
  280.        <summary type="html">
  281.            &lt;p&gt;I&#x27;m currently playing around with blazor just to test what it is able to do.&lt;/p&gt;&#xA;&lt;p&gt;I have a main project which will act as the final website to be shown to the user. For the components I have created a class-library for holding bootstrap-based components like a &lt;code&gt;Table&lt;/code&gt; which will render the table with bootstrap-class applied.&#xA;Because of I will have multiple websites at the end, there will also be shared components between those in another class-library project. This one will also have a component called &lt;code&gt;Table&lt;/code&gt; which will render a bootstrap-table from the other shared project with additional handlings for sorting, paging, filtering and so on.&lt;/p&gt;&#xA;&lt;p&gt;The problem I get is, that there is a naming-conflict which I am not able to resolve.&lt;/p&gt;&#xA;&lt;p&gt;Lets say the the projects are named &lt;code&gt;Company.Website1&lt;/code&gt; for the final website, &lt;code&gt;Company.Shared.Components&lt;/code&gt; for the extended table and &lt;code&gt;Company.Shared.Components.Bootstrap&lt;/code&gt; which will hold the bootstrap-components to be consumed by the other shared project.&lt;/p&gt;&#xA;&lt;p&gt;When I try to create my &lt;code&gt;Table&lt;/code&gt;-component in &lt;code&gt;Company.Shared.Components&lt;/code&gt; I get the following error&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Multiple components use the tag &#x27;Table&#x27;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I tried whats been written &lt;a href=&quot;https://github.com/stsrki/Blazorise/issues/666&quot; rel=&quot;noreferrer&quot;&gt;here&lt;/a&gt; but then I got the error&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Found markup element with unexpected name &#x27;Table.Table&#x27;. If this is intended to be a component, add a @using directive for its namespace&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I also tried to alias the using directive without any chance.&lt;/p&gt;&#xA;&lt;p&gt;The razor-file itself is simply&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;@using Company.Shared.Components.Bootstrap.Table&#xA;&#xA;&amp;lt;Table&amp;gt;&amp;lt;/Table&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I guess I would get the same errors if I would use a third-party library which has some components named the same as some already existing in my project. So there must be a workaround which I&#x27;m currently not able to see.&lt;/p&gt;&#xA;
  282.        </summary>
  283.    </entry>
  284.    <entry>
  285.        <id>https://stackoverflow.com/q/51888584</id>
  286.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  287.        <title type="text">Select dropdown not working in Microsoft Edge browser</title>
  288.            <category scheme="https://stackoverflow.com/tags" term="html" />
  289.            <category scheme="https://stackoverflow.com/tags" term="css" />
  290.            <category scheme="https://stackoverflow.com/tags" term="microsoft-edge" />
  291.        <author>
  292.            <name>Shaik</name>
  293.            <uri>https://stackoverflow.com/users/9065901</uri>
  294.        </author>
  295.        <link rel="alternate" href="https://stackoverflow.com/questions/51888584/select-dropdown-not-working-in-microsoft-edge-browser" />
  296.        <published>2018-08-17T04:54:06Z</published>
  297.        <updated>2025-09-13T20:55:34Z</updated>
  298.        <summary type="html">
  299.            &lt;p&gt;I had written a sample code for select dropdown, in case of Edge browser the drop down is not working, i.e. it is not allow to select the option from the drop down. Below is the sample code&lt;/p&gt;&#xA;&lt;p&gt;&lt;div class=&quot;snippet&quot; data-lang=&quot;js&quot; data-hide=&quot;false&quot; data-console=&quot;true&quot; data-babel=&quot;false&quot;&gt;&#xD;&#xA;&lt;div class=&quot;snippet-code&quot;&gt;&#xD;&#xA;&lt;pre class=&quot;snippet-code-html lang-html prettyprint-override&quot;&gt;&lt;code&gt;&amp;lt;select&amp;gt;&#xA;  &amp;lt;option value=&quot;&quot; selected=&quot;&quot;&amp;gt;Pick a E-commerce&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;https://www.amazon.in/&quot;&amp;gt;Amazon&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;https://www.flipkart.com/&quot;&amp;gt;Flipkart&amp;lt;/option&amp;gt;&#xA;  &amp;lt;option value=&quot;http://www.snapdeal.com/&quot;&amp;gt;Snapdeal&amp;lt;/option&amp;gt;&#xA;&amp;lt;/select&amp;gt;&lt;/code&gt;&lt;/pre&gt;&#xD;&#xA;&lt;/div&gt;&#xD;&#xA;&lt;/div&gt;&#xD;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;in case of other browsers it working fine. Please help me out how can I solve this issue?&lt;/p&gt;&#xA;
  300.        </summary>
  301.    </entry>
  302.    <entry>
  303.        <id>https://stackoverflow.com/q/35448250</id>
  304.        <re:rank scheme="https://stackoverflow.com">30</re:rank>
  305.        <title type="text">How to get whatsapp Contacts from Android Programmatically?</title>
  306.            <category scheme="https://stackoverflow.com/tags" term="android" />
  307.            <category scheme="https://stackoverflow.com/tags" term="contacts" />
  308.            <category scheme="https://stackoverflow.com/tags" term="android-contacts" />
  309.            <category scheme="https://stackoverflow.com/tags" term="whatsapp" />
  310.            <category scheme="https://stackoverflow.com/tags" term="android-contentresolver" />
  311.        <author>
  312.            <name>Mansukh Ahir</name>
  313.            <uri>https://stackoverflow.com/users/4395114</uri>
  314.        </author>
  315.        <link rel="alternate" href="https://stackoverflow.com/questions/35448250/how-to-get-whatsapp-contacts-from-android-programmatically" />
  316.        <published>2016-02-17T04:57:35Z</published>
  317.        <updated>2025-09-13T21:03:35Z</updated>
  318.        <summary type="html">
  319.            &lt;p&gt;I have to try to get WhatsApp contacts from phone and I get a total Count of WhatsApp contact but from &lt;code&gt;RawContacts&lt;/code&gt; how to get WhatsApp numbers and names that I don&#x27;t know. I have tried to find a solution but can&#x27;t get the exact solution for that. Please help me.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;I put my code below.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ContentResolver cr = context.getContentResolver();&#xA;&#xA;Cursor c = cr.query(&#xA;                        ContactsContract.RawContacts.CONTENT_URI,&#xA;                        new String[] { ContactsContract.RawContacts.CONTACT_ID, ContactsContract.RawContacts.DISPLAY_NAME_PRIMARY },&#xA;                        ContactsContract.RawContacts.ACCOUNT_TYPE &#x2B; &amp;quot;= ?&amp;quot;,&#xA;                        new String[] { &amp;quot;com.whatsapp&amp;quot; },&#xA;                        null);&#xA;&#xA;                ArrayList&amp;lt;String&amp;gt; myWhatsappContacts = new ArrayList&amp;lt;&amp;gt;();&#xA;&#xA;                String projection[] = { ContactsContract.CommonDataKinds.Phone.NUMBER };&#xA;&#xA;                if(c != null) {&#xA;                    if (c.getCount() &amp;gt; 0) {&#xA;                        while (c.moveToNext()) {&#xA;&#xA;                            String whatsappContactId = c.getString(c.getColumnIndex(ContactsContract.RawContacts.Data._ID));&#xA;&#xA;                            Cursor dataCursor = cr.query(&#xA;                                    ContactsContract.CommonDataKinds.Phone.CONTENT_URI,&#xA;                                    projection,&#xA;                                    ContactsContract.CommonDataKinds.Phone.CONTACT_ID &#x2B; &amp;quot; = ?&amp;quot;,&#xA;                                    new String[]{whatsappContactId}, null);&#xA;                            // You can also read RawContacts.CONTACT_ID to read the&#xA;                            // ContactsContract.Contacts table or any of the other related ones.&#xA;                            String number = dataCursor.getString(dataCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NORMALIZED_NUMBER));&#xA;                            myWhatsappContacts.add(number);&#xA;&#xA;                        }&#xA;                    }&#xA;                }&#xA;&#xA;                showLogI(TAG, &amp;quot; WhatsApp contact size :  &amp;quot; &#x2B; myWhatsappContacts.size());&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;
  320.        </summary>
  321.    </entry>
  322.    <entry>
  323.        <id>https://stackoverflow.com/q/33058848</id>
  324.        <re:rank scheme="https://stackoverflow.com">13</re:rank>
  325.        <title type="text">Generate a random double between -1 and 1</title>
  326.            <category scheme="https://stackoverflow.com/tags" term="c" />
  327.            <category scheme="https://stackoverflow.com/tags" term="random" />
  328.        <author>
  329.            <name>E Newmy</name>
  330.            <uri>https://stackoverflow.com/users/2009496</uri>
  331.        </author>
  332.        <link rel="alternate" href="https://stackoverflow.com/questions/33058848/generate-a-random-double-between-1-and-1" />
  333.        <published>2015-10-10T20:49:41Z</published>
  334.        <updated>2025-09-13T20:46:49Z</updated>
  335.        <summary type="html">
  336.            &lt;p&gt;I&#x27;ve been working on this for some time and having a lot of trouble. I want to generate a random value from -1 to 1 for a calculation. I cant use the % operator because it is for integers only. I also tried using &lt;code&gt;fmod()&lt;/code&gt; but I&#x27;m having difficulty here too. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;What I was trying to use was...&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;double random_value;&#xA;random_value = fmod((double) rand(),2) &#x2B; (-1);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;it seems like it&#x27;s not correct though. I also tried to seed srand with the time, but I think im doing something wrong there because it keeps throwing this error: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;&quot;error: expected declaration specifiers or &#x27;...&#x27; before time&quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;code: &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;srand((unsigned) time(&amp;amp;t));&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;any help with these problems would be appreciate.&lt;/p&gt;&#xA;
  337.        </summary>
  338.    </entry>
  339.    <entry>
  340.        <id>https://stackoverflow.com/q/31980451</id>
  341.        <re:rank scheme="https://stackoverflow.com">7</re:rank>
  342.        <title type="text">How can I know my remaining SoundCloud API limit?</title>
  343.            <category scheme="https://stackoverflow.com/tags" term="php" />
  344.            <category scheme="https://stackoverflow.com/tags" term="soundcloud" />
  345.        <author>
  346.            <name>Ashish Chaturvedi</name>
  347.            <uri>https://stackoverflow.com/users/2223410</uri>
  348.        </author>
  349.        <link rel="alternate" href="https://stackoverflow.com/questions/31980451/how-can-i-know-my-remaining-soundcloud-api-limit" />
  350.        <published>2015-08-13T05:55:28Z</published>
  351.        <updated>2025-09-13T21:13:59Z</updated>
  352.        <summary type="html">
  353.            &lt;p&gt;I am working with the SoundCloud API in my application, and for this I create some APIs. It was working fine yesterday, but now its showing&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;error: string(47) &amp;quot;The requested URL responded with HTTP code 429.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I checked the SoundCloud documentation and find HTTP Code 429 related to &lt;a href=&quot;https://developers.soundcloud.com/docs#errors&quot; rel=&quot;nofollow noreferrer&quot;&gt;Too many request&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Here my concern is: How I can know count of my all requests and remaning request.&lt;/p&gt;&#xA;
  354.        </summary>
  355.    </entry>
  356.    <entry>
  357.        <id>https://stackoverflow.com/q/30503521</id>
  358.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  359.        <title type="text">Vagrant: Error: Could not resolve host: (nil); Host not found</title>
  360.            <category scheme="https://stackoverflow.com/tags" term="windows" />
  361.            <category scheme="https://stackoverflow.com/tags" term="vagrant" />
  362.            <category scheme="https://stackoverflow.com/tags" term="virtualbox" />
  363.        <author>
  364.            <name>user3213938</name>
  365.            <uri>https://stackoverflow.com/users/3213938</uri>
  366.        </author>
  367.        <link rel="alternate" href="https://stackoverflow.com/questions/30503521/vagrant-error-could-not-resolve-host-nil-host-not-found" />
  368.        <published>2015-05-28T10:11:23Z</published>
  369.        <updated>2025-09-13T21:03:35Z</updated>
  370.        <summary type="html">
  371.            &lt;p&gt;I am getting &quot;Could not resolve host&quot; error while trying to create a vm using vagrant and VirtualBox. I followed the instruction from &lt;a href=&quot;http://docs.vagrantup.com/v2/getting-started/&quot; rel=&quot;nofollow&quot;&gt;http://docs.vagrantup.com/v2/getting-started/&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Executed the below 2 commands &lt;/p&gt;&#xA;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;vagrant init hashicorp/precise32&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;vagrant up&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;p&gt;Below is the error message. &lt;/p&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;  &lt;p&gt;C:\Users\xyz123&gt;vagrant up Bringing machine &#x27;default&#x27; up with&#xA;  &#x27;virtualbox&#x27; provider...&#xA;  ==&gt; default: Box &#x27;ubuntu/trusty32&#x27; could not be found. Attempting to find and in stall...&#xA;      default: Box Provider: virtualbox&#xA;      default: Box Version: &gt;= 0 The box &#x27;ubuntu/trusty32&#x27; could not be found or could not be accessed in the remote catalog. If this is a&#xA;  private box on HashiCorp&#x27;s Atlas, please verify you&#x27;re logged in via&#xA;  &lt;code&gt;vagrant login&lt;/code&gt;. Also, please double-check the name. The expanded URL&#xA;  and error message are shown below:&lt;/p&gt;&#xA;  &#xA;  &lt;p&gt;URL: [&quot;&lt;a href=&quot;https://atlas.hashicorp.com/ubuntu/trusty32&quot; rel=&quot;nofollow&quot;&gt;https://atlas.hashicorp.com/ubuntu/trusty32&lt;/a&gt;&quot;] Error: Could not&#xA;  resolve host: (nil); Host not found&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&#xA;&lt;p&gt;All the help appreciated&lt;/p&gt;&#xA;
  372.        </summary>
  373.    </entry>
  374.    <entry>
  375.        <id>https://stackoverflow.com/q/20979993</id>
  376.        <re:rank scheme="https://stackoverflow.com">64</re:rank>
  377.        <title type="text">How can I pretty print in IPython Notebook via SymPy?</title>
  378.            <category scheme="https://stackoverflow.com/tags" term="python" />
  379.            <category scheme="https://stackoverflow.com/tags" term="jupyter-notebook" />
  380.            <category scheme="https://stackoverflow.com/tags" term="jupyter" />
  381.            <category scheme="https://stackoverflow.com/tags" term="sympy" />
  382.            <category scheme="https://stackoverflow.com/tags" term="pretty-print" />
  383.        <author>
  384.            <name>colinfang</name>
  385.            <uri>https://stackoverflow.com/users/691867</uri>
  386.        </author>
  387.        <link rel="alternate" href="https://stackoverflow.com/questions/20979993/how-can-i-pretty-print-in-ipython-notebook-via-sympy" />
  388.        <published>2014-01-07T19:20:19Z</published>
  389.        <updated>2025-09-13T20:46:05Z</updated>
  390.        <summary type="html">
  391.            &lt;p&gt;I tried &lt;code&gt;pprint&lt;/code&gt; and &lt;code&gt;print&lt;/code&gt;. The former only prints the Unicode version, and the latter doesn&#x27;t do pretty prints.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;from sympy import symbols, Function&#xA;import sympy.functions as sym&#xA;from sympy import init_printing&#xA;&#xA;init_printing(use_latex=True)&#xA;&#xA;from sympy import pprint&#xA;from sympy import Symbol&#xA;&#xA;x = Symbol(&#x27;x&#x27;)&#xA;&#xA;# If a cell contains only the following, it will render perfectly.&#xA;(pi &#x2B; x)**2&#xA;&#xA;# However, I would like to control what to print in a function,&#xA;# so that multiple expressions can be printed from a single notebook cell.&#xA;pprint((pi &#x2B; x)**2)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;
  392.        </summary>
  393.    </entry>
  394.    <entry>
  395.        <id>https://stackoverflow.com/q/20196159</id>
  396.        <re:rank scheme="https://stackoverflow.com">453</re:rank>
  397.        <title type="text">How to append multiple values to a list in Python</title>
  398.            <category scheme="https://stackoverflow.com/tags" term="python" />
  399.            <category scheme="https://stackoverflow.com/tags" term="list" />
  400.            <category scheme="https://stackoverflow.com/tags" term="concatenation" />
  401.        <author>
  402.            <name>ChangeMyName</name>
  403.            <uri>https://stackoverflow.com/users/2633803</uri>
  404.        </author>
  405.        <link rel="alternate" href="https://stackoverflow.com/questions/20196159/how-to-append-multiple-values-to-a-list-in-python" />
  406.        <published>2013-11-25T14:56:59Z</published>
  407.        <updated>2025-09-13T21:13:37Z</updated>
  408.        <summary type="html">
  409.            &lt;p&gt;I figured out how to append multiple values to a list in Python; I  can manually input the values, or put the append operation in a &lt;code&gt;for&lt;/code&gt; loop, or the &lt;code&gt;append&lt;/code&gt; and &lt;code&gt;extend&lt;/code&gt; functions.&lt;/p&gt;&#xA;&lt;p&gt;Any neater ways? Maybe a package or function?&lt;/p&gt;&#xA;
  410.        </summary>
  411.    </entry>
  412.    <entry>
  413.        <id>https://stackoverflow.com/q/18662261</id>
  414.        <re:rank scheme="https://stackoverflow.com">84</re:rank>
  415.        <title type="text">Fastest implementation of sine, cosine and square root in C&#x2B;&#x2B; (doesn&#x27;t need to be much accurate)</title>
  416.            <category scheme="https://stackoverflow.com/tags" term="c&#x2B;&#x2B;" />
  417.            <category scheme="https://stackoverflow.com/tags" term="math" />
  418.            <category scheme="https://stackoverflow.com/tags" term="optimization" />
  419.            <category scheme="https://stackoverflow.com/tags" term="trigonometry" />
  420.        <author>
  421.            <name>PiotrK</name>
  422.            <uri>https://stackoverflow.com/users/151150</uri>
  423.        </author>
  424.        <link rel="alternate" href="https://stackoverflow.com/questions/18662261/fastest-implementation-of-sine-cosine-and-square-root-in-c-doesnt-need-to-b" />
  425.        <published>2013-09-06T16:20:50Z</published>
  426.        <updated>2025-09-13T20:55:55Z</updated>
  427.        <summary type="html">
  428.            &lt;p&gt;I am googling the question for past hour, but there are only points to Taylor Series or some sample code that is either too slow or does not compile at all. Well, most answer I&#x27;ve found over Google is &quot;Google it, it&#x27;s already asked&quot;, but sadly &lt;em&gt;it&#x27;s not&lt;/em&gt;...&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am profiling my game on low-end Pentium 4 and found out that ~85% of execution time is wasted on calculating sinus, cosinus and square root (from standard C&#x2B;&#x2B; library in Visual Studio), and this seems to be heavily CPU dependent (on my I7 the same functions got only 5% of execution time, and the game is &lt;em&gt;waaaaaaaaaay&lt;/em&gt; faster). I cannot optimize this three functions out, nor calculate both sine and cosine in one pass (there interdependent), but I don&#x27;t need too accurate results for my simulation, so I can live with faster approximation.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So, the question: What are the fastest way to calculate sine, cosine and square root for float in C&#x2B;&#x2B;?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&#xA;Lookup table are more painful as resulting Cache Miss is way more costly on modern CPU than Taylor Series. The CPUs are just so fast these days, and cache is not.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I made a mistake, I though that I need to calculate several factorials for Taylor Series, and I see now they can be implemented as constants.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So the updated question: is there any speedy optimization for square root as well?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT2&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I am using square root to calculate distance, not normalization - can&#x27;t use fast inverse square root algorithm (as pointed in comment: &lt;a href=&quot;http://en.wikipedia.org/wiki/Fast_inverse_square_root&quot; rel=&quot;noreferrer&quot;&gt;http://en.wikipedia.org/wiki/Fast_inverse_square_root&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;EDIT3&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;p&gt;I also cannot operate on squared distances, I need exact distance for calculations&lt;/p&gt;&#xA;
  429.        </summary>
  430.    </entry>
  431.    <entry>
  432.        <id>https://stackoverflow.com/q/17925590</id>
  433.        <re:rank scheme="https://stackoverflow.com">5</re:rank>
  434.        <title type="text">Force cleaning of session cookies (firefox, chrome)</title>
  435.            <category scheme="https://stackoverflow.com/tags" term="session" />
  436.            <category scheme="https://stackoverflow.com/tags" term="firefox" />
  437.            <category scheme="https://stackoverflow.com/tags" term="cookies" />
  438.        <author>
  439.            <name>Ondrej Svejdar</name>
  440.            <uri>https://stackoverflow.com/users/2440262</uri>
  441.        </author>
  442.        <link rel="alternate" href="https://stackoverflow.com/questions/17925590/force-cleaning-of-session-cookies-firefox-chrome" />
  443.        <published>2013-07-29T13:38:33Z</published>
  444.        <updated>2025-09-13T21:03:35Z</updated>
  445.        <summary type="html">
  446.            &lt;p&gt;Some browsers (Firefox, Chrome) by design doesn&#x27;t clean session cookies when you close them, if you set some kind of remember me switch (for example in FF go to Options-&gt;General-&gt;When Firefox starts-&gt;Show my windows and tabs from last time). It is a problem for our client (government agency...) while I do have absolute control over http server, I have no control over browser settings. The scenario is - they&#x27;re used to share computer accounts, however they shouldn&#x27;t be able to share web accounts - simply closing the browser should kill the session never mind the browser settings. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Is there an elegant way how to enforce that ?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Currently only solution that comes to my mind is some kind of dead man&#x27;s switch (change cookies to live only for one minute (encrypted server side time stamp), and on every page have javascript &quot;pinger&quot; that will for 20 minutes ping every half minute some &quot;prolong session&quot; handler on the server (login session should be 20 minutes, sliding expiration).&lt;/p&gt;&#xA;
  447.        </summary>
  448.    </entry>
  449.    <entry>
  450.        <id>https://stackoverflow.com/q/16621498</id>
  451.        <re:rank scheme="https://stackoverflow.com">103</re:rank>
  452.        <title type="text">How to append multiple items in one line in Python</title>
  453.            <category scheme="https://stackoverflow.com/tags" term="python" />
  454.        <author>
  455.            <name>whatever</name>
  456.            <uri>https://stackoverflow.com/users/2383199</uri>
  457.        </author>
  458.        <link rel="alternate" href="https://stackoverflow.com/questions/16621498/how-to-append-multiple-items-in-one-line-in-python" />
  459.        <published>2013-05-18T06:41:09Z</published>
  460.        <updated>2025-09-13T21:07:17Z</updated>
  461.        <summary type="html">
  462.            &lt;pre&gt;&lt;code&gt;count = 0&#xA;i = 0&#xA;while count &amp;lt; len(mylist):&#xA;    newlist.append(mylist[i &#x2B; 1])&#xA;    newlist.append(mylist[i &#x2B; 2])&#xA;    # ...&#xA;    count = count &#x2B; 1&#xA;    i = i &#x2B; 12&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I wanted to make the &lt;code&gt;newlist.append()&lt;/code&gt; statements into a few statements.&lt;/p&gt;&#xA;
  463.        </summary>
  464.    </entry>
  465.    <entry>
  466.        <id>https://stackoverflow.com/q/14431075</id>
  467.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  468.        <title type="text">Java WS: How do I send direct XML as part of a SOAP request</title>
  469.            <category scheme="https://stackoverflow.com/tags" term="java" />
  470.            <category scheme="https://stackoverflow.com/tags" term="jakarta-ee" />
  471.            <category scheme="https://stackoverflow.com/tags" term="xml-serialization" />
  472.            <category scheme="https://stackoverflow.com/tags" term="jax-ws" />
  473.        <author>
  474.            <name>paulsm4</name>
  475.            <uri>https://stackoverflow.com/users/421195</uri>
  476.        </author>
  477.        <link rel="alternate" href="https://stackoverflow.com/questions/14431075/java-ws-how-do-i-send-direct-xml-as-part-of-a-soap-request" />
  478.        <published>2013-01-21T00:47:46Z</published>
  479.        <updated>2025-09-13T21:14:16Z</updated>
  480.        <summary type="html">
  481.            &lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;I&#x27;ve got the WSDL for a SOAP web service&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I created a &amp;quot;Top down, Java Bean&amp;quot; web service client in RAD Developer (an Eclipse based compiler used with IBM Websphere) and auto-generated a bunch of JAX-WS .java modules&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Here is the auto-generated JAX-WS code for one of the operations:&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;@WebMethod(operationName = &amp;quot;CommitTransaction&amp;quot;, action = &amp;quot;http://myuri.com/wsdl/gitsearchservice/CommitTransaction&amp;quot;)&#xA;&#xA;@RequestWrapper(localName = &amp;quot;CommitTransaction&amp;quot;, targetNamespace = &amp;quot;http://myuri.com/wsdl/gitsearchservice&amp;quot;, className = &amp;quot;com.myuri.shwsclients.CommitTransaction&amp;quot;)&#xA;@ResponseWrapper(localName = &amp;quot;CommitTransactionResponse&amp;quot;, targetNamespace = &amp;quot;http://myuri.com/wsdl/gitsearchservice&amp;quot;, className = &amp;quot;com.myuri.shwsclients.CommitTransactionResponse&amp;quot;)&#xA;public void commitTransaction(&#xA;    @WebParam(name = &amp;quot;requestOptions&amp;quot;, targetNamespace = &amp;quot;http://myuri.com/wsdl/gitsearchservice&amp;quot;)&#xA;    RequestOptions requestOptions,&#xA;    @WebParam(name = &amp;quot;transactionData&amp;quot;, targetNamespace = &amp;quot;http://myuri.com/wsdl/gitsearchservice&amp;quot;)&#xA;    TransactionData transactionData);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&amp;quot;transactionData&amp;quot; comes from a large, complex XML data record.  The WSDL format exactly matches the XML I&#x27;ll be writing on the Java side, and exactly matches what the Web service will be reading on the server side.&lt;/p&gt;&#xA;&lt;p&gt;How do I bypass Java serialization for  the &amp;quot;transactionData&amp;quot; parameter, to send raw XML in my SOAP message?  Instead of having to read my XML, parse it, and pack the Java &amp;quot;TransactionType&amp;quot; structure field-by-field?&lt;/p&gt;&#xA;
  482.        </summary>
  483.    </entry>
  484.    <entry>
  485.        <id>https://stackoverflow.com/q/12333891</id>
  486.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  487.        <title type="text">Eclipse indigo won&#x27;t start in Windows 7</title>
  488.            <category scheme="https://stackoverflow.com/tags" term="eclipse" />
  489.            <category scheme="https://stackoverflow.com/tags" term="windows-7" />
  490.            <category scheme="https://stackoverflow.com/tags" term="crash" />
  491.        <author>
  492.            <name>Majid Laissi</name>
  493.            <uri>https://stackoverflow.com/users/1438628</uri>
  494.        </author>
  495.        <link rel="alternate" href="https://stackoverflow.com/questions/12333891/eclipse-indigo-wont-start-in-windows-7" />
  496.        <published>2012-09-08T19:42:38Z</published>
  497.        <updated>2025-09-13T21:12:44Z</updated>
  498.        <summary type="html">
  499.            &lt;p&gt;Eclipse indigo won&#x27;t start in Windows 7 (first launch), the splash screen appears, stays there and nothing happens afterwards.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;So far I tried the following:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;reinstall Java 6&lt;/li&gt;&#xA;&lt;li&gt;Add vm parameter to eclipse.ini (to the right javaw.exe path). In this case no splash screen and eclipse.exe and javaw.exe are available in Taskmanager.&lt;/li&gt;&#xA;&lt;li&gt;launch eclipsec.exe instead of eclipse.exe&lt;/li&gt;&#xA;&lt;li&gt;launch eclipse.exe -clean&lt;/li&gt;&#xA;&lt;li&gt;increase -Xmx384m parameter&lt;/li&gt;&#xA;&lt;li&gt;launch eclipse.exe in Admin Mode&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;No luck&lt;/p&gt;&#xA;&#xA;&lt;p&gt;My config:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Eclipse Indigo Java Edition (32bits)&lt;/li&gt;&#xA;&lt;li&gt;Windows 7 (32bits)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;Any help would be appreciated&lt;/p&gt;&#xA;
  500.        </summary>
  501.    </entry>
  502.    <entry>
  503.        <id>https://stackoverflow.com/q/11023493</id>
  504.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  505.        <title type="text">Switching to protected mode from a loaded segment</title>
  506.            <category scheme="https://stackoverflow.com/tags" term="assembly" />
  507.            <category scheme="https://stackoverflow.com/tags" term="x86" />
  508.            <category scheme="https://stackoverflow.com/tags" term="nasm" />
  509.            <category scheme="https://stackoverflow.com/tags" term="bootloader" />
  510.        <author>
  511.            <name>user617768</name>
  512.            <uri>https://stackoverflow.com/users/617768</uri>
  513.        </author>
  514.        <link rel="alternate" href="https://stackoverflow.com/questions/11023493/switching-to-protected-mode-from-a-loaded-segment" />
  515.        <published>2012-06-13T21:21:32Z</published>
  516.        <updated>2025-09-13T21:04:52Z</updated>
  517.        <summary type="html">
  518.            &lt;p&gt;I am trying to write a simple bootloader.&lt;/p&gt;&#xA;&lt;p&gt;I would like to load boot0 in real mode, jump to boot0 and load the full kernel from there. Then switch to protected mode and execute the kernel code.&lt;/p&gt;&#xA;&lt;p&gt;So far I have:&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-none prettyprint-override&quot;&gt;&lt;code&gt;; First segment loaded by the BIOS:&#xA;bits 16&#xA;org 0&#xA;jmp 0x07c0:start&#xA;start:&#xA;mov ax, cs&#xA;mov ds, ax&#xA;mov es, ax&#xA;&#xA;mov al, 0x03&#xA;mov ah, 0&#xA;int 0x10&#xA;&#xA;mov si, welcome_msg&#xA;call print&#xA;&#xA;mov ax, 0x500   ; Load boot0 to 0x500&#xA;mov es, ax      ; The value should be in es&#xA;mov cl, 2       ; The sector number to be loaded&#xA;mov al, 4       ; Number of sectors to load&#xA;call loadsector&#xA;&#xA;jmp 0x500:0000&#xA;&#xA;loadsector:&#xA;mov bx, 0&#xA;mov dl, 0 ; Load from floppy=0&#xA;mov dh, 0&#xA;mov ch, 0&#xA;mov ah, 2&#xA;int 0x13&#xA;jc error&#xA;ret&#xA;&#xA;times 510 - ($-$$) db 0&#xA;dw 0xaa55&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Next 4 segments as boot0:&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-none prettyprint-override&quot;&gt;&lt;code&gt;bits 16&#xA;org 0&#xA;mov ax, cs&#xA;mov ds, ax&#xA;mov es, ax&#xA;mov ax, 0x7000&#xA;mov ss, ax&#xA;mov sp, ss&#xA;&#xA;; Printing from the tutorial&#xA;mov     ax,0xb800           ; Load gs to point to video memory&#xA;mov     gs,ax               ; We intend to display a brown A in real mode&#xA;mov     word [gs:80],0x0248&#xA;mov     word [gs:82],0x0145&#xA;mov     word [gs:84],0x034C&#xA;mov     word [gs:86],0x044C&#xA;mov     word [gs:88],0x054F&#xA;; Load the kernel system&#xA;mov ax, 0x2000&#xA;mov es, ax&#xA;mov cl, 6                   ; After boot0 it will be the full kernel&#xA;mov al, 4                   ; For now, only four sectors&#xA;call loadsector             ; Load the kernel&#xA;jmp protected_mode_run&#xA;&#xA;loadsector:&#xA;mov bx, 0&#xA;mov dl, floppy&#xA;mov dh, 0&#xA;mov ch, 0&#xA;mov ah, 2&#xA;int 0x13&#xA;jc error&#xA;ret&#xA;&#xA;protected_mode_run:&#xA;cli&#xA;lgdt    [gdtr]&#xA;mov     eax,cr0 ; The LSb of cr0 is the protected mode bit&#xA;or      al,0x01 ; Set protected mode bit&#xA;mov     cr0,eax ; Mov modified word to the control register&#xA;jmp     codesel:go_pm&#xA;&#xA;bits 32&#xA;go_pm:&#xA;mov     ax,datasel&#xA;mov     ds,ax              ; Initialise ds &amp;amp; es to data segment&#xA;mov     es,ax&#xA;mov     ax,videosel        ; Initialise gs to video memory&#xA;mov     gs,ax&#xA;mov     word [gs:0],0x741  ; Display white A in protected mode&#xA;spin:   jmp spin           ; Loop&#xA;;TODO: instead jump to the loaded code here&#xA;&#xA;bits 16&#xA;gdtr:&#xA;dw      gdt_end-gdt-1 ; Length of the gdt&#xA;dd      0x500&#x2B;gdt     ; Physical address of gdt&#xA;&#xA;gdt:&#xA;nullsel equ $-gdt ; This is 0, the first descriptor in gdt&#xA;gdt0:             ; Null descriptor, as per convention gdt0 is 0&#xA;dq      0         ; Each gdt entry is 8 bytes (64 bits)&#xA;&#xA;codesel equ $-gdt ; This is 8, the second descriptor in gdt&#xA;code_gdt:         ; Code descriptor 4 GB flat segment at 0000:0000h&#xA;dw      0x0FFFF   ; Bits 0-15 of segment limit&#xA;dw      0x0000    ; Bits 0-15 of segment base&#xA;db      0x00      ; Bits 16-23 of segment base&#xA;db      0x09A     ; P,DPL(2),1,TYPE(3),A  -&amp;gt; present, privilege level 0,&#xA;                  ;  1, executable, non-conforming, readable&#xA;db      0x0CF     ; G,D,0,AVL,LIMIT(4)    -&amp;gt; page granularity, default 32-bit&#xA;                  ;  lower nibble bits 16-19 of 4 GB segment limit&#xA;db      0x00      ; Bits 24-31 of segment base&#xA;&#xA;datasel equ $-gdt ; This is 16, the third descriptor in gdt&#xA;data_gdt:         ; Data descriptor 4 GB flat segment at 0000:0000h&#xA;dw      0x0FFFF   ; Limit 4 GB&#xA;dw      0x0000    ; Base 0000:0000h&#xA;db      0x00      ; Descriptor format same as above&#xA;db      0x092&#xA;db      0x0CF&#xA;db      0x00&#xA;&#xA;videosel equ $-gdt ; This is 24, the fourth descriptor in gdt&#xA;dw      3999       ; Limit 80*25*2-1&#xA;dw      0x8000     ; Base 0x000B8000&#xA;db      0x0B&#xA;db      0x92       ; present, ring 0, data, expand-up, writable&#xA;db      0x00       ; Byte granularity 16 bit&#xA;db      0x00&#xA;gdt_end:&#xA;&#xA;times 2048 - ($-$$) db 0&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Entering protected mode works fine when I try to do it from the first segment loaded from the BIOS.&lt;br /&gt;&#xA;Every attempt to do this from a loaded segment crashes at line &lt;code&gt;jmp codesel:go_pm&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The structure of a file is:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;One segment - init&lt;/li&gt;&#xA;&lt;li&gt;Four segments - boot0 (loaded to the 0x500 segment)&lt;/li&gt;&#xA;&lt;li&gt;Four segments - kernel (loaded to the 0x2000 segment)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I only changed &lt;code&gt;dd 0x500&#x2B;gdt ; Physical address of gdt&lt;/code&gt; in GDTR, but it looks like it is not enough.&lt;/p&gt;&#xA;&lt;p&gt;What else should I change, or is there a reference where I could read in more details about GDT and switching to protected mode?&lt;/p&gt;&#xA;
  519.        </summary>
  520.    </entry>
  521.    <entry>
  522.        <id>https://stackoverflow.com/q/7265870</id>
  523.        <re:rank scheme="https://stackoverflow.com">5</re:rank>
  524.        <title type="text">Xcode to develop for the Arduino</title>
  525.            <category scheme="https://stackoverflow.com/tags" term="c&#x2B;&#x2B;" />
  526.            <category scheme="https://stackoverflow.com/tags" term="c" />
  527.            <category scheme="https://stackoverflow.com/tags" term="xcode" />
  528.            <category scheme="https://stackoverflow.com/tags" term="arduino" />
  529.            <category scheme="https://stackoverflow.com/tags" term="undefined-symbol" />
  530.        <author>
  531.            <name>user922764</name>
  532.            <uri>https://stackoverflow.com/users/922764</uri>
  533.        </author>
  534.        <link rel="alternate" href="https://stackoverflow.com/questions/7265870/xcode-to-develop-for-the-arduino" />
  535.        <published>2011-09-01T03:32:05Z</published>
  536.        <updated>2025-09-13T21:11:51Z</updated>
  537.        <summary type="html">
  538.            &lt;p&gt;Please read this well to make sure you understand what I want to do.&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I DO want Xcode to be able to compile, but only so I can debug in Xcode.&lt;/li&gt;&#xA;&lt;li&gt;I do NOT want to use Xcode to compile or upload the code to the Arduino board. I will use the Arduino IDE in &quot;Use external editor&quot; mode instead.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;What I have done (also as a future reference for people who might want to do the same thing):&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In the project settings (click on the project file in the left pane)&lt;/li&gt;&#xA;&lt;li&gt;I have changed the compiler to GCC to avoid many errors.&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;I have added the following paths to the Header Search Paths and Library Search Paths:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/lib/gcc/avr/4.3.2/include&lt;/li&gt;&#xA;&lt;li&gt;/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/include&lt;/li&gt;&#xA;&lt;li&gt;/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;(If you have installed Arduino.app somewhere other than the Applications folder, you will need to adjust the paths accordingly.)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;In main.cpp, I have included &lt;code&gt;&amp;lt;WProgram.h&amp;gt;&lt;/code&gt;, but it wasn&#x27;t enough. I was getting undefined identifier errors (for SPCR, SPE, MSTR, SPR1, SPR0) due to not being able to pass the &lt;code&gt;-mmcu=somechipname&lt;/code&gt; as a flag to the compiler, which caused no device to be defined and &lt;code&gt;avr/io.h&lt;/code&gt; to be unable to include the file that defined those symbols. I got around it by manually including &lt;code&gt;&amp;lt;avr/iom328p.h&amp;gt;&lt;/code&gt; which is the appropriate header file for my chip.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;That&#x27;s how far I got.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Now I get these errors:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;Undefined symbols for architecture i386:&#xA;  &quot;_init&quot;, referenced from:&#xA;      _main in main.o&#xA;  &quot;_setup&quot;, referenced from:&#xA;      _main in main.o&#xA;  &quot;_loop&quot;, referenced from:&#xA;      _main in main.o&#xA;  &quot;_pinMode&quot;, referenced from:&#xA;      SBSetup()    in main.o&#xA;  &quot;_digitalWrite&quot;, referenced from:&#xA;      SBSetup()    in main.o&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The whole main.cpp including the evil offending code is this:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;#include &amp;lt;WProgram.h&amp;gt;&#xA;#include &amp;lt;avr/iom328p.h&amp;gt;    // Getting around warning &quot;device type not defined&quot;&#xA;#define NumLEDs 25&#xA;#define clockpin 13 // CI&#xA;#define enablepin 10 // EI&#xA;#define latchpin 9 // LI&#xA;#define datapin 11 // DI&#xA;&#xA;int LEDChannels[NumLEDs][3] = {0};&#xA;int SB_CommandMode;&#xA;int SB_RedCommand;&#xA;int SB_GreenCommand;&#xA;int SB_BlueCommand;&#xA;&#xA;void SBSetup(void) {&#xA;    pinMode(datapin, OUTPUT);&#xA;    pinMode(latchpin, OUTPUT);&#xA;    pinMode(enablepin, OUTPUT);&#xA;    pinMode(clockpin, OUTPUT);&#xA;    SPCR = (1&amp;lt;&amp;lt;SPE)|(1&amp;lt;&amp;lt;MSTR)|(0&amp;lt;&amp;lt;SPR1)|(0&amp;lt;&amp;lt;SPR0);&#xA;    digitalWrite(latchpin, LOW);&#xA;    digitalWrite(enablepin, LOW);&#xA;}&#xA;&#xA;int main(void)&#xA;{&#xA;    init();&#xA;    setup();&#xA;    for (;;)&#xA;        loop();&#xA;    return 0;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;What do I about this?&lt;/p&gt;&#xA;
  539.        </summary>
  540.    </entry>
  541.    <entry>
  542.        <id>https://stackoverflow.com/q/1854604</id>
  543.        <re:rank scheme="https://stackoverflow.com">38</re:rank>
  544.        <title type="text">Which sorting algorithm is used by .NET&#x27;s Array.Sort() method?</title>
  545.            <category scheme="https://stackoverflow.com/tags" term="c#" />
  546.            <category scheme="https://stackoverflow.com/tags" term=".net" />
  547.            <category scheme="https://stackoverflow.com/tags" term="algorithm" />
  548.            <category scheme="https://stackoverflow.com/tags" term="sorting" />
  549.        <author>
  550.            <name>Manoj Talreja</name>
  551.            <uri>https://stackoverflow.com/users/194687</uri>
  552.        </author>
  553.        <link rel="alternate" href="https://stackoverflow.com/questions/1854604/which-sorting-algorithm-is-used-by-nets-array-sort-method" />
  554.        <published>2009-12-06T07:00:20Z</published>
  555.        <updated>2025-09-13T21:09:14Z</updated>
  556.        <summary type="html">
  557.            &lt;p&gt;Which sorting algorithm is used by .NET&#x27;s &lt;code&gt;Array.Sort()&lt;/code&gt; method?&lt;/p&gt;&#xA;
  558.        </summary>
  559.    </entry>
  560. </feed>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid Atom 1.0" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//stackoverflow.com/feeds

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda