https://www.redhat.com/en/topics/ai/what-is-vllm1816 - 2018 McLaren X2https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.5_release_notes/overview#overview-major-changes
Run "SELECT HOST, USER, plugin FROM mysql.user" on a mysql query file to check if plugin is "mysql_native_password". If it is something else, here's what you do:
use "SHOW STATUS" on a query file.
Check if "mysql_native_password" status is active. If is not, or does not exists, here's what you will do:
Run "INSTALL PLUGIN mysql_native_password SONAME 'authentication_mysql_native_password.dll'"; for windows and "INSTALL PLUGIN mysql_native_password SONAME 'authentication_mysql_native_password.so'" for linux/maxOs. I believe status will be set to active automatically. This if the plugin is not installed. In case if plugin is installed and you want to make it active, heres what you do:
For windows: open "my.ini" file (found in C:\ProgramData\MySQL\MySQL Server 8.0\my.ini in my case, but depends where you installed mysql. ProgramData is a hidden folder set by system default.)
Just under "[mysqld]" add this: mysql_native_password=ON. Don't forget to save the file.
For this to work, you need to restart the server for both scenarios.
Disclaimer: This is also my first time doing this. In my case, I had the plugin installed, but the status was disabled. I got the answers from chatgpt,it solved my problem, you can give a try.
на сайте tematut нашел следующее решение
public_html/modules/blocktopmenu/blocktopmenu.php
ищем функцию generateCategoriesMenu и комментируем её для сохранности оригинала
далее вставляем следующее
protected function generateCategoriesMenu($categories, $is_children = 0)
{
$html = '';
foreach ($categories as $key => $category) {
if ($category['level_depth'] > 1) {
$cat = new Category($category['id_category']);
$link = Tools::HtmlEntitiesUTF8($cat->getLink());
} else {
$link = $this->context->link->getPageLink('index');
}
/* Whenever a category is not active we shouldnt display it to customer */
if ((bool)$category['active'] === false) {
continue;
}
$html .= '<li'.(($this->page_name == 'category'
&& (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>';
$html .= '<a href="'.$link.'" title="'.$category['name'].'">';
//$html .= '<img src="/img/c/'.(int)$category['id_category'].'-medium_default.jpg'.'" class="imgm" height="30" /><br>';
if($category['level_depth'] == '3' AND Tools::file_exists_cache(_PS_CAT_IMG_DIR_.(int)$category['id_category'].'-medium_default.jpg'))
$html .= '<img src="/img/c/'.(int)$category['id_category'].'-medium_default.jpg'.'" class="imgm" height="125" /><br>';
$html .= $category['name'];
$html .='</a>';
if (isset($category['children']) && !empty($category['children'])) {
$html .= '<ul>';
$html .= $this->generateCategoriesMenu($category['children'], 1);
$html.= '<li class="sfHoverForce">'.$category['promo_right'].'</li>';
$html .= '</ul>';
}
$html .= '</li>';
}
return $html;
}
So I've tried a few things so far.
First, I tried to use the 'free' version of LaunchControl but you can't save or clone or really do anything except view information. So, paid the $31 to get the actual tool.
try was I created a shell script in /usr/local/bin that did nothing except "ls -lsatr xxx" on the mounted drive and a single file. I at first cat'd this to /dev/null. This didn't seem to affect the drive which eventually was dismounted.
Did the same thing except this time my "ls -lsatr xxx" output goes to a hidden file on the mounted disk. So far the disk has remained mounted. The real test will be overnight when the system is more or less idle. I'll report back tomorrow.
cond_resched does not necessarily do the process switching. It only means if there are any important task ready then only task switching may happen, exactly at this point.
A value
x
of non-interface typeX
and a valuet
of interface typeT
can be compared if typeX
is comparable andX
implementsT
. They are equal ift
's dynamic type is identical toX
andt
's dynamic value is equal tox
.
https://go.dev/ref/spec#Comparison_operators
so in the example above, everything implements any
, so hello
can be compared
against any comparable
type. but they will only be equal if the types are equal
and values are equal
this did not work in JGrasp, with or without the extra " " after the \b. dont know if its a windows thing. can't run it in the command line because apparently my command line is a previous version of java (64.0) compared to my jgrasp (65.0)
You need to add the following dependency
<dependency>
<groupId>com.google.cloud</groupId>
<artifacId>google-cloud-storage</artifactId>
<version>2.52.2</version>
</dependency>
typing.Self for python >=3.11, otherwise def from_bytes(cls, b: bytes) -> "User":
You could use batched
from itertools
(https://docs.python.org/3/library/itertools.html#itertools.batched):
from itertools import batched
connections = cmds.listConnections()
for destination, source in batched(connections, 2):
print (source, destination)
However, this will only work in python 3.12+
Well, actually it already created an executable. I was just irritated by the message that was saying it created a DLL.
Would have closed the question, but there was no option "already solved" or similar.
I think the simplest way is:
int? myVar = null;
string test = myVar?.ToString() ?? string.Empty;
Dno how you are calling those, but if you create colliders, then raycast them in the same frame, it works not unless you call Physics.SyncTransforms()
in between.
From Laravel 11, Laravel doesn't include an api.php by default. So we need to install it. Simply, we can create it using the below command.
php artisan install:api
This command will set everything.
NOTE : Not an answer
Is this issue resolved I am facing a similar issue with the backend i have developed it is working file with postman,
when I try to hit any endpoint with files it is failing before firebase login and once logged in i am able to hit the routes normally
before login the routes with file
I was using python=3.8
. Amongs the errors there was a warning that the python version was deprecated. I upgraded to python=3.9
and it started working.
For conda/miniconda:
conda create -n yt python=3.9
According to the Jax Docs (emphasis mine):
if you’re doing microbenchmarks of individual array operations on CPU, you can generally expect NumPy to outperform JAX due to its lower per-operation dispatch overhead
It's been a long time since I did a project for the 3DS and it's cool to see people are still writing stuff for it! You're probably getting a crash due to accessing an invalid pointer. Your framebuffer looks very suspicious! You've just set it to a constant (where did you get it?)! It might be the correct value, but you should get the pointer from gfxGetFramebuffer
as that will certainly be correct.
Here's how my project uses the aforementioned function: https://github.com/Gallagator/3ds-Synth/blob/master/source/waveThread.h#L63C20-L63C37
The whole repo is not a great example of how you should write C but it might serve as a guide for how to interact with 3ds.h
The easier way is:
echo. > Your\Path\File.pl
Example:
echo. > C:\Apache24\htdocs\gitweb.pl
The answer to your question is no but I'm not going to quote the reasons given above. On a purely conceptual level IaC is like submitting your plans for a warehouse to a master builder and your warehouse comes with fully functioning racks, employees and trolleys/forklifts wherever you want and it's configured in terms of size, shape, employees, power, racks and spacing instead of having to buy the land, build the warehouse and hire the guys and do the fit out yourself.
Docker is like having a field kitchen or a house or some other modular thing that lives inside a shipping container that you can deploy inside your warehouse and hook it up to the utilities with a modular connector. Or any warehouse no matter the shape or size provided it has the same modular connectors. Both appear similar insomuch as you can make them appear in the desired location with minimal effort. It's not a perfect analogy but it's close.
typename std::list<int>::iterator first(a1.begin());
typename std::list<int>::iterator second(a1.begin());
std::advance(first, 1);
std::advance(second, 3);
std::iter_swap(first, second);
Yes, you're right. It should be: newnode->next->prev = newnode;
instead of newnode->next->prev = node_to_insert_after;
Aside from this, I'm not sure whether this is a typo but where you should have a }
, you have {
. For example, your struct definition should be:
struct node {
int value;
struct node* next;
struct node* prev;
};
What I must ask is: why are you asking this question? Why not write some tests for yourself to see if things work rather than asking on stack overflow? For example, you could write a function which prints the list:
void print_list(struct node *head) {
for(struct node *cur = head; cur != NULL; cur = cur->next) {
printf("%d ", cur->value);
}
printf("\n");
}
Then you could use your insert functions and print the list to see if it works.
This is pretty easy actually
let query = supabase.from('your_table').select('*');
if (filter.houseId) {
query.eq('house', filter.houseId);
}
if (filter.factor) {
query.gte('factor', filter.factor)
}
const results = await query
Here's a reason why the undecidable grammar of C++ could be a problem. When we program using a typed programming language, we are implicitly dividing up the work that the grammar does into two components: one of which is the type system, and it's supposed to be relatively easy. The other is the input-output behaviour of the program, and that input-output behaviour is not something that we have made up, it's something that is given to us by the world, and (as we well know) there are perfectly good questions about the world which are undecidable.
The type system, on the other hand, is something that we invent, possibly motivated by some real-world problem. But we use a type system in order to tame the difficulty which raw input-output behaviour might threaten us with; it is, as it were, a pair of spectacles which, when we put them on, will show us the parts of the worlds which are comprehensible. And so when a compiler assigns types to a program, it is giving you some information about what your program will do when it is executed.So type systems should, when they are applied to a real-world problem, show us how the problem could be simplified. And in order to do this, the type system should give us a view of program which was simpler (in some way) to the program itself. C++ doesn't actually do this, because of the undecidability of the grammar of C++. And it's possible to define a type system in C++ which, when applied to an equality such as 1+1 = 2, typed the sides of this equation by types which were computationally extremely complex, and maybe even undecidable.
Now some programmers think that's just OK, because they know how to write programs in C++ which are a) valid and b) use only type expressions which happen to be decidable, but other programmers think that this is horrible. It's probably worth remarking that C++ and Java are, as it were, mirror images of each other: Java has a type system which is nice and clean and decidable, but it's a type system which will be weaker than it could be. On the other hand, C++ has a huge type system, and that type system will probably be able to come up with types which cannot be easily described by humans.
As an alternative to what OP asks, you can change the setting workbench.startupEditor
from the default welcomePage
to none
.
You press Ctrl +R to open the long list of recent projects and files.
change port number and try again. it will work. i face the same issue that post request works perfectly but get request can't, after hours of debugging and so much frustration, then i tried by changing port number, then it works fine for all types of request
استعادة.جميع.البرامج.الا.الاساسية.الافتراضية.Android.مجاني.مدى.الحياة.بدون.مقابل.التعبئة التلقائية لنظام Android: لم يتم وضع dispatchProvideAutofillStructure()
You can install previous versions:
yay -S python310
python3.10 --version
python3.10 -m venv env
Use virtual environments
Unsloth is not compatible with macOS. The docs say:
Unsloth currently only supports Windows and Linux devices.
I am having this same issue and creating the C:\db_home does not work. I can use the response file with setup.exe" -silent -nowait -waitforcompletion -force -noconsole -responsefile", and it installs, but then I get a no provider error when I try to launch my application. However, if I install using an admin (not local system, because this account generates the error), it installs fine, and my app runs as expected. So, something java related is not kosha when using the local system account. I use MECM by the way, which uses the local system account for deploying apps.
Here's a solution to my problem. With a timer that acts on either of the interval limits, it works.
In the example below, I set the timer to 0.3 seconds for better understanding.
https://stackblitz.com/edit/stackblitz-starters-p4b3rgdy?file=src%2Fmain.ts
If you want to enable automatic recording AND support recording and transcript reading on the online meetings API:
Create an Event using the Events POST specifying IsOnlineMeeting = true
Read the returned JoinUrl
Use that to call the OnlineMeetings GET with filter: 'JoinWebUrl'
Using the returned OnlineMeeting Id, PATCH 'RecordAutomatically = true'
When joining the JoinUrl meeting, recording should start automatically, AND the onlinemeeting API will allow you to read the recordings and transcription.
Working May 2025
Yes, it is possible, I have published a detailed video tutorial on how to extract details from pdf attachments in Gmail and how to arrange the data in a Google sheet. The simplistic source code is here on GitHub:
https://gist.github.com/moayadhani/9bc8e4f59b2f09c574cf061127d72800
I have published a detailed video tutorial on how to extract details from pdf attachments in Gmail and how to populate them to a Google sheet. The simplistic source code is here on GitHub:
https://gist.github.com/moayadhani/9bc8e4f59b2f09c574cf061127d72800
If you're using OnSliderTouchListener
, here’s a solution that works using reflection:
fun setValueAndClick(value: Int): ViewAction {
return object : ViewAction {
override fun getDescription(): String? {
return "Set value and trigger onStopTrackingTouch."
}
override fun getConstraints(): Matcher<View?>? {
return isAssignableFrom(Slider::class.java)
}
override fun perform(uiController: UiController?, view: View) {
val slider = view as Slider
slider.value = value.toFloat()
// Slider extends BaseSlider
val baseSliderClass = slider.javaClass.superclass
// BaseSlider contains "List<T> touchListeners"
val touchListenersField: Field = baseSliderClass.getDeclaredField("touchListeners")
touchListenersField.isAccessible = true
val listeners = touchListenersField.get(slider) as? List<*>
val listener = listeners?.find { it is Slider.OnSliderTouchListener }
if (listener == null) throw Exception("${Slider.OnSliderTouchListener::class.simpleName} not found.")
for (method in listener.javaClass.declaredMethods) {
if (method.name == "onStopTrackingTouch") {
method.isAccessible = true
method.invoke(listener, slider)
break
}
}
}
}
}
Usage Example:
onView(withId(R.id.set_number_slider)).perform(setValueAndClick(10))
If you want to trigger onStartTrackingTouch
, just replace "onStopTrackingTouch"
in the code with "onStartTrackingTouch"
.
I couldn't find a cleaner approach—many solutions online rely on imprecise adjustments with magic numbers. At least this one uses reflection and reliably triggers the required listener.
Resolved by
kotlin.native.cacheKind=none
According to https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compatibility-and-versioning.html#jetpack-compose-and-compose-multiplatform-release-cycles
You must create a new theme for Magento 2. However, some themes have a version for Magento 2 with the same design, saving you a lot of time and money.
I used formatted string like this on python screen window
screen.title(f"{" " * 100} 'My title'")
Simple I create a space and multiplying by let's say by 100 will give 100 spaces rather than hitting spacebar 100 time
Most likely you will need to set the bounce and dampen properties to 0. Something like:
ParticleSystem particleSystem;
var collisionModule = particleSystem.collision;
collisionModule.bounce = 0f;
collisionModule.dampen = 0f;
first go to kivymd\uix\behaviors and edit toggle_behavior.py. just copy and past the code in this link https://github.com/sudoevans/KivyMD/blob/05148dda1d9c697a611cb4452a07f3b9733c4f50/kivymd/uix/behaviors/toggle_behavior.py
this won't fix the bug but will help make a work around.
now the following should work:
from kivy.lang import Builder
# Version: 2.0.1.dev0
from kivymd.app import MDApp
from kivymd.uix.behaviors.toggle_behavior import MDToggleButton
from kivymd.uix.button import MDButton
KV = '''
MDScreen:
MDBoxLayout:
adaptive_size: True
spacing: "12dp"
pos_hint: {"center_x": .5, "center_y": .5}
MyToggleButton:
text: "Show ads"
group: "x"
MyToggleButton:
text: "Do not show ads"
group: "x"
MyToggleButton:
text: "Does not matter"
group: "x"
'''
class MyToggleButton(MDButton, MDToggleButton):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.background_down = '#FF5722' # This is the trick. if you find away to get hex from self.theme_cls.primary_palette that would be better but I don't know so just give it any hex you want.
class Test(MDApp):
def build(self):
self.theme_cls.theme_style = "Dark"
self.theme_cls.primary_palette = "Orange"
return Builder.load_string(KV)
Test().run()
My Odoo also same problem, but when I saw on developer mode (Chrome), it has an error.
So I switch to another browser such as Safari, then try again. It's works.
odoo.conf only admin_passwd and addons_path.
Looks like the problem at database_manager.js was browser problem
It looks like Visual Studio is throwing the DEP0700 error because your WinUI 3 Optional package isn't recognized as part of a RelatedSet when deploying. This happens when the optional package isn't properly linked to the parent package in the MSIX Bundle.
Possible Fixes:
Ensure the Optional Package is in the Same MSIX Bundle
Check Your AppxManifest File
Use Dynamic Dependencies Instead
Verify Deployment Order
If you're still stuck, you can check out this Stack Overflow discussion or Microsoft's GitHub thread for more details.
if you need any more help i'm her [email protected]
Upvoting the solution by MJELVEH
pip install -U langchain-community
sorry I don't have reputation point yet
The issue on my end was due to an unstable internet connection during npm install
. As a result, some packages might not have installed correctly. To fix it, I deleted the node_modules folder and ran npm install
again once the connection was stable. After that, npm run dev
worked fine.
For some reason, the shortcuts are case sensitive.
If you want System.out.println(""); then you have to type sout
and not Sout
!!
please can you provide me a doc and api to work with panini, ihave a project and i don't know how to connect to panini with dll,
import turtle
def dibujar_flor(t, radio, angulo, lados):
for \_ in range(lados):
t.circle(radio)
t.left(angulo)
ventana = turtle.Screen()
ventana.bgcolor("white")
t = turtle.Turtle()
t.speed(0)
t.color("red")
dibujar_flor(t, 100, 170, 36)
turtle.done()
Go to your model folder K:\AosService\PackagesLocalDirectory\XXXXX\XXXXX\AxReport
Find your report XML and save a copy for backup.
Run notepad as administrator and open your reports XML.
Search for your design name
MyDesign
Search again, this time for
<NoRowsMessage>
You might find this
</TablixHeader>
<TablixMembers>
<TablixMember />
</TablixMembers>
</TablixMember>
</TablixMembers>
</TablixRowHierarchy>
<NoRowsMessage>=Labels!@SYS300117</NoRowsMessage>
Replace with
</TablixHeader>
<Group Name="Details" />
</TablixMember>
</TablixMembers>
</TablixRowHierarchy>
<NoRowsMessage>=Labels!@SYS300117</NoRowsMessage>
If you have any Field breakpoints setup in NetBeans this can slow the debugger enormously. You may easily have set a Field breakpoint involuntarily be clicking on a variable.
In NetBeans use Window > Debugging > Breakpoints to check and delete any Field breakpoints, your project will run much faster.
The simple solution is to use tensorflow.keras directly, there is no need to import it.
Samin Ali p
header 1 | header 2 |
---|---|
cell 1 | cell 2 |
cell 3 | cell 4 |
You need to install the Windows SDK (Software Development Kit), which includes the necessary header files like winsock2.h
.
Fix Steps:
1. Install the Build Tools for Visual Studio
2. Restart your terminal/command prompt
3. Try installing pybluez
again
Simply call GrafanaLoki()
to push logs to Loki
Run the app on a specific port (e.g. flutter run -d chrome --web-port=5000
).
In code, on each page:
NavigationPage.SetHasNavigationBar ( this, false );
Is this what you want?
Rename all columns to specified names, regardless of what they were to begin with?
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
NewColumnNames={"apple","banana","chocolate","dog","elephant"},
Rename = Table.RenameColumns( Source, List.Zip( { Table.ColumnNames( Source ), NewColumnNames } ) )
in Rename
In my case, the keyentry was even deleted by clearing the app data. However, I don't know if keys remain if they were created by the Android security library.
But it doesn't work in AJAX (((
I mean PL-SQL called from apex.server.process('PROCESS'...) where PROCESS is for example just a APEX callback process
begin
RAISE_APPLICATION_ERROR(-20000, 'HERE');
end;
At Crystal Abaya Studio, we offer a stunning collection of abayas that cater to all styles and occasions. Whether you're searching for elegant black abaya, modern bisht abaya, Eid abaya or , Abaya we have something for everyone.
The steps below helped me fix this error.
I recommend it.
Thanks for your help.
isLocalAddress
returns true in my test for "0177.1". So if the problem still occurs, please share in which environment you're testing this.
I tried with various Java 8 and Java 21 Docker images on Windows 11.
Btw, the Java snippet in this post covers a few more SSRF protections.
Does this help if you want to appending in list?
Snippet:
rgb_values = []
for idd in range(0, 255, 1):
value1 = int(255 * col_map.colors[idd][0])
value2 = int(255 * col_map.colors[idd][1])
value3 = int(255 * col_map.colors[idd][2])
rgb_values.append((value1, value2, value3))
Still need help on this one, maybe someone can reproduce this problem in order to at least give some advices where to dig.
Use lowercase controller
as it is a reserved routing name
from:
[Route("api/[Controller]")]
to:
[Route("api/[controller]")]
There is no reason to have downvoted the above answer. It does indeed give an excellent example of doing a bounding box accurately with COCO-SSD, and the link is still valid. (I just did the tutorial in the link).
Set the text of the TextView in the custom view.
((TextView)((LinearLayout)getSupportActionBar().getCustomView()).getChildAt(0)).setText("title");
https://developer.android.com/reference/android/widget/TextView#setText(java.lang.CharSequence)
I have the same question have you found the solution⁉️
I fixed it by changing import createSagaMiddleware from 'redux-saga';
to const createSagaMiddleware = require('redux-saga').default;
as as mentioned here link.
I have figured out the problem thanks to this SO post. I used
androidx.core.content.FileProvider
in my java file, but used the following in my manifest: android.support.v4.content.FileProvider
.
I have now changed the manifest to match the java file. Things work now.
And this worked fine for me, now visitng the second app on button click and it's working fine.
In the custom command, urlKey is the url of the second app i was visiting before and faced that error.
There is now an elegant solution to this problem; reportedly.
Its a SaaS service (but free to use for smaller usages) that enables you to:
- Create a form for issue collection with a few clicks (select project, issuetype, initial status)
- Integrate or link to the form from webpage, email etc.
- Users enter their e-mail and fill in the form to register issues.
- When issues are updated or commented on, the user receives an update by e-mail, and can click a link to open the issue and comment (without needing access to Azure DevOps).
See information here:
Reportedly homepage
Do you have New-AzContainerGroup? Read more
https://learn.microsoft.com/en-us/powershell/module/az.containerinstance/new-azcontainergroup?view=azps-13.5.0It provisions the container group to run the container instance.
Eample
New-AzContainerGroup -ResourceGroupName myResourceGroup -Name mycontainer1 -Image mcr.microsoft.com/azuredocs/aci-wordcount:latest
The actual cause was my old custom admin theme. It was still referencing UI extensions (like the unmanagedAttributes tab) from the older version. Even though the backend provider was gone, the theme's JS and metadata were still triggering the frontend to request that route.
Fix: I completely removed the custom theme, restarted Keycloak, and the issue was resolved. The Admin UI no longer tried to load the missing route, and user detail pages worked normally again.
If you're trying to understand how cookies work for educational or development purposes, I can help explain that in a general, legal way — would you like an educational post idea on how cookies work in web browsers or apps
I observed the same issue while testing on a real device using VS Code. Everything had been working fine, then suddenly I started getting the exact same error:
Error: Flutter could not connect to the Dart VM service.
SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 5353
There were no relevant setting changes, and the system’s Local Network permissions looked fine.
Not sure about the root cause, but here is what fixed it for me:
restart the IDE
restart the device
You wrote in /etc/hosts
the IP address and domain name (like nocturnal.htb
)?
In my case, none of the other solutions worked, and the issue was due to enabling mixed precision training with PyTorch's AMP (Automatic Mixed Precision).
The fix was to disable AMP entirely, as no other workaround resolved the NaNs. One potential solution if you still want to use AMP is to adjust the gradient scaling, as discussed in this post. However, I tried various scaling values, and it still didn't work correctly in my setup.
Set header off and create your own header.
SET HEADING OFF
Select 'ID', 'Name' from Dual
Union All
Select ID, Name from myTable
The centers of 3 tangent circles constitute a triangle.
To simplify the explanation, we set our circles in a referential which help us, then it will be up to you to reorient according your real position.
Circle radiuses are named r1,r2 and r3.
Consider that circle 1 and 2 are on an horizontal line and coordinate of the first circle are [0,0] and the second circle are [c,0].
There are two solutions in mirror, third circle tangent on the bottom or the top of the others.
We choose to tangent on bottom to have the third triangle point on top.
The left side of the triangle length which we call ‘b’ is equal to r3-r1.
The right side of the triangle length which we call ‘a’ is equal to r3-r2.
Now to position the c3 center, we shall calculate one of the triangle angle.
This problem is known under the ‘law of cosines’ (see Wikipedia page on the topic)
The angle between the c side (horizontal) and b side (left) will be named ‘alpha’.
alpha = arccos ((b^2+c^2-a^2)/2bc) .
Now, to have the position of the third triangle, do simple trigonometry:
Third circle coordinates = [b cos(alpha), b sin(alpha)].
I did tested the stuff on OpenScad for my own use (finding this thread was of great help), just using rotation instead of trigonometric references.
I got this error because the PORT I was trying my application to run on was already in use.
This is very old, but I also struggled with this bug.
The following eventually worked: Set minimum-scale=1;
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
renderer.setSize( window.innerWidth, window.innerHeight ) somehow messes up the innerWidth and innerHeight. This also happens if the 3rd argument is false (updateStyle) and you set renderer.domElement styles manually.
setting minimum-scale=1 prevents scaling to accommodate the canvas.
You can compare two different branches by choosing "GitLensInspect" > "Search & Compare"
If you can't see it on sidebar do the below:
Press Ctrl+Shift+P
(Windows/Linux) or Cmd+Shift+P
(Mac).
Type Git: Compare Branches
.
Select the two branches you want to compare.
Try deleting node_modules folder and running yarn again.
I had the same error, and that fixed it for some reason, might work for you.
file:///C:/Users/ASUS/OneDrive/Documents/arsip%20new/website-project/src/images/background.jpgenter image description here
Add into metro.config.js:
config.resolver.unstable_enablePackageExports = false;
Store the SENTRY_AUTH_TOKEN
exclusively as a secret within your CI/EAS build environment (avoid using any EXPO_PUBLIC_* variable). The Sentry plugin accesses it during build time, ensuring it does not reach the client. Refer to Expo’s environment variable and Sentry guides for more information.
For few versions PFA snap for enabling the document list
I've been facing the same issue for a long time, and unfortunately the only working resolution was to disable HLS generation by nginx-rtmp-module itself and switch to ffmpeg instead (previously suggested by @sasuke-uchiha).
Relevant excerpts from nginx configuration:
rtmp {
server {
listen 127.0.0.1:1935;
application cctv {
allow publish 127.0.0.0/24;
deny publish all;
allow play all;
live on;
# HLS fragments generation
hls off;
# maintain HLS via ffmpeg instead of nginx-rtmp-module
exec_push /home/cctv/bin/rtmp2hls $name;
exec_kill_signal term;
# rest of RTMP configuration (recorders etc)
}
}
}
The rtmp2hls
script is a simple shell script which is intended to run ffmpeg for every connected publisher and ensure to kill it once SIGTERM is received from nginx (pasting here with minor edits):
#!/bin/bash -e
SPOOL="/var/spool/cctv"
LOGS="/var/log/cctv"
SELF=$(basename "$0")
_ffmpeg_pid=
log () {
logger --id $$ "$SELF: $*"
}
_teardown() {
if [ -n "${_ffmpeg_pid}" ]; then
if ! kill "${_ffmpeg_pid}"; then
log "ffmpeg (${_ffmpeg_pid}) was not running"
else
log "ffmpeg ${_ffmpeg_pid} killed"
fi
_ffmpeg_pid=
fi
log "stopped rtmp-to-hls ffmpeg for ${CAMERA_ID}"
exit 0
}
if [ $# -lt 1 ]; then
echo "usage: $(basename "$0") camera_id" >&2
exit 1
fi
CAMERA_ID="$1"
PULL_URL="rtmp://127.0.0.1/cctv/${CAMERA_ID}"
while read -r fname; do
log "removing stale stream: ${fname}"
rm -f "${fname}"
done < <(find "${SPOOL}/hls" -type f -name "${CAMERA_ID}*.ts" | sort)
# see also:
# https://ffmpeg.org/ffmpeg-formats.html#hls-2
# https://www.martin-riedl.de/2020/04/17/using-ffmpeg-as-a-hls-streaming-server-overview/
ffmpeg \
-i "${PULL_URL}" \
-nostats \
-c copy \
-sc_threshold 0 \
-f hls \
-hls_time 6 \
-hls_list_size 6 \
-hls_delete_threshold 1 \
-hls_start_number_source epoch \
-hls_flags independent_segments+delete_segments+program_date_time \
"${SPOOL}/hls/${CAMERA_ID}.m3u8" 2>>"${LOGS}/${CAMERA_ID}.ffmpeg-hls.log" &
_ffmpeg_pid=$!
log "started rtmp-to-hls ffmpeg (pid=${_ffmpeg_pid}) for ${CAMERA_ID} from ${PULL_URL} to ${SPOOL}/hls/${CAMERA_ID}.m3u8"
trap "_teardown" INT TERM
wait "${_ffmpeg_pid}"
I've been testing this with nginx/1.27.1, nginx-rtmp-module/1.2.2, and ffmpeg/5.1.6 for a few weeks, and everything works just fine. With this setup I was able to get almost clean report from Apple's mediastreamvalidator
tool:
For comparison, here's what I was getting with plain nginx-rtmp-module:
Interestingly enough, even with nginx-rtmp-module's HLS browsers (Safari on macOS or iPad) were regularly fetching playlists and stream data, but never show anything except a spinning wheel.
Fix:
Force the environment to use Python 3.9, which is the latest compatible version.
dockerfile
FROM python:3.9.22-slim # Explicitly use Python 3.9
RUN pip install absl-py==0.9.0
bash
python3.9 -m pip install absl-py==0.9.0
Why Python 3.9?
absl-py==0.9.0
was tested on Python 3.4–3.9.
Python 3.10+ introduces breaking changes that block installation.
No Workarounds Needed → Just use Python 3.9 and it will work.
On windows-
1. Locate where the local applications' resources are stored. Typically they will be in
C:\Users\<your-user-name>\AppData\Local\Programs\
folder
2. You should see two identical files code.cmd and cursor.cmd.
3. You should delete code.cmd and a file named code
4. Now try both commands- code .
should open VS code whereas cursor .
should open the cursor AI editor.
I've found that you can use the C++ <vector> library, which is a lot less complicated than my previous method.
You can use the alternate connection mechanism using the Cluster object, see https://tinkerpop.apache.org/docs/current/reference/#connecting-via-drivers
To pass configuration parameters a ClusterBuilder is available, see https://tinkerpop.apache.org/javadocs/3.7.3/core/org/apache/tinkerpop/gremlin/driver/Cluster.Builder.html
Also the gremlin-drivers for other software languages provide an option to pass configuration parameters in code instead of using a yaml file, see https://tinkerpop.apache.org/docs/current/reference/#gremlin-drivers-variants
Following are two sollutions you can try out
Try by uninstalling it and reinstall it
Create python virtual environment, activate vitual environment and then install "itk" in venv. Finally run your python script
You need to send value from enum's list
Instead of 4
- send catastrophic
I'm not usually use GHCP on a remote server and I'm not quite sure whether GHCP retrieves context from remote or local, but the self-signed issue I was encountering on local could be fixed by adding self-signed cert into trusted root CA and configuring win-ca:
- Request your DevOps team to provide the self-signed certificate and add it to the trusted root CA on the remote server (and potentially on the local machine, if needed).
- Secondly, use win-ca (or mac-ca) extension in VS Code (both remote and local?) with "append mode" to access windows trusted certificate store: https://stackoverflow.com/a/71826748/3789481
Exports are supported since Expo SDK 53. Update to SDK 53 to make tree shaking work.
Write a program to print the week day.
there are seven weekdays.
the first week day is Sunday and the last week day is Saturday respectively if the week day is not in between 1 to 7,print Invalid.
input:
1
output:
Sunday
input:
24
output:
Invalid
make sure to add the line below inside gradle.properties
kotlin.mpp.enableCInteropCommonization=true
Below I am answering my own question. There is a possibility that the answer is not correct. So, I request you to point out any errors or inadequacies.
I am still unable to read the binary file and I could not locate the py2lcov so that I could try to try out the idea given by @Henry. However answer to my primary question, I have been able to figure out. Two passes of trace command were enough.
First pass to create the trace file using "--count --file <TraceFileName>" option. First time you run this command the file mentioned will not be there. So there will be warning. Second pass onwards the file will be used.
Second pass to print the report using the file generated in the previous step with "--report --file <TraceFileName>" option alongwith "--summary" to produce the summary I wanted.
While running the module(s) with trace command <SomeFile>.cover files will be produced. This will be the original code that gets executed. The beginning of each line has a number associated (which tells the number of invocations of that line). An empty or ">>>>>>" at the beginning shows that that line did not get called. You can write a simple parser program to produce a detailed coverage output and write it to an html or xml to produce 'coverage' module like output (or you can customise it to your needs). The ">>>>>>" is produced if "--missing" option is passed in both the steps otherwise a blank is produced for the lines not covered by the unittest.
In both the passes, if you don't include the "--ignore-dir" or "--ignore-module", all the core python modules that get called while executing your actual python file (TempDelete.py in the above example). Thus for example the python is located as "/usr/lib/python3.12" then passing "/usr/lib" will suppress producing the coverage of those files. For details see the official docs.
I am writing below the contents of the test_foo.py and the two commands/passes that I had to execute.
## Contents of test_foo.py
import unittest
class TestStringMethods(unittest.TestCase):
def test_upper(self):
self.assertEqual('foo'.upper(), 'FOO')
def test_isupper(self):
self.assertTrue('FOO'.isupper())
self.assertFalse('Foo'.isupper())
def test_split(self):
s = 'hello world'
self.assertEqual(s.split(), ['hello', 'world'])
# check that s.split fails when the separator is not a string
with self.assertRaises(TypeError):
s.split(2)
def not_covered(self):
print("This will never be printed.")
loader = unittest.TestLoader()
tests = loader.discover('.')
testRunner = unittest.runner.TextTestRunner()
testRunner.run(tests)
Pass 1
$ python3.12 -m trace --count --file ./coverage/coverage --ignore-dir=/usr/lib --missing -C ./coverage/ ./test_foo.py
The first pass printed the output as below, as expected
...
----------------------------------------------------------------------
Ran 3 tests in 0.001s
OK
...
----------------------------------------------------------------------
Ran 3 tests in 0.001s
OK
Skipping counts file './coverage/coverage': [Errno 2] No such file or directory: './coverage/coverage'
Pass 2
$ python3.12 -m trace --report --file ./coverage/coverage --ignore-dir=/usr/lib --missing --summary -C ./coverage/ ./test_foo.py
The second pass gave me the summary I was looking for.
lines cov% module (path)
18 94% test_foo (/home/somefolder/test_foo.py)
I am also pasting the test_foo**.cover** file to show how a .cover file looks like.
1: import unittest
2: class TestStringMethods(unittest.TestCase):
1: def test_upper(self):
2: self.assertEqual('foo'.upper(), 'FOO')
1: def test_isupper(self):
2: self.assertTrue('FOO'.isupper())
2: self.assertFalse('Foo'.isupper())
1: def test_split(self):
2: s = 'hello world'
2: self.assertEqual(s.split(), ['hello', 'world'])
# check that s.split fails when the separator is not a string
4: with self.assertRaises(TypeError):
2: s.split(2)
1: def not_covered(self):
>>>>>> print("This will never be printed.")
1: loader = unittest.TestLoader()
1: tests = loader.discover('.')
1: testRunner = unittest.runner.TextTestRunner()
1: testRunner.run(tests)
I think my main query is resolved but I still do not know how to read/decode the binary file. May be we are not meant to. We can however print the contents with binascii module using ascii.b2a_uu as below.
import binascii
with open("coverage/coverage", "rb") as file_handle:
while(read_content:=file_handle.read(45)):
binascii.b2a_uu(read_content)
It produces the output as below.
b'M*\'UQ "@H6 T N+W1E<W1?9F]O+G!Y<0%+ 71Q DL!*&@!2P-T<0-+ BAH\n'
b'M 4L%=\'$$2P$H: %+"\'1Q!4L!*&@!2PQT<09+ 2AH 4L3=\'$\'2P$H: %+%G1Q\n'
b'M"$L!*&@!2Q=T<0E+ 2A8+0 "]H;VUE+W!A<G1I8VQE+T1E<VMT;W O5&5M\n'
b'M<$1E;&5T92]T97-T7V9O;RYP>7$*2P%T<0M+ 2AH"DL#=\'$,2P(H: I+!71Q\n'
b'M#4L!*&@*2PAT<0Y+ 2AH"DL,=\'$/2P$H: I+$W1Q$$L!*&@*2Q9T<1%+ 2AH\n'
b'M"DL7=\'$22P$H: I+&\'1Q$TL!*&@*2QET<11+ 2AH"DL)=\'$52P(H: I+"G1Q\n'
b'M%DL"*&@*2PUT<1=+ BAH"DL.=\'$82P(H: I+$\'1Q&4L$*&@*2Q%T<1I+ BAH\n'
b'G"DL&=\'$;2P(H: %+&\'1Q\'$L!*&@!2QET<1U+ 75]<1Y]<1]T<2 N\n
However I still do not know how to decode it. If you happen to know the trick, please share.