To anyone still facing this issue, can refer this: https://github.com/proyecto26/react-native-inappbrowser/issues/451#issuecomment-2275538714
to complement the answer https://stackoverflow.com/a/79301018/17570148:
If you only change the values of the id "com.android.application" version "8.1.0" apply false
, and update grladle to 8.3, you may have some problem related to incompatibility between the target JVM versions configured for the Java compiler (in my case; 1.8) and the Kotlin compiler (in my case; 17).
To solve this inconsistency, it is necessary to align the target JVM versions for both compilers. In the android/app/build.gradle file:
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_17 // change the version here (VERSION_17 is my case)
targetCompatibility JavaVersion.VERSION_17 // change the version here (VERSION_17 is my case)
}
// if your file doesn't have this line, you need to add it to ensure that the Kotlin compiler uses the same JVM version as the Java compiler:
kotlinOptions {
jvmTarget = "17" // 17 in my case
}
}
write clear
in the terminal
the above answers also work but then the powershell cursor is confused when you type the next command
There is currently a known issue for this: https://github.com/tauri-apps/tauri/issues/11823
It currently doesn't seem to be possible to properly add resource files on Android. I haven't found any workaround yet, but I asked in the linked GH issue above.
My Android App just crashed and it took me some time to figure out that this is related to file reading.
I installed Debian 10 and php version 7.3.
This seems to work.
Php 8 allows brackets around table name but this does not.
Thanks to these comments, I could figure out what are going on under this issue.
While looking into this issue, I could find more pelicuralities.
SetRenameInformationFile
within an exe as a standard user(without elevation) without a manifest specifiying requestedExecutionLevel
in trustinfo(which handles execution level) triggers this issue.This is indeed related to the manifest file and the UAC virtualization as it is documented that
Specifying requestedExecutionLevel node will disable file and registry virtualization.
And this happens only in 32-bit program as UAC virtualization is only supported for 32-bit apps(as it is for pre-vista apps compatiblity, in which 64-bit was not popular and not used widely).
When using g++ for compiling exe file, it embeds default manifest using pre-generated object file located in {mingw-root}/lib/default-manifest.o
, which contains manifest file such as
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker"/>
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!--The ID below indicates application support for Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!--The ID below indicates application support for Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!--The ID below indicates application support for Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<!--The ID below indicates application support for Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!--The ID below indicates application support for Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
</compatibility>
</assembly>
which is mostly embed into exe file by default for several compilers(Visual Studio, mingw-64-gcc, rust, ...). However, golang does not embed or provide manifest for exe files by itself as they decided to make it a developer's responsibility to do that by themselves. 😢
ERROR_INVALID_NAME
from SetFileInformationByHandle
As noted in the question, the error value ERROR_INVALID_NAME
which is translated from STATUS_OBJECT_NAME_INVALID
comes from luafv which stands for Least authorized User Account File Virtualization Filter Driver, which is used for UAC virtualization.
From luafv!LuafvPerformRename
the part where STATUS_OBJECT_NAME_INVALID
(0xc0000033) comes into the scene it does something like
iterVal = 0;
if (uNameLen != 0) {
do {
if ((*(short *)(namePtr + iterVal * 2) == 0x5c) || (*(short *)(namePtr + iterVal * 2) == 0x3a))
{
esi = 0xc0000033;
goto EXIT;
}
iterVal = iterVal + 1;
} while (iterVal < uNameLen);
}
}
// ...
EXIT:
// release allocated objects...
return;
which reads through WCHAR(uint16) values from the name buffer to be used for renaming, if there is any backslash \
(0x5c) or colon :
(0x3a), it will set a register(particulary ESI) to 0xc0000033 then skip the actual call to FltSetInformationFile
then do the releasing of the allocated resources.
As every name used for renaming ADS starts with :
according to the document, it is obvious that luafv cannot be used to rename ADS. So, it looks like renaming ADS does not work with UAC virtualization.
As, go currently supports Windows versions later than Windows 10, go compiled programs should not need compatibility for pre-vista Windows. Currently, to make 32-bit go compiled programs work without issue, manually embedding manifest file from the above(to also fix some potential issues) is the solution.
While trying to figure out why renaming ADS fails for files under os drive, I have checked that the directories I used for testing has ACL that allow the runner of the process to rename streams. As I was not using directories under C:\Windows
, C:\Program Files
which required administrator rights to access files inside them, I think that such issue should not happen for unrestricted directories. I wonder if Windows has drive-specific security setting for each drive but I could not find any reference about it.
As pointed out by @jokuskay, my code was using the incorrect BuildConfig
class. For some reason, I was importing Google's Firebase BuildConfig
into my activity
with the line of code import com.google.firebase.BuildConfig
. That was a mistake and simply deleting this line fixed the issue.
Thanks @jokuskay!
You can just use the GradientExplainer.
explainer = shap.GradientExplainer(fusion_model, [background_images,background_tabular])
I need help with this, om being attacked for no reason and these people are just embedding malware unto my phone and disrupting the whole system
I am using Python for the Delft3D FM model and also met that problem. I would like to know if you find a solution to that or not. Thank you
I've this class "Vettore" and I need to read an input file with a function (i dont know how to adapt a "ReadfromFile" funcion to classes) and and store them to objects of a class Vettore. I also need to order the content of the class with selection sort
enter code here
class Vettore{
public:
Vettore();
Vettore(int N);
~Vettore();
//copy constructor
Vettore(const Vettore&);
//assignement operator
Vettore& operator=(const Vettore&);
unsigned int GetN() const {return m_N;};
void SetComponent(int, double);
double GetComponent(int) const;
double& operator[](int);
void Scambia(int, int);
private:
int m_N;
double * m_v;
};
i got the same problem. have you found the solution?
You can read a comprehensive article I wrote for the JavaScript tutorial: WeakRef and FinalizationRegistry. Where the use of weak references is described in detail.
I also got same issue. For me user access token worked. rather than app access token.
public async Task<string> GetAccessToken()
{
if (_authToken == null)
{
var tenantId = Configuration.TenantId;
var clientId = Configuration.ClientId;
var authority = $"https://login.microsoftonline.com/{tenantId}";
var scopes = new string[] { "https://domain.sharepoint.com/.default" };
var cca = PublicClientApplicationBuilder.Create(clientId)
.WithRedirectUri("http://localhost")
.WithAuthority(new Uri($"https://login.microsoftonline.com/{tenantId}"))
.Build();
var result = await cca.AcquireTokenInteractive(scopes).ExecuteAsync();
return _authToken = result.AccessToken;
}
return _authToken;
}
But don't forget to add redirect URL in Azure. under Home>>App registartions>>App>>Authentication.
[str(x).encode('utf-8') for x in row]
I have written a script below for quickly connecting using adb pair
and adb connect
on Mac: https://gist.github.com/bartwell/05cb8f4e2a913229ea652fe1eed956e7
Usage:
./script.sh 192.168.0.101
./script.sh 192.168.0.101 --restart-server
./script.sh -h
Shortcuts in PowerCenter allow you to reference the same source, target, or transformation multiple times without creating redundant definitions, making your development process more efficient.
You can use infinite-carousel-vue
For any other types of app than Web App, google doesn't produce Client Secret. If you really need client secret, then you must set your application type web.
Open your terminal in the root directory of your Flutter project.
Run the following commands:
flutter clean
flutter pub get
i'm using: https://textlab.tools/markdown-validator in order to check my markdown and other text formats
hey did you got any solution???
It’s likely due to ScrollTrigger not recalculating positions on load. Calling ScrollTrigger.refresh()
after the layout finalizes, like erome, makes it work!
Does your CNN model expects 2 inputs? if yes just use the GradientExplainer instead of DeepExplainer.
Use this
explainer = shap.GradientExplainer(model, X_train[0:10])
This error is also a symptom of trying to sync the slave from itself. Ensure you are syncing from another node.
Has anybody figured out how to specify a table?
I have hundreds of tables with complicated names. I want a user to input a specific table they want to query and THEN have the agent act on that specific table.
Is that possible?
In a function declaration the return type is specified after the -> It should be clear form the name of the function the intention is to never return. What type should such a function have?
It's the "never" type, see https://doc.rust-lang.org/reference/types/never.html
You need to use the escaped version of <, which is <. Similarly, > should be replaced with > if required.
The scrollbar doesn't overlay on top of content, even if you set its position: absolute;
. Instead, there are few customizable options available for scrollbars, like adjusting the track and thumb colors, changing the height and width, or toggling visibility (using display property). Firefox supports some of these customizations as well.
If you're looking for more control over your scrollbar's appearance, you can either create your own scrollbar (check out this tutorial) or use a library like simplebar, which simplifies the process. If your are using react make sure to use react-simplebar
You can't reference list's variable location in memory through the variables it was created from. Consider this example:
a = 1; b = 2; c = 3
l = [a, b, c]
a = 5
print(a, b, c, str(l)) # Will print "5 2 3 [1, 2, 3]"
Once you modify variable a
, element l[0]
will point to a different location in memory. Check out this article to learn more about how memory works in python.
num = int(input("Enter num for multiplication table : "))
for i in range(1,11): print(f"{num} x {i} = {num*i}")
In my case I hadn't followed the shadcn installation instructions, which details adding the bits (and many other things) mentioned in @mubashir's answer and the linked issue
You can view metrics of different runs using Chat View
follow these steps:
Chat view
Add chart
and configure the metrics that you wanna viewThis behaviour is as expected.
Simple explaination:-
Libuv does not assign a thread from thread pool to a file. When there are multiple I/O (file read) request comes to libuv it will creates multiple tasks of each file read operation. Task is to read a given chunk. And this assignment of task to threads is random as its a asynchronous request. Once a thread completes its task then libuv provides another task to read another chunk of any random file.
I forgot to use adapter.notifyDataSetChanged(). It is working now.
myArrayList = Database.getSharedObject(getActivity()).getMyList();
adapter.setItems (myArrayList);
adapter.notifyDataSetChanged();
save colors with shared preferences
pip uninstall moviepy
than
pip install moviepy==1.0.3
var iframe = document.getElementById("myFrame");
var elmnt = iframe.contentWindow.document.getElementsByTagName("button")[0];
elmnt.click();
wenn man klick in einem Frame simulieren will muss man die var "iframe" nennen.
@user5047085 'if you write to the named pipe once, it seems to stop working after that'. If you open the pipe with O_RDWR (not O_RDONLY) it will keep working.
ريان عبد الحليم محمد عبده الصوفي
Somehow my answer got turned into a comment...
I believe this relates to your problem: Access imported functions from evaled code
Here is the annotation to the eval()
function from the MDN documentation:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#script
"It will be parsed as a script, so import declarations (which can only exist in modules) are not allowed."
import the necessary libraries as bellow for the .tsx file.
import React, { useRef } from 'react';
import { useReactToPrint } from 'react-to-print';
Create necessary button,
<Button
variant="contained"
color="primary"
onClick={() => handlePrint && handlePrint()} // Wrap the call in an anonymous function
>
Print Profile
</Button>
Creat the function,
const printRef = useRef<HTMLDivElement>(null); // Ref for printable content
const handlePrint = useReactToPrint({
contentRef: printRef,
documentTitle: `Principal_Profile_${ttUserId}`,
onAfterPrint: () => console.log('Printing completed'),
});
After these steps I was success and was able to print the content in the typescript file as I needed.
Long story shot:
It's an interesting and sometimes subtle aspect of Java! Even if you don’t explicitly use the static keyword, any interface declared inside a class is implicitly static by definition. --ChatGPT
This means you can reference it without creating an instance of the enclosing class, and it behaves independently of any specific instance of the outer class.
I might be late to the party here.
But as I'm learning more about Java, I find it really interesting.
chatGPT told me this :
Double-check your understanding. Java won't allow truly non-static interfaces nested in classes.
which has brought me here so to say.
I was debating this with ChatGPT, as it stated that inner interfaces are static.
I removed the 'static' keyword from its definition and my code worked, only for it to later tell me that even without the keyword, an inner interface is still static.
don't those params used in class' methods have a role of private fields? Seems to me that they do. And for me the most logical way of naming them would be starting with underscore: class Service1(IService2 _service2)
what do you think?
This can be an issue with the region you are currently trying to work with CodeDeploy. I was trying to work with ap-south-2 region but it was consistently disabled regardless of efforts. I tried switching to ap-south-1 and it worked without any other effort.
You need to run your app on a non-reserved port production Flask server, and then make sure to run a reverse proxy such as nginx for speed and so you can serve to port 80 or 443 and for speed. Don't run your Flask server as root as it's insecure, only the proxy.
Not sure if your question was answered but I think you can find the answer here : Swiftui append to a struct array doesn't work.
The problem you have is basically because you have everything in a view but should use something like ObservableObject: instead. The view is reloaded and cleared each time so that's why your entries are reset constantly.
I would maybe look into gorm transactions as you are touching two tables at the same time.
Can try to develop if needed.
If anyone was wondering how to also sort classes in php files, such as on CMS like WordPress, I am using this plugin: https://marketplace.visualstudio.com/items?itemName=heybourn.headwind
When I change the code as following I was success.
const printRef = useRef<HTMLDivElement>(null); const handlePrint = useReactToPrint({ contentRef: printRef, documentTitle: `My_HeaderText_Print_${userId}`, onAfterPrint: () => console.log('Printing completed'), }); console.log(componentRef.current);
react-to-print version 3.0.4
"My Android app is specifically designed for tablet, and I do not want it to run on mobile phones"
Only a jerk would want that, let the user decide, it's their prerogative not yours. #powertotheusers
Currently there is an ansible module to easily perform an interactive (GUI) login.
- name: Set autologon for user1 with a limited logon count
community.windows.win_auto_logon:
username: User1
password: str0ngp@ssword
logon_count: 5
To better understand the sensor HAL, I want to find out how does the system read data from this sensor, and which function is used to access data from the kernel? Does anyone have any insights on this?
The HAL gets sensor data using callback routines, being generated from lower layers. The initialize()
call from HAL takes a callback function as a parameter. Android sensor HAL provides batch()
function to configure sampling period and maximum allowable latency. The callback functions are called based on configured sampling period. Now it is up to vendor to implement these APIs.
Please see documentation at:Sensor HAL 2.0.
Sensor Driver
I built a GKI kernel for my phone and identified common/drivers/iio/imu/st_lsm6dsx, assuming it was the sensor's driver. I attempted to disable it by removing it from the Makefile. However, the sensor continued to function, indicating that this was not its driver. At least, on my phone, they didn't use this driver.
To achieve power saving and to offload sensor calculations, many mobile SoC vendors provide a separate core for sensor interfacing. Hence for given SoC the sensor driver may not be found in its kernel source code. Please refer target SoC features to know if it contains a separate sensor core.
Comet replied to this question saying API.get_panel_experiments()
results containing hidden experiments is a known issue, and this is supposed to be fixed in a future release.
Comet also said this apperantly should not happen if your custom panel was created by pressing the Create your own panel
link at the buttom instead of + Create new
one at the top, but I don't see this link on my webapp (version 5.87.18), so this workaround is not verified.
Steps:
It totally works for Windows
You are seeing Package3
as Package2.Package3
inside Package1
because there is no other package or any other files inside Package2
than Package3
.
If you wanted to see the hierarchy you either need to add another files/packages inside the package2
or adjust the project settings to compact middle packages
.
On current version regarding this date, I am using the following to get text:
console.log($('#select_id').select2('data')[0].text);
Download and install the latest versions of the Visual C++ Redistributables.
You can create an event that opens a port in a browser when the ports becomes bound. Add this to your devcontainer.json file
"portsAttributes": {
"4200": {
"label": "Angular App",
"onAutoForward": "openBrowser"
}
},
This feature is called chained comparisons (you can read the brief description in the python docs here)
To be absolutely honest, I had no idea the first option was even possible and you absolutely won't be going wrong using the second option (anyone who tells you otherwise has never used any other programming language).
At the same time, I can't find anything with a quick google search that says something negative about chained comparisons, and PEP8 has nothing to offer on the topic either.
Basically that leaves it up to personal preference and style. The general guidelines are to:
Estamos interesados en Btnkumar.
Estamos interesados en hablar con vosotros para que Btnkumar pueda aparecer en prensa y logre una mejor posición en internet. Se crearán noticias reales dentro de los periódicos más destacados, que no se marcan como publicidad y que no se borran.
Estas noticias se publicarán en más de cuarenta periódicos de gran autoridad para mejorar el posicionamiento de tu web y la reputación.
¿Podrías facilitarme un teléfono para aplicarte un mes gratuito?
Muchas gracias.
Would you be willing to report your problem to JetBrains? Please find information on Reporting performance problems and How to get a thread dump when IDE hangs and doesn't respond. Thank you!
A few months late, but it might be because you called the this.context.getApplicationContext().getContentResolver().insert(Telephony.Mms.CONTENT_URI, mmsValues);
before you added anything to the mmsValues variable, so it might've just inserted an empty ContentValues to the content resolver, so try moving that line to right above the smsManager.sendMultimediaMessage.
Also try these too.
https://github.com/klinker41/android-smsmms
https://github.com/aosp-mirror/platform_development/blob/master/samples/ApiDemos/src/com/example/android/apis/os/MmsMessagingDemo.java
From the IntelliJ IDEA documentation on GitLab integration:
"The integration supports GitLab Community Edition and GitLab Enterprise Edition versions 14.0 and later."
Does your version of GitLab meet these requirements?
Usually a CSRF token is bound to a session. So in addition to the CSRF token I would expect you also need to sustain the session, which is typically done by sustaining a session cookie in the HTTP header.
Use s3manager.Downloader
in Go SDK v2 for fast, efficient multi-part downloads from AWS S3. It handles large files seamlessly.
As far as I can find by searching the docs & settings, it's not possible to keep the search results open. It is however, very straightforward to reopen them and the original search & results should be preserved. If you want to, you could file a feature request in YouTrack. It would help if you could explain your workflow; what are you trying to achieve that would require the search results to remain open?. Personally I use search to navigate somewhere and would not need to keep them open, so I am trying to understand why you would.
i guess in this articel you will find the solution
Good afternoon, I ran into exactly the same problem, did you manage to find a solution?
In my case, I open live server settings in vs code and checked;
Live Server › Settings: Full Reload Live Server › Settings: Use Web Ext
Then started reload php serve and live server web extensions.
403 ERROR The request could not be satisfied. Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. Generated by cloudfront (CloudFront)
This is a supplement to JvdV's answer:
I must admit it's impressive and enlightening. I guess I'm not the only one who always seeking for a general method to convert a string into 2-Dimensional array without looping and spliting substring populated by row delimiter. I've known that Application.Transpose will convert 1-D array which contains 1-D subarray as element into 2-D array, but I never realized that it can be combined with Index function in such an elegant way!
Now I extend this method to populate any customized size 2-D array in my project, only if I know the column number of that array, take an example:
Assume that I get a Recordset from ADO object by SQL query and retrieve data by .GetString Method (I can't use GetRows method becuz of Null value in the recordset), then divided the string into a N*4 size 2-dimensional array:
Dim adoCnnctn As New ADODB.Connection
Dim strRcrdSt As String
Dim arrRcrdSt As Variant
Dim arrFld1 As Variant, arrFld2 As Variant, arrFld3 As Variant, arrFld4 As Variant
strRcrdSt = adoCnnctn.Execute(strQry).GetString(adClipString, , ",", ",", "N/A")
arrRcrdSt = Split(Left(strRcrdSt, Len(strRcrdSt) - 1), ",")
With Application
.ReferenceStyle = xlA1
arrFld1 = Evaluate("=TRANSPOSE((ROW(1:" & (UBound(arrRcrdSt) + 1) / 4 & ")*4)-3)")
arrFld2 = Evaluate("=TRANSPOSE((ROW(1:" & (UBound(arrRcrdSt) + 1) / 4 & ")*4)-2)")
arrFld3 = Evaluate("=TRANSPOSE((ROW(1:" & (UBound(arrRcrdSt) + 1) / 4 & ")*4)-1)")
arrFld4 = Evaluate("=TRANSPOSE((ROW(1:" & (UBound(arrRcrdSt) + 1) / 4 & ")*4)-0)")
arrRcrdSt = .Transpose(Array( _
.Index(arrRcrdSt, 1, arrFld1), _
.Index(arrRcrdSt, 1, arrFld2), _
.Index(arrRcrdSt, 1, arrFld3), _
.Index(arrRcrdSt, 1, arrFld4)))
End With
Key points you must pay attetion to:
And thank you! @JvdV
If your password contains special characters like @, $ and &. Use url encoded version.
@ becomes %40 $ becomes %24 & becomes %26
replace with above characters. It should work
I faced the same error , if you use linux you can just add the command
fnm env --use-on-cd | Out-String | Invoke-Expression
to your profile of shell.
Otherwise , just run it in shell and fnm list
then you can choose from the installed ones.
This can be caused by the "Prefer 32-bit" flag being checking in the project settings.
You have to specify the build packs as mentioned in below reference:
You can get more information about buildpacks from below reference in the Build pack section:
Here is how you can achieve it, by modifying pom.xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<builder>paketobuildpacks/builder:base</builder>
<buildpacks>
<buildpack>gcr.io/paketo-buildpacks/amazon-corretto</buildpack>
</buildpacks>
<env>
<BP_JVM_VERSION>17</BP_JVM_VERSION>
</env>
</image>
</configuration>
</plugin>
</plugins>
</build>
The issue likely comes from compatibility problems between Python versions, scikit-learn versions, or missing dependencies in your APK environment. Make sure the Python version used to train and save the model matches the one in your app. Also, check if all required libraries are correctly bundled in your APK.
Make sure you have installed AS "Mac with Apple chip" version.
Also, have you tried to install AS on the host (not VM)?
You need to add the following line with the channel name into your AndroidManifest.
<application
....
>
<meta-data android:name="CHANNEL" android:value="9apps_int"/>
...
</application>
P.S. I know it's an old question but yesterday this info would save me a lot of time :)
I had the same issue and switching to DGPU mode fixed it for me. Some bug with windows. Hope this helps :)
there might be issues in with version compatibility or wsl is not restarting with installation of new software. you can try after shuting down with wsl --shutdown command. or check if node.js binary is in your path of ubuntu,or add it manually. update nodejs or use --force if necessary. hope this helps. mine worked after a shutdown.
So sorry for jumpimg in but its urgent Hello my iphone was stolen and they got my apple id and changed every security details i got my company email when i bought a domain for google project and i can log into the du app but there is mo call log or option to call and msg forward to get my otp i have my iphone bill and i cant get mu apple id how can i make a divert before they close or change the simcard or how can i get the otb from du app please help thanks
The solution was to use an Oauth app instead of a Github app!
isNaN ( number ) The isNaN function is the %isNaN% intrinsic object. When the isNaN function is called with one argument number, the following steps are taken:
Number.isNaN ( number )
If Type(number) is not Number, return false.
If number is NaN, return true.
. Otherwise, return false. More info ref the doc
I actually just made a VS Code extension to solve this exact problem: Fold Single-Line Comments
It enables folding for consecutive single-line comments in Python (and other languages like Ruby, Shell, and YAML). To do this, it implements a FoldingRangeProvider that detects sequences of lines starting with '#':
if (trimmedText.startsWith('#')) {
if (startLine === null) {
startLine = i;
}
lastLine = i;
} else if (startLine !== null && lastLine !== null) {
if (lastLine > startLine) {
ranges.push(new vscode.FoldingRange(
startLine,
lastLine,
vscode.FoldingRangeKind.Comment
));
}
}
Currently, it not will count empty lines as part of a foldable area, which is different from how VS Code officially supports it for JavaScript/TypeScript's single-line comments, but I personally thought it would be better that way. I'm not sure if there's enough demand to toggle it otherwise/set it as the default.
The extension automatically enables folding for consecutive single-line comments, and you can click the folding icon in the gutter (like in your C example) to collapse/expand them.
Here's a picture showing the gutter with Python code.
Here's how they look when folded.
You can also use the command "Fold Single-Line Comments" from the command palette to specifically fold only those single-line comments. There is currently no "Unfold Single-Line Comments," but it should not be too hard to add. The official Unfold All command will work with this, because we've simply consecutive single-line comments as viable folding areas.
15 years later. How did it work out?
Also anyone now reading this in 2025. I would recommend a columnar database (snowflake, bigquery, clickhouse etc). And then let your visualization platform handle the semantic modeling
React buddy waits for the dev server to expose the view at http://yourIPV4Address:5173/
but its not exposed to this address/network by default, you need to explicitly mention it in the script as answered by window10 rd.
in your package.json -> scripts change "dev": "vite" to "dev": "vite --host"
Here is a version that should work whatever the serialized contents are (whether they contain quotes, shell special characters or whatever):
- name: Dump GitHub context
run: |
cat << 'EOF'
${{ toJSON(github) }}
EOF
For colab:
!cp -r /usr/local/lib/python3.11/dist-packages/traitlets /usr/local/lib/python3.11/dist-packages/IPython/utils/
!mv /usr/local/lib/python3.11/dist-packages/IPython/utils/traitlets.py /usr/local/lib/python3.11/dist-packages/IPython/utils/traitlets.py.bkup
No, the System.Speech type does work on PowerShell 7.6 preview.0. There's what I did:
Add-Type -AssemblyName System.speech
$PromptTTS = New-Object System.Speech.Synthesis.SpeechSynthesizer
$PromptTTS.Speak("Hello")
(but it does not returns something like in Windows PowerShell)
I have the same problem and the same question, can you help me?
Turns out the error was elsewhere in my code - a hash table was only getting updated with the last label and associated data. So the issue was not with VoiceOver at all.
you can cast
var query = myContext.Mammals
.Include(mammal => ((Dog)mammal).Tail)
.Include(mammal => ((Bat)mammal).Wing)
.Include(mammal => ((Buffalo)mammal).Horns)
modify tsconfig.json file
{
"compilerOptions": {
"paths": {
"@/*": [
"./*"
]
},
//other options go here
}
const list = paddle.subscriptions.list();
const result = [];
for await (const item of list) {
result.push(item);
}
dear friends please note the provided tutorial NOT WORKS maybe this used to work before, but as for Windows 10 22H2 this doesnt help in any way, i spent 3 hours tryung to replicate the process with no luck
instead, please reffer to this tutorial if you want to succeed
what is the main diference anyway ?
the syntax
the given here advice says
"C:\Users\MYNAME\Desktop\Win7AppId1.1.exe" C:\Users\MYNAME\Desktop\Xbox.lnk Microsoft.GamingApp_8wekyb3d8bbwe!Microsoft.Xbox.App
instead you need to cut the full adress and get rid of brackets of first object and provide brackets for next objects so the command now would look this
Win7AppId1.1 "Xbox.lnk" "Microsoft.GamingApp_8wekyb3d8bbwe!Microsoft.Xbox.App"
and now IT WORKS
what about delaying the reading of the target.attribute value with setTimeout, works rather consistently for me:
const observer = new MutationObserver(records => {
for (const record of records) {
if (record.type !== 'attributes') continue
setTimeout(
function(delayedRecord) {
handleAttributeChange(
delayedRecord.attributeName!,
delayedRecord.oldValue,
delayedRecord.target.attributes.getNamedItem (delayedRecord.attributeName).value
)
}, 0, record )
}
})
I've found that setting the timeout delay for 0ms runs the code in the next tick - usually when the attribute value has been updated.
Please provide more details of your code where you use <ConfigProvider>
component?
I have the same issue and i already have done all the way you did . it might be a gitlab registry issue to get the image but sill have no clue.
Basic function for your operation is as follows:
template<typename L, typename R>
std::any Add(std::any l, std::any r) {
return std::any(std::any_cast<L>(l) + std::any_cast<R>(r));
}
Note that above function uses c++ rules for finding a common type. You may wish to look at std::common_type
or specializations.
Other than that, this problem is related to multiple dispatch. Popular languages usually don't bother with it and use single dispatch for all dynamically typed values (virtual functions) and sometimes end up with quirks such as __radd__
in python. You may also be interested in reading about as dynamic
cast in C# for overloads
As discussed case is relatively simple, it can be achieved by having a std::map
:
std::map<
std::pair<std::type_index, std::type_index>,
std::any (*)(std::any, std::any)
>
For such cases I prefer not to bother myself with metaprogramming and would write a codegen file, but for the sake of staying in c++ let's just use macros (and have 2N repetitions instead of N^2). In the end any solution will produce N^2 entities in the resulting machine code
#define IT(L, R) { \
{std::type_index(typeid(L)), std::type_index(typeid(R))}, \
&Add<L, R> \
},
#define FOR_T(R) \
IT(short, R) IT(int, R) IT(double, R)
FOR_T(short) FOR_T(int) FOR_T(double)
Complete example below:
#include <any>
#include <map>
#include <typeindex>
template<typename L, typename R>
std::any Add(std::any l, std::any r) {
return std::any(std::any_cast<L>(l) + std::any_cast<R>(r));
}
#define IT(L, R) { \
{std::type_index(typeid(L)), std::type_index(typeid(R))}, \
&Add<L, R> \
},
#define FOR_T(R) \
IT(short, R) IT(int, R) IT(double, R)
using operator_dispatch_key = std::pair<std::type_index, std::type_index>;
std::map<operator_dispatch_key, std::any (*)(std::any, std::any)> all_ops = {
FOR_T(short) FOR_T(int) FOR_T(double)
};
#include <iostream>
int main() {
auto l = std::any(int(1));
auto r = std::any(double(2.5));
auto l_t = std::type_index(l.type());
auto r_t = std::type_index(r.type());
auto res = all_ops[std::make_pair(l_t, r_t)](std::move(l), std::move(r));
std::cout
<< res.type().name()
<< ' '
<< std::any_cast<double>(res)
<< std::endl
;
return 0;
}
Program returned: 0
Output: d 3.5
PS as your operators are "internal" you can just use an array of such maps for them. It won't work for type ids of std::any
because they are not sequential