79204154

Date: 2024-11-19 16:00:45
Score: 4.5
Natty:
Report link

I encountered this problem and need to replace the onCreate function, in MainApplication.kt, just follow the steps - https://reactnative.dev/blog/2024/10/23/release-0.76-new-architecture#breaking-changes-1

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Avishay

79204143

Date: 2024-11-19 15:58:44
Score: 1
Natty:
Report link

Failed - tried reinstalling and registering 12.1; installed patch; loaded getit and ran JCL - said installed ok; came out; back in again and loaded getit - JCL presumably installed as it now gives an uninstall button; tried installing jvcl and get "No Delphi/BCB/BDS/RAD-Studio versions was found that has the required dependencies installed. Please install the dependencies first." If you uninstall JVC it tells you it is uninstalled but shutting down and starting up still only gives the uninstall button so I cant re-install JVC

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

79204135

Date: 2024-11-19 15:57:44
Score: 4
Natty:
Report link

i might be a bit late, but this problem still persist till today (2024-11-19), this actually turns out to be the node's fault; as a matter of fact, node 18, 20 and 22 all have the same problems. you can either downgrade to node 16; or, you can add "type":"commonjs"in your package.json file, and change your files to ".js", normally, this is fine, unless you have "await" functions in your top level file.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): have the same problem
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: George Wang

79204131

Date: 2024-11-19 15:56:43
Score: 1
Natty:
Report link

It works when use "body:before"

body:before {
  content: ' ';
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: transparent;
  background:url(/images/background.jpg);
  background-position:50% 50%;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: hui-shao

79204106

Date: 2024-11-19 15:48:41
Score: 3.5
Natty:
Report link

*Sensi xispe *Graciano Kabambi txio Gréece Grâce haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Filler text (0.5): aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  • Low reputation (1):
Posted by: Gracias Kabambi

79204101

Date: 2024-11-19 15:46:40
Score: 3.5
Natty:
Report link

the problem is that the signup is not done correctly for the user when SSO, so it is not properly done, therefore the user doesn't exist.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: IriaAM

79204099

Date: 2024-11-19 15:45:40
Score: 3
Natty:
Report link

Updating to .NET 9 seems to fix the issue for me, as i was getting the generic browser eception error, and hot reload wasn't even working with new blazor app template on .NET 8.

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

79204096

Date: 2024-11-19 15:45:40
Score: 2.5
Natty:
Report link

Yes, the KeyHolder in Spring JDBC preserves the order of rows when performing a batch insert operation. The keys returned in the KeyHolder will correspond to the rows in the same order they were inserted in the batch.

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

79204088

Date: 2024-11-19 15:44:39
Score: 3
Natty:
Report link

I'm pretty sure this is related to Gitlab responding with a 304 when npm requests the package metadata. There is an unresolved bug report from two years ago.

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

79204083

Date: 2024-11-19 15:43:39
Score: 10
Natty: 9
Report link

Same here. I have the exact issue you mentioned. Did you solve it?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: olekgolus11

79204081

Date: 2024-11-19 15:43:38
Score: 0.5
Natty:
Report link

in case its still useful: the opensoundscape package provides an Audio.from_url method, for instance

from opensoundscape import Audio
a=Audio.from_url('https://xeno-canto.org/219961')
# object has a.samples, a.sample_rate, etc
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sam Lapp

79204078

Date: 2024-11-19 15:42:38
Score: 0.5
Natty:
Report link

For anyone else still stuck on this, I tried switching to FontAwesome's new SVG framework (from Web Fonts) and the problem seems to have gone away.

I had the same issue where all my icons were rendering normally on desktop but a few were not rendering on mobile browsers.

Screenshot of FontAwesome settings

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Brandon

79204070

Date: 2024-11-19 15:41:38
Score: 1
Natty:
Report link

.data array: .word 10, 20, 30, 40, 50 # مصفوفة من الأعداد الصحيحة n: .word 5 # عدد العناصر في المصفوفة

.text .globl main

main: # تحميل عنوان المصفوفة وعدد العناصر la $a0, array # تحميل عنوان قاعدة المصفوفة في $a0 lw $a1, n # تحميل عدد العناصر في $a1

# إعداد المكدس للمعاملات
addi $sp, $sp, -8   # إنشاء مساحة على المكدس
sw $a0, 0($sp)      # دفع عنوان المصفوفة إلى المكدس
sw $a1, 4($sp)      # دفع عدد العناصر إلى المكدس

# استدعاء الروتين الفرعي LISTADD
jal LISTADD

# تنظيف المكدس بعد استدعاء الروتين الفرعي
addi $sp, $sp, 8

# إنهاء البرنامج
li $v0, 10          # تحميل رقم استدعاء إنهاء النظام
syscall

LISTADD: # إعداد إطار المكدس addi $sp, $sp, -8 # إنشاء مساحة لعنوان العودة والمجموع sw $ra, 4($sp) # حفظ عنوان العودة sw $zero, 0($sp) # تهيئة المجموع إلى 0

# الحصول على المعاملات من المكدس
lw $a0, 8($sp)      # تحميل عنوان المصفوفة (من المكدس الأصلي)
lw $a1, 12($sp)     # تحميل عدد العناصر (من المكدس الأصلي)

# تهيئة المجموع والعداد
move $t0, $zero     # $t0 = المجموع
move $t1, $zero     # $t1 = العداد

loop: bge $t1, $a1, end_loop # إذا كان العداد >= عدد العناصر، اخرج من الحلقة

lw $t2, 0($a0)          # تحميل العنصر الحالي
add $t0, $t0, $t2       # إضافة العنصر الحالي إلى المجموع
addi $a0, $a0, 4        # الانتقال إلى العنصر التالي
addi $t1, $t1, 1        # زيادة العداد
j loop                  # تكرار الحلقة

end_loop: beqz $a1, set_avg # إذا لم توجد عناصر، تخطى حساب المتوسط div $t0, $a1 # قسّم المجموع على عدد العناصر mflo $t3 # نقل الناتج (المتوسط) إلى $t3 j store_results # القفز إلى تخزين النتائج

set_avg: move $t3, $zero # تعيين المتوسط إلى 0 (حالة عدم وجود عناصر)

store_results: # استعادة المكدس والعودة lw $ra, 4($sp) # استعادة عنوان العودة lw $zero, 0($sp) # استعادة المجموع (غير مستخدم بعد) addi $sp, $sp, 8 # تنظيف المكدس jr $ra # العودة إلى المتصل

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: user28379751

79204065

Date: 2024-11-19 15:40:38
Score: 2
Natty:
Report link

It was an instability in my computer, maybe after a system update.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: danilo

79204060

Date: 2024-11-19 15:38:37
Score: 0.5
Natty:
Report link

0 I was doing the tutorial for using kubernetes (one of the ones in kubernetes.io) and it tells you to use: export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') I had to remove the "export" for it to work in windows (also had to remove the line break for some reason, but it worked after that), so the command was: $POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{end}}') It worked, and if I typed: $POD_NAME I got the correct pod name. The problem came from the next step where I had to use: curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME:8080/proxy/ Here, it was unable to resolve the url, while if I just replaced $POD_NAME with the text in the variable, it worked just fine. I was wondering if there is a way to make it work (as in making the variable name be substituted by it's content when interpreting the command). Not sure if it helps, but this is the error message: curl : { "kind": "Status", "apiVersion": "v1", "metadata": {}, "status": "Failure", "message": "pods "proxy" not found", "reason": "NotFound", "details": { "name": "proxy", "kind": "pods" }, "code": 404 } En línea: 1 Carácter: 1 + curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME:8 ... + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands. I see what's happening here. When you use $POD_NAME in the curl command, it isn't getting replaced by its value. This issue often arises from how the shell handles variable interpolation.

In PowerShell, which it looks like you might be using, you need to use different syntax for variable interpolation. Here’s how you can make it work:

$POD_NAME = $(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{end}}') curl "http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME:8080/proxy/"

Reasons:
  • Blacklisted phrase (2): was wondering
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): It worked
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Himanshu Kumar

