android,google-app-engine,mobile,backend,google-cloud-storage
MBS is primarily to let you store and access your data in datastore, directly from devices, without necessarily having your own server process. For a streaming service, you will need to have a server process. Best way is to store files with full control, is to use BlobStore and use...
javascript,html,css,web,backend
If you want to extract data from website that is already in use, Web Scraping is need to be done. It can be done using PHP or any other language. You can read more about it at https://en.wikipedia.org/wiki/Web_scraping. If you want to make your own website with putting your own...
java,php,android,session,backend
Why use something similar to php sessions? use php sessions instead! session_start(); $sess_id = session_id(); Give this id to your client, and make sure it appears in every requests the client application makes to your server. Here is how you load a session by id : session_id("your_client_session_id"); session_start(); Basically it's...
This should be a comment, but its a bit long.... header("Cache-Control: cache, must-revalidate"); // HTTP/1.1 Should be.... header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 And... $sql = "INSERT INTO cy_user_accounts (account_id,device_uuid,name_first,name_last,gender, username,password,pin,email,do_birth,do_reg, address_1,city,country,phone_home,phone_mobile,last_login_date, account_status,emailVerified,tokenClient,tokenAdmin, tokenExpires,tokenVerify) VALUES...
magento,login,admin,backend,magento-1.9
If everything works on the front end like you said, and you just can't log into the admin, most probably you have the original adminhtml cookie pointing to your original domain, (www.site.com) and an extra adminhtml cookie for your development domain (subdomain.site.com). In Chrome, in Developer Tools (right-click on any...
Well, basically what this is doing is querying sth. similar to the following: -- note that i dont know you schema so the identifiers of the tables and columns -- can be inceorrect, but you should get the idea SELECT DISTINCT(promio_summaries.id) FROM users, promos, promo_summaries WHERE user.id = $user_id --...
Magento system configuration fields are generated from system.xml. We can create system.xml file for each module, but we need to place that in app/code/local/namespace/module/etc/ Refer this Link to know more about this...
This is why I love Parse.com, they make it so easy for devs. STEP 1 Set up your parameter in your config admin view of Parse.com. For images you have to make sure it's set as a PFFile, and name it according to your needs. STEP 2 Implement the getConfigInBackground:...
Swift should be able to use all available Objective-C web frameworks, and there's an interesting historical connection to WebObjects, but there are a lot more resources out there for developing web applications with Java, C#, Ruby, JavaScript, and Python.
Yes, you should set [securityPolicy setAllowInvalidCertificates:YES]; when using self signed certificates. And correct; you should use NO with trusted certificates. You are likely still getting the error when it is set to NO because a part of your certificate chain is not trusted. Try using an app called SSL Detective...
you can make a json call from your app to a url and have a script or file in your website that returns the information you want, this will make it easy to change it in future. then use the same script as the basis ( again using a json...
java,multithreading,backend,server
It seems that you are looking implementation of thread pool. Fortunately JDK has one built-in. Take a look on Exectutors framework.
ios,parse.com,social-networking,backend
Parse is built to be scalable, so the most likely obstacle you face will be designing your data model. If you have a SQL background (or if you build your backend in SQL), your backend will be more likely to suffer from scalability issues. Social services like twitter do not...
mysql,ruby-on-rails,json,backend
It's better to choose a database backend if you are going to build a Rails application. If the data should be structured in JSON, you may choose Mongodb which is very popular solution for noSQL backend. If the game is designed with traditional structure, MySQL and Postgresql are all very...
It depends. It will be written to your STDOUT channel. According to how your crontab is configured, you'll will or will not see this message. Crontab output can be send to the void (/dev/null), but can also be mailed to you, or can be in a log. This has nothing...
By default, the GridFieldAddExistingAutocompleter displays the $Title of the result. If you don't have Title or Name field, this defaults to #$ID, as you're seeing. You can either add a getTitle method to your class that returns what you want, or change what gets returned by the component. You'd do...
php,email,magento,backend,magento-1.9
please check the codes below. any way this is my first answer on stackoverflow. $templateName = "Tests"; $templateID = Mage::getModel('core/email_template')->loadByCode($templateName)->getId(); ...
java,admin,alfresco,backend,runas
To detail the answer from Krutik, you should wrap code in a runAsSystem block like this: final permissionService = serviceRegistry.getPermissionService(); //Read the username of the current user final String loggedInUser = authenticationService.getCurrentUserName(); ChildAssociationRef childAssociationRef = nodeService.getPrimaryParent(actionedUponNodeRef); //Get the parent NodeRef NodeRef parent = childAssociationRef.getParentRef(); String fileName = (String) nodeService.getProperty(parent, ContentModel.PROP_NAME);...
You need to reference the static var with self:: if (is_null(self::$instance)) { self::$instance = new MiteDAO(); } return self::$instance; http://php.net/manual/en/language.oop5.static.php EDIT You have errors in your main script: Fatal error: Cannot use [] for reading in /project/read.php on line 26 If you're trying to create an array, you need to...
typo3,backend,extbase,typo3-6.2.x,typo3-extensions
If I understood well you are asking for ContentElement preview. You need to use cms/layout/class.tx_cms_layout.php hook for this, here's quite nice gist just two additions: don't use t3lib_extMgm class it's removed since 7.x you can register this hook just with: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] = 'EXT:your_ext/Classes/Hooks/PageLayoutView.php:\Vendor\YourExt\Hooks\PageLayoutView'; Depending on how did you register the...
email,magento,order,translation,backend
This phrase is contained in Mage_Sales.csv. However, it could be overridden by A theme translation. Check app/design/adminhtml/default/default/locale/it_IT/translate.csv or if you have a custom admin theme, look there instead of default/default. An inline translation. These are stored in the database table core_translate ...
You can start with this for setting up registration/login system through server: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/...
If you want to do it the proper way, you should use FAL for file uploads instead of handling it yourself completely. There is an elaborate post about FAL upload with Extbase by Helmut Hummel, to be found here. Helmut also provided a demo extension as a proof of concept,...
To have a functional HAProxy setup you would need either 'frontend' or 'listen' directives. These are the only directives that will respond to incoming requests. The 'backend' directive only provides for a way to route traffic behind the proxy. That being said, here are the entries you need in a...
php,mysql,function,mysqli,backend
It worked its all good. Had to edit a major part of the code for it to work. <?php session_start(); include_once ("views/header.php"); include_once ("classes/functions.php"); $db = new connection();//instance of connection class $userid = $_SESSION['userid']; $body = substr($_POST['body'], 0, 140); $con = $db->get_connnetion(); $insertCount = add_post($con, $userid, $body); if($insertCount > 0...
visual-studio,azure,backend,azure-mobile-services
You can't just host the Azure Mobile Service template in another hosting provider. This template has many dependencies on the Azure Mobile Services SDK and Azure features, such as Tables. using Microsoft.WindowsAzure.Mobile.Service; using Microsoft.WindowsAzure.Mobile.Service.Tables; This template is based on an ASP.NET Web API template so you might be able to...
php,mysql,rest,database-design,backend
In events table i would store additional unique slug (created on event save action). f.e. "Some great event" has slug "some-great-event". If the slug is not unique then additional distinction is needed f.e. "some-great-event-2". You use the slug to prepare a link and as an identifier to query database record....
ios,ios8,push-notification,backend
Use push notifications is the better way to achieve your goal. Here's the steps: 1.Data added from another app to the db in your backend 2.Your backend shoud post a push notification to all your app 3.when your app received the notification, it must pull the newest data from backend...
This is a classic debate between generalist and specialist. For small company like startup, they tend to hunt for someone that can wear multiple hats given limit resources, i.e. generalist. For mid-large company, they have the luxury to hire expert for each line of their business, thus, specialist or consultant...
ios,objective-c,server,fetch,backend
First, you have to create API in ruby. Here is a tutorial on how to do it: https://www.codeschool.com/courses/surviving-apis-with-rails. After that, when you are sure that your API is working correctly, you can write a service for HTTP communication. You can do it by yourself, but in my opinion much better...
You can add the home directory to PYTHONPATH and then it would be possible to do from a import add. To programmatically add a directory to PYTHONPATH , you can use sys.path. Example - import sys sys.path.append('/path/to/home/directory') After doing the above you would be able to directly import any scripts...
google-app-engine,android-studio,backend
Add below line to your backend's build.gradle file. compile 'com.ganyo:gcm-server:1.0.2' ...
javascript,node.js,express,blogs,backend
You can checkout mean.js. It is a fullstack javascript framework that lets you generate crud modules (articles for your blogs) and more.
java,mysql,model-view-controller,deployment,backend
How can I embed SQL to your application Till the time I know you can not embed MySQL to your application. Rather it will be a necessary component. So make a user interface that will guide the user to provide the database name. Then you will use this database name...
ruby-on-rails,ruby,web-applications,backend,web-frontend
Once the server has done its math (in the controller), you can return your array like the below: def my_action my_array = # store the array here render json: my_array end You can also have the response in different formats.. def my_action my_array = # store the array here respond_to...
go,backend,datastore,key-value-store,boltdb
A Bolt database is usually embedded into a larger program and is not used over the network like you would with shared databases (think SQLite vs MySQL). Using Bolt is a bit like having a persistent map[[]byte][]byte if that were possible. Depending on what you are doing, you might want...
api,backend,throttling,apigee,throttle
You can use any of the predefined variables: http://apigee.com/docs/api-services/api/variables-reference The variable that is probably the most commonly used for Spike Arrest is client.ip. Edge will make all elements of a request message available. If your clients are adding a client_id (aka API key) to a request as a query parameter,...
python,django,http,url,backend
Most browsers cache 301 Redirects, and do not cache 302 Redirects. If you were using a 301 Redirect, you need to clear your browser cache. See this SO question for more info: How long do browsers cache HTTP 301s?...
To reference non-ASCII characters in a JavaScript file that isn't served Unicode-safe, use JS string literal character escapes: \uNNNN where NNNN is a the hex number of the UTF-16 code units associated with the string (same as the code point number for characters like these in the Basic Multilingual Plane)....
angularjs,playframework,gruntjs,frontend,backend
Setting up CORS in play consists of two steps Respond to preflight requests (option requests) Setting headers for response. Seems you miss the first step, check this article for details....
rest,core-data,backend,objective-c-category
No, because You can't extend existing methods in categories. You could subclass NSEntityDescription to extend the method, but it's not a good idea for this purpose because... This is the wrong time to sync. This method creates a new instance but doesn't assign any attribute values. So, you have no...
android,architecture,cloud,backend,pull
Yes, you will need a server. You can start building the server software on the same machine as your Android emulator and create them in parallel. You'll need to choose a language and most likely a web server framework that suits your thought process and style. If you want to...
Your proposed setup of having store1.com and store2.com with a shared checkout URL of store1.com will work with a bit of work from yourself, but it's not clean or ideal in my opinion. Magento will append an SSID every time it switches domain to try and re-load the customers session...
c,gcc,compiler-construction,backend
You would need to make sure your cross-compiler itself was compiled with the -g option so it has debugging symbols in it. Then run gdb myprocessor-gcc test.c to see where the segmentation fault is happening in your compiler. You will have to learn some gdb commands like run and where....
The problem is that your Django application uses a custom email backend (specified by the EMAIL_BACKEND setting), that custom email backend apparently subclasses django.core.mail.backends.smtp.EmailBackend and that class has changed between Django 1.6 and Django 1.8 . Your custom email backend is not compatible with the new implementation of django.core.mail.backends.smtp.EmailBackend. I...
java,alfresco,backend,web-scripting
Pro tip - You can see all of the available web scripts at http://localhost:8080/alfresco/service/index/uri/ You're supposed to use the CMIS web scripts where possible, and this also makes for the simplest request. http://<MyAlfresco>/alfresco/service/cmis/i/8826b8f4-9f61-41a4-9f21-14ad5b6395ab This returns the full set of properties for the nodeRef workspace://SpacesStore/8826b8f4-9f61-41a4-9f21-14ad5b6395ab. Some of the XML you will...
api,backend,throttling,apigee,throttle
Problem with synchronizing spike arrest across MP is that you're already under severe load (in theory) and creating additional chatter between MP in a high load could have impact on the very tool you're using to protect from high load. Therefore your only option in Per Second restrictions is to...
node.js,angularjs,backend,flow-js
Reassembling all chunks is easy, just call this: var stream = fs.createWriteStream(filename); r.write(identifier, stream); And that is it! But other question is, when this method should be called? Maybe when all chunks are uploaded and present at tmp folder. But there is another issue with duplicate calls of the done....
It's perfectly fine for 3xx or 4xx responses to have body entities, sometimes it's even required. For example, for 300 Multiple Choices: Unless it was a HEAD request, the response SHOULD include an entity containing a list of resource characteristics and location(s) from which the user or user agent can...
javascript,ruby-on-rails,django,database,backend
I recommend, depending on language: Simple front: Structure(html, css): Bootstrap framework, foundation, semantic ui Javascript: jQuery(must-have for bootstrap anyway), underscore, moment(for date/time) - this should fit your needs for that type of app Best front: Above plus following: MVC Frameworks: angular, knockout, ember, backbone Back-end: Database: MySql(maybe you are familiar...
ios,objective-c,json,server,backend
You just need to POST data to your server. Port could be anything you want, should be 80. Host your script with a domain url so that you can make network request publicly. You can try this function: -(NSData *)post:(NSString *)postString url:(NSString*)urlString{ //Response data object NSData *returnData = [[NSData alloc]init];...
Yes, you certainly could, LevelDB is also built as a .so file. However, LeveDB's API differs from how Riak expects a backend to behave, so it requires and interface module riak_kv_eleveldb_backend so that it responds to Riak the way it expects. You would likely need to do the same for...
php,ruby-on-rails,spring,web-applications,backend
Its always better to go with the One which you know have knowledge. (Ruby on Rails in your case). Every language has advantage and disadvantages. If you can prepare a project requirement & Functional requirement, you could easily identify which one is the Tough Functionality to develop. Personally, I am...
drupal,yii,content-management-system,admin,backend
IMHO Fastest way is to get a working system and try to manipulate to make act like you want, add code to your needs. this way you don't have to worry about some common tasks but there is a little learning of how that system works part. but if you...
Congrats on having a popular app. The row count is a low cost operation, just do (new Parse.Query("MyTable")).count(). The way to do summary stats is to keep a running max and average in a single row in their own table. You can compute an incremental average with a count, see...
android,google-app-engine,backend,ejabberd,google-cloud-messaging
Announced last week: Engage your users across Android, iOS and Chrome via Google Cloud Messaging 3.0: https://developers.google.com/cloud-messaging/ https://www.youtube.com/watch?v=gJatfdattno ...
performance,api,benchmarking,performance-testing,backend
A really popular web application benchmark is: https://www.techempower.com/benchmarks/#section=data-r10&hw=peak&test=json But you may roll your own to map more closely your needs using any of the following tools: wrk jmeter vegeta http_load siege ...
google-app-engine,yaml,backend
Manual scaling only works with "B"-type instances, which used to be known as "backend instances": https://developers.google.com/appengine/docs/python/modules/#Python_Instance_scaling_and_class...
jquery,python,django,backend,jquery-post
While the answer posted by shellbye may solve your problem, it also makes you vulnerable to CSRF attacks. Use csrf_exempt only if you know what you're doing. Do read Django docs on CSRF protection to know more. Alternative to other answer You need to pass the CSRF token with every...
javascript,node.js,mongodb,mongoose,backend
The issue is that the first object you're trying to save: console.log(stockObject); // { 'F': '2' } Doesn't match the Schema you've defined for it: { symbol: String, amount: Number } Mongoose normalizes objects it saves based on the Schema, removing excess properties like 'F' when it's expecting only 'symbol'...
parse.com,push-notification,backend
You can achieve this with a cloud code background job and scheduling. You'll need to create a job that searches for tasks that need to have a notification sent, send it, and then mark the task with some sort of "sent" flag so it's not sent again. You could either...
php,wordpress,woocommerce,backend,capability
if you read this, you can see that woocommerce recommend two plugins to work, try: this or this Or try adding this capabilities manage_product_terms edit_product_terms delete_product_terms assign_product_terms manage_categories ...
ios,sql,api,backend,backendless
There are two separate questions at hand here: How to create relationships between objects? How to load objects created by a user? Let's start with the first one: How to create relationships between objects? When you work with Backendless it is important to think in terms of objects and not...
angularjs,playframework-2.0,backend
If you don't want to dynamically generate views from Play using Twirl and you just want to serve your HTML static files publishing them as assets is the way to go. By default assets are designed to provide resource like CSS or JS files but nothing prevents you from serving...
django provides an AUTHENTICATION_BACKENDS setting which should do what you require. AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', ) Ours looks like this .... AUTHENTICATION_BACKENDS = ( 'social_auth.backends.facebook.FacebookBackend', # fb backend par social_auth 'social_auth.backends.twitter.TwitterBackend', # twitter backend par social_auth 'backends.EmailAuthBackend', 'backends.APIAuthBackend', 'django.contrib.auth.backends.ModelBackend', ) In out case, the backends.APIAuthBackend is where we check the...
As outlined in the documentation the rc file has no .py extension: On Linux, it looks in .config/matplotlib/matplotlibrc [...] On other platforms, it looks in .matplotlib/matplotlibrc. In fact it does not have python syntax but rather uses a yaml-like dictionary structure. So it is likely that matplotlib does not use...
Exactly. If you have a myemailbackend.py in your myapp directory, the setting would be: EMAIL_BACKEND = 'myapp.myemailbackend.MyEmailBackend' Note that this assumes that you have added myapp to INSTALLED_APPS in your settings.py....
ios,mobile,push-notification,apple-push-notifications,backend
Most of the solutions I mentioned are quite good but require push notifications to be sent through a remote API, preferably from a server. The only one that has all the features I need is Parse, which allows to send push notifications from the app and select target devices by...
static files are for your project's assets - css, js, images etc -, IOW things that are part of the project itself and you want to keep in your git/mercurial/whatever scc. Uploaded / dynamic /generated contents are supposed to go to the medias folder (settings.MEDIA_ROOT).
mysql,sqlite,swift,server,backend
This is a question of opinion, so I'm not sure this is the best forum. However you have several options, including some that could be completely free. Rails and PHP as you have mentioned can be used to create a backend using mysql as the data layer. If you are...
c++,user-interface,design,frontend,backend
The usual solution is the Model View Controller pattern where your backend is the model and your GUI is the view and the controller. The backend usually provides methods to get and set the data (all or parts of it) and implement a subscription pattern where the views subscribe for...
ios,parse.com,apple-push-notifications,backend
Push notifications are sent to devices, not users. Devices are tracked via the installation table (PFInstallation object). You need to add a column to your installations table in Parse so that it tracks the PFUser that is currently associated with that installation (device). Then you can send a push message...
As long as you keep the variables consistent along the way, there should be no issues whatsoever. As long as you trust what the frontend developer has done, you should be good to go. The only situation I can see being an issue is if the frontend dev had some...
angularjs,git,laravel,backend,web-frontend
This answer is just one of the many ways to accomplish this and defining a "best approach" is quite relative. 1. Create separated virtual hosts to different branches (dev, release, master..) In your Apache or Nginx, create different hostnames for different branches and, in each root directory (like public_html) pull...
Try this: class IAVForm(forms.ModelForm): z_score = forms.DecimalField(widget=forms.NumberInput(attrs={'class':'form-control','value':'0.0',})) screens = forms.IntegerField(widget=forms.NumberInput(attrs={'class':'form-control','value':'0',})) flu_proteins = forms.IntegerField(widget=forms.NumberInput(attrs={'class':'form-control','value':'0',})) key_word = forms.CharField(required=False, widget=forms.Textarea(attrs={'class':'form-control','rows':1,'cols':10,'placeholder':'keword values'})) To begin, you can just make...
ruby-on-rails,ruby-on-rails-4,frontend,backend,rails-api
A regular Rails app will use the rails views (erb or haml) to render pages directly. That is to say, it will process the data AND render this data in views, answering directly the client request with a HTML page. A Rails API will just process your action, and assume...
mobile,backend,google-cloud-endpoints
As you can see here, Google Cloud Endpoints are completely free. You only will need to pay for your back-end in Google App Engine or in Compute Engine. But definitely, the prices will be lower than those offered in Parse, except the "free" tier. But once you would need more...
api,backend,throttling,apigee,throttle
SpikeArrest has no ability to be distributed across message processors. It is generally used for stopping large bursts of traffic, not controlling traffic at the levels you are suggesting (3 calls per minute). You generally put it in the Proxy Request Preflow and abort if the traffic is too high....
The script I copied from the site had a leading space in front of the "#!/bin/bash" line - and that made the files NOT EXECUTABLE !!!
Ah yes this is probably less clear. When you run a insert, update, remove or upsert operation this actually triggers method. The DDP protocol doesn't directly take CRUD operations. The method names would be as follows for an insert into a collection called 'mycollection' Method name : /mycollection/insert the params...
For anyone who's interessted.. You may want to start with the Play-Framework or Sails.js (based on node.js).
javascript,perl,frontend,backend
Using CGI isn't recommended much these days. Read this. As @Borodin already said, many possibilites here (and theyre really opinion based). I would to use: Poet - as an really fantastic framework using Mason templating, builtin configuration system, caching, logging - fully Moose based. The drawback is - very small...
android,google-app-engine,backend,google-cloud-endpoints,google-cloud-sql
you are on the right track. Just for the record, if you don't have strong reasons (yet) to go for a SQL data store, do consider using Google Data Store as it is better seamlessly integrated into the SDKs and after a couple of compromises it should help you pushing...