Questions tagged [backend]

-2

votes
1

answer
18

Views

Where should I start to develop the backend for iOS native applications?

I started the team project to make iOS native application. I studied for node.js and Express for web development before. But I don't know where to start for building up for the backend server. Can I use nodejs or need other languages? And is there any guideline for this same situation?
Park
1

votes
1

answer
56

Views

On Octobercms inject CSS from Partial

I try to inject Javascript and Css from partial using this: function onStart() { $this->addCss('assets/css/style1.css'); $this->addCss('assets/css/style2.css'); $this->addJs('assets/js/javascript1.js'); $this->addJs('assets/js/javascript2.js'); } On my layout i'm using {% styes %} and {% scripts %},...
Haral
0

votes
0

answer
9

Views

How to route a new component in “Pages - Admin Dashboard Template” in AngularJS

I am trying to implement a new 'notification' component in the registration page and am currently getting an error in the inspect console stating: 'Uncaught Error: Template parse errors: 'app-notification' is not a known element:' I have tried placing the 'app-notification.../app-notification' in m...
Angello L.
1

votes
1

answer
1.6k

Views

Magento 2 / Custom Config Field Array Mapping

hope your will have the time to help me. On any circumstances my Magento 2 Array Mapping will not write selected='selected' to my field. Getting crazy about this. The Data will be saved and fetched correct. Big thanks to your help. Version: Magento 2.2.2 /app/code/Sumedia/Switcher/Block/Adminhtml/Sy...
Sudo
1

votes
0

answer
61

Views

Using Google Drive access token from multiple devices

Today - Users' Google Drive access tokens - which are obtained when a user authenticates the app - are kept in my backend, linked to the authenticated user. So when a user authenticates once from any platform - he will have the same Google Drive access from any other platform or device he uses, sinc...
Dror Fichman
1

votes
1

answer
37

Views

How to design an advertisement picture on pop-up? [closed]

I want to design a stuff that can do this: display a picture on a html, which I already did, I did it in the vue-cli. By uploading a image from another site which can send this image to back end in the database, display the newest image that you upload, or using something like changed once a day. So...
Zecheng Li
1

votes
1

answer
23

Views

how to update an attribute by passing generic variable through body parameter using expressjs

I'm creating a restful API for blog application. I have to update an attribute of a blog using postman. The object in the database of which an attribute has to be updated looks something like this: { '_id': '5a5306a9432f7b12f6e77a21', 'title': 'new article', '_author': { 'username': 'linuxuser' },...
Salmaan shaik
1

votes
1

answer
40

Views

PDF/PNG export feature for Web Editor

Recently my company pass me a web-based graphic editor project to handle, where the content inside the editor can be moved, rotate, resize, masking, change font ... etc So far, i was able to handle most of the client side feature. However, i stuck on those exporting PDF/PNG feature which give me a l...
Hunter Wei
1

votes
0

answer
400

Views

React and Swiper — Items not fully rendering in slides