79204052

Date: 2024-11-19 15:37:36
Score: 1
Natty:
Report link

Same problem on my VS 2019...
I erased the directory %QtMsBuild% (on my Windows %USERPROFILE%\AppData\Local\QtMsBuild) and the error disappeared.
However, I now have Linker-Errors like LNK2001 on MyClass::qt_metacall(enum QMetaObject::Call,int,void * *)
Sounds like something's wrong with Qts MOC. See you maybe later for updates.

Reasons:
  • RegEx Blacklisted phrase (1): Same problem
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: D. Walz

79204041

Date: 2024-11-19 15:34:35
Score: 5
Natty:
Report link

I am using:

add_action('init', function() { load_plugin_textdomain( 'name-plugin', false, basename( dirname( FILE ) ) . '/languages/' ); }); and it is still not working

Reasons:
  • Blacklisted phrase (2): still not working
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28379622

79204038

Date: 2024-11-19 15:33:35
Score: 0.5
Natty:
Report link

What probably happens is that the DWG model does not contain enough information for the AggregatedView to be able to position it properly relative to the Revit design.

The other option you have is loading and aligning the models manually (without relying on AggregatedView), as explained in this blog post: https://aps.autodesk.com/blog/multi-model-refresher.

Reasons:
  • Blacklisted phrase (1): this blog
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • High reputation (-1):
Posted by: Petr Broz

79204036

Date: 2024-11-19 15:33:35
Score: 3
Natty:
Report link

just be sure to give permission to hive user

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

79204025

Date: 2024-11-19 15:30:34
Score: 3.5
Natty:
Report link

@types/data-fns are deprecated now => remove the dependency and let it handle itself.

npm uninstall @types/date-fns
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: David Renner

79204024

Date: 2024-11-19 15:29:34
Score: 1
Natty:
Report link

In order to debug the visual artifact you are seeing (the blurring at distance) we would need to see how you are adding the landscape, road and road lines to the scene. I am assuming you are achieving a road animation effect using a material animation but we need to see that mechanic too.

If your road or lines are separate 3D shapes with semi transparent materials then the order they are added to the scene will determine some transparency effects. Just guessing here. Need much more info.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Birdasaur

79204008

Date: 2024-11-19 15:25:32
Score: 2.5
Natty:
Report link

If you're using Servlets, need to put this instruccion into the start of any functions that you're using (proccessRequest, doGet or doPost):

request.setCharacterEncoding("UTF-8");

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

79204005

Date: 2024-11-19 15:24:32
Score: 2
Natty:
Report link

My bad....Nitro was throwing errors because a child component made a reference to 'window', which is not present on the server. And the content was not rendered on the server because my entire code was wrapped in

Fixing these 2 things made it all work.

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

79204003

Date: 2024-11-19 15:24:32
Score: 0.5
Natty:
Report link

I simplified @plaes answer (see below). Still recursive but easier to read and handles top-level lists/dicts, as well as mixed dict/list/suds combinations.

def pycast(o):
    if hasattr(o, '__keylist__'):
        return {k:pycast(v) for k,v in asdict(o).items()}
    elif isinstance(o, dict):
        return {k:pycast(v) for k,v in o.items()}
    elif isinstance(o, list):
        return [pycast(x) for x in o]
    else:
        return o
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @plaes
Posted by: textral

79204001

Date: 2024-11-19 15:23:31
Score: 0.5
Natty:
Report link

From what I've read, nearbyWiFiDevices and Local Network permissions are different permissions.

If you take a look at Permission enum documentation, it says that this permission is available only on Android 13+(i.e not on iOS).

Here is an Apple article explaining what is Local Network permission.

https://support.apple.com/en-us/102229

And here is a way to "control" when to show a Local Network permission dialog. https://developer.apple.com/forums/thread/663768

As for the best package for AP connection, you are pretty much using it already. In my experience, the connection you make is spotty, specifically the part when you connect to an AP. The next best thing is to create a connection method yourself using native code, unfortunately.

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

79203994

Date: 2024-11-19 15:22:31
Score: 1
Natty:
Report link

As the helper message said, are you sure django is installed ? do you use virtualenv ? You can verify if django installed by :

django-admin --version

If you are using virtualenv make sure it has been activated. Otherwise, if django is installed but still not detected, try to add python libraries to PATH :

export PYTHONPATH=${PYTHONPATH}:/Installed/library/Python/to/site-packages
source ~/.bash_profile
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: khalidgt

