Posts

Appcelerator Studio 4.5 running error in ubuntu 64 -

i'm trying run appceleratorstudio executable file appcelerator_studio downloaded folder, show 2 error sudo and without sudo . i'm using ubuntu 15.05 x64. sudo ./appceleratorstudio error: "ooops! cannot run using sudo. please re-run using nan account." ./appceleratorstudio error: "an error has occurred. see log file null." screenshot (build 4.5.0.1446607552) [error] ooops! cannot run using sudo. please re-run using nan account. org.eclipse.core.runtime.coreexception: ooops! cannot run using sudo. please re-run using nan account. @ com.appcelerator.titanium.rcp.handlers.titaniumsplashhandler$6.run(titaniumsplashhandler.java:455)

sql - How to insert date in a table column with a trigger. (ORACLE) -

essentially wish create trigger keeps track , edits date_created column of specific row after every insert or update. these columns in table: | customer_id | store_id | quantity | date_created | the customer_id , store_id primary key of table what have far: create or replace trigger date_trig before insert on customer_table each row declare begin -- assume date set or edited end; i brand new pl/sql struggling actual body of trigger. also, have structure of trigger correctly formed? use default sysdate on colum date_created suggested if insist use trigger, write :new.date_created := sysdate;

osx - Oh My ZSH & Vim Insert Cursor -

currently using oh zsh, however, when using vim in insert mode, @ end of line, when using arrows navigate, insert mode ends when hit end of line, making impossible delete last character on line, following theme file, can me out this? https://github.com/andrew8088/oh-my-zsh/blob/master/themes/doubleend.zsh-theme thanks! afaik it's not recommended move around in insert mode @ all. if want delete last character on line, hit $x in normal mode. delete last character on line , go insert mode, use $s . in cases should move faster in normal mode usign w , e , ^ , like, using arrows in insert mode. why use vim if use notepad application? hope helps

CSS Selectors - change width if last image id is X -

i try several hours figure out how change width of class if there image id before element. currently code looks that <blockquote> <img id="bp_avatar" src="..."> <p>text</p> </blockquote the problem image been dynamicly inserted, in cases there in other wont. tried wrap image inside text, fit blockquote p needs width of 90%. so here issue, should 90% if it's there , 100% if not there. use css instead of jquery, found on w3 documents level 4 selectors , tried use them, goal apply style if #bp_avatar there. so tried ways #bp_avatar ~ #bluepostq blockquote p { width: 90%!important; } #bluepostq blockquote p! > #bp_avatar{ width: 90%!important; } none of them worked yust nothing happens, think missunderstood , hope tell me have done wrong. using ~ correct, need use bit differently: p { width: 100%; } #bp_avatar ~ p { width: 90%; } this make p 100% width if preceded #bp_avatar 90%. if at...

arm - GIC v2 Virtualization Supported System -

i'm trying implement kind of interrupt routine. it's related virtualization gic v2 h/w support. my question : when catch interrupt number, hypervisor should distingush if it's own or guests ran on hypervisor. how check it? if it's hyp or guest? it's question. please let me know if correct or not. need more backgrounds. thank replay before. the simplest way fiq interrupt assigned secure world , irq normal world. there trustzone register ( scr or secure configuration registers) route irq/fiq monitor or straight os in current world . gic allows interrupt either fiq or irq (i think documentation calls type 0 , type 1 ). can route monitor or can dynamically switch (on world switch) interrupt routed. world | normal | secure ------+--------+-------- fiq | monitor| through irq | through| monitor the monitor trap require saving lot of registers (a world switch save registers). can trust secure interrupt handler somewhat, bets shou...

javascript - Is it possible to pass the result of a promise as an argument to IIFE -

i have been refactoring old code uses iife fetch , initiate set of values. var exampleinitiate = (function exampleinitiate(){ ..call backend service })(); now, per new requirement, have call same iife argument, , argument result of promise invoked later. understand iife invoked, , if result of promise, able call iife again? understands iifes run once only. i thinking best not use iife here not fit here in case. correct, or there indeed way call iife passing argument value promise? you can have couple of options if understand correct. first can pass argument iife this: var mypromise = getpromise(); var exampleinitiate = (function exampleinitiate(promise){ promise.then(function() { ... }); ..call backend service })(mypromise); but wouldn't call way clear. suggest erase iife , use promises do: getsomebackendresponse().then(function (data) { ... }) edit: if iife returns promise yes, think can't pass in result of function again, since iife invoked o...

java - Interactive Graph for android applicaiton -

Image
how create graph similar miband ui, i'm new android ui development. slide/scroll graph horizontally , values bound in x-axis must move along. thing i'm looking forward highlight bar when pointed value pointer on x-axis.