Ola, fiz um projeto que faz exatamente isso, coloquei no meu github pode dar uma olhada. https://github.com/LeonardoQueres/Integration-Docker---.NET---SQL-SERVER
No arquivo program.cs adicione a linha de codigo abaixo
builder.Services.AddHttpsRedirection(options =>
{
options.RedirectStatusCode = Status308PermanentRedirect;
options.HttpsPort = 3001;
});
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
var application = app.Services.CreateScope().ServiceProvider.GetRequiredService<ApplicationDbContext>();
// Utilizando o migration a execução do container docker não é necessario as linhas abaixo
var pendingMigrations = await application.Database.GetPendingMigrationsAsync();
if (pendingMigrations != null)
await application.Database.MigrateAsync();
}
Atualize seu arquivo dockerfile confirme codigo abaixo adicionando as linhas do migration
# Esta fase é usada durante a execução no VS no modo rápido (Padrão para a configuração de Depuração)
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app
WORKDIR /app
EXPOSE 3000
EXPOSE 3001
# Esta fase é usada para compilar o projeto de serviço
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["project/project.csproj", "project/"]
COPY ["Thunders_Repositories/Thunders_Repositories.csproj", "Thunders_Repositories/"]
COPY ["Thunders_Borders/Thunders_Borders.csproj", "Thunders_Borders/"]
COPY ["Thunders_UseCases/Thunders_UseCases.csproj", "Thunders_UseCases/"]
RUN dotnet restore "./project/project.csproj"
COPY . .
WORKDIR "/src/project"
RUN dotnet tool install --global dotnet-ef
ENV PATH="$PATH:/root/.dotnet/tools"
RUN dotnet build "./project.csproj" -c $BUILD_CONFIGURATION -o /app/build
CMD dotnet ef database update --environment Development --project src/project_Repositories
# Esta fase é usada para publicar o projeto de serviço a ser copiado para a fase final
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./project.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
# Esta fase é usada na produção ou quando executada no VS no modo normal (padrão quando não está usando a configuração de Depuração)
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "project.dll"]
O codigo abaixo pertence ao docker-compose, atualize o seu conforme necessidade.
services:
project:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=3000
- ASPNETCORE_HTTPS_PORTS=3001
container_name: project
image: ${DOCKER_REGISTRY-}project
build:
context: .
dockerfile: project/Dockerfile
ports:
- "3000:3000"
- "3001:3001"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
networks:
- compose-bridge
depends_on:
sqlserver:
condition: service_healthy
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-preview-ubuntu-22.04
container_name: sqlserver
ports:
- "1433:1433"
environment:
- SA_PASSWORD=passwork 'não pode ser uma senha fraca, sql nao funciona. nada de usar 123456 hehehehe'
- ACCEPT_EULA= Y
volumes:
- ./sqlserver/data:/var/opt/mssql/data
- ./sqlserver/log:/var/opt/mssql/log
networks:
- compose-bridge
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "leoQueres123" -Q "SELECT 1" -b -o /dev/null
interval: 10s
timeout: 3s
retries: 10
start_period: 10s
volumes:
sqlserver:
networks:
compose-bridge:
driver: bridge
Espero ter ajudado.
I've just seen this post. You've probably resolved it since then, but the root cause of the error you are facing is that support for M365 mailboxes was not added until the 9.1.7 release of Datacap.
Late to the party, but if you are using facet_wrap, just make sure to set scales = "free", and it will show each axes on every facet.
rpi ~$ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
rpi ~$ cat /etc/apt/sources.list.d/raspi.list
deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main
Normally this happens when there is a mismatch between your variables or the result you are returning. Make sure the variables and the result being returned are the same with the query 100%.
liquid and Newtonsoft don't support JSON Schema Draft 2020-12 which is what OpenAPI 3.1 is based upon.
If you want another solid .Net package, you can try https://www.nuget.org/packages/JsonSchema.Net.OpenApi
can you solve your problem? I have problem like your problem!
0:00:11.659570863 486226 0x5ececc0 ERROR rtpjitterbuffer gstrtpjitterbuffer.c:1401:gst_jitter_buffer_sink_parse_caps:<jitterbuffer> Got caps with wrong payload type (got 127, expected 101)
Set Cookies on the Server:
Set cookies from your Express API in the backend rather than directly in the frontend. This approach helps keep sensitive data more secure and avoids potential issues with client-side manipulation. When a user logs in, you can create a session token (like a JWT or a session ID) and set it as an HTTP-only cookie. HTTP-only cookies are not accessible from JavaScript, so they provide an additional layer of security.
I needed to do something similar in order to find the most uniform way to split lines with the added wrinkle that invisible markup tags may be present.
This problem ended up being more interesting to solve than I initially thought. I used recursion to create possible layouts around word boundaries. Then sort the layouts to find the best one.
The returned result is not justified, but will straight forward to justify the text using this result as it provides the optimal starting point given the defined line length/ line count criteria.
So I was able to finally find the issue. I was debating if I should delete my question but maybe somebody else has a similar issue in the future.
So my services (Telemetry and Customer) are running in a Kubernetes cluster. The issue was that Telemetry's "GET" request was going through another resource. So the request that the Customer received had the Parent Spand ID from that in-between service. I reconfigured the communication to happen directly between the services and now I get the results I expected.
In the end, it was a networking miss-configuration, not an Open Telemetry miss-configuration.
I don't see an answer to the original question. I want to use FFMPEG to rewrap .dv files into DV wrapped MOV via -c copy but FFMPEG doesn't automatically write the CLAP atom. That results in the production aperture being displayed. Is there a way to manually specify that FFMPEG insert a clap atom?
If you're having trouble with RTL TextInput:
inputexample: {
writingDirection: "rtl"
}
Found this style prop after hours of searching the internet
This is what works for me:
RendererManager rendererManager = ComponentAccessor.getComponent(RendererManager.class);
JiraRendererPlugin renderer = rendererManager.getRendererForType("atlassian-wiki-renderer");
String output = renderer.render(issue.getDescription(), issue.getIssueRenderContext());
Source: How to convert JIRA wiki markup to HTML programmly using Atlassian native API?
I ran into this error, there was a library deleted that the editor was still looking for. Delete the library from your AppScript and it should be resolved
If, when running this tool, you get this error:
msys-1.0.dll: skipped because wrong machine type.
To fix "wrong machine type":
The error appears when using the 64-bit version of rebase.exe Use the 32-bit version of rebase.exe
source: https://www.qnx.com/support/knowledgebase.html?id=5011O000001OLXD
Which qmlls
version do you use?
The Qt vscode extension doesn't start as default if the qmlls
version is lower than 6.7.2
because qmlls
before 6.7.2
is unstable. Using qt-qml.qmlls.customExePath
might not help in that case. Please feel free to open a bug report here if it is newer than 6.7.2
You need to request location permissions from the OS for you app bb
Just found Microsoft Azure storage explorer
Try using an https URL. It should work, tried at my end it is working.
We have a question regarding an issue we're facing, which we believe may be related to your suggestion.
We're building a service that uses a custom JAR we created, but we're encountering an "artifact not found" error. Upon investigation, we noticed that our JAR includes the META-INF/maven folder.
Do you think excluding the META-INF/maven folder could resolve this issue, and would it be safe to do so?
I had a tricky problem here. I used a view instead of a table and the view has been not updated to include that column!
First in the view definition then in the apex sql that defines the view to be used as a data source of the interactive grid.
I had a similar error in a code that worked in 2023 and does not work anymore in 2024. The problem was solved by replacing : encoded_model = Model(inputs=NN_model.input,outputs=NN_model.layers[0].output) by encoded_model = Model(inputs=NN_model.layers[0].input,outputs=NN_model.layers[0].output) or by encoded_model = Model(inputs=NN_model.inputs,outputs=NN_model.layers[0].output) I hope this helps solving your problem.
In Visual Studio Code settings, Find Terminal|Integrated: Send Keybindings to Shell and check it.
To clone an instance in AWS, you can follow these general steps:
Create an AMI (Amazon Machine Image) from the source instance:
Wait for the AMI creation process to complete. This may take several minutes.
Once the AMI is ready, launch a new instance using this AMI:
Configure the new instance:
Select or create a key pair for the new instance
Launch the instance
This process creates a new instance that is essentially a clone of the original, with the same installed software and configurations as of the time the AMI was created.
Remember:
There currently does not seem to be an advanced way to gain insights in why a build takes long.
Enabling the timestamps in the output window gave me enough insight to resolve the issue, which is enabled by clicking the icon on the right in the output window:
I know this is an old post, but I needed an answer as well and found it here:
https://www.precedence.co.uk/wiki/Support-KB-Windows/ProfileStates
I have resolved the issue with rate limiting for POST requests in my Spring Cloud Gateway application. The problem was that rate limiting requires an identifier for the entity accessing the gateway. For authenticated requests, this identifier is provided automatically. However, for POST requests without authentication, the gateway lacks this identifier and consequently blocks the requests.
Implement Custom KeyResolver
@Bean
public KeyResolver userKeyResolver() {
return exchange -> Mono.just(exchange.getRequest().getRemoteAddress().getAddress().getHostAddress());
}
Then specify the KeyResolver in your configuration:
spring:
cloud:
gateway:
default-filters:
- TokenRelay=
- name: RequestRateLimiter
args:
key-resolver: "#{@userKeyResolver}"
redis-rate-limiter.replenishRate: 1
redis-rate-limiter.burstCapacity: 1
I found someone who helped me understand.
This was his explanation: The main thread that updates the UI needs to have some sort of "break" where it is able to update the UI. In my case the first two status updates invoking the Event were able to update the UI because immediately after them was an "await" that, once completed, provided the "break" that the main thread needed to update the UI, but all of my invocations of the event after that didn't have any "break" for the UI thread to update. I guess that when an async Task completes it interjects into the main thread letting it know it's done and that the main thread may need to do something now and that provides the opportunity to process the StateHasChanged() call.
So while I don't know if this is the best solution I was able to get my case working by making my OnStatusUpdated method async and slipping in an await immediately after invoking the event that updates the UI.
protected virtual async Task OnStatusUpdated(string statusText)
{
StatusUpdated?.Invoke(this, statusText);
await Task.Delay(1);
}
My post was answered in the Mongo DB Community Forum.
Palyground with solved solution
https://search-playground.mongodb.com/tools/code-playground/snapshots/672a21d77816de283aa55341
This issue was solved by using the below search aggregation
Search
[
{
"$search": {
"index": "default",
"compound": {
"must": [
{
"text": {
"query": "big",
"path": {
"wildcard": "*"
}
}
},
{
"text": {
"query": "piano",
"path": {
"wildcard": "*"
}
}
}
]
}
}
}
]
Posting this as an answer as I don't have enough rep to comment.
If you are only interested in the local client manually leaving a Lobby, then you could just toggle a local flag before doing so. If a Client disconnects from a Lobby, but doesn't have this flag enabled, it means they got kicked out.
If you are instead interested in warning the Lobby host that a Client left manually, then you could first send an RPC from the Client to the Host, informing them before leaving. Manual disconnects are simpler to handle because you can write your code in a way that makes the disconnection process happen only after your own checks.
As for the LobbyDeleted
event not firing, are you calling SubscribeToLobbyEventsAsync()
first? The docs don't mention this, but maybe only the Host can receive a LobbyDeleted
event?
There's also a KickedFromLobby
event that you could try and use.
I found that Odoo loads the core module, consider the field as required, it detect some records has no value then fill with the default value. This happens before my custom module is loaded, so nothing I can do, except monkeypatching.
I put this code on my custom module,
from odoo.addons.project.models.project import Project
Project.company_id.required = False
it gets loaded on python code compilation, so it does take effect when loading the core module
Modify the HOME constant:
public const HOME = '/new_path';
Make sure you have a route defined for the new home path in your routes/web.php
Route::get('/new_path', [ExampleController::class, 'exampleMethod'])->name('new_path');
Assure that all remote branches are visible locally by using the command:
git fetch origin
Then to create a local branch that tracks the remote feature branch use the command:
git checkout -b <local-feature-branch> origin/<remote-feature-branch>
HTMLSelectElement.selectedIndex = 0;
I have created a silly workaround to run and build the docker image inside the docker compose, I used maven so you can replace accordingly with gradle, the concept is not complete but actually might show a way how to use just docker compose up to also build your image in behind via anything (docker in docker :-))
context: ../MyService
dockerfile_inline: |
FROM ubi9:latest
ENV DOCKER_HOST=tcp://127.0.0.1:2375
RUN yum install -y yum-utils
RUN yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
RUN yum install docker-ce-cli -y
COPY . .
RUN --mount=type=cache,target=/root/.m2/repository mvn compile jib:dockerBuild
E is just a linear function can be auto parametrised so Need not to worry about it . you can also use Belu from PyTorch
I am able to invoke and successfully trigger the LaunchRequest. However, after each user enters the PIN, I am receiving an error message. Instead of routing to the intended handler, the skill is going to InvocationIntent and SessionEndedRequest, and it is not reaching the SessionHandler as expected. How can I resolve this issue? The same skill and code are currently working in production, but they are not functioning in the development or test environment
{ "type": "SessionEndedRequest", "requestId": "amzn1.echo-api.request.37d31b46-c395-4767-a89f-474425078c38", "timestamp": "2024-11-05T15:00:47Z", "locale": "en-IN", "reason": "ERROR", "error": { "type": "INTERNAL_SERVICE_ERROR", "message": "Can't find skill bundle metadata for skillId amzn1.ask.skill.7c737edc-529e-4ad0-83dd-b9057b5b1bb9 locale en-IN stage development" } }
git clone is the command which can be used to complete copy of repository from git hub to your server.
Your understanding of alias is correct. It looks like it's comes from the ” character instead of "
alias composer=”php /usr/local/bin/composer/composer.phar”
this is why you got
zsh: command not found: ”php
and not
zsh: command not found: php
Maybe try like this:
alias composer="php /usr/local/bin/composer/composer.phar"
To remove a specific row from a TableLayoutPanel is as simple as this:
tableLayout.RowStyles.RemoveAt(1);
RemoveAt removes a row based on the index.
For me the solution was to go to the Visual Studio Installer, select Modify
for Visual Studio 2022, go to Individual Components
, select and install the .NET SDK
.
curses is part of the stdlib. It should be installed by default when you install a Python3 version on Linux https://docs.python.org/3/library/curses.html
I had been looking on an Enterprise Account, but these entitlements are only available on App Store accounts:
Adding another example and full implementation based on the answer above by @hctahkram !
pipeline {
agent any
stages {
stage("Trigger downstream job") {
steps {
script {
buildResult = build(job: "downstream-job", wait: true)
env.A = buildResult.buildVariables.A
}
sh("echo $A")
}
}
}
}
pipeline {
agent any
stages {
stage("Define A") {
steps {
script {
env.A = "aaa"
}
sh("echo $A")
}
}
}
}
create table tbA ( id int, jsonData varchar(max) )
insert tbA values (1,'{"updated_at":1664296267649490}') ,(2,'{"updated_at":1632984531588160}')
select id,DATEADD(SECOND, (cast(JSON_VALUE(jsonData,'$.updated_at') as bigint) / 1000000), '1970-01-01 00:00:00') as dateConverted from tbA
has anyone found a solution to this problem? I'm stuck here too :(
The culprit here was the storage account networking. I had it restricted to selected networks and apparently the VNET containing the ansible node controller was missing.
*Azure Portal -> Storage Account -> Security+Networking -> Firewall and Virtual Networks -> Check Allow Access From (All Networks / Selected Networks).
If it is checked for "Enabled from selected virtual networks and IP addresses" - It means the storage account is firewall restricted.*
I searched for this question and saw what the solution looked like, hope it helps someone
if you start WinappDriver.exe as admin, then your application will be launched as admin.
If you press shift + right button on winappdriver.exe and choose to run as another user, the application should run as the other user
You probably have to add an extra index for whl as per PyTorch official docs
This might fix the issue
pip install torch==1.11.0+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
You can find some of these metrics in the System Tables and more specifically in the node_timeline table.
SELECT *
FROM system.compute.node_timeline
WHERE workspace_id = "<your_workspace_id"
AND cluster_id = "<your_cluster_id>"
It is also available visually in the Metrics Tab of your cluster.
https://<workspace_url>/compute/clusters/<cluster_id>/metrics
This library is for web applications. Please consider using this ant design library for react native https://rn.mobile.ant.design/docs/react/introduce
As the laravel doc states:
Do not use excess indentation when writing Markdown emails. Per Markdown standards, Markdown parsers will render indented content as code blocks.
Remember that markdown will be interpreted spaces are blocks, - are lists, * is bold, etc.
I just stumbled upon the same issue and my fix was to eliminate indentation and empty lines in the content itself. like
@component('mail::message')
<h3 >
You registered at {{ $site_mame }}
</h3>
Best regards, <br>
...
@endcomponent
In my more complex example I had to do it that way:
@component('mail::message')
<h2>Hello {{$body['name']}},</h2>
<p>Cron {{$body['cronname']}} was successfully executed</p>
<div>
@foreach ($body['alerts'] as $alerts)
<div>
@foreach ($alerts as $alert)
@foreach ($alert as $al)
<p>{!! $al !!}</p>
@endforeach
@endforeach
</div>
@endforeach
</div>
<h3>Overview</h3>
...
@endcomponent
In my case, the solution was install the Google Repository and Google Play Services.
In android studio go to: Tools > SDK Manager > SDK Tools
Select the Google Repository and Google Play Services. click aplly, wait to install and click ok
import * as SQLite from 'expo-sqlite/legacy';
using the legacy driver overcomes this successfully as it continues the "WebSQL-like API" https://docs.expo.dev/versions/latest/sdk/sqlite-legacy/
The problem was the video itself. I created it as a clip of a larger video using a free online tool. Whatever that tool was, it did something to the video that Safari on iphone and only Safari on iphone did not like.
Sorry, I forgot to attach the rss resource usage picture after the final pressure test, rss occupies 1069m, which is very abnormal. Did the direct memory removal cause a leak? A look at the netty source code found no significant leaks enter image description here
Timing of Implementation: In the first example, you mock the module first and then set the return value separately. In the second, you provide the return value directly in the mock definition.
Mocking Behavior: In the first example, if you want to further customize behavior after the initial mock, you can do so since the module is mocked but not yet defined. In the second example, you have a fixed return value immediately upon mocking.
Use the first approach when you want to define the mock behavior later in your tests, especially if you have multiple tests that may need different return values for the same hook.
Use the second approach for simpler cases where you want to define the mock behavior upfront and don’t need to change it later.
in flutter: extracting a widget
"A reference to an enclosing class method can't be extracted," ERROR
this happens when the widget we are trying to extract uses setState
(which is specific to statefull widgets)
and it means = NO ACCESS TO setState method
HOW TO FIX THIS?
b-1: Extract with a callBack: The widget is stateful, but it communicates state changes to its parent via the callback,this maintains a single source of truth for the state.
b-2: Extract without a callBack in this case every instance will have its own internal state(isolation). which leads to a difficulty for parent widget to control or access the state.
Mostly we either extract as a function, as a stateless widget, or as a statefull widget with a callback.
when to extract as a statefull widget without a callBack?
I think I understand what you want to do.
First, we’ll add a new click
event on the container.
Once a click is emitted, I need to calculate its position, and for that, I’ll need some information about the container:
containerOffset
containerWidth
clickX
Which gives us (in the order listed):
container.on("click", function(e) {
let containerOffset = container.offset().left;
let containerWidth = container.outerWidth();
let clickX = e.pageX - containerOffset;
});
Now that we have this, we need to convert the click position into a percentage to adjust the slider relatively, ensuring it will position correctly regardless of the container’s width.
let widthValue = (clickX * 100) / containerWidth + "%";
Once that’s done, we can move our slider:
dragElement.css("left", widthValue);
resizeElement.css("width", widthValue);
Which gives us (With the example you provided):
$(document).ready(function() {
// If the comparison slider is present on the page lets initialise it, this is good you will include this in the main js to prevent the code from running when not needed
if ($(".comparison-slider")[0]) {
let compSlider = $(".comparison-slider");
//let's loop through the sliders and initialise each of them
compSlider.each(function() {
let compSliderWidth = $(this).width() + "px";
$(this).find(".resize img").css({ width: compSliderWidth });
drags($(this).find(".divider"), $(this).find(".resize"), $(this));
});
//if the user resizes the windows lets update our variables and resize our images
$(window).on("resize", function() {
let compSliderWidth = compSlider.width() + "px";
compSlider.find(".resize img").css({ width: compSliderWidth });
});
}
});
// This is where all the magic happens
// This is a modified version of the pen from Ege Görgülü - https://codepen.io/bamf/pen/jEpxOX - and you should check it out too.
function drags(dragElement, resizeElement, container) {
// This creates a variable that detects if the user is using touch input insted of the mouse.
let touched = false;
window.addEventListener('touchstart', function() {
touched = true;
});
window.addEventListener('touchend', function() {
touched = false;
});
container.on("click", function(e) {
let containerOffset = container.offset().left;
let containerWidth = container.outerWidth();
let clickX = e.pageX - containerOffset;
let widthValue = (clickX * 100) / containerWidth + "%";
dragElement.css("left", widthValue);
resizeElement.css("width", widthValue);
});
// clicp the image and move the slider on interaction with the mouse or the touch input
dragElement.on("mousedown touchstart", function(e) {
//add classes to the emelents - good for css animations if you need it to
dragElement.addClass("draggable");
resizeElement.addClass("resizable");
//create vars
let startX = e.pageX ? e.pageX : e.originalEvent.touches[0].pageX;
let dragWidth = dragElement.outerWidth();
let posX = dragElement.offset().left + dragWidth - startX;
let containerOffset = container.offset().left;
let containerWidth = container.outerWidth();
let minLeft = containerOffset + 10;
let maxLeft = containerOffset + containerWidth - dragWidth - 10;
//add event listner on the divider emelent
dragElement.parents().on("mousemove touchmove", function(e) {
// if the user is not using touch input let do preventDefault to prevent the user from slecting the images as he moves the silder arround.
if ( touched === false ) {
e.preventDefault();
}
let moveX = e.pageX ? e.pageX : e.originalEvent.touches[0].pageX;
let leftValue = moveX + posX - dragWidth;
// stop the divider from going over the limits of the container
if (leftValue < minLeft) {
leftValue = minLeft;
} else if (leftValue > maxLeft) {
leftValue = maxLeft;
}
let widthValue = (leftValue + dragWidth / 2 - containerOffset) * 100 / containerWidth + "%";
$(".draggable").css("left", widthValue).on("mouseup touchend touchcancel", function() {
$(this).removeClass("draggable");
resizeElement.removeClass("resizable");
});
$(".resizable").css("width", widthValue);
}).on("mouseup touchend touchcancel", function() {
dragElement.removeClass("draggable");
resizeElement.removeClass("resizable");
});
}).on("mouseup touchend touchcancel", function(e) {
// stop clicping the image and move the slider
dragElement.removeClass("draggable");
resizeElement.removeClass("resizable");
});
}
$maxWidth: 960px;
$minTablet: 767px;
@mixin media($size) {
@if $size == 'tabletUpwards' {@media screen and ( min-width : $minTablet ) { @content; }}
}
body {
position: relative;
background-color: #DDDDDD;
font-family: 'helvetica', sans-serif;
font-weight: lighter;
font-size: 14px;
color: #555;
margin: 0;
padding: 0;
min-width: 320px;
}
h1 {
text-transform: uppercase;
color: #333;
}
h3 {
font-weight: lighter;
color: #555555;
}
a {
position: relative;
color: #a8244f;
text-decoration: none;
&:before {
content: "";
height: 2px;
position: absolute;
bottom: -5px;
left: 0;
right: 0;
background-color: darken(#a8244f, 10%);
transform: rotateY(90deg);
transition: transform 0.2s ease-in-out;
}
&:hover {
color: darken(#a8244f, 10%);
text-decoration: none;
&:before {
transform: rotateY(0deg);
}
}
}
.split {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: strech;
p {
flex-basis: 100%;
@include media('tabletUpwards') {
flex-basis: 48%;
}
}
}
nav.social {
display: inline-block;
padding: 0;
margin-bottom: 18px;
li {
list-style: none;
float: left;
a {
padding: 5px;
}
&:first-child a {
padding-left: 0;
}
}
}
.container {
position: relative;
width: 100%;
margin: 50px 0;
.inner {
position: relative;
width: 100%;
max-width: $maxWidth;
margin: 0 auto;
overflow: hidden;
box-sizing: border-box;
padding: 20px 30px;
background-color: #EEE;
}
}
.comparison-slider-wrapper {
position: relative;
width: 100%;
margin: 20px 0;
background-color: white;
.comparison-slider {
position: relative;
width: 100%;
margin: 0;
border: 5px white solid;
box-sizing: border-box;
> img {
width: 100%;
height: auto;
display: block;
}
.overlay {
display: none;
position: absolute;
width: 250px;
bottom: 20px;
right: 20px;
background-color: rgba(0, 0, 0, 0.4);
padding: 10px;
box-sizing: border-box;
color: #DDD;
text-align: right;
@include media('tabletUpwards') {
display: block;
}
}
.resize {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 50%;
overflow: hidden;
> img {
display: block;
}
.overlay {
right: auto;
left: 20px;
text-align: left;
}
}
.divider {
position: absolute;
width: 2px;
height: 100%;
background-color: rgba(256, 256, 256, 0.2);
left: 50%;
top: 0;
bottom: 0;
margin-left: -1px;
cursor: ew-resize;
&:before {
content: "";
position: absolute;
width: 20px;
height: 20px;
left: -9px;
top: 50%;
margin-top: -10px;
background-color: white;
transform: rotate(45deg);
transition: all 0.1s ease-in-out;
}
&:after {
content: "";
position: absolute;
width: 12px;
height: 12px;
left: -5px;
top: 50%;
margin-top: -6px;
background-color: white;
transform: rotate(45deg);
transition: all 0.1s ease-in-out;
}
&.draggable{
&:before {
width: 30px;
height: 30px;
left: -14px;
margin-top: -15px;
}
&:after {
width: 20px;
height: 20px;
left: -9px;
margin-top: -10px;
background-color: #555;
}
}
}
}
.caption {
position: relative;
width: 100%;
padding: 10px;
box-sizing: border-box;
font-size: 12px;
font-style: italic;
}
}
.suppoprt-me {
display: inline-block;
position: fixed;
bottom: 10px;
left: 10px;
width: 20vw;
max-width: 250px;
min-width: 200px;
z-index: 9;
img {
width: 100%;
height: auto;
}
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<div class="container">
<div class="inner">
<h1>Image Comparison Slider</h1>
<h3>A cool way to show diferences between two image, using CSS3 and jQuery.</h3>
<p>Checkout <a href="https://pnewton84.github.io/chindits-in-colour.html" target="_blank">this demo</a> by <a href="https://twitter.com/pnewton84" target="_blank">Pault Newton</a> on his blog.</p>
<!-- COMPARISON SLIDER CODE START -->
<div class="comparison-slider-wrapper">
<!-- Comparison Slider - this div contain the slider with the individual images captions -->
<div class="comparison-slider">
<div class="overlay">And I am the <strong>after</strong> image.</div>
<img src="https://raw.githubusercontent.com/Mario-Duarte/CodePen/main/assets/marioPhoto-2.jpg" alt="marioPhoto 2">
<!-- Div containing the image layed out on top from the left -->
<div class="resize">
<div class="overlay">I am the <strong>before</strong> image.</div>
<img src="https://raw.githubusercontent.com/Mario-Duarte/CodePen/main/assets/marioPhoto-1.jpg" alt="marioPhoto 1">
</div>
<!-- Divider where user will interact with the slider -->
<div class="divider"></div>
</div>
<!-- All global captions if exist can go on the div bellow -->
<div class="caption">I am the caption for the comparison slider and i can give in more detail a context off what you looking at, in this case we are looking at a demo of the comparison slider :)</div>
</div>
<!-- COMPARISON SLIDER CODE END -->
<div class="split">
<p>Cupcake ipsum dolor sit amet tart sesame snaps I love tart. Macaroon I love chocolate cake cupcake wafer oat cake carrot cake. Halvah lemon drops icing. Jelly beans I love lollipop danish. I love chupa chups gummi bears donut toffee. Fruitcake halvah chocolate bar chocolate. Apple pie danish liquorice sugar plum apple pie cheesecake. I love dessert caramels carrot cake cheesecake carrot cake dessert.</p>
<p>Icing biscuit I love pudding I love. Tart tart marshmallow fruitcake cookie bear claw jujubes I love. Soufflé I love candy fruitcake pie cake gingerbread chocolate bar. Sesame snaps pudding candy. Pudding croissant candy canes gummies chocolate tart cheesecake. Gummies chupa chups candy canes tiramisu carrot cake gummi bears tart. I love toffee powder. Pie cake I love cupcake oat cake tootsie roll chocolate bar I love.</p>
</div>
<p><strong>Photography by</strong> <a href="http:mariodesigns.co.uk/" target="blank">Mario Duarte</a></p>
<nav class="social">
<li><strong>Follow me on: </strong></li>
<li><a href="https://dribbble.com/MDesignsuk" target="_blank"><i class="fa fa-dribbble" aria-hidden="true"></i></a></li>
<li><a href="https://www.behance.net/mdesignsuk" target="_blank"><i class="fa fa-behance" aria-hidden="true"></i></a></li>
<li><a href="http://codepen.io/MarioDesigns/" target="_blank"><i class="fa fa-codepen" aria-hidden="true"></i></a></li>
<li><a href="https://bitbucket.org/Mario_Duarte/" target="_blank"><i class="fa fa-bitbucket" aria-hidden="true"></i></a></li>
<li><a href="https://github.com/Mario-Duarte" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a></li>
<li><a href="https://twitter.com/MDesignsuk" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="https://www.instagram.com/m.duarte_/" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<li><a href="https://www.facebook.com/mariodesigns/" target="_blank"><i class="fa fa-facebook-official" aria-hidden="true"></i></a></li>
</nav>
</div>
</div>
<a class="suppoprt-me" href="https://www.buymeacoffee.com/marioduarte" target="_blank"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a Coffee &emoji=&slug=marioduarte&button_colour=FF5F5F&font_colour=ffffff&font_family=Cookie&outline_colour=000000&coffee_colour=FFDD00"></a>
For those interested, here is how I did this in JavaLite: https://github.com/javalite/javalite/blob/master/embedded-tomcat/src/main/java/org/javalite/tomcat/EmbeddedTomcat.java
try updating your .babelrc to this:
{
"presets": ["@babel/preset-env"],
"sourceType": "script"
}
the issue is likely because babel is treating your code as a module by default, which enforces strict mode and makes 'package' a reserved word. setting sourceType to "script" should fix it.
Answering my own question, so others having same issue might find a easier solution than spending 3 days debugging.
Apparently this is intended as of sometime in 2017 where chromium introduced this as a feature to save resources ( wich is a valid point ) - see here: https://issues.chromium.org/issues/40492976 Sadly this breaks user expectations, if i have a videoelement with autoplay = true, it sends an pause event if the videoelement is not in view (either detached, another tab, or if its just out of scroll view). This should be expected to play the video track instead of pausing it behind the scenes.
Another resource about this implementation is here: https://developer.chrome.com/blog/media-updates-in-chrome-61#background-video-track-optimizations
Initially i tried canceling the onpause event but that didnt work so i tried the following that both worked:
1) Append it to the document body, layer it on top of my canvas and set visibility:hidden; (display:none fails with same reasoning, so use visibility:hidden)
2) when stream is optained, and the detached videoelement is created, set the src = stream & call videoElement.play() manually
I ended up using uption 2
This felt like the most sane workaround, i dont manipulate any pause events that might be used elsewhere, and i dont have to append the videoelement and hacky position it over my canvas to keep it shown in view with the canvas at all times while still hiding it. here i simply play manually, wich doenst work automatically with autoplay in this situation where pause events are sent.
it still feels hacky, and weird that firefox handles this in a much better way, atleast autoplay = true, should not care about the videoelement being detached or not.
Do you use H2 as embedded database for tests ? I stumbled across the same problem, whereas if using an actual database (eg. Postgresql a proper UUID is returned) everything worked fine.
The issue on H2 target a discussion on Hibernate bug tracker, but the solution is somewhat unclear.
Seems like the colored
crate has a function for this, should have checked earlier.
https://docs.rs/colored/2.1.0/colored/control/fn.set_override.html
The previous answer explains the why. My setting is managed by corporate so I can't change it. I just started using github copilot, but I have found using the inline copilot feature alleviates the public code issue encountered in the chat. Highlight section of code and right click to engage copilot.
I faced with the similar issue with another backend server using IIS and found that the root cause of the issue is the IIS Cert Handshake. You need to take the steps mentioned in this document to resolve the issue.
I stumbled onto this site while trying to find out what reindent was I’m not trying to mess up the conversation on how to apply it in code or whichever that’s way over my head, but could somebody tell me what it is because it follows me from one phone to the next whenever I back up my phone and get a new one is hidden
I have updated the cache policy for CloudFront Distribution's -> behavior and made it as 'Caching Disabled'. This has loaded the content immediately for me.
I was just wondering whether we can be able to get any documentation on how we can run using appium. We are enterprise user.
¿Con quién puedo hablar dentro de tu empresa para comentar la posibilidad de que aparezcáis en prensa? Hemos conseguido que negocios como el tuyo sean publicados en periódicos como La Razón o MSN, entre muchos otros (como noticia y no será borrada).
¿Qué consigues con esto?
Incrementar el posicionamiento de tu página web Reforzar la reputación de tu negocio Aumentar la confianza que ofrece tu marca en internet
Trabajamos con tarifas desde 99e, sin permanencia y con garantía de devolución por resultados.
Te puedo enseñar ejemplos y casos de éxito en video para que veas cómo funciona.
¿Podrías facilitarme tu teléfono?
Un saludo.
Same problem, too. I cannot understand i already got connection but Connection object cannot used. Did you solve it?
Won't this work?
public IEnumerable<(Class1?, Class2?)> DoSmth()
{
foreach (...)
{
var output = DoComplexCalc();
if (output.Whatever)
{
yield return (new Class1(output), null);
}
else
{
yield return (null, new Class2(output));
}
}
}
I got a solution -> http://blog.functionalfun.net/2012/09/a-quick-guide-to-registration-free-com.html#:~:text=If%20you%20have%20a%20Unit%20Test%20which%20tries%20to%20create
[...]unit tests are actually being run in a different process (for example, the Resharper.TaskRunner), and the manifest file which you so carefully crafted for your exe is being ignored. Only the manifest on the entry executable is taken into account, and since that’s a generic unit test runner it says nothing about your COM dependencies.
But there’s a workaround. Win32 has some APIs –the Activation Context APIs- which allow you to manually load up a manifest for each thread which needs to create COM components.
This code might also help -> https://gist.github.com/LevYas/7275c6f4e402b99a7512547b98b33632
This error (_0_0. call$1 is not a function) frequently arises from problems with Webpack and styles following significant updates. Make sure to verify the compatibility of your SASS-related packages with Next. js 15 when using SCSS modules.
Update sass and sass-loader to their latest versions by executing:
npm install sass@latest sass-loader@latest
After that, remove any cache by deleting. next and node_modules directories, and proceed to reinstall the dependencies using npm install. If you have custom Webpack configurations in your next. config. js file, try temporarily commenting them out and rebuilding the project to check if they are causing compatibility issues. If this guidance proves helpful, re-enable configurations one by one to pinpoint the issue.
You might want to consider reverting CSS-related dependencies (such as sass or postcss-loader) to their previous versions if recent updates have caused conflicts. You have the option to utilize npx npm-check-updates to identify any version discrepancies.
For the final test, you can disable CSS modules by simply renaming file. module. scss to file. scss and importing it globally in _app. tsx. If the problem is solved, it probably indicates a conflict in handling CSS modules. You may want to consider going back to Next. js 15. 0. 1 as an option to investigate any possible issues with the current version.
So what's the recommendation for strict mode after 7.0?
Having a test NOT fail when steps are undefined is very clearly a horrible design. S there a way now to make it fail when the step is undefined, but isn't WIP?
No, Firefox no comunica que está siendo automatizado a los sitios web en forma alguna, envía cabeceras normales, y las galletas que correspondan,para el sitio web está recibiendo a un usuario normal y corriente. Hay sitios web que detectan una excesiva velocidad de acción, o lo contrario, unas pausas demasiado largas.
Replying to @harrie-pieters
If you look at the documentation, https://docs.expo.dev/versions/latest/sdk/sqlite/, there is no longer openDatabase only SQLite.openDatabaseSync (and SQLite.openDatabaseAsync). So my guess is changing openDatabase to openDatabaseSync should solve the issue (untested though).
import * as SQLite from 'expo-sqlite';
// overwrite the `openDatabase()`
SQLite.openDatabase = SQLite.openDatabaseSync;
However this continues to call problem because the openDatabaseSync()
and openDatabaseAsync()
return type also does not match the typeorm
driver spec. I get
databaseConnection.transaction is not a function (it is undefined)
header..blade.php?? ..update:header.blade.php.
In my bazelrc file I commented out the line:
#build --copt -g
And now it does show the details of the link error including the function which was not found.
If you mean if you can type a component Ref yes you can. Since vue 3.5 you can type a component template ref :100 https://vuejs.org/guide/typescript/composition-api.html#typing-component-template-refs
For other types. When you search for something there is always a section for typing.
For a general typescript overview https://vuejs.org/guide/typescript/overview.html
I am facing the same issue, but only on some systems!
my knowledge:
It works not correctly, if Pygments is installed ( css-trouble with display: inline ) It works correctly, if you remove the Pygments module.
you can type "web" in the pprof terminal to get a visualization webpage, it can be useful to understand the profile data
Would you mind sharing a full-screen IDE screenshot with visible .csproj content and NuGet tool window where you are at the moment before pressing "Upgrade"? Also, what is the TargetFramework for your project, and do you have reasons not to use instead of ?
'''
No module named 'lib2to3'
'''
The firebase docs provides more information for your error: https://firebase.google.com/docs/auth/admin/errors
The credential used to authenticate the Admin SDKs cannot be used to perform the desired action. Certain Authentication methods such as createCustomToken() and verifyIdToken() require the SDK to be initialized with a certificate credential as opposed to a refresh token or Application Default credential. See Initialize the SDK for documentation on how to authenticate the Admin SDKs with a certificate credential.
If you want to set the id of your body globally, your nuxt.config.ts
should look something like this.
export default defineNuxtConfig({
app: {
head: {
bodyAttrs: {
id: 'your-body-id', // Replace with your desired ID
}
}
}
})
You saved me, I am very grateful. This problem has been bothering me for over a month, and I have tried various solutions over the past month, but all have ended in failure. In the end, I found an issue in your post, so my device does not support cl.exe for x86 programs to compile CUDA source files, and must use cl.exe with x64 architecture. Based on this idea, I modified the environment variables, removed their x86 path, and added the path of the x64 program, which solved the problem.
I get the same error and the tips above help me.
You need just go to Pub/Sub service on interface, select any topic and click in Trigger Cloud Function
, if the permissions aren't ok, will look like this:
Are those slides from Pitt CS1501?
I am trying to fetch YouTube subtitles using PHP, but I am encountering difficulties. Specifically, I cannot retrieve the subtitles using the typical methods, such as file_get_contents or curl_init. I would like to know how I can manage this process effectively in PHP without relying on those functions.
Additionally, I have created a project in Google Cloud Console and set up the necessary credentials, but I am still not able to retrieve the subtitles from YouTube. I would appreciate any guidance on how to properly configure my PHP code to successfully obtain YouTube subtitles and any steps I may need to follow in the Google Cloud Console to ensure everything is set up correctly.
Thank you for your help!
You can also create your own repository implementation and use the entity manager to call createNativeQuery, here is an interesting link explaining the steps to do it. I already did that in my project and it worked perfectly
Problem Solved! I add code below into /etc/ssl/openssl.cnf file:
[openssl_init]
ssl_conf = ssl_configuration # Section must be registered here
# I adding new section in the end of the file:
[ssl_configuration]
system_default = tls_system_default
[tls_system_default]
MinProtocol = TLSv1
CipherString = DEFAULT@SECLEVEL=0
Years later, simply set
export ELECTRON_OZONE_PLATFORM_HINT=wayland
This does the same as specifying --ozone-platform=wayland
, when starting the program.
See https://www.electronjs.org/docs/latest/api/environment-variables#electron_ozone_platform_hint-linux.
I believe you just missed the data property. When you retrieve data through an api call normally the response wrap with the data property, so changing your code like following should fix the issues:
const result = await getDataToExport();
const CSVData = getCSVColumnsData(result.data);
Right click on console application.
File nesting --> Add project settings. as shown in below image.
.filenesting.json will be added.
I understand this thread is SUPER old. But leaving an answer here anyway fpr anyone else looking this up.
Once you initially install nethunter using the command ./install-nethunter-termux it might just go straight back to the termux command line with nothing else. Then when typing in nethunter or nh (the shortened version that works as the same command), it says command not found.
At the point, run the ./install-nethunter-termux command AGAIN, but this time when you install it will say that it already has a file found, do you want to delete and re-download it. Click N. This will force it to basically unpack and use the root file previously downloaded.
Give it a few minutes to do its thing and you should see the title screen complete.
Now try running nethunter in the command line and Bing bang boom.
Hope this helped
This solution worked for me
if you can't find this path just check ".../node_modules/metro-cache/src/stableHash.js
how did you solve this issue please?
I had this same issue while troubleshooting another issue with deployment. In my case this happened because I stopped the app.
Turns out the triggers cannot be synced when the app is stopped.
conda install --channel=conda-forge fuzzywuzzy