Posts

HTML / CSS: I'm Experiecing With Divs? -

code: http://pastebin.com/00nds6kn i seeking put of on 1 page, in there no scrollbar present on browser when on page. have attempted set heights of divs percentage via css unsuccessful. i unable remove small white gap between div "footer" , div "banner" containing image. body { width: 100%; margin: 0px; background-color: #f5f5f5; } #container { height: 100%; } #navigation{ color: white; background-color: #292526; width: 100%; position: fixed; top: 0px; padding: 0.5% 0.5%; } #navigationleft { width: 24.5%; display: inline-block; vertical-align: middle; font-size: 180%; } #navigationright { width: 74.5%; display: inline-block; vertical-align: ...

node.js - Strongloop error: Cannot find module 'options' -

i wanted deploy app on remote linux server. using loopback , wanted follow instruncions in docs. ive build app using arc, started proces manager on remote host , deployed using slc deploy http://my.host . deploy successful, process manager started throw error: module.js:340 throw err; ^ error: cannot find module 'options' @ function.module._resolvefilename (module.js:338:15) @ function.module._load (module.js:280:25) @ module.require (module.js:364:17) @ require (module.js:380:17) @ object.<anonymous> (/home/arthdesigns/.strong-pm/svc/2/work/d3a01b1e3e31ee5561e69ef7aa072531cc581fc2.1454877049098/node_modules/sse/lib/sse.js:1:77) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) @ module.require (module.js:364:17) its strange, because on workspace works fine. know solution? okey, found solution. went sse.js , installed dependencies via np...

I can't move any controls in designer -

all controls in lower panel of designer , can't move them or select them in upper panel. did , how put normal? screetshot so apparently, there difference between unused references , unneeded ones. caused problem removing unused references not thinking may unused still necessary. cost me 6 hours invent lots of new curse words , learn 1 lesson. thank anyway

gradle - Android annotations with Android studio 2.0 beta -

trying build project new android studio 2.0 beta, uses gradle 2.1 , new gradle 2.0.0 beta plugin. i can see annotated classed generated fine, getting "cannot find symbol" error compiler , project not compile. it seems new gradle plugin maybe cannot see generated classes or similar. any idea? so after giving on new gradle plugin, found answer! it seems problem use new instant run feature introduced in android studio 2.0, doing replacing application class new instrumented class, , aa 3 having problems that. the solution use new (pre-released) aa 4, , change small configurations. it explained in details in wiki: https://github.com/excilys/androidannotations/issues/1639#issuecomment-165477743

.htaccess - Codeigniter remove index.php on https -

i using godaddy server provider , bought ssl certificate. gave me headache index.php in codeigniter project. can not remove index.php url. researched around , tried found nothing works me, not consider double please. if: https://example.com/index.php/home - works fine if: https://example.com/home 404 error. not found requested document not found on server. far, have stoped @ these conditions in htaccess file: rewriteengine on rewritecond %{https} off rewritecond %{request_uri} (sale|success|cancel) [nc] rewriterule ^(.*)$ https://%{http_host}%{request_uri} [r=301,l] rewritecond %{https} on rewritecond %{request_uri} !(static|sale|success|cancel) [nc] rewriterule ^(.*)$ http://%{http_host}%{request_uri} [r=301,l] rewritecond $1 !^(index\.php|resources|robots\.txt|static) [nc] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l,qsa] any advice helpful. thank you! remove index.php $config['base_url']...

scala - Extractor with pattern matching -

this scala code object twice { def apply(x: int): int = x * 2 def unapply(z: int): option[int] = if (z%2 == 0) some(z/2) else none } object twicetest extends app { val x = twice(5) println(x) x match { case twice(n) => println(n) } } prints 10 5 when twicetest run. question is: x integer , not function twice(n) , why pattern matching works? it's because of pattern matching expression. let's take @ it: x match { case twice(n) => println(n) } you matching using twice . in background, call twice.unapply() parameter x . if result some(foo) , substitute value of foo value of n . otherwise won't match. see this longer explanation.

javascript - What is wrong with this MODAL ? -

i work hard follow steps of this modal login, reason i'm getting nowhere! frustrating. so this webpage i'm working on. followed , it's suppose work. i briefly point out code snippets: right on top of page there's css styling: <style type="text/css"> /** modal window styles **/ #lean_overlay { position: fixed; z-index:100; top: 0px; left: 0px; height:100%; width:100%; background: #000; display: none; } #loginmodal { width: 300px; padding: 15px 20px; background: #f3f6fa; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); } #loginform { /* no default styles */ } #loginform label { display: block; font-size: 1.1em; font-weight: bold; color: #7c8291; margin-bottom: 3px; } .txtfield { displa...