Posts

html - PHP Auto update selectbox based on 1st selectbox -

i have 2 selectboxes <h3>results</h3> <select id="register_form" name="sport" /> <option value="rugby">rugby</option> <option value="cricket">cricket</option> <option value="football">football</option> </select> <?php echo'<select name="match">'; echo'<option value="'.$row['event_id'].'">'.$row['team1'].' vs '.$row['team2'].'</option>'; echo'</select>'; ?> <input id="register_form" type="submit" value="display" name="submit" /> user searches result by: selecting sport type in 1st selectbox , in 2nd selectbox option values populated based on sport type. is possible in php without user having first press submit $_post value of sport type? what best option...

postgresql - Postgres Compress data on server side and decompress on client side -

is there mechanism in postgres allows compress data on server side before sending client , decompress on client side save time needed send large amount of data through slow connection? libpq documentation states there parameter sslcompression when enabled allow data stream compressed. requires compatible openssl libraries used , of course ssl enabled. depending on how you're connecting server might option. there no compression in actual protocol itself. have use separate compressing tunneling achieve that.

c - How to implement structure of linked list or binary tree in MPI? -

in c define structure linked list or binary tree that: struct list{ int val; list *next; }; or struct tree_node{ int val; tree_node *left, *right; }; we can assign pointer of next memory location in serial programming. question how handle pointer in mpi multiple processor has local memory? how keep track it? how implement linked list/binary tree in mpi? know mpi_graph. not useful in scenario. i appreciate answer. in advance. i'll discuss linked list, of applies binary tree little work. implementing linked list in classical sense isn't possible in mpi because, said, each process has own local memory won't consistent on other processes. limits using simple point point messaging unless want lot of work wouldn't make sense. however, possible using 1 sided communication, or rma. in fact, there's example code here . basic idea of rma each rank exposes region of memory other processes. then, appropriate accessors , synchronization calls, ...

video.js - videojs-youtube updated source not updating duration -

i've managed hook videojs youtube using https://github.com/exon/videojs-youtube . problem have is, after update source different youtube video, doesn't update duration of player, duration bar doesn't work properly. any ideas how can duration of updated youtube video , update duration on player? thanks

osx - Apple Crontab alternative plist to cd a folder and then execute yii script -

i want recreate crontab new apple plist file describe , execute background scheduled job. the reason want recreate because crontab has depreciate in osx , had few background process working until made , update 10.10.3 */1 * * * * cd /library/webserver/documents/testdrive/protected/ && ./yiic smssender crontab navigating protected folder , executing ./yiic smssender. <?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>label</key> <string>com.chapskev.crontabtest</string> <key>programarguments</key> <array> <string>/users/al/bin/crontab-test.sh</string> </array> <key>nice</key> <integer>1</integer> <ke...

java - What is the Oracle term for an sql catalog? -

i using java's interface databasemetadata jdbc driver oracle database. the interface uses term catalog 1 of coordinates database subsets. example, in querying procedures ( getprocedures method ). i'm not sure term catalog stand for, considering oracle database. after brief playing interface, see can pass package names catalog argument yield members. does mean in oracle catalog == package ? interface define getcatalogterm method, in case returns empty string.

range - TypeError: Cannot call method "getRange" of null. (line 3, file "Code") -

for reason can't range in code read script have written. have setup if statement return "yes" in given range, if question on form answer c, way have setup returning error saying can't read range. please advise! function onformsubmit() { var sheet = spreadsheetapp.getactivespreadsheet().getsheetbyname("original submissions"); var lastrownumber = sheet.getdatarange().getnumrows(); var cellvalue = sheet.getrange(lastrownumber, 28).getvalue(); if (cellvalue == "yes") { mailapp.sendemail("gmail@gmail.com","special graduation requirement","visit " + sheet.geturl() + "to process request."); } }