search
  • Sign In
  • Sign Up
Password reset successful

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

P粉470645222

P粉470645222

Follow
student

Follow 0
fans 0
integral 0
if else in a list comprehension [duplicate]

I have a list l: l = [22, 13, 45, 50, 98, 69, 43, 44, 1] For numbers above 45 inclusive, I would like to add 1; and for numbers less than it, 5. I tried [x+1

2026-01-19 22:23:07Ask
Python
Prevent Caching in ASP.NET MVC for specific actions using an attribute

I have an ASP.NET MVC 3 application. This application requests records through jQuery. jQuery calls back to a controller action that returns results in JSON format. I have not been a

2025-12-18 19:22:06Ask
C++
Making changes to multiple records based on change of single record with SQL

I have a table of food items. They have a "Position" field that represents the order they should appear in on a list (listID is the list they are on, we don't want to re-order items

2025-12-08 10:43:13Ask
MySQL
Speed ​​up Mysql queries during batch updates

I need to update records like updatetableabcsetmarks='15'whererollno='432423'andpcode='ABC234'; for nearly 10,000 queries. My table has 1,00,000 records. I need to update 10,000 records. It takes hours how can I speed it up. I'm using INNODB any way to speed it up.

2024-03-27 11:41:12Ask
MySQL
Returns the total value specific to the user when the user is logged in

As the title says, I'm trying to get specific data from the user when they are logged in and aggregate all the data and then return the aggregated data. I tried using the $match function but no luck. What's frustrating is that I'm able to successfully return all the data in the object array. More specifically, the following code runs successfully and returns an array of objects: construns=awaitRun.find({user:req.user.id}) but this code does not, it returns an empty array: constcumulativeTotals=await

2024-03-22 12:45:30Ask
JavaScript
Driver not found on PDODb on Apache2 PHP 7.4

I use Ubuntu22.04 and php7.4. I try to use apache2 to provide a virtual host for my website. The login page can be opened. After we insert the account, the error shows couldnotfinddriveron/var/www/website/app/models/PDODb.phponline229thatlineis$this->pdo=newPDO($connectionString,$this->connect

2023-09-15 14:55:04Ask
MySQL
Line breaks in HTML are '\n'

Is there a way to make HTML handle \n newlines correctly? Or do I have to replace them? <divclass="text">abcdefghi</div>

2023-08-27 11:42:20Ask
JavaScript
Create multiple brush charts using VueJs and Apexcharts

I'm developing an application in which I create a brush chart using apexcharts. However, I would like my brush to control multiple charts, not just one, like shown in the example. Before I start using the callback function, I'd like to know if there's an easy way to achieve this via the library, for example by passing an array of targets: brush:{target:'chart2',enabled:true}, Thanks in advance,

2023-08-26 20:17:05Ask
Vue.js
PHP fatal error cannot open required file

I get the following error from Apache [Sat Mar 19 2011 23:10:50] [WARNING] mod_fcgid:stderr: PHP fatal error: require_once() [function.require]: Unable to open required '/common/ configs/config_templates.inc. php'(include_path='.:/usr/share/pear:/usr/share/php') is located in /

2023-08-23 19:46:43Ask
PHP
How to fill an array with JSON objects?

I have a file parts.json which is a JSON file containing an array of objects representing some vehicle spare parts

2023-07-20 12:47:05Ask
PHP