Posts

server - how to make a browser application,android application and ios application in a single stretch -

can suggest me how make hybrid app using ionic , backend mongodb , server node running node in server automatically stated ionic front end page , works fine in browser but while running ionic serve --lab not connecting server i implemented browser application using above while making .apk file not able connect server can 1 suggest solution this hi found solution done server using rest api , front end ionic connecting rest api

Preventing Users from Seeing Old Data MySQL/iOS -

i'm using app allows users upload , download pics. similar snapchat can view pics of follow. after 24 hrs these pics moved archive table users no longer able see them. i'm accomplishing aspect mysql partitions. however, on client side need continuously update mysql query date of last gotten row photos table. store date on ios app. becomes problematic if users logs out , allows else log in. have clear data , have not reference point either user now. i have solution around , want know how feasible is. create trigger run each time user retrieved photos. update column on users table hold last date viewed. way when user logs in have reference last date viewed. idea? i'm open suggestions on how better approach seeing how need save pictures instead of deleting them. *note partitions work because need ensure photos last minimum of 24 hrs photos end lasting more 24hrs providing possibility users can still see photos photos table *id: binary 16 *users_id: foreign: bin...

hadoop - Kafka on Windows - start service error -

i trying cleanly start kafka 2.10 - 0.8.2.1 on windows getting annoying error everytime start it. i have installed kafka following quick start guide (with exception have installed zookeeper myself). both kafka , zookeeper installed basic, on single machine. problem when run starting script: kafka-server-start.bat c:\kafka_2.10-0.8.2.1\config\server.properties i error: error [2015-07-14 17:00:45,197] warn error when freeing index buffer (kafka.log.offsetindex) java.lang.nullpointerexception @ kafka.log.offsetindex.kafka$log$offsetindex$$forceunmap(offsetindex.scala:301) @ kafka.log.offsetindex$$anonfun$resize$1.apply(offsetindex.scala:283) @ kafka.log.offsetindex$$anonfun$resize$1.apply(offsetindex.scala:276) @ kafka.utils.utils$.inlock(utils.scala:535) @ kafka.log.offsetindex.resize(offsetindex.scala:276) @ kafka.log.log.loadsegments(log.scala:179) @ kafka.log.log.<init>(log.scala:67) @ kafka....

openerp - Populating dropdown list according to product id in Odoo -

i have created tab in product form manufacturer. has manufacturer_name , manufacturer_partno fields , others. each product has multiple manufacturers (one many relationship). want dropdown of manufacturer_partno in add supplier form of same product (same product id). want know how possible. please me out if can. // product class extension class product_template(osv.osv): _inherit = "product.template" _columns = { 'mrpproduct_partnumber': fields.char("part number", size=30, required=true), 'mrpproduct_description': fields.text("description", required=true), 'mrpmanufacturers_ids': fields.one2many('mrpproduct.manufacturer','mrpproduct_id',string="manufacturers"), 'mrprohs_compliant': fields.boolean('rohs compliant'), 'mrprequires_inspection': fields.boolean('requires inspection'), 'mrpperishable': fie...

Running same job in Parallel using Jenkins and build flow -

i trying run same automated job (deriv_client_add) in parallel different parameters: parallel( {build("gui/deriv_client_add", branch:params.branch, config:params.conf)} ) if run job multiple times different branch , config queues them up. there way run same job multiple times in parallel? thank ;) try below plugin suit requirement checkthis

R tolower function -

how convert data frame lower case if use tolower(df) , workspace crashes.x ps: df has around 400000 rows , 4 columns , need text inside df in lowercase try: x<- apply(x,2,tolower) this works smaller dataframes. might have chunk yours , rebind them many rows though.

java - OnClickListener doesn't work implicitly. Why? -

i created custom button class implements listener interface: public class blinkbutton extends button implements view.onclicklistener { list<onclicklistener> onclicklistenerlist = new arraylist<onclicklistener>(); public blinkbutton(context context) { super(context); this.setlistener(new highlightbuttonlistener()); } //other constructors here public void setlistener(onclicklistener listener){ onclicklistenerlist.add(listener); } @override public void onclick(view v) { for(onclicklistener listener : onclicklistenerlist){ listener.onclick(this); } } and have view: <com.example.element.blinkbutton .../> i claim onclick method inside com.example.element.blinkbutton should call implicitly when user clicks blinkbutton, it's not. have write explicitly: android:onclick="fireevent" , public void fireevent(view view) { fireeventbutton.onclick(view); } why blinkbutton.onclick(); doesn...