Posts

Showing posts from July, 2011

ios - UIScrollView includes extra space at bottom -

Image
i have uiscrollview continually adds space @ bottom of scroll area on ios 7. if rotate device, problem fixes itself, however, before rotating after first navigating view controller, space appears. i've included image below: what i've tried: set automaticallyadjustscrollviewinsets no checked contentsize , contentoffset , contentinset . appear fine. i'm not sure else try solve issue, , appreciate or direction here! edit: layer of complexity issue... call method, updatescrollviewcontentsize in viewdidappear: method. when rotate, , somehow fixes itself, same method called. contentsize being set when view appears , when rotate. to make things worse, content size set 638... whether there space or not. but, reason, scrollview ignores until rotate. here method update contentsize : - (void)updatescrollviewcontentsize { [self.scrollview setcontentsize:cgsizemake(self.scrollview.frame.size.width, (self.feedbackfooterview.frame.origin.y + self.feedbackf...

php - Override one private property in one Swift Mailer class (Symfony2) -

i writing symfony2 bundle requires swift mailer. use composer require swift mailer , composer used install bundle. i want change value of 1 private property in 1 swift mailer class. of course change property in php code, want better solution ensures when bundle installed (composer) there no other manual work involved (i.e. manually changing property in php code). i don't think swift mailer symfony bundle, don't think can use compiler class. i know can configure composer settings, don't think solution. issue of course can't change of swift mailer code (hence compiler pass great). i don't think possible, surely able without manual work every time bundle installed? you can't, , behavior of php in general. a private property means it's not extension point provided swiftmailer. what desired use case? if use case valid one, , there no other usable extension point that, i'd suggest contribute swiftmailer propose it. (the easiest contr...

jquery - lazyLoadXT Background images add-on with multiple sources -

i'm using jquery lazyloadxt load background images of specific div. i'm trying have different src atributes, should load smaller images mobile devices. this markup: <div class="img-container" data-bg="img/intro-00.jpg" data-bg-sm="img/intro-00-sm.jpg"></div> <script> $.extend($.lazyloadxt, { srcattr: 'data-bkg-sm' }); </script> lazyload working, still loads default image (data-bg). there conflict between "srcattr" , background images add-on? there workaround?

ios - Swift / SpriteKit help: Increase CGFloat continuously to allow continuous rotation around a fixed point -

im making simple game apple's spritekit , swift , have encountered problem. im trying paddle node (paddle) rotate continuously around fixed node (anchornode) inside circle; however, cannot figure out how make paddle node (paddle) keep rotating around fixed point node (anchornode) because of constrains in skaction.rotatebyangle statement making end after amount of time / rotation. any appreciated! here code reference: //setting anchor node anchornode.position = cgpointmake(cgrectgetmidx(self.frame), cgrectgetmidy(self.frame)) anchornode.size.height = (self.frame.size.height / 1000) anchornode.size.width = anchornode.size.height self.addchild(anchornode) //setting achor node's physucs anchornode.physicsbody = skphysicsbody(circleofradius: (circle.frame.size.height / 1000)) anchornode.physicsbody?.dynamic = false anchornode.physicsbody?.affectedbygravity = false anchornode.physicsbody?.friction = 0 //making anchor node ro...

c# - Summing up in Datatable -

i have datatable full name id 7/13/2015 7/14/2014 1 20 30 2 30 50 b 3 50 70 b 4 60 30 c 5 20 30 c 6 30 80 c 7 10 30 i want add 1 more row datatable consist of sum of each person in specific date full name id 7/13/2015 7/14/2014 1 20 30 2 30 50 total 50 80 b 3 50 70 b 4 60 30 c 5 20 30 c 6 30 80 c 7 10 30 i know how create new row , add name , id, way can used c# modules add specific sums. looked , table_name.compute(); getting errors implementing that. note column full name has value space , value in column can contain spaces well. here's functio...

javascript - Scroll with multiple, and going different directions -

i have large image of l-shaped painting on 1 page. created divs on parts of painting want explain. when page loads, want scroll down length of image, , move left of image, stopping @ each div few seconds. understand how page scroll down on load, not understand how continue scrolling once has reached first div. should target data-box , not class, continue move through each div box? $(document).ready(function(){ $('html, body').animate({ scrolltop: $(".bird1").offset().top }, 5000); }); /*font*/ @import url(http://fonts.googleapis.com/css?family=yellowtail|calligraffitti|courgette); @import url(http://fonts.googleapis.com/css?family=ubuntu:400,300italic); body { /*background-color: #fbf2e0;*/ background-color: #fcf5e9; /*background-color: #fdfbf5;*/ /*background-color: #fefcf8;*/ font-family: ubuntu, sans-serif; } /************************************ home page ************************************/ ....

php - what is the proper way of passing query data to view -

what best way of passing queried data view via function ?? tried passed mysql_query() result data , process in view , create dynamic array in function (mysql_fetch_array()) , pass data...i want know best way of doing process??? if "proper" mean mvc way of doing it, you'd process data in controller , have controller render view final output. if aren't using mvc framework, i'd highly recommend codeigniter .

$scope and counting children of an element in AngularJS -

i'm pretty new angularjs, , have jquery background influence way of thinking problem. in order dom manipulation through transclude directive (i.e. adding specific class) need know how many children (or maybe siblings) has generic element. mean set class on children, based on algorithm counts number of children themselves. this tried far var main = angular.module("main",[]); function utilities(){ this.consolescope = function($scope){ return $scope.children().length; }; } main.service("utilities",[utilities]); main.controller("prova",["$scope","utilities",function($scope,utilities){ var self = this; self.consolescope = function(){ return utilities.consolescope($scope); }; }]); but if runs without errors, doesn't retrieve information wanted. can comprehend not right way this, can't see other way. try? so you've mixed application logic dom logic. ideally when tal...

r - Reconstitute PNG file stored as RAW in SQL Database -

Image
i working toward writing report sql database (windows sql server) require people sign report before submitting client. hoping have system these people can authorize signature in database, , can use image of signature stored in database , place on report generated latex. the signature images created pngs, stored in database in field type varbinary . in order use signature in report, need reconstitute png file can \includegraphics in latex. unfortunately, can't seem recreate pngs out of data base. since can't post signature, we'll use image below example. with image on computer, i'm able read file raw, write different file, , same image when open new file. #* works read image file , rewrite elsewhere pal <- readbin("c:/[filepath]/colorpalette.png", = "raw", n = 1e8) writebin(pal, "c:/[filepath]/colors.png", usebytes=true) now, i've saved same image database, , using rodbc, can extract so:...

jquery - Infinite scroll on mobile and pagination on desktop -

i want set infinite scroll plugin on wordpress theme. domain " http://www.unionsnetworksindacale.eu/ ". plugin asks 4 items: https://s.w.org/plugins/infinite-scroll/screenshot-1.png?r=1204131 . i'm not able find selectors. want apply infinite scroll on mobile version. help!!!! :) thanks! it seems using "forceful" wordpress theme "copa themes" , using this plugin. as far saw, didn't modify element classes. classes names configuration page be: content selector class name: main-content navigation selector class name: main-nav next selector class name: next page-numbers item selector class name: entry-content i took class names official demo site of theme , matched theme. these should work perfectly. so far, plugin doesn't support "only mobile" mood. if desperate, can hack (but won't suggest anyway break when plugin updates , have hack everytime update theme/plugin). so can javascript. @ first, edit plugi...

sprockets - Rails assets rendering 404 out of the box -

Image
i've started new rails (4.2.2) app, basic functionality. javascript , css files aren't rendered: i have installed sprockets gem , i've tried explicitly adding 'sprockets' gem gemfile (and running bundle install), didn't help. here application.js: //= require jquery //= require jquery_ujs //= require turbolinks //= require_tree . and these 2 lines in application.html.erb <%= stylesheet_link_tag 'default', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'default', 'data-turbolinks-track' => true %> and render follows: i have ruby 2.1.6p336 installed on windows 8.1 know answers or know going wrong? i'm pretty new rails. i think need change javascript , stylesheet tag this. fetches details application.js , application.css not default ones <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' ...

asp.net - Entity Framework Code First Foreign Key different column key -

so, addresses has pk of id , foreign key of entitykey references vendors table's id, because vendors have addresses physical buildings. when query vendors, i'm not able return associated address. note: don't want change schema. [table("ee.address")] public partial class address { [key] public guid id { get; set; } [stringlength(50)] public string address1 { get; set; } [stringlength(50)] public string address2 { get; set; } [stringlength(50)] public string city { get; set; } [stringlength(5)] public string state { get; set; } [stringlength(30)] public string postalcode { get; set; } [stringlength(10)] public string countrycode { get; set; } public guid entitykey { get; set; } [foreignkey("entitykey")] public virtual vendor vendor { get; set; } // entitykey should vendor.id } [table("ee.vendor")] public partial class vendor { [key] public gui...

vb.net - VB project - Inside was outside the bounds of the array -

i'm working following vb code: option strict on option infer on public class mainform private readbuffer string = string.empty private bytenumber integer = 1 private bytetoread integer = 1 private byteend(2) char private comopen boolean private sub form1_formclosed(byval sender system.object, _ byval e system.windows.forms.formclosedeventargs) _ handles mybase.formclosed if comopen serialport1.close() end sub private sub form1_load(byval sender system.object, byval e system.eventargs) handles mybase.load sensorbutton.checked = true ' read avaiable com ports: dim portnames string() = system.io.ports.serialport.getportnames if portnames nothing msgbox("there no com ports detected!") me.close() end if cbocomport.items.addrange(portnames) cbocomport.text = portnames(0) ...

javascript - Angular.js Illegal invocation on copied File object -

well, there not explain. https://jsbin.com/raqajelufu/edit?html,js,output illegal invocation exception raised on file object property access after being copied angular.copy. is there workaround, make watching file object possible, considering $watch using angular.copy internally according https://docs.angularjs.org/api/ng/type/$rootscope.scope ? which browser(s) seeing issue on? a similar question asked while ago concluded could have chrome v43. some resources related issue: chromium bug report webkit bug report webkit bug 'conclusion' angular issue regarding .copy , .equals supposedly , chrome v43 not following in angular.copy source : var emptyobject = object.create(object.getprototypeof(source)); you try of following see if suppresses errors (regardless of browser of choice): dont use angular.copy , avoiding deep watches la $scope.$watch('', fn, true) ( jsbin ) , go _.clonedeep ( jsbin ) lodash when need make deep copy of somet...

asp.net mvc - MVC: session InProc vs Stateserver -

trying hunt down day. i can sessions work if used "statesever". holds session controller controller , on refresh. if use "inproc" session lives controller controller on refresh dies [null]. timeout should not issue because run immediately. any on appreciated. don't want use stateserver...at least until understand why happening. web config <!--<sessionstate cookieless="usecookies" timeout="1440" mode="inproc"/>--> <sessionstate cookieless="usecookies" timeout="1440" mode="stateserver" stateconnectionstring="tcpip=127.0.0.1:42424"/> controllers public actionresult login() { system.web.httpcontext.current.session["sessionval"] = "test"; return view(); } public actionresult loginsuccess() { return view(); } views @{ layout = ""; } <h2>login</h2> <a href="/l...

Nesting container within a container bootstrap -

i'm have little bit of trouble getting definitive answer on containers in bootstrap. it's clear should not nest .container within .container-fluid , visa versa, ok nest .container within .container ? trying create layout has outer div full width , inner div smaller holds content, box within box. i'm not sure proper way in bootstrap is. yes, never nest container inside another. from bootstrap docs: containers bootstrap requires containing element wrap site contents , house our grid system. may choose 1 of 2 containers use in projects. note that, due padding , more, neither container nestable. you can wrap .container inside custom class .outer-container has 100% width. set width near 75% when screen size reduced show inner container has smaller width. .outer-container { background: tomato; width: 100%; } .container { background: lightblue; } @media (max-width: 1200px) { .container { width: 75%; } } ...

performance - dd dsync results extremely slow. Is this normal? -

i investigating slow application issues new hardware , running odd results. trying determine causing behavior. using : dd if=x.b1 of=x.b10 bs=8192 oflag=dsync of 101mb file simulate how our database writing disk (the dsync flag suggested our database vendor), , while normal dd commands without dsync option showing 80-100 mb/s, dsync command getting results in 160kb/s-200kb/s range. this behavior has been viewed on multiple pieces of hardware, different model hard drives , doing drive wipe test: dd if=/dev/zero of=/dev/sda bs=8192 oflag=dsync shows more expected 80-100mb/s speed, seems suggest in our custom os slowing things down. have run these tests under custom suselinux oracleos (32 , 64 bit) , continue see these low numbers. can give me ideas of problem is? thanks

java - Equivalent of Guava's Strings.isNullOrEmpty() for Long, Integer, etc -

is there .isnullorzero() in util libs guava java boxed numeric primitive types? a integer, long can not empty if not null ; can 0 in case. integer or long can write - public static boolean isnullorzero( final object obj) { if(null == obj) return true; if( obj instanceof integer ){ integer = (integer) obj; return (i == 0); } if( obj instanceof long ){ long l = (long) obj; return (l == 0); } } for collection, if not null can empty. can write own isnullorempty() method - public static boolean isnullorempty( final collection< ? > collection ) { return (collection == null || collection.isempty() ); }

swift - How to put notifications on iOS application to repeat every one (1) hour? -

i tried put notifications in app, supposed repeat every 1 hour repeat unregulated, clear, repeats 30min 1 hour long time etc.. code used in "appdelegate.swift": class appdelegate: uiresponder, uiapplicationdelegate { var window: uiwindow? func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool { // override point customization after application launch. //notification repeat application.registerusernotificationsettings(uiusernotificationsettings(fortypes: uiusernotificationtype.alert | uiusernotificationtype.badge | uiusernotificationtype.sound, categories: nil)) return true } and code used in "viewcontroller.swift": //notification repeat var time = 1 override func viewdidload() { super.viewdidload() // additional setup after loading view, typically nib. //notification repeat var timer = nstimer.scheduledtimerwithtimeinterval(3600.0, target: self, se...

c# - visual studio 2010 could not load file or assembly -

i know there plenty of question on subject, didn't find useful answer problem. i got project co-worker using mercurial. when open project cannot open c# file , following message: could not load file or assembly, 'microsoft.msxml, version =8.0.0.0,culture = neutral, publickeytoken=b03ff5f7f11d50a3a' or 1 of dependencies. file specified unfindable. any idea? don't know in code, in fact i've never see or programmed code until now, know code working , co-worker manage make installer , software working fine. try install microsoft core xml services solve problem

perl - Why does encode raise "Use of uninitialized value within @_"? -

with perl v5.14.2 (provided debian wheezy) code: use encode qw(encode); no warnings "all"; sub test_encode { return encode::encode("utf8", $_[0]); } $a=undef; $r=test_encode(substr($a,0,1)); produces empty string in $r . i'm fine that. with perl 5.18.2 (ubuntu 14.04), appears produces output: use of uninitialized value within @_ in list assignment @ /usr/lib/perl/5.18/encode.pm line 147. (even warnings disabled in main scop, apparently it's not warning. edit: per answers, it's warning): that list assignment be, in encode.pm : 146 sub encode($$;$) { 147 ( $name, $string, $check ) = @_; 148 return undef unless defined $string; 149 $string .= ''; # stringify; tweaking code, if undef passed encode instead of $_[0] , no longer complains. if copy of $_[0] in temp variable passed instead of $_[0] , doesn't complain too. my question are: have changed in perl between these versions explain new b...

Using iron-router with angular-meteor makes controllers being loaded twice -

i have meteor application using angular-meteor. need load different angular modules depending on url. added iron-router application , continue handle routes each module using ngroute , anchor nav behaves strangely if url contains params. made small test case available here: https://github.com/clouchtibat/iron-router-ng-route if click on 'truc' link , on 'test', next routes changes make controller instantiated 2 times. works if urls have no params. i tested ui-router (in with-ui-router branch) , problem same in addition view duplicated. is bug in 1 of 2 routers or there wrong implementation? take @ conversations in angular-meteor github issues: https://github.com/urigo/angular-meteor/issues/154 https://github.com/urigo/angular-meteor/issues/493 i think can directions. having hard time mixin angular-meteor , iron:router.

javascript - JQuery - Remove all option from Selectbox except for first and selected -

i have html select box several options. upon selection of option want selected option , first option shown in select option dropdown. know how filter , show 1 option cannot figure out how include both option 'selected' option remains 'selected'. have include snippets similar of code demo. html: <select id="mydropdown"> <option selected>select fruit</option> <option>grapes</option> <option>bananas</option> <option>oranges</option> <option>apples</option> </select> js: $(document).on('change', '#mydropdown', function() { $('option', this).not(this,'option:gt(0)').siblings().remove(); }); i trying use first option perform function 'on change' need selected option remain selected while rest being filtered out except first. example if 'oranges' selected, see: <select id="mydropdown"> <option>select frui...

kendo ui - MVVM-KendoNumericTextBox restore previous value without triggering 'change' twice -

i'm using kendo mvvm , have kendo numerictextbox bound kendo observable. want is: when user changes value, confirm should pop saying 'are sure?' if yes -> no problem, go on. if no -> nothing should happen! in theory sounds simple that... found 3 major issues: 1) numerictextbox got 2 events: spin , change... idea of using keypress/focus/or other event discarded. 2) tried using change event... can't preventdefault! try save previous value , restore in case of 'no answer' brings me trigger event change twice! 3) other model field 'observing' numerictextbox change before answer confirm box... , absolutely don't want this! p.s. got dropdownlist , datepicker must work in same way! help please! provided fast example: http://dojo.telerik.com/eyite here can see how numericbox2 (who observing numericbox1 , computed) changes before user answer yes/no (problem 3) , keypress/focus/preventdefault doesn't work. here answer bin...

python - Telegram Bot API stopped getting new Updates -

i'm using getupdates method telegram bot api, , after while last update won't change, when send new messages, don't error message. is there request limit ? currently i'm doing request every 2 seconds, should wait more ? the bot on github i fixed it! problem was not sending last updates processed param getting same 100 las updates day, in conclusion, send last processed update id parameter on you'r request.

c# - Using ExpandoObject when property names are dynamic, is this possible? -

i need create object has properties named dynamically like: <users> <user1name>john</user1name> <user2name>max</user2name> <user3name>asdf</user3name> </users> is possible? yes, absolutely. use idictionary<string, object> populate: idictionary<string, object> expando = new expandoobject(); expando["foo"] = "bar"; dynamic d = expando; console.writeline(d.foo); // bar in xml case, you'd loop on elements, e.g. var doc = xdocument.load(file); idictionary<string, object> expando = new expandoobject(); foreach (var element in doc.root.elements()) { expando[element.name.localname] = (string) element; }

c++ - OpenMesh does not compile with min/max macros active -

how can deal error? add nominmax preprocessor definitions, dose not work. solution? the error follows. clcompile: 1> tricall.c 1> detected min macro! openmesh not compile min/max macros active! please add define nominmax compiler flags or add #undef min before including openmesh headers ! 1>d:\programfiles\c_library\openmesh3.2\include\openmesh\core\system\config.h(72): fatal error c1189: #error : min macro active you should add #ifdef min #undef min #endif and similar max before including openmesh headers. some header not observing nominmax defining them. if breaks other code relies on macros, use more complicated #ifdef min #define foo min #undef min #endif /*openmesh includes here*/ #ifdef foo #define min foo #undef foo #endif where foo symbol of choosing.

php - create a form and given with Laravel sauvgarde of 5 -

i beginner , using laravel 5, have same problem recovring data , saving them. think thing missing . source code: this blade page: .blade.php <form class="form-horizontal" role="form" method="post" action="{{ url('ajoutannonce') }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}"> <div class="form-group"> <label class="col-md-4 control-label">name of building</label> <div class="col-md-6"> <input type="text" class="form-control" name="nom" value="{{ old('nom') }}"> </div> </div> <input typ...

bisonc++ - How to get the installed version of GNU Bison -

i'm upgrading bison 1.875 bison 3.0.4 , want backward compatible. the function call yyparse(void *) works in 1.875, not in 3.0.4 the function call yyparse() works in 3.04, not in 1.875 bison outputs cpp file, line #define yybison_version "3.0.2" used strcmp determine if actual version up-to-date , decide function call use: int ret = 0; if(bisonversioncheck < 0) { ret = yyparse(void *); } else { ret = yyparse(); } but, see, determined run-time, compiler complains function-call can't with. i have macro can use, can use preprocessor directives select right function call. can't find macro in bison documentation. do know "__bison_version"look-a-like-macro? anyone idea right function-call based on bison-version? ret = yyparse(void *) not syntactically correct c, regardless of bison version. perhaps not meant type. it's not clear me why yyparse() doesn't work in 1.875 code. perhaps define macro yyparse_p...

Ruby on Rails complex association with mapping table -

Image
i have following models: mapping , plan (plan_id), upgradegroup (pug_id), upgrade (pu_id), optiongroup (pog_id), , option (po_id). their relationship plan has many upgradegroup , upgrade , optiongroup , , option . upgradegroup belongs plan , has many upgrade , optiongroup , , option . upgrade belongs upgradegroup , has many optiongroup , option . optiongroup belongs upgrade , has many option . , lastly, option belongs optiongroup . i'm working multiple databases cannot change in way, , set of associations 1 i'm having trouble with. mapping table contains following details regarding how objects matched up. i have each of models set using proper table name , primary key, need set association can plan.upgrade_groups , 4 results (objects pug_ids: 12, 27, 28, 30), or plan.upgrade_group.first.upgrades , 1 result (pu_id: 44) , such. right i'm far plan.mappings #=> 16 results, mapping model is: has_many :plans, foreign_key: "plan_id" ...

Rails Ajax render partial with local variable -

hey trying render partial using ajax work in rails normal form when rendering partial using ajax local variables don't work trying create , dislike system have created model called feedlike here can , dislike using simple create , destroy when using ajax , there calling action below : $('#feed_like').html("<%= j render :partial => 'shared/dislike', :locals => { feed: @feed= @feed} %>"); i getting error no route matches {:action=>"destroy", :controller=>"feed_likes", :feed_id=>nil, :user_id=>1} and dislike link partial under : <div id="feed_dislike"> <%= link_to "dislike",{ :action => 'destroy', :controller => 'feed_likes', :feed_id => @feed, :user_id => current_user.id }, class: "btn btn-primary" %> </div> everything work fine when not using ajax when rendering partial why @feed not getting value supposed . ...

perl - GetOptions Check Option Values -

i updating existing perl script uses getoptions getopt::long . want add option takes string parameter , can have 1 of 3 values: small, medium, or large. there way make perl throw error or kill script if other string value specified? far have: my $value = 'small'; getoptions('size=s' => \$value); you use subroutine handle processing of option. user-defined subroutines handle options my $size = 'small'; # default getoptions('size=s' => \&size); print "$size\n"; sub size { %sizes = ( small => 1, medium => 1, large => 1 ); if (! exists $sizes{$_[1]}) { # die "$_[1] not valid size\n"; # changing use exit statement works expected print "$_[1] not valid size\n"; exit; } $size = $_[1]; } i put sizes hash, use array , grep toolic showed.

angularjs - keyboard navigation in the Bootstrap dropdown-menu -

as know using boostrap drop-down components not able select element pressing keyboard letter. using following code use directive myapp.directive('keyletterpressed', function ($timeout) { return function (scope, element, attrs) { element.bind("keydown keypress", function (event) { var target = $(event.target); $(target).trigger('focus'); }); }; }); but not complete, not working, can tell me how go element have same letter of list ? have put directive in ul element ? because using on li <li ng-repeat="v in values" keyletterpressed>{{v.name}}</li> another answer this, adding directive ul element app.directive('booststrapdropdown', function () { return { restrict: 'a', link: function (scope, element, attr) { console.log('linked'); element.parent().bind('keypress', function (e) { children = element.chi...

security - Hiding folders in XAP file -

as know, can see contents of xap file renaming . zip , opening zip tool. i know if there anyway make files/folders in xap file hidden? i.e. if person renames xap file . zip , uncompresses zip file see contents, particular file/folder needs stay "hidden." requirement in project. yes, user may see file/folder if he/she has selected "show hidden folders, files, , drives" in folder options. unzip archive folder hide several of files/folders using methodology os provides zip folder archive rename xap be aware extremely weak protection contents.

c# - Any Downside to Increasing "maxconnection" Setting in system.net? -

our system having problem wcf connections being limited, solved this answer . added setting client's web.config, , limit of 2 concurrent connections went away: outside of obvious impacts (e.g. overloading server), there downsides setting limit number (possibly much) higher default "2"? source on reasoning having default low begin with?

python - ProgrammingError 'column "scheme_id" of relation "value_calculator_newunit" does not exist' in Django 1.8.3 -

after lot of googling haven't been able find resolves specific issue. person's problem appears similar mine, it's not migration issue, python3 manage.py makemigrations followed python3 manage.py migrate doesn't resolve problem (no error messages), nor did resetting database empty state python3 manage.py flush . the error occurs whenever create scheme without associated newunit or refurbunit , try view or delete in admin interface (consequently becomes undeleteable in shell), or when try create new 1 refurbunit or newunit, in case doesn't created @ all. the project i'm working on far not different completed tutorial; substantial difference in views.py each project's main app. i'll post error message , code both project's app , tutorial's polls app (just reference, can't find up-to-date pre-completed tutorial project can compare code against): error message environment: request method: post request url: http://127.0.0.1:8000/ad...