79282574

Date: 2024-12-15 15:10:12
Score: 3
Natty:
Report link

Sorry, but I think recovering your device while the battery is low is impossible. I'm not entirely sure

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: A Google User

79282565

Date: 2024-12-15 15:05:11
Score: 1.5
Natty:
Report link

Remember that nib/xib files store the file's owner class as a string, so nib instantiation requires a lookup by string. This makes it highly unlikely that Apple would use a grossly inefficient lookup. (Also highly unlikely they would implement efficient lookup, keep it private, implement a separate inefficient lookup and expose that.)

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user2793784

79282558

Date: 2024-12-15 14:59:10
Score: 3
Natty:
Report link

The answer from @mazaneicha 's comment:

Override supportsExternalMetadata() to return true.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • User mentioned (1): @mazaneicha
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Victor Grigoriu

79282549

Date: 2024-12-15 14:53:09
Score: 2
Natty:
Report link

you should look what error after operation not permitted, becouse on mycase I need install python >= 3.3 and need use nodejs version <= 21

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: muhyidin

79282537

Date: 2024-12-15 14:44:07
Score: 2
Natty:
Report link

I have been searching for the same question. I didn't find a solution to make it work with Live Server, but there is a first-party this ddev add-on that should do the same (uses browsersync under the hood): https://github.com/ddev/ddev-browsersync

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ivangretsky

79282533

Date: 2024-12-15 14:40:06
Score: 0.5
Natty:
Report link

I made a simple library to hide the boilerplate part to get result of OUT parameters, it's type-safe and supports ref cursors (library available on Maven Central). It works beyond spring-jdbc. For the given example the call can look like

import static org.morejdbc.OracleSqlTypes.cursor;
import static org.morejdbc.NamedJdbcCall.call;

...
    public record Entity(String id, String value) {
    }
...

Out<List<Entity>> outUserCursor = Out.of(cursor((rs, rowNum) -> {
    // implementation of spring RowMapper: your custom ResultSet mapping here
    return new Entity(rs.getString("id"), rs.getString("value"));
}));

jdbcTemplate.execute(call("PRC_GET_USERS_BY_SECTION")
        .in("section_option_in", "value_of_section_option_in")
        .in("section_in", "value_of_section_in")
        .out("user_cursor", outUserCursor));

// outUserCursor.get() now contains List<Entity>
Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: seregamorph

79282531

Date: 2024-12-15 14:39:06
Score: 1
Natty:
Report link

First of all, thanks to @Iroha for the huge help. The thing was that there were compatibility and support problems when using non-tidy functions with other tidy-functions, which led me to be quite confused (ik, rookie mistake :p).

Hence, to deal with the problem. you have to call the function with do.call() and recall the columns with pick(). The code fixed would be the following:

# Example df

ind <- c("A","B","C")
y <- c(2008,2012,2016,2020)
indiv <- rep(ind, times=4)
year <- rep(y, times=3)

a <- runif(n=12, min=0, max=100)
b <- runif(n=12, min=0, max=100)
c <- runif(n=12, min=0, max=100)
d <- runif(n=12, min=0, max=100)
e <- runif(n=12, min=0, max=100)
f <- runif(n=12, min=0, max=100)
g <- runif(n=12, min=0, max=100)

df_data <- data.frame(indiv,year,a,b,c,d,e,f,g)

# Code for max min and new range

newdf <- df_data %>% 
  mutate(Oldmax = do.call(pmax,c(pick(a:g),na.rm=TRUE)),
         Oldmin = do.call(pmin,c(pick(a:g),na.rm=TRUE)),
         Newmax = do.call(pmax,c(pick(e:g),na.rm=TRUE)),
         Newmin = do.call(pmin,c(pick(e:g),na.rm=TRUE)),
         Oldrange = Oldmax-Oldmin,
         Newrange = Newmax-Newmin) %>% 
  mutate(across(e:g,
                (((~ .x - Oldmin) * Newrange) / Oldrange) + Newmin,
                .names = "{.col}_bal")
         )

No need to apply it in the across one though, it is supported. Check info regarding do.call() function if you do not know how it works, it can be super useful even if you do not recall it all the time (like what happened in my case).

Hope anyone dealing with this kind of problems can find it useful :)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Iroha
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Th3W31rd0

79282530

Date: 2024-12-15 14:39:06
Score: 1.5
Natty:
Report link

For me, the problem was caused by failing to return a value from an addEventListener callback function. Return true if the event has been handled, false if not. (I'm not sure if event.stopPropagation should be called if the event is not handled.)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: David Spector

79282528

Date: 2024-12-15 14:37:05
Score: 3
Natty:
Report link

Once your files are in the repo, you cannot exclude by adding them into the .gitignore. You may want to check this thread:

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: alienic

79282520

Date: 2024-12-15 14:34:05
Score: 2
Natty:
Report link

is there any way to solve this without using 3d array? "import java.util.Arrays;

public class Number_of_paths_in_a_matrix_with_k_coins {

public static long MOD = 1000000007;

public long numberOfPath(int n, int k, int [][]arr) {
    // code here
    long dp[][] = new long[n][n];

    for (long rows[] : dp){
        Arrays.fill(rows,-1);
    }

    return MemoUtil(k,n-1,n-1,arr,dp);
}

public static long MemoUtil(int k, int i, int j,int arr[][], long dp[][]){

    if(i == 0 && j == 0 )  return k == arr[0][0] ? 1 : 0L;

    if (i < 0 || j < 0 || k < 0) return 0;

    if (dp[i][j] != -1) return dp[i][j];

    long left = i > 0 && k > 0 ? MemoUtil(k - arr[i][j], i -1, j, arr,dp) %MOD : 0L;

    long right = j > 0 && k > 0 ? MemoUtil(k- arr[i][j], i, j-1, arr, dp) % MOD : 0L;

    return dp[i][j] =  (left + right) %MOD;

}

} " i tried this but this is wrong

Reasons:
  • Blacklisted phrase (1): is there any
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): is there any
  • Low reputation (1):
Posted by: piyush waghela

79282519

Date: 2024-12-15 14:33:04
Score: 2
Natty:
Report link

When you move the wordpress website from XAMPP localhost to webhosting server the image links usually change from /wp-content to https://wp-content So follow this step:

  1. Install "Better Search Replace" plugin.
  2. Search and replace the below text in database Search for "https://wp-content/" and replace it with "/wp-content/"

Hope this solves your problem.

