Categories
Development Javascript

How can we add javascript file to the front-end of typo3 from extensions

I just wanna add my javascript file to be added while rendering the all front-end pages not the back-end pages. I have tried : if (TYPO3_MODE==”FE” ) { $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); $pageRenderer->loadRequireJsModule(‘EXT:eyebase/Resources/Public/JavaScript/testinjectEyebaseJS.js’,’code’); } but this code added my js file within the CDATA like:- <script type=”text/javascript”> /*<![CDATA[*/ /*RequireJS-Module-EXT:eyebase/Resources/Public/JavaScript/testinjectEyebaseJS.jse6fb06210fafc02fd7479ddbed2d042cc3a5155e*/ require([“EXT:eyebase/Resources/Public/JavaScript/testinjectEyebaseJS.js”], code); /*]]>*/ </script> Please guide me […]

Categories
Development

Convert Nested Loop to lapply

I am using two loops. In the second loop, I am incrementing value by 1 and then applying filter based on that and converting it to data.matrix so that matrix multiplication can be done in later steps. Is there any way to make it efficient using lapply, expand.grid or any other method? library(dplyr) xx <- […]

Categories
Development

gfortran loss of precision in mixed integer and real calculations

I’m working on porting some old Fortran code that used to run on an IBM AIX 4.3 machine (IBM XL Fortran). I’ve run in to the following calculation in the legacy code that produces the wrong answer when compiled with gfortran on an x86_64 machine running CentOS 7.7. ISCRATCH2 = ISCRATCH2 + (7 * (2.**16)) […]

Categories
Development

svg filter changes on leaflet ‘zoom’

I am trying to add some filters to some svg path’s in Leaflet, in order to show different “states” of an object, to alert the end user that something is wrong with that specific object. The issue I am having is the filter changes on zoom, when zoomed out (path gets smaller) the “glow” stays […]

Categories
Development iOS

Fetch request displaying response on iOS but not working with android

I am trying to send a response from a fetch request using React-Native for client-side and Node/Express for the server. Unfortunately, the value is only displayed with iOS emulator and not with android. I came across an article in github https://github.com/facebook/react-native/issues/24627 suggesting to add some code on the AndroidManifest file but it is still not […]

Categories
Development Python Website

Python requests to login website behind captcha

I want to log in an website https://eokulyd.meb.gov.tr/ and read some html from that. But the website has an control image, user must write number which is in that image. I know requests has Session class that allow us to log in websites, But when I use requests I cant take that control image. I […]

Categories
Development

MS Access – Age of record calculated field

I am new to Access but I have experience with Excel and Power BI. I could use a little help with what is probably a very simple problem for most of you. I searched for a simple solution to this same problem quite extensively before posting here. I tried adapting solutions for similar problems to […]

Categories
Development

“Unable to fetch row” error using QSqlQuery

I am trying to write a simple application using Qt and its SQL handling parts. I succeed in connecting to my DB, but I am unable to run any queries on it, whether they are SELECTs or INSERTs. (The database is developed using SQLite3) Here’s the constructor for the class handling the SQL parts: SQLHandler::SQLHandler(QObject […]

Categories
Development

Categorical variable categories being omitted

I’m running a random-effects GLS regression, clustered by individual with many observations at different dates. I’m using categorical variables in the regression, specified with i.varname. I’m getting an unexpected issue, where some categories are not mentioned: threshold >0 and <= 4 | 1.574371 .8262533 1.91 0.057 -.0450554 3.193798 >10 and <= 20 | 2.203031 .8691606 […]

Categories
Development

Need help for Decrement Number

I have a little questions I want decrement a number (-1) with PHP when the page is refresh. I want when the page is refresh it’s show my number in database and this Remove -1 of the number Example: In my database FROM Number WHERE ID (I want decrement -1 when page is refresh) So […]