Posts

jquery - Bootstrap collapse not opening/closing -

jquery - Bootstrap collapse not opening/closing - i working on new webpage working collapse's not open or close included jquery en bs3 modals, smooth scrolling working. the page http://codenamelungo.net/wiki.php it's safe assume because bootstrap js coming in text/rocketscript instead of text/javascript, browser doesn't know how handle it. i see if can disable script since it's coming through cdn , minimized. reference stack: http://webmasters.stackexchange.com/questions/60276/how-does-cloudflares-rocket-loader-actually-work-and-how-can-a-developer-ensur add data-cfasync="false" script tag in manual mode. jquery twitter-bootstrap collapse

c# - How to get the index of a listview item by it's text -

c# - How to get the index of a listview item by it's text - i'm trying index of item it's text in listview. example, have list view contains items: "item1", "item2"..etc i've tried index of "item2" this: messagebox.show(listview1.items.indexof("item2"); but it's not working... help please? listview.finditemwithtext method want. check out: msdn var item = listview1.finditemwithtext("item2"); if (item != null) { messagebox.show(listview1.items.indexof(item).tostring()); } c# forms listview

MYSQL LEFT JOIN BRINGS WRONG RESULTS -

MYSQL LEFT JOIN BRINGS WRONG RESULTS - i trying figure out why bring together brings results does. here simple test im working on. i have 2 tables : table1 , table2. table1 ------------------- id name amount --------------------- 1 | fred | 2 3 | fred | 3 5 | fred | 4 2 | hellen | 3 4 | hellen | 3 6 | hellen | 3 table2 ------------------- id name amount --------------------- 1 | fred |4 2 | hellen |3 3 | paul |3 4 | fridah |5 when utilize next statement select p.name,sum(p.amount) amount `table1` p left bring together table2 c on p.name = c.name grouping c.name , p.name i result --------------- name amount --------------- fridah | 5 paul | 3 fred | 12 hellen | 9 but wierd. want sum of amount table1, b ut bring together gives me sum of both tables. why this? this query: select p.name, sum(p.amount) amount `table1` p left bring together t...

php - Assigning a menu to a view page in drupal 7 -

php - Assigning a menu to a view page in drupal 7 - i have 3 menus named main menu, microsite menu, supernav menu. creating view page , wanted include microsite menu. view page taking default main menu, how can remove main menu , embed microsite menu. cant see alternative selecting available menus in view page settings. how can accomplish this? is there alternative embed microsite menu using php? a menu creation, , build block .. thats true? if yes .. go block --> find microsite menu block --> configuration ---> show block on specific pages ---> select alternative tow (only listed pages) --> set in text area page view name .. and go main menu block --> same lastly steps exeption select selection 1 ( pages except listed ) , set page view name also can utilize context module very nice action go here can set condition, place, rule, pages, block ... by php code can utilize code in block configare if(arg(0) == 'page1') { homecom...

How to get folders from physical path from server in asp.net c#? -

How to get folders from physical path from server in asp.net c#? - i have deployed web applciation in sever, when click button folders "d:\test\" has added in foldername list string path = @"d:\test\"; list<string> foldername = new list<string>(); foreach (string s in server.mappath(path)) { foldername.add(s.remove(0, path.length)); } but above code doesn't work. in way can add together folder name in list c# asp.net

php - Reducing MSQL Query to a specific session -

php - Reducing MSQL Query to a specific session - using code below, able display each username , trial 1/0 flag in table. want display info existing user can "hello username, have trial access..." etc... we're using standard htacess un/pass come in info area. what needs alter here show existing user's session? <?php $user_name = "blahblahblah"; $password = "blahblahblah"; $database = "blahblahblah"; $server = "127.0.0.1"; $db_handle = mysql_connect($server, $user_name, $password); $db_found = mysql_select_db($database, $db_handle); if ($db_found) { $sql = "select * member_auth"; $result = mysql_query($sql); while ( $db_field = mysql_fetch_array($result) ) { print $db_field['username'] . " : "; print $db_field['trial'] . " <br> "; } mysql_close($db_handle); } else { print "database not found "; mysql_close($db_handle); } ?> pl...

c++ - Build SDL mixer for Android -

c++ - Build SDL mixer for Android - i have build sdl android. but, unfortunately, sdl_mixer missing there. want build sdl mixer. problem is: sdl_mixer wants sdl, how can include libsdl.so , sdl includes eclipse sdl_mixer project? in android.mk sdl_mixer, there reference sdl library: local_shared_libraries = sdl2 so, if build 2 libraries together, reference fulfilled automatically. alternatively, can define sdl2 prebuilt_shared_library. android c++ android-ndk sdl