TYPESCRIPT VUE 3 2024-11-28
if you see this You might get build errors or same error as OP. Don't import pdfFonts. instead follow this.
pdfMake.fonts = { Helvetica: { normal: "Helvetica",bold: "Helvetica-Bold",italics: "Helvetica-Oblique",bolditalics: "Helvetica-BoldOblique",},}
and remember to add following to your docDefinition (TDocumentDefinitions)
defaultStyle: { font: 'Helvetica' }
what we have done is instead depending on Roboto font we used 'Helvetica' font insted, which is browser safe font(comes pre installed in most OS and web browsers). and this method only works with English Charactors. you could try to change this for your desired font but I cannot guarantee if it will work for you. read documentation for more info : https://pdfmake.github.io/docs/0.1/fonts/standard-14-fonts/
After investigating, I discovered the issue was caused by a typo in the endpoint URL. I had written Commnets instead of Comments. Correcting the typo resolved the issue.
Here’s the corrected configuration that worked for me:
HTTP Request Configuration
Method: POST
Endpoint:
_api/web/lists/getbytitle('Project Tracker')/items('ItemID')/Comments
Headers:
{
"accept": "application/json;odata=verbose"
}
Body:
{
"text": "This is a new item."
}
I hope this helps anyone facing a similar issue! If you have any further questions or suggestions, feel free to share them in the comments below. 😊
The Local History plugin allows you to autosave file changes and view the file history after reopening VSCode.

