Posts

Django inspectdb miss POSTGRESQL materialized views -

all other tables correctly converted models both views , materialized views seems skipped. am missing or views , materialized views aren't managed ./manage.py inspectdb ? this not work since 1.8, on 1.7 worked mysql views. annoying.

c# - WPF Cannot see image in runtime -

i've created 3 images context menu. problem can not see them in runtime. (i can see them in editor window) i've already changed compile type resource and image type png (just in case) <color x:key="backgroundcolor" a="255" r="19" g="19" b="19"/> <bitmapimage x:key="bicut" urisource="images/cut.tif"/> <bitmapimage x:key="bicopy" urisource="images/copy.tif"/> <bitmapimage x:key="bipaste" urisource="images/paste.tif"/> <solidcolorbrush x:key="borderbrush" color="#ececec"/> <style targettype="contextmenu"> <setter property="foreground" value="{staticresource borderbrush}"/> <setter property="snapstodevicepixels" value="true" /> <setter property="overridesdefaultstyle" value="true" /> <setter prope...

ASP.NET Identity - Re-authenticate on some areas -

i'm starting new project using asp.net identity 2.1. in app, use remember me feature, so, have question. how can force users re-authenticate when access pages (for ex, admin area) if authenticated «remember me» feature? for ex, admin forgets logout. few hours later, uses browser, , logged in our app remember me feature. there no problem me, if person can navigate our app being logged admin, don't want person access admin, or sensitive areas of app without being forced login again. does know how this, or if framework has similar ready use? thanks

matlab - Reducing image bit depth -

i'm working on 800 x 800 pixels images bit depth of 24 ( png format). assume means 3 x 8 bits. these images black , white (0 or 255). want reduce depth 8 bit because*, when process images in matlab,* create 800 x 800 x 3 matrix has bigger computational cost computing 2d matrix. my idea subset first layer of matrix in matlab seems i've lost information because i've nothing left in matrix. `im4=im4(1:800,1:800);` any idea ? i'm new image processing , may not know basics... rgb2gray safest way convert m-by-n-by-3 image m-by-n.

oracle - Ranking without an order by -

is there way create row_number "on fly" without ordering column? i've got query : select regexp_substr(',a-b,b-c,c-d', '[^,]+', 1, level) legs dual connect regexp_substr(',a-b,b-c,c-d', '[^,]+', 1, level) not null and need keep order of rotation, need rank sure rotation good. tried take near rank, dense_rank, row_number,... need order by, can't use. it give this rank | legs 1 | a-b 2 | b-c 3 | c-d you can use level , though need alias it: select level rnk, regexp_substr(',a-b,b-c,c-d', '[^,]+', 1, level) legs dual connect regexp_substr(',a-b,b-c,c-d', '[^,]+', 1, level) not null; rnk legs ---------- ------------ 1 a-b 2 b-c 3 c-d

Jain sip registration successful but the client is unreachable in asterisk -

i have issue related jain sip , asterisk. using jain sip registration asterisk , can receive valid response (200 ok) asterisk when register request sent out. problem facing when check sip accounts in asterisk server (version 11) account status unreachable see host , alc port. remains unreachable. the command using sip show peers update: register request using jain sip: register sip:634@10.0.0.***:5060 sip/2.0 call-id: 2a4edd77a04edcf91a183fb5e6390ed4@10.0.7.162 cseq: 1 register from: <sip:634@10.0.0.***:5060>;tag=1536045124 to: <sip:6034@10.0.0.***:5060> via: sip/2.0/udp 10.0.7.***:6060;branch=z9hg4bk-393136-32de53e08f3695b7a99325e95a230fa0 max-forwards: 70 contact: <sip:634@10.0.7.***:6060> content-length: 0 after authentication receive ok response: sip/2.0 200 ok via: sip/2.0/udp 10.0.7.***:6060;branch=z9hg4bk-393136-a334443342b349bd19bad069fd993a24;received=10.0.7.***;rport=6060 from: <sip:634@10.0.0.***:5060>;tag=1536045124 to: <sip:634@10.0...

django - $http success function does not execute in Angular js -

i trying http response django local server returns json response. json response: [{"fields": {"dob": "2015-05-08", "image": "media/jainsubh_1394437734_6.png", "text_file": "my_txt_files/jn2i0oq.png", "usr_name": "ankitmishra", "email": "anbishamar@gmail.com"}, "model": "my_fr_app.new_user_reg", "pk": 15}] angular code is: <!doctype html> <html> <script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> <body> <div ng-app="myapp" ng-controller="customersctrl"> <ul> <li ng-repeat="x in items"> {{ x.usr_name }} </li> </ul> </div> <script> var app = angular.module('myapp', []); app.controller('customersctrl', ['$http',function($http) { $http.get("http:...