backend

problem with jquery in joomla backend

て烟熏妆下的殇ゞ 提交于 2019-12-13 04:59:07
问题 pls somebody know where is problem ? want to use jquery in joomla backend, i read, that i must use jQuery.noConflict, cause of mootools in joomla, but with this code i get error: jQuery is not defined [Break on this error] jQuery.noConflict(); what is wrong ?? thanks <div id="stlac">STLAC</div> <?php $document = &JFactory::getDocument(); $document->addScript(JPATH_SITE.'/media/system/js/jquery-1.2.6.min'); $document->addScriptDeclaration ('jQuery.noConflict();'); echo '<script type="text

Communicate with backend job from web server or web page

六月ゝ 毕业季﹏ 提交于 2019-12-13 04:24:37
问题 I have an "appliance" (for lack of better description) running linux. Currently I ssh into the box to launch jobs. This isn't friendly enough for my users, so I'm putting together a simple web UI to launch the script. A job runs for anywhere from 10 seconds to several hours. The web UI needs to reflect the status of the job. I've solved similar problems in the past by running a daemon on the server that watches a spool directory (or db table) for new job requests, spawns a process, monitors

Sharing POJOs between Android project and java backend project

。_饼干妹妹 提交于 2019-12-13 04:16:29
问题 I was wondering what would be the best way of sharing same POJOs in Android project and in back-end project. At the moment when I have POJO in back-end, then this POJO has Hibernate and Jackson annotations. On top of the class there is HQL sentences as @NameQueries. When I need the same POJO in the Android project then copy the POJO and remove all the annotations. At the moment I use GSON in the Android project. So my question is that what would be the best way to get rid of this tedious work

Cannot end a section without first starting one in Laravel

一世执手 提交于 2019-12-12 20:01:12
问题 @extends('main') @foreach ($hotel as $hotel) @foreach ($city as $city) @section('title'," $hotel->hotel - $city->city") @endsection @section('content') {{-- Header --}} <div style="background-image:url('../img/{{ $hotel->id }}.jpg'); height:400px; background-size:cover;"> <div class="container"> @include('partials._nav') <div class="row"> <center> <h2> <div class="col-md-12 hotel-name"> {{ $hotel->hotel }} <p class="city"> </h2> {{ $city->city }} @endforeach </p> </div> </center> </div> </div

Can I edit access backend file while others are using it?

て烟熏妆下的殇ゞ 提交于 2019-12-12 18:55:35
问题 How much can I edit a backend file of an Access database while others are using it? My understanding has been that you can't, but I wanted to confirm that before I commit to a lot of late nights. And in regards to "how much can I edit it", I mean tasks such as adding fields to tables, deleting them, adding new tables etc. Also, how does this compare to working with an SQL Server backend? If it's not apparent, my database is split, and I currently have a low number of users (1-2) on it at a

iOS Parse how to download file via URL

六眼飞鱼酱① 提交于 2019-12-12 16:26:51
问题 I am using parse for my chatting application. When I upload files, I keep the url, and send the url to other users, who can then download files via this URL. Here is my code for uploading files: + (void)uploadBlob:(NSData *)blob fileName:(NSString *)fileName type:(NSString *)type { if ([self private_checkCloudForbidden]) { return; } if (CHOSEN_SERVER_DATABASE == ServersQuickBlox) { if ([Format isThumbnailWithBlobFileName:fileName]) { type = @"image"; } NSString *qbContentType = @""; if ([type

How to create a full-duplex communication between an API and a Rails app?

蓝咒 提交于 2019-12-12 09:12:49
问题 I have a video transcoding API and a CMS application which consumes it. Workflow is as follows: CMS sends a GET request to to the API to get a of list video files to transcode and it gets the answer in JSON format. CMS user selects which file to be transcoded and clicks on the "Transcode" button. As user click on the link, a POST request goes to API and API creates necessary Progress es internally and responds with initial status of the progresses in JSON format. After creating Progress es at

Why do I suddenly have a bouncing Python rocket?

橙三吉。 提交于 2019-12-12 08:31:00
问题 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? 回答1: Not a "bad thing". The icon

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

房东的猫 提交于 2019-12-12 08:11:11
问题 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,

Why is GorillaMux not allowing me to pass in a URL as a parameter?

早过忘川 提交于 2019-12-12 06:17:42
问题 I'm building a URL shortener API and I'm trying to pass a URL into a function using GorillaMux. The route handler is like so: router.HandleFunc("/new/{url}", createURL) The only thing is, if I pass in: https://www.google.com (as in localhost:8080/new/https://www.google.com) then it responds with 404 page not found and the URL is changed to https:/www.google.com. I've tried adding a regexp pattern in with the {url} bit like so: {url:[a-zA-Z0-9/]+} but that didn't seem to work and seems a bit