instruction stringlengths 0 30k ⌀ |
|---|
Screenshot demonstrating the use of Excel's Solver:
![See Screenshot demonstrating the use of Excel's Solver][1]
I have a task to automate a certain excel worksheet. The worksheet happens to implement a logic with an excel plugin called Solver. It uses a single value(-1.95624) in Cell $O$9 (which is the result o... |
Apache Sedona Version Issues |
|apache-spark|pyspark|geospatial|geotools|apache-sedona| |
I need to upload file within multiple objects. 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("fil... |
Upload multiple file with Ajax jQuery Using JSON/Form data |
i guess this error is related to insufficient scope permissions when accessing the google Calendar api. Even though your API key doesn't have restrictions, the issue might be with the scope permissions granted to your token.
ensure that when you authenticate and obtain the token, you're requesting the correct scope ... |
I'm encountering a problem with my Livewire file upload: it is not accepting .mp4 and .exe files. I'm also unable to retrieve the file size for a file located at: livewire-tmp/livewire-tmp.
use LivewireAlert;
public $driver;
public function update()
{
$this->validate(['driver'... |
Today when I using this demo to upload image file to minio :
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { Button, message, Upload } from 'antd';
import { UploadOutlined } from '@ant-design/icons';
import type { UploadProps } from 'antd';
... |
why the antd upload file to minio could not preview |
|antd|minio| |
Here is my code. The goal is to insert a record into a table and to use two concatenated numeric values (separated with an underscore) as the primary key. Ultimately, this will be made up of an item_number and the datetime_checked (separated with an underscore), but I have simplified it for this sample code below.
... |
This link: https://customsearch.googleapis.com/customsearch/v1?cx=Search_engine_ID%0A&q=Napoleon+history+black+and+white&searchType=image&num=9&start=1&safe=high&key=API_KEY%0A&alt=json
is giving me:
```
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"errors": [
... |
"Request contains an invalid argument." Google Search API |
|google-search-api| |
{"OriginalQuestionIds":[37534353],"Voters":[{"Id":14868997,"DisplayName":"Charlieface","BindingReason":{"GoldTagBadge":"c#"}}]} |
I have the following entities
```
@Builder
@Getter @Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "Employee")
@Table(schema = "core", name = "employee")
public class EmployeeEntity {
@Id
@SequenceGenerator(schema = "core", name = Sequence.EMPLOYEE_ID_SEQ, sequenceName = Sequence.EM... |
Not a specific answer to your question, but of more general utility. This code (from pimoroni.com, used in their Enviro Pico W aboard series) uses a parameter 'model' to choose which one of several different modules to import, with the 'as' resulting in the imported modules adopting the same name!
```
# return the ... |
I want all the lists in my application to look exactly the same and don't want to respecify all these settings over and over. I get the following error: Cannot find type 'Configuration' in scope. I currently have something like this:
struct CustomListStyle: ListStyle {
func makeBody(configuration: Conf... |
How do a create a reusable simple custom list style with my own color and spacing |
|listview|swiftui| |
I'm trying to add recession bands to this graph:
[The Taylor (1993) rule for the US and the Fed Funds rate, 1960-2023](https://i.stack.imgur.com/UJIa6.png)
I'm not sure where to start. Here's what I've got currently:
```
p <- ggplot(df, aes(date, fedfunds, group = 1, color="red"))+
geom_line( size=1.2, alp... |
|r|ggplot2| |
When I call this stored procedure:
```
CREATE PROCEDURE AGBBeta.TestReturnOptions(IN pOptionsID INT, IN pQty Int, IN pUserId INT,
OUT outParam NVARCHAR(3))
BEGIN
DECLARE CalcGlobalCHECK NVarchar(3);
DECLARE done INT DEFAULT FALSE;
DECLARE iMaterialsId INTEGER;
DECLARE iRangesID INTEGER;
DECLAR... |
Maria DB stored procedure not returning anything |
|mariadb| |
If you are using the `maven-bundle-plugin`, you don't need extra steps, it does the registration for you.
An article about bundling declarative services: https://dzone.com/articles/karaf-features-and-osgi-services-a-bundle |
You loop is wrong - all OOM collections are 1 based, not 0. It must be
```
Dim r As Integer
Dim sb As New StringBuilder
For r = 1 To olApp.Session.Stores.Count
sb.AppendLine(olApp.Session.Stores(r).FilePath)
Next
```
|
I'm attempting to display a total number of posts for main categories in WordPress instead of displaying all the posts.
How do I go about limiting the total number of posts displayed without pagination?
The following doesn't work:
```
function target_main_category_query_with_conditional_tags( $query ) {
if ... |
material ui does not show default colors and shapes when compiled on android |
|flutter|flutter-material| |
Since Next 13.4 we are able to do the following
- Set a cookie with HTTP-ONLY flag
- Using Server Action in a client component to fetch a HTTP-ONLY cookie. Basically I can have a button that when you click it, it will return the value of the HTTP-ONLY cookie, we attach it to the request headers
Is this secure?... |
You're right, `string.Trim` removes the spaces before and after, `string.TrimStart` before and `string.TrimEnd` after the `string`.
```cs
" my string ".Trim(); // "my string"
" my string ".TrimStart(); // "my string "
" my string ".TrimEnd(); // " my string"
```
However, this doesn't remove the spaces in the midd... |
{"OriginalQuestionIds":[115983],"Voters":[{"Id":7976758,"DisplayName":"phd","BindingReason":{"GoldTagBadge":"git"}}]} |
Solution in [TXR](https://nongnu.org/txr), precisely matching the required output format:
```
$ txr extract4.txr even-longer-data
AAA retrieveA
BBB retrieveB
CCC
retrieveD
EEE retrieveE
FFFFF retrieveF
GGGGGG getG
HHHHHHH getH
determineI
IIIII callI
```
Code:
```
@(collect)
@/.*(publ... |
Raspberry Pi Sending/Recieving data over usb |
|python-3.x|usb|pyserial|raspberry-pi4|raspberry-pi-pico| |
null |
I use Dataflow prime and all the defaults. As my pipeline fails, I expect to see samples, as exception-based sampling is enabled by default ([doc][1]).
I use "--temp_location=gs://bucket/beam/tmp". The Dataflow job reads and writes to "gs://bucket/“ with no problem.
However, I don't see samples and the UI suggest... |
Google Cloud Dataflow data sampling issue |
|google-cloud-platform|google-cloud-dataflow| |
null |
How to set Merge All Windows as default in VS Code on macOS? |
My flutter version 3.19. I use `chewie: ^1.7.5 `and `video_player: ^2.8.3` for playing a video in FlutteBut, the Android emulator shows meaningless video images on the phone screen.
When I opened the page of the video, it played but didn't look expected butterfly video and not heard sound of it.
Emulator s... |
## Update 2024: google fonts UI finally offers a variable font CSS URL
Unfortunately you still can't download woff2 files directly.
Format identifiers like `format('woff2-variations')` date back to the days when variable font support was rather experimental – so they shouldn't be needed by any decently "modern" b... |
Unfortunately C# doesn't support non-local returns (so I'm envious of Kotlin users), but you can refactor your logic down to a single reusable loop that you can move into its own function - just reserve `null` as a special-value for the quit/exit case:
If you're using a semi-recent version of C#, you can refactor it... |
I have two tables that look like this;
```
TABLE Person
id name
1 Jason
2 Dave
3 Amy
...
TABLE Points
id points
1 8
2 9
3 5
...
```
And I try to join the "name" column from the first table to the second one based on their ids. The expected outcome should look something like this;
```
TABLE
id ... |
I have a hard time to understand Stripe Connect with **Standard** accounts onboarding...and testing the whole integration.
The more i read about, the more i get confused.
**Onboarding**
Two scenarios are usally applicable: Connect existing accounts OR allow users to create a Stripe account.
Until now i prep... |
|ignite|apacheignite| |
I'm trying to authenticate account in backend for NEAR protocol
Referring this doc:
https://docs.near.org/develop/integrate/backend-login#2-ask-the-user-to-sign-the-challenge
```// Assuming you setup a wallet selector so far
const signature = wallet.signMessage({ message, recipient, nonce: challenge, callbackUr... |
"recipient" of the message in near protocol signMessage function |
|nearprotocol| |
SWIG itself comes with a macro (in `typemaps/fragments.swg`)
#define %fragment_name(Name, Type...) %string_name(Name) "_" {Type}
Maybe you can try something similar. |
I have a program to calculate the evolution of a system of N particles with equal mass attracted by gravity. When I execute a profile of the program, I get the first 7 functions that take the longest are for the calculation of the acceleration of the system (91% of the time execution), which is okay because it is the h... |
I have added a splash screen on FlutterFlow from Settings> App assets. When testing on web it works just fine. but when I imported the project into Android Studio and tested it on a real android device, two splash screens are showing. As you can see here:
https://drive.google.com/file/d/1fhQ-T6_hVUXsRHClKfm6JRa1g-uiO... |
Why flutterflow app is showing two splash screens when testing on Android Device> |
|flutter|flutterflow| |
You can first change `as.factor()` to `factor()` and then add the `levels` and `labels` attributes:
````lang-r
library(ggplot2)
Rurality<- c(1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,... |
Display Total Number of Posts per Page without Pagination in WordPress |
|php|wordpress|conditional-statements| |
A Delimited VBA Lookup in Excel (Structured) Tables
-
[![enter image description here][1]][1]
<!-- language: lang-vb -->
Sub LookupFakturas()
Const SRC_SHEET_NAME As String = "Data"
Const SRC_TABLE_INDEX As Long = 1
Const SRC_LOOKUP_COLUMN_TITLE As String = "Transport"
... |
This question was inspired by [a question](https://stackoverflow.com/questions/33182491/why-bcd-instructions-were-removed-in-amd64) I recently came across on Stackoverflow. It reminded me that early in the development of the x86-64 ISA I had written 32-bit x86 code for BCD addition without using the BCD support instru... |
Fast BCD addition |
|c|algorithm|bit-manipulation|micro-optimization| |
For example, given the inventory
```ini
shell> cat hosts
test_01
test_02
test_03
```
and the files */tmp/fstab* (all the same) for testing
```bash
shell> ssh admin@test_01 cat /tmp/fstab
UUID=423d168c-5a90-44f9-94b2-d2da9f0e1e4f / ext4 errors=remount-ro 0 1
UUID=0F15-7883 ... |
You could try using the following formula, assuming there is no excel constraints as per the post tags:
[![enter image description here][1]][1]
----------
=LET(
_x, A3:E3,
_y, TAKE(SORT(UNIQUE(A3:E3,1),,,1),,3),
TOROW(VSTACK(XLOOKUP(_y,_x,$A$1:$E$1),_y),,1))
----------
... |
I accidentally discovered that you can access an element just by typing its id, e.g:
<input id="test" value="testValue"/>
<script>
console.log(test.value); //testValue
</script>
Can anyone point me to where that feature is coming from? |
Access element by ID in JavaScript |
Python 3.12.2 not fine
class Tmp:
@staticmethod
def func1():
return 1234
@staticmethod
def func2():
# Tmp.X2=Tmp.func1()+4444 # AttributeError: type object 'Tmp' has no attribute 'X2'
return Tmp.func1()+4444
# X2 = func2(... |
This web page shows CK Editor's mathjax integration
https://ckeditor.com/docs/ckeditor4/latest/features/mathjax.html
But i need the math formulas to be editable inline in the editor field rather than in a separate window that opens.
Any ideas??
Not a developer so every effort so far is not worth showing |
Can the CKEditor Mathjax plugin be used to make inline math formula editing rather than in a separate window? |
|reactjs|ckeditor|mathjax|ckeditor5|mathquill| |
null |
I have a dataframe df which looks like this :
```
` image_id category_id chessboard_position
0 0 7 a8
1 0 8 b8
2 0 9 c8
3 1 6 f7
4 1 6 ... |
Is there a way for me to instantiate an object, given its class? So in the given scenario, I would have a value for `class` and need to get a value for `object`.
```
//This is given
Class<?> class;
//This is not given
Object object;
```
Also, is it possible to generically cast an object to type `class` o... |
Is there a way to get an instance of a class given the .class |
|java| |
{"OriginalQuestionIds":[3434278],"Voters":[{"Id":707111,"DisplayName":"Ry-","BindingReason":{"GoldTagBadge":"css"}}]} |
Flutter video_player Shown Meaningless Video Images |
|flutter|android-emulator|video-player|flutter-video-player| |
null |
|reactjs|shadcnui|radix-ui| |
Sending email in django using smtp |
I'm trying to write a test to make sure all ODR images are available in the main bundle:
let testBundle = Bundle(for: type(of: self)) //This is probably wrong... I'm trying to test the main bundle.
for cat in cats {
let fileURL = URL(fileURLWithPath: cat.image)
let fileNameWithoutExtension = file... |
My app is run inside kubernates/docker container. Here is the top output:
[![TOP output][1]][1]
[1]: https://i.stack.imgur.com/yuQbc.png
It shows that my dotnet app is using 33700 MBs but when I sum RES and SHR columns it doesn't add up to that number. I thought I need to add the VIRT column too but then I... |
Top output says my app uses 33 gigs of memory but how? |
|c#|.net|linux|memory-leaks|dotmemory| |
Can you please help me to resolve next problem?
I have setup Bind9 and added RPZs with blocking rules.
Here is version of Bind9:
BIND 9.18.25 (Extended Support Version) <id:6dc676c>
running on Linux x86_64 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01)
built by make with '--with... |
I am trying to build a new dropwizard service. On running the `mvn clean install` I am getting the following error. This is a personal project . I have some official projects which need Maven to use JAVA 8 only. Hence I cannot change the JAVA_HOME to newer releases.
So mvn --version gives me this:
```bash
mvn --... |
null |
Credit to @alexanderBurov as above:
```
dotnet-counters monitor -n ConsoleApp7
``` |
When you put `\b` before the lookaround, the portion of the input matched by the lookaround is not skipped over when matching `\b`. This means it has to be matched immediately before `s`, not before `Jeff`. So you're matching a word boundary between `Jeff` and `s`, which isn't possible since they're both part of the sa... |
To scroll to the end of the result search list in Google Maps, you have to change the browser language first to English. Then deactivate side bar and past this code:
# scroll down in google maps with python selenium javascript
while True:
results = driver.find_elements(By.CLASS_NAME, 'hfpxzc')
... |
I understand the confusion now. You need to use JSON_EXTRACT_PATH_TEXT() to parse named json keys but JSON_EXTRACT_ARRAY_ELEMENT_TEXT() to parse json arrays. You'll need to combine these to extract the information you desire (see below for the json_parse method).
Your example should look like:
select JSON_E... |
I am getting a no file found error when trying to copy over images from my download folder to my project directory. I am running an ubuntu 22.04 LTE environment in windows.
I am using this command
```
cp helvetica-neu.ttf c/users/myname/portfolioapp/src/assets/images
``` |
I am using [Apple's swift-async-dns-resolver][1] to collect records used for a mail troubleshooting free utility app (MX, NS, DMARC, SPF). The resolves are working. When I added the SwiftData updates to the async Task, it started randomly crashing with EXC_BAD_ACCESS, so my guess is SwiftData may not be safe in this en... |
Adding SwiftData model operations in Task{} block caused EXC_BAD_ACCESS using swift-async-dns-resolver |
|swift|async-await|swift-data| |
{"Voters":[{"Id":354577,"DisplayName":"Chris"},{"Id":16217248,"DisplayName":"CPlus"},{"Id":794749,"DisplayName":"gre_gor"}],"SiteSpecificCloseReasonIds":[13]} |
{"Voters":[{"Id":147356,"DisplayName":"larsks"},{"Id":14853083,"DisplayName":"Tangentially Perpendicular"},{"Id":3745413,"DisplayName":"Ron Maupin"}],"SiteSpecificCloseReasonIds":[18]} |
Im just a beginner in coding. I have a question about my code its a simple age classification code that i try to use ternary operator on it. It worked but there's is a yellow line underneath the code say that "expression ......... is assisgned to nothing". How do I get rid of it.
```
age=int(input("Input your age: ")... |