backend

Are clean URLs a backend or a frontend thing

纵饮孤独 提交于 2019-12-04 05:34:05
What do you think.. are clean URLs a backend or frontend 'discipline' Kev If we're talking url's being 'clean' from an end user experience then I'm going to break the mould a bit and say that url's in general are not intuitive and they never will be, they are intended to be machine readable. There is no standard to the format of a url such that when navigating from site to site humans will never ever remember how to reach a resource purely through remembering urls and their 'friendly syntax'. We can argue the toss about whether using a '?' and '&' or '/' to express how how to identify a

Why do I suddenly have a bouncing Python rocket?

我只是一个虾纸丫 提交于 2019-12-04 03:49:33
Recently, I made a simple change to some matplotlib code I run on OS X (10.10; Python 2.7.6), commenting out a single line that set the backend I use #matplotlib.use('agg') Now, as long as my code is running, I get a bouncing Python icon in my dock, that presents no UI and only offers Force Quit... as an command: Generally dock icons that continue bouncing without any UI are a "bad thing". Why am I getting this and is it something I should be concerned about? Not a "bad thing". The icon appears in the dock when Python interacts with the GUI. Agg is a non-interactive backend. With agg you did

Add additional fields to Admin User under Customer shipping section in Woocommerce

断了今生、忘了曾经 提交于 2019-12-04 02:36:36
问题 In woocommerce, after creating and registering some custom account fields in a custom php file using the following code: <label for="reg_shipping_phone"> ... </label> <input class="..." id="reg_shipping_phone" name="shipping_phone" type="tel" pattern="[a-z0-9.-]{6,40}" title=" ... " placeholder=" ... " value="<?php esc_attr_e( $_POST['shipping_phone'] ); ?>" /> and in my theme's function.php file: //save on admin/&frontend on change add_action( 'personal_options_update', 'woo_save_extra

LLVM backend for stack based machine

孤人 提交于 2019-12-04 01:42:10
Does anyone know any example of an open source LLVM backend for a stack based machine? I need this for education purposes. The JVM is a stack-based virtual machine. VMKit was an open-source project of LLVM which implemented a JVM with a LLVM backend. The idea of VMKit was to create a toolkit for building virtual machines (or managed runtime environments) such as JVM, CLI/CLR, R's runtime etc. To find out more, see Nicolas Geoffray's PhD thesis . While the project is retired, the source code is still available . Also, Microsoft have released llilc which is a LLVM JIT compiler for IL/MSIL/CIL

web.py deployment for iOS app backend

一曲冷凌霜 提交于 2019-12-03 20:47:55
I am currently developing an iOS application that needs a backend to pull data from. I have implemented the backend using Python, web.py and pymongo. I deployed everything on an EC2 instance, assigned an elastic IP to the instance that the iOS devices call to access the backend, and launch the application through SSH by doing: nohup python main.py & Everything works fine (couple dozen users a day, with potential to grow; data transferred is rarely more than a few kilobytes), but I'm wondering if this is the proper way to do things. For instance on the web.py website, they explain ways to use

Making a language, need a good backend

左心房为你撑大大i 提交于 2019-12-03 16:15:58
I want to make a compiled language. I am currently evaluating backends. So far I am looking at C because of its speed of execution, compiling, and a small, easy to use compiler called TCC. Having read the discussions here about using it as an intermediate language, I am trying to think about how to make it compatible with garbage collection, and handling exceptions. So far, I think I can solve both, but with much overhead. Here are some of my thoughts on the other possible backends: Assembly: unportable and a total pain to program in. .NET: Feels really slow. 5 seconds to start up and 5

iPhone App with a Server Backend - How to ensure all access is from the iPhone app only?

不羁的心 提交于 2019-12-03 16:07:15
I don't mind so much about pirating etcetera, but I want to ensure that the backend (Rails based) isn't open to automated services that could DOS it etc. Therefore I'd like to simply ensure that all access to the backend (which will be a few REST queries to GET and PUT data) will be via a valid iPhone application, and not some script running on a machine. I want to avoid the use of accounts so that the user experience is seamless. My first intention is to hash the UDID and a secret together, and provide that (and the UDID) over a HTTPS connection to the server. This will either allow an

Yii: .htaccess and urlManager for separate backend and frontend

末鹿安然 提交于 2019-12-03 14:51:12
I'm having a hard time to configure my .htaccess and the urlManager in a Yii project to have the frontend in http://www.example.com and the backend in http://www.example.com/backend with the following folder structure. Any help is welcome. Thanks. /assets /backend /controllers /config main.php /models /views /common /models /protected /controllers /config main.php /models /views .htaccess backend.php index.php Solution: after the great help of @bool.dev everything it's working, so I'm adding here every needed final file. In the frontend I'm using path format for the url and hiding the index

Using amazon web services as google app engine back end

ぃ、小莉子 提交于 2019-12-03 13:41:00
I am currently using google app engine as my mobile application back end. I have a few tasks that can not be performed in the gae environment (mainly image recognition using opencv). My intention is to retain gae and use AWS to perform these specific tasks. Is there a simple way to pass specific tasks from gae to AWS? E.g. A task queue? You could either push tasks from GAE towards AWS, or have your AWS instances pull tasks from GAE. If you push tasks from GAE towards AWS, you could use URLFetch to push your data towards your AWS instances. If you prefer to have your AWS instances pull tasks

What are some useful SQL statements / usage patterns that should be known by all developers who may touch the Back end side of the project?

孤者浪人 提交于 2019-12-03 13:23:28
问题 What are some useful SQL statements that should be known by all developers who may touch the Back end side of the project? ( Update: just like in algorithm, we know there are sorting problems, shuffling problems, and we know some solutions to them. This question is aiming at the same thing). For example, one I can think of are: Get a list of Classes that are not registered by any students. (Outer join and check whether the match is NULL, or by Get from Classes table, all ClassIDs which are