search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

P粉787806024

P粉787806024

Follow
student

Follow 0
fans 0
integral 0
Checking for NULL pointer in C/C++ [closed]

In a recent code review, a contributor is trying to enforce that all NULL checks on pointers be performed in the following manner: int * some_ptr; // ... if

2026-01-05 08:43:20Ask
C++
How do I read from stdin?

How do I read from stdin? Some code golf challenges require using stdin for input.

2026-01-01 17:01:12Ask
Python
What does ~~ ("double tilde") do in Javascript?

I was checking out an online game physics library today and came across the ~~ operator. I know a single ~ is a bitwise NOT, would that make ~~ a NOT of a NOT, which would give back

2025-12-10 14:22:09Ask
JavaScript
Linux Bash: Easily delete HTML table data blocks

I have an html file that is processed using a bash script and want to remove empty tables. The file is generated from the sql statement but contains headers when no record is found. I want to delete the title for which no record was found. <tableborder="1"><caption>Tablewithdata</caption><tr><thalign="center">type&lt

2024-04-02 09:13:43Ask
HTML
Return component in beforeEnter in vue router

I have the following path in my router {path:'/Page',component:async()=>{constisUserLogged=awaitgetUser()conststore=useStore()if(userLogged&&store.value1){returnimport('./pages/PublicPage/PublicPage .vue')}else{returni

2024-01-10 17:51:45Ask
Vue.js
Why MySQL slows down without specifying an index

I'm trying to optimize a SQL query but I'd like to know how to do it correctly. SELECTr0_.*FROMrider0_useindex(ride_booking_id_IDX)LEFTJOINbookingb1_ONr0_.booking_id=b1_.idLEFTJOINspots2_ONr0_.from_spot_id=s2_.idLEFTJOINspots3_ONr0_.to_spot_id=s3_.idWH

2023-09-08 00:38:24Ask
MySQL
Access javascript window variables in Puppeteer

In my Puppeteer script, I use File JS to execute before loading the page: constpreloadFile=fs.readFileSync('./file.js','utf8'); constid=awaitpage.evaluateOnNewDocument(preloadFile); file.js contains: consti=setInterval(()=>{if(window.turnstile){cle

2023-09-04 23:32:41Ask
JavaScript
Solution to the memory usage problem caused by upsertMany in Nest.js

There is a scheduled task that is executed every 5 minutes when using upsertMany to insert a large amount of data. I found that the memory increases every time a task is executed and the GC cannot reclaim the memory. How can I solve this problem? Using nestjs, @mikro-orm/nestjsthis.emBi.upsertMany(SingleOrderSales,saveArry)

2023-08-15 23:04:41Ask
JavaScript
I have two different data coming from javascript and I want to display both data in the same cell in the same row

I have two different data coming from javascript and I want to display both data in the same cell in the same row

2023-07-22 16:17:09Ask
HTML