79203981

Date: 2024-11-19 15:20:30
Score: 3
Natty:
Report link

In case anyone is still having problems with this, I found when I was not signed into chrome, the permission check did not work correctly, leading to no video. If you're using Visual Studio, the default debug Chrome will not have a user. Logging in, incognito, or switching to a different browser seems to work.

Reasons:
  • Blacklisted phrase (1): did not work
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Travis E Miller

79203979

Date: 2024-11-19 15:19:29
Score: 7.5 🚩
Natty:
Report link

CopyArgumentError - [Xcodeproj] Unable to find compatibility version string for object version 70. I am getting this error when trying to use it. Anyone know how to fix it?

CocoaPods Error: Unable to find compatibility version string for object version '70' after adding Share Extension

Reasons:
  • Blacklisted phrase (1): I am getting this error
  • RegEx Blacklisted phrase (1.5): how to fix it?
  • RegEx Blacklisted phrase (1): I am getting this error
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Edon Freiner

79203977

Date: 2024-11-19 15:18:29
Score: 1.5
Natty:
Report link

Thanks for your question! Such a channel is not (to our knowledge) physically possible, because this additional Hilbert space must have always existed.

It is not that your channel creates this Hilbert space, but that it maps a state which was originally confined to a subspace (i.e. $H_A$) to the entire space (i.e. $H_A\otimes H_B$).

Therefore, to construct this channel, represent your original state in this new, enlarged space (essentially by adding zeros), and define your Kraus operators over the same.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: marzchipane

79203976

Date: 2024-11-19 15:17:29
Score: 1
Natty:
Report link

Answer: many of the functions defined in windows.h are actually macros that resolve to some related name with a suffix. So windows.h gets very unhappy if you try to redefine its macros, but it works fine to undefined them afterward:

#include <windows.h> 
#include <mmsystem.h>
#undef GetCursor

Worked like a charm.

Reasons:
  • Blacklisted phrase (1): Worked like a charm
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Joymaker

79203968

Date: 2024-11-19 15:16:28
Score: 1
Natty:
Report link

I had the same issue when I had leftover <%= javascript_include_tag("turbo", type: "module") %> directives in my code.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Irina Lindt

79203955

Date: 2024-11-19 15:14:27
Score: 4.5
Natty:
Report link

Answering here, incase any one else facing the same issue.

  1. The HttpSession was not getting invalidated cause the JSESSIONID was not coming in the logout request due to the SameSite changes happened. So need to configure this.
  2. The Logout response was not being sent cause of the X-Frame-Options: Deny set by the spring security. https://docs.spring.io/spring-security/reference/features/exploits/headers.html#headers-frame-options so cause of this it was not setting the responses in my case.
Reasons:
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sasirekha Kumaran

79203950

Date: 2024-11-19 15:11:26
Score: 4
Natty:
Report link

CockroachDB has trigger support in public preview starting next week (Nov 2024). https://www.cockroachlabs.com/docs/v24.3/triggers.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: jhatcher9999

79203939

Date: 2024-11-19 15:07:25
Score: 1
Natty:
Report link

Converting a website into a mobile application can be done efficiently using several approaches. The choice depends on the complexity of the website, your target audience, and the desired features of the app.

  1. Progressive Web App (PWA)

A PWA is a mobile-friendly version of your website that behaves like an app when accessed from mobile devices.

Optimize your website for mobile responsiveness. Use service workers to enable offline functionality. Add a manifest.json file to define the app's name, icon, and display properties. Deploy and test the PWA.

Advantages: Works across all platforms without needing separate development for iOS or Android.

This is one of the method we use.

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

79203934

Date: 2024-11-19 15:06:24
Score: 6.5 🚩
Natty: 5
Report link

I am also facing the same issue, i think the issue is with sourcemapping. i saw in some post mapping the launch.json to output directory ( dist )

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: abhishek hegde

79203929

Date: 2024-11-19 15:05:23
Score: 4.5
Natty:
Report link

Does this problem still persist in material date picker if so,

Ngmodel binding is not working here in your example any idea?

Reasons:
  • Blacklisted phrase (1): any idea?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
Posted by: Sharad

79203924

Date: 2024-11-19 15:04:23
Score: 1
Natty:
Report link

validateRecord routine just allows you to raise exceptions/errors or override. Also you can try to change the content of local fields, but it will not allow you to change CORE records. As it is mentioned in previous answer, you need to implement defaultFieldValues method to make changes on record. 2 important point with respect L3 Java Extensibility:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Paúl Pasquel

79203922

Date: 2024-11-19 15:02:22
Score: 1.5
Natty:
Report link

Asked for help on the streamlit forums and got a great answer: https://discuss.streamlit.io/t/mocking-out-a-postgres-connection-in-session-state-with-pytest-monkeypatch/85907/9

The gist is to organize the session into multiple classes instead of a nested one.

class FakeSession:
    def __enter__(self):
        return self

    def __exit__(self, exc_type, exc_value, traceback):
        return None

    def execute(self, statement):
        return [[100]]

    def commit(self):
        pass


class FakeConnection:
    session = FakeSession()


class FakeSessionState:
    conn = FakeConnection()


class Test_Burger:
    def test_flip_burger(self, monkeypatch):
        fake_session_state = FakeSessionState()
        monkeypatch.setattr(st, "session_state", fake_session_state)
        borger = Burger()
        assert borger.flip_burger() == ["100"]
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lunchbox7804

79203910

Date: 2024-11-19 14:59:22
Score: 3
Natty:
Report link

