backend

Android chat application guidance using Parse and PubNub

為{幸葍}努か 提交于 2019-12-09 12:53:55
问题 I am trying to create a simple Android chat app where a user can sign up and have a friends list to start conversations. I am planning on using Parse for the database backend and PubNub for the actual chat channels. I do not have much experience with this kind of an App. I have an idea of what needs to be done but just wanted an opinion from someone who has some experience. Here is the model that I am planning to implement: The User profile info collected on sign up page will be stored in a

Making a language, need a good backend

梦想的初衷 提交于 2019-12-09 12:33:45
问题 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:

Yii: .htaccess and urlManager for separate backend and frontend

半世苍凉 提交于 2019-12-09 12:29:59
问题 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

“500 - An error has occurred” in Joomla, when attemping to login in backend

一笑奈何 提交于 2019-12-09 06:46:06
问题 When I attemp to login in the backend using the right login of the Super User i get an error page "500 - An error has occurred." I have changed the Super User password by PhpMyAdmin and the error remains. I have installed Joomla 2.5 installed. 回答1: First you have change folder permission to 775 for the following folders: cache, logs, tmp & administrator/cache Then go to: configuration.php find code: $log_path = 'XXXXXXXXXXXXX'; $tmp_path = 'XXXXXXXXXXXXX'; and change code into: $log_path = '.

CodeIgniter and HMVC questions

ぃ、小莉子 提交于 2019-12-09 05:59:53
问题 First of all, sorry for any convenience caused by this post because this is the first time I post a question here and I need more time to get used to with this. Q1. I want to create 2 "master controllers" for FrontEnd and BackEnd like this: MY_Controller extends CI_Controller FrontEnd extends MY_Controller and all frontend controllers will extend FrontEnd . BackEnd extends MY_Controller and all backend controllers will extend BackEnd . What's the best way to do that with HMVC (MX)? Thanks

How to handle message that failed to response success, but success commit to database

末鹿安然 提交于 2019-12-08 20:55:30
I have some question about handling message that failed to response success, but success commit to database. The design that I think is for guarantee processing message once. Following sequences are step for handling. Question is included on statements with ★ 1) Fetch message from Message Queue -> When failed after this, MQ will timeout & retry 2) Cache.SetIfNotExist(MessageId, MyId, Timeout) ProcessingTime < Cache.Timeout < MQ.Timeout * This make ownership for message -> When failed after this, Cache will timeout and MQ will timeout & retry 3) Processing Data include read storage * All of

make a new product active by default in magento

微笑、不失礼 提交于 2019-12-08 09:45:32
问题 When duplicating a product in the backend in magento the new product status is Disabled by default. That confuses the store admins who expect the product to show on the frontend. How can I make the product status Enabled by default? THanks 回答1: In your custom module you need to: in config.xml file: <config> <adminhtml> <events> <catalog_model_product_duplicate> <observers> <custom_catalog_product_duplicate> <class>custom_module/observer</class> <method>catalogModelProductDuplicate</method> <

Flowjs file upload - AngularJS and Node

时间秒杀一切 提交于 2019-12-08 08:53:56
问题 I am using Flowjs, and its ng-flow directive to upload file with NodeJS as backend. When i try to upload file, only file in tem folder is uploaded, but it's note any type of file like JPG or PNG. (flow-135601-juicy_gustinektar02l_10185jpg.1). Here is code: ANGULARJS app.config(['flowFactoryProvider', function (flowFactoryProvider) { flowFactoryProvider.defaults = { target: 'http://localhost:8086/api/upload/', permanentErrors: [500, 501], maxChunkRetries: 1, chunkRetryInterval: 5000,

How to handle message that failed to response success, but success commit to database

荒凉一梦 提交于 2019-12-08 08:41:17
问题 I have some question about handling message that failed to response success, but success commit to database. The design that I think is for guarantee processing message once. Following sequences are step for handling. Question is included on statements with ★ 1) Fetch message from Message Queue -> When failed after this, MQ will timeout & retry 2) Cache.SetIfNotExist(MessageId, MyId, Timeout) ProcessingTime < Cache.Timeout < MQ.Timeout * This make ownership for message -> When failed after

Add custom page to admin menu visible only to editor users

点点圈 提交于 2019-12-08 06:08:56
问题 I want to build a custom assign management and display its results in the wordpress backend. I added a new admin menu item like this: add_action('admin_menu', 'register_custom_menu_page'); function register_custom_menu_page() { add_menu_page('Approval', 'Approval Management','add_users', 'manage_approval.php', '','images/check.gif',86); } this is working fine with admin login but i need this to show when editor gets logged in. Please let me know the correct solution. Thanks 回答1: The third