instruction stringlengths 0 30k ⌀ |
|---|
#Step 02
CREATE TABLE company_customer
(
cust_ID INT,
address_num VARCHAR (6),
street VARCHAR(20),
city VARCHAR(20),
cust_contact_num VARCHAR(12) UNIQUE NOT NULL,
cust_alt_contact VARCHAR(12),
cust_email VARCHAR(20) UNIQUE NOT NULL,
company_name VARCHAR(20) NOT NULL,
c... |
I am working on one of my projects and I have a problem.
I am trying to create a modal, but when i make it, it dissapears below 992 px which is one of the bootstrap's breakpoints. I made the modal like one of the examples in the docs. Thank you in advance! I have tried many solution including CSS changing the class mo... |
How to fix - The modal dissapear below 992px.? |
|twitter-bootstrap|bootstrap-5| |
null |
I am making a simple chat app website in Socket.io. But emit method not working in client.
when i do on and emitting event from client it doesn't do on function
here is client html body code :
```
<body>
<ul id="messages"></ul>
<form id="form" action="">
<input id="input" autocomplete="off" /><b... |
Socket.io event doesn't emitting from client itself client |
|javascript|node.js|socket.io|socket.io-client| |
I have a mixin that is shared between two models. In it, I have a method that takes a dictionary and creates an SQLAlchemy object, this is raising a warning. The two models are very similar (all the same except for one column that has a relationship to a different table. However, all the column names have the same name... |
I aim to select full name of employees that either have no boss or their boss lives on a street that contains letter 'o' or letter 'u'. Then, I want to list them in descending order by full name.
The problem comes in the ordering, because by queries that I think are the same I get different answers.
When I introduc... |
import kivy
kivy.require('1.11.1')
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
class LoginScreen(GridLayout):
def __init__(self, **kwargs):
super(LoginScreen, sel... |
I have a FIFO implementation in Verilog that is based on this article: http://www.sunburst-design.com/papers/CummingsSNUG2002SJ_FIFO1.pdf
Whilst using this FIFO as a CDC FIFO, with the read side being clocked at 100Mhz and the write side at 8Mhz I ran into a timing issue. Please note that the issue is not reproducib... |
Livewire component JS script Uncaught SyntaxError: Unexpected token |
|javascript|laravel|laravel-livewire| |
Your code has compile errors when I try to run with the version of `iverilog` that I have installed (10.3).
However, the code produces the expected output when I run with the Cadence and Synopsys simulators:
result_matrix[0] = 0.000000
result_matrix[1] = 0.000000
result_matrix[2] = 0.000000
r... |
`tqdm(position=1, disable=not is_main_process)` solves this problem.
- `Position=1` can ensure that PDSH prints a progress bar.
- `not is_main_process` can ensure only one process can print a progress bar, and this is a common trick used in tqdm.
The reason for this is that PDSH uses a line buffer, and it doesn'... |
projection and EPSG mismatch when buffering a geometry |
How I can fix this,
all that occurs when I installed the firebase package
```
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':cloud_firestore:generateDebugRFile'.
> Could not resolve all files for configuration ':cloud_firestore:debugCompileClasspath'.
> Failed to... |
<!-- language-all: sh -->
[zett42](https://stackoverflow.com/users/7571258/zett42) has provided the crucial pointer:
From the [`ConvertFrom-StringData`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/convertfrom-stringdata) help topic (emphasis added), as of PowerShell 7.4.x:
... |
GNU sed offers a simpler way to do it,
```
sed '0,/word/{//d}
0,/word/{//d}
0,/word/{//d}
'
```
or even, since there's only the one search,
```
sed '0,/word/{//d}; 0,//{//d}; 0,//{//d}'
```
|
I am trying to telnet a device while getting IP address from a file but getting the attached error. I am attaching code from both files as images.[myswitches.py](https://i.stack.imgur.com/AQ5Y9.png)[test.py](https://i.stack.imgur.com/LDHPZ.png)
```
root@UbuntuDockerGuest-1:~# ./Test.py
Enter your Telnet Us... |
Telnet function in Python |
|python|python-2.7| |
null |
{"OriginalQuestionIds":[5039875],"Voters":[{"Id":3959875,"DisplayName":"wOxxOm","BindingReason":{"GoldTagBadge":"google-chrome-extension"}}]} |
I'm developing the following Modal in a [Storybook](https://storybook.js.org/) story:
```
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import { Modal } from '@repo/ui/Modal';
import Title from '@repo/ui/Title';
import Field from '@repo/ui/Field';
import { DialogHeader } fr... |
Updates to pgsodium encrypted values don't use specified key_id |
|postgresql|supabase|libsodium| |
null |
I know this is about advantages and not disadvantages, but a lock disadvantage is that it does not work well with async await. That is because the thread might be changed between before and after the await: you are not allowed to enter the lock on one thread and leave it on another. When this happens the lock will thro... |
This problem happens when 'Player' goes in and out of sightRadius of 'Enemy' multiple times.
here is the bug code
```
bool FoundPlayer()
{
int numColliders = Physics.OverlapSphereNonAlloc(transform.position, sightRadius, colliders);
Debug.Log(numColliders);
for (int i = 0; i <... |
Physics.OverlapSphere couldn't detect my ‘Player’ |
|unity-game-engine|game-development| |
null |
the input is:

need output as:

is this possible in just XL format or a python script is required.
if yes can you help with python script?
thanks.
my script:
my logic is read... |
|python|pandas| |
{"Voters":[{"Id":6036253,"DisplayName":"Matt Haberland"}]} |
As you can read in the [documentation of `list.sort`][1]
> This method modifies the sequence in place for economy of space when sorting a large sequence. To remind users that it operates by side effect, it does not return the sorted sequence (use sorted() to explicitly request a new sorted list instance).
[1]... |
I have a Flutter app where I am using the two_dimensional_scrollables TableView widget to display a complex spreadsheet style display.
For the Flutter web app, running this in Chrome on Windows 10 I can't get the horizontal scroll to work. The vertical scroll works fine using the mouse wheel.
In the top level Ma... |
Flutter two_dimensional_scrollables Web app Chrome - cannot get horizontal scroll to work? |
|flutter| |
I am prevented from inserting data into a column because of a foreign key violation. However, the foreign key is a valid reference |
|mysql| |
null |
# A confusion of getting to the bottom of a jq parse.
I'm learning, apreciate your help.
Two arrays here, both with same type ouput result, just integer values (spaced), same for string values.
Ex: 1 2 3 4 5
A multi-nested weather dump:
I trying to understand to return just an index ([0...]) value or/and a... |
JQ JSON - Values to Array |
|json|bash|jq| |
If your XXXWidget and XXXWidgetIntents both access privacy APIs, you need to add two `PrivacyInfo.xcprivacy` files for them.
I also checked the widget targets when adding "PrivacyInfo.xcprivacy". As the screenshot shown below:
![screenshot][1]
Or you can check the "Build Phases - Copy Bundle Resources" of Widg... |
```
from keras.models import Sequential
from keras.layers.core import Dense, Flatten
from keras.layers.convolutional import Conv2D, MaxPooling2D
`
`
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-35-e0ce7722f83a> in <cell line: 2>()
1 fro... |
SAWaring when using a Mixin to make SQLAlchemy Objects |
|python-3.x|sqlalchemy| |
You shouldn't call setState in the middle of the component's rendering process. This will cause the component to [become impure][1]. [Strict mode][2] helps you catch this bug early by causing the component to render twice, highlighting the inconsistency. What happened was:
> Component first render -> react see useSt... |
I grabbed an image and added a title (`MUPPETRY`) and description (`PUPPETRY`) in **Adobe Lightroom** using the metadata panel like this and then exported as JPEG:
[![enter image description here][1]][1]
In case you are wondering, I chose silly names for near certain uniqueness.
---
It seems that **Lightroo... |
I am new to sendmail, installed the s-nail package on RHEL 8 VM hosted on AWS. I configured the sendmail.mc file but still unable to get mail.
Command used,
echo "First mail" | mail -v -s "Important mail" jadeallice302@gmail.com
It shows an error like below, it looks like mail is accepted for delivery but conn... |
I updated my ElectronJs version from 27.3.8 to 28.0.0 and encountered an issue where my application no longer launches. The project initializes successfully (creates app), but the application does not proceed further. On Windows, nothing happens in the terminal, while on Linux, the following errors occur:
```bash
1... |
Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux |
|linux|windows|electron|electron-builder| |
null |
Somehow Netbeans prints German warnings to the console when building a project. Likely because my laptop is set to German, but why it is exactly I am not sure. The terminal is in English, the Java JVM locale is set to English and the netbeans.conf is also set to English.
* JVM Local > java -Duser.language=en -Duser.... |
How do I set isOpen false in the following Storybook story? |
|reactjs|typescript|storybook| |
In react 17 they tried to hide the fact that they were doing a double render in strict mode by temporarily overwriting the `console.log` function to be a no-op during that second render. So it is rendering twice, you just can't log it out. [This caused confusion and was eventually removed.][1]
In the following code ... |
I have a table like below.
I want to have a cell where I can get the number depending on the current month.
For example, today is 31/3/2024. I would like the cell to be 4
Tomorrow when it is 1/4/2024. I would like it to automatically update to 3425
I don't want to use app script
| Date | Number |
| --... |
Look up a value using month of the date |
|google-sheets|google-sheets-formula| |
There are a couple of things here. I don't think `sox` supports "tailing" a file, but I know `mplayer` does. However, in order to have better control over the pipeline, using `gstreamer` might be the way to go, as it has a parallel event stream built into its effects pipeline.
If you want to stick with `sox`, I wo... |
Working bilingual, Shortcut Ctrl+' used to work for me for years in both languages (English and Hebrew), but not in 2016. Is there a way to make Ctrl+, (the second language equivalent of Ctrl+') do the same copy-from-previous-record action?
This is an all Access feature - not limited to a specific field or row or tabl... |
If all parameters are set to make it completely transparent, making it impossible to see, will Unity still render it? If yes, are there built-in Unity functions to prevent this? |
Does Unity render invisible material? |
|unity-game-engine|gpu|render| |
I suggest to follow the steps described in the official documentation when creating/using areas: [Areas in ASP.NET Core][1]
When following the documentation and adding an area you see the following `ScaffoldingReadMe.txt`:
```
Scaffolding has generated all the files and added the required dependencies.
How... |
`list.sort()` does not return any value. `print(list.sort())` prints `None` because that is the value that represents no value. |
If you're writing something that does "the same thing, with just one thing changing at each step", that's a loop. You don't use separate `if` statements. Not even "when you're lazy": being lazy is an _excellent_ property to have when you're a programmer, because it means you want to do as little work as possible. Of c... |
Set Netbeans Console to English |
|java|netbeans|locale| |
I am trying to create a structure `Student` which contains q substructures named `Course`. Each `Course` is a structure with a credit and point `int` values.
How do I set up my `Student` structure to have an integer number of `Course` structures within it? Thanks
```
struct Student{
int q;
Course co... |
There is no `name` argument in `list()`. You need to give space id to `parent` as `"spaces/{space}"`.
Use [API Reference][1] whenever in doubt.
[1]: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/list |
I have been tinkering around with the {waterfalls} package lately, which makes it easy to create and customize waterfall plots by leveraging {ggplot2} and most of its logic under the hood. The plots can easily be converted to {plotly} via the `ggplotly()` function afterwards.
If requested, the main function `waterf... |
|glsl|shader| |
The way FTP works is to have a constant conenction on a control channel, port 21, and to set up and tear down connections to pass data over, on some random channel decided by the server or the client
In PORT (active) mode the client decides what port it will open, it tells the server and the server connects to the c... |
**The error is probably caused by the way MetalLB's IP Adress pool is configured.**
In your current configuration As of right now, MetalLB is configured to automatically assign an external IP address from the range that is provided in IPAdressPool.The service is accessible from within the cluster. The connectio... |
I am using node server for the backend. Connection to Cassandra is done using cassandra-driver nodejs.
Connection is done as follows:
const client = new cassandra.Client({
contactPoints: ['h1', 'h2'],
localDataCenter: 'datacenter1',
keyspace: 'ks1'
});
1. In contactPoints, do I j... |
Apace Cassandra Node Driver Connection |
The `sessionStorage` is a browser API that is not available in the server-side rendering (SSR) environment of Next.js. This is why you're getting the `ReferenceError: sessionStorage is not defined` error.
To access the `sessionStorage` in Next.js, you need to use the useEffect hook and check if `window` and `window.... |
I know the question was asked 5 years ago. Answering, in case someone else runs into it.
We noticed this problem when we changed httpRuntime targetFramework from 4.6 to 4.8 in the web.config.
## How to address this issue?
Add the following to your web.config:
```
<configuration>
<appSettings>
<add key=... |
I have this app script code that first deletes any existing graphs then I want it to put the x-axis as xRange and the series as yValues (To find my ranges, I used some other functions but they work correctly and get my wanted ranges) (I want the graph on the Graph spreadsheet)
```
function createLineGraph(){
var s... |
To access your data, you simply need to access the `0` (string, not number) key of the returned object, so you could just do:
```
this.job = job['0'];
```
---
I notice you have nested subscribes, which are not desirable, because without a reference to the subscription object, you have no way to unsubscribe. ... |
def function1(dd:pd.DataFrame):
if dd.query("col3==1").pipe(len)>1:
dd.loc[dd.query("col3==1").index[1]:,'col3']=0
return dd
df1=a.reset_index()
df1.columns=['col1','col2','col3']
df1.groupby(['col1',df1.col3.eq(0).cumsum()|df1.col3.diff().gt(0).cumsum()],as_index=0,gro... |
You may try a modified version of the previous awk script here.
```sh
cat parse.awk
BEGIN { OFS="\t"; FS="=" }
/^[[:blank:]]*public / {++n}
NF==2 && /^[[:blank:]]*String | pac *=/ {
gsub(/^[[:blank:]]*("|new +)|[()";]+$/, "", $2)
if ($1 ~ / (server|pac)/)
col1[n] = $2
else if ($1 ~ / method/... |
|node.js|cassandra|cassandra-driver| |
Actually there seems to be a misconception about ```cv2.imread()```, cv2 reads the image in BGR format Yes, **but** when prompted to save the image or showing it using ```cv2.imshow``` it correctly renders them, the problem is in matplotlib partially. Because cv2 uses BGR color format and matplotlib uses RGB color form... |
Just now i found the answer how to get form data/values from modal: via table `Livewire` object. Use `$table->getLivewire()->getMountedTableBulkActionForm()->getState()`.
Somewhere in your Filament Resource:
<?php
use Filament\Forms\Components\TextInput;
use Filament\Tables\Actions\BulkAction;
... |
# IDEA
## introduction
### IMPORTANT NOTIFICATION
THE EXPLAINATION IS NOT VERY CLEAR, AND I EXPECT YOU TO GUESS. GUESS IS GOOD FOR YOUR BRAIN.
BELIEVE YOURSELF. Your GUESS, if you think is LOGICAL, is RIGHT.
In fact they are just simple ideas, with little guide then you will also understand.
So you ar... |
No module named 'keras.layers.core' |
```
from keras.models import Sequential
from keras.layers.core import Dense, Flatten
from keras.layers.convolutional import Conv2D, MaxPooling2D
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-35-e0ce7722f83a> in <cell line: 2>()
1 ... |
The error:
"org.springframework.mail.MailSendException: Mail server connection failed. Failed messages: jakarta.mail.MessagingException: Could not convert socket to TLS;\n nested exception is:\n\tjava.net.SocketTimeoutException: Read timed out; message exception details (1) are:\r\nFailed message 1:\r\njakarta.m... |
Why my mail service api spring isnt working? |
|java|spring|amazon-web-services|jakarta-mail| |
null |
I found a workaround shared by Damian from AppDynamics support that helped me adjust the log levels for both the Proxy and the Watchdog in AppDynamics. Here's a summary of the steps:
- **Proxy Log Level:** The `log4j2.xml` file controls this. You can find it within the appdynamics_bindeps module. For example, in my ... |