Posts

openerp - Custom module doesn't show up in the list of apps -

i trying install module odoo 8 odoo 9. i copied on whole folder addons folder in odoo 9 , expecting can somehow install module in odoo 9 doesn't show in list of apps install. there changed in structure of odoo have prepare module show in apps list? thanks in advance. you not see modules/apps because must update list of modules. first need restart server . after login administrator , activate developer mode . go settings(top menu) -> update apps list(left menu) -> refresh page(or better: logout, clear cache, restart server etc. :) ). after steps must see modules. hope you.

android - Select an area on bitmap with 4 points using Matrix.setPolyToPoly -

Image
i playing bitmap on android , facing issue when selecting area on bitmap using 4 points. not sets of 4 points work me. in cases, result blank bitmap instead of cropped bitmap (like in picture) , there not error in logcat(even memory error). here basic code used transformation. import android.app.activity; import android.graphics.bitmap; import android.graphics.bitmapfactory; import android.graphics.canvas; import android.graphics.matrix; import android.widget.imageview; public class cropimageactivity extends activity { private imageview mcroppedimageview; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.crop); setupviews(); docropping(); } private void docropping() { bitmap srcbitmap = bitmapfactory.decoderesource(getresources(), r.drawable.sample); //target size int bitmapwidth = 400; int bitmapheight = 400; bitmap bitmap = bitmap.createbitmap(bitmapwidth, bitmaphei...

jQuery checking the length of array before each? -

quick question, need if statement .length below? var $colspans = $("td[colspan='0']"); if($colspans.length){ $colspans.each(function(){ no, since length 0 ans it's not $colspans null , you're not in danger of trying call on nothing. won't iterate because there's nothing to iterate over.

Add count as property to javascript object -

i have 2 arrays: one categories one datarecords every data record belongs specific category. with every use of filter (e.g. searchfield ) on datarecords , want add total count of records per category each category-object , can display them on every tab-pane (e.g. text: algemeen , value: 'general , countfiltered: 2 ) i made fiddle this. till no count-filtered, locally constant error corresponding line 78 in fiddle: uncaught (in promise) type error: cannot read property '0' of undefined how can achieve this? this isn't think here: var filtered = results.filter(function (results) { return (results.category.tolowercase() == this.categories[cat].value.tolowercase()); }); you can either pass in thisarg filter : var filtered = results.filter(function (results) { return (results.category.tolowercase() == this.categories[cat].value.tolowercase()); }, this); or in es6 can use arrow function : var filtered = results.filter(...

subquery - How Can I Replicate This SQL Sub Query In Neo4j -

i new neo4j , graph databases, have background in relational databases. my question request advice on how replicate sql server query efficiently in neo4j. i starting new project think suited neo4j due number of friend-of-a-friend type relationships have store. using neo4j 1.8.1 , c# write application one part of project has section has structure comparable twitter, , need help. i use twitter analogy explain problem: i have list of text blobs (tweets) , each blob can in 0, 1 or many categories (hash tags). unlike twitter, have users linked 0, 1 or many categories. i conceive graph looking this: t = text blob node, c = category node, u = user node t-------c-------u \_____/ \_____ / \ \ t-------c-------u \_____ \ t-------c-------u _____/ \_____ / \ t u when application running, estimate there 10,000,000 records (i archive more this), 100 categories , 1000 users. currently have simple sql server database test this: ...

What is returning "nothing" from Excel.Range.find in c# -

what nothing mean me, when api tells me function returns nothing? need use try-catch block call function? give me issue if try set equal nothing? basically...what proper way of handling "nothing"? excel.range headers = exsheet.range[exsheet.cells[1], exsheet.cells[numcols]]; excel.range columnheader; //some code... columnheader = headers.find(columnlist[i]); documentation- this method returns nothing if no match found. excel.range.find upon reading documentation see method returns microsoft.office.interop.excel.range fine, know ran problems earlier function returned range ( range.specialcells ) had use try-catch block in order ensure wouldn't crash program if no special cells found. see what's equivalent of nothing? : for reference types, equivalent of vb's nothing c#'s null. value types, it's default value - 0, false, etc. so according documentation, should fine when check null .

debugging - Android Studio 1.5 "View Bitmap" downscaled -

Image
i having issue "view bitmap" preview functionality of android studio. having bitmap 29000 , height 255. when click "view bitmap" in debugger on bitmap class, see downscaled version. yes aware 29k width lot, working android studio < 1.5, guess setting somewhere. here info bitmap in debugger view and here bitmap when click on "view bitmap". as see dimensions not right. debug preview bitmap way smaller 1 want see. any suggestion how fix that?