I'm using this package to generate a swiper of dynamic slides with content from an external API. I can get the content to generate outside of the swiper no problem, but once it needs to render within the swiper, I can see the first item, but can't use the arrows to navigate to the different slides (...
bluebrooklynbrim
1

votes
0

answer
42

Views

I cant connect my Rewards app to the backend - doesnt login

I Bought this app Called Sensible Mobi Rewards Network - But the support is terrible, anyway, I setup the admin panel here: http://Skilled.ga/Wallet/index.php The GlobalVariables File : package com.commonutility; public class GlobalVariables { // http://www.archiveinfotechdevelopers.com/developers/w...
Angel
1

votes
1

answer
37

Views

How to import path of api.php in frontend

Here is one sample post request which is in script.js.I want to send data from this request and store in beckend.So i have created api.php file which has All routes associated with controllers. In api.php , My reqeust route is.. Route::post('/task/create/{task_id}','[email protected]'); Request...
Dhruv Koshiyar
1

votes
0

answer
251

Views

Refresh page after update $hasMany relation

I have a form model with $hasMany relation manager in backend (display with relation_render method). When i update the relation model, i update too a parent model attribute public function afterUpdate() { // update related model $related_model = Related_model::find($this->related_model_id); $related...
pat-och
1

votes
1

answer
201

Views

Hide general and shipping details when adding a new order in Woocommerce admin

In the admin page when you press 'add new order' there is General Details, Billing Details and Shipping Details: I would love to hide some these with CSS. I've tried all day but have been able to achieve this unsuccessfully. I just want to keep the Billing details visible. Is that possible?
Totte Forstén
1

votes
0

answer
23

Views

Checkbox: what value store in database?

I'm developing an app with Laravel. I've a form with a checkbox input and I know that the checkbox input by default sends value on and if it's unchecked it sends nothing. So I'm asking, what value I have to store in database if it's checked and what if it's unchecked?
Fred K
0

votes
0

answer
23

Views

What is the best solution to serve from multiple API's on a PHP backend?

I'm building an API with Laravel's Lumen and I've realized that the main task of my API will be to serve data from other API's. I really don't know which one is the best approach to get the best performance on this. I came up with two solutions: Everytime a user makes a request, I call the different...
seergiue
1

votes
0

answer
74

Views

Octobercms : Using rtl language as part of the url

I'm trying out octombercms for a project. As shown in the attached screenshot, I'm trying to create a static page using 'Rainlab.Pages' plugin. Content language is going to be Hebrew (which is rtl). When I try to save it shows an error 'Invalid url format, url should start with / and should contain...
sanandrl
1

votes
0

answer
106

Views

How do I set the keras backend in python dynamically when loaded using supervisor

How do I set the keras backend in python dynamically when loaded using supervisor?. When I load the python file using supervisor, the environmental variables seem to override the backend setup in the below code. from keras import backend as K import os os.environ['KERAS_BACKEND'] = 'theano' reload(...
1

votes
0

answer
212

Views

October cms blog plugin: How to update component when the button is clicked

description = 'Display Blog list' [viewBag] snippetCode = 'post-list.htm' snippetName = 'Display Blog list' snippetProperties[heading][title] = 'Heading' snippetProperties[heading][type] = 'string' snippetProperties[heading][default] = 'News & Events' snippetProperties[heading][options][] = '...
Ron Ogrimen
1

votes
0

answer
31

Views

Is it safe to crypt 2FA seed with the user password on a server

The main question is: how to safely store 2FA TOTP seeds on a server. Assuming I store all user information in the table in DBMS. I want to protect user data against the case when the whole database is stolen. User password is hashed and salted, but I can not do the same for the 2FA seed. I have th...
user2517908
1

votes
2

answer
1.1k

Views

authentication with only username (id) in laravel

I'm creating a Laravel project where i would like to add authentication based on only a username or ID. the point is that you can connect your client to a device with a certain ID. Goal: i go to the page, type the ID of the product i'm holding and the device gets logged in on the products account. i...
Baksteen-13
1

votes
1

answer
40

Views

Beginner NodeJS Questions. “Create a download for a user” and avoid multiple same server calls

I recently started to get into web programming and I started to learn NodeJS. It's a bit overwhelming at the moment, so I thought I could ask here for an enlightenment. Basically my main goal is to create a page, where a user can input specific data and click a button. Based on the data the user...
KageyashaX
1

votes
0

answer
39

Views

how to logout all old session when new session created in WSO2 IS?

We're using WSO2 Identity Server for our web and mobile application. we need to have only one session at a time like if user login on device A and then try to log in to device B using the same credential the old session should get logged out. Right now wso2is give session access to both the devices....
Haneet Singh
1

votes
1

answer
252

Views

Show in Woocommerce admin orders list the username that has completed the order

In woocommerce how to show in admin order list which user has mark as 'completed' the order like in this screenshot:
X - Developer
1

votes
0

answer
57

Views

Devise reset password notification via SMS

I'm currently stuck figuring out how to send the reset password notification via sms instead of email to a phone number. We have allowed email to be null, as users may sign up with out an email but phone number is compulsory. Would really appreciate some advice on this.
Purry
1

votes
2

answer
71

Views

Is it possible to create new fields using django admin page interface?

Is it possible to create and delete new charfields or textareas through the Django admin page without harcoding them? For example, I have a simple model, registered in Django admin page class DocumentList(models.Model): title = models.CharField(max_length=200) def __str__(self): return self.title Ob...
Vlad Shlyanin
1

votes
1

answer
311

Views

Create folder on FTP server with PHP

I use Current PHP version: 7.1.4 for Ionic2 application back-end. I'm trying to create folder on my ftp server. With direct link to php file http://site/php/directory.php echo is Successfully created images After this, folder images does not exist in directory, and with second link to php, message...
zrubi
1

votes
0

answer
113

Views

Mobile app with Spring backend

I'm developing a Spring Boot project to serve a web site and a mobile app. The web site is developed using ReactJS and the mobile app uses React Native. My concern is how the mobile app will communicate with the back end: Do I need to write 2 different APIs? one for the web site that uses Spring Sec...
user2490936
1

votes
0

answer
23

Views

Send column names from client to server for sorting data, but the client has camel case data but the server needs Pascal case data

I have to send column names from client to server for sorting data in a data table, but the client has camel case data and the server needs Pascal case data as the database columns are in pascal case. I can either process the data at client side before sending or do it at the back-end. What is the b...
Yeshwant Parab
1

votes
0

answer
41

Views

Bare git repo not cloneable after commit pushed

I have a problem with own git server on which I only use the git-http-backend. I discover that after I create the empty repository on the server with this: git init --bare I can clone the empty repo on any host with any user, git clone https://example.com/nameOfRepo.git but after I make a change t...
Psottek
1

votes
0

answer
46

Views

Typo3 link from email to backend module

So my goal is that an admin can accept/reject an order by clicking on an email link. I developed a module to accomplish this, still after login the user gets redirected to the backend home page.
João Cunha
9

votes
4

answer
334

Views

Monolithic + MicroServices

Right now I need to know exactly how can I instantly deploy a micro service based backend when needed? I can manage all the integration of technologies by myself but when it comes to hosting on AWS its just impossible for me to get those many instances and it is just impossible to afford right now....
Nikola Tordoof
1

votes
0

answer
43

Views

How to query python class data while it is in loop

Simple example of class which goes into loop class L: def __init__(self): self.data = [] self.current = 0 self.loop() def loop(self): while True: self.data.append(self.current) self.current += 1 time.sleep(2) if __name__ == '__main__': obj = L() How is it possible to access obj.current? Is it possib...
Nick
1

votes
0

answer
74

Views

Import csvfile into mongoDB at real time

How do I automatically import new/incoming .csv files from a folder through a server into mlab (at real time , not in cmd line)? How do I use it in an Express.js project?
1

votes
0

answer
502

Views

MongoDB PHP Driver “No suitable servers found”

I'm installing a MongoDB on Debian 9 but when I try to connect 'No suitable servers found (serverSelectionTryOnce set): [connection refused calling ismaster on '127.0.0.1:27017']' is raised. The machine runs Debian 9 PHP PHP 7.0.27-0+deb9u1 MongoDB Version 3.6.5 MongoDB database driver 1.6.16 (s...
Mattia Scagno
1

votes
1

answer
47

Views

Security concerns using Spring as backend for mobile app

Me and a team built a small 'meet people' app last semester that used Spring linked to a MySQL database as the backend. I am working on my own app now and I'm worried about security because all of our user information was sent over HTTPS GET requests to the server. It seems weird to me that we were...
Tevedeh
1

votes
1

answer
397

Views

Error in mapper_parsing_exception on ElasticSearch

The server is started on port 3000. Error creating mapping[mapper_parsing_exception] No handler for type [string] declared on field [category] :: {'path':'/products/_mapping/product','query':{},'body':'{\'product\':{\'properties\':{\'category\':{\'type\':\'string\'},\'name\':{\'type\':\'string\'},\'...
Rohan Shenoy
1

votes
0

answer
37

Views

How can I handle the file download from Loopback storage? Redirect the file request

Here is what I want to do: When user's browser is trying to download any file (image or else) I want to handle it and check if file exists in local file system. If the file doesn't exist I want to pass the browser the file from another source (AWS S3 for example). How can I do this? I've tried to...
through.a.haze
1

votes
1

answer
342

Views

Sequelize “WHERE” Clause in subqueries

I'am trying to build my query using sequelize, in the where clause I need to give the conditional value from my front-end so i did it like this : getResults(req) { return parm .findAll({ attributes: [ sequelize.literal('DISTINCT 'id'') ], where : { name: req.query.parm.replace(/'/g, '').split('...
sevenfold
1

votes
0

answer
332

Views

How to use Traefik as autorotating forward proxy

I know that Traefik is manly used as a reverse proxy, but I would like to use Traefik as a autorotating forward proxy similar to the following projects: free-proxy-rotator rotating-proxy The basic idea is that I have a list of proxy IPs and would like to configure Traefik to autorotate all incoming...
1

votes
1

answer
58

Views

systemStackError using ruby on rails

i created a little project using ruby on rails 5. I want to create an index page for show Thesis records. So i wrote: def index respond_to do |format| format.html format.json { render :json => Thesis.all } end end this method should show thesis records like html and like json, but while like html i...
andresca

View additional questions