Posts

php - SimplePie on Azure not parsing https feeds -

i'm using compiled version of simplepie 1.4.2 (the last tagged version on github) aggregate rss/atom feeds (code below if needed). it works on couple of linux-based web hosts, when upload azure app services http feeds display correctly, https don't. why happens? no specific settings set on web app, using php 5.6 in both environments. no differences accessing azure web app through http or https. thanks everybody! <?php date_default_timezone_set('europe/rome'); set_time_limit(0); header('content-type: application/rss+xml; charset=utf-8'); require_once('simplepie.compiled.php'); [...] echo '<?xml version="1.0" encoding="utf-8"?>'; ?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title><?php echo $feedtitle; ?>...

osx - Playframework:activator command not found in mac -

i have set activator path in mac, when want create project said command not found.please help.here path. /documents/activator-1.3.10-minimal/bin:usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin and here error mac-score:activator-1.3.10-minimal mac-score$ activator new first-app play-java -bash: activator: command not found if using homebrew can paste following command on terminal: brew install typesafe-activator

angularjs - how update model value when input value is changed in Angularjs2 -

i want change model value input tag don't know how in best way. here code have done that. <div *ngfor='let l of list'> <input #temp [value]='l.test' (blur)='l.test=temp.value'/> <span (click)='check(l,temp.value)'></span> <div> angular code check(l,temp:string) { console.log(l.test); console.log(temp); } i want without blur event. please suggest me better way this. use can [(ngmodel)] on field, provide 2 way binding on field, type in change l.test value of particular element array. markup <div *ngfor='let l of list'> <input [(ngmodel)]='l.test'/> <div> since angular 2 rc-5 , make ngmodel 2 way binding working have import formsmodule in @ngmodule import { formsmodule } '@angular/forms'; ///..other imports @ngmodule({ imports: [ browsermodule, formsmodule ], //< added formsmodule here declarations: [ appcomponent ]...

javascript - Second php file can't find Session started in first file -

Image
i can't php $_session variable work way want to. i've got 2 files. first 1 setting variable: <?php session_start(); header("access-control-allow-origin: *"); $_session['authenticated'] = "yes"; echo json_encode('authenticated successfully.'); ?> and second 1 trying retrieve it: <?php session_start(); header("access-control-allow-origin: *"); print '<pre>'; var_dump($_session['authenticated']); print '</pre>'; ?> but second file prints null when should print "yes" , new error recorded in server's log: [thu sep 22 12:52:47.763114 2016] [:error] [pid 26644] [client <ip_here>] php notice: undefined index: authenticated in <second_file> on line 5, referer: <client_url_here> both files accessed ajax calls javascript. the ajax code file 1 works following: $.ajax({ url: corrdomain + '/auth.ph...

python - how to fill color cells with 2 percentage data from other cells -

i have 3 cells example: a1: has independent value b1: has percentage value of %30 b2: has percentage value of %70 what want is, filling a1 cell background 2 colors (yellow/green). yellow needs @ %30 left , green needs %70 right can understand looking a1 percentage ratio %30 %70 except don't know how , apparently google all of values coming python script using pandas module , writing excel file via xlsxwriter

c# - Why can't Microsoft.VisualStudio.TestTools.UnitTesting get the DbSet<T> returned from database -

project:web api run path: open testexplorer , right click item want test,and left click debug selected tests problem description: traced sql server sql server profiler, , sql server received requesting , returned items. tdd project nothing. below relevant code: // test project test [testmethod] public void getcategorytrees() { //arrange categorytreescontroller controller = new categorytreescontroller(); //act list<categorytree> result = controller.getcategorytrees(); //assert assert.arenotequal(0, result.count); } // real project code private applicationdbcontext db = new applicationdbcontext(); // get: api/categorytrees public list<categorytree> getcategorytrees() { db.categorytrees.load(); return db.categorytrees.tolist(); } when visit api/categorytrees in ie explorer, can items in immediate window. , there 14 items. when ran test project in previous mentioned run path, got nothing. please me, thank you. //below code code...

python - redis.exceptions.ConnectionError after approximately one day celery running -

this full trace: traceback (most recent call last): file "/home/server/backend/venv/lib/python3.4/site-packages/celery/app/trace.py", line 283, in trace_task uuid, retval, success, request=task_request, file "/home/server/backend/venv/lib/python3.4/site-packages/celery/backends/base.py", line 256, in store_result request=request, **kwargs) file "/home/server/backend/venv/lib/python3.4/site-packages/celery/backends/base.py", line 490, in _store_result self.set(self.get_key_for_task(task_id), self.encode(meta)) file "/home/server/backend/venv/lib/python3.4/site-packages/celery/backends/redis.py", line 160, in set return self.ensure(self._set, (key, value), **retry_policy) file "/home/server/backend/venv/lib/python3.4/site-packages/celery/backends/redis.py", line 149, in ensure **retry_policy file "/home/server/backend/venv/lib/python3.4/site-packages/kombu/utils/__init__.py", line 243, i...