Questions: page 8

2 votes
3 replies
How to add a “…” after a particular word/character limit in PHP?
I am working on a php code as shown below: <div class="case-breaking__content"> <p><?php echo the_title(); ?></p...
asked 4 months ago
3 votes
1 replies
pip always reinstalls zipped packages even if already installed
I am building a requirements.txt file to deploy a set of Python packages across my team via pip. I have saved the packages themselves on a local...
asked 4 months ago
0 votes
0 replies
hibernate ddl validation smallint vs int2
I have a legacy application that I want to upgrade to JPA. For local development and testing I have configured an H2 in-memory database, on the t...
asked 4 months ago
0 votes
0 replies
python problem with the import using eval()
I'm trying to import a module from different variables with eval, but I don't now why it doesn't work. nameImport = 'essai' eval('from '+nameImp...
asked 4 months ago
0 votes
0 replies
ChartJS - How to enforce space/padding inside the chart?
Consider the following: The max values of the chart to the right is reaching the top of the chart. How can we guarantee some margin between th...
asked 4 months ago
0 votes
2 replies
Yii2: How to add required attribute to a checkboxList?
I have this checkboxList: Html::checkboxList('MyOffices', null, $offices); It works but the user has to select at least one option. So I would...
0 votes
1 replies
How to improve cancel button behavior and make the close to work the same as cancel?
I'm setting a small window for set and update parameters of different modules in a web app, for this, I'm using a jQueryUI dialog that loads the...
asked 4 months ago
-1 votes
1 replies
How to limit transform.translate inside a sphere
I have sphere named Pointer that can move everywhere with transform.Translate() but i want this sphere can only move inside a half-sphere named L...
asked 4 months ago
0 votes
0 replies
bootstrap-table plugin Display Bootstrap custom checkbox in column selection dropdown
I've been using the bootstrap-table plugin and I would like the column selection dropdown to have the bootstrap custom checkbox style. Does anyo...
4 votes
1 replies
Processing: Arc code only creates circles. How to identify start and stop values correctly
I need to create an "arc" in this code. I've been working off some other code which successfully creates a circle, but I cannot understand how to...
0 votes
0 replies
Blank space at the end of the string is not considered space
I need to check if there is a blank space at the end of the editable div, however, as per the code below, if I add a space at the end of the edit...
asked 4 months ago
1 votes
1 replies
How to receive and map dynamic URLS using Prismic and Server Side Rendering
I have an app using Create Next App with SSR using the Prismic API as a content source. I am trying to create dynamic routes and running into a...
0 votes
1 replies
Possible to call action method (from action method) and let ASP.Net Core inject [FromQuery] params?
I have a route /my/route?t=something&... which is handled by an action method which then switches on t and calls an appropriate subroutine to...
asked 4 months ago
0 votes
0 replies
Are mouse coordinates different on mobile and desktop? [closed]
I've built a teleport system for my web3d environment, where you click with the mouse on the ground where you want to go and it will transform yo...
asked 4 months ago
-1 votes
1 replies
Google maps direction api with ajax
I am working on a small website that uses ajax and the google maps API to load directions. I have a DB that stores lat-longs of a few locations a...
asked 4 months ago
0 votes
2 replies
How to determine the highest value in a list of properties
I have a class such as this: class MyClass { public int Value1 {get; set;} public int Value2 {get; set;} public int Value3 {get; set...
c#
asked 4 months ago
0 votes
0 replies
Multiple bullets in my alien_invasion program are not firing when I press the space bar
Bullets are not firing from my spaceship when I attempt to run my alien_invasion python program I created 6 files, but I only will list four of...
asked 4 months ago
0 votes
0 replies
Toolbar not visible after setting jupyter notebook theme
The toolbar and notebook name does not show when I call and load the themes from the notebook. I can load the themes from notebook using a code...
asked 4 months ago
0 votes
2 replies
Concatenate and aggregate json object data with node.js
I generate the following json in my Node application: [ { id: 1, name: 'user1', sport: 'athletics', medal_count: '1'...
asked 4 months ago
0 votes
1 replies
How to lazy load Angular module without CLI?
I have yet to find this specific use case described any where. If it exists, please refer me to it. I would like to achieve lazy loading of Angu...
asked 4 months ago
0 votes
0 replies
How can we find the Upper and Lower bounds of Spearman Correlation
function[R,P,RLO,RUP]= corrcoef(a, b, 'alpha', 0.05) is used for pearson correlation coefficient, how to find the upper and lower bound for spear...
asked 4 months ago
0 votes
0 replies
Corrupt XLSX file after download via axios
I try to create an XLSX file in a Vue application with axios. I do this: First I send a post call to the backend controller: return axios({...
asked 4 months ago
1 votes
1 replies
Which Visual Studio Code extensions add these options/icons to the sidebar?
I saw on a video presentation about TypeScript this icon in Visual Studio Code: It looks like a git extension, but which extension is that? I...
asked 4 months ago
0 votes
1 replies
ASP.NET MVC 4 2-factor authentication
I'm working with legacy MVC 4 app and I'd like to add 2fa to it. App uses WIF and old Thinktecture Identity server for authentication. Do I hav...
0 votes
1 replies
How to efficiently replace one set of values with another set of values in data.table?
This is a typical situation, when you have two datasets, in which the same observations are named differently, and you need to rename one of them...
asked 4 months ago