instruction stringlengths 0 30k ⌀ |
|---|
[i am talking about this bulb which is in this image](https://i.stack.imgur.com/SJZub.png)
**i want to glow this bulb but unable to glow spent 4 hour but still now able to do. Please tell me how to do anyone !**
this is html code
```
div className="item image">
<img src={sidimage} alt="si... |
Is there any way to glow this bulb image like a real light bulb |
|html|css|reactjs| |
null |
It seems currently not being possible to control the volume of for example a playing movie from the iPhone screen. I always have to use the physical buttons.
I tried to control the volume of a movie playing on the iPhone with a slider, but there was no slider visible |
How to control the volume of an iPhone programmatically in objective-c |
|objective-c|controls|volume| |
null |
A "C" approach could use functions from `<time.h>`.
OP comments, but not in the question, "I cannot, this is a challenge for my software engineering degree , and I cannot use libraries any other than those I'm using". Well you can use those functions to check your work.
```
#include <stdbool.h>
#include <stdio... |
null |
I am working on Java Spring Boot project which includes simple Telegram Bot. My problem: I don't want to push credentials such as bot username and bot token to my remote repository. To achieve this, I simply put ***.env*** file into ***.gitignore***, but without creds, Java CI can't build project. I get quite natural r... |
I have a data point (a file, an image, an audio , a video, etc..)
1: I need to slit that data point in to n part and encrypt them
2: if some part of n let make it "a " is missing i can use n-a to recover and decrypt to get the data point from the beginning.
thank you all. |
File splitting and encryption |
|file|encryption|file-recovery|filesplitting| |
I had to flip the source texture because it was in the format of ARGB and instead I needed BGRA.
```csharp
public virtual void CompositeImage(byte[] buffer, int bufferWidth, int bufferHeight, byte[] image, int imageWidth, int imageHeight, int x, int y)
{
for (int i = 0; i < imageHeight; i++)
{
f... |
Try this:
``` css
#logo {
background: url(images/logo.png) no-repeat;
background-position: 0px 40px;
height: 144px;
width: 301px;
}
``` |
null |
Set Expiry Dates for Google Drive
step to open the way to solve this issue, i need step to step handle this issue
step to open the way to solve this issue, i need step to step handle this issue
step to open the way to solve this issue, i need step to step handle this issue
step to open the way to solve this ... |
Accessing REST API Error Codes using Azure Data Factory Copy Activity (or similar)? |
|rest|azure-data-factory| |
null |
On Python 3.10, you can inherit from `str` and `Enum` to have a `StrEnum`:
```python
from enum import Enum
class MyEnum(str, Enum):
choice1 = "choice1"
choice2 = "choice2"
```
With this approach, you have string comparison:
```python
"choice1" == MyEnum.choice1
>> True
```
Be aware, however, t... |
null |
My code is just a simple prime factorization calculator.
I'm not sure why it's infinitely looping. I'm pretty new to Python and not entirely sure on how the while loop works.
```
def print_prime_factors(number):
x = 2
while x < number:
if number % x == 0:
y = number/x
print(str(x)+",")
... |
My code is infinitely looping and I'm not sure why |
null |
|flutter|dart|dictionary|openstreetmap| |
`orientation` does not seem to work as desired.\
Working with `aspect-ratio` may be the better way.
```
@media only screen and (max-aspect-ratio: 1/1){
//portrait
}
@media only screen and (min-aspect-ratio: 1/1){
//horizontal
}
``` |
My loader receives part of the program from the server as `.pyc` files (the files themselves are NOT saving in client pc's filesystem, the byte sequence is stored in a variable).
I need to create a module from this byte sequence without creating a file.
I found a way to create a module from a string:
spec ... |
I'm trying to connect to local postgresql server from my docker container.
I'm using Ubuntu 22.04.4.
This is my `docker-compose.yml`.
```
version: '3'
services:
...
backend:
build:
context: '.'
dockerfile: 'Dockerfile'
ports:
- '8000:80'
... |
Can't connect to local postgresql server from my docker container |
|python|django|postgresql|docker|ubuntu| |
null |
I have the below pandas DF
[](https://i.stack.imgur.com/RZ7aM.png)
steps to create the DF
```
data=[['1','0','0','0','0'],['2','1','1','0','0|0'],['3','1','1','1','0|1'],['4','2','2','0','0|0|0'],['5','2','2','1','0|0|1'],['6','2','2','2','0|... |
I'm encountering an issue with passing the "size" parameter from my JavaScript function to my Django backend. Here's the relevant code snippet from my Django view:
```python
def get_product(request, slug):
try:
product = Product.objects.get(slug=slug)
if request.GET.get('size'):
... |
{"OriginalQuestionIds":[33182329],"Voters":[{"Id":476,"DisplayName":"deceze","BindingReason":{"GoldTagBadge":"mysql"}}]} |
Just in case, if required to use Docker provider:
### Static (i.e. `traefik.yaml`)
```yaml
experimental:
plugins:
rewriteHeaders:
modulename: 'github.com/bitrvmpd/traefik-plugin-rewrite-headers'
version: 'v0.0.1'
```
### Dynamic
```yaml
services:
app:
image: php
vol... |
I'm trying to show phylogenetic signaling of a trait and plot a tree with dots at the end such that the dots size is indicative of trait value. But my dotTree function is giving me the following error:
> dotTree(Main_tree, topt_main_matrix)
Error in x[tree$tip.label, ] : subscript out of bounds
For reference, Ma... |
R 'phytools' dotTree function does not seem to accept my dataset/tree? |
|r|phylogeny|ape-phylo| |
null |
No, you cannot transition a background. You can transition opacity though, so you could stack two hearts one on top of the other and transition the opacity of one of them on hover.
I think the simplest solution is to use an SVG. This is what SVG is good at: vector graphics.
<!-- begin snippet: js hide: false cons... |
org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty |
|java|spring|environment-variables|telegram| |
null |
I am trying to perform a network meta-analysis. The network contains 3 subnetworks. Therefore I decided to use netmeta::discomb to perform an additive analysis. This worked without error in another project, but not with the new studies.
My current dataset contains 9 studies over a total of 10 treatments (all two-arm... |
If this is a new EC2 instance, it might is under the default block on SMTP port 25. This is to avoid misuse of EC2 to send spam emails. Steps to get this opened are explained in the link [**link**][1] .
Along with this, you may also want to make sure that your EC2 instance is having a public IP (EIP) and security-gr... |
> Is there a vulnerability to this?
There should not be a vulnerability to this, as long as the fetched [HTTP-only cookie](https://en.wikipedia.org/wiki/HTTP_cookie#Http-only_cookie) is not exposed to client-side JavaScript. The use of HTTP-only cookies is a security measure to prevent client-side scripts from acces... |
I am trying to perform a network meta-analysis. The network contains 3 subnetworks. Therefore I decided to use netmeta::discomb to perform an additive analysis. This worked without error in another project, but not with the new studies.
My current dataset contains 9 studies over a total of 10 treatments (all two-arm... |
Don't make the row expand in the column: because it will allocate all of the available screen space.
you only need to let the large button that will take a very long text to expand within the row:
try
@override
Widget build(BuildContext context){
return Scaffold(
appBar: ... |
I'm using Inertia to build a Laravel Vue app with Laravel 11 and Vue 3. The issue I'm facing involves a controller called `ListingController` that is resourceful. I created it using the command `php artisan make:model Listing -mrc`, which automatically creates a controller, model, and migration. All the pages were loa... |
Ok I found the solution. I used wrong name for `images`. I have to use `images` instead of `images[]`:
[![enter image description here][1]][1]
This is a bit strange, because as you can see I have `categoryIds[]` it is an array, and it works as expected.
Now I see:
[![enter image description here][2]][2]
... |
For RFC 9110, the current HTTP spec as of 2024-03-31, the following statuses MUST NOT generate content:
- [Informational 1xx](https://datatracker.ietf.org/doc/html/rfc9110#name-informational-1xx)
- [204 No Content](https://datatracker.ietf.org/doc/html/rfc9110#name-204-no-content)
- [205 Reset Content](https://dat... |
How to load a module from a byte sequence without saving it to a file in python version 3.11? |
|python|python-3.x|pyc| |
I am making an article in quarto, for which I need a word (docx) output file. The article should be in 2 column format. To achieve the 2 column output in word, I referred to the answer given in [this question](https://stackoverflow.com/q/76452715/21281335). Here the answer involved making sections within the .qmd file ... |
Span figure across columns in Quarto docx output |
|multiple-columns|docx|quarto| |
null |
For now the solution seemed to be to use an older release v3.0.1.
Running through the same steps stated above lead to a succesful installation.
I did do one thing slightly different - which is to load the OpenMP module, but I'm not sure if this makes any difference. For now I'm happily able to use ```python-flint```... |
You do not have rights to that file, and so you do not have rights to change the permissions of that file. A file in `Documents/` can only be accessed by the app that created the file, and only for the specific *installation* of that app. Apps that are uninstalled and reinstalled are considered to be independent instal... |
null |
I'm trying to compare the user's input to the values in the database.
I want to then check if their input is in the database, if so it will print they have entered the valid details, if not it will print they have entered incorrect details.
```
def check_data_with_tbl(packet): # Takes the packets sent by the cl... |
I'm trying to build a work schedule tracker, starting with the header. A picture attachement shows how the design will look once completed [Schedule Header Cosmetics](https://i.stack.imgur.com/DtFf0.png)
I have three classes so far,
- InputWindow: A Toplevel window for a user to select a month and year from two com... |
Finally, I've found a solution to this problem without utilizing the redirect and refreshListenable properties of GoRouter.
The concept involves creating a custom redirection component. Essentially, authStateChanges are globbally listened, and upon any change in AuthenticationState, we navigate to our redirection co... |
{"Voters":[{"Id":7733418,"DisplayName":"Yunnosch"}]} |
The image here is just an example of what it is I'm trying to do. I have containers (left, main, right) and I want a visualized border, which I assume I will do via image of some sort. I honestly have no idea what they used here, nor how to create my own version of it with new artwork.
[, which is just returning playerSprite.getPosition() and
Game::update which passes Player::getPosition() to this function
`sf::Vector2f enemyLocation{0.f, 0.f};`
starting value of enemyLocation for debugging
```
///<summary>
/// gets ... |
I'm using PyQt6 connecting to MySql database.
I created a QSqlRelationalTableModel then a QDataWidgetMapper to map a record to some widgets.
I insert a new record to the model, then position the datawidgetmapper to that record.
I don't get the default values from the database in the widgets.
I tried to print the ... |
|mysql|pyqt6| |
Just use a functional component in the table to add slot props to the columns automatically:
[VUE SFC PLAYGROUND][1]
```
<script setup>
const rows = [{
name: "Row 1",
col2: "XX",
col3: "YY"
},
{
name: "Row 2",
col2: "XX",
col3: "YY"
},
{
name: "Row 3",
col2:... |
I added uielement textbox to ligtningchartjs. I want to delete uielement ligtningchartjs on scale.
`this.chart .addUIElement(UIElementBuilders.TextBox) .setDraggingMode(UIDraggingModes.notDraggable) .setText('ID: ' + label) .setPosition({ x: xPosition + 1.6, y: 88 })` |
How to delete added UıElement |
|javascript|lightningchart| |
null |
I would like to replace all `<span>` elements containing the attribute `font-weight:` with `<strong>` elements.
I am using the following regex
```
$text = preg_replace("@<span (.*?)style=(.*?)font-weight:(.*?)>(.*?)</span>@i", "<strong>$4</strong>", $text);
```
that is a little variation of the solution... |
replace <span> elements with strong |
|php|regex| |
null |
{"OriginalQuestionIds":[32648371],"Voters":[{"Id":285587,"DisplayName":"Your Common Sense","BindingReason":{"GoldTagBadge":"mysqli"}}]} |
**function.json**
`{
"scriptFile": "__init__.py",
"disabled": false,
"bindings": [
{
"name": "blob",
"type": "blobTrigger",
"direction": "in",
"path": "{CONTAINERNAME}",
"connectionStringSetting": "BLOB_CONNECTION_STRING"
... |
use environment variable for path binding in azure python |
|python|azure|azure-functions|azure-blob-trigger|azure-triggers| |
null |
|php|pdo| |
The [handle class](https://www.mathworks.com/help/matlab/handle-classes.html) and its copy-by-reference behavior is the natural way to implement linkage.
It is, however, possible to implement a linked list in Matlab without OOP. And an abstract list which does *not* splice an existing array in the middle to insert ... |
I want to use the Flutter Custom Clipper to create a shape like the picture below, but it doesn't work. Is there anyone who can help?
[![enter image description here][1]][1]
```dart
class MyCustomClipper extends CustomClipper<Path> {
@override
Path getClip(Size size) {
List<Offset> polygon = [
... |
null |
Accessing REST API Status Codes using Azure Data Factory Copy Activity (or similar)? |
I need RTC-Tools for a homework assignment. Tried to follow [this tutorial](https://rtc-tools.readthedocs.io/en/stable/getting-started.html) to get it:
As it needed pip for installation, I installed it according to [this guide](https://www.geeksforgeeks.org/how-to-install-pip-on-windows).
Then, in the Command Pr... |
'No such file or directory' installing RTC-Tools through pip |
|python|installation|cmd|pip| |
**Edit** following the comment left, kindly, by [kritzikratzi](https://stackoverflow.com/users/347508/kritzikratzi):
> [Starting] with ios 5beta a new property `-webkit-overflow-scrolling: touch` can be added which should result in the expected behaviour.
Some, but very little, further reading:
* [Native momen... |
SFML/C++ Why does my method to move the enemy towards the player stop working when the player is moving? |