Posts

html - unable to see the image in the frontend, joomla website -

Image
my website running on joomla 3.0 , have created customhtml module type on page of website www.earthandwaterpictures.com . problem updating text of particular module getting reflected on frontend, when i'm trying insert image, left aligned text, image getting displayed properly. in short, i'm able make changes text, not the image. here link page http://earthandwaterpictures.com/index.php/about-us . have tried clearing cache of browser , joomla system menu. if right click , inspect element on browser itself, you'll see tag without syntax error or anything. your picture has display: none . you should rid of fav-breadcrumbs id on container element:

c++ - QT can't find openCV's libs -

i've installed opencv via this instruction. i use opencv when , build code via cmake - , it's ok. i'm trying use opencv qt, , errors this: error: undefined reference `cvcreatecameracapture' the same errors functions opencv. i tried add in .pro code: includepath += /usr/local/include/opencv2 libs += -l/usr/local/lib libs += -lopencv_core libs += -lopencv_imgproc libs += -lopencv_highgui libs += -lopencv_ml libs += -lopencv_video libs += -lopencv_features2d libs += -lopencv_calib3d libs += -lopencv_objdetect libs += -lopencv_contrib libs += -lopencv_legacy libs += -lopencv_flann but isn't work. dir /usr/local/include/opencv2 exist , not empty. so, what's wrong? add .pro file: libs += "pkg-config --libs opencv"

About checking fields around in 2 dimensional array [C++] -

i know might sound stupid, got ask. it's easy thing. you have 2 dimensional array, elements inside or empty, location(x , y) , have draw 1 field free fields around. i know how it, doesn't seems ... elegant or nice. way doing checking if i'm on max left, max right, top, bottom, etc. if there in fields around, , rand(). it's long , seems unpleasent. don't know if there's shorter way? thanks. and sorry english, doing best. there might performance issues. critic situation when have point [x, y] in corner, rand() can possibly select invalid elements multiple times, have rand() , check again. the way i'd it, check available neighbours , push each valid neighbour std::vector . after that, there's 1 random number generation chooses 1 element within vector: std::vector<coordinate> validneighbours; // coordinate struct x , y integers, can use std::pair<int, int> or pointers elements if(/* has neighbour left*/) validne...

Quaternion to Euler angle conversion -

i using imu (mpu9150/9250) measuring relative joint angle. if in 2 different conditions where, x , z towards user z , x towards user how can convert quaternion euler angle in zyx sequence out having singularity? best regards, akhil

php - variable the loop doesn't increase -

need count updated data in table, $up stays 0. data received imported csv file. $up=0; { //loop through csv file if ($data[0]) { $res = mysql_query("select ..."); $check=false; for($i = 0; $array[$i] = mysql_fetch_assoc($res); $i++){ while ((condition)){ $check = true; $i++; }; }; if ($check) { $up++;//this not work mysql_query("update ..."); } else { mysql_query("insert ..."); } } } while ($data = fgetcsv($handle,1000,",","'")); there's code below do-while loop choose file , messege $up <html> ... <?php if (!empty($_get[success])) {echo $up; } ?> <form action="" method="post" enctype="...

How can i detect that user has pressed enter key (in java) And what, if i want to use enter key in the condition of a loop? -

please me! m new java. want specific line of code must executed after enter button has been pressed. like: int x= in.nextint(); value stored in x after pressing enter. now want use such mechanism in loop.means; perform statement if enter button has pressed else statement. if(!enter key pressed) { } else if(space has been pressed) { } tell me kind of code should write in java? i don't want use listeners. so suggest me should do? simply read line of input. if you're reading user input: bufferedreader br = new bufferedreader(new inputstreamreader(system.in)); string input = null; try { input = br.readline(); //this code executed after user pressed enter } catch (ioexception e) { //handle exception } likewise, if you're reading file, change system.in file (opened file object): file file = new file(path); bufferedreader br = new bufferedreader(new inputstreamreader(new filereader(file))); if want distinguish between i...

mysql - Column value of first table needs to be update automatically whenever the second table row is updated or added -

column value of first table needs update automatically whenever second table row updated or added. i have 2 table ccncsr , csrtimereporting mysql> select * ccncsr; select * csrtimereporting; +-----------+-----------------------------------------+----------+-------------+-----------+-------------+------------+------------+------------+-------------------+--------+ | csrnumber | slogan | severity | customer | status | createddate | ccnqdate | tts | iadate | totaltimereported | remark | +-----------+-----------------------------------------+----------+-------------+-----------+-------------+------------+------------+------------+-------------------+--------+ | 2718122 | diameter link flicks between ggsn-ccn38 | high | ideaindia | null | 2105-03-04 | 2105-03-03 | 2015-03-28 | 2105-03-13 | null | na | | 2718133 | auto zr | high | airtelindia | analysin...