There is no build-in function like std::swap in C++.
However, this code can perform the task:
def my_swap(obj1, obj2):
obj1[:], obj2[:] = obj2[:], obj1[:]
l1 = [1, 2, 3]
l2 = [4, 5, 6]
my_swap(l1, l2)
print("l1:", l1)
print("l2:", l2)
Output:
l1: [4, 5, 6]
l2: [1, 2, 3]
Hit the delete key on the keyboard while the stale string is selected.
Thanks @furas for the hint: simply uninstalling qt6-main using `conda remove qt6-main` worked for me (conda installed/uninstalled a lot of other packages, unfortunately I didn't really paid attention and just clicked ok). Just in case someone is interested: that's what my environment looks now:
_openmp_mutex 4.5 2_gnu conda-forge
ampl-asl 1.0.0 he0c23c2_2 conda-forge
brotli-python 1.0.9 py312h5da7b33_9
bzip2 1.0.8 h2466b09_7 conda-forge
ca-certificates 2025.2.25 haa95532_0
cairo 1.16.0 hc68a040_5
colorama 0.4.6 pyhd8ed1ab_1 conda-forge
contourpy 1.3.1 py312h214f63a_0
cycler 0.11.0 pyhd3eb1b0_0
deepdiff 8.1.1 pyhd8ed1ab_0 conda-forge
double-conversion 3.3.1 he0c23c2_0 conda-forge
expat 2.6.4 h8ddb27b_0
font-ttf-dejavu-sans-mono 2.37 hd3eb1b0_0
font-ttf-inconsolata 2.001 hcb22688_0
font-ttf-source-code-pro 2.030 hd3eb1b0_0
font-ttf-ubuntu 0.83 h8b1ccd4_0
fontconfig 2.14.1 hb33846d_3
fonts-anaconda 1 h8fa9717_0
fonts-conda-ecosystem 1 hd3eb1b0_0
fonttools 4.55.3 py312h827c3e9_0
freetype 2.13.3 h0620614_0
geojson 3.2.0 pyhd8ed1ab_0 conda-forge
glib 2.78.4 hd77b12b_0
glib-tools 2.78.4 hd77b12b_0
graphite2 1.3.14 hd77b12b_1
harfbuzz 10.2.0 hf458a27_0
icu 73.1 h6c2663c_0
intel-openmp 2024.2.1 h57928b3_1083 conda-forge
ipopt 3.14.17 h905d1ba_0 conda-forge
jpeg 9e h827c3e9_3
kiwisolver 1.4.8 py312h5da7b33_0
krb5 1.21.3 hdf4eb48_0 conda-forge
lcms2 2.16 hb4a4139_0
lerc 4.0.0 h5da7b33_0
libblas 3.9.0 26_win64_mkl conda-forge
libcblas 3.9.0 26_win64_mkl conda-forge
libclang13 14.0.6 default_h8e68704_2
libdeflate 1.22 h5bf469e_0
libexpat 2.6.4 he0c23c2_0 conda-forge
libffi 3.4.2 h8ffe710_5 conda-forge
libflang 5.0.0 h6538335_20180525 conda-forge
libgcc 14.2.0 h1383e82_2 conda-forge
libglib 2.78.4 ha17d25a_0
libgomp 14.2.0 h1383e82_2 conda-forge
libhwloc 2.11.2 default_ha69328c_1001 conda-forge
libiconv 1.17 hcfcfb64_2 conda-forge
libintl 0.22.5 h5728263_3 conda-forge
libjpeg-turbo 2.0.0 h196d8e1_0
liblapack 3.9.0 26_win64_mkl conda-forge
liblzma 5.6.3 h2466b09_1 conda-forge
libpng 1.6.39 h8cc25b3_0
libpq 12.15 h906ac69_0
libsqlite 3.48.0 h67fdade_1 conda-forge
libtiff 4.5.1 h44ae7cf_1
libwebp-base 1.5.0 h3b0e114_0 conda-forge
libwinpthread 12.0.0.r4.gg4f2fc60ca h57928b3_9 conda-forge
libxcb 1.17.0 h0e4246c_0 conda-forge
libxml2 2.13.5 h24da03e_0
libxslt 1.1.41 h0739af5_0
libzlib 1.2.13 h2466b09_6 conda-forge
llvm-meta 5.0.0 0 conda-forge
llvmlite 0.44.0 py312h8b1c7eb_1
lxml 5.3.0 py312h395c83e_1
lz4-c 1.9.4 h2bbff1b_1
matplotlib 3.10.1 py312h2e8e312_0 conda-forge
matplotlib-base 3.10.1 py312h90004f6_0 conda-forge
minizip 4.0.3 hb68bac4_0
mkl 2024.2.2 h66d3029_15 conda-forge
mumps-seq 5.7.3 h7c2359a_6 conda-forge
networkx 3.4.2 pyh267e887_2 conda-forge
numba 0.61.0 py312hcccf92d_1 conda-forge
numpy 2.1.3 py312h49bc9c5_0 conda-forge
openjpeg 2.5.2 hae555c5_0
openmp 5.0.0 vc14_1 conda-forge
openssl 3.4.0 ha4e3fda_1 conda-forge
orderly-set 5.2.3 pyh29332c3_1 conda-forge
packaging 24.2 pyhd8ed1ab_2 conda-forge
pandapower 3.0.0 pyhd8ed1ab_0 conda-forge
pandas 2.2.3 py312h72972c8_1 conda-forge
pcre2 10.42 h0ff8eda_1
pillow 11.1.0 py312h096bfcc_0
pip 25.0 pyh8b19718_0 conda-forge
pixman 0.44.2 had0cd8c_0 conda-forge
ply 3.11 pyhd8ed1ab_3 conda-forge
pthread-stubs 0.3 h3c9f919_1
pyomo 6.8.2 py312h275cf98_1 conda-forge
pyparsing 3.2.0 py312haa95532_0
pyside6 6.7.2 py312hf8997a8_0
python 3.12.3 h2628c8c_0_cpython conda-forge
python-dateutil 2.9.0.post0 pyhff2d567_1 conda-forge
python-tzdata 2025.1 pyhd8ed1ab_0 conda-forge
python_abi 3.12 5_cp312 conda-forge
pytz 2024.1 pyhd8ed1ab_0 conda-forge
qhull 2020.2 h59b6b97_2
qtbase 6.7.2 h0804d20_0
qtdeclarative 6.7.2 h5da7b33_0
qtshadertools 6.7.2 h5da7b33_0
qtsvg 6.7.2 hf2fb9eb_0
qttools 6.7.2 h0de5f00_0
qtwebchannel 6.7.2 h5da7b33_0
qtwebengine 6.7.2 h601c93c_0
qtwebsockets 6.7.2 h5da7b33_0
scipy 1.13.1 py312h1f4e10d_0 conda-forge
setuptools 75.8.0 pyhff2d567_0 conda-forge
six 1.17.0 pyhd8ed1ab_0 conda-forge
sqlite 3.45.3 h2bbff1b_0
tbb 2021.13.0 h62715c5_1 conda-forge
tk 8.6.13 h5226925_1 conda-forge
tornado 6.4.2 py312h827c3e9_0
tqdm 4.67.1 pyhd8ed1ab_1 conda-forge
typing_extensions 4.12.2 py312haa95532_0
tzdata 2025a h78e105d_0 conda-forge
ucrt 10.0.22621.0 h57928b3_1 conda-forge
unicodedata2 15.1.0 py312h827c3e9_1
vc 14.42 haa95532_4
vc14_runtime 14.42.34433 h6356254_24 conda-forge
vs2015_runtime 14.42.34433 hfef2bbc_24 conda-forge
wheel 0.45.1 pyhd8ed1ab_1 conda-forge
xorg-libxau 1.0.12 h0e40799_0 conda-forge
xorg-libxdmcp 1.1.5 h0e40799_0 conda-forge
xz 5.6.4 h4754444_1
zlib 1.2.13 h2466b09_6 conda-forge
zstd 1.5.6 h8880b57_0
For this, you need to implement the IAutoComplete2 interface. Ask chatgp for "Implements IAutoComplete2 in c#", you will get a basic implementation, and sample how to attach it to a winform textbox.
Now, all you need to provide ACO_NOPREFIXFILTERING flag, when creating your new autocomplete.
The problem was decimal type values.
They were exported with point and not comma
Conventing them to double, i resolved hte problem
difflib.get_close_matches
gives amazing results with high accuracy. do give it a try. But also does anyone know how to do this same process on golang?
Dear Team,
Please find below the Excel upload format I am using to update item texts for multiple purchase requisitions (PRs) in SAP. The file contains PR numbers, corresponding line item numbers, and the desired item text to be uploaded.
PR Number PR Item Number PR Item Text
3400001460 10 8 HOLES
3400001460 20 PMI TESTING
3400001460 30 HARDNESS TESTING
3400000875 10 MECHANICAL TESTING
3400000875 20 LADDLE ANALYSIS
3400000875 30 HARDNESS TEMPERATURE
I kindly request your support in providing a VBA macro that can:
Open ME52N in SAP.
Process each PR and line item from the Excel sheet.
Update the item long text accordingly.
Loop through all entries and save changes.
This automation will help reduce manual efforts and ensure consistency in text updates.
Please let me know if you need any additional details or adjustments to the format.
Thank you for your support!
安装对应版本的devel,我是python3.11 我安装python3-devel不能解决问题,安装python311-dev可以解决问题了
yum install python311-devel
pip3 install uwsgi
I tried accessing the pusher api key in my Next.js project like this
process.env.PUSHER_APP_KEY
but received the same error but when I replaced the value with the litral value it worked just fine but due to obvious security reasons this cannot be used like this. First doubt was that I might be making some kind of typo but it wasn't the case, the following helped me so replace the above snippet with the below
`${process.env.PUSHER_APP_KEY}`
This solved my issue I hope helps other facing the same issue. Happy coding.
I think you might be mixing up a few concepts.
When working with Convolutional Neural Networks (CNNs), the goal is typically to perform automatic feature extraction and model training directly from images. It's not like working with traditional models where you have predefined columns or features — in CNNs, those features are implicitly learned from the images themselves.
Regarding your question "whether to freeze the model or to extract until Dense(128...)," — it's quite common to include one or more dense layers after the convolutional and max pooling layers, before the final classification output. This is because connecting the convolutional outputs directly to the output layer would be too raw and inefficient. Dense layers help consolidate and interpret the extracted features before making the final prediction.
As for "whether to use a number of folds or if that's only for machine learning," — CNNs can also benefit from techniques like K-Fold cross-validation. In my case, I usually start with a small number of epochs and use something like a 5x10 K-Fold setup to get an initial idea of model performance. Based on that, I adjust hyperparameters and experiment with different fold sizes.
Also, if your dataset is large or training from scratch is too slow, you might want to try transfer learning — it can save a lot of time and resources.
Regarding dropout layers, they are definitely useful and commonly used to prevent overfitting by randomly deactivating neurons during training. However, if dropout is too aggressive (e.g., using very high dropout rates), it can prevent the network from learning effectively. So again, it comes down to experimentation — finding the right balance is key.
In the end, there’s no single “right” way to do this — trial and error, careful tuning, and adapting to your specific dataset and task is what usually leads to the best results.
Here's a quick solution without needing Lodash or other libraries:
function areObjectsEqual(a: any, b: any): boolean {
return (
JSON.stringify(a, Object.keys(a).sort()) ===
JSON.stringify(b, Object.keys(b).sort())
);
}
This can also handle nested objects and different order of properties.
In my original post, I omitted the fact that I was saving the URI to RoomDB between creating and trying to read from it. My custom URI TypeConverter for RoomDB was calling uri.path
to convert it to a string, but the path
attribute cuts off the URI scheme (thanks to @CommonsWare for pointing this out in the comments). After changing my TypeConverter to use uri.toString()
, when I retrieve the value from RoomDB I get the complete URI including the content://
prefix indicating the scheme. From there, it's simple to create a bitmap from the retrieved uri using ImageDecoder
and ContentResolver
:
val bitmapSource = ImageDecoder.createSource(contentResolver, uriFromDb)
val bitmap = ImageDecoder.decodeBitmap(bitmapSource)
I had this issue only when working with Docker and Nestjs, above solutions didn't worked. This one eventually helped:
in package.json
:
"pnpm": {
"onlyBuiltDependencies": ["bcrypt"]
},
in Dockerfile:
RUN pnpm install
RUN pnpm rebuild bcrypt
Add exception for those urls in Avast :
This question only comes up if multiplications and divisions are to be "optimised" by shifts. Since decades, this is done by the compiler, and never performance relevant; just obfuscates the program.
So if a number shall be divided by 8, the proper type should be used and the division written. If a certain number of bits has to be moved right, use an unsigned integer; the high order bits are irrelevant in this case.
Thanks to F. Hauri - Give Up GitHub comment above I just had to remove -tt
What -tt
does:
Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services.
Multiple -t options force tty allocation, even if ssh has no local tty.
flood, flood, flood, flood, flood, flood, flood, flood, flood, flood
Add androidXBrowser = "1.8.0"
in the android/build.gradle
file
under ext
block
ext {
...
androidXBrowser = "1.8.0"
}
Try working with this -- it handles all data types and uses recursion to go arbitrarily deep into complex JS object structures. I got tired of looking for something which wasn't either a bloated library or too simple to deploy easily. Wanted to guard against folks poking holes in my SQL (I do use parameterization, but...), logging, server code, whatever. You can easily change the regexes, etc. to fit your needs. Just wrote it this afternoon, so would appreciate feedback if there are things I overlooked.
function sanitizeVar(jsVar, options = {}) {
const type = typeofComplete(jsVar)
if (type == 'object')
Object.keys(jsVar).forEach(key => { jsVar[key] = sanitizeElement(jsVar[key])})
else if (type == 'array')
for (let idx = 0; idx < jsVar.length; idx++) { jsVar[idx] = sanitizeElement(jsVar[idx]) }
else // string, boolean, number, bigint, null, undefined, function, symbol
jsVar = sanitizeElement(jsVar)
return jsVar // return mutated value -- end of main function
/*
helper functions -- keep in this scope
*/
function typeofComplete(jsVar) { // what the native JS typeof should do...
return jsVar == null ? 'null' : Array.isArray(jsVar) ? 'array' : typeof jsVar
}
function sanitizeElement(val) {
const type = typeofComplete(val)
if (type == 'string') return sanitizeString(val)
// return back up to sanitizeVar(); will likely recurse back here...
else if (['object', 'array'].includes(type)) return sanitizeVar(val)
else if (['boolean', 'number', 'bigint', 'null', 'undefined'].includes(type))
return val // these are safe as they are
else if (['function', 'symbol'].includes(type)) return null // never in a client request
}
function sanitizeString(str) { // sanitizing crux; add regex and options as needed
// DIAG to make sure it's working: str = str.replace(/\d/g, 'X')
return str.replace(/[^\x00-\x7F]/g, '') // remove non-ASCII chars
.replace(/[\\|`"';<>]/g, '') // remove \ | ` " ' ; < >
.substring(0, options.max_str_length || undefined) // undefined => no limit
}
}
I know the question is super-old, but I ran across it before I gave up looking for a more robust light-weight solution. Another idea is to pass regex(es) in as part of options object arg.
In addition to @fepegar answer - you probably don't want to save the images as .jpg format, since .jpg is a lossy-compression type, which means it losses important information. You should save the images to a lossless compression file types, such as .pgm for a single channel image, .png for 3 channels image, or .tiff (using python's package tifffile) for any other number of channels - which is probably what you'd want in this case.
pip install tifffile
import tifffile as tiff
tiff.imwrite(file_path, image, dtype=np.float32) # Save the image as a TIFF file as FP32
I am going to share how did it help me. I also have spent two days just to find it was a small issue.
I have updated the profile name to the user name which was showing under git config ls (only username before @).
code pushed successfully.
AFAIK, you cannot simulate a cancellation in Simulators. However, it's possible on a real device with a sanbox account. These steps are:
Settings -> AppStore -> SANDBOX ACCOUNT
Ambulance service simulation is a critical tool used to enhance the efficiency and effectiveness of emergency medical services. In a fast-paced and densely populated city like Mumbai, simulation plays a vital role in preparing ambulance teams for real-life scenarios. By using advanced technology and training modules, Ambulance Service in Mumbai can simulate emergencies such as accidents, cardiac arrests, or mass casualty incidents to train staff in quick decision-making, patient care, and route optimization.
These simulations help identify potential challenges, test response times, and improve coordination between ambulance drivers, paramedics, and hospitals. As a result, they significantly enhance the overall quality and reliability of emergency care services in the city. With Mumbai’s complex traffic and varied infrastructure, simulation ensures that the ambulance services are well-prepared to save lives efficiently and swiftly.
If you can drop a code snippet, it'll be easier to see what's happening and help.
Complement based on @Saad Malik's answer,
Conclusion:
SSL_CERT_FILE
(the customized CA certificate file path)SSL_CERT_DIR
(colon separated list of directories)Source path: https://golang.org/src/crypto/x509/root_linux.go.
var certFiles = []string{
"/etc/ssl/certs/ca-certificates.crt", // Debian/Ubuntu/Gentoo etc.
"/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL 6
"/etc/ssl/ca-bundle.pem", // OpenSUSE
"/etc/pki/tls/cacert.pem", // OpenELEC
"/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", // CentOS/RHEL 7
"/etc/ssl/cert.pem", // Alpine Linux
}
// Possible directories with certificate files; all will be read.
var certDirectories = []string{
"/etc/ssl/certs", // SLES10/SLES11, https://golang.org/issue/12139
"/etc/pki/tls/certs", // Fedora/RHEL
}
Source Path: https://golang.org/src/crypto/x509/root_unix.go.
// certFileEnv is the environment variable which identifies where to locate
// the SSL certificate file. If set this overrides the system default.
certFileEnv = "SSL_CERT_FILE"
// certDirEnv is the environment variable which identifies which directory
// to check for SSL certificate files. If set this overrides the system default.
// It is a colon separated list of directories.
// See https://www.openssl.org/docs/man1.0.2/man1/c_rehash.html.
certDirEnv = "SSL_CERT_DIR"
Facing this exact situation, did someone find the answer?
I found for Tomcat on Windows, the following worked.
If the Tomcat AppServer is configured as a Windows Service, you need to run the tomcatw.exe command and then enter the values in the fields as per below:
Restart Tomcat and check the Catalina log. You should see something like this:
If the Tomcat AppServer is NOT configured as a Windows Service, you need to create file setenv.bat in the Tomcat bin folder and add the following entries:
set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 -server -Xms512m -Xmx2g -Xss4m
You should see something like this in the catalina.log
I am having the same issue/error.
is the above answer works ?
Please check your python version. it should be 3.9+
The following two commands (to restart Windows NAT driver) successfully get rid of this error.
net stop winnat
net start winnat
And whala, it is now working, again.
I also made a try : https://framagit.org/FBibonne/poc-java/-/tree/iso8859?ref_type=heads : this litle project tries to reproduce your context with the class ConfigRestClient which provides RestClients to retrieve Product entites (simplified version of your )
Then I made tests mocking a server which serves xml encoding with ISO-8859-1 : https://framagit.org/FBibonne/poc-java/-/blob/iso8859/src/test/java/poc/java/springrestclient/ConfigRestClientTest.java?ref_type=heads : each test configures a mock server to return xml, gets a ResClient from ConfigRestClient and calls retrieve with the RestClient as your method getStuff()
does.
The different tests try to explain the problem and suggest a fix :
faillingCallWithIso8859()
: reproduces the initial problem (checking the exception raised is about xml encodingtestOKWithUTF8()
checks it works if the server responses using UTF-8testOKWithCorrectHeaderXML()
tries a fix with the server side adding encoding in xml header : I think it is the ideal solutiontestOkWithClientFixingEncoding()
tries an other RestClient (provided by poc.java.springrestclient.ConfigRestClient#woEncodingFixingRestClient
) which intercept the response made by the spring ClientHttpRequest
and decode the body to re-encode it in UTF-8. this is a poor workaround because it requires to rewrite some spring code (class poc.java.springrestclient.ConfigRestClient.BodyReEncodedResponse which rewrites body like org.springframework.http.client.BufferingClientHttpResponseWrapper). But it works.If you introduced such a RestClient in your application, you would only use it for the problematic endpoint thanks to @Qualifier adn/or @Primary.
I don't think the problem resides in Spring RestClient : in fact, it seems impossible to set up externally the encoding used by Jaxb unmarshalling : see Override declared encoding during unmarshalling with JAXB : the suggested solution is to process byte decoding outside jaxb to control encoding. I neither found in Jaxb a way to do it : jakarta.xml.bind.helpers.AbstractUnmarshallerImpl#setProperty does not support any property set (raise exceptions)
1 from random import *
2 import os
3 u_pwd =input("Enter a possword: ")
4 pwd=['a' , 'b' , 'c' , 'd' , 'e' ,'f' , 'g' , 'h' , 'i' , 'j' , '1' , '2' , '3' , '4' , '5' , '6']
5
6 pu=''
On click of your button you get the following errors in the console
The invalid form control with name=‘building_budget’ is not focusable.
The invalid form control with name=‘drainage_budget’ is not focusable.
The thing that is happening is that the input fields with building_budget and drainage_budget are required, but they have display: none.
To fix this either make them optional or show the fields. After that your submit should be working fine. Make sure to check the url that it is submitting to, as currently you dont seem to have escaped the <?php tag, leading to getting a post url that is different from the one you desire. If you are unsure of how to check these things, look up a guide on how to use the chrome/firefox (or any other browser youre using) inspector tools and console
An explaination of PrintWindowW
Right After this line in your code
compatible_dc.BitBlt((0, 0), (width, height), dc_object, (0, 0), win32con.SRCCOPY)
add
ctypes.windll.user32.PrintWindow(hwnd, compatible_dc.GetSafeHdc(), 2)
instead of win32gui.GetClientRect(hwnd)
, use win32gui.GetWindowRect(hwnd)
This will cleanup the image that you are converting to a numpy array for OpenCV. As far as the offset, you're going to end up with a boarder around the window itself because of shadowing around the window that is actually part of the window as you can see there isn't any spacing along the top of the images below.
Bigtable now supports SQL GROUP BY with aggregation functions SUM, AVG, COUNT, MIN, MAX, HLL_COUNT.MERGE... and Continuous Materialized Views to calculate aggregations incrementally into materialized views.
This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free.
Got a question about the site itself? meta is the place to talk about things like what questions are appropriate, what tags we should use, etc.
Download the google-services.json file from Firebase.
Close Android Studio.
Restart your system.
Open Android Studio.
Copy and paste the google-services.json file to the following location:
[Project Name]/android/app/google-services.json.
Rebuild the project.
I got to realise that there were typos in my assembly code that was causing the tests to not compile. Thanks for the help.
check if there are any locks on the resource group of the app service. if there is delete it.
Make sure you escape all the $
that are part of the output document that aren't a variable. To escape / quote them you double up the $
so, $$
This document outlines the procedure for downgrading the Flutter plugin in Android Studio from version 85.0.4 to 85.0.3, including the configuration steps to prevent automatic updates.
Navigate to the official JetBrains Plugin Repository.
Locate version 85.0.3 of the Flutter plugin.
Click Download to obtain the .zip
archive of the plugin.
Follow the official JetBrains procedure to manually install the downloaded plugin:
Open Android Studio.
Press Ctrl + Alt + S
(Windows/Linux)
or go to:
File
→ Settings
(or Android Studio
→ Preferences
on macOS).
In the Settings window, select Plugins.
Click the ⚙️ gear icon in the top-right corner.
Select Install Plugin from Disk….
Locate and select the downloaded .zip
file (e.g., flutter-intellij-85.0.3.zip
) and click OK.
Click OK to apply the changes.
Restart Android Studio when prompted.
ℹ️ This is the official method provided by JetBrains for manual plugin installation.
Reference here: https://github.com/flutter/flutter-intellij/issues/8051
This also works and skips the view creation
SELECT * INTO [REMOTEDB].[SCHEMA].[NEW_TABLE]
FROM OPENQUERY([REMOTESERVER],'SELECT * FROM [REMOTEDB].[SCHEMA].[TARGET_TABLE]');
GO
java-sqs-listener
a lightweight, dependency-free library was developed for exactly, with a design that supports seamless future upgrades. Refer to java-sqs-listener-springboot-example for a demonstration of how to integrate the java-sqs-listener library within a Spring Boot application.
Disclaimer: I’m the author.
I would start by making sure that API.cs and program.cs are part of different projects. The way I open projects is I pin Visual Studio to the taskbar (you should pin both of your versions). Once you've opened the correct project right right-click on that version of Visual Studio in the taskbar and pin the project to the recent files list. Then all you have to do going forward is right-click on the appropriate version of Visual Studio and left-click on the desired project.
If you want to make your two versions of Visual Studio look vastly different you can customized their icons:
I am finding the above filter function prevents the cart from having shipping added for Express checkout type payment methods including Apple Pay. Has anyone else experienced this?
I am also facing same issue with intelliJ. Please let me know for evaulate Java8 Stream in IntelliJ?
Fewest steps:
Step 1 - Select count(*)/2 as Limit1 from table1
Step 2 select variable1 from table1 order by variable limit Limit1
No brainer way to do it unless you have a truly large dataset or incredibly slow computing infrastructure.
I finally found the answer to new arch library in React Native. Please follow the link for more information.
I saw a post that help me to solve that problem,
Cucumber project build success but console Test run 0, Test skip 0
Basically, he did the next thing:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.0.0-M5</version>
</dependency>
</dependencies>
</plugin>
This is an old thread, but this is what I use to go back:
REF1 = Request.ServerVariables("HTTP_REFERER")
RESPONSE.REDIRECT REF1
I recommend the book "Grokking Machine Learning" - everything is described there perfectly.
My repository for this book: https://github.com/cr00z/PythonMLBackup/tree/main/grokking_dl
Refer System.Text.Json.JsonSerializer instead of newton soft json serializer... Sorry Dinesh I had to repeat your answer as I couldn't upvote... But I tested it and it worked like a charm
class OTPData{ public string OTP {get;set} ....... }
var result = System.Text.Json.JsonSerializer.Deserialize<OTPData>
(response.ToString());
string otp = result.OTP;
string username = result.UserName;
string type = result.type;
The async pipe unsubscribes automatically.
So do Signals and Effects.
Pandas 3.0 rolling will add support to first
and last
natively. However, as of writing of this answer this is still in dev branch:
I asked copilot itself about an API interface to send prompts and get responses and it said it doesn't support that as it's intended for integration into IDEs. It also said "If you're looking for programmatic access to AI-powered code generation, you might want to explore OpenAI's GPT APIs or similar services, which are specifically designed for such use cases."
Compression comes in two flavors: lossy, and lossless. Lossy compression can take file sizes down significantly, but some data will be lost (hence the name). Lossless compression on the other hand keeps all original data intact, but usually can't take file sizes down as much.
Due to the nature of SVGs being vector-based[^1] XML-defined[^2] graphics, unless you manually optimize them you can't get much better compression than removing the whitespace and comments in the files (if any).
If you want to maintain acceptable visual quality and are ok with them being quite small, you can rasterize them into a PNG, for example. Online tools such as CloudConvert or command-line tools such as ImageMagick can help you with this.
tl;dr: unless you need to use SVGs, convert them into tiny raster graphics.
[^1]: i.e. the image is defined as a series of curves and shapes instead of pixels. This generally results in less information per image ∴ smaller file sizes.
[^2]: i.e. it's written in plaintext, which can't be compressed without overhead.
If you're asking what the default window color is, then its #F0F0F0
You are my hero. I just wanted you to know that this snippet works perfectly for me and is exactly what I needed. :)
I encountered the same issue. I disabled the antivirus and restarted my Windows PC. After that, I was able to log in successfully using Chrome. There was no need to install any additional browser
This issue can be resolved by setting the following code
viewer.scene.logarithmicDepthBuffer = false;
This is the reference link
In conclusion, this was done!
I tried again, noting that it might be interpreted as a non-member status. When selecting an account on the OAuth authorization screen, I had chosen the account with my email address, but instead of doing so, I chose my YouTube channel account created with the same email address. I did that and got a response without 403 forbidden.
Thanks.
So I just spent hours trying to figure this out... I was working with device emulation turned on in the dev console. The device I was using was even configured as desktop non-touch device. I was working on Edge, I will assume Chrome will behave the same way.
IF DEVICE EMULATION IS TURNED ON DRAGOVER EVENT WONT FIRE AND CURSOR WILL BE MARKED AS BLOCKED!
Fixed, for some reason the ios project was setup in "Release mode". I did the change in Xcode -> edit schemes
Then In Run Section, The build configuration was in "release", did the change to "Debug". Close xcode
then in vscode, run again:
npm start
npm run ios
After that, the app runs well again and able to send logs to debugger. And if someone don't know, I wasn't able to see the logs inmmediately, as I read before in some posts around internet about RN >= 0.77, it is necessary to have some third-party debugger, but i wanted to put it simple, just downloaded Chrome browser first, and then run the npm commands.
In simulator, once the app is launched, press "j" key, to see the option "open dev tools", with that the chrome dev tools will open and you'll see the logs.
I were about 4 days with this trouble,I hope these details can help others
You should enable "Depth Test".
So all you have to do is just to add one line.
viewer.scene.globe.depthTestAgainstTerrain = true;
I found out..
https://github.com/pallets-eco/cachelib/blob/9a4de4df1bce035d27c93a34608a8af4413d5b59/src/cachelib/file.py#L50
because of __wz_cache_count
You can try using onlyoffice(https://api.onlyoffice.com/docs/docs-api/get-started/frontend-frameworks/vue/)
Remove the aria-hidden="true" from the modal div. Line #68 of your index.html file.
Yeah you can ignore it It worked for me. i got this on tensor flow app.
I received this error today. In my case, the ssh agent service was not running. After enabling, I was able to clone a repo with SSH.
Breaking @poke answer into some basic pieces for additional clarity:
current_frame = inspect.currentframe()
parent_frame = inspect.getouterframes(current_frame)[1].frame
parent_function_name = parent_frame.f_code.co_name
Facing similar SSL failure.
exceptions with Docker python:3.13-alpine
and rabbitmq-amqp-python-client library.
Apparently, while building proton package, it rely on pkgconf / pkg-config.
So after adding packages, proton.SSL.present()
again works
apk add --no-cache build-base pkgconf openssl openssl-dev
Bonjour à chaque fois que j'essaie d'utiliser swiper avec react js ça ne fonctionne pas. Est ce que quelqu'un a une idée "swiper": "^11.2.6" Merci d'avance
Okay, we already have an accepted answer, but let me add a few thoughts on this as well.
First of all, it's important to understand that most features in any tool or technology are introduced to solve existing challenges. This includes everything from design changes to improvements in problem-solving.
But why version catalogs?
Well, when working on projects loaded with dependencies, keeping everything healthy and consistent is a real challenge. For example, imagine a project with multiple modules—say, 3 to 10—where each one uses a different set of dependencies. Some modules might even use the same dependency, but with different versions or from different repositories. Managing this mess and keeping everything up to date can quickly become a nightmare!
Having a centralized approach to manage all these artifact references and version strings in one place is like achieving peace on earth. I say this with confidence because I’ve faced many issues while working on large, real-world projects packed with dependencies.
And that’s it—in practical terms, version catalogs help us tackle this exact problem.
Of course, for simple projects that use very few dependencies—or for quick prototypes or throwaway projects—there’s no need to worry about using version catalogs. Sometimes we create projects just to test something, and maybe they don't even have any extra dependencies or plugins. In those cases, it’s totally fine not to use a catalog.
But as your project grows, you should really consider migrating your dependency strings to a catalog.
Also, remember that Gradle is used to build environments beyond Android. Kotlin and even C++ are well-supported by Gradle!
None of the above worked for me. I have environment variables pointed to flutter bin folder. I have android APK support enabled. I have the new 2024 version of Android Studio and nothing I have tried is working. Can someone help me please?
Each variable comes from a "context". config.toml file defines the config, frontmatter in _index.md files define section and frontmatter of every other markdown file defines a page context to be used in templates. When you are referring to a variable from a context, you should mention variable name along with the context it comes from separated with DOTs, like context.my_variable
or context.extra.my_extra_variable
if defined after [extra]
.
We are going to declare titles for different contexts, and none of them will overwrite each other.
config.toml
base_url = "https://murtezayesil.me/"
title = "Murteza Y"
config.title
= Murteza Y
content/blog/_index.html
---
title = "Blog"
---
# Blog
Welcome to my corner of the internet.
section.title
= Blog
content/blog/my-first-post.md
---
title = "Blogging in 2025?"
---
Of course.
page.title
= Blogging in 2025?
template/index.html
{% set title = "Home" %}
{{ title }}
= Home
{{ this.title }}
= Home
this is a special context that refers to that file. It can be omitted. Since you didn't specify any context, Tera reasonably assumed that you were omitting this and looked for this.title.
This might be confusing early on. Luckily, Tera provides {{ __tera_context }}
variable which prints out all defined variables in all known contexts. If that is hard to comb through, ShawnPConroy on Zola's Discourse Forum shared this script which organizes them.
In case of the issue you are having, here is a snippet from my theme:
<title>
{% block window_title %}
{% if page.title %}
{{ page.title }} -
{% elif section.title %}
{{ section.title }} -
{% endif %}
{{ config.title }}
{% endblock window_title %}
</title>
This means,
if page.title exists, print {{ page.title }} - {{ config.title }}
else if section.title exists, print {{ section.title }} - {{ config.title }}
otherwise, just {{ config.title }}
If node is installed which you can check by 'node -v' and ng is not recognized, Use this command
npm link @angular/cli
It looks like both do the same thing, at least in Java it does. Please see output below:
System.out.println("Stackover\rflow");
System.out.println("Stackover\nflow");
Result:
Stackover
flow
Stackover
flow
I am facing same issue , service is not able to connect to db after 15 minutes . I have added logic to generate toke every 14 minutes still no luck.
ITS WHEN THE CORRUPT FEDS ARE MONITORING YOUR COMPUTER ILLEGALLY THAT THESE THINGS OCCURT
or the same as REST API, using gcloud
:
gcloud organizations list
removing object-cache.php worked for me
If you use google colab with the runtime T4, you may face this issue many times. Try changing your runtime. It fixes all the versioning issues.
I've realized the solution here; after listing all permissions in the directory:
$ ls -l /etc/ssl/mongo/
-rw------- 1 root root 1234 Apr 9 22:00 mongodb.pem
You can see from above that the certificate isn't correctly allowed; yet the directory is. To quickly solve, just:
chmod 644 /etc/ssl/mongo/*.pem
I know it sucks, it really does. A sunrise at 03:44 seems out of sync
I encountered a similar problem as well and just solved it. There are two different presentation options: Projects Presentation and Package Presentation. I was automatically going to the Projects Presentation and selecting Hierarchical or checking this option. To view the hierarchical structure in packages, I selected Package Presentation - Hierarchical, and then I was able to see a properly structured hierarchy.
Is your account's encoding set to UTF-8 ?
"More Options" at http://www.paypal.com/cgi-bin/websrc?cmd=_profile-language-encoding
pip install Flask-Reuploaded
try that i also tried it and worked for me
@alek has it right. Just to show as an example:
declare -Ar array1=( [5]=true [10]=true [15]=true )
declare -Ar array2=( [20]=true [25]=true [30]=true )
declare -A array_both
eval "array_both=( ${array1[*]@K} ${array2[*]@K} )"
for key in ${!array_both[@]}; do
echo "array_both[${key}]=${array_both[${key}]}"
done
produces
$ bash /tmp/test.sh
array_both[30]=true
array_both[5]=true
array_both[25]=true
array_both[20]=true
array_both[10]=true
array_both[15]=true
The single line and the eval are key to this. I did it on single steps (in an attempt to make it clear) and it produces some very odd results (all keys and no values)
Using switch statement, write a C# program that prompts the user to input a
student's name and mark. The program then evaluates the mark and displays the
corresponding grade based on the following criteria:
• Excellent for marks 90 and above.
• Very Good for marks between 80 and 89.
• Good for marks between 70 and 79.
• Average for marks between 60 and 69.
• Passed for marks between 50 and 59.
• Failed for marks below 50.
You can try to use my @longpress event that wraps JS library for this purpose:
https://github.com/Kebechet/Blazor.EventHandlers.LongPress
https://www.nuget.org/packages/Kebechet.Blazor.EventHandlers.LongPress
As a prod solution, option 2 was preferred, because it would allow us to connect individual functions without depending on other unnecessary ones
buildSrc
plugins {
`maven-publish`
}
afterEvaluate {
publishing {
publications {
register<MavenPublication>("release") {
from(components.findByName("release"))
groupId = project.hierarchy.concatGroup()
artifactId = project.name
version = libs.versions.versionName.get()
}
}
repositories {
maven("...") {
credentials {
username = getLocalProperty("MAVEN_USERNAME")
password = getLocalProperty("MAVEN_PASSWORD")
}
}
}
}
}
And some utils in buildSrc
val Project.hierarchy get(): List<Project> =
generateSequence(this, Project::getParent).toList().reversed()
fun List<Project>.concatGroup(): String {
return dropLast(1).joinToString(".") { it.name }
}
Thus, we get the name of the dependencies in the repository the same as the name of the modules tree of your project
And don't forget to connect your maven repository to the gradle project
Then you can connect this plugin to the modules you want to put into the repository (or another plugin as in my case)
plugins {
id("com.android.library")
kotlin("android")
/* ... */
id("publishing-plugin")
}
After that, you can call the publishAndroidReleasePublicationToMavenRepository
or publishReleasePublicationToMavenRepository
task, depending on the configuration of your project (KMP
or Android
).
After that, all modules to which the plugin has been applied will be uploaded to the specified maven repository.
your-app-feature = { group = "YourProject.features.feature", name = "feature", version.ref = "your-proj-version" }
After a year from the previously found solution.
I Found an article on a Russian resource on this topic using a more modern version of the fat-aar solution - Grease
It may be worth considering switching to such a solution
Yesterday I spent the whole day trying to fix this error. Today, I deleted Crashlytics from the Runner's Build Phases, and finally, my app built successfully. Hope this helps someone!
Your keys shouldn't be readable by everyone on your system.
Your problem should be that Mosquitto switches to a different user.
Your mosquitto.conf
omits user
, which defaults to the user "mosquitto".
Either ensure the certificate files can be read by that user, or configure to use a different user 👍
This adds nuance to the other answers:
d = {}.fromkeys(s,0)
Have you tried disabling the usb hub/root device?
I'm on Arch Linux using the Linux Editor obviously.
And I had a similar issue.
I have a faulty USB hub that I use, it is mostly ok 90% of the time.
But it does this stupid thing where it like tries to detect weather you plugged something into it and show you an indicator light.
Which that feature didn't work right from the get go.
Point being turning it off fixed it for me.
Thanks, you gave me a clue as to what was wrong!
Love and sympathy and confidence. It is a place where kindly affections exist among all the members of the family
My problem was I had to run
ng build --configuration production
With this action I could publish my project! Thank you everyone for your help!
Do view Binding and databinding both true for this, and check this again.
android {
buildFeatures {
dataBinding = true
viewBinding = true
}
}
Niczem Olaske how would I grab an access key from duck duck go maps page? Please and thank you.
If you're sending information over the internet, get yourself a free SSL cert from browser-approved Let's Encrypt. There's no excuse not to be at least this secure in 2025.