Reasons:
  • No code block (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Shyam Gupta

79282509

Date: 2024-12-15 14:28:02
Score: 9 🚩
Natty: 5.5
Report link

were you able to find data in DG4 ?

Reasons:
  • RegEx Blacklisted phrase (3): were you able
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: moahmed abdelhakim hacine

79282506

Date: 2024-12-15 14:26:01
Score: 2.5
Natty:
Report link

assetManager: { embedAsBase64: 1, uploadText: 'Drag file here or upload', upload: 0, showUrlInput: false }

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ilya So

79282504

Date: 2024-12-15 14:26:01
Score: 1.5
Natty:
Report link

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. [2m2024-12-15T19:37:36.218+05:30[0;39m [31mERROR[0;39m [35m9864[0;39m [2m--- [Spring_Boot_Rest_API_Project] [ restartedMain] [0;39m[36mo.s.b.d.LoggingFailureAnalysisReporter [0;39m [2m:[0;39m

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sanket Shinde

79282495

Date: 2024-12-15 14:20:00
Score: 0.5
Natty:
Report link

For the sake of others I retrieved the details using this code:

import tensorflow_datasets.core.dataset_builders.conll.conllu_dataset_builder_utils as conllu_utils
from tensorflow_datasets.core.features.class_label_feature import ClassLabel
UPOS = conllu_utils.UPOS
upos_mapping = ClassLabel(names=UPOS)
print(upos_mapping.int2str(5))
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RodP

79282487

Date: 2024-12-15 14:13:56
Score: 6.5 🚩
Natty:
Report link

Im having the exact same issues

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): having the exact same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Variety Mix

79282484

Date: 2024-12-15 14:10:55
Score: 2.5
Natty:
Report link

import tkinter as tk import webbrowser

def open_google(): webbrowser.open('https://www.google.com')

root = tk.Tk() root.title("Открытие сайта через Tkinter")

button = tk.Button(root, text='Открыть Google', command=open_google) button.pack()

root.mainloop()

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Alex

79282474

Date: 2024-12-15 14:02:53
Score: 1.5
Natty:
Report link

You should call login function inside initState.

@override
void initState() {
    super.initState();
    login();
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Finite FIeld

79282467

Date: 2024-12-15 13:56:52
Score: 1
Natty:
Report link

I get a rate of 48-51k on avg consistently. Either:

Remove back pressure (no QOS/prefetch), increase size of consumer internal queue.

You run the risk of losing messages here if you don’t have enough RAM, or the internal Queue gets filled.

Given enough RAM, you would need over 2.1 billion messages to fill up an internal queue with the max cap (which is Int.maxValue).

For guaranteed reliability regardless of hardware/system resources, use a high prefetch count and execute only async code in the consumers. Any blocking code should be handed off to separate thread. I achieve 20-25k msg per sec consistently this way.

My experiments were on a single 16gb ram machine with 145 million messages stored in the RabbitMQ queue for benchmark purposes.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hgrammer

79282462

Date: 2024-12-15 13:52:51
Score: 1
Natty:
Report link

I don't know why, but the push will affect the board. make a copy of the board, and no problem anymore.

import chess
import copy

board = chess.Board()
starting_position=board.fen()
new_board= copy.copy(board)

for move in board.legal_moves:
    print(starting_position)
    board=copy.copy(new_board)
    board.set_fen(starting_position)
    print(move)
    board.push(move)
    print(f' board pushed move {board.fen()}')
    print()

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user28471654

79282454

Date: 2024-12-15 13:48:50
Score: 0.5
Natty:
Report link

Also tried:

# Install yum-utils for yum-config-manager
RUN yum install -y yum-utils && yum clean all

# Add libreoffice repository and install
RUN yum-config-manager --add-repo http://download.opensuse.org/repositories/LibreOffice:/7.0/CentOS_7/ && \
    rpm --import http://download.opensuse.org/repositories/LibreOffice:/7.0/CentOS_7/repodata/repomd.xml.key && \
    yum install -y libreoffice && yum clean all
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Noam Azoulay

79282438

Date: 2024-12-15 13:44:49
Score: 0.5
Natty:
Report link

Can VT improve performance?

Yes and no, of course.

VTs share a native thread, so they can't run instructions in parallel beyond the OS capability. But as you aim to have them yield when waiting, it should have helped, IF they were not hooked on the same 8 native threads. This needs to be asserted.

(I'll presume you don't have a limit of 8 connections to the DB. It's usually more like 100. You can assert that by temporarily adding a pause to your task after connecting. You can also use a 'sleep(delay)' in mysql, to make statements last longer to prove your tasks can make parallel statements, but you've got a nasty 10 seconds hard statement already. Perhaps there is a difference in the eye of mysqld, but with a 60 seconds pause, you'll have time to show processlist by hand now).

My hypothesis is that there is a thread pool of 1 thread per core underneath this. If you use Thread.currentThread() you won't get anywhere.

If you are on linux, you can write a small java method to read the "/proc/thread-self/status" on each task to get some outsight from the OS (the 'Pid' row in particular). See http://man.he.net/man5/proc . This would prove on which distinct native OS threads your VTs are running.

I don't know for Windoze.

Good luck. Lettuce-snow.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can
Posted by: user2023577

79282435

Date: 2024-12-15 13:43:49
Score: 3
Natty:
Report link

Alerts: A basic alert for UT Bot is included; more complex alerts would need more conditions or external data.no viable alternative at character ';'

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Surender Kumar Tandi

79282434

Date: 2024-12-15 13:43:49
Score: 0.5
Natty:
Report link

This solution done by the list

  1. get all the element in the list
  2. get the variable 0 and the length of the list
  3. sum both the variable
  4. increase the first one and decrease the last
def pairSum(head):
    vec_list = []
    while head:
        vec_list.append(head.value)
        head = head.next
    
    max_sum = 0
    len_vec_list = len(vec_list) -1
    i = 0 
    j = len_vec_list
    while i<j:
      
        cur_sum = vec_list[i] + vec_list[j]
        max_sum = max(max_sum,cur_sum )
        i = i+1
        j = j-1
    return max_sum
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: amardip kumar

79282432

Date: 2024-12-15 13:42:49
Score: 2
Natty:
Report link

Old thread, but since this thread shows up high in a Google search and since .resizable(resizingMode: .tile) won't work with system symbols, starting with iOS 15 we can do the following:

struct ContentView: View {
    var body: some View {
        Rectangle()
            .foregroundStyle(.image(
                Image(systemName: "questionmark.circle")
            ))
            .font(.system(size: 50))
    }
}

Background of tiled image with system symbol Full credit to this blog post I've found: https://fatbobman.com/en/posts/how-to-tile-images-in-swiftui/

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sebastian

79282429

Date: 2024-12-15 13:41:49
Score: 0.5
Natty:
Report link

Thank you for your suggestion, Mohammadreza Khahani

So here is a solution i have been suggested so far, remove the fragment container view from bottom sheet dialog xml and add it into activity and let the activity handle the fragment container state instead the dialog.

So basically i visibility gone or remove the fragment container at the onCreate method then add the fragment container view into the add address dialog. This certainly not a good solve for this problem but a nice quick work around.

Here is my MainActivity.kt

   class MainActivity : AppCompatActivity() {
    private lateinit var binding: ActivityMainBinding
    private lateinit var fab: FloatingActionButton
    private lateinit var rcv: RecyclerView
    private val viewModel: AddressViewModel by viewModels()
    private lateinit var repo: AddressRepo
    private lateinit var adapter: HouseAdapter
    // create a global variable container the container view
    private lateinit var fragmentContainerView: FragmentContainerView
    private val TAG: String = "Activity Main log"


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()

        binding = ActivityMainBinding.inflate(layoutInflater)
        val view = binding.root
        setContentView(view)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }

        fab = binding.homeFab
        rcv = binding.homeRcv

    // bind and remove the view in onCreate
        fragmentContainerView = binding.homeFragmentContainerView
        (fragmentContainerView.parent as ViewGroup).removeView(fragmentContainerView)

        val db = DatabaseInstance.getDatabase(this@MainActivity)
        repo = AddressRepo(db.addressDao())

        adapter = HouseAdapter(emptyList())
        rcv.layoutManager = GridLayoutManager(this, 2, GridLayoutManager.VERTICAL, false)
        val spacingInPixels = resources.getDimensionPixelSize(R.dimen.item_spacing)
        rcv.addItemDecoration(ItemDecoration(2, spacingInPixels, true))
        rcv.adapter = adapter

        // Load data asynchronously and update the adapter
        lifecycleScope.launch(Dispatchers.IO) {
            val addresses = repo.getAllHouse()
            Log.d(TAG, "onCreate: House Data = " + addresses.toString())
            launch(Dispatchers.Main) {
                adapter.updateData(addresses)
            }
        }

        viewModel.address.observe(this) {address ->
            Log.d(TAG, "onCreate: INPUT = $address")
        }

        fab.setOnClickListener {
            showBottomSheet()
        }
    }

    private fun showBottomSheet() {
        val bottomSheetDialog = BottomSheetDialog(this)

        val bottomSheetView = LayoutInflater.from(this)
            .inflate(R.layout.bottomsheet_add_address, null)

    // add container into bottom sheet dialog if it parent is null
        if (fragmentContainerView.parent != null) {
            (fragmentContainerView.parent as ViewGroup).removeView(fragmentContainerView)
        }
        fragmentContainerView.visibility = View.VISIBLE
        val bottomSheetLinearLayout = bottomSheetView.findViewById<LinearLayout>(R.id.bottom_sheet_placeholder_container)
        bottomSheetLinearLayout.addView(fragmentContainerView)

        bottomSheetDialog.setContentView(bottomSheetView)
        bottomSheetDialog.show()
    }

    }

My acivity layout

    <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    tools:context=".Screen.MainActivity">

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/home_rcv"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginBottom="1dp"
        android:paddingTop="20dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <androidx.fragment.app.FragmentContainerView
        android:id="@+id/home_fragmentContainerView"
        android:layout_width="match_parent"
        android:layout_height="600dp"
        android:name="androidx.navigation.fragment.NavHostFragment"
        app:defaultNavHost="true"
        android:background="@color/lightGrey"
        app:navGraph="@navigation/add_address"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"/>

    <com.google.android.material.floatingactionbutton.FloatingActionButton
        android:id="@+id/home_fab"
        android:layout_width="wrap_content"
        android:layout_height="56dp"
        android:backgroundTint="@color/blue"
        android:clickable="true"
        android:contentDescription="@string/home_fab_description"
        android:focusable="true"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        android:layout_marginEnd="25dp"
        android:layout_marginBottom="20dp"
        app:srcCompat="@drawable/add"
        app:tint="@color/white"/>
</androidx.constraintlayout.widget.ConstraintLayout>

My bottom sheet add address layout

     <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    android:orientation="vertical">

    <com.google.android.material.bottomsheet.BottomSheetDragHandleView
        android:id="@+id/bottomSheetDragHandleView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <LinearLayout
        android:id="@+id/bottom_sheet_placeholder_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <com.example.customviews.StepBar
            android:id="@+id/add_address_bottom_sheet_progressBar"
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:layout_marginHorizontal="25dp"
            app:barColor="@color/lightBlue"
            app:canGoUpTo="3"
            app:currentStep="3"
            app:inactiveBarColor="@color/lightGrey"
            app:inactiveMockColor="@color/grey"
            app:mockColor="@color/blue"
            app:stepCount="5" />

    </LinearLayout>

    </LinearLayout>
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tuấn Nguyễn

79282427

Date: 2024-12-15 13:41:48
Score: 2
Natty:
Report link

This site has Cloudflare anti-bot mode enabled, you need a TLS client to request it. Try with TLS Requests:

pip install wrapper-tls-requests

Unlocking Cloudflare Bot Fight Mode

import tls_requests
r = tls_requests.get('https://weworkremotely.com/remote-jobs')
print(r)
<Response [200]>

Github repo: https://github.com/thewebscraping/tls-requests

Read the documentation: thewebscraping.github.io/tls-requests/

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Earn Pham

79282426

Date: 2024-12-15 13:41:47
Score: 6 🚩
Natty:
Report link

have you solved the error, I'm having the same error (Cannot copy from a TensorFlowLite tensor (StatefulPartitionedCall_1:0) with shape [1, 25200, 7] to a Java object with shape [1, 20, 20, 35].)

Reasons:
  • RegEx Blacklisted phrase (1): I'm having the same error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: yousef sultan

79282396

Date: 2024-12-15 13:28:43
Score: 3.5
Natty:
Report link

To use transform on safari you need -webkit-transform. So you'll have :

    ...
    transform: scaleX(var(--scaleX)) scaleY(var(--scaleY));
    -webkit-transform: scaleX(var(--scaleX)) scaleY(var(--scaleY));
    ...

This other post has some more info. Why on Safari the transform translate doesn't work correctly?

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Eloi

79282389

Date: 2024-12-15 13:22:42
Score: 2.5
Natty:
Report link

I got this error in a Quasar Framework app that had < script setup > without specifying language: < script lang="ts" setup >. Correcting the script tag eliminated the error.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: StackemSam

79282365

Date: 2024-12-15 13:09:39
Score: 3
Natty:
Report link

I found a solution, I just changed the AVD configuration. Changed the graphics parameter to software and everything worked!

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Denis Budenniy

79282357

Date: 2024-12-15 13:04:38
Score: 3
Natty:
Report link

Here it worked with Ovichan's tip.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Marcos

79282355

Date: 2024-12-15 13:03:37
Score: 4.5
Natty:
Report link

I have the same problem and I did not find a solution, but I wrote the URL correctly http://localhost:1337/api/carts

{
  "data": [
    {
      "id": 2,
      "documentId": "jb92gjlm60xssfs7oehrpy4x",
      "title": "fsdfdsaf",
      "price": 700,
      "createdAt": "2024-12-15T12:06:29.941Z",
      "updatedAt": "2024-12-15T12:06:29.941Z",
      "publishedAt": "2024-12-15T12:06:29.954Z"
    },
    {
      "id": 4,
      "documentId": "k7blbpfifvcfld3aro0j9ggp",
      "title": "cbvncbvn",
      "price": 600,
      "createdAt": "2024-12-15T12:06:36.576Z",
      "updatedAt": "2024-12-15T12:06:36.576Z",
      "publishedAt": "2024-12-15T12:06:36.588Z"
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "pageSize": 25,
      "pageCount": 1,
      "total": 2
    }
  }
    

http://localhost:1337/api/carts/2

{
  "data": null,
  "error": {
    "status": 404,
    "name": "NotFoundError",
    "message": "Not Found",
    "details": {

    }
  }
}
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Mohamed samir

79282350

Date: 2024-12-15 12:56:35
Score: 0.5
Natty:
Report link

I tried the proposed answer but it didn't work for me as I'm using nextjs and firebase. I had to modify the package.json with a new script

"deploy-hosting-preprod": "sed -i '.bak' 's/NEXT_PUBLIC_ENVIRONMENT=.*/NEXT_PUBLIC_ENVIRONMENT=live/' .env; export NEXT_PUBLIC_ENVIRONMENT=live; firebase deploy --only hosting:preprod"

Also in my firebase json instead of using predeploy I use postdeploy, to return the .env file to normal as:

{
  "hosting": [
    ...
    {
      "target": "preprod",
      "source": ".",
      "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
      "postdeploy": ["npm run revert-env"]
    }
  ],
  ...
Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SAGB

79282348

Date: 2024-12-15 12:55:35
Score: 0.5
Natty:
Report link

Remove the width: 26vw; of the img. The img is this width, but the image inside is contained inside to avoid deformation or crop.
If you set both height and width you can get things like this, if you only set one, the other will adapt to avoid deformation or crop.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Eloi

79282346

Date: 2024-12-15 12:53:35
Score: 2
Natty:
Report link

I faced the same problem. My solution was to use a Docker image that contains a JRE, publish the .NET app as self contained and copy it to the JRE-Container in multiple build-steps

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Halil Ibrahim Özcan

79282332

Date: 2024-12-15 12:44:33
Score: 2.5
Natty:
Report link

If you are using spring boot for you project then you can add

server.servlet.session.tracking-modes=cookie

in application.properties file to prevent exposing jsession id in url

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dhyeeey

79282331

Date: 2024-12-15 12:43:33
Score: 1.5
Natty:
Report link

Sounds like you are using client-side rendering, which is trying to render all of those records at once to the client. I would recommend initializing server-side rendering on your front end, using for instance, DataTables js, or similar library for displaying the data. DataTables would then make Ajax requests to your server for each draw of the table. While not necessarily having finite control over the number of records returned, it would generally only return the records being visibly displayed on the screen. You would, however, have to handle the logic for pagination, sorting and searching on the server, as these functionalities would no longer be managed client-side.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Adam Spaulding

79282329

Date: 2024-12-15 12:42:33
Score: 1
Natty:
Report link

if you don't want to use router and want a one line solution you can write this:

new URL(window.location.toString()).searchParams.get("test")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Noobogami

79282321

Date: 2024-12-15 12:38:32
Score: 1
Natty:
Report link

This question would be solved by also changing index to 'who' and removing margins parameter as not needed.

pd.pivot_table(df[df['who'] == 'child'], 
    index = 'who', 
    aggfunc = lambda x: x.isnull().sum())
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Anisa B.

79282319

Date: 2024-12-15 12:37:32
Score: 2
Natty:
Report link

I followed the steps exactly, using the sudo cp /opt/bitnami/apache/conf/vhosts/sample-http-vhost.conf.disabled /opt/bitnami/apache/conf/vhosts/sample-http-vhost.conf sudo cp /opt/bitnami/apache/conf/vhosts/sample-https-vhost.conf.disabled /opt/bitnami/apache/conf/vhosts/sample-https-vhost.conf

But the https does not work, the browser just shows the default bitnami web page, and now it says: This site can’t be reached

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28791036

79282314

Date: 2024-12-15 12:35:31
Score: 8.5
Natty: 9
Report link

same here. Is there a solution to this problem so far?

Reasons:
  • Blacklisted phrase (3): Is there a solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Foizman

79282308

Date: 2024-12-15 12:32:29
Score: 4
Natty:
Report link

I'm wondering about this problem too.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lebron GO

79282300

Date: 2024-12-15 12:22:27
Score: 3.5
Natty:
Report link

I am doing the same task Coffee Machine Simulator at the moment and I can't seem to figure out what's wrong with it. Would you be able, if you still have it, if you can send me the code as you've done it so I can compare it and see the mistakes I've made. That would be very helpful, thank you! Feel free to reach me at [email protected]

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Contains signature (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Andjela

79282286

Date: 2024-12-15 12:16:25
Score: 4
Natty:
Report link

In the latest version of Kubb you could use baseURL to override the default base. See https://www.kubb.dev/knowledge-base/base-url

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Stijn

79282285

Date: 2024-12-15 12:16:25
Score: 4.5
Natty:
Report link

So if teodoro burger had a tunnel underground and many people dissapear????? Gangstalking?? Call for help EA 2024/12

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jeag

79282280

Date: 2024-12-15 12:14:24
Score: 1.5
Natty:
Report link

I've noticed your question a bit later and wanted to help you out a bit. Unfortunately, as you could already notice, this feature is not in YouTube's iFrame or Embed API. The best possible way to get maximized quality from YouTube is to create a backend server that is able to serve streams and fetch video's data (youtubei.js module is like made for this, I use it a lot and it gives you basically access to YouTube's API that YouTube itself uses) and use the server to get highest stream quality. but remember, video and audio are separated streams, so you should consider merging those streams together or using different method to stream both of them at once. But if you don't really need the extra high quality, remuxed stream (usually has around 480p, has both audio and video in one stream) could be used too.

https://github.com/LuanRT/YouTube.js take a look yourself, browser version is supported too if i'm not wrong

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: honzawashere

79282275

Date: 2024-12-15 12:12:23
Score: 1.5
Natty:
Report link

Buy Old Gmail Accounts Are you unhappy waith your new Gmail account? Can’t access everything ? Than you have come to the right place. There are also many valuable reasons to buy used Gmail Accounts.Older Gmal user have more reliability, security and features than every new Gmail user. For example, older Gmail services may be accessed that are no longer available to new users. Older Gmail Accounts like Google Plus and inbox also have a higher trust score, meaning they are less likely to be flagged as spam or blocked by other plarforms. Older Gmail Accounts have more storage, customization options and security features than newer accounts.

Our services feature Instant Work Start Quick & fast delivery High-Quality Service 100% Customer Satisfaction Guaranteed USA, UK, CA, AU etc… Country Available 100% Recovery Guaranty PVA Verified Accounts Number & IP Create Gmail Very Cheap Price Money-Back Guarantee 24/7 Customer Support

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jeffrey K. Fisher

79282264

Date: 2024-12-15 12:05:22
Score: 3.5
Natty:
Report link

What about using web-components instead of regular Vue components?
I think it might do the

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Haim

79282257

Date: 2024-12-15 12:01:21
Score: 3
Natty:
Report link

Move your icon to the public folder of your project. Then try to load your icon.png.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: younes_khosravi

79282251

Date: 2024-12-15 11:55:20
Score: 2
Natty:
Report link

i dropped this approach but i think all the problem is going back to build.rollupOptions.output in vite.config.js, remove it (it is not needed and even better not to transpile all the project in to one js file) and the problem must be gone.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sina Vali

79282235

Date: 2024-12-15 11:43:18
Score: 0.5
Natty:
Report link

just call this method from your recyclerView object after click method

recyclerView.scrollToPosition(position + 1);

remember you have to call it in Ui thread and in your activity class that can access to your recyclerView object

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arash Torkaman

79282232

Date: 2024-12-15 11:42:17
Score: 2.5
Natty:
Report link

One of our production magento 2.4.5 website was getting frequent down issues and we have checked the case in detail and we could see that the we are getting excessive crawler request from meta-externalagent. See sample log entry below.

57.141.0.9 - - [xx/Dec/2024:12:xx:09 +0530] "GET /our-xxxxxxxxxs/ms-xxx?karat=23&size=6%2C7%2C13%2C16%2C17%2C18%2C24 HTTP/1.1" 200 780515 "-" "meta-externalagent/1.1 (+https://developers.facebook.com/docs/sharing/webmasters/crawler

While checking further further i could see from logs that we have received "64941" requests from "meta-externalagent/1.1" in 12 hours.

I can see lots of people are facing similar issues, But no clear solution is mentioned for magento version 2.4.5.

Is there any possible option we can do some rate limiting for the meta crawler ? As we are doing Facebook ads we cannot completely block requests from meta-externalagent.

Currently i i have blocked meta-externalagent using 7G Firewall in nginx.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing similar issue
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: nisamudeen97

79282231

Date: 2024-12-15 11:41:17
Score: 3
Natty:
Report link

you can try this for a deeper formData append with append file support https://www.npmjs.com/package/@diadal/array-append-to-formdata

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: bitotm

79282207

Date: 2024-12-15 11:21:12
Score: 0.5
Natty:
Report link

for those looking for a better way you could do this

{% set greet %}
    <strong>hello</strong>
{% endset %}

and use it like this

<div id="1"> {{ greet|raw }} Jeremy</div>
<div id="2"> {{ greet|raw }} Davis</div>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ismael Lastlevel

79282206

Date: 2024-12-15 11:19:11
Score: 6.5
Natty: 7
Report link

can we use 3DGS to rebuild this?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): can we use
  • Low reputation (1):
Posted by: Mason Do

79282204

Date: 2024-12-15 11:18:11
Score: 2
Natty:
Report link

Possible in Webstorm 2024.2

Check out the blog post "Directly run and debug TypeScript files".

image of context menu for running TS file

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: exmaxx

79282203

Date: 2024-12-15 11:18:10
Score: 7 🚩
Natty: 5.5
Report link

Is it possible to export also the color and light configuration?

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Is it possible to
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: PAk

79282200

Date: 2024-12-15 11:15:09
Score: 1
Natty:
Report link

I use this method:

Example:

Customer[] customers=createNew(100);


@NonNull
public static <T> T[] createNew(int capacity, @NonNull T... array) {
    return java.util.Arrays.copyOf(array, capacity);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Michael Puzio

79282196

Date: 2024-12-15 11:10:08
Score: 2
Natty:
Report link

I can confirm the same behavior: open "Profiles" page, a lot of paths listed under "Folder & Workspaces" (many of them temporary ones I deleted long ago), the small x on the right is displayed but doesn't work (grayed out).

However, I might have found a way to clear them all: goto "run command" and find "Developer: Reset Workspace Profiles Associations". That is very brute force, so hopefully the x will be working soon ...

My VSCode version is 1.95.3

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Lars

79282191

Date: 2024-12-15 11:09:08
Score: 0.5
Natty:
Report link

I have added this function to the apps script and named it total.gs

function recordB49Values() {
  const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('SchoolWiseList');
  const resultSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Total1');

  const originalF2Value = sheet.getRange('F2').getValue();

  for (let i = 1; i <= 11; i++) {
    sheet.getRange('F2').setValue(i);
    SpreadsheetApp.flush();
    
    const B49Value = sheet.getRange('B49').getValue();
    
    resultSheet.getRange(i + 1, 1).setValue(i);
    resultSheet.getRange(i + 1, 2).setValue(B49Value);
  }

  sheet.getRange('F2').setValue(originalF2Value);
  SpreadsheetApp.flush();
}

Then I have added a sheet named Total1. In the Total1 sheet,I set up the headers:

Cell A1: School Number

Cell B1: Total Competitors

Then I run the function recordB49Values from the apps script.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kurumba Daspara F P School

79282186

Date: 2024-12-15 11:02:07
Score: 2
Natty:
Report link

Unlike say Swift generics, C++ templates is purely compile time feature. There's no direct support for it in C++ ABI. Hence, in short, you cannot create an opaque (pre-compiled) shared library with C++ templates, to be used with random unknown template parameters by a client code.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Igor Vasilev

79282185

Date: 2024-12-15 11:01:04
Score: 7 🚩
Natty:
Report link

Have you solved it yet? I'm facing a similar problem. I have Django and FastAPI on process#1, and they work in Sync and Async functions with no problem. I am running the SocketIO app in process#2 with multiprocessing. ProcessusingAsyncServerandASGIApp. The problem is that Django works with Sync functions like get()orcreate(), but if we use aget()oracreate()` the process disappears and vanishes. The rest of the line never runs with no error.

self.sio = socketio.AsyncServer(
    async_mode="aiohttp",
    cors_allowed_origins=self.socket_config.cors_allowed_origins,
    always_connect=self.socket_config.always_connect,
    logger=self.logger if self.socket_config.logger else False,
    engineio_logger=self.logger if self.socket_config.engineio_logger else False,
)
self.socket_application = socketio.ASGIApp(self.sio, socketio_path=self.socket_config.socketio_path)

and run it with uvicorn with pro

multiprocessing.Process(
    target=uvicorn.run,
    kwargs={
        "app": "0.0.0.0",
        "host": 8002,
        "port": int(service_config.SERVICE_PORT),
    }, 
    daemon=True
).start()

I have tried to add get_asgi_application() into other_asgi_app of socketio.ASGIApp but nothing changed. I think the problem isn't from the Django setting with async permissions, it is between the ASGIApp and Django. When it logged the self.socket_application from ASGIApp something interesting showed up, ...DjangoDBProcessRemove object ....

I would be looking forward to any help.

Update: If I run the SocketIO application in the main process works just fine. So I did. SocketIO in the main process and FastAPI in the Second with multiprocess, This time FastAPI faced this issue.

Reasons:
  • Blacklisted phrase (1): any help
  • Blacklisted phrase (2): Have you solved it
  • RegEx Blacklisted phrase (1.5): solved it yet?
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing a similar problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mohammad Mahdi Samei

79282180

Date: 2024-12-15 10:57:03
Score: 3.5
Natty:
Report link

This issue is likely occurring because you're using localhost:2181 for your Zookeeper hosts. When containers are trying to communicate within a Docker cluster, you should use the service name instead of localhost. This allows the containers to resolve the correct network address within the cluster. enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: shahrukh mulani

79282160

Date: 2024-12-15 10:42:00
Score: 1.5
Natty:
Report link

The parameter alpha in Quantile Regression, similar to Lasso in linear regression, controls the strength of the L1 regularization, which adds a penalty to the model's complexity like this site. Regularization helps avoid overfitting by reducing the influence of less significant features. In higher-dimensional problems, alpha can shrink less important dimensions, leading to a more interpretable model with fewer, more predictive features. So, your intuition about it affecting multiple dimensions is on track.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: RAO ZAID

79282159

Date: 2024-12-15 10:42:00
Score: 1
Natty:
Report link
<?php if (have_posts()) : while( have_posts()) : the_post(); ?>

   <?php $featured_img_url = get_the_post_thumbnail_url(get_the_ID(),'full'); ?>  

<?php endwhile; else: endif; ?>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: CrackerJack Naveen Kumar

79282156

Date: 2024-12-15 10:39:59
Score: 1.5
Natty:
Report link

The example provided can be referred to as:

Name:

Car Registration System Normalization

Question:

Design a normalized database for a car registration system that tracks cars, their owners, and manufacturers. Normalize the database up to 3NF, creating appropriate tables to eliminate redundancy and ensure data integrity.


This type of example is common in database management courses and exams, where students are asked to take an unnormalized table and demonstrate the steps of normalization up to 3NF.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: malaika

79282155

Date: 2024-12-15 10:39:59
Score: 1
Natty:
Report link

Use reflection with interface, that way you will be able to use any function with interface. I made some changes and tested it on playground

func main() {
var foo interface{}
foo = log.Printf
dynamicFunction(foo, "Pointer, %s!", "Test")}

func dynamicFunction(fn interface{}, args ...interface{}) {

v := reflect.ValueOf(fn)
in := make([]reflect.Value, len(args))
for i, arg := range args {
    in[i] = reflect.ValueOf(arg)
}
v.Call(in)}

Playground

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: saif iqbal

79282145

Date: 2024-12-15 10:32:57
Score: 3
Natty:
Report link

Write a program in Python that takes 5 numbers from the input and prints those numbers in an array from the last to the first.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: زووبا

79282137

Date: 2024-12-15 10:28:56
Score: 1
Natty:
Report link

With thanks to misho88 on reddit who posted this and advised to look at using matplotlib.tri.Triangulation and tricontourf the following works:

import numpy as np
import matplotlib.tri as tri
from vpython import vector, triangle, vertex, vec
import matplotlib.pyplot as plt


# Function to convert spherical to Cartesian coordinates
def spherical_to_cartesian(lat, lon, radius=3):
    lons = np.radians(lon)
    lats = np.radians(lat)
    x = radius * np.cos(lats) * np.cos(lons)
    y = radius * np.cos(lats) * np.sin(lons)
    z = radius * np.sin(lats)
    return np.array([x, y, z])

shape = (721, 1440)


lats = np.linspace(-90, 90, shape[0])
lons = np.linspace(-180, 180, shape[1])


min_temp = -30
max_temp = 50
temps = np.random.uniform(min_temp, max_temp, size=shape)

lons_grid, lats_grid = np.meshgrid(lons, lats)

new_lons = np.linspace(lons.min(), lons.max(), 72)
new_lats = np.linspace(lats.min(), lats.max(), 36)
new_lons_grid, new_lats_grid = np.meshgrid(new_lons, new_lats)

radius = 3

lats_flat = lats_grid.flatten()
lons_flat = lons_grid.flatten()
temps_flat = temps.flatten()

# Randomly sample a subset of the points
num_samples = 10000  # Adjust this number to control triangle density
indices = np.random.choice(len(lats_flat), size=num_samples, replace=False)
lats_sampled = lats_flat[indices]
lons_sampled = lons_flat[indices]
temps_sampled = temps_flat[indices]

triang = tri.Triangulation(lons_sampled, lats_sampled)


fig, ax = plt.subplots()
contour = ax.tricontourf(triang, temps_sampled, levels=100, cmap='inferno')
plt.colorbar(contour)
plt.close(fig)

for tri_indices in triang.triangles:

    vertices = []
    for idx in tri_indices:
        xi, yi, zi = spherical_to_cartesian(lats_sampled[idx], lons_sampled[idx])
        temp = temps_sampled[idx]
        color_value = plt.cm.inferno((temp - min_temp) / (max_temp - min_temp))
        vertices.append(vertex(pos=vector(xi, yi, zi), color=vec(*color_value[:3])))
    triangle(v0=vertices[0], v1=vertices[1], v2=vertices[2])


import time
while True:
    time.sleep(0.03)

enter image description here

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: John

79282132

Date: 2024-12-15 10:24:56
Score: 1.5
Natty:
Report link

If you have two-factor authentication enabled in GitHub settings, make sure to use personal access token instead of a password.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: YouQam

79282127

Date: 2024-12-15 10:22:55
Score: 1
Natty:
Report link

I had a similar problem and fixed it by changing the publish method from ZipDeploy to MSDeploy. But I still don't have an idea what causes this problem.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: romanoza

79282126

Date: 2024-12-15 10:19:54
Score: 2
Natty:
Report link

Based on the documentation, the best approach is to use the create or replace and select * EXCEPT

    CREATE OR REPLACE TABLE mydataset.mytable AS (
  SELECT * EXCEPT (column_to_delete) FROM mydataset.mytable
);

as with altering and drop the column, this does not free the storage of the column that was deleted immediately

Check this link for more info, it is useful to understand what is happening under the hood of a query Managing-table-schemas-BigQuery

Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): Check this link
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mohannad rateb

79282117

Date: 2024-12-15 10:16:54
Score: 1
Natty:
Report link

If you want to disable current(cursor line) line highlight in Geany IDE it is very simple you can disable highlight current line in any or default colour schemes. Follow given steps these steps are for linux users.

Step-1) Open Home partition in file manager.

Step-2) Go to your username and enable show hidden files;you can enable it by pressing (ctrl+h) or by right clickin and finding that option.

Step-3) Find (.config) folder by manually or by using search option.

Step-4) Now go to (geany) folder.

Step-5) Go to (colorschemes) folder.

Step-6) Now open themefile which you want to disable highlight cursor line in any text editor.

Step-7) Scroll down and find (current_line=1a1a1a;true) replace 'true' to 'false' like below (current_line=1a1a1a;false). Then save and exit.

Note--- Here it is not necessary that colour name is '1a1a1a' it should change according to your scheme looks like some are '#6f6f6f' and another. Your main task is to replace true to false and than save and exit.

These are paths for easily understand:-

File manager > Home partition or folder > enable hidden files or finding '.config' > geany > colorschemes

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mohit Kumar

79282116

Date: 2024-12-15 10:08:53
Score: 3
Natty:
Report link

If you are using various libaries for testing

for example: JUnit and TestNG review your imports, you might have imported

@Test from TestNG instead of @Test from Junit

Human mistake was the reason the test was not being detected and excuted as expected

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Test
  • User mentioned (0): @Test
  • Low reputation (1):
Posted by: JP Navarro V.

79282105

Date: 2024-12-15 09:55:50
Score: 1.5
Natty:
Report link

Unable to load class 'org.gradle.initialization.BuildCompletionListener' org.gradle.initialization.BuildCompletionListener

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Digvijay Himanshubhai

79282087

Date: 2024-12-15 09:42:48
Score: 0.5
Natty:
Report link

Use a code obfuscator. While it's true that obfuscated code can be reverse-engineered, it requires a good amount of skill and effort, providing a basic layer of protection. Tools like javascript-obfuscator can make your code harder to read and modify.

Move critical parts of your extension's functionality to a web service if possible. This way, the sensitive logic resides on your server, which you can easily secure, and the extension only interacts with the server through API calls. This setup ensures that even if someone accesses the extension's source code, they won't have access to the core functionality.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Viktor Kis

79282080

Date: 2024-12-15 09:39:47
Score: 0.5
Natty:
Report link

Steps to Convert a Negative Number to Hexadecimal:

Understand the Bit Width:

Decide the bit width (e.g., 8 bits, 16 bits, 32 bits, etc.). This determines how many bits are used to store the number in binary and affects the final hexadecimal result.

Convert the Positive Equivalent to Binary: Take the absolute value of the negative number and convert it to binary. For example, if the number is -10, the absolute value is 10, and its binary representation is 1010 (in 4 bits).

Pad the Binary Number: Pad the binary number with leading zeros to match the chosen bit width. For example, 1010 becomes 00001010 in an 8-bit representation.

Invert the Bits (One's Complement): Flip all the bits (0 becomes 1, and 1 becomes 0). For 00001010, the one's complement is 11110101.

Add 1 to the Inverted Binary Number (Two's Complement): Add 1 to the one's complement binary number to get the two's complement. For 11110101, adding 1 gives 11110110.

Group Binary Digits into Nibbles: Divide the binary number into groups of 4 bits (nibbles) starting from the right. For 11110110, the groups are 1111 and 0110.

Convert Each Nibble to Hexadecimal: Convert each group of 4 bits into its hexadecimal equivalent. For 1111, the hex is F, and for 0110, the hex is 6.

Combine the Hex Digits: Concatenate the hexadecimal digits to get the final result. For 11110110, the hexadecimal result is F6.

Below is an example:

Convert -10 to 8-bit hexadecimal:

Bit Width: 8 bits.

Positive Binary: ∣10∣=10 → 1010.

Pad to 8 Bits: 00001010.

Invert Bits: 11110101.

Add 1: 11110101 + 1 = 11110110.

Group into Nibbles: 1111 and 0110.

Convert to Hex: 1111 = F, 0110 = 6.

Final Hex: F6.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shakhzod Shermatov

79282078

Date: 2024-12-15 09:38:46
Score: 6 🚩
Natty: 4.5
Report link

What was the work around that you recommend. I am also having a similar problem for which I would like to have a sampling operator.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also having a similar problem
  • Single line (0.5):
  • Starts with a question (0.5): What was the
  • Low reputation (1):
Posted by: Vyas

79282072

Date: 2024-12-15 09:33:44
Score: 5
Natty: 6.5
Report link

If Use WordPress install This Plugin https://wordpress.org/plugins/youtube-embed-plus/

and Activate this option enter image description here

Enjoy!

Reasons:
  • Blacklisted phrase (1): This Plugin
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hussamedeen

79282070

Date: 2024-12-15 09:32:44
Score: 1.5
Natty:
Report link

You need to set it up in a runtime environment
The script has to include native using -Djava.library.path:
java -Djava.library.path %PATH_TO_NATIVES% -jar app.jar
The classpath in the jar manifest must include relative jar paths
Class-Path: lib/reflections-0.9.10.jar lib/other-library.jar
At runtime, it must look like this:

dir/

app.jar
run.bat or run.sh
lib/

reflections-0.9.10.jar
other-library.jar

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Munil Mistera

79282064

Date: 2024-12-15 09:24:42
Score: 1
Natty:
Report link

The error was obvious. The view did not exist !

I didn't know that PHPstan would go so far as to check the existence of resources.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Dom

79282054

Date: 2024-12-15 09:12:40
Score: 0.5
Natty:
Report link

For rendering Google Maps in virtual reality on iOS using Google Cardboard, you can explore the following VR SDKs and tools:

SDK for Google VR (Cardboard): Google's official VR developer SDK, which works with iOS. supports encounters with Google Cardboard. Although 360-degree environments can be rendered, direct Google Maps integration necessitates special development utilizing the Google Maps SDK for iOS.

Cardboard SceneKit: It is possible to render 3D content using Apple's SceneKit and integrate it with Google Cardboard for virtual reality. Map tiles can be retrieved via the Google Maps SDK for iOS and then rendered as textures in SceneKit.

Google Cardboard and Unity: Using Google Maps Platform APIs, Unity can load Google Maps as textures and facilitate VR development. To integrate VR, use the Cardboard XR Plugin for iOS.

Libraries that are open source: Although not actively updated, ViroReact can still be used for simple virtual reality projects. Using WebXR with Three.js: a web-based VR method that is restricted on iOS because to Safari's incomplete WebXR compatibility.

Note: Because to license and API restrictions, Google Maps cannot be displayed directly in virtual reality. Using the Google Maps Platform API, you will need to retrieve map tiles or 3D data and manually render it into your virtual reality environment.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: IOVR

79282046

Date: 2024-12-15 09:02:38
Score: 0.5
Natty:
Report link

Taking the cue in the suggested answer, to pass the variable to a .then(), I have restructured the code, it is now working as expected.

Then('the total amount I have sent to {string} so far is {string}', (toCountry, amountSent) => {

    let amountSentTotal = 0

    trackTransfersPageObj.getRecordCount.each($el => {

        let amountSent = $el.find('td:nth-of-type(5):contains("' + toCountry + '")').next('td').text().trim().replace(/[£N,]/g, '')
        amountSentTotal = Number(amountSentTotal) + Number(amountSent)

    }).then(function () {
        expect(amountSentTotal).equal(Number(amountSent))
    })

})
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: unlisted

79282030

Date: 2024-12-15 08:43:35
Score: 3
Natty:
Report link

here's a great explanation provided in this link

(it's for ansible config, but formatting rules mostly apply because they both use yml files)

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kop3sh

79282007

Date: 2024-12-15 08:16:27
Score: 6.5 🚩
Natty: 4.5
Report link

93779 [ZAP-IO-Server-1-1] WARN org.zaproxy.zap.extension.api.API - Request to API URL http://localhost:8080/zap from 172.17.0.1 not permitted

im getting this error please help

Reasons:
  • RegEx Blacklisted phrase (3): please help
  • RegEx Blacklisted phrase (1): im getting this error
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Akash Nayek

79282001

Date: 2024-12-15 08:12:25
Score: 1
Natty:
Report link

Simply:

update-database MigrationName
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-1):
Posted by: Elnoor

79281990

Date: 2024-12-15 08:02:24
Score: 3.5
Natty:
Report link

Try this plugin Multiscope code radar, you can search in multiple projects inside workspace : https://plugins.jetbrains.com/plugin/26014-multiscope-coderadar

Reasons:
  • Blacklisted phrase (1): this plugin
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mboutir

79281987

Date: 2024-12-15 08:00:23
Score: 1
Natty:
Report link
isDense: true,
    constraints: BoxConstraints(
        minHeight: 60, maxHeight: hasError ? (widget.height + 24) : 60),
    contentPadding: const EdgeInsets.symmetric(vertical: 20, horizontal: 
    20),

Like That.. Without Adding Fixed Height Using SizedBox.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohd Aadil

79281970

Date: 2024-12-15 07:40:20
Score: 1
Natty:
Report link

The problem is not the combobox but your not-shown-here code that expects a value from the combobox.

Apriumben:

@gustav you certainly put me on the right track! whilst looking for this non-existent code (not shown!)

I discovered that the query 'qryRecentBookings' referenced a different form and I had in fact previously created a new query that referenced this form, but hadn't applied it to this combo box.

The two query names were quite similar but I clearly should have read the error message more intently. I have a feeling I previously copied a form used for another purpose, rejigged the bits I needed to but didn't check this particular combo was working. Thank you for making me recheck everything!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @gustav
  • High reputation (-2):
Posted by: Gustav

79281953

Date: 2024-12-15 07:23:16
Score: 1
Natty:
Report link

I needed to override the background, and it was this solution that helped. It works in all modern browsers:

input:-webkit-autofill {
    /* some other styles */
    /* background-color: white !important; */
    /* -webkit-text-fill-color: black !important; */
    box-shadow: 0 0 0px 1000px white inset !important;
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Maxim Tsatsura

79281949

Date: 2024-12-15 07:16:14
Score: 3.5
Natty:
Report link

you can add ${__threadGroupName} in the Http request sampler name

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vivek

79281933

Date: 2024-12-15 07:02:12
Score: 1
Natty:
Report link

The issue with your program is that the name variable is never updated inside the loop. After the initial input, the while loop keeps running indefinitely because the name variable is still holding its initial value.

To fix this, you need to prompt the user to enter their name again inside the loop. Here's the corrected code:

while name != "John":
    print("Please type your name.")
    name = input()  # Update the value of 'name' within the loop
print("Thank you!")
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Awlad Hossain

79281904

Date: 2024-12-15 06:29:06
Score: 2
Natty:
Report link

Is it necessary to use regex?

content ='12345 67890 123175 9876'
for item in content.split(' '):
    if not item.endswith('175'):
        print(item)

Output

12345
67890
9876
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is it
  • High reputation (-1):
Posted by: moken

79281882

Date: 2024-12-15 06:08:02
Score: 2
Natty:
Report link

SQLAlchemy has since introduced the dimensions= kwarg, e.g. Column('sample', postgresql.ARRAY(Integer, dimensions=2).

See https://docs.sqlalchemy.org/en/13/dialects/postgresql.html#sqlalchemy.dialects.postgresql.ARRAY.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pat Zabawa

79281879

Date: 2024-12-15 06:07:02
Score: 2.5
Natty:
Report link

Use this and the error will be resolved. This error is due to the not usage of ES Modules, so you have to use UMD modules import { ScrollTrigger } from 'gsap/dist/ScrollTrigger';

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Inzemam ul-Haq

79281872

Date: 2024-12-15 05:57:00
Score: 2.5
Natty:
Report link

Bro, Simply add this line and done !

DRFSO2_URL_NAMESPACE = 'drfso2'

and if you have not given url for the pattern then do that else all done

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ADITYA OJHA Aditya

79281851

Date: 2024-12-15 05:35:56
Score: 1.5
Natty:
Report link

Looks like pyannote cannot download model.bin anymore : (

But I found that it only needs authentication to download once, after which the script can load the models from ~/.cache.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: R4L

79281847

Date: 2024-12-15 05:31:54
Score: 4
Natty:
Report link

Is it useful to set button display as none?(display.none) so you have not to delet the button.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is it use
  • Low reputation (1):
Posted by: Navid Abolfathi

79281844

Date: 2024-12-15 05:28:53
Score: 2
Natty:
Report link

This issue, of missing pip, persists Python 3.13.1. I resolve this by uninstall it. Then run the installer as Administrator (on Windows 11).

You'll need to do custom installation and have the installer install to c:\dev\Python313 custom path.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: xman