The buffer size option in SFTP is -b buffer_size
It specifies the buffer size used for data transfer. The default is 32768 bytes. The minimum allowed value is 1024. The maximum allowed value is 4194304 bytes.
I would need to profile the application for available heap and set this buffer size accordingly so that application does run out of heap and throw a OOME.
Got it!
Setting the scope for the service account credential is all that is needed:
_serviceAccountCredential.Scopes = new string[]
{
Google.Apis.Drive.v3.DriveService.Scope.DriveReadonly
};
I can now read the contents of my google drive folder.
[I know the StackOverflow rules prohibit answers generated by AI, but hats off to Gemini to pointing me in the right direction when I asked how to generate the token. It pointed me to this answer in StackOverflow.]
I opened XAMPP directly from /Applications/XAMPP/xamppfiles/manager-osx, then created an alias by right-clicking the file.
big thanks to dm-p (Daniel Marsh-Patrick)
To disable rebasing in Sourcetree go to Settings > Advanced > Edit Config File, at the end of the file you will see below code:
[pull]
rebase = true
Change true to false and restart Sourcetree. After that you won't see the rebase option while pulling
I created this VS Code extension that shows comments when you mouse over package scripts. I would appreciate it if you could try it out and provide feedback. Thank you.
https://marketplace.visualstudio.com/items?itemName=yeongmin.package-scripts-hover
https://www.kali.org/blog/python-externally-managed/
TL;DR: pip install is on the way out. Installing Python packages must be done via APT, aka. Kali Linux’s package manager. Python packages coming from other sources should be installed in virtual environments.
This is From Kali ^^^^
If your mobile device is also connected to same network then you can access through local network ip address with application running port.
I followed this guide which helped me to understand how can i get local ip address and check application in mobile
Maybe helpful for you https://freesv.com/how-to-access-localhost-on-mobile-within-the-same-network/
Problem Solved . The issue was with Axios and request method . In IOS we should pass "GET" for get request, not small letter "get"
Thank you so much for your suggestion Paul. its now working after the update
I ran into this problem on Windows 11 using the latest version of Docker Desktop.
Sprinkle the magic (no quotes) '--provenance false' on your build and you only get the image you need.
The full command is this
docker build --platform linux/amd64 --provenance false -t docker-image:test .
I ran into this problem on Windows 11 using the latest version of Docker Desktop.
Sprinkle the magic (no quotes) '--provenance false' on your build and you only get the image you need.
The full command is this
docker build --platform linux/amd64 --provenance false -t docker-image:test .
Use regex pattern: \d+x\d+
Which match 
string pattern = @"\d+x\d+";
MatchCollection matches = Regex.Matches(input, pattern);
foreach (Match match in matches) {
Console.WriteLine(match.Value);
}
this is because dim = 64, head_num2 = 16, 64 // 16 = 4 and 4 is not divisible by 8. Pytorch becomes inefficient in this case.
To avoid this, also need to set dim = 128 as 128 // 16 = 8.
def diagonalDifference(arr):
n = len(arr)
left_to_right = 0
right_to_left = 0
for i in range(n):
left_to_right += arr[i][i]
right_to_left += arr[i][n - (i + 1)]
return abs(left_to_right - right_to_left)
Modify the MainActivity's launch mode as SingleTask,SingleTop. Such as:
[Activity(Theme = "@style/Maui.SplashTheme",LaunchMode = LaunchMode.SingleTask,
Have you found out the solution yet? I faced the same issue and can't fix it too
Thank you @suamikim
For someone who use Rollup, To hide the warning that Rollup outputs about use client warning, we can use onwarn handler in Rollup config
https://rollupjs.org/configuration-options/#onwarn
rollup.config.js
const onwarn = (warning, warn) => {
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') return
warn(warning)
}
export default [
// Build CJS
{
onwarn,
...
},
// Build ESM
{
onwarn,
...
}
]
Do you want to try this method?
https://stackoverflow.com/a/65354430/20586534
Their method involves adding a recording rule. I’ve tested it myself, and the alert numbers are indeed correct.
whether there is a demo to show the diff?
I struggled a bit on this and found out that my Stored procedures parameters were in date datatype, i changed it to datetime datatype and it seemed to do the trick. My Parameter drop down is now in DD/MM/YYYY from MM/DD/YYYY
Yeah, not an expert but been going through the same issues lately and might have some leads for you.
"Chaining multiple stateful operations on streaming Datasets is not supported with Update and Complete mode."
I know, it doesn't say that it is not supported with "Append" mode, but better safe than sorry. It's also easier to check/debug your code if you split it into smaller steps. If everything works, you can still try to combine it again afterwards.
See the code example here for joins: https://spark.apache.org/docs/3.5.1/structured-streaming-programming-guide.html#inner-joins-with-optional-watermarking
When talking about joins there are different requirements for various types of joins (inner is easier than outer etc.)
And check the example here for a watermark/window aggregation: https://spark.apache.org/docs/3.5.1/structured-streaming-programming-guide.html#handling-late-data-and-watermarking
By the way, you don't necessarily have to use a window in your groupBy clause, you can also group by the event-time column (that you used in the watermark). But one of the two options you must go for, or your watermark has zero effect in that aggregation.
An effective way of checking if your watermarks work in groupBy cases, is to start an incremental DLT pipeline refresh (not a full refresh!) and look at the number of processed/written records. It should only process the streaming increment and not the total number of records... If you see the same number of records (or growing) in each DLT update, you are doing something wrong, because DLT is then switching to "complete" mode automatically (which you don't want usually in a streaming workload).
To scrape the mentioned webpage and handle dynamic URLs effectively, here are some tips:
Steps to Identify Dynamic URLs
Debugging the Error The HTTP_500 error suggests the request might be missing critical details. Compare working requests in the browser with your manual attempts to identify discrepancies.
Tutorials on Web Scraping Dynamic Pages
If you're restricted to PHP and Simple_HTML_DOM, try combining it with CURL to mimic API requests effectively.
I created this VS Code extension that shows comments when you mouse over package scripts. I would appreciate it if you could try it out and provide feedback. Thank you.
https://marketplace.visualstudio.com/items?itemName=yeongmin.package-scripts-hover
Found a solution, not optimal but is best solution. It works with daylight savings also:
bar_data['time'] = (bar_data['time'].dt.tz_localize('UTC').dt.tz_convert('EST').dt.strftime("%Y-%m-%d %H:%M:%S"))
This converts the date time object into a string without the timezone and this will chart properly through lightweight_charts api.
Granting uir permissions only works with Activity, not Broadcast.
In my scenario, assigned analytic privileges 'SYS_BI_CP_ALL' to the user resolved this error.
Hope this helps.
You might need to setup the debug environment again. I had this problem, uninstalled all extensions then reinstalled the python debugging extension. some unexposed setting swapped back over and now the default f5 run outputs to "output"
yeah, I'm on Windows 11 and having the same problem. If you specify the URI@Sha it works.
What's weird is walking through the problem with AWS support, it does not happen when you do the same from Linux or Mac.
it appears to be an issue with Docker Desktop on Windows.
I had a similar issue but with expo. Basically I had a locally built android folder, then I updated from expo SDK 51 to 52 and from react native 0.74 to 0.76 which I believe was causing this issue.
What resolved it for me was to
I figured it out!
Here's what I changed.
First of all, in the jinja2 template, I checked the email like this: {% if current_user.get_id() in artwork.votes %} instead of {% if artwork['votes'][current_user.get_id()] is defined%}.
Next, I changed the upvote function to be like this:
@app.route("/upvote", methods=["POST"])
def upvote():
if current_user.is_authenticated:
artwork = DisplayArtwork.objects(filename=request.form["filename"]).first()
if artwork:
user_email = current_user.get_id()
if user_email in artwork.votes:
artwork.update(pull__votes=user_email)
return "downvoted", 200
else:
artwork.update(add_to_set__votes=user_email)
return "upvoted", 200
return "Failed to upvote", 500
return "Login to upvote", 401
artwork.update(pull__votes=user_email) won't throw KeyError so I changed it to manually check whether the email was in the list and then decide what to do.
I also forgot to add .first() to get one artwork instead of a list.
Avals.offset(0,3) does not work because Avals is a JavaScript array, not a Range object. Offset only works with Range objects in Google Apps Script.
ahuemmer, thank you! I changed the parameter name to the index of the parameter on cacheable key name and it just worked ('EL1007E in Cachable changes' exception went away). Finally, I saw my data in Redis. My current change is like this:
@CachePut(cacheNames = "account", key = "#p0.universalId", cacheManager = "demoAccountCacheManager")
This issue must be caused from version conflict because the parameter name also works on my experimental project spring-boot-start-web:3.3.4 (spring framework 6.1.13).
Here is my solution.Go back to the default first item.
ToolbarItems.Add(new ToolbarItem("Back",null,async () =>{
this.CurrentPage = this.Children[0];
await Navigation.PopModalAsync(true);
}));
It seems like some configuration in the artifacts we are trying to publish to APIM result in a malformed JSON. We can help further if you can provide the CAPP after removing all the sensitive data.
me also getting the same issue, see, when i do npm run build in my vs code, then it worked without any error and running as expected without any build errors. Now when i am trying to deploy nextjs app in which i have used shadcn and aceternity ui components to vercel, then i am getting not found error for all this. Do you able to slve/fix this ?
Have you tried wrapping the text(s) you want styled differently in a span element(s) and then giving them a id/class selector to style it?
Is the Capacity Provider target set to something lower than 100? If so, you're telling it you want extra instances as buffer for tasks and it'll try and launch extra ones.
I created this VS Code extension that shows comments when you mouse over package scripts. I would appreciate it if you could try it out and provide feedback. Thank you.
https://marketplace.visualstudio.com/items?itemName=yeongmin.package-scripts-hover
I want this feature too but the only solution that simple and works is this:
export async function generateStaticParams() {
if (process.env.MODULE != '') {
return [{ slug: [] }]
}
return source.generateParams()
}
then:
MODULE=rpa pnpm run build
the out build would not include the dynamic route directory.
next version: ^14.2.15
@CachePut(cacheNames = "account", key = "#createAccountRequest.universalId", cacheManager = "demoAccountCacheManager")
In browser/node projects:
you can run
copy(serialisedResults)to copy the untruncated value to your clipboard
https://github.com/microsoft/vscode/issues/94937#issuecomment-920116542
you need to create nat vm with this guide in order to use private connectivity so you dont need to use external ip from cloud sql https://cloud.google.com/datastream/docs/private-connectivity#whatsnext
This is what you what your snippet should be:
"Ejercicio": {
"prefix": "ejer",
"body": [
"<section data-type=\"sect2\">",
" <h2>Ejercicio</h2>",
" <p></p>",
" <section data-type=\"sect3\">",
" <h3>Solución</h3>",
" <figure>",
" <figcaption></figcaption>",
" <img src=\"\" alt=\"\"/>",
" </figure>",
" <p></p>",
" </section>",
"</section>"
],
"description": "Ejercicio"
}
Note. You are not setting the "body" property correctly.
Specifically, you have not correctly escaped the multiple " with \"
You can not just copy and paste code into the "body" you have to first format it correctly. As either a single string or a collection of strings.
From the VSCode documentation:
bodyis one or more lines of content, which will be joined as multiple lines upon insertion. Newlines and embedded tabs will be formatted according to the context in which the snippet is inserted.
See VSCode snippet documentation for reference: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets
I had some conflicts while installing the dependencies.
Clean Installed Dependencies:
Remove node_modules and package-lock.json (or yarn.lock if you're using Yarn), then reinstall all dependencies.
rm -rf node_modules package-lock.json
npm install
As of 2024, you don't need ACL for this.
In the Web UI open the bucket and go to 'Security' section, 'Access bindings' tab:

how is your app ?
I need a flexible post creation feature in an app, similar to what we have in social media apps like Twitter, that allows users to add text, images, and location freely without using EditText fields.
I know how to add content using EditText for text and ImageView for images, but in real Android apps, they use a different approach.
For example, the Twitter post activity allows users to write freely and add images, GIFs, and locations if desired.
The post activity will help me add geological discoveries from the field, which will include:
-a title : text -an image : uri,string -date(auto generated ): number -gps coordinates (auto generated): number -dimensions ,auto generated : number -texture , color,hardnes :strings -mineral composition : a text,long a little -structural features :long text -formation ,a text -context : medium text -Name : the name of the rock , it is a text
I want to build something that is user friendly.
Below is my full android resource file (code) that i have:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp">
<ImageButton
android:id="@+id/btn_close"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:contentDescription="Close"
android:src="@android:drawable/ic_menu_close_clear_cancel" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="Drafts"
android:textColor="#FFFFFF"
android:textSize="18sp" />
<Button
android:id="@+id/btn_post"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="@drawable/rounded_button"
android:text="Post"
android:textColor="#FFFFFF" />
</RelativeLayout>
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/profileImage"
android:layout_width="70dp"
android:layout_height="70dp"
android:scaleType="centerCrop"
app:shapeAppearanceOverlay="@style/CircularImageView"
app:strokeColor="#713808"
app:strokeWidth="2dp" />
<EditText
android:id="@+id/et_post_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@null"
android:hint="Your discovery"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:minHeight="48dp"
android:inputType="textMultiLine" />
<EditText
android:id="@+id/color"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="Color"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:minHeight="48dp"
android:inputType="text" />
<EditText
android:id="@+id/hardness"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="Hardness"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:minHeight="48dp"
android:inputType="text" />
<EditText
android:id="@+id/composition"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="Composition"
android:minHeight="48dp"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:inputType="text" />
<EditText
android:id="@+id/structuralFeatures"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="Structural features"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:minHeight="48dp"
android:inputType="text" />
<EditText
android:id="@+id/formation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="Formation"
android:minHeight="48dp"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:inputType="text" />
<EditText
android:id="@+id/context"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="Context"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:minHeight="48dp"
android:inputType="text" />
<EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="Name"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:minHeight="48dp"
android:inputType="text" />
<EditText
android:id="@+id/story"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:background="@null"
android:hint="About?"
android:textColor="#FFFFFF"
android:textColorHint="#AAAAAA"
android:minHeight="48dp"
android:inputType="textMultiLine" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:padding="16dp">
<ImageButton
android:id="@+id/addImage"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:contentDescription="Add Image"
android:src="@android:drawable/ic_menu_gallery" />
<ImageButton
android:id="@+id/btn_add_gif"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:contentDescription="Add GIF"
android:src="@android:drawable/ic_menu_rotate" />
<ImageButton
android:id="@+id/btn_add_poll"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:contentDescription="Add Poll"
android:src="@android:drawable/ic_menu_sort_by_size" />
<ImageButton
android:id="@+id/btn_add_location"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:contentDescription="Add Location"
android:src="@android:drawable/ic_menu_mylocation" />
<ImageButton
android:id="@+id/btn_more_options"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:contentDescription="More Options"
android:src="@android:drawable/ic_menu_more" />
</LinearLayout>
</RelativeLayout>
Now it seems that this is a dead end with no solution. Unless the Android team changes this part of the code logic.
webstrand of the cascading-style-sheets Discord has pointed me in the right direction!
The issue appears to have been with scroll anchoring! He linked this page on the topic, which mentions both a way to determine what element is being used as a scroll anchor. In this case I determined that the text was being used to scroll anchor.
Utilising the suggested overflow-anchor: none; CSS property upon the grid or the items has stopped the unexpected scrolling!
This config can work. My mistake is this
proxy_set_header Host $http_host;
Since I have proxy to the originalUrl once, so the this sentence should be
proxy_set_header Host $proxy_host;
I think it's not just a simple way of handling displays like pagination and product details, including displaying images, indexing, etc., but also how the checkout process cart requires products from DB.
So I suggest, if it is possible, that you design a sync schedule from external data to shop db, with sync API
In my case I changed the Run scheme settings such that WidgetKitEnvironment Family was set to systemSmall (my widget size), then restarted the simulator, killed it and let the app rebuild again.

In case you have ufw running, open access to port 3306 with the command;
ufw allow mysql
Change the bind parameter in the mariadb conf, wich might be /etc/my.cnf or /etc/mysql/my.cnf from 127.0.0.1 to 0.0.0.0 and restart mariadb
If you're here for multi topic searches from Google see https://githubtopics.cloudninelabs.site
Since this was one of the first hits i saw in a search, figured I'd add that when I followed steps the mobileprovision file extracted was binary.
To see human readable contents use: security cms -D -i embedded.mobileprovision
Sebastian’s answer worked. However (for future readers) I found a better and much easier solution. There is a free community plugin called CSV Filter which is a control that filters array fields: https://lookerstudio.google.com/u/0/reporting/2b0a22a2-3992-49e1-be12-bdc22937daea/page/WoxLB
This is an improved version of Yuval A's answer.
What has been added?
Full removal of URL query if it exists before any other processing to avoid incorrect results as much as possible.
Support for multiple periods in a filename, for example: https://www.example.com/abcd.xrg.css or https://www.example.com/adbc.efg.cghf.js
Fix the trailing slash in the URL after the filename, as shown in the example: https://www.example.com/abcd.xrg.css/?hjh=1
const getExtension = (url) => {
// If queries are present, we removed them from the URL.
// If there is any trailing slash, we remove it from the URL.
if (url.includes('?')) {
url = url.replace(/[?&]+([^=&]+)=([^&]*)/gi,'')?.replace(/\/+$/gi,'');
}
// Extension starts after the first dot after the last slash
let extStart = url.indexOf('.',url.lastIndexOf('/')+1);
if (extStart == -1) {
return false;
}
var ext = url.substr(extStart+1);
// To handle multiple periods in the filename, we ensure that the current dot is the final one.
if ( (extStart = url.lastIndexOf('.')) ) {
ext = url.substr(extStart+1);
}
// end of extension must be one of: end-of-string or question-mark or hash-mark with ext.search(/$|[?#]/)
return ext.substring(0,ext.search(/$|[?#]/));
};
console.log(getExtension('https://cdn.sstatic.net/Js/third-party/npm/@stackoverflow/stacks/dist/js/stacks.min.js?v=d5f780ae3281'));
//Results: js
console.log(getExtension('https://cdn.sstatic.net/Js/third-party/npm/@stackoverflow/stacks/dist/js/stacks.min..gz.js?v=d5f780ae3281'));
//Results: js
console.log(getExtension('https://cdn.sstatic.net/Js/third-party/npm/@stackoverflow/stacks/dist/js/stacks.min.gz.js/?v=d5f780ae3281'));
//Results: js
console.log(getExtension('https://cdn.sstatic.net/Js/third-party/npm/@stackoverflow/stacks/dist/js/stacks.js/?v=d5f780ae3281'));
//Results: js
This snippet would do what you are asking:
"Paste Multi-line To Single Line":{
"prefix": "pasteMultiLineToSingleLine"
,"body": ["${CLIPBOARD/(\r\n|\n|\r)/ | /g}"]
,"description": "Paste from clipboard replacing every new line with a ' | '"
}
The main difference is in identifying the different possible line ending characters.
Further explanation of the "body": in case someone else likes to understand the individual parts:
/${CLIPBOARD} = Gets the contents of your clipboard.(\r\n|\n|\r) = This part gets uses regex to get all possible line endings.
| = read as 'OR'\r\n = Windows line endings\n = Unix line endings\r = Very old Mac systems line ending. Might be able to do without this one. I'm just in the habit of having all cases covered.| = This is the replacement text.g = regex option to find and replace all 'global' instances and not just the first occurrence.[1] VSCode Snippet Variables: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variables
[2] Stackoverflow ref1: Match linebreaks - \n or \r\n?
[3] Stackoverflow ref2: Difference between \n and \r?
I wasted some hours on this. I think another cause can be if you do not continue or fulfill the request quickly enough.
If you're debugging your code, this could cause it too maybe? Also, this protocol seems to get broken a lot, so if you're reading this years later, you could also try updating Chrome .
https://github.com/puppeteer/puppeteer/issues/12961#issuecomment-2292941965
I know this was asked a long time ago but changing the type of your column 2 (classes) into factors should fix that specific error with not recognizing classes.
Warning: Could not find file C:\Users\Sebastian\Desktop\UTP\Desarrollo_web_integrado${libs.MySQL_JDBC_Driver.classpath} to copy. BUILD FAILED (total time: 0 seconds)
Sorry to necropost but look up clangarm64, it's part of MSYS2. I use it to cross-compile stuff right from my WoA laptop
import 'package:flutter/material.dart';
class DragDropExample extends StatefulWidget {
@override
_DragDropExampleState createState() => _DragDropExampleState();
}
class _DragDropExampleState extends State<DragDropExample> {
List<String> libraryCards = ["Card A", "Card B", "Card C"];
List<String> droppedCards = [];
int? dropIndex; // To track where the card will be dropped
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Drag and Drop Example')),
body: Row(
children: [
// Left Container: Library
Expanded(
flex: 1,
child: Container(
color: Colors.blue[50],
padding: const EdgeInsets.all(8),
child: Wrap(
spacing: 8,
runSpacing: 8,
children: libraryCards.map((card) {
return Draggable<String>(
data: card,
feedback: Material(
child: Card(
color: Colors.blue[200],
child: Padding(
padding: const EdgeInsets.all(16),
child: Text(card),
),
),
),
childWhenDragging: Opacity(
opacity: 0.5,
child: Card(
color: Colors.blue[100],
child: Padding(
padding: const EdgeInsets.all(16),
child: Text(card),
),
),
),
child: Card(
color: Colors.blue[100],
child: Padding(
padding: const EdgeInsets.all(16),
child: Text(card),
),
),
);
}).toList(),
),
),
),
// Right Container: Droppable List
Expanded(
flex: 2,
child: Container(
color: Colors.green[50],
padding: const EdgeInsets.all(8),
child: DragTarget<String>(
onAccept: (data) {
setState(() {
droppedCards.insert(dropIndex ?? droppedCards.length, data);
dropIndex = null; // Reset the drop index
});
},
onMove: (details) {
RenderBox renderBox = context.findRenderObject() as RenderBox;
double localDy = renderBox.globalToLocal(details.offset).dy;
double itemHeight = 70; // Approximate height of each card
dropIndex = (localDy / itemHeight).floor().clamp(0, droppedCards.length);
setState(() {});
},
onLeave: (_) => setState(() => dropIndex = null),
builder: (context, candidateData, rejectedData) {
return Column(
children: [
for (int i = 0; i <= droppedCards.length; i++) ...[
if (i == dropIndex)
const Divider(
color: Colors.green,
thickness: 3,
),
if (i < droppedCards.length)
Draggable<String>(
data: droppedCards[i],
feedback: Material(
child: Card(
color: Colors.green[200],
child: Padding(
padding: const EdgeInsets.all(16),
child: Text(droppedCards[i]),
),
),
),
childWhenDragging: Opacity(
opacity: 0.5,
child: Card(
color: Colors.green[100],
child: Padding(
padding: const EdgeInsets.all(16),
child: Text(droppedCards[i]),
),
),
),
onDragCompleted: () => droppedCards.removeAt(i),
child: Card(
color: Colors.green[100],
child: Padding(
padding: const EdgeInsets.all(16),
child: Text(droppedCards[i]),
),
),
),
],
],
);
},
),
),
),
],
),
);
}
}
Sighhhh. I believe I have the answer: Pulling a Galois on my situation: There is no solution in Cygwin under Windows-7. :-((
How did I come to this conclusion? I had installed the Guardian browser so my daughter could take an online exam. It barfed at its startup with an almost identical error. The instructor told her she needs to do it on at least Windows-10. I am redoing the project on my Windows-11 PC and the make works just fine.
Yeah, I suppose I could download the source code for make and compile it on my Windows-7 Cygwin but it's time to acknowledge that times has passed me by on that OS. Nostalgia, as the Borg might say, is irrelevant. And persistence is futile. (I don't think they ever said that!)
Для того, чтобы решить проблему необходимо перейти в код вашего проекта yourname.csproj(он находится в самом вверху, под Решение "Name"). Нажмите в обозревателе решений на него два раза, а далее в коде найдите кусок кода с комментарием [1].
<ItemGroup>
[1]: <!-- App Icon -->
<MauiIcon Include="Resources/AppIcon/appicon.svg" Color="#ffffff" />
I am closing this issue. The code was written for a camera in perspective mode, and doesn't work in orthogonal mode.
Not exactly your case, but could be helpful for someone. The same error message you can get in case you're using wrong credentials. Check that the user or a token exists, valid and it's scope allow you to do what you need.
As of now (Nov '24), the redirect URIs can be set in the new AWS Congnito UI by doing the following:
Amazon Cognito > User pools > [ your_user_pool ] > App clients > App client: [ your_client ]Login pages tab on the overview pageEdit in the Managed login pages configuration panlocalhost:3000 during development but don't intend to leave it there for prod)Did you add one of the necessary error display controls? They are
<xp:messages id="messages1"></xp:messages>
<xp:message id="message1"></xp:message>
And you need them to display the error message in a convenient place.
See also: https://help.hcl-software.com/dom_designer/9.0.1/user/wpd_controls_cref_messages.html
requests.exceptions.SSLError: [Errno 2] No such file or directory
I think it is because of incorrect SSL certificate or missing certificate file.
ensure symlink points to correct env
Reinstall ca-certificates and link them properly.
I faced this issue and now it works for me
If your error is Failed to extract doctrine/inflector: (7) C:\Program Files\7-Zip\7z.EXE x -bb0 -y AppData\Roaming \Composer\vendor\composer\tmp-bebaa1cf5570c18062db7f64da12db15.zip -o AppData\Roaming\Composer\ven dor\composer\89012551
Then
Download https://7-zip.org/download.html and install then try again.
Finally, I found 2 solutions.
Note: I found that CurrentProject.AccessConnection use OLEDB 10 Provider
Private Sub test1()
Dim rs As New ADODB.Recordset Dim size As LongLong Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.Open "Provider=Microsoft.ACE.OLEDB.16.0;Data Source=d:\data\Make Money\Rapidgator\Rapidgator.accdb;Persist Security Info=False;"
rs.Open "Select * From LocalFiles ", _
cn, adOpenKeyset, adLockOptimistic
rs.AddNew
size = 12345678912345#
rs("FileSize") = size
rs.Update
rs.Close
cn.Close
End Sub
Private Sub test2() Dim size As LongLong Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("Select * From LocalFiles ", dbOpenDynaset)
size = 12345678912345#
rst.AddNew
rst("Size1") = size
rst.Update
rst.Close
End Sub
To resolve this problem, you need to remove the simlink function in the disableFunctions on your shared
Im getting the exact same error using hive catalog. Did you manage to solve this? if so could you share the solution please. Thanks
After two hours, I decided to finally ask all of you. Within 5 minutes I found that wrapping it with Flexible eliminates the error.
Here is the code:
Widget build(BuildContext context) {
return Flexible(
child: ListView(
padding: const EdgeInsets.symmetric(),
children: tasks,
),
);
}
Md. Yeasin Sheikh also suggested just a minute later: wrapping it with Expanded and that works too. Not sure what I missed in the documentation about ListView.
To summarize, you can install or upgrade both the core runtime package along with the dev package with this command:
sudo apt install libnuma1 libnuma-dev
I had the same problem. I spent hours debugging and investigating what is going on. At the end I confirmed that nothing was wrong with my code, and that there was something corrupt with the database. I reinstalled the DB schema and that resolved the issue for me.
We had same issue with a mix of Windows 10, 11 and Linux and will list what we did
New version of Windows and Linux use ICU, while older versions will resort to NLS
https://learn.microsoft.com/en-us/dotnet/core/extensions/globalization-icu
ICU has the 4 length for some months
You can force ICU with two config options
<RuntimeHostConfigurationOption Include="System.Globalization.UseNls" Value="false" />
<RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="<version" />
Then if it makes sense and you always want the same culture regardless of user's setup then add this code to startup locations
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-AU", false);
The false parameter is to not use the user-selected culture settings from Windows
the dependency
implementation 'com.budiyev.android:code-scanner:2.1.0'
is no longer working, replace with:
implementation 'com.github.yuriy-budiyev:code-scanner:2.3.0'
Refer to the code scanner library.
lots of helpful stuff in here - leaving this as an artifact for others who find this article in a google search like me - I was trying to figure this out today with Zip Codes which was a mess because we wanted what should be the left 5 but some leading 0's were trimmed so some were 3 digits that needed two leading 0's padded and some were 7 digits that needed two padded, so I ended up going with a case statement - not super elegant but efficient and got the job done.
UPDATE q
SET q.Zip =
CASE WHEN LEN(q.Zip) IN (4,8) THEN '0'+ LEFT(q.Zip,4)
WHEN LEN(q.Zip) IN (3,7) THEN '00'+ LEFT(q.Zip,3)
WHEN LEN(q.Zip) IN (2,6) THEN '000'+ LEFT(q.Zip,2)
WHEN LEN(q.Zip) = 1 THEN '0000'+ LEFT(q.Zip,1)
ELSE LEFT(q.Zip,5)
END
FROM #BadData q
I am in the process of writing a guide that adds to the provided rpi4.build file what I have been doing for years (on QNX 7.1) to produce a functional RPi4 image. It also explains the additions and changes, and why I've made them. I haven't published it anywhere but if there is interest I could. If it reduces any pain and further promotes what Blackberry QNX have done!
I have made this effort as I realised that people wanting to try QNX8 would quickly hit a bit of a brick wall (like I did) and possibly loose interest. I am not keen for that to happen! I myself hit the wall when I tried to log in but I have a bit of past experience to fall back on to sort it out. Fortunately I had my serial terminal set up - without it I would have been stuck.
It's still in the proof reading and testing phase but might be ready in a day or two (after Thanksgiving). I need to figure out how to get it into the relevant GIT place.
To change a query parameter:
const url = new URL(location);
url.searchParams.set("foo", "bar");
history.pushState({}, "", url);
https://developer.mozilla.org/en-US/docs/Web/API/History/pushState#change_a_query_parameter
where you able to solve this?.
You can't directly close a window early based on content in Apache Beam's built-in windowing. Interval windows have a fixed duration once it is assigned. Probably the alternative way but more complex is using a custom WindowFn that tracks the number of elements assigned to each window and closes the window when the condition is met. This involves overriding the assignWindows and potentially other methods of the WindowFn interface.
You can try:
pip install fxcmpy==<version_number>
If you have already downloaded it:
pip uninstall fxcmpy
pip install fxcmpy==<version_number>
You can achieve this on anything usually with css.
$('canvas').css({ 'pointer-events': 'none' });
This mean there will be no click event or anything. That means whatever code you are using to draw will no longer work.
HttpRequest is a file-like object so you can simplify from json.loads(request.body) slightly:
data = json.load(request)
Do you have a @Directive decorator on top of your directive? Something like:
@Directive({ selector: '[orlyDisableShortcuts]' })
When reviewing issues in my project, I encountered the rule csharpsquid:S6964:
Value type property used as input in a controller action should be nullable, required or annotated with the JsonRequiredAttribute to avoid under-posting.
Why Use Nullable Types with [Required]?
The [Required] attribute is intended to ensure that a value is explicitly provided by the client when making a request. However, it doesn't function effectively on its own in certain scenarios, especially with non-nullable value types.
Here’s why:
Default Value Assignment
When a client omits a non-nullable value type property (e.g., int, decimal, bool), the model binder cannot leave it unset. Instead, it assigns the type's default value:
int → 0 bool → false decimal → 0.0 This automatic assignment can lead to unintended behavior (known as under-posting) because the default values might not represent valid input from the client.
Nullable Types as a Solution
By declaring the property as nullable (e.g., int?, bool?, decimal?), you create a state where the value can explicitly be null. When combined with the [Required] attribute, the model binder enforces that the client must provide either a valid value or explicitly set it to null. This ensures the property is never unintentionally set to its default value.
My Thoughts
While this approach solves the problem, implementing it would require adding numerous null checks throughout the codebase, potentially increasing complexity and maintenance overhead.
As a result, I opted to disable this rule in SonarQube for the project.
what worked for me is:
I'm also facing the same, did you find any solution?
You need raw and branch as well. FYI, the url doesn't work in a browser.
.bazelcr
common --registry=https://my.gitlab/my_group/bazel-central-registry/raw/my_branch
Be sure your job implement ShouldQueue interface
Quick and easy fix, you can remove the last character in the string using the substring method:
result.substring(0, result.length()-1);
This return a new string containing the element from 0 to length()-1 meaning everything except the last character
A revised version of @NamanMadharia 's post to avoid headers and simplify it a bit:
conda list | awk '!/^#/ && NF {print $1}' | xargs
This doesn't use a conda property, but the conda list output comes in columns and can be manipulated with the above command easily enough.
conda list (OP already describes what this one does)| is the 'pipe' command and sends the output of a previous command as input for the next.awk "is a utility that enables a programmer to write tiny programs [and] is mostly used for pattern scanning and processing."[1]!/^#/ ignores any comment lines in the output eg the column headers.&& NF makes sure the line has at least one field of content, ignoring empty lines.{print $1} prints the content of the line's first column.xargs prints the outputs of the previous command (which is run on every line) as one line seperated by spaces.Why do you want to inject ComponentActivity? That doesn't make much sense. The compiler says you need to have @Inject in constructor of ComponentActivity, which you cannot do.
It does not replace xcodeproj, it is used in playground projects. Aaron Sky tell us more about Swift Playgrounds App Projects