Posts

Accessing C function from java code in android -

if @ /platform/external/bluetooth/bluedriod in android source code , there several files there several c function. how access these c function rooted android phone. doing small experiments , need call functions. wondering how can this? you can access native code using ndk, check out

scroll - I edited some CSS, and now my page is weirdly twice as wide -

i'm using preset portfolio service called cargo collective. i edited top padding navigation window header wouldn't cover it. the page twice wide, , has h-scroll bar @ reasonable browser width. i searched through px padding in css, there's nothing glaringly obvious. conclusion repeating 670px width on twice. here's link page: http://cargocollective.com/brookeseggleston here's code section: /* * header / navigation */ .header_img { position: relative; left: 20px; top: 20px; z-index: 15; } .nav_container { background: #ffffff; line-height: 1.8; margin: 0px; padding: 50px 0 20px 20px; position: fixed; top: 198px; left: 20px; white-space: nowrap; width: 190px; z-index: 12; } /* enabled via display options */ .nav_container.horizontal { left: auto; padding: 35px 0 60px 35px; position: relative; top: auto; width: 670px; z-index: 25; } .nav_container.horizontal div { float: l...

ssas - complex MDX query(s) -

i have cube following structure 1 measure sales count three dimensions. brand, region, gender i need mdx query(s) returns following 8 tuples. total sales across dimension attributes including unknown values the single highest value of combination of attribute values each dimension. total sales brand attribute identified stat 2 total sales region attribute identified stat 2 total sales gender attribute identified stat 2 total sales brand attribute region attribute identified stat 2 gender attributes total sales region attribute gender attribute identified stat 2 brand attributes total sales brand attribute gender attribute identified stat 2 region attributes your first query perhaps written using crossjoin show possible combinations of brand, region , gender: select { {[brand].defaultmember.children}* {[region].defaultmember.children}* {[gender].defaultmember.children} } on rows, {[measures].[sales count]} on columns [your_cube_name] does ...

Run Eclipse Java project outside Eclipse -

i'm java newbie. have java application runs in eclipse. have exported jar file aaccording instruction found @ http://www.vogella.com/tutorials/eclipse/article.html#firstjavaexport . however, when run application command line, error message saying: exception in thread "main" java.lang.noclassdeffounderror: org/openqa/selenium/webdriver @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(unknown source) @ java.lang.class.getmethod0(unknown source) @ java.lang.class.getmethod(unknown source) @ sun.launcher.launcherhelper.getmainmethod(unknown source) @ sun.launcher.launcherhelper.checkandloadmain(unknown source) caused by: java.lang.classnotfoundexception: org.openqa.selenium.webdriver @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ ja...

python - PyDev - unable to import modules which are under sub directory -

i have python project structure shown below, ├── example    ├── test.py    └── module       ├── __init__.py       ├── mymod.py       └── submod.py i imported above project pydev project , test.py not import mymod . importing module inf following way. from module import mymod i added module directory pydev pythonpath did not hep. i run test.py console without problem. add example python path

sql server - How to recognize SqlException where user cancelled? -

so, cancelled query using sqlcommand.cancel. sql client returned sqlexception following message: a severe error occurred on current command. results, if any, should discarded. operation cancelled user. fine me. but, have gracefully deal since it's not regular error should reported. problem is, besides message there no indicator inside sqlexception object i've found identify caused user cancelling query. i don't want use message itself. message changed @ 1 point or translated language @ point. error number property 0 , class property 11. for sql server 2008 r2 , .net 4.0 following properties of sqlexception set if property sqlconnection.fireinfomessageeventonusererrors set true class: 16 number: 3204 message: backup or restore aborted. restore database terminating abnormally. operation cancelled user. if property sqlconnection.fireinfomessageeventonusererrors set false class: 11 number: 0 message: operation cancelled user.

javascript - How to create Top Bar which does not refresh when page is refreshig with Ajax or? -

i have created simple top bar new website. here code him in css. it's simple div bar. .topbar { display:block; width:100%; height:40px; background-color:#f5f5f5; } i want put in top bar simple .swf flash mp3 player. , want make bar not reload or refresh when people browsing inner website pages on top bar exists. something top bar on http://soundcloud.com how can make bar not refresh? thanks in advance! p.s. don't want put rest of website in iframe. somehow want make javascript? can explain more - http://angularjs.org/ given me answers! you can not refreshing entire page refreshing parts (other top bar) using ajax , javascript. you can use easy , strong framework angularjs .