Posts

Featured post

errorPlacement in jQuery Validation plugin with other options -

i want show form errors on top of form along name of field. right if 14 fields there, it's writing 14 errors along "this field required" 14 times. want show field name. second issue group of checkboxes. want @ least 2 of them checked. array of 7 elements 2 checkboxes required. i want add border red error element , remove same time when correct. my html <form method="post" class="regular_form bookingform" id="apptbookingform"> <div id="error" class="error"><span>&nbsp;</span></div> <div id="summary" class="error"><span>&nbsp;</span></div> <div class="clr"></div> <div style="width:475px;"> <div> <label>select doctor <span class="mandatory">*</span></label> <select name="doctor" class="req...

Android FM Radio using OmapZoom source code Error -

i downloaded code git://git.omapzoom.org/platform/hardware/ti/wpan.git fmradio in android. while importing app fmrxapp showing compilation errors. can 1 me how import app worked on fm radio app. thanks & regards tiru check http://forum.xda-developers.com/showthread.php?s=54fdb869bb59f8f7150a94f032d11554&t=2198686&page=48 made same files me

css - Align horizontally and vertically in a circle -

following example found on @ css tricks, i'm trying center align content inside circle container responsive. example doesn't seem able handle content, , breaks enter more few lines of text. code pen example inside circle need have header , paragraph. there way set max width of content isn't placed outside circle when doesn't fit? you can set top value accordingly in .content code pen edit do changes: .content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: table; } .content span{ display: table-cell; vertical-align: middle; text-align: center; } now short text or long text centered now. check this

.net - Insert RTF-Data without using clipboard or insertFile in C# -

i've question inserting rtf data word.range objects. implemented program fills word bookmarks using values db. currently implemented 2 ways fill rtf data word bookmarks. save rtf value temporary file , use insertfile method of range object. copy rtf value clipboard. select range of word bookmark , use paste method. both methods have disadvantages can not handle: i can't use first way, because writes file on harddisk , adds newline character @ end of rtf value/file. second way erases stored clipboard data. is there possibility insert data without using clipboard or insertfile method?

Bash script global redirection with exec and write to screen -

i have large bash script , want globally redirect stdout/stderr file, except progress indicators such specific echo messages. example, consider following script #!/bin/bash # stdout , stderr go out.log exec &> out.log special_echo "starting" # many other commands go here # output both stdout , stderr # special_echo commands in here, # example echo "msg1" special_echo "middle" echo "msg2" >&2 special_echo "finished" when run output should be $ ./script starting middle finished $ but, out.log should contain msg1 msg2 how implement special_echo functionality? i've tried using file descriptor , echoing can't display on screen. is there way achieve without appending redirection every line or doing in answer ? yes, using file descriptor way go: #!/bin/bash exec 3>&1 special_echo () { echo "$@" >&3 } exec &> out.log special_echo "starting"...

postgresql - How to select all tuples determined id and newest timestamp -

given table: id | timestmap | ..otherstuff.. with primary key (id,timestmap). id of type integer , timestamp timestamp. how can extract tupes of timestamp newest tuple? e.g. if current data: 1 | 1999-05-23 0:00 | ... 2 | 2000-05-23 0:00 | ... 1 | 2000-06-22 0:00 | ... i want result (though order bonus not care for) 1 | 2000-06-22 0:00 | ... 2 | 2000-05-23 0:00 | ... for cases use window functions . as example assuming table called foo, query work: with tmp ( select id, timestmap, rank() on (partition id order timestmap desc) foo ) select id, timestmap tmp rank=1;

libavcodec - How can I use the RTP capabilities of libav? -

i have own media engine rtp audio streaming , recording in sip platform. need implement rtp video streamig , recording support. plan use libav. i have searched documentation , code snippets of video streaming , recording using libav. , have gone through http://libav.org/documentation.html didn't clue. most of code snippet (examples) found @ other places related libav outdated. i not want use rtsp capabilities , interested in rtp interface. there docs refer ? any or pointer appreciated ... thanks, amar. documentation/mail list talk there no difference in sending file or url. succeeded send rtp packets not playable player