When you override Equals
, EF can't translate your custom Equals
logic into SQL. Here are three recommended approaches:
1.If your Equals
method is based on Name, you can directly compare that property :
Istituto? istituto = await context.Istituti.FirstOrDefaultAsync(e => e.Name == resource.Name);
2.Use AsEnumerable()
to handle it in memory, but this is inefficient for large datasets :
Istituto? istituto = context.Istituti.AsEnumerable().FirstOrDefault(e => e.Equals(resource));
3.Create a custom extension method for consistent logic :
public static class IstitutoExtensions
{
public static Expression<Func<Istituto, bool>> EqualsByName(string name) =>
e => e.Name == name;
}
Istituto? istituto = await context.Istituti .FirstOrDefaultAsync(IstitutoExtensions.EqualsByName(resource.Name));
Caused by code execution efficiency and thread scheduling.
def convert(val):
# val is an integer 16 bit
valb = '{:16b}'.format(val).strip()
return ' '.join([valb[i-5:i-1] for i in range(0,-len(valb),-4)][::-1])
Outputs
convert(int('F0F0',16))
Out[1]: '111 1000 0111 1000'
convert(int('001011001010',2))
Out[2]: '1 0110 0101'
If you do want to keep zero you can replace it by :
def convert(val):
# val is an integer 16 bit
valb = '{:16b}'.format(val).replace(' ','0')
return ' '.join([valb[i-5:i-1] for i in range(0,-len(valb),-4)][::-1])
Output will be:
convert(int('001011001010',2))
Out[3]: '000 0001 0110 0101'
Actually the same question from my side. I try to get the GPS information from a video recorded on an Osmo 360. The .OSV files are in the end also just MP4/MOV files with the same data tracks .
While trying to find information on how to decode the information I found the following outdated whitepaper:
https://developer.dji.com/doc/payload-sdk-tutorial/en/advanced-function/media-file-metadata.html
But it didn't work for me so far.
For the Action 4 and 5 cameras, there is a project on GitHub that can extract the GPS data. Maybe this is something that helps you with the metadata you are looking for.
https://github.com/francescocaponio/pyosmogps
I try to get updated information about the media file metadate from DJI developer support. But they only told me I should contact the team maintaining the Whitepaper - without telling me how to do so.
So if there is anyone from DJI reading this - please point me to the right contact.
For details, visit Celebrity Heights
After searching for a long time, we found that Wix 4 changed the way component guids are generated, so they are not stable across versions. This leads to the above problem. Wix 6 has a fix for this, making it use the previous way of generating the guid:
-bcgg command-line switch
Wix bug ticket: https://github.com/wixtoolset/issues/issues/8663
set date time of your to automatic
Even though you received a successful response, if the information from this request was not saved in the Sabre screen, you can use the SabreCommand service after receiving the successful response to store the information in the reservation.
The command that needs to be sent in the Sabre Command service is:
6P: Signature of the person who performed the transaction (P = passenger, free text)
ER: Save (End & Retrieve)
§: End Item allows the two commands to be used together.
<SabreCommandLLSRQ ReturnHostCommand="true" Version="2.0.0" xmlns=http://webservices.sabre.com/sabreXML/2011/10>
<Request Output="SCREEN">
<HostCommand>6P§ER</HostCommand>
</Request>
</SabreCommandLLSRQ>
This command will save your request from the successful response into the PNR.
In the meantime, you can also add the FOP information to the PNR during the booking process using either CreatePassengerNameRecord or CreateBooking.
If your issue is something else, could you please provide more details?
The problem could also be an issue with DNS resolution missing from the resolv.conf file. This command should fix that.
echo 'nameserver 1.1.1.1' | sudo tee -a /etc/resolv.conf >/dev/null`
Finally found a solution for this requirement.
This is working now, I had to “Enable project-based security” on the job and provide the necessary access to build and read for given user. ( i.e. foo )
Please find below curl syntax used
curl -X POST http://foo:[email protected]:8080/job/my_testjob/buildWithParameters"
Regards
On Xiaomi/Redmi devices running MIUI, there’s an additional security restriction on ADB. Enabling just USB debugging is not enough — you also need to enable another toggle in Developer Options:
Open Settings → About phone → MIUI version → tap 7 times to unlock Developer Options.
Go to Settings → Additional settings → Developer options.
Enable both:
USB debugging
USB debugging (Security settings) ← this is the key one
Reconnect your phone and tap Allow when the authorization prompt appears.
The “USB debugging (Security settings)” option allows ADB to simulate input events (mouse/keyboard), clipboard actions, and other advanced features. Without it, Xiaomi blocks those for security reasons.
Note: Sometimes this toggle only appears if you’re signed into a Xiaomi account and connected to the internet.
I fixed this error by fix the wrong entitlements file path, please check your entitlements path is right in build settings.
Hi Idris Olokunola,
I have tried python requests and was able to load the certificate. But im switching to selenium since the website needs interaction.
Can you give me an input on how I implement in python selenium. Im in ubuntu.
Thanks.
Here is the flow
1. Create a temporary certificate
2. Create firefox profile
3. Import the certificate using certutil
4. Load the page
Here is my initial implementation:
import tempfile
import subprocess
import shutil
import os
import asyncio
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.remote.webelement import WebElement
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
async def import_ssl(cert_path, profile_path, name):
subprocess.run([
"certutil", "-A",
"-n", name,
"-t", "u,u,u",
"-i", cert_path,
"-d", f"sql:{profile_path}"
], capture_output=True, text=True)
async def create_certificate(cert) -> str:
ssl_cert = tempfile.NamedTemporaryFile(
delete=False, suffix=".pem", mode="w"
)
ssl_cert.write(cert)
ssl_cert.close()
return ssl_cert.name
async def initialize_profile(resource):
profile_path = os.path.join(dir, 'Profiles', resource)
os.makedirs(profile_path, exist_ok=True)
# Create Firefox profile
subprocess.run(["firefox", "-CreateProfile", f"{resource} {profile_path}"], timeout=10)
# Fix permissions
current_user = os.environ.get("USER")
subprocess.run(["chmod", "-R", "u+w", profile_path])
subprocess.run(["chown", "-R", f"{current_user}:{current_user}", profile_path])
# Add custom preferences
prefs_path = os.path.join(profile_path, "user.js")
with open(prefs_path, "a") as f:
f.write('user_pref("security.enterprise_roots.enabled", true);\n')
f.write('user_pref("security.default_personal_cert", "Select Automatically");\n')
return profile_path
async def main(url, cert, resource):
cert_path = await create_certificate(cert)
profile_path = await initialize_profile(resource)
await import_ssl(cert_path, profile_path, resource)
options = Options()
options.add_argument(f"-profile")
options.add_argument(profile_path)
browser = webdriver.Firefox(options=options)
browser.get(url)
asyncio.run(main(url, cert, resource))
The issue im facing, is the certificate is not imported in the firefox profile I have created so that when loading the website, I got this issue.
selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=nssFailure2&u=https%3A//testsite.com&c=UTF-8&d=%20
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
UnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:910:5
checkReadyState@chrome://remote/content/marionette/navigate.sys.mjs:59:24
onNavigation@chrome://remote/content/marionette/navigate.sys.mjs:348:39
emit@resource://gre/modules/EventEmitter.sys.mjs:156:19
receiveMessage@chrome://remote/content/marionette/actors/MarionetteEventsParent.sys.mjs:33:25
Hopefully you could help. Thanks
You’re not the only one facing this issue—I also came across [this similar question](How can I prevent my PKCanvas PDFOverlay object from becoming blurry when pinch-zooming in on a PDF in iOS?). But it seems like not many people use PencilKit with PDFKit, and that’s probably because PencilKit lacks enough customization options. For instance, you can’t customize tools like the Lasso or Eraser at all. Three months ago, I tried using PencilKit too, but ended up abandoning it to build my own infinite canvas instead.
To extract years from some numpy datatime64 array dates
:
import numpy as np
years = [x[0:4] for x in np.datetime_as_string(dates)]
And similarly for months and days
This is a huge problem for my application, that refresh tokens expire after 12 hours using Microsoft Entra External ID with Email OTP! We need the 90 days that we are used to!
There is no way to change it. And the last resort is now not possible, as you can't create b2c tenants anymore!!!
$policy = New-AzureADPolicy -Definition @('{"AccessTokenLifetime":"23:59:59","RefreshTokenLifetime":"90:00:00:00","RollingRefreshTokenLifetime":"90:00:00:00"}') -DisplayName "WebPolicyScenario" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"
Get-AzureADPolicy -Id $policy.Id
$sp = Get-AzureADServicePrincipal -Filter "DisplayName eq 'XXX'"
Add-AzureADServicePrincipalPolicy -Id $sp.ObjectId -RefObjectId $policy.Id
have you found a solution to this? I am experiencing the same issue.
I think the problem is in the import , and the import will be:
import ThemedView from "../../components/ThemedView";
If components and app are at the same level of the folder structure.
把这个ijArtifactdownloader.gradle 自动下载二进制关了,不然总是提示失败
PySide6 requires 64-bit Python, you can execute this script to check your python: python -c "import struct; print('64bit' if 8 * struct.calcsize('P') == 64 else '32bit')"
I had to tell Electron that it should use the proxy for get's:
set ELECTRON_GET_USE_PROXY=http://localhost:8888
then
npm i
See:
https://www.electronjs.org/docs/latest/tutorial/installation#proxies
Adjust the inflatAmount
value to play with the gap between the bars.
options: {
inflateAmount: 8, // Adjust this value
responsive: true,
plugins: {
legend: {
display: false
},
},
You may also need to change barPercentage
according to the change of inflatAmount
to make it look better.
You must starting the search from the index immediately following the first found occurrence for overlapping, like this:
y=input()
m=0
n='NO'
if y.find('AB')!=-1:
m=y.find('AB')
if y.find('BA',m+2)!=-1:
n='yes'
else :
n='NO'
print (n)
I personally would never rely on any free xml data comming from a flexform field, but always work with strong defaults while handling those data. E.g. in a switch-case use the default-case for the expected default.
var app = WebApplication.Create();
app.MapPost("/", (IFormFile formFile) => ...)
.DisableAntiforgery();
app.Run();
https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/8.0/antiforgery-checks
Most of te blockchain development services providers team using this soulution
Use df.groupby() to group by Name and Emp#. .max() . You can try this.
This might be due to testing on emulator, try on real device.
These days you might try https://www.mycompiler.io/new/r
It plots figures.
^\d{4,5}(?:,\d{4,5})*$
Tested successfully in Regex Tester
As far as I know, only this vision camera frame processor plugin supports code 11: https://github.com/tony-xlh/vision-camera-dynamsoft-barcode-reader
import { decode } from 'vision-camera-dynamsoft-barcode-reader';
const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const barcodes = decode(frame);
}, []);
It helped me for virt-manager in wsl 2 (OS Windows 11, wsl Ubuntu Ubuntu 22.04)
adding the export$(dbus-launch)
line to the end of the .profile
when enabled
[boot]
systemd=true
in /etc/wsl.conf
Pattern p = Pattern.compile("\\b(?:Input|Calc)![A-Z]\\d+\\b");
(?:Input|Calc)
— either keyword
!
— the literal exclamation that both forms share
[A-Z]
— exactly one uppercase column letter
\\d+
— one or more digits
\\b
— word boundaries so you don’t bleed into adjacent text
Quick test with your samples
Matches found:
ADD(Input!A34 + Calc!D93)
→ Input!A34
, Calc!D93
Input!D343 = 1000
→ Input!D343
Calc!D71=IF(HasValue(Input!D4), "…")
→ Calc!D71
, Input!D4
Few issue can cause this.
android:usesCleartextTraffic="true"
add this in your
AndroidManifest.xml
file like below<application
...
android:usesCleartextTraffic="true">
Check internet connection. is there cross in data or wifi. but this might not be in your case as i can see in screenshot you provided
Check ip address of you emulator and network. are both in same subnet?
some time emulator are configured on NAT network so the can access 192.168.1.33
as both become 2 diff networks
I feel adding android:usesCleartextTraffic to true will fix your issue if have't already added it. if this doesn't fix your issue please shared ip of your emulator
To open your app by scanning the QR code on Expo Go, you need to connect both your computer and phone to the same internet connection. Otherwise, Expo will not work.
That’s why it works properly on your browser but not on your phone.
Thanks to Estus Flask I found out that the problem weren't the methods that I used to load the pages, but the pages themselves. If your run my code with Github for example, it works without flaw. I initially tested the links with 2 different pages but both failed so I assumed that it would happen with anything. My bad and thanks for the comments. Although I still don't know why my exception handler catch the errors of other pages,
Your question needs to be more detailed.
However, for me, it is working smoothly for my projects.
Node.js: 22
Expo SDK: 52
React Native: 0.76
Any luck on this? I'm looking for the same problem when migrating Pentaho to dbt?
This could be because you are missing the s3 GetObject
permission for the EMR cluster. Looks like a similar issue to this previous post:
As far as I remember Kafka doesn't support Change tracking, I have extended their kafka-connect-jdbc to support change tracking, please check
https://github.com/hichambouzkraoui/kafka-connect-jdbc-extended
c++ concept is predicates, but existential type is usually functions table.
Indeed, predicated can represent that we have a function, but normally predicate is opaque, so we only know we have a function, but we don't know what the function is, we cannot get function from predicate directly.
That's why c++ concept can hardly support type erasure (rust: trait -> dyn trait, swift: protocol -> any protocol), so c++ concept is not really existential type.
One possible solution I've found using OxyLabs is to just whitelist your IP rather than use a user/pass to authenticate. You can also setup a system-wide proxy if you're on a windows machine to bypass having to authenticate with chrome directly.
Turns out there're just couple of things to add in order to have my original code to work:
Add BindingContext
assignment to the behavior;
Set x:DataType
to the BindingContext
;
Use x:Reference
to refer to the parent Image
control and set its BindingContext
to the behavior.
Hope this could be added to the documentation as this is quite a common scenario.
In my company, instead of join prefer to use multiple queries, one for each table to improve performance. Is it a valid point because large database with millions of records will slow down linearly with joins. So if we do like 3 queries, each with log N time complexity, it would be better yes definitely!!
I found a solution to my issue.
I needed to update, npm, nodejs, fast-xml-parser. And the issue seems resolved with the following updated code.
const fs = require("fs");
const { XMLParser } = require("fast-xml-parser");
const options = {
ignoreAttributes: false,
attributeNamePrefix: '@_',
parseAttributeValue: true,
};
const parser = new XMLParser(options);
var tsx = "tilesheet.tsx";
var tsxExists = fs.readFileSync(tsx);
if (!tsxExists) {
console.error(tsx + " doesn't exist.");
}
fs.readFile(tsx, function(err, file2) {
if (err) {
console.error(err);
return;
}
var tsxdata = file2.toString();
console.log(file2.toString());
var jsonObj = parser.parse(tsxdata, options);
console.log(JSON.stringify(jsonObj));
});
for workers add nodejs_compat_populate_process_env
in wrangler file
compatibility_flags = ["nodejs_compat","nodejs_compat_populate_process_env"]
I had the same issue when upgrading to Expo 53.
This issue has been fixed with Zustand v5.0.4, they also fixed 4.x with v4.5.7. I upgraded to v5.0.8 (current latest) and it's working as expected.
Update! INR 9000.00 deposited in HDFC Bank A/c XX2032 on 08-SEP-25 for NEFT Cr-DEUT0784PBC-SUPERSEVA SERVICES PRIVATE LIMITED-AQEEB KHAN-DEUTN52025090628528126.
You can build this by using face-api.js to handle face recognition right in the browser (so it works offline). Store data with localForage (easy offline database), and use PapaParse to let teachers download attendance as a CSV file. For the look and feel, just use Bootstrap to keep the design simple and mobile-friendly. Finally, make it a PWA so the app works even without internet and syncs later when online.
face-api.js → face recognition.
localForage → offline storage.
PapaParse → CSV export.
Bootstrap → UI design.
PWA (service worker) → offline mode + installable.
Reloading the window fixed it for me
Press Ctrl
+ Shift
+ P
(or Cmd
+ Shift
+ P
on Mac) to open the Command Palette.
Type Reload Window
and select it. This will refresh VSCode and reload extensions
Are you positive that Copilot is calling that tool at all? Copilot picks what tools it uses based on the tool's description. You can't simply tell copilot that it's there and be guaranteed it's really going to use it. It's more likely to acknowledge the tool's existence in the way you're seeing.
Try describing it like, "Call every time the user says the word 'hello' in order to retrieve the desired response." Or anything else that's going to give Copilot incentive to actually execute the command. You can also look at the descriptions of any of the other tools you have loaded and model yours after them.
im working on a school project. what did you find out when you build it without license? did some of the feature not work? or the license if just for legal purposes?
I am also running into this issue. Looks like there was no resolution. According to the RFC we shouldnt need the threadId as it is an internal Gmail concept. But Gmail does not seem to reliably thread emails together based solely on the headers above and the subject. Is Gmail not compliant with the RFC in this case? Using the threadId does not work because user1 doesnt have access to user2's thread. Very confusing. Hoping someone has solved this.
I don't know why this version is not working, just change the version to lower that work
settings.gradle.kts
id("com.android.application") version "8.9.1" apply false
change to
id("com.android.application") version "8.7.0" apply false
gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
change to
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
Currently the Next.js version 15.5.2 is having issues with Tailwind V4.
My temporal solution for now is to downgrade the version of tailwind to V3, it should works as expected:
yarn add -D tailwindcss@^3 postcss autoprefixer
npx tailwindcss init -p
Major facepalm moment! The issue turned out to be a bug in my application code, and the query was never run with an empty array. Once I discovered that, I saw the query run just fine.
You all have gotten me oh so close...... My data was even a bit more complex than I realized, so I'm trying to adjust. I feel like I'm almost there, but. . .
I do have XSLT 3.0 to work with on this.
Here's what I have so far. My last remaining problem is that the "except" doesn't like "wantedNode2/replacingSubNode3" so it is outputting both original and new SubNode3.
<xsl:mode on-no-match="shallow-skip"/>
<xsl:template match="headerNode2">
<xsl:copy>
<xsl:copy-of select="* except (wantedNode2/replacingSubNode3, unwantedNode4)"/>
<ReplacementSubNode3>
<stuff>
</ReplacementSubNode3>
</xsl:copy>
</xsl:template>
Everything else is coming out great.
Now if I could just stop hitting enter an posting before I'm done!
For a more secure browsing experience, HTTPS-First Mode is enabled by default in Incognito mode starting in Chrome 127. The warning that you mentioned would appear when users navigate to sites over insecure HTTP.
When browsing in Incognito mode, Chrome will try to connect via HTTPS first with a 3-second timeout.
If the site takes longer than 3 seconds to load, it will fall back to HTTP and display a warning.
This doesn’t affect every site, only those that take more than 3 seconds to respond.
Are you using Copilot in the GitHub UI or in an IDE? The GitHub UI saves your previous selection on most every page... can you provide some more context?
Navigate to the project xcworkspace file and 'Show Package Contents'
Navigate to xcshareddata/swiftpm/Package.resolved
Delete it
Given 2 developers, 2 weeks, and React-only experience, the most realistic choice is React + Capacitor, since it lets you reuse your React skills/code for both web and Android while keeping FCM and charts integration simple.
@Ashavan is correct. Imagine if in future if for some reason the relationship between Block A and Room 3 were to change, will you go back to update all prior Appointment resources to fix this relationship? or will it not be easier to just adjust the relationship between Location "Block A" and Location "Room3" leaving your Appointment resources as is.
You can extract JSON from Packages.gz and other files using the utility jc:
gzcat Packages.gz | jc --pkg-index-deb
While it's written in Python rather than PHP, you can do that with the utility jc.
gzcat Packages.gz | jc --pkg-index-deb
Turns out it was as simple as manually updating the Angular version (not Angular CLI) to 8. Thank to all of those who gave suggestions, and to @Eliseo for the answer in the comments!
tl;dr Objects can have multiple file names, and the "base script" answer doesn't find the secondary+ names. Start with git-filter-repo --analyze
and work from there.
I think the implication is that one must purge, then check, then purge, then check... until all the undesired files are gone. I am not certain because I haven't done the purge yet.
---
I inherited a code base that had a lot of issues; one of which was things checked in that shouldn't have been; another was that the size was approaching the github-alike size limit and would shortly no longer be usable.
In an effort to clean up the repo I used the Base Script from this answer https://stackoverflow.com/a/42544963/1352761 (elsewhere on this question) to generate a list of files-in-the-repo sorted by size.
I came across this idiom (don't have a source now) git log --diff-filter=D --summary
and as a double check ran it, and then compared the output to the above. I wanted to be sure that I didn't miss purging any files on the first go, because I am not looking to do this multiple times.
Lo and behold. A file of the shouldn't-have-been-checked-in variety was present in the "deleted files" summary but not present in the "base script" summary. How can that be? To verify the file, I checked out the commit that deleted it and verified the file's presence on disk. So it is still in the repo, but why doesn't the "base script" version find it?
Doing a lot of digging didn't turn up any solutions. Most or all of the "find big files" scripts are based on git rev-list --objects --all
which simply... did not report the mystery file. Several tools built on git verify-pack -v .git/objects/pack/pack-*.idx
also didn't return anything useful.
Finally I gave up, and moved on to having a look at filter-repo https://github.com/newren/git-filter-repo which is going to be the purging tool. One git-filter-repo --analyze
to get started and there it is:
blob-shas-and-paths.txt: 8d65390d2b76d34a8970c83ce02288a93280ba01 5315 1459 [build_dir/qtvars_x64_Debug.props, build_dir/temp/qtvars_x64_Debug.props]
To be fair, the git rev-list
documentation for the --object-names
option https://git-scm.com/docs/git-rev-list#Documentation/git-rev-list.txt---object-names does say "and if an object would appear multiple times with different names, only one name is shown." so there error here is mine, I guess, except --object-names
wasn't in use in the "base script". The documentation does not tell you how to find the other names which is frustrating.
It turns out that my repo has 178 objects with multiple names; one of them has 18 names. I am assuming that purging is done by pathname and that git-filter-repo
will not remove the blob until all pathnames referencing it are purged. That means I'm in for 18 cycles of purge, check repo health, purge... unless git-filter-repo
has some tricks up its sleeve.
=XIRR(VSTACK(E$11:E17,H17),VSTACK(B$11:B17,B17))
does the job now
I could find in 3.2.0 version this functionality was added in 2021. It is described in the documentation. You can use SparkSQL API https://spark.apache.org/docs/latest/api/sql/index.html#decode
I'm able to get Claude Code to deny access with:
"deny": [
"Read(./.env)",
"Read(./.env.*)"
]
Note that this file should be located at .claude/settings.local.json
, not .claude/settings.json
.
Perhaps that is the issue?
(Get-WinEvent -ListLog $LogName).RecordCount
Use the extension Debugpy Old. That is the only way I found to debug 3.6 in VS Code.
https://marketplace.visualstudio.com/items?itemName=atariq11700.debugpy-old
I need help creating a e X.509 v3 c signature Texas compliant for my notary, can anyone help. Thanks
Since a browser must send an Origin header for a cross-origin request with an unsafe method (I hope you don't use GET method for state changes), you can simply check if the origin is whitelisted.
In addition to @Joop Eggen’s answer, I would suggest also checking for extra bytes after decompression has completed, and handling DataFormatException, because as far as I can see you wanted to decompress a single "data" byte array.
val toParse: ByteByffer = TODO()
inflater.setInput(toParse)
var messageBytes = ByteArray(toParse.remaining())
var messageSize = 0
while (!inflater.finished()) {
if (messageSize == messageBytes.size) {
messageBytes = messageBytes.copyOf(messageSize * 2)
}
try {
val decompressedSize = inflater.inflate(messageBytes, messageSize, messageBytes.size - messageSize)
messageSize += decompressedSize
// A return value of 0 indicates that needsInput() or needsDictionary() should be called in order
// to determine if more input data or a preset dictionary is required.
if (decompressedSize == 0) {
if (inflater.needsInput()) {
throw IllegalArgumentException("Malformed message: insufficient bytes to complete decompression.")
}
if (inflater.needsDictionary()) {
throw IllegalArgumentException("Malformed message: deflate with custom dictionary is not supported.")
}
}
} catch (error: DataFormatException) {
throw IllegalArgumentException("Malformed message: invalid deflate data: ${error.message}", error)
}
}
// Returns the total number of bytes remaining in the input buffer.
// This can be used to find out what bytes still remain in the input buffer after decompression has finished.
if (inflater.remaining > 0) {
throw IllegalArgumentException("Malformed message: extra ${inflater.remaining} bytes detected after decompression was complete.")
}
inflater.end() // or .reset() if you want to reuse
I have finally managed to share via whatsapp the two types of files I needed to: png images and gpx (xml) files. You have to bear in mind that the method is probably not universal and may not work for certain files. In both cases, I first saved the file to the external cache folder using capacitor's filesystem:
const savedFile = await Filesystem.writeFile({
path: file,
data: gpxText,
directory: Directory.ExternalCache,
recursive: true,
encoding: Encoding.UTF8,
});
Then, I share the file URI using Cordova's Social Sharing.
await this.socialSharing.shareWithOptions({
files: [savedFile.uri],
chooserTitle: '...'
});
However, in the case of the gpx file, you can send just the file, without any text. If you try to send both text and file, the transfer fails. ChatGPT suggests that this may be due to the following:
Some sharing plugins (cordova-plugin-x-socialsharing
, Capacitor Share API, etc.) treat a text + file share differently than a file-only share.
On Android, if you only provide a file (with a valid MIME type, e.g. application/gpx+xml
or application/octet-stream
), the system share sheet is more likely to open correctly and show WhatsApp.
When you add a message
or text
, certain apps (like WhatsApp) may try to interpret the share as a text-only share, which then hides the file.
step 1 : sudo pacman-key --lsign-key "Levon 'noptrix' Kayan (BlackArch Developer) <[email protected]>"
step 2 : sudo pacman-key --keyserver keyserver.ubuntu.com --recv-keys 4345771566D76038C7FEB43863EC0ADBEA87E4E3
sudo pacman-key --lsign-key 4345771566D76038C7FEB43863EC0ADBEA87E4E3
step 3 : sudo nano /etc/pacman.d/blackarch-mirrorlist
Step 4 : reboot
step 5 : sudo pacman -Syyu
Google’s 10,000 English Words:
https://github.com/first20hours/google-10000-english
GitHub:
Search for “child-friendly word list” or “clean word list” for community-curated options.
Automated Filtering (for Offline use)
You can write a simple script to remove words that match patterns or are on a “blocklist.” Here’s a basic approach:
Blocklist: Maintain a list of offensive words and remove them.
Pattern Matching: Remove words with certain patterns (e.g., slurs, vulgarities).
Length/Complexity: For very young children, you might also filter by word length or reading level.
Just forget about filefield and writeyou your own file saver/getter once, trust my 10years django experience. In your DB so called "file field" is just simple charfield, so there is no magic, except django design headache.
If you go this way you won't lose anything as your project growup but you will definitely have more control over media files in your system.
In production you willuse something like nginx for file server, with different location, maybe even mounted network partition
As others pointed out, sed
may not be the right command. However, if you really want to use sed
and not any other command (awk
might have been a good option) :
printf 'Hello wor=\r\nld\n' | sed -z 's/=\r\n//g'
Use -z
option to handle multi-line matching.
Expected output :
Hello world
I am trying to create an Android 13 based demo system, to demonstrate some audio post processing software that I created. (The software does things like: automatic gain control, and 4+ channel audio spatialization.) I need to capture (intercept) the audio data from all audio sources, just before it goes to the audio device, process it, and then send the audio to the appropriate ALSA device/channel.
On my test device, I have an Android 13 AOSP build that I did not create, so I am looking for a solution that does not require me to rebuild AOSP. I am cool with using ADB to modify system configuration and binary files.
Any suggestions???
You can try to use App instead of VueConstructor
import type { App } from 'vue'
the solution that works for me is to change the place mnt/ram_disk
is added to the container. It should not be mnt/ram_disk
but some place in the directory tree containing the web pages.
I added a bind to add /mnt/ram_disk
to /var/www/html/ram_disk
, and with that, I cann access any image inside that folder properly.
Thanks to Julien B. for suggesting that in a different thread.
@echo off
setlocal enabledelayedexpansion
REM Detecta si hay una cosola visible (interactivo)
if "%SESSIONNAME%" == "Console" (
choice /M "¿Desea continuar?"
if errorlevel 2 exit /b
)
REM aqui segun el caso, se continua con el script
REM Obtener la fecha actual desde la variable de entorno %date%
REM el formato de %date% depende de la configuración regional del sistema opetativo
REM Por ejem: DD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD.
set fecha=%date%
REM Extraer día, mes, año usando substrings.
REM Ajusta los indices si tu formato de fecha es diferente.
REM Para formato DD/MM/YYYY
set dd=!fecha:~0,2!
set mm=!fecha:~3,2!
set yyyy=!fecha:~6,4!
REM Reconstruir la fecha en formato DD/MM/YYYY
set fecha_formateada=!dd!/!mm!/!yyyy!
REM Obtener el día de la semana (viene en inglés, asi que posteriormente lo traduciremos por comodidad al ver la consola.
REM El primer token suele ser el nombre del dia abreviado (Mon, Tue, etc.)
for /f "tokens=1 delims= " %%d in ('date /t') do set dia_en=%%d
REM Traducir el día de la semana al español
set dia_es=Lunes
if /i "!dia_en!"=="Tue" set dia_es=Martes
if /i "!dia_en!"=="Wed" set dia_es=Miércoles
if /i "!dia_en!"=="Thu" set dia_es=Jueves
if /i "!dia_en!"=="Fri" set dia_es=Viernes
if /i "!dia_en!"=="Sat" set dia_es=Sábado
if /i "!dia_en!"=="Sun" set dia_es=Domingo
REM 1) Verificar si es sábado o domingo y suspender el proceso si es así ------------------------------------------------------------------------------------------------
if /i "!dia_es!"=="Sábado" (
echo Hoy es sábado. El proceso se aborta.
pause
exit /b
)
if /i "!dia_es!"=="Domingo" (
echo Hoy es domingo. El proceso se aborta.
pause
exit /b
)
REM ------------------------------------------------------------------------------------------------------------------------------------------------------------------
REM 2) Obtener hora actual (lo ajustaremos por comodidad de lectura a formato de AM - PM, solo para la consola)
set hora=%time:~0,2%
set minutos=%time:~3,2%
set segundos=%time:~6,2%
REM Quitar espacios iniciales en la hora
if "!hora:~0,1!"==" " set hora=!hora:~1,1!
REM Determinar AM o PM
set ampm=AM
if !hora! GEQ 12 set ampm=PM
if !hora! GTR 12 set /a hora=!hora!-12
if !hora! EQU 0 set hora=12
REM Mostrar fecha y hora con AM/PM
REM echo Fecha actual: !fecha_formateada!
REM echo Dia de la semana: !dia_es!
REM echo: Inicio de ejecucion: !dia_es! !fecha_formateada! %time%
REM Mostrar en pantalla
echo Inicio de ejecucion: !dia_es! !fecha_formateada! !hora!:!minutos!:!segundos! !ampm!
echo.
REM 3) A partir de aqui inicia el proceso de copia (y renombre del archivo si fuese el caso) -------------------------------------------------------------------------------
REM Configura los nombres y rutas
set "origen=D:\Proyectos\Batch Script\OperativaMacrobase\scc02525247.TXT"
set "destino=D:\Proyectos\Batch Script\000_ArchivoBase\scc02525247.TXT"
:INTENTAR
echo Verificando existencia de archivo en: !origen!
if exist "!origen!" (
echo Archivo encontrado. Verificando que el archivo este totalmente copiado...
for %%A in ("!origen!") do set size1=%%~zA
echo Tamano inicial: !size1!
timeout /t 10 >nul
for %%A in ("!origen!") do set size2=%%~zA
echo Tamano despues de 10 segundos: !size2!
if "!size1!"=="!size2!" (
echo El archivo esta listo para copiar.
copy "!origen!" "!destino!"
echo Copia de archivo completada.
goto FIN
) else (
echo El archivo aun se esta modificando. Reintentando en 5 segundos...
timeout /t 5 >nul
goto INTENTAR
)
) else (
echo Archivo no encontrado. Reintentando en 5 segundos...
timeout /t 5 >nul
goto INTENTAR
)
:FIN
REM Copiar archivo.txt de C:\Origen a C:\Destino
REM copy "\\MX2CT1HNASCIFNFSEVS1.mx.corp\Cartera_Sis390\scc02525247.TXT" "D:\Castor\Documentacion\Lenguajes\Batch Script\000_ArchivoBase\scc02525247.TXT"
REM Renombrar archivo.txt a nuevo_nombre.txt en C:\Destino
REM ren "D:\Castor\Documentacion\Lenguajes\Batch Script\000_ArchivoBase\scc02525247.TXT" "castor.txt"
REM 4) REM Bloque de conexión a Oracle usando SQL Plus --------------------------------------------------------------------------------------------------------------------
REM Reemplaza USUARIO, PASSWORD, y TNS con tus datos
set ORACLE_USER=user_developer
set ORACLE_PASS=11159286Cs
set ORACLE_TNS=FREE
REM Ejecutar un query y guardar el resultado en un archivo
sqlplus -S %ORACLE_USER%/%ORACLE_PASS%@%ORACLE_TNS% @consulta.sql > resultado.txt
REM Ejemplo de consulta.sql:
REM SELECT SYSDATE FROM DUAL;
REM EXIT;
REM ------------------------------------------------------------------------------------------------------------------------------------------------------------------
REM Obtener hora actual (lo ajustaremos por comodidad de lectura a formato de AM - PM, solo para la consola)
set hora=%time:~0,2%
set minutos=%time:~3,2%
set segundos=%time:~6,2%
REM Quitar espacios iniciales en la hora
if "!hora:~0,1!"==" " set hora=!hora:~1,1!
REM Determinar AM o PM
set ampm=AM
if !hora! GEQ 12 set ampm=PM
if !hora! GTR 12 set /a hora=!hora!-12
if !hora! EQU 0 set hora=12
echo Fin de ejecucion: !dia_es! !fecha_formateada! !hora!:!minutos!:!segundos! !ampm!
REM ------------------------------------------------------------------------------------------------------------------------------------------------------------------
pause
Foreign Key it is as Barmar and David said in comments.
Your CMakeLists.txt mixes old ESP-IDF v4 style (register_component(), COMPONENT_* variables, manual project()/add_library()) with the new v5 style. That prevents IDF from correctly propagating the include path for esp_timer.h. The build system sees esp_timer in the requirements, but because of the legacy setup, the header isn’t actually on your target’s include path. Don’t call project(), add_library(), or register_component(). Instead, use only idf_component_register(..). By the way remove the ~ include paths. CMake won’t expand ~, and you don’t need them anyway. Delete all COMPONENT_ADD_INCLUDEDIRS, COMPONENT_REQUIRES, register_component(), target_link_libraries(... INTERFACE ...), etc. Those are legacy v4 constructs. No need for project() or add_library() inside an ESP-IDF component.
You cannot detect cookie deletion “instantly,” but you can detect it on the next request. That’s the standard, secure approach: let the backend validate tokens and let the frontend respond by logging out when unauthorized.
As I understand, the problem was with weight of font file? Maybe it can helps https://web.dev/articles/reduce-webfont-size ?
I was running lazygit
in another terminal, and upon closing it, it immediately allowed me to save the file.
This is very strange because lazygit is not suppoed to cause an issue like this, and I checked whether the file had any locks on it, and none were found. It seems very intermittent.
Rails.application.routes.draw do
resources :browse_items, only: [:index, :show]
resources :reports, only: [:index, :show]
resources :project, only: [:index, :create, :show]
root to: "project#index"
end
RememberDatePickerState crashes with kotlinx-datetime:0.7.1 because Compose Multiplatform Material3 still depends on an older unshaded version of kotlinx-datetime, so mixing in zero.7.X reasons runtime conflicts on Desktop/iOS. The safe workaround these days is to stay with kotlinx-datetime:0.6.X until Compose updates its dependency. You can still convert selectedDateMillis to a readable string manually the usage of platform-specific formatters (count on/real with SimpleDateFormat on Android and NSDateFormatter on iOS).
When compiling with updated code line, receive Compilation error: 'min' in namespace 'std' does not name a template type. and same error:
Compilation error: no matching function for call to 'I2Cdev::writeBit(uint8_t&, int, int, uint8_t&, void*&)'
I have this issue, check the font family. in my case it was an arabic language font familiy which causes this.
In my case, I tried to connect to MS SQL 2008 without encryption, since only TLS 1.2 and 1.3 were enabled on the web server (Windows Server 2022). I experimented with many settings, but eventually discovered that when only TLS 1.3 is enabled, the connection to MS SQL works (unencrypted). We then enabled TLS 1.2 in the registry as well, but only for the “Server” role (to keep RDP working, etc.), not for “Client”.
You create both .aab, one for the watch and one for the phone, just like as you did at first...
On play console, after enabling the wear os form factor, you go to "Production" tab as you did. Right on the right top corner where there is the "Create new version" button, that you also clicked, there is the a dropdown with the text: "Smartphones, Tablets, Chrome OS, Android XR", click on it and select the wear os option, then create the version just like your did with the phone .aab.
Before publishing you need to go back to the screen where you enabled the wear os form factor and enable the last option manually (when you enable the form factor there are 3 list items to fill remember!?).
PS. I didn't post any pictures because I don't have my computer here and I'm not logged on my phone...
I figured this out, it was easier than I thought and I was overthinking things. Yes technically its not the exact solution I will use in production but atleast I was able to test if my code worked successfully.
I setup my /etc/hosts code to route both domains to the localhost ip and then handled rendering the correct domain for the url in the app based on the request host and things worked perfectly.
You need to have a Certificate to do this, read this article from Microsoft and you are ready to debug.
It works well with your solution on OneDrive
if marginUpper can be null, you should use Integer instead of int
public class Margins {
private int id;
private Integer marginUpper;
// Getter Setter NoArgConstructor AllArgsConstructor
}
public class LCM
{
int n1,n2;//input values from user,i.e the values who's LCM is to be found
int large,sm;//compare n1 and n2. Store the larger number in large and smaller number in sm
public int getLCM()
{
if(large!=sm)
{
if (large>sm)
large=large-sm;
else if (large<sm)
sm=sm-large;
return getLCM();
}
else
return (n1*n2)/large;
}
}
You can try ng-virtual-list
It supports vertical and horizontal position, dynamic sizes, smooth scrolling. The README
contains detailed usage examples.
npm
https://www.npmjs.com/package/ng-virtual-list?activeTab=readme
I was hoping that the Apple would apply some logic to fix World Clock, which still assumes Daylight Savings is in effect in Mexico. Anyone aware of a fix for that?
You may start your adk server using following command.
adk api_server --allow_origins="*"
This will allow all origins and effectively disable cors for adk server.