@TargetApi(23) void solicitarPermisos(){ if (ContextCompat.checkSelfPermission(this,permiso) != PackageManager.PERMISSION_GRANTED) { // Should we show an explanation? if (shouldShowRequestPermissionRationale( Manifest.permission.READ_EXTERNAL_STORAGE)) { // Explain to the user why we need to read the contacts } requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1); // MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE is an // app-defined int constant that should be quite unique return; } }

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Epic LL

79203899

Date: 2024-11-19 14:55:20
Score: 6 🚩
Natty: 6.5
Report link

I have a question over the same. where do I declare the $sheet variable so that iam able to call the setcolumn method. like $sheet=? where do I do this?

Reasons:
  • Blacklisted phrase (1.5): I have a question
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jay

79203893

Date: 2024-11-19 14:54:20
Score: 0.5
Natty:
Report link

Try this

Path path = Paths.get("your path");
Files.createDirectories(path.getParent());
Files.createFile(path);
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Piroman

79203892

Date: 2024-11-19 14:54:20
Score: 2.5
Natty:
Report link

You can resolve this by extending the Window interface to include cookieStore. Create a declaration file (e.g., window.d.ts) and add declare global { interface Window { cookieStore: CookieStore; } }. This will let TypeScript recognize the API and compile correctly.

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

79203890

Date: 2024-11-19 14:53:19
Score: 0.5
Natty:
Report link
var svg = '<svg xmlns="http://www.w3.org/2000/svg" width="0.6cm" height="0.6cm"><g style="fill-opacity:0.7; stroke:black; stroke-width:0.2em;"><circle cx="0.3cm" cy="0.3cm" r="9" style="fill:yellow;" transform="translate(0,0)"/></g></svg>';
      svg = btoa(svg);

An example of circle created in javascript

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

79203887

Date: 2024-11-19 14:52:19
Score: 1.5
Natty:
Report link

See: Deploying Angular SSR (v17, 18 & 19)Websites on AWS Lambda

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

79203878

Date: 2024-11-19 14:50:19
Score: 2
Natty:
Report link

The same question asked by the same person, but the answer accepted is different, it is good to share it here too. Here: https://serverfault.com/questions/487006/redirecting-all-sub-pages-to-another-subpage-using-htaccess?newreg=b825d1fee10b48cba7366e740c21b770

Please give credit to Laetitia on original post:

RedirectMatch 301 /answer-now/.* http://www.itdost.com/questions

I would add that if you need to rewrite multiple subsub /answer-now/Food/burger to http://www.itdost.com/questions/, you will need to add \/.* at the end.

RedirectMatch 301 /answer-now/.*\/.* http://www.itdost.com/questions
Reasons:
  • RegEx Blacklisted phrase (2.5): Please give
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: MaxiGui

79203873

Date: 2024-11-19 14:49:18
Score: 1
Natty:
Report link

I found the answer in this stackoverflow page In my case It worked by importing the module MatMenuModule in myCompoenent.modules.ts

import {MatMenuModule} from '@angular/material/menu';

@NgModule({
    imports: [
      MatMenuModule,
... ]
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): It worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nohaSan

79203869

Date: 2024-11-19 14:47:17
Score: 5.5
Natty:
Report link

This is frequently an issue with the file format. Is the icon an .ico file?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aaron James

79203866

Date: 2024-11-19 14:46:17
Score: 1.5
Natty:
Report link

Why isn’t the Livewire component responding to the broadcasted event even though the event is being successfully received by the browser?

It may be a namespace issue, try adding a dot prefix to the event in the getListeners() function:

public function getListeners(): array
{
        return [
        "echo:marketplace-listings,.marketplace-listing-created" => 'refreshListings',
    ];
}

as explained here: Livewire not responding to Model Broadcast Events #4831

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why is
  • Low reputation (1):
Posted by: Gabriel

79203863

Date: 2024-11-19 14:46:17
Score: 3
Natty:
Report link

I Found an ugly way to solve that.

Doxygen Comment upon the function

Hover the Doxygen commented function

Maybe the @brief cause the issue.

Doxygen Comment Without @Brief

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dy镝

79203858

Date: 2024-11-19 14:43:17
Score: 2.5
Natty:
Report link

Move the pay action into the success part of loading the sound file, after changing this its working my end.

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

79203857

Date: 2024-11-19 14:43:17
Score: 0.5
Natty:
Report link

as i searched it seems that asComposeImageBitmap() is only available in iosMain module . so we should define separate files .

in commonMain:

@Composable
expect fun rememberBitmapFromBytes(bytes: ByteArray?):ImageBitmap?

in iosMain:

@Composable
actual fun rememberBitmapFromBytes(bytes: ByteArray?): ImageBitmap? {
    return remember(bytes) {
        if (bytes != null) {
            Bitmap.makeFromImage(Image.makeFromEncoded(bytes)).asComposeImageBitmap()
        } else {
            null
        }
    }
}

in androidMain:

@Composable
actual fun rememberBitmapFromBytes(bytes: ByteArray?): ImageBitmap? {
    return remember(bytes) {
        if (bytes != null) {
            BitmapFactory.decodeByteArray(bytes,0,bytes.size).asImageBitmap()
        } else {
            null
        }
    }
}

so the org.jetbrains.skiko can just be used in ios module

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

79203849

Date: 2024-11-19 14:40:16
Score: 2.5
Natty:
Report link

I suggest you using html2canvas library instead. It will make the screenshot only of the current window. You cannot do this via Screen Capture Api. https://html2canvas.hertzen.com/

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

79203842

Date: 2024-11-19 14:39:15
Score: 2.5
Natty:
Report link
   // I am having the same problem using tailwindCss with React currently.
    
    /I have an EJS Project I'm currently working on and I am using tailwindCss and It's working here's what the Tailwindconfig file looks like 
    
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./public/**/*.{js,css}",
    "./views/**/*.ejs",
    "./node_modules/tw-elements/js/**/*.js",
  ],
  darkMode: "class",
  plugins: [require("tw-elements/plugin.cjs")],
};

   //your Vscode might give you a suggestion to change to ES lint version , you can choose to ignore it or do it . It should work. Here's my postcss file config 

export default {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same problem
  • Low reputation (1):
Posted by: Okoro Daviz Ezichi

79203831

Date: 2024-11-19 14:35:14
Score: 1
Natty:
Report link

I discovered something after struggling with a similar issue where the git graph button in the source control panel went missing. In VSCode user settings, there is an option called SCM: Provider Count Badge. This was set to none.

The setting says "Controls the count badges on Source Control Provision headers. These headers appear in the Source Control view when there is more than one provider or when the SCM: Always Show Repositories setting is enabled, and in the Source Control Repositories view."

When I changed this from "None" to "Auto", the Git-Graph button showed up again within the source control menu to the left of the three dot 'more actions..." button.

Took me forever to figure this out so hopefully this helps someone out.

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

79203819

Date: 2024-11-19 14:33:14
Score: 1
Natty:
Report link

Asked the same question in the Firebase Google group. Seems like the Firebase team will update the server certificate on their end:

You are correct. Firebase servers will handle these updates.

https://groups.google.com/g/firebase-talk/c/KM9qydwykyg/m/V130qhduAQAJ

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Woof

79203815

Date: 2024-11-19 14:31:13
Score: 1
Natty:
Report link

As Richard Hipp from the SQLite forum has told me:

You cannot use a WITHOUT ROWID table as an external content table. The external content table must be a rowid table. The "content_rowid=" argument to FTS5 must refer to a column of type INTEGER PRIMARY KEY. If you make the "content_rowid=" refer to a TEXT PRIMARY KEY column, it won't work.

Removing the WITHOUT ROWID and content_rowid=path fixes the issue.

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

79203784

Date: 2024-11-19 14:24:11
Score: 3
Natty:
Report link

I also started to have this issue latelly, I dont know how to fix.. the solution i found was running

ng test --browsers=Chrome --source-map=true

and then debug in the chrome dev tools

Reasons:
  • RegEx Blacklisted phrase (2): I dont know how to fix
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: pazBR

79203778

Date: 2024-11-19 14:22:10
Score: 0.5
Natty:
Report link

In Oracle, AUTHID is a clause that used in declaration of PL/SQL stored procedures, functions, and packages to specify the execution of the code.

It indicate whether the PL/SQL code executes with the privileges of the definer or executer user.

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

79203772

Date: 2024-11-19 14:20:10
Score: 1
Natty:
Report link

The utcnow is deprecated

Replace this

datetime.utcnow()

With this

from datetime import datetime, timezone

datetime.now(timezone.utc)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Oussama Bouchikhi

79203767

Date: 2024-11-19 14:18:09
Score: 2
Natty:
Report link

Make sure that the columns used in your WHERE clause have indexes.

Ensure date column is using the correct format amd ensure that SQL Server isn't performing a type conversion that could affect the performance.

You can also add an ORDER BY clause and ensure it has a index.

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

79203764

Date: 2024-11-19 14:17:09
Score: 2.5
Natty:
Report link

When you build Docker image, then it is built for the architecture of the machine on which the build process was running.

So what you try to do is running the WS GW Interface script, based on broken dependencies...

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

79203749

Date: 2024-11-19 14:14:08
Score: 4
Natty: 4.5
Report link

disable right click on web page using JavaScript Like this site

https://www.watchbandexpert.com/collections/tissot/products/tissot-t063610-rose-gold-steel-watch-band-bracelet

https://www.watchbandexpert.com/

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Emad Kamel

79203741

Date: 2024-11-19 14:12:07
Score: 0.5
Natty:
Report link

Don't test this method. It actually doesn't have any logic. It's also not some business domain method. Don't test it. You don't have to have 100% test coverage. It's quite bad practice.

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

79203736

Date: 2024-11-19 14:10:06
Score: 1.5
Natty:
Report link

It seem to be logged for the incoming requests, most likely to later identify and fix the issues with the service. So, by sending random-random user agents you would make their work a little harder. You might also get banned for not complying with the service requirements. I suppose a random string is ok for one off testing, but for a regularly used script or a tool you better construct an actual user-agent string that identifies it.

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

79203732

Date: 2024-11-19 14:09:06
Score: 0.5
Natty:
Report link

In my case device had no free memory left on device to install new build.

I could run the build unless uninstalling previous app.

Even running the build from XCode did not show this as error reson.

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

79203730

Date: 2024-11-19 14:09:06
Score: 1
Natty:
Report link

You could try exporting the cert and importing it to the current user's trusted certification store, per the instructions in Method 2 here (might need to add an extra snap-in for the current user):

https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/installation/warnings-untrusted-certificate

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

79203719

Date: 2024-11-19 14:07:06
Score: 3.5
Natty:
Report link

try to give a .frame(width: size, height: size) to your expanded stack

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

79203716

Date: 2024-11-19 14:05:05
Score: 0.5
Natty:
Report link

iOS 16+ update

    if let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
       let window = scene.windows.first,
       let rootViewController = window.rootViewController {
        rootViewController.dismiss(animated: true, completion: nil)
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kadir

79203712

Date: 2024-11-19 14:04:05
Score: 1.5
Natty:
Report link

I had a similar issue because my ElasticClient had no

.EnableApiVersioningHeader()

Specified in its settings.

After this line was added, the error disappeared.

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

79203709

Date: 2024-11-19 14:04:05
Score: 0.5
Natty:
Report link

You absolutely can have both and x64 architecture will be prioritized if the code was built for AnyCPU. You should have this is mind for the following dev story :

I just experienced a lot of debugging on my side relevant to this question. .NET runtimes can make a difference whether they were installed for x64 or x86 for C++/CLI applications.

For days I looked around on why my program was working on machines of programmers but not on users' machines, and the cause was found to be that Visual Studio downloads both runtimes, but an install via the .NET website only downloads one, and most of the time you will use x64. But for my case, I needed x86 as the library I was creating was to be used for legacy x86 code.

Note : the dotnet command will most likely only show you x64 installs, as the PATH probably prioritize x64 paths.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alecsou

79203695

Date: 2024-11-19 14:01:04
Score: 1.5
Natty:
Report link

I had the same error code and the problem was the wrong snowflake account. But it was not through the Jupyter.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Marosinho

79203694

Date: 2024-11-19 14:01:04
Score: 1.5
Natty:
Report link

Did some more digging and found the following solution

var selfJoin = 
    from child in Context.GlobalDocumentClassification
    from parent in Context.GlobalDocumentClassification
    select new { child, parent };

var query = from item in selfJoin
    where item.child.HierarchyId.IsDescendantOf(item.parent.HierarchyId) &&
        EF.Constant(ids).Contains(item.parent.Id)
    select item.child.Id;

code

This produces SQL-Server cross join query and allows for the use of IsDescendantOf() in the queries where clause.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Did some
  • Low reputation (0.5):
Posted by: Norbert Hüthmayr

79203685

Date: 2024-11-19 13:58:03
Score: 1
Natty:
Report link

Thanks for the comments on the post, and the answer provided above. I used a combination of the two to come to a solution which works great. For geom_label_repel() and geom_label(), I used a label = ifelse() statement rather than filtering the data itself. Thanks again to the commenter and the proposed answer for helping me solidify this result.

# Set repel threshold
threshold <- 0.055

# Plot
survey %>% 
  ggplot(aes(x = pct, y = 1, fill = fct_rev(answer))) +
  geom_col(color = "black") +
  theme_minimal() +
  scale_x_continuous(labels = label_percent(),
                     # Expand so the labels aren't off-plot
                     expand = expansion(mult = c(0.025, 0.025))) +
  scale_y_discrete(labels = NULL) +
  geom_label_repel(aes(label = ifelse(pct < threshold, percent_format(accuracy = 1)(pct), NA),
                       color = fct_rev(answer)),
                   fill = "white",
                   size = 3.25,
                   fontface = "bold",
                   label.size = 1,
                   label.r = unit(2.5, "pt"),
                   show.legend = FALSE,
                   na.rm = TRUE,
                   position = position_stack(vjust = 0.5, reverse = FALSE),
                   # Set direction so that repel is only "up" or "down" on plot
                   direction = "y",
                   # Set ylim to prevent labels going off the bar
                   ylim = c(.6, 1.3),
                   # Set seed so they always place in same position
                   seed = 12345
  ) +
  geom_label(aes(label = ifelse(pct >= threshold, percent_format(accuracy = 1)(pct), NA),
                 color = fct_rev(answer)),
             fill = "white",
             size = 3.25,
             fontface = "bold",
             label.size = 1,
             label.r = unit(2.5, "pt"),
             show.legend = FALSE,
             na.rm = TRUE,
             position = position_stack(vjust = 0.5, reverse = FALSE),) +
  scale_fill_manual(values = c("tomato4", "tomato", "royalblue", "royalblue4")) +
  scale_color_manual(values = c("tomato4", "tomato", "royalblue", "royalblue4"), guide = "none") +
  guides(fill = guide_legend(position = "bottom", nrow = 2, reverse = TRUE)) +
  labs(
    title = NULL,
    subtitle = NULL,
    caption = paste("Respondents N =", survey[1,]$respondents),
    fill = NULL,
    color = NULL,
    x = NULL,
    y = NULL
  )

fixed plot with correctly repelled labels

It also ended up working for all 20-ish plots in my .Rmd file, with some modifications here and there to the seed = argument to get them to place where I wanted.

final plot from my document

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: Morrigan

79203683

Date: 2024-11-19 13:57:02
Score: 1
Natty:
Report link

Goto: ...\google-cloud-sdk\lib\googlecloudsdk\command_lib\util\ssh\ssh.py

Change this line from:

if platforms.OperatingSystem.IsWindows():

to this:

if not platforms.OperatingSystem.IsWindows():

now it let you connect using system's ssh.

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

79203682

Date: 2024-11-19 13:57:02
Score: 3.5
Natty:
Report link

I’m also encountering the same issue while creating a virtual machine. It requires enabling the Computer/cloud Engine API, but after that, it shows a billing account issue.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vishal Rathod

79203678

Date: 2024-11-19 13:55:02
Score: 0.5
Natty:
Report link

I hope this can help someone else. All the settings were correct on GCP. I just never realized that I needed to update the URI to reflect that I was using the private endpoints. I had to go to MongoDB to obtain the new URI (in my case, replacing cluster1 for cluster1-pl-0) and then I had to go to GCP Secrets Manager in order to create a new version of the URI. As simple as that.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): hope this can help
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Lenni

79203676

Date: 2024-11-19 13:54:02
Score: 1
Natty:
Report link

Yes, you can reduce or filter options in a question based on a previous answer in Google Forms using the "Go to section based on answer" feature or conditional logic. Here's how you can do it:

Method 1: Using "Go to section based on answer" Create multiple sections in your form for different sets of questions.

Click on the "Add section" button (two horizontal lines) to create a new section for the next set of questions. Create the first question that will determine the options for the next question. For example, a multiple-choice question asking "What type of product are you interested in?"

Set up conditional logic for the second question:

In your form, add a new question (e.g., a dropdown or multiple-choice question) that will display different options based on the answer to the first question. Click on the three dots (⋮) on the bottom-right of the first question and select "Go to section based on answer." For each option in the first question, specify which section should follow, based on the user's response. Customize the second question in each section to show relevant options based on the first answer.

Example:

If the first question asks "What type of product are you interested in?" and you have options like "Electronics" and "Clothing," you can create separate sections for each type. In the "Electronics" section, ask about specific electronic products, and in the "Clothing" section, ask about clothing-related questions. Method 2: Using "Response validation" and hidden sections for dynamic filtering Though Google Forms doesn't allow dynamically hiding individual options in a multiple-choice or dropdown question based on a prior answer (like some other platforms), you can set up your form structure with sections and conditional navigation, as described above.

By combining sections and navigating between them based on responses, you can effectively "filter" the next set of options for the user.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tech Traveller Mallesh

79203670

Date: 2024-11-19 13:53:01
Score: 6 🚩
Natty: 6
Report link

Thx a lot!! Was wondering... it used to have a transfer button but now the video tag doesn't.

Reasons:
  • Blacklisted phrase (1): Thx
  • Blacklisted phrase (2): Was wondering
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Liz Rodrigues

79203664

Date: 2024-11-19 13:51:00
Score: 1.5
Natty:
Report link

For anyone who is also seeing their vertical lines being not drawn at all, or being drawn in the wrong place (particularly in number-based line graphs), if you specify labels then your value or xMin/xMax must be an index value of the closest matching label.

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

79203650

Date: 2024-11-19 13:47:59
Score: 2.5
Natty:
Report link

Is this sticky session only work with alb.ingress.kubernetes.io/target-type: ip. What about type instance? I'm using AWS alb ingress controller. And in the ingress.yaml file I have added all the required annotations required for sticky session except the target type annotation.

Ps: my stickiness is also working working. But it is enabled in ingress yaml file

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: Abhijith

79203649

Date: 2024-11-19 13:47:59
Score: 1.5
Natty:
Report link

Resolved by following steps

Remove the build and .cxx folder in the android/app/ directory.

Run the command in terminal:

Change in file

Run the project :

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rahul Siwal

79203642

Date: 2024-11-19 13:44:58
Score: 8
Natty: 7
Report link

Hey bro did you manage to fix it ?? I have the same erro

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to fix it
  • RegEx Blacklisted phrase (1.5): fix it ??
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Filipe

79203630

Date: 2024-11-19 13:40:57
Score: 0.5
Natty:
Report link

In my case device had no free memory left to install new build.

I could run the build unless uninstalling previous app.

Even running the build from XCode did not show this as error reson.

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

79203627

Date: 2024-11-19 13:40:57
Score: 2
Natty:
Report link

This is the answer if it's just a response without any other key-value pairs, but just the bearer token as a response.

   let data =res.body ;
    bru.setEnvVar("token",data);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: TylerBalaskovitz

79203626

Date: 2024-11-19 13:39:56
Score: 1.5
Natty:
Report link

to integrate telegram login functionality into a react native app, you can use telegram official Widget for logging in with Telegram along with web based authentication

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sumit Singh

79203625

Date: 2024-11-19 13:39:56
Score: 1
Natty:
Report link

p-values are also calculated for models estimated using the library ordinal:

Install and load the package

if (!require(ordinal)) install.packages("ordinal")

library(ordinal)

Fit an ordinal logistic regression model using clm()

ologit_model <- clm(response_var ~ predictor1 + predictor2, data = your_data)

Summary of the model

summary(ologit_model)

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Rolando Gonzales

79203614

Date: 2024-11-19 13:36:56
Score: 0.5
Natty:
Report link

Like most vendors.. they don't want you doing this yourself.

Communication The LIS/HIS function of BC-30s enables the communication between the analyzer and the PC in laboratory through Ethernet, including sending analysis results to and receiving worklist from PC. The LIS/HIS communication protocol involved in communication of BC-30s are 15ID and HL7. For details about the connection control, and the introduction, message definition and examples, please contact Mindray Customer Service Department or your local distributor.

This was taken from https://keul.de/media/pdf/mindray/BC-30s_handbuch.pdf

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

79203611

Date: 2024-11-19 13:35:55
Score: 2
Natty:
Report link

I would suggest it is not good practice to set the NOTCOUNT to OFF at the end of the procedure. Firstly it is not necessary as it is scope based, and secondly there is no way of telling what it was before we set it to NOCOUNT ON so arbitrarily setting it to the default OFF could actually be misleading as well as being totally unnecessary and bloating the code.

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

79203582

Date: 2024-11-19 13:26:53
Score: 2.5
Natty:
Report link

QRGEncoder qrgEncoder = new QRGEncoder(preSharedKey, null, QRGContents.Type.TEXT, smallerDimension); ServerSocket server = new ServerSocket(6678); Socket socket = server.accept();

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

79203580

Date: 2024-11-19 13:25:53
Score: 1.5
Natty:
Report link

Sorry, I downloaded and used go version go1.23.0 windows/386 by mistake. I used echo %PROCESSOR_ARCHITECTURE% to check my CPU architecture as amd64. After I reinstalled the go language for amd64 and checked go env, my fuzzy query no longer reported this error. And it is consistent with the document results. Very important sentence: Go fuzzing with coverage instrumentation is only available on AMD64 and ARM64 architectures currently.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 李晓川

79203570

Date: 2024-11-19 13:21:52
Score: 1.5
Natty:
Report link

Use the below dockerfile and run the command

FROM microsoft/iis:latest RUN powershell c: mkdir volume RUN powershell -NoProfile -Command Remove-Item -Recurse C:\inetpub\wwwroot* WORKDIR /inetpub/wwwroot COPY content/ . EXPOSE 80

docker run -d -h containername -v C:\Users\admin\Desktop\iis-demo\content:C:\volume -p 2001:80 dockerimage

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

79203569

Date: 2024-11-19 13:20:52
Score: 1.5
Natty:
Report link

The project requires being built using .Net Standard 2.0 as a framework. Any newer framework will make any generators unable to run.

Switching my existing .Net 8 project failed to get the analyzers to run so instead I created a new project and followed Andrew Lock's guide (found here: https://andrewlock.net/creating-a-source-generator-part-1-creating-an-incremental-source-generator/) to format the .csproj file, re-added the generators from my previous project and included this new project as a reference in the project that contains the attribute it looks for. After these steps it was able to analyze the project and output the expected code.

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

79203565

Date: 2024-11-19 13:18:51
Score: 1
Natty:
Report link

None of the answers so far address an important part of the question, i.e. that only a fixed number of deadlocks are to occur. This allows the user to test whether their retry algorithm will succeed after a certain number of attempts. To the technique shown by others for creating deadlocks, I've added a technique for creating autonomous transactions so that I can decrement a counter in a trigger without it being rolled back. There are a few steps to this, but all of them are simple and straightforward, and none of them require you to alter your production code.

Apologies for the poor code formatting, I tried!

  1. Create the proc create_deadlock as per https://sqlperformance.com/2013/11/t-sql-queries/single-tx-deadlock

CREATE proc create_deadlock as begin -- Always run this in a transaction, otherwise it will run to -- completion and you'll get an unwanted type created. if @@TRANCOUNT < 1 begin raiserror('create_deadlock should be run in a transaction', 16, 1); return 50000; end

DECLARE @sqlText NVARCHAR(256);
SET @sqlText =
'CREATE TYPE dbo.UNWANTED_TEMP_TYPE FROM VARCHAR(320);'
EXEC (@sqlText);
SET @sqlText =
'DECLARE @x TABLE (e dbo.UNWANTED_TEMP_TYPE);'
EXEC (@sqlText);

end

  1. Create a table to hold the number of deadlocks you want on a given table:

    CREATE TABLE deadlock_limits( TableName sysname NOT NULL, Limit int NULL, CONSTRAINT pk_deadlock_limits PRIMARY KEY CLUSTERED ( TableName ASC ) ) ON PRIMARY

  2. Create a proc to update deadlock_limits:

    create procedure set_deadlock_limit @TableName sysname, @Limit int as begin

     set nocount on;
    
     update deadlock_limits set Limit = @Limit where TableName = @TableName;
     if @@ROWCOUNT = 0
         insert into deadlock_limits (TableName, Limit) values (@TableName, @Limit);
    

    end

  3. Create a loopback server, so we can create autonomous transactions, as per https://learn.microsoft.com/en-us/archive/blogs/sqlprogrammability/how-to-create-an-autonomous-transaction-in-sql-server-2008:

    EXEC sp_addlinkedserver @server = N'loopback',@srvproduct = N' ',@provider = N'SQLNCLI', @datasrc = @@SERVERNAME EXEC sp_serveroption loopback,N'remote proc transaction promotion','FALSE'

  4. Enable RPC for your loopback server in Linked Server Properties, as per https://stackoverflow.com/a/55797974/10248941

  5. Create a trigger on a table that your calling code will attempt to update. A deadlock will occur when you attempt the update:

    CREATE TRIGGER test_force_deadlock_on_MyTable ON dbo.MyTable AFTER INSERT,DELETE,UPDATE AS BEGIN

     set nocount on;
    
     -- Read the deadlock_limits table to see if there is a limit on how many deadlocks to create.
     -- If the limit is null, this means no limit.
     declare @num_locs int;
     select @num_locs = Limit from deadlock_limits where TableName  = 'MyTable';
    
     if @num_locs is null or @num_locs > 0
     begin
         if @num_locs > 0
         begin
             declare @NewLimit int = @num_locs - 1
             exec loopback.CertEaseEthigen_set_deadlock_limit 'MyTable', @NewLimit;
         end
         -- Force a deadlock
         exec create_deadlock;
     end
    

    END

And that's it. To test how your calling code handles deadlocks, set the number of deadlocks you want in deadlock_limits and enable the trigger:

exec set_deadlock_limit 'MyTable', 1
alter table MyTable enable trigger test_force_deadlock_on_MyTable

The trigger will decrement the Limit in the deadlock_limits table each time it runs. Because it calls set_deadlock_limit via the loopback server, the new value of Limit will not be rolled back. Each time you attempt the write the Limit counter will decrement, and it when it reaches zero your write will succeed:

update MyTable set Number = 1;  -- First time fails with a deadlock
update MyTable set Number = 1;  -- second time succeeds

When you are done testing, you need only disable the trigger:

alter table MyTable disable trigger test_force_deadlock_on_MyTable
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @TableName
  • User mentioned (0): @Limit
  • User mentioned (0): @server
  • User mentioned (0): @datasrc
  • Low reputation (0.5):
Posted by: Rik Bradley

79203564

Date: 2024-11-19 13:18:51
Score: 0.5
Natty:
Report link

Inspired by @daniel-l-vandenbosch, I'd prefer this one, without overloading ;-)

CREATE OR REPLACE FUNCTION iif(condition boolean, true_result anyelement, false_result anyelement)
    RETURNS anyelement
    LANGUAGE SQL
    IMMUTABLE PARALLEL SAFE AS
'SELECT CASE WHEN condition THEN true_result ELSE false_result END';

This is using ANYELEMENT instead of TEXT, so it should work with more datatypes without casting/conversion.

Also added immutable and parallel safe to improve performace.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @daniel-l-vandenbosch
Posted by: frankhommers

79203558

Date: 2024-11-19 13:17:51
Score: 0.5
Natty:
Report link

type 'String' is not a subtype of type 'int' of 'index' generally faced when you try to access a value from a map or list where the key or index is expected to be of type int, but you're providing a String (or vice versa). In your code, the problem is likely with how the API response data is being parsed in the fetchSertifikasi method.

Possible issue can be:

In fetchSertifikasi, you're returning response.data['data'], assuming it contains a list of dynamic objects (like maps). However, in your main project, the data field might not have the expected structure, or some fields (e.g., id_sertifikasi) might not have the correct data type (e.g., being a String instead of an int).

Debuging steps

Step 1: Log the response from the API to see its exact structure and confirm data types.

Step 2: Ensure Consistent Data Types If the API is returning id_sertifikasi as a String instead of int, you should modify how you handle this data.

Step 3: Check JSON Parsing If you expect specific data types from the API, use a model class to parse and validate the JSON

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

79203545

Date: 2024-11-19 13:12:50
Score: 2.5
Natty:
Report link

the problem is mainly your python version so

in your bash

deactivate your environment with :

conda deactivate

then create a new environment :

conda create -n env python=3.8

activate it :

conda activate env

now install tensorflow :

conda install tensorflow

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

79203543

Date: 2024-11-19 13:11:50
Score: 2.5
Natty:
Report link

According to my textbook, two processes must have two pipes to achieve two-way communication. For the parent and child processes, this should also be true.

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

79203540

Date: 2024-11-19 13:11:50
Score: 3
Natty:
Report link

@Jonas thanks for the suggestion. This is my updated code and test ran successfully.

public async Task CreateTransaction_OnSuccess_ReturnStatusCode200()
{
    //Arrange
    var mockTransactionService = new Mock<ITransactionService>();
    var transactionRequest = TransactionFixture.CreateTransaction();
    var transactionResponse = new TransactionResDto { Status = true };
    mockTransactionService.Setup(service => service.CreateTransactionAsync(It.IsAny<TransactionReqDto>()))
                        .ReturnsAsync(transactionResponse);
    var mockTransactionController = new TransactionController(mockTransactionService.Object);
    //Act
    var result = (OkObjectResult) await mockTransactionController.CreateTransaction(TransactionFixture.CreateTransaction());
    //Assert
    result.Should().BeOfType<OkObjectResult>();
}
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Jonas
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Seyi Agboola

79203533

Date: 2024-11-19 13:07:49
Score: 3.5
Natty:
Report link

What if I'd like to have ssl set to true for serving the application, but false for e2e tests?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What if I
  • High reputation (-1):
Posted by: Donovant

79203532

Date: 2024-11-19 13:07:49
Score: 1
Natty:
Report link

From Spring Boot version 3.0 and above, Java 8 is no longer supported. If you wish to use Java 8, you must use Spring Boot version 2.x or earlier. Below is a compatibility list of Spring Boot versions and their supported Java versions:

Spring Boot Version Compatible Java Versions [1.x spring supports 6, 7, 8 version of java] [2.x spring supports 8, 9, 10, 11, 17 version of java ] [3.x spring supports 17 and above version of java ]

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