Posts

python - How to merge notifications with a common title in pynotify? -

how can tell pynotify.notification object merge has same title? (per discussion:) setting append hint on notifications ( set_hint_string('append', '') ) tells notification daemon should merge notifications app when have same titles.

jquery - How do I convert a javascript string to HTML to be displayed in a form? -

ok know there has way this, can't find out how anywhere. newb jquery , javascript, sorry if dumb question. calling cfc (coldfusion) jquery , returning html. problem is, when return data, in form of javascript string , being displayed plain text on page, instead of being processed html. there function, or way convert string html? this how write html inside of jquery element: $('#id_of_element_to_put_html_inside').html(your_javascript_string);

asp.net - In a .Net web site, what are my options for sending email alerts when folder contents change? -

i don't know .net environment, first idea write console app scans folder new content, , emails alerts out. put .exe scheduled task on server, executing every few minutes. seems pretty archaic me though. there more elegant way website? no matter type of application choose way notifications folder changes in .net through filesystemwatcher class. approach create windows service run in background , listen notifications.

java - Is there Swing component that will automatically format XML? -

i looking java swing component, automatically format messy xml (in 1 line, see example): <person><name>joe</name><surname>black</surname></person> etc. etc. its not nice see billion lines long line :) , hope there component, that'll dirty work me. thankx edit: xml input plain string database, there no real xml doc me :( you don't need rely on swing component formatting. can try pretty printing xml , set formatted output directly in component. has been asked before .

javascript - Scroll to bottom of page, only if the user already was at the bottom before DOM manipulation -

i'd learn how use window.scrollto . here's desired behavior: determine if user scrolled bottom of page, or no scroll bar visible then want grow div, working if #1 true, use window.scrollto scroll bottom of page after div has grown changed window height. ideas? working han's idea, can detect whether window scrolled bottom this: $('button').click(function(){ var shouldscroll = $(document).scrolltop() + $(window).height() === $(document).height(); $('<div>added content</div>').appendto('body'); if(shouldscroll) { $(window).scrolltop(document.body.scrollheight); } }); updated jsfiddle here: http://jsfiddle.net/jameskovacs/nqntc/1/

iphone - Using UIWebView to load web images? -

is possible download images inside uiwebview , load uiimage? allow user grab email web site , load app. guess manual way right let user download image photo album , can allow person load accessing photo album. i'm trying make bit more smooth if can shed light on great. thanks! you can't save images downloaded in uiwebview unless in base64 format. actually thing can catching source code of page using javascript , save string. (that's why images should in base64 format).

How do I return the cat_name value instead of array with PHP? -

i did digging , understand array means there multiple values coming query. post found print_r see values. how return 1 of values though? this: <?php $category = get_the_category(); $parent = get_cat_name($category[0]->category_parent); $cat_name = get_the_category($category[cat_name]); echo 'category' . $category . '<br />'; echo 'parent: ' . $parent . '<br />'; echo 'cat name: ' . $cat_name . '<br />'; print_r ($cat_name); ?> returns this: categoryarray parent: location cat name: array array ( [0] => stdclass object ( [term_id] => 11 [name] => nashville [slug] => nashville [term_group] => 0 [term_taxonomy_id] => 11 [taxonomy] => category [description] => [parent] => 8 [count] => 1 [object_id] => 20 [cat_id] => 11 [category_count] => 1 [category_description] => [cat_...