Posts

java - Springsource Tool Suite unable to find sites -

Image
i'm trying configure springsource tool suite 2.7.1.release if try install plugin, help -> install new software... following error, though urls correct. here error log: on suspicion related proxy, have put in following proxy settings: but none of variations i've tried here have made difference. ideas? workarounds? if there forum more appropriate sts question, i'd appreciate info. please ask question on sts forum: http://forum.springsource.org/forumdisplay.php?32-springsource-tool-suite

swing - Java inheritance or GUI gone wrong -

despite tips, i'm still getting 1 wrong. end 1 basic window , 1 features, without basic ones previous window. instead, 1 new window combining basic , new features. here code i've got: (also approach advise?) package windows; import java.awt.*; import javax.swing.*; public abstract class windowtemplate extends jframe { /** * create gui , show it. thread safety, method should * invoked event-dispatching thread. */ public windowtemplate () { jframe myframe = new jframe("my first window"); myframe.setdefaultcloseoperation(jframe.exit_on_close); myframe.setvisible(true); myframe.setsize(550, 450); myframe.setlocationrelativeto(null); // jlabel emptylabel = new jlabel(""); // emptylabel.setpreferredsize(new dimension(550, 450)); // myframe.getcontentpane().setlayout(new cardlayout()); // myframe.getcontentpane().add(emptylabel, borderlayout.center); // myframe.pack(); } } now 1 meant "extended": package windows; import java.awt.*; ...

html - Prevent valign='middle' from being overridden by stylesheet declaration? -

i have table this: <table> <tr><td valign='middle'><a href='#'>link</a></td><td><img src='img.png'></td></tr> </table> and stylesheet this: a { vertical-align: baseline; } td { vertical-align: default; } i'm trying link veritcally aligned, because of initial vertical-align: baseline declaration (which cannot change) valign attribute ignored. i'd fix in stylesheet under td a selector. how can fix this? (i testing in chrome 12) remove valign="middle" , in stylesheet do: td { vertical-align: middle; } since asking how "erase" declaration. can't erase can override it: a { vertical-align: middle; } would replace previous declaration in stylesheet.

iphone - Help with logic on NSUserDefaults -

hey guys need logic in app. have app checklist lets u add or delete cells. want store cells in nsuserdefaults way, when open checklist page again, checklist when page closed! appreciated! lot everybody!! nsuserdefaults there store things more settings. task you'd better use core data or store data in separate file. here official tutorial pretty good. can (actually, intended to) integrated table views. there lots of tutorials out there. you should check thread .

yaml scientific notation syntax -

while working yaml document, found 1 of values getting parsed string snakeyaml: -8e-05 i found ros, uses yaml-cpp write yamls using following code write array out << yaml::beginseq; (int = 0; < m.rows*m.cols; ++i) out << m.data[i]; out << yaml::endseq; but c++ code above (copied ros "parse_yml.cpp" in camera_calibration package) creates -8e-05 while snakeyaml parses string. so who's right, should there bug report? if who? 1.2 yaml specification seems allow optional decimal, couldn't figure out if 1.1 yaml spec allows snakeyaml implements. the output should parsed !!float according yaml 1.2, !!str in yaml 1.1; @psr says, match json spec. the yaml 1.2 spec gives json schema , extension, "core schema" . in both cases, !!float regular expression is: [-+]? ( \. [0-9]+ | [0-9]+ ( \. [0-9]* )? ) ( [ee] [-+]? [0-9]+ )? which allows optional decimal. (the core schema adds support infinity , not-a-number.) the ...

sql server - SQL optimization question -

let's start scenario defined in my previous question . now want create query generates list of foo s f1 , count of foo s f2 distinct f1 nevertheless associated same bar or baz f1 associated to: select f1.*, case when f1.bar_id not null isnull(bar.lotnumber + '-', '') + bar.itemnumber when f2.baz_id not null isnull(baz.color + ' ', '') + baz.type end 'ba?description', (select count(*) foo f2 f2.bar_id = f1.bar_id or f2.baz_id = f1.baz_id) - 1 foocount foo f1 left join bar on bar.bar_id = f1.bar_id left join baz on baz.baz_id = f1.baz_id what worries me efficiency. must admit know nothing regarding how sql server generates execution plans sql sentences, common sense tells me subquery executed once each row in main query, i.e., once each value of f1.foo_id . not efficient. an alternative not run prob...

email - How to configure php.ini to work with smtp4dev? -

so, downloaded , installed smtp4dev. when try sending mail in php file: mail('localhost', "hey there", "no"); i error php.ini, complaining sendmail_from isnt declared. i tried declaring it: sendmail_from = postmaster@localhost that made php silent, still doesnt work - tries load page 30 seconds , error. fatal error: maximum execution time of 30 seconds exceeded. how must configure php.ini work? php.ini [mail function] ; win32 only. ; http://php.net/smtp smtp = localhost ; http://php.net/smtp-port smtp_port = 25 ; win32 only. ; http://php.net/sendmail-from ;sendmail_from = postmaster@localhost ; unix only. may supply arguments (default: "sendmail -t -i"). ; http://php.net/sendmail-path ;sendmail_path = "\"c:\xampp\sendmail\sendmail.exe\" -t" ; force addition of specified parameters passed parameters ; sendmail binary. these parameters replace value of ; 5th parameter mail(), in safe mode. ;mail.force_ext...