Posts

c - installing qt4-make on ubuntu 12.04 LTS -

i running ubuntu 12.0.4 lts on controller. trying install qt4-make using apt-get, getting message package not found. need make , compile file. how can install ? also, there alternative can download ? tried sudo apt-get install libqt4-* . still nothing happens. i think qt4-make qmake, try this: sudo apt-get install qt4-qmake

ios9 - iOS 9 Xcode 7 - Application appears with black bars on top and bottom -

Image
installed app on iphone 6 ios9 , here happened. notice black bars on top , bottom. works fine on ios8. how can fix it? i've tried building xcode 6.4 & 7. same result. (iphone 5 used run iphone 4 apps this) did migrate app earlier version of xcode? if xcode making assumption screen size , need way of indicating actual screen size @ run time. there 2 ways: a) if use launch screen. you missing launchscreen.storyboard file. create launchscreen.storyboard file , add project. b) if don't use launch screen. go target's settings , choose general, app icons , launch images. set "launch screen file" "main.storyboard" (or storyboard if appropriate)

owl - Why Jena is not returning declared RDFS properties? -

i use jena's ontclass.listdeclaredproperies() functions. every class supposed have rdfs properties (e.g. rdfs:comment), listdeclaredproperies never returns of them. how associated class , how them? update 1 i thought ontology classes have automatically declared rdfs properties. in documentation of rdfs properties written comment property "the rdfs:domain of rdfs:comment rdfs:resource". because ontology classes rdfs:resource thought should have rdfs:comment property automatically , should (together other rdfs properties) calling listdeclaredproperies function (this function returns properties of superclasses) i'm missing rdfs properties... example so when call listdeclaredproperies @ class (anyclass.listdeclaredproperies()), rdfs properties listed "normal" properties. why doesn't work? can add value of rdfs properties class or individual (e.g. label, comment etc.) explanation.

html - PHP return partial script -

i creating php (let's call pagex.php) file produces html. html has button when press it, send ajax request. to avoid having multiple files, want send ajax request same file. (pagex.php) i don't want ajax response return entire php generated response have normal request pagex.php. looking php method stop executing , return has. i understand can big if statement, don't wrapping bottom part of code braces. looking equivelent of "break" statement php return current php generated html. is possible? send ajax request pagex.php?ajax=y can <?php if(!empty($_get['ajax'])) { //return ajax data exit; } ?> //your normal html code here

security - Is it safe to type password when scripting commands via ssh? -

i've seen handy command query distant database local machine: ssh user@server 'mysql -uimauser -ppassword imadb -e "select * table"' but wonder how safe is? can capture password? if how? i'm aware works too: ssh user@server 'mysql -uimauser -p imadb -e "select * table"' but automation purpose, prefer first solution (if safe of course). i've tried capture password ps didn't see (my knowledge of ps poor).

Grade Calculator JavaScript not running -

i attempted create grade calculator value of grades in javascript. no parts of code executed when code run. there blatant error in code's syntax? thanks, ben var numberofgrades = prompt("how many grades want calculate?"); var countingvalue = 1; var grades = [0]; var tempgrade = 0; var averagetotal = 0; for(i=0;i<numberofgrades;i++;){ if(countingvalue!=numberofgrades){ var tempgrade= prompt("what "+countingvalue"th grade?") grades.push(tempgrade); countingvalue++; } else if(countingvalue==numberofgrades){ for(var j=1;j=<numberofgrades;j++){ averagetotal = grades[j]+averagetotal; } } alert("your average grade is: "+(averagetotal/numberofgrades)); newest edited code- var numberofgrades = prompt("how many grades want calculate?"); var countingvalue = 1; var grades = [0]; var tempgrade = 0; var averagetotal = 0; for(i=0;i<numberofgrades;i++){ if(countingvalue!=numberofgrades){...

swift2 - Haneke - hnk_setImageFromURL -

i tried hnk_setimagefromurl says "value of type 'uiimageview' has no member 'hnk_setimagefromurl'. i have imported haneke.xcodeproj manually. on top of class there 'import haneke'. in project under 'build settings' architectures, needed change 'build active architectures only' setting 'yes' worked.