instruction
stringlengths
0
30k
I have to use Xcode 12.4 with macOS 10.15 Catalina for a while still for Development. **Is it possible to use `notarytool` instead of `altool`?** I have copied `notarytool` from Xcode 13.4 Developer Tools to my `usr/local/bin` folder. When I run in shell: xcrun notarytool submit myApp.zip I get this...
Merge (concat) all video file present in '43. DP (Part1)' and put it into '43. DP (Part1)' and give name merged (concat) file to folder name
|ffmpeg|video|python|video-conversion|
```SELECT cs._key, MAX(CASE WHEN LOWER(product) = 'electronics' AND LOWER(sub_product) = 'tv' THEN first_dt_bought END) AS first_dt_bought_tv, MIN(CASE WHEN LOWER(product) = 'electronics' AND LOWER(sub_product) = 'tv' THEN first_dt END) AS first_dt_tv, MIN(CASE WHEN LOWER(product) = 'electronics' AN...
How can I reduce table scan time in snowflake
|snowflake-cloud-data-platform|snowflake-schema|
filter() function not working within the for loop
null
null
Solid runs synchronously and can handle synchronous errors only but it does not mean that we can not handle asynchronous errors. There are multiple ways to do it, I will try to explain one by one from most basic to the more idiomatic way: 1. You can create a signal that tracks the state of the ongoing request, and ...
I am trying to pre populate a Joomla website form (RSForm!Pro) with information already entered by a registered user into the extension Event Booking by Ossolution Team. The RSForm!Pro allows pre population of online form fields with scripts called when form is opened. I have a simple query working as expected when ...
Problem with a simple query script used in RS Forms on Joomla 4
|php|sqlite|joomla|joomla-extensions|
null
Reading on the RxJs, it looks like all I need to do it temp.subscribe(x => this.myVal = x) this certainly seem to work at any rate. Update --- Even better, there is an instant method: `this.myVal = tranlate.instant("MYTESTVAL");`
I am working on a custom board with two IMX7ULP. The thing I'm trying to do seems quite simple, the A7 from one IMX7ULP send a signal to the M4 of the other IMX7ULP, just an electrical signal, one of the pin of the A7 as output, one of the pin of the M4 as input (PTA16), no special communication protocol. We manage to ...
Unable to use jsts types in a TypeScript project (for the browser)
You can not write anything to DOM when there is no DOM. Just like you can not put a sofa in your livingroom when there is no house yet. That means you have to check with ``this.isConnected`` if the element is attached to the DOM, in the ``set record`` method. Its an instance of a JavaScript class/object; You c...
``` const express = require('express'); const jwt = require('jsonwebtoken'); const passport = require('passport'); const localStrategy = require('passport-local').Strategy; const router = express.Router(); passport.use( new localStrategy(async (email , password , done)=>{ try{ const...
The "local" function in passport.authenticate is not being invoked for some reason
|node.js|backend|passport.js|passport-local|
Add the `-r` flag to output as raw text from `jq`. Here is an example using echo that gives the escaped results: ``` echo '{"fruit":{"name":"apple","color":"green","price":1.20}}' | jq -Rs # gives: "{\"fruit\":{\"name\":\"apple\",\"color\":\"green\",\"price\":1.20}}\n" ``` But adding `-r` gives a result that...
{"Voters":[{"Id":446594,"DisplayName":"DarkBee"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":5211833,"DisplayName":"Adriaan"}],"SiteSpecificCloseReasonIds":[18]}
I am migrating my deprecated spring security code and I am facing a problem : after the user's authentication (and he is authenticated), the spring contextHolder seems to be lost and the authentication vanishes. Therefore my connection does not work and the first api call redirects again to the login page I followed...
From your description, it appears to be the issue of your locales. Read `?locales` for more. You can have a test with this (read `?strptime` for various format, and pay special attention to those sensitive to locales): format(Sys.Date(), format = "%Y-%b-%d") # [1] "2016- 9月-06" The output has the mont...
Just installed vip-manager to manage PostgreSQL Patroni cluster' s relocateable cluster IP but vip-manager could not up virtual IP address Environment information RHEL 9.3 etcd Version: 3.4.31 patroni version 3.0.4 vip-manager 2.3.0 vip-manager configuration interval: 1000 trigger-key: "/pg_cluste...
patroni and vip-manager virtual ip problem
|patroni|
I want to create an MFA using the dedicated function in the FactoMineR package. However, certain variable modalities tend to strongly influence the final structure of the space. I would therefore like to make these modalities passive in this factor space calculation. I have the impression that, as with the MCAs, the ex...
How can passive terms be rendered in the calculation of an MFA in R?
|r|data-analysis|missing-data|factorial|factominer|
null
I have Ollama running in a Docker container that I spun up from the official image. I can successfully pull models in the container via interactive shell by typing commands at the command-line such as: `ollama pull nomic-embed-text` This command pulls in the model: nomic-embed-text. Now I try to do the same vi...
So I am just learning php and creating a OPG Clinic Management System as my first project. I am not watching any tutorials or reading books I am learning on the go. For example I didn't know what CRUD is until I needed to implement that in the System. Right Now I am facing an issue where I am unable to print only ...
|r|xlconnect|
I'm making a YouTube downloader. A bug has come up with playlists and I want it to check if the inputed link is a playlist. This is done by checking for the presence of "list". So, I copied my normal if statement and ran it, but it didn't like this: ```shell if "%link:list=%" == "%link%" goto Playlist ``` So I ...
"if contains" with forbidden special characters
|if-statement|batch-file|
null
IIRC, IntelliJ standard keyboard shortcut for undo is CTRL-SHIFT-Z, so what probably happened is you remapped the shortcut at some point and it just slipped your mind. The settings window can be found under File > Settings. CTRL+ALT+S should work if the shortcut hasn't been changed. In the settings window you should...
I just started learning Android Development and wanted to know that is there a way to make TextViews more creative. Like can we apply gradient filter or add shadows to it. I tried using some background color and other properties.
Can we create custom TextView in Android
|android|android-drawable|
null
With the following code: ```c++ #include <iostream> #include <cstdint> #define macro_rotate_right(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) uint32_t rotate_right(uint32_t x, uint32_t n) { return ((x >> n) | (x << ((sizeof(x) << 3) - n))); } uint32_t test1() { uint32_t input1; std::ci...
null
When I type "start" to open up a .txt file, it returns `/usr/bin/start: line 8: No such file or directory ` I guess it returns my whole path but idk. I have tried adding `C:\Windows\System32` to path but it doesn't work.
I need to upload file within multiple Object. I am able to upload single file or multiple file using Form data. below Sample is working fine. var form_data = new FormData(); form_data.Append("test","test") form_data.Append("test","test") form_data.Append("file",file) form_data.Append("file...
Upload multiple file with Ajax jQuery Using Json/Form data
|javascript|jquery|
**I'm trying to link to GLWF using GCC on Windows.** *I built the code locally on my computer, took the include and lib directories and deleted the rest of the files. Now I'm trying to link them to my code using a shell script and the gcc compiler.* **build.bat:** @echo off SET COMPILER_FLAGS= ...
null
|sql|sql-server|vb.net|crystal-reports|
null
queryPurchasesAsync returns a list of user Purchases. But it doesn't tell me actually which base plan was purchased or even which offer. It only has the top-level product ID. I have multiple base plans with multiple offers within a single product (I assumed that's how they want us to structure our subscriptions to ut...
i have some city like this: ``` In [99]: City.objects.filter(title='Hamilton') Out[99]: <QuerySet [<City: hamilton>] ``` i have some sentences like this: sentence = '3101A 1280 Main Street West Hamilton ON L8S 4K1' how can i find cities that contains its title with this sentence? Note: i have used this m...
query in objects with django orm with a containing sentence
|django|django-models|orm|django-orm|
``` java AvroParquetWriter.<GenericRecord>builder(filePath) .withSchema(schema) .withCompressionCodec(CompressionCodecName.SNAPPY) .withConf(Configuration) .withDataModel(GenericData.get()) .withWriteMode(Mode.OVERWRITE) .withRowGroupSize(8*1024*10124) .withPageSize(64*1024*1024) .build() ``` For `...
Here's a failing test: ```java // these are pretty basic dependencies so I won't include imports or pom @Test void testIfNoHeadersAreAddedToRequestImplicitly() { Mono<Map<String, Object>> responseMono = WebClient.builder() .baseUrl("https://httpbin.org") .build() .get() .uri("/headers") ...
How to remove integers from a mixed numpy array containing sub-arrays and integers?
|python|numpy|
This has been fixed for python 3.13 and appears to be back ported to 3.11 and 3.12 per the discussion on this pull request https://github.com/python/cpython/issues/90095#issuecomment-1989517207
I am developing a malware scanner for windows that needs to run in administrator mode for any user. Is it possible to schedule a task to run in administrator mode? Is there any code available?
schedule a task that runs as administrator privileges
|windows|task|administrator|
How can I record and playback mouse and keyboard events? I need this to capture the user interactions with my application so that later on I can playback to see what the user did.
I'm having trouble correctly rendering my quarto document to HTML - it renders, but my tables aren't appearing. I'm using `DT::datatable()` because I want to have the flexibility to sort/filter rows - there isn't the same problem if I render using `kable`. I have data from a large survey and I want to create a docum...
**You should use window functions** for this, it is likely far more efficient than joins. Unfortunately, `COUNT(DISTINCT` is not implemented for window functions, so you need to hack it with `DENSE_RANK` and `MAX` ```sql with ranked as ( select *, dense_rank() over (partition by column1 order by column...
{"Voters":[{"Id":18602882,"DisplayName":"Anish Nahar"}],"DeleteType":1}
{"Voters":[{"Id":1491895,"DisplayName":"Barmar"},{"Id":2399035,"DisplayName":"Lelio Faieta"},{"Id":18794826,"DisplayName":"Jonas Metzler"}]}
If you are not using brackets, you can simply change your algorithm, so that when the division operator is used, giving you a/b, you generate b and a/b to be integers, then a is simply the multiple of the 2. You can use the same approach for square roots
It looks like there might be an issue with the ECS agent on my ECS cluster. For the past two weeks, my ECS cluster with EC2 instances managed by auto scaling (launch templates) and capacity provider has been working fine. However, new instances are not being connected to the ECS cluster because the agent is not startin...
AWS ECS agent does not start in EC2 instance
|amazon-web-services|amazon-ec2|amazon-ecs|
You would say git rebase --onto staging develop feat in order to get "what I want to get". (This kind of move comes with a risk of merge conflicts but there's nothing you can do about that; any way of performing this move would entail the same risk.)
I have an ASP.NET Core 6 Web API. It is not using async. It was supposed to be a learning project, so I kept it simple, but now it's in production (woo). Because of this, I can't just rewrite the whole thing to use async. In the Log4net stuff we have a SMTP appender that sends an email whenever an error is logged. ...
I have a little chatbox on my website and it has a simple php code I've put together to check for any undesired tags, and also a sort of psuedo bbcode for basic color and bold and stuff. It saves the chat to a datatable on my server. My problem is that any time a user has an apostrophe it won't go through. Even when co...
How do I link to GLFW using gcc on windows?
|c|gcc|linker|glfw|
I found a workaround on GitHub in the repository [PY_LGPI](https://github.com/Gadgetoid/PY_LGPIO). You can update your Dockerfile as follows: ```Dockerfile FROM python:3.11 COPY blink.py ./ RUN pip install lgpio pigpio gpio gpiozero RUN wget https://github.com/Gadgetoid/PY_LGPIO/releases/download/0.2.2.0/l...
In Charles I selected "Tools" menu > "Allow List". Uncheck "Enable Allow List" > "Ok". This worked for me to get internet with the proxy set & finally was able to download the certified.
You can use `TransformOrigin` & `AnchorOrigin` to position your `MudSelect` component. There's this nice page setup in [the docs](https://mudblazor.com/components/popover#direction-and-location) to help you play around with the settings. ```js <MudStack> <MudPaper Class="pa-3">Item 1</MudPaper> <MudP...
The reason for doing time-consuming operations in a thread which is not the JavaFX application thread is that they would delay the processing of JavaFX events, including rendering scenes and processing mouse and keyboard input. [Platform.runLater](https://openjfx.io/javadoc/22/javafx.graphics/javafx/application/Plat...
Not sure of your build environment, but it sounds like you need to set your Xcode command line tools to use Xcode 15.x. You can try something like this: ``` xcode-select -s /Applications/Xcode.app/Contents/Developer ``` **For me I needed to have Xcode 15 selected for CI on Azure Pipeline. This got it working...
I had a slightly different take on this =IF(B1="blank","skipped",IF(B1=INDEX(A:A,COUNT(B$1:B1)),"match","difference")) but I realise this will break after the blanks in column A and something more would be required like an mmult. [![enter image description here][1]][1] [1]: https://i.stack.imgur.com...
I have changed my code with local debug not showing any errors. The problem I have is that I'm struggling to work out how to show the selected spinner text in the textview (txtMarquee) which is a scrolling text. I do not know what code to use I am quiet new and still watching many tutorials and not having any luck....
In R, how to place error bars at each bar which is stacked, particularly when using facet_grid?
|r|dplyr|bar-chart|facet-grid|stacked-bar-chart|
Check the Rows of an Array -------------------------- - Since you cannot easily pass the rows of the array, pass the 'whole thing' and the row index. <!-- language: lang-vb --> Public myRows As Variant Sub SendEmails() 'SetMyTable ' don't know what that does D...
I am having an issue. It just published my first project and now I am realising if you add an "/" to the end of the URL it does load in a very different way I cant even explain. When you add a "Trailingslash" some of the Buttons of the Website are not clickable and if I do this with ng serve the font is changing, I can...
```java properties([parameters([ [$class: 'DynamicReferenceParameter', choiceType: 'ET_FORMATTED_HTML', omitValueField: true, description: 'Editable field when PARENT_PARAM is Others', name: 'ACTIVE_PARAM', randomName: 'choice-parameter-5631314456178624', refe...
Print DT datatables in for loop rendering to html
|html|r|for-loop|dt|quarto|
> _"We can only see a short distance ahead, but we can see plenty there that needs to be done."_ > > _(Alan Touring)_ --- > Also there is no source control either, so I thought this should be my first thing to add. I'd say this is good forward-thinking. Version control is good to have *before* you change the workflo...
null
I have a 2019 MacBook Pro i9 with 64gb of RAM. Last night I got a kernel panic due to memory corruption (just the one time). So, today, I wrote a tiny program in C++ to allocate and probe a large amount of memory, setting memory locations with alternating 0's and 0xff's, then it checks that the memory remained the sa...
Memory location changing from 0 to 1 consistently on Mac
|macos|memory|hardware|panic|memory-corruption|