Posts

postgresql - Select from table identified by OID -

is possible select table know oid of? like select * 123456::regclass i understand can in function, constructing dynamic query, seems strange cannot directly -- assume postgresql translates table names oids moment starts analyzing query, why cannot save trouble? no. oid global counter can wrap around . meaning there can multiple tables containing objects of same oid. if there hack around, error prone in least

Export Maya scene to Three.js -

is there way export whole scene maya three.js. exported elements should be: mesh, textures, cameras, including lights, shadows etc. so can proper rendered effect been in maya. if read doc maya exporter , doesn't support exporting lights. you'll have create manually in three.js code. i don't know current status of three.js loaders havn't used while collada , fbx exporters shaky. and still seem be. can try exporting maya fbx , convert (fbx file format supports lights). obj file format doesn't support support lights of animation easiest way go. long story short, export models correct materials , create , place lights manually. ps: can't export shadows.

django - "Conflicting models in application..." with external database tables -

i have project number of applications accesses both local mysql database 100s of tables, , several external mysql , ms-sql server databases many more tables. of external tables defined in models using "managed=false" meta data. i upgraded django 1.6 1.7 following instructions in release notes , other hints, etc. stackoveflow. everything seems working again exception of of applications access remote database tables. here example message: runtimeerror: conflicting 'bugview_deferred_description_disposition_divisioaf59cb28117de5eb6ddfea0476dab601' models in application 'nvbugsdw': <class 'bug_metrics.models_bugs.bugview_deferred_description_disposition_divisioaf59cb28117de5eb6ddfea0476dab601'> , <class 'bug_metrics.models_bugs.bugview_deferred_description_disposition_divisioaf59cb28117de5eb6ddfea0476dab601'>. the table bugview defined in file names models_bugs.py follows: class bugview(models.model): bugid = m...

c++ - whats differences between setInformativeText &setText functionaly? -

in qmessagebox class in qt there settext & setinformativetext functions,whats function of second 1 while thing first do? qt documentation says informativetext : on mac, text appears in small system font below text(). on other platforms, appended existing text. so if don't use application on mac can use settext whole text want display user.

javascript - Jquery Plugin for tables that allow accordion like expanding and filtering of rows -

i looking create table of data allows following: click able rows expand accordion display text. a filter function: when user clicks link @ top of page of rows disappear. ideally similar photography portfolio pages animate show categories of pictures. any guidance welcome. accordion functionality can achieved bootstrap's collapse feature: http://getbootstrap.com/javascript/#collapse having filters have accomplished through database-driven application defining characteristics recorded attributes in table. recommendation php/mysql. presents steep learning curve, can start making static pages bootstrap right away, , code multiple pages, 1 each filter "filter" hyperlink page displays rows.

PHP Session Class return values -

i have simplet session class (below): class session{ public static function init(){ @session_start(); } public static function set($key, $value){ $_session[$key] = $value; } public static function get($key){ if (isset($_session[$key])) { return $_session[$key]; } else if(empty($key)){ return $_session; } } public static function destroy(){ session_destroy(); } } to set single session value use session::set(name, value); to set multiple session value use session::set(name, array(name, value....)); then retrieve session require use: session::get(name); now problem when can set multi dimension values, cannot them current function above. how can re-structure get($key) not returns single request request session::set('joe', 'bloggs'); session::set('beth', array('age'=>'21','height'=>'5.5ft'...

gradle - Didn't find the class rx.android.schedulers.AndroidSchedulers -

i'm using both rxjava/rxandroid , jackson-databind in application seems 2 libraries can't work together. when try run application returns following error: java.lang.classnotfoundexception: rx.android.schedulers.androidschedulers here gradle file: apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.2" defaultconfig { applicationid "myapp" minsdkversion integer.parseint(project.android_min_sdk_version) targetsdkversion 23 versioncode 1 versionname "1.0" multidexenabled true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } compileoptions { sourcecompatibility javaversion.version_1_7 targetcompatibility javaversion.version_1_7 } packagingoptions { ...