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_diskbut 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.
clean the migration dependencies.
a solution that has just worked in my case was resetting existing migrations, creating and running migrations afresh, then reinstalling djoser. it's likely that a mixup of migration dependencies so anything from; 1) deleting the database, 2) deleting pycache to 3)running replacement and recovery is a great approach to this problem.
didnt worked for me , can any one help me here ?have the same issue in RN 0.77.1
In MacOS you can install just the client library from MySQL, in case you don't need the server.
brew install mysql-client
iOS 26+ New API
labelReservedIconWidth(_:)
https://developer.apple.com/documentation/swiftui/view/labelreservediconwidth(\_:)
You can rename it as different name then press the big blue "Save" when you opened it up.
I was fighting this a bit with while using Tiled and figured I'd throw up what I landed on here. In Tiled it's just a width/height with the ellipse flag toggled so this works for that.
static std::vector<std::pair<float, float>> ellipsePoints(const float ¢erX, const float ¢erY,
                                                          const float &horizontalRadius, const float &verticalRadius) {
    // Box2d only lets us have a max of 8.
    static constexpr size_t MAX_SEGMENTS = 8;
    std::vector<std::pair<float, float>> points;
    for (size_t i = 0; i < MAX_SEGMENTS; i++) {
        float theta = 2.0f * M_PI * i / MAX_SEGMENTS;
        float x = centerX + horizontalRadius * cosf(theta);
        float y = centerY + verticalRadius * sinf(theta);
        points.emplace_back(x, y);
    }
    return points;
};
JazzCash MWallet Integration in C# or asp dot net
https://github.com/owais924/JazzCash-Integration-ASP.NET-CSharp
A mixin in Ruby is a way to include reusable modules into classes without using traditional inheritance. Instead of extending a single parent class, you can mix in shared behavior across multiple classes using Ruby modules. This makes your code more modular, flexible, and easier to maintain.
Mixins are especially useful when you want to share functionality across unrelated classes, avoid code duplication, and keep your application clean and scalable. For example, you might create a module for logging, authentication, or payment handling and then mix it into different classes as needed.
👉 To dive deeper into how Ruby modules and mixins work, check out this detailed guide: Ruby Module
If you are using edge or chrome, do a hard reload in the browser. That fixed it for me.
Here's how to do that from How to Geek
Chrome, Firefox, or Edge for Windows: Press Ctrl+F5 (if that doesn't work, try Shift+F5 or Ctrl+Shift+R.)
Chrome or Firefox for Mac: Press Shift+Command+R.
Can you check related questions first
Have you found a solution?
Setting extendedLayoutIncludesOpaqueBars = true in my viewController doesn't work.
Is your viewController containing a UIScrollView? I discovered there's a subview of type _TtCE5UIKitCSo15_UIScrollPocket12BackdropView in UIScrollView, and by setting its backgroundColor to nil, the extra backgroundColor disappears, allowing content to extend behind the TabBar. But again, this approach feels too hack.
I tried to find where the backgroundColor was being set to an actual color value, but found nothing.
Strangely, my tabBarController has four viewControllers - three tabs exhibit your issue, but one tab's viewController has no occlusion and extends properly... yet I can't find any different property setting that would cause this behavior...
I don't have an answer, but which library are you using for force Atlas 2?
So i find out. I was executing the python from another path and as i used a ./ path to get the images it couldn't find it.
Chayim Friedman was correct in her comment.
Some years ago, I made a glossary plugin for Jekyll. It is not automatic as you describe, but still easy to use.
Check it out here: https://github.com/erikw/jekyll-glossary_tooltip/
you could've just const { id } = pb.collections("posts").create()
Common causes for this error include:
Direct text within a <View>: Placing text directly inside a <View> without wrapping it in <Text> components.
Whitespace between components: Extra spaces or newlines between JSX elements within a <View> can be interpreted as text nodes.
These are the common causes that error occurs.
You can check this link out because google gave this result to me. https://www.google.com/search?q=why+this+error+occured+in+react+Unexpected+text+node%3A+.+A+text+node+cannot+be+a+child+of+a+%3CView%3E.&oq=why+this+error+occured+in+react+Unexpected+text+node%3A+.+A+text+node+cannot+be+a+child+of+a+%3CView%3E.&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRiPAjIHCAIQIRiPAjIHCAMQIRiPAtIBCDc1NjRqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8
@snhou answer helped me figuring out a bug in FTPHost, it always defaults to port 21:
    class ImplicitFTP_TLS(FTP_TLS):
        port = 990
        _sock = None
        def __init__(self, *args, **kwargs):
            super().__init__(*args, **kwargs)
            self.prot_p()
        ...
Then you can do:
    fhost = FTPHost(host, user, pw, session_factory=ImplicitFTP_TLS)
I ran into the same issue with **Laravel’s `temporaryUrl()` and MinIO** that you’re discussing here.
To solve it, I built a small package: [hosni/laravel-temporary-urls-minio](https://packagist.org/packages/hosni/laravel-temporary-urls-minio)
It works like this:
* Laravel still works with your internal `AWS_ENDPOINT` (e.g. `http://minio:9000`).
* But it uses (`MINIO_PUBLIC_URL`) which you have defined in your `filesystems.php` config file as `temporary_url` to sign URLs.
* The result is a valid, signed, **publicly accessible** temporary URL that works with `Storage::disk('minio')->temporaryUrl()` or even packages like [spatie/laravel-medialibrary](https://github.com/spatie/laravel-medialibrary).
Installation is one line:
```bash
composer require hosni/laravel-temporary-urls-minio
```
Then just add:
```php
'temporary_url' => env('MINIO_PUBLIC_URL'),
```
to your disk config. After that, everything **just works**, no need to duplicate the S3 driver or rely on `/etc/hosts` hacks.
Full README: [https://github.com/hosni/laravel-temporary-urls-minio](https://github.com/hosni/laravel-temporary-urls-minio)
https://github.com/web3infra-foundation/mega is a monorepo & monolithic codebase management system that supports Git, it is designed to manage large-scale codebases, streamline development, and foster collaboration. Mono is an unofficial open source implementation of Google Piper.
Adding another source that could cause this issue:
In the module settings of the project -> module affected -> check if the folder of the classes that you want to import, are set as "source folder" multiple times.
If the folder is present multiple times IntelliJ will have internal conflict and will start to add the classes in the folder only by their fully qualified names.
Remove the voices of such folder until only one remains and then do a maven reload.
Now the classes should be imported correctly on top of the file.
There's no need to rely on Google Translator's Kit to batch translate HTML or PHP-coded files. A good approach is to extract your translatable strings into PO files, translate them with a proper translation memory tool, then rebuild your localized HTML or templates. This prevents your PHP tags or attributes from being altered.
**Option 1: Translate Toolkit (html2po / po2html)**
1. Extract strings to a POT template:
```
html2po -P src/ locale/templates.pot
```
2. Create a per-language PO file and translate:
```
msginit -i locale/templates.pot -l fr -o locale/fr.po
# translate locale/fr.po with your editor (Poedit, Virtaal, etc.)
```
3. Build the localized HTML:
```
po2html -t src/ locale/fr.po build/fr/
```
Repeat for each language. Your original HTML remains untouched; only new or changed strings need translating when you update your source.
**Option 2: po4a (PO for anything)**
This is useful when you have many files. Configure a `po4a.cfg`:
```
[po4a_langs] fr de es
[po4a_paths] locale/$lang.po
[type: xhtml] src/*.html $lang:build/$lang/%.html
```
Run `po4a-updatepo` to extract or update strings, then `po4a-translate` to produce localized HTML once translations are done.
**Best practices**
- Use UTF-8 encoding.
- Do not translate IDs, anchors or data- attributes. Do translate `alt` and `title` attributes if you need them localized.
- Keep your sentences well-formed so they extract cleanly.
- Test the output with a link checker.
If you prefer a hosted workflow instead of running tools locally, there are many translation management services that accept HTML or PO and preserve your tags. For example, Pairaphrase can import PO or HTML files, apply translation memory and glossaries, and then export localized HTML without stripping your PHP tags. Other platforms like Smartling, memoQ and Weblate offer similar features. The key is to use a tool designed for software translation rather than a general web translator.
from datetime import datetime
import pytz
from flatlib.chart import Chart
from flatlib.datetime import Datetime
from flatlib.geopos import GeoPos
# بياناتك
your_birth_date = '1996-06-06'
your_birth_time = '16:30' # 4:30 PM
your_birth_place = GeoPos('31.2653', '32.3019') # بورسعيد، مصر
# بيانات الشريك (نفترض 12:00 ظهرًا)
partner_birth_date = '1983-08-15'
partner_birth_time = '12:00'
partner_birth_place = GeoPos('39.9208', '32.8541') # أنقرة، تركيا
# إعداد التواريخ
your_dt = Datetime(your_birth_date, your_birth_time, '+02:00')
partner_dt = Datetime(partner_birth_date, partner_birth_time, '+03:00') # توقيت تركيا
# إنشاء الخرائط الفلكية
your_chart = Chart(your_dt, your_birth_place)
partner_chart = Chart(partner_dt, partner_birth_place)
# الكواكب المراد تحليلها
planets = ['SUN', 'MOON', 'VENUS', 'MARS', 'MERCURY']
# استخراج مواقع الكواكب
your_positions = {planet: your_chart.get(planet).sign for planet in planets}
partner_positions = {planet: partner_chart.get(planet).sign for planet in planets}
print("مواقع كواكبك:")
print(your_positions)
print("\nمواقع كواكب الشريك:")
print(partner_positions)
@Zegarek:
I'm using only one db, only one session, only one connection, so by PgAdmin and ODBC.
The function has the variable "doppie_ricette" declared locally, and this name is never used elsewhere.
The very problems are:
In the test cases, the query used in the cursor "doppie_ricette" never returns any row.
If I execute - like all the processing data before this procedure - in the PgAdmin environment, everything goes well, without errors; but if I do this in a PowerBuilder (12.6) program, doing exactly the same steps, when I call this procedure I obtain the error. The sequence of operations (INSERTs, CALLs) is obviously the same, and it's on a unique connection on the same PG 17 DB.
I have done only one direct setting of the ODBC connection: "SET CLIENT_ENCODING TO 'UTF8'", for the rest the configuration of the ODBC is the original one.
A
reportXmlFile value is " D:\Repos\<redacted>\<redacted>\<redacted>.ViewModel.Test\TestResults\dc51ad10-1170-46f2-8717-e0be4990e439\coverage.cobertura.xml". I did not notice the preceding spaces and this seems to have caused the weird behaviour, though I'm not sure why. Trimming the input string to remove the two leading spaces has the FullName property returning a complete path now.
If there are multiple handlers attached to the logger, following returns the file name from logger.
[os.path.basename(handler.baseFilename) for handler in logger.handlers if isinstance(handler, logging.FileHandler)]
There were some limitations with the official AWS Geo Library (one being it is now deprecated!), so I ended up going back to basics and doing this manually with geohashes. I've written up my approach with an example repo here: https://dev.to/ianbrumby/effective-handling-of-geospatial-data-in-dynamodb-1hmn
One of the possible reasons for PEP 517 error - library python3.x-dev not installed for the relevant python version.
According to the documentation TailwindsCss Margin, by default it has a limited values based on the most used spaces. But you can define your own theme.
And sometimes based on my experience with some PDF libs not all classes works. Try to use Style instead of class.
add the transform "...transform="rotate(180 1731 -1211)"" in your exsisting text dy next to font size. That should solve the issue.
Put an empty file in src folder to pydoc detecets your folders too.
main.py
src/
├── __init__.py   # Empy file
├─ cli.py
└─ ui.py
you can run this command in linux:
touch src/__init__.py
or create this file by gui.
Submitted:
# softly kill Finder
killall -SIGINT Finder
-> received error msg “No matching processes belonging to you were found,” but continued anyway with:
“sleep 0.3
# open Finder
open /Developer/Applications/Finder.app”
-> received error msg “The file /Developer/Applications/Finder.app does not exist.”
Thanks for any help you can provide to relaunch Finder.app without reboot! 🙏🏽
The answer which i came up with for my situation in the end was way simpler than i thought it was going to be, i just needed a password text input field so:
using BasicSecureTextField instead of TextInput which as parameter has textObfuscationMode = TextObfuscationMode.RevealLastTyped, this is definitately the preferred way of making a password input field for accessibility as well as all the inert functionality you would want in a password input field
I had the same problem, setting :autodetect="false" fix it
props: {
      language: 'javascript',
      autodetect: false,
      code: codeSnippet
    }
For me The issue was that I had only uploaded the production APNs Auth Key.
For development builds, you also need to upload the Development APNs Auth Key (.p8) from Apple Developer (sandbox key) into Firebase. Once I uploaded that as well, push notifications started working. That was the missing piece.
Get your keys from :
https://developer.apple.com/account/resources/authkeys/add
You can solve this using the flutter_device_apps plugin. It works on Android and lets you list installed apps, get details, launch them, open App Settings, uninstall, and listen for app changes.
You can solve this using the flutter_device_apps plugin. It works on Android and lets you list installed apps, get details, launch them, open App Settings, uninstall, and listen for app changes.
Can you pls help me to know how to pass header in EDIFACT request in Jmeter
HEADER_COOKIE...1...............EDIFACT.........................sender001recv....4382............000056449485...MDRES...........4334
Try this VideoSurface custom view:
import android.content.Context
import android.graphics.SurfaceTexture
import android.media.MediaPlayer
import android.net.Uri
import android.util.AttributeSet
import android.view.Surface
import android.view.TextureView
import android.view.TextureView.SurfaceTextureListener
/**
 * A [TextureView]-based custom video surface that wraps [MediaPlayer] for
 * lightweight video playback. This class allows playing looping videos inside
 * a Compose `AndroidView` or traditional Views without requiring ExoPlayer.
 *
 * Usage:
 * ```
 * val videoSurface = VideoSurface(context).apply {
 *     setSource(videoUri)
 *     setOnPreparedListener { mp ->
 *         // do something when ready, e.g. hide loader
 *     }
 *     setOnCompletionListener {
 *         // handle completion if looping is disabled
 *     }
 *     setOnErrorListener { mp, what, extra ->
 *         // handle error
 *         true
 *     }
 * }
 * ```
 *
 * Notes:
 * - Releases its [MediaPlayer] automatically on [onDetachedFromWindow].
 * - You must call [setSource] before the surface is available.
 * - Starts playback automatically once prepared.
 */
class VideoSurface @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyle: Int = 0
) : TextureView(context, attrs, defStyle), SurfaceTextureListener {
    private val mediaPlayer = MediaPlayer()
    private var source: Uri? = null
    private var completionListener: MediaPlayer.OnCompletionListener? = null
    private var preparedListener: MediaPlayer.OnPreparedListener? = null
    private var errorListener: MediaPlayer.OnErrorListener? = null
    init {
        surfaceTextureListener = this
    }
    /**
     * Sets the video source [Uri].
     *
     * Must be called before the surface is available for playback to start.
     */
    fun setSource(source: Uri?) {
        this.source = source
    }
    /**
     * Registers a listener to be notified when playback completes.
     */
    fun setOnCompletionListener(listener: MediaPlayer.OnCompletionListener?) {
        completionListener = listener
    }
    /**
     * Registers a listener to be notified when the video is prepared.
     */
    fun setOnPreparedListener(listener: MediaPlayer.OnPreparedListener?) {
        preparedListener = listener
    }
    /**
     * Registers a listener to be notified when an error occurs during playback.
     */
    fun setOnErrorListener(listener: MediaPlayer.OnErrorListener?) {
        errorListener = listener
    }
    /**
     * Releases the [MediaPlayer] when the view is detached.
     */
    override fun onDetachedFromWindow() {
        mediaPlayer.reset()
        super.onDetachedFromWindow()
    }
    override fun onSurfaceTextureAvailable(
        surfaceTexture: SurfaceTexture,
        width: Int,
        height: Int
    ) {
        val surface = Surface(surfaceTexture)
        try {
            mediaPlayer.apply {
                setOnCompletionListener(completionListener)
                setOnErrorListener(errorListener)
                setSurface(surface)
                isLooping = true
                source?.let { setDataSource(context, it) }
                setOnPreparedListener { mp ->
                    start()
                    preparedListener?.onPrepared(mp)
                }
                prepareAsync()
            }
        } catch (e: Exception) {
            e.printStackTrace()
            mediaPlayer.reset()
        }
    }
    override fun onSurfaceTextureSizeChanged(surface: SurfaceTexture, width: Int, height: Int) = Unit
    override fun onSurfaceTextureDestroyed(surface: SurfaceTexture): Boolean {
        surface.release()
        return true
    }
    override fun onSurfaceTextureUpdated(surface: SurfaceTexture) = Unit
}
You can solve this using the flutter_device_apps plugin. It works on Android and lets you list installed apps, get details, launch them, open App Settings, uninstall, and listen for app changes. About permissions, I don’t have information.
This will likely be possible through the clusterOptions directive. However, this depends on how the SLURM servers were set up, and if you can specify CPU types through the normal cluster submit commands.
If you can choose specific CPUs through a normal job submission, you can just add the relevant parameters to the process block. See the examples in the documentation link above.
I have found a lot of garbage in my application produced by proxy that is created around of lazy injected dependency. In my case it was a cause of 5% of total allocation rate.
I strongly do not recommend to fix cyclic dependencies via Lazy annotation in case of huge request rate on that dependency(in my case it was ~60